From 3d981b71d75326bc6c39da62a4f1103c1bd56c22 Mon Sep 17 00:00:00 2001 From: AnonUD4Y Date: Sat, 2 Mar 2019 03:54:48 +0530 Subject: [PATCH] Delete d1f0f06b39df.asc --- Instagram_files/d1f0f06b39df.asc | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 Instagram_files/d1f0f06b39df.asc diff --git a/Instagram_files/d1f0f06b39df.asc b/Instagram_files/d1f0f06b39df.asc deleted file mode 100644 index 27384de..0000000 --- a/Instagram_files/d1f0f06b39df.asc +++ /dev/null @@ -1,22 +0,0 @@ -window.v=function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=36)}([function(t,e,n){"use strict";t.exports=n(44)},function(t,e,n){"use strict";var r=function(){};t.exports=r},function(t,e,n){t.exports=n(57)()},function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,i,o,a,s],l=0;(u=new Error(e.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(t,e,n){"use strict";e.__esModule=!0;e.addLeadingSlash=function(t){return"/"===t.charAt(0)?t:"/"+t},e.stripLeadingSlash=function(t){return"/"===t.charAt(0)?t.substr(1):t};var r=e.hasBasename=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)};e.stripBasename=function(t,e){return r(t,e)?t.substr(e.length):t},e.stripTrailingSlash=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},e.parsePath=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},e.createPath=function(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"addLeadingSlash",function(){return r}),n.d(e,"stripLeadingSlash",function(){return i}),n.d(e,"hasBasename",function(){return o}),n.d(e,"stripBasename",function(){return a}),n.d(e,"stripTrailingSlash",function(){return s}),n.d(e,"parsePath",function(){return u}),n.d(e,"createPath",function(){return c});var r=function(t){return"/"===t.charAt(0)?t:"/"+t},i=function(t){return"/"===t.charAt(0)?t.substr(1):t},o=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},a=function(t,e){return o(t,e)?t.substr(e.length):t},s=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},u=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}},c=function(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}},function(t,e,n){"use strict";function r(t){return function(){return t}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(t){return t},t.exports=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"createLocation",function(){return s}),n.d(e,"locationsAreEqual",function(){return u});var r=n(29),i=n(30),o=n(5),a=Object.assign||function(t){for(var e=1;e may have only one child element"),this.unlisten=r.listen(function(){t.setState({match:t.computeMatch(r.location.pathname)})})},e.prototype.componentWillReceiveProps=function(t){s()(this.props.history===t.history,"You cannot change ")},e.prototype.componentWillUnmount=function(){this.unlisten()},e.prototype.render=function(){var t=this.props.children;return t?f.a.Children.only(t):null},e}(f.a.Component);m.propTypes={history:p.a.object.isRequired,children:p.a.node},m.contextTypes={router:p.a.object},m.childContextTypes={router:p.a.object.isRequired},e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(92),i=n.n(r),o={},a=0,s=function(t,e){var n=""+e.end+e.strict+e.sensitive,r=o[n]||(o[n]={});if(r[t])return r[t];var s=[],u={re:i()(t,s,e),keys:s};return a<1e4&&(r[t]=u,a++),u};e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof e&&(e={path:e});var n=e,r=n.path,i=void 0===r?"/":r,o=n.exact,a=void 0!==o&&o,u=n.strict,c=void 0!==u&&u,l=n.sensitive,f=s(i,{end:a,strict:c,sensitive:void 0!==l&&l}),h=f.re,p=f.keys,d=h.exec(t);if(!d)return null;var m=d[0],v=d.slice(1),y=t===m;return a&&!y?null:{path:i,url:"/"===i&&""===m?"/":m,isExact:y,params:p.reduce(function(t,e,n){return t[e.name]=v[n],t},{})}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n.n(r);e.default=function(){var t=null,e=[];return{setPrompt:function(e){return i()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter(function(t){return t!==r})}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function s(){}function u(t,e){var n={run:function(r){try{var i=t(e.getState(),r);(i!==n.props||n.error)&&(n.shouldComponentUpdate=!0,n.props=i,n.error=null)}catch(t){n.shouldComponentUpdate=!0,n.error=t}}};return n}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e,n,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},f=c.getDisplayName,b=void 0===f?function(t){return"ConnectAdvanced("+t+")"}:f,w=c.methodName,_=void 0===w?"connectAdvanced":w,E=c.renderCountProp,T=void 0===E?void 0:E,S=c.shouldHandleStateChanges,x=void 0===S||S,O=c.storeKey,P=void 0===O?"store":O,k=c.withRef,C=void 0!==k&&k,I=a(c,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),M=P+"Subscription",A=y++,R=(e={},e[P]=m.storeShape,e[M]=m.subscriptionShape,e),N=(n={},n[M]=m.subscriptionShape,n);return function(e){h()("function"==typeof e,"You must pass a component to the function returned by connect. Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",a=b(n),c=v({},I,{getDisplayName:b,methodName:_,renderCountProp:T,shouldHandleStateChanges:x,storeKey:P,withRef:C,displayName:a,wrappedComponentName:n,WrappedComponent:e}),f=function(n){function l(t,e){r(this,l);var o=i(this,n.call(this,t,e));return o.version=A,o.state={},o.renderCount=0,o.store=t[P]||e[P],o.propsMode=Boolean(t[P]),o.setWrappedInstance=o.setWrappedInstance.bind(o),h()(o.store,'Could not find "'+P+'" in either the context or props of "'+a+'". Either wrap the root component in a , or explicitly pass "'+P+'" as a prop to "'+a+'".'),o.initSelector(),o.initSubscription(),o}return o(l,n),l.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return t={},t[M]=e||this.context[M],t},l.prototype.componentDidMount=function(){x&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},l.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},l.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},l.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=s,this.store=null,this.selector.run=s,this.selector.shouldComponentUpdate=!1},l.prototype.getWrappedInstance=function(){return h()(C,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+_+"() call."),this.wrappedInstance},l.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},l.prototype.initSelector=function(){var e=t(this.store.dispatch,c);this.selector=u(e,this.store),this.selector.run(this.props)},l.prototype.initSubscription=function(){if(x){var t=(this.propsMode?this.props:this.context)[M];this.subscription=new d.default(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},l.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},l.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},l.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},l.prototype.addExtraProps=function(t){if(!(C||T||this.propsMode&&this.subscription))return t;var e=v({},t);return C&&(e.ref=this.setWrappedInstance),T&&(e[T]=this.renderCount++),this.propsMode&&this.subscription&&(e[M]=this.subscription),e},l.prototype.render=function(){var t=this.selector;if(t.shouldComponentUpdate=!1,t.error)throw t.error;return Object(p.createElement)(e,this.addExtraProps(t.props))},l}(p.Component);return f.WrappedComponent=e,f.displayName=a,f.childContextTypes=N,f.contextTypes=R,f.propTypes=R,l()(f,e)}};var c=n(20),l=n.n(c),f=n(3),h=n.n(f),p=n(0),d=(n.n(p),n(60)),m=n(18),v=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],a=t&&r(t),s=e&&r(e),u=a||s;if(t&&r(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var l=o[o.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,h=o.length;h>=0;h--){var p=o[h];"."===p?i(o,h):".."===p?(i(o,h),f++):f&&(i(o,h),f--)}if(!u)for(;f--;f)o.unshift("..");!u||""===o[0]||o[0]&&r(o[0])||o.unshift("");var d=o.join("/");return c&&"/"!==d.substr(-1)&&(d+="/"),d}},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});var n=void 0===t?"undefined":i(t);if(n!==(void 0===e?"undefined":i(e)))return!1;if("object"===n){var o=t.valueOf(),a=e.valueOf();if(o!==t||a!==e)return r(o,a);var s=Object.keys(t),u=Object.keys(e);return s.length===u.length&&s.every(function(n){return r(t[n],e[n])})}return!1}Object.defineProperty(e,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t};e.default=r},function(t,e,n){"use strict";e.__esModule=!0;e.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement),e.addEventListener=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},e.removeEventListener=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},e.getConfirmation=function(t,e){return e(window.confirm(t))},e.supportsHistory=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},e.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},e.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},e.isExtraneousPopstateEvent=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n(0),u=n.n(s),c=n(2),l=n.n(c),f=n(3),h=n.n(f),p=Object.assign||function(t){for(var e=1;e outside a ");var o=this.context.router.history.createHref("string"==typeof e?{pathname:e}:e);return u.a.createElement("a",p({},i,{onClick:this.handleClick,href:o,ref:n}))},e}(u.a.Component);m.propTypes={onClick:l.a.func,target:l.a.string,replace:l.a.bool,to:l.a.oneOfType([l.a.string,l.a.object]).isRequired,innerRef:l.a.oneOfType([l.a.string,l.a.func])},m.defaultProps={replace:!1},m.contextTypes={router:l.a.shape({history:l.a.shape({push:l.a.func.isRequired,replace:l.a.func.isRequired,createHref:l.a.func.isRequired}).isRequired}).isRequired},e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(34);e.default=r.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n.n(a),u=n(3),c=n.n(u),l=n(0),f=n.n(l),h=n(2),p=n.n(h),d=n(14),m=Object.assign||function(t){for(var e=1;e or withRouter() outside a ");var u=e.route,l=(r||u.location).pathname;return i?Object(d.default)(l,{path:i,strict:o,exact:a,sensitive:s}):u.match},e.prototype.componentWillMount=function(){s()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),s()(!(this.props.component&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored"),s()(!(this.props.render&&this.props.children&&!v(this.props.children)),"You should not use and in the same route; will be ignored")},e.prototype.componentWillReceiveProps=function(t,e){s()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),s()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(t,e.router)})},e.prototype.render=function(){var t=this.state.match,e=this.props,n=e.children,r=e.component,i=e.render,o=this.context.router,a=o.history,s=o.route,u=o.staticContext,c={match:t,location:this.props.location||s.location,history:a,staticContext:u};return r?t?f.a.createElement(r,c):null:i?t?i(c):null:n?"function"==typeof n?n(c):v(n)?null:f.a.Children.only(n):null},e}(f.a.Component);y.propTypes={computedMatch:p.a.object,path:p.a.string,exact:p.a.bool,strict:p.a.bool,sensitive:p.a.bool,component:p.a.func,render:p.a.func,children:p.a.oneOfType([p.a.func,p.a.node]),location:p.a.object},y.contextTypes={router:p.a.shape({history:p.a.object.isRequired,route:p.a.object.isRequired,staticContext:p.a.object})},y.childContextTypes={router:p.a.object.isRequired},e.default=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"canUseDOM",function(){return r}),n.d(e,"addEventListener",function(){return i}),n.d(e,"removeEventListener",function(){return o}),n.d(e,"getConfirmation",function(){return a}),n.d(e,"supportsHistory",function(){return s}),n.d(e,"supportsPopStateOnHashChange",function(){return u}),n.d(e,"supportsGoWithoutReloadUsingHash",function(){return c}),n.d(e,"isExtraneousPopstateEvent",function(){return l});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},o=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},s=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},u=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},l=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){t.exports=n},function(t,e,n){n(38),n(43),n(0),n(45),n(55),n(83),n(21),n(109),n(110),n(111)},function(t,e,n){function r(t,e,n){n=n||{};var r=s(t)+"="+s(e);null==e&&(n.maxage=-1),n.maxage&&(n.expires=new Date(+new Date+n.maxage)),n.path&&(r+="; path="+n.path),n.domain&&(r+="; domain="+n.domain),n.expires&&(r+="; expires="+n.expires.toUTCString()),n.secure&&(r+="; secure"),document.cookie=r}function i(){var t;try{t=document.cookie}catch(t){return"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t.stack||t),{}}return a(t)}function o(t){return i()[t]}function a(t){var e,n={},r=t.split(/ *; */);if(""==r[0])return n;for(var i=0;i=31},e.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(i())}).call(e,n(40))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function a(){m&&p&&(m=!1,p.length?d=p.concat(d):v=-1,d.length&&s())}function s(){if(!m){var t=i(a);m=!0;for(var e=d.length;e;){for(p=d,d=[];++v1)for(var n=1;n1e4)){var e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*c;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function r(t){return t>=c?Math.round(t/c)+"d":t>=u?Math.round(t/u)+"h":t>=s?Math.round(t/s)+"m":t>=a?Math.round(t/a)+"s":t+"ms"}function i(t){return o(t,c,"day")||o(t,u,"hour")||o(t,s,"minute")||o(t,a,"second")||t+" ms"}function o(t,e,n){if(!(t0)return n(t);if("number"===o&&!1===isNaN(t))return e.long?i(t):r(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},function(t,e,n){!function(e,n){t.exports=n()}(0,function(){"use strict";function t(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function e(t){return o(t)?t:C(t)}function n(t){return a(t)?t:I(t)}function r(t){return s(t)?t:M(t)}function i(t){return o(t)&&!u(t)?t:A(t)}function o(t){return!(!t||!t[cn])}function a(t){return!(!t||!t[ln])}function s(t){return!(!t||!t[fn])}function u(t){return a(t)||s(t)}function c(t){return!(!t||!t[hn])}function l(t){return t.value=!1,t}function f(t){t&&(t.value=!0)}function h(){}function p(t,e){e=e||0;for(var n=Math.max(0,t.length-e),r=new Array(n),i=0;i>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?d(t)+e:e}function v(){return!0}function y(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function g(t,e){return w(t,e,0)}function b(t,e){return w(t,e,e)}function w(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}function _(t){this.next=t}function E(t,e,n,r){var i=0===t?e:1===t?n:[e,n];return r?r.value=i:r={value:i,done:!1},r}function T(){return{value:void 0,done:!0}}function S(t){return!!P(t)}function x(t){return t&&"function"==typeof t.next}function O(t){var e=P(t);return e&&e.call(t)}function P(t){var e=t&&(En&&t[En]||t[Tn]);if("function"==typeof e)return e}function k(t){return t&&"number"==typeof t.length}function C(t){return null===t||void 0===t?U():o(t)?t.toSeq():z(t)}function I(t){return null===t||void 0===t?U().toKeyedSeq():o(t)?a(t)?t.toSeq():t.fromEntrySeq():F(t)}function M(t){return null===t||void 0===t?U():o(t)?a(t)?t.entrySeq():t.toIndexedSeq():B(t)}function A(t){return(null===t||void 0===t?U():o(t)?a(t)?t.entrySeq():t:B(t)).toSetSeq()}function R(t){this._array=t,this.size=t.length}function N(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function j(t){this._iterable=t,this.size=t.length||t.size}function D(t){this._iterator=t,this._iteratorCache=[]}function L(t){return!(!t||!t[xn])}function U(){return On||(On=new R([]))}function F(t){var e=Array.isArray(t)?new R(t).fromEntrySeq():x(t)?new D(t).fromEntrySeq():S(t)?new j(t).fromEntrySeq():"object"==typeof t?new N(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function B(t){var e=H(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function z(t){var e=H(t)||"object"==typeof t&&new N(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}function H(t){return k(t)?new R(t):x(t)?new D(t):S(t)?new j(t):void 0}function q(t,e,n,r){var i=t._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===e(s[1],r?s[0]:a,t))return a+1}return a}return t.__iterateUncached(e,n)}function V(t,e,n,r){var i=t._cache;if(i){var o=i.length-1,a=0;return new _(function(){var t=i[n?o-a:a];return a++>o?T():E(e,r?t[0]:a-1,t[1])})}return t.__iteratorUncached(e,n)}function K(t,e){return e?W(e,t,"",{"":t}):G(t)}function W(t,e,n,r){return Array.isArray(e)?t.call(r,n,M(e).map(function(n,r){return W(t,n,r,e)})):Y(e)?t.call(r,n,I(e).map(function(n,r){return W(t,n,r,e)})):e}function G(t){return Array.isArray(t)?M(t).map(G).toList():Y(t)?I(t).map(G).toMap():t}function Y(t){return t&&(t.constructor===Object||void 0===t.constructor)}function $(t,e){if(t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if(t=t.valueOf(),e=e.valueOf(),t===e||t!==t&&e!==e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function X(t,e){if(t===e)return!0;if(!o(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||s(t)!==s(e)||c(t)!==c(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!u(t);if(c(t)){var r=t.entries();return e.every(function(t,e){var i=r.next().value;return i&&$(i[1],t)&&(n||$(i[0],e))})&&r.next().done}var i=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{i=!0;var l=t;t=e,e=l}var f=!0,h=e.__iterate(function(e,r){if(n?!t.has(e):i?!$(e,t.get(r,vn)):!$(t.get(r,vn),e))return f=!1,!1});return f&&t.size===h}function J(t,e){if(!(this instanceof J))return new J(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(Pn)return Pn;Pn=this}}function Q(t,e){if(!t)throw new Error(e)}function Z(t,e,n){if(!(this instanceof Z))return new Z(t,e,n);if(Q(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),e>>1&1073741824|3221225471&t}function ot(t){if(!1===t||null===t||void 0===t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null===t||void 0===t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){if(t!==t||t===1/0)return 0;var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return it(n)}if("string"===e)return t.length>Dn?at(t):st(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return ut(t);if("function"==typeof t.toString)return st(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function at(t){var e=Fn[t];return void 0===e&&(e=st(t),Un===Ln&&(Un=0,Fn={}),Un++,Fn[t]=e),e}function st(t){for(var e=0,n=0;n0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}function lt(t){Q(t!==1/0,"Cannot perform this action with an infinite size.")}function ft(t){return null===t||void 0===t?Et():ht(t)&&!c(t)?t:Et().withMutations(function(e){var r=n(t);lt(r.size),r.forEach(function(t,n){return e.set(n,t)})})}function ht(t){return!(!t||!t[Bn])}function pt(t,e){this.ownerID=t,this.entries=e}function dt(t,e,n){this.ownerID=t,this.bitmap=e,this.nodes=n}function mt(t,e,n){this.ownerID=t,this.count=e,this.nodes=n}function vt(t,e,n){this.ownerID=t,this.keyHash=e,this.entries=n}function yt(t,e,n){this.ownerID=t,this.keyHash=e,this.entry=n}function gt(t,e,n){this._type=e,this._reverse=n,this._stack=t._root&&wt(t._root)}function bt(t,e){return E(t,e[0],e[1])}function wt(t,e){return{node:t,index:0,__prev:e}}function _t(t,e,n,r){var i=Object.create(zn);return i.size=t,i._root=e,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Et(){return Hn||(Hn=_t(0))}function Tt(t,e,n){var r,i;if(t._root){var o=l(yn),a=l(gn);if(r=St(t._root,t.__ownerID,0,void 0,e,n,o,a),!a.value)return t;i=t.size+(o.value?n===vn?-1:1:0)}else{if(n===vn)return t;i=1,r=new pt(t.__ownerID,[[e,n]])}return t.__ownerID?(t.size=i,t._root=r,t.__hash=void 0,t.__altered=!0,t):r?_t(i,r):Et()}function St(t,e,n,r,i,o,a,s){return t?t.update(e,n,r,i,o,a,s):o===vn?t:(f(s),f(a),new yt(e,r,[i,o]))}function xt(t){return t.constructor===yt||t.constructor===vt}function Ot(t,e,n,r,i){if(t.keyHash===r)return new vt(e,r,[t.entry,i]);var o,a=(0===n?t.keyHash:t.keyHash>>>n)&mn,s=(0===n?r:r>>>n)&mn;return new dt(e,1<>>=1)a[s]=1&n?e[o++]:void 0;return a[r]=i,new mt(t,o+1,a)}function It(t,e,r){for(var i=[],a=0;a>1&1431655765,t=(858993459&t)+(t>>2&858993459),t=t+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function Dt(t,e,n,r){var i=r?t:p(t);return i[e]=n,i}function Lt(t,e,n,r){var i=t.length+1;if(r&&e+1===i)return t[e]=n,t;for(var o=new Array(i),a=0,s=0;s0&&io?0:o-n,c=a-n;return c>dn&&(c=dn),function(){if(i===c)return $n;var t=e?--c:i++;return r&&r[t]}}function i(t,r,i){var s,u=t&&t.array,c=i>o?0:o-i>>r,l=1+(a-i>>r);return l>dn&&(l=dn),function(){for(;;){if(s){var t=s();if(t!==$n)return t;s=null}if(c===l)return $n;var o=e?--l:c++;s=n(u&&u[o],r-pn,i+(o<=t.size||e<0)return t.withMutations(function(t){e<0?$t(t,e).set(0,n):$t(t,0,e+1).set(e,n)});e+=t._origin;var r=t._tail,i=t._root,o=l(gn);return e>=Jt(t._capacity)?r=Wt(r,t.__ownerID,0,e,n,o):i=Wt(i,t.__ownerID,t._level,e,n,o),o.value?t.__ownerID?(t._root=i,t._tail=r,t.__hash=void 0,t.__altered=!0,t):qt(t._origin,t._capacity,t._level,i,r):t}function Wt(t,e,n,r,i,o){var a=r>>>n&mn,s=t&&a0){var c=t&&t.array[a],l=Wt(c,e,n-pn,r,i,o);return l===c?t:(u=Gt(t,e),u.array[a]=l,u)}return s&&t.array[a]===i?t:(f(o),u=Gt(t,e),void 0===i&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Gt(t,e){return e&&t&&e===t.ownerID?t:new zt(t?t.array.slice():[],e)}function Yt(t,e){if(e>=Jt(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>r&mn],r-=pn;return n}}function $t(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var r=t.__ownerID||new h,i=t._origin,o=t._capacity,a=i+e,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return t;if(a>=s)return t.clear();for(var u=t._level,c=t._root,l=0;a+l<0;)c=new zt(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=pn);l&&(a+=l,i+=l,s+=l,o+=l);for(var f=Jt(o),p=Jt(s);p>=1<f?new zt([],r):d;if(d&&p>f&&apn;y-=pn){var g=f>>>y&mn;v=v.array[g]=Gt(v.array[g],r)}v.array[f>>>pn&mn]=d}if(s=p)a-=p,s-=p,u=pn,c=null,m=m&&m.removeBefore(r,0,a);else if(a>i||p>>u&mn;if(b!==p>>>u&mn)break;b&&(l+=(1<i&&(c=c.removeBefore(r,u,a-l)),c&&pa&&(a=c.size),o(u)||(c=c.map(function(t){return K(t)})),i.push(c)}return a>t.size&&(t=t.setSize(a)),Rt(t,e,i)}function Jt(t){return t>>pn<=dn&&a.size>=2*o.size?(r=(i=a.filter(function(t,e){return void 0!==t&&s!==e})).toKeyedSeq().map(function(t){return t[0]}).flip().toMap(),t.__ownerID&&(r.__ownerID=i.__ownerID=t.__ownerID)):(r=o.remove(e),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return t;r=o,i=a.set(s,[e,n])}else r=o.set(e,a.size),i=a.set(a.size,[e,n]);return t.__ownerID?(t.size=r.size,t._map=r,t._list=i,t.__hash=void 0,t):te(r,i)}function re(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function ie(t){this._iter=t,this.size=t.size}function oe(t){this._iter=t,this.size=t.size}function ae(t){this._iter=t,this.size=t.size}function se(t){var e=ke(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Ce,e.__iterateUncached=function(e,n){var r=this;return t.__iterate(function(t,n){return!1!==e(n,t,r)},n)},e.__iteratorUncached=function(e,n){if(e===_n){var r=t.__iterator(e,n);return new _(function(){var t=r.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t})}return t.__iterator(e===wn?bn:wn,n)},e}function ue(t,e,n){var r=ke(t);return r.size=t.size,r.has=function(e){return t.has(e)},r.get=function(r,i){var o=t.get(r,vn);return o===vn?i:e.call(n,o,r,t)},r.__iterateUncached=function(r,i){var o=this;return t.__iterate(function(t,i,a){return!1!==r(e.call(n,t,i,a),i,o)},i)},r.__iteratorUncached=function(r,i){var o=t.__iterator(_n,i);return new _(function(){var i=o.next();if(i.done)return i;var a=i.value,s=a[0];return E(r,s,e.call(n,a[1],s,t),i)})},r}function ce(t,e){var n=ke(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=se(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,r){return t.get(e?n:-1-n,r)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Ce,n.__iterate=function(e,n){var r=this;return t.__iterate(function(t,n){return e(t,n,r)},!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function le(t,e,n,r){var i=ke(t);return r&&(i.has=function(r){var i=t.get(r,vn);return i!==vn&&!!e.call(n,i,r,t)},i.get=function(r,i){var o=t.get(r,vn);return o!==vn&&e.call(n,o,r,t)?o:i}),i.__iterateUncached=function(i,o){var a=this,s=0;return t.__iterate(function(t,o,u){if(e.call(n,t,o,u))return s++,i(t,r?o:s-1,a)},o),s},i.__iteratorUncached=function(i,o){var a=t.__iterator(_n,o),s=0;return new _(function(){for(;;){var o=a.next();if(o.done)return o;var u=o.value,c=u[0],l=u[1];if(e.call(n,l,c,t))return E(i,r?c:s++,l,o)}})},i}function fe(t,e,n){var r=ft().asMutable();return t.__iterate(function(i,o){r.update(e.call(n,i,o,t),0,function(t){return t+1})}),r.asImmutable()}function he(t,e,n){var r=a(t),i=(c(t)?Qt():ft()).asMutable();t.__iterate(function(o,a){i.update(e.call(n,o,a,t),function(t){return(t=t||[]).push(r?[a,o]:o),t})});var o=Pe(t);return i.map(function(e){return Se(t,o(e))})}function pe(t,e,n,r){var i=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n===1/0?n=i:n|=0),y(e,n,i))return t;var o=g(e,i),a=b(n,i);if(o!==o||a!==a)return pe(t.toSeq().cacheResult(),e,n,r);var s,u=a-o;u===u&&(s=u<0?0:u);var c=ke(t);return c.size=0===s?s:t.size&&s||void 0,!r&&L(t)&&s>=0&&(c.get=function(e,n){return(e=m(this,e))>=0&&es)return T();var t=i.next();return r||e===wn?t:e===bn?E(e,u-1,void 0,t):E(e,u-1,t.value[1],t)})},c}function de(t,e,n){var r=ke(t);return r.__iterateUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterate(r,i);var a=0;return t.__iterate(function(t,i,s){return e.call(n,t,i,s)&&++a&&r(t,i,o)}),a},r.__iteratorUncached=function(r,i){var o=this;if(i)return this.cacheResult().__iterator(r,i);var a=t.__iterator(_n,i),s=!0;return new _(function(){if(!s)return T();var t=a.next();if(t.done)return t;var i=t.value,u=i[0],c=i[1];return e.call(n,c,u,o)?r===_n?t:E(r,u,c,t):(s=!1,T())})},r}function me(t,e,n,r){var i=ke(t);return i.__iterateUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterate(i,o);var s=!0,u=0;return t.__iterate(function(t,o,c){if(!s||!(s=e.call(n,t,o,c)))return u++,i(t,r?o:u-1,a)}),u},i.__iteratorUncached=function(i,o){var a=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(_n,o),u=!0,c=0;return new _(function(){var t,o,l;do{if((t=s.next()).done)return r||i===wn?t:i===bn?E(i,c++,void 0,t):E(i,c++,t.value[1],t);var f=t.value;o=f[0],l=f[1],u&&(u=e.call(n,l,o,a))}while(u);return i===_n?t:E(i,o,l,t)})},i}function ve(t,e){var r=a(t),i=[t].concat(e).map(function(t){return o(t)?r&&(t=n(t)):t=r?F(t):B(Array.isArray(t)?t:[t]),t}).filter(function(t){return 0!==t.size});if(0===i.length)return t;if(1===i.length){var u=i[0];if(u===t||r&&a(u)||s(t)&&s(u))return u}var c=new R(i);return r?c=c.toKeyedSeq():s(t)||(c=c.toSetSeq()),c=c.flatten(!0),c.size=i.reduce(function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}},0),c}function ye(t,e,n){var r=ke(t);return r.__iterateUncached=function(r,i){function a(t,c){var l=this;t.__iterate(function(t,i){return(!e||c0}function Te(t,n,r){var i=ke(t);return i.size=new R(r).map(function(t){return t.size}).min(),i.__iterate=function(t,e){for(var n,r=this.__iterator(wn,e),i=0;!(n=r.next()).done&&!1!==t(n.value,i++,this););return i},i.__iteratorUncached=function(t,i){var o=r.map(function(t){return t=e(t),O(i?t.reverse():t)}),a=0,s=!1;return new _(function(){var e;return s||(e=o.map(function(t){return t.next()}),s=e.some(function(t){return t.done})),s?T():E(t,a++,n.apply(null,e.map(function(t){return t.value})))})},i}function Se(t,e){return L(t)?e:t.constructor(e)}function xe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Oe(t){return lt(t.size),d(t)}function Pe(t){return a(t)?n:s(t)?r:i}function ke(t){return Object.create((a(t)?I:s(t)?M:A).prototype)}function Ce(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):C.prototype.cacheResult.call(this)}function Ie(t,e){return t>e?1:te?-1:0}function on(t){if(t.size===1/0)return 0;var e=c(t),n=a(t),r=e?1:0;return an(t.__iterate(n?e?function(t,e){r=31*r+sn(ot(t),ot(e))|0}:function(t,e){r=r+sn(ot(t),ot(e))|0}:e?function(t){r=31*r+ot(t)|0}:function(t){r=r+ot(t)|0}),r)}function an(t,e){return e=In(e,3432918353),e=In(e<<15|e>>>-15,461845907),e=In(e<<13|e>>>-13,5),e=(e+3864292196|0)^t,e=In(e^e>>>16,2246822507),e=In(e^e>>>13,3266489909),e=it(e^e>>>16)}function sn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}var un=Array.prototype.slice;t(n,e),t(r,e),t(i,e),e.isIterable=o,e.isKeyed=a,e.isIndexed=s,e.isAssociative=u,e.isOrdered=c,e.Keyed=n,e.Indexed=r,e.Set=i;var cn="@@__IMMUTABLE_ITERABLE__@@",ln="@@__IMMUTABLE_KEYED__@@",fn="@@__IMMUTABLE_INDEXED__@@",hn="@@__IMMUTABLE_ORDERED__@@",pn=5,dn=1<r?T():E(t,i,n[e?r-i++:i++])})},t(N,I),N.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},N.prototype.has=function(t){return this._object.hasOwnProperty(t)},N.prototype.__iterate=function(t,e){for(var n=this._object,r=this._keys,i=r.length-1,o=0;o<=i;o++){var a=r[e?i-o:o];if(!1===t(n[a],a,this))return o+1}return o},N.prototype.__iterator=function(t,e){var n=this._object,r=this._keys,i=r.length-1,o=0;return new _(function(){var a=r[e?i-o:o];return o++>i?T():E(t,a,n[a])})},N.prototype[hn]=!0,t(j,M),j.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=O(this._iterable),r=0;if(x(n))for(var i;!(i=n.next()).done&&!1!==t(i.value,r++,this););return r},j.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=O(this._iterable);if(!x(n))return new _(T);var r=0;return new _(function(){var e=n.next();return e.done?e:E(t,r++,e.value)})},t(D,M),D.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n=this._iterator,r=this._iteratorCache,i=0;i=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return E(t,i,r[i++])})};var On;t(J,M),J.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},J.prototype.get=function(t,e){return this.has(t)?this._value:e},J.prototype.includes=function(t){return $(this._value,t)},J.prototype.slice=function(t,e){var n=this.size;return y(t,e,n)?this:new J(this._value,b(e,n)-g(t,n))},J.prototype.reverse=function(){return this},J.prototype.indexOf=function(t){return $(this._value,t)?0:-1},J.prototype.lastIndexOf=function(t){return $(this._value,t)?this.size:-1},J.prototype.__iterate=function(t,e){for(var n=0;n=0&&e=0&&nn?T():E(t,o++,a)})},Z.prototype.equals=function(t){return t instanceof Z?this._start===t._start&&this._end===t._end&&this._step===t._step:X(this,t)};var kn;t(tt,e),t(et,tt),t(nt,tt),t(rt,tt),tt.Keyed=et,tt.Indexed=nt,tt.Set=rt;var Cn,In="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),r=65535&(e|=0);return n*r+((t>>>16)*r+n*(e>>>16)<<16>>>0)|0},Mn=Object.isExtensible,An=function(){try{return Object.defineProperty({},"@",{}),!0}catch(t){return!1}}(),Rn="function"==typeof WeakMap;Rn&&(Cn=new WeakMap);var Nn=0,jn="__immutablehash__";"function"==typeof Symbol&&(jn=Symbol(jn));var Dn=16,Ln=255,Un=0,Fn={};t(ft,et),ft.of=function(){var t=un.call(arguments,0);return Et().withMutations(function(e){for(var n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}})},ft.prototype.toString=function(){return this.__toString("Map {","}")},ft.prototype.get=function(t,e){return this._root?this._root.get(0,void 0,t,e):e},ft.prototype.set=function(t,e){return Tt(this,t,e)},ft.prototype.setIn=function(t,e){return this.updateIn(t,vn,function(){return e})},ft.prototype.remove=function(t){return Tt(this,t,vn)},ft.prototype.deleteIn=function(t){return this.updateIn(t,function(){return vn})},ft.prototype.update=function(t,e,n){return 1===arguments.length?t(this):this.updateIn([t],e,n)},ft.prototype.updateIn=function(t,e,n){n||(n=e,e=void 0);var r=Nt(this,Me(t),e,n);return r===vn?void 0:r},ft.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Et()},ft.prototype.merge=function(){return It(this,void 0,arguments)},ft.prototype.mergeWith=function(t){return It(this,t,un.call(arguments,1))},ft.prototype.mergeIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,Et(),function(t){return"function"==typeof t.merge?t.merge.apply(t,e):e[e.length-1]})},ft.prototype.mergeDeep=function(){return It(this,Mt,arguments)},ft.prototype.mergeDeepWith=function(t){var e=un.call(arguments,1);return It(this,At(t),e)},ft.prototype.mergeDeepIn=function(t){var e=un.call(arguments,1);return this.updateIn(t,Et(),function(t){return"function"==typeof t.mergeDeep?t.mergeDeep.apply(t,e):e[e.length-1]})},ft.prototype.sort=function(t){return Qt(we(this,t))},ft.prototype.sortBy=function(t,e){return Qt(we(this,e,t))},ft.prototype.withMutations=function(t){var e=this.asMutable();return t(e),e.wasAltered()?e.__ensureOwner(this.__ownerID):this},ft.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new h)},ft.prototype.asImmutable=function(){return this.__ensureOwner()},ft.prototype.wasAltered=function(){return this.__altered},ft.prototype.__iterator=function(t,e){return new gt(this,t,e)},ft.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},ft.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?_t(this.size,this._root,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},ft.isMap=ht;var Bn="@@__IMMUTABLE_MAP__@@",zn=ft.prototype;zn[Bn]=!0,zn.delete=zn.remove,zn.removeIn=zn.deleteIn,pt.prototype.get=function(t,e,n,r){for(var i=this.entries,o=0,a=i.length;o=qn)return Pt(t,u,r,i);var d=t&&t===this.ownerID,m=d?u:p(u);return h?s?c===l-1?m.pop():m[c]=m.pop():m[c]=[r,i]:m.push([r,i]),d?(this.entries=m,this):new pt(t,m)}},dt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=1<<((0===t?e:e>>>t)&mn),o=this.bitmap;return 0==(o&i)?r:this.nodes[jt(o&i-1)].get(t+pn,e,n,r)},dt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=1<=Vn)return Ct(t,h,c,s,d);if(l&&!d&&2===h.length&&xt(h[1^f]))return h[1^f];if(l&&d&&1===h.length&&xt(d))return d;var m=t&&t===this.ownerID,v=l?d?c:c^u:c|u,y=l?d?Dt(h,f,d,m):Ut(h,f,m):Lt(h,f,d,m);return m?(this.bitmap=v,this.nodes=y,this):new dt(t,v,y)},mt.prototype.get=function(t,e,n,r){void 0===e&&(e=ot(n));var i=(0===t?e:e>>>t)&mn,o=this.nodes[i];return o?o.get(t+pn,e,n,r):r},mt.prototype.update=function(t,e,n,r,i,o,a){void 0===n&&(n=ot(r));var s=(0===e?n:n>>>e)&mn,u=i===vn,c=this.nodes,l=c[s];if(u&&!l)return this;var f=St(l,t,e+pn,n,r,i,o,a);if(f===l)return this;var h=this.count;if(l){if(!f&&--h=0&&t>>e&mn;if(r>=this.array.length)return new zt([],t);var i,o=0===r;if(e>0){var a=this.array[r];if((i=a&&a.removeBefore(t,e-pn,n))===a&&o)return this}if(o&&!i)return this;var s=Gt(this,t);if(!o)for(var u=0;u>>e&mn;if(r>=this.array.length)return this;var i;if(e>0){var o=this.array[r];if((i=o&&o.removeAfter(t,e-pn,n))===o&&r===this.array.length-1)return this}var a=Gt(this,t);return a.array.splice(r+1),i&&(a.array[r]=i),a};var Yn,$n={};t(Qt,ft),Qt.of=function(){return this(arguments)},Qt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Qt.prototype.get=function(t,e){var n=this._map.get(t);return void 0!==n?this._list.get(n)[1]:e},Qt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ee()},Qt.prototype.set=function(t,e){return ne(this,t,e)},Qt.prototype.remove=function(t){return ne(this,t,vn)},Qt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Qt.prototype.__iterate=function(t,e){var n=this;return this._list.__iterate(function(e){return e&&t(e[1],e[0],n)},e)},Qt.prototype.__iterator=function(t,e){return this._list.fromEntrySeq().__iterator(t,e)},Qt.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map.__ensureOwner(t),n=this._list.__ensureOwner(t);return t?te(e,n,t,this.__hash):(this.__ownerID=t,this._map=e,this._list=n,this)},Qt.isOrderedMap=Zt,Qt.prototype[hn]=!0,Qt.prototype.delete=Qt.prototype.remove;var Xn;t(re,I),re.prototype.get=function(t,e){return this._iter.get(t,e)},re.prototype.has=function(t){return this._iter.has(t)},re.prototype.valueSeq=function(){return this._iter.valueSeq()},re.prototype.reverse=function(){var t=this,e=ce(this,!0);return this._useKeys||(e.valueSeq=function(){return t._iter.toSeq().reverse()}),e},re.prototype.map=function(t,e){var n=this,r=ue(this,t,e);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(t,e)}),r},re.prototype.__iterate=function(t,e){var n,r=this;return this._iter.__iterate(this._useKeys?function(e,n){return t(e,n,r)}:(n=e?Oe(this):0,function(i){return t(i,e?--n:n++,r)}),e)},re.prototype.__iterator=function(t,e){if(this._useKeys)return this._iter.__iterator(t,e);var n=this._iter.__iterator(wn,e),r=e?Oe(this):0;return new _(function(){var i=n.next();return i.done?i:E(t,e?--r:r++,i.value,i)})},re.prototype[hn]=!0,t(ie,M),ie.prototype.includes=function(t){return this._iter.includes(t)},ie.prototype.__iterate=function(t,e){var n=this,r=0;return this._iter.__iterate(function(e){return t(e,r++,n)},e)},ie.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e),r=0;return new _(function(){var e=n.next();return e.done?e:E(t,r++,e.value,e)})},t(oe,A),oe.prototype.has=function(t){return this._iter.includes(t)},oe.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){return t(e,e,n)},e)},oe.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new _(function(){var e=n.next();return e.done?e:E(t,e.value,e.value,e)})},t(ae,I),ae.prototype.entrySeq=function(){return this._iter.toSeq()},ae.prototype.__iterate=function(t,e){var n=this;return this._iter.__iterate(function(e){if(e){xe(e);var r=o(e);return t(r?e.get(1):e[1],r?e.get(0):e[0],n)}},e)},ae.prototype.__iterator=function(t,e){var n=this._iter.__iterator(wn,e);return new _(function(){for(;;){var e=n.next();if(e.done)return e;var r=e.value;if(r){xe(r);var i=o(r);return E(t,i?r.get(0):r[0],i?r.get(1):r[1],e)}}})},ie.prototype.cacheResult=re.prototype.cacheResult=oe.prototype.cacheResult=ae.prototype.cacheResult=Ce,t(Ae,et),Ae.prototype.toString=function(){return this.__toString(Ne(this)+" {","}")},Ae.prototype.has=function(t){return this._defaultValues.hasOwnProperty(t)},Ae.prototype.get=function(t,e){if(!this.has(t))return e;var n=this._defaultValues[t];return this._map?this._map.get(t,n):n},Ae.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var t=this.constructor;return t._empty||(t._empty=Re(this,Et()))},Ae.prototype.set=function(t,e){if(!this.has(t))throw new Error('Cannot set unknown key "'+t+'" on '+Ne(this));if(this._map&&!this._map.has(t)&&e===this._defaultValues[t])return this;var n=this._map&&this._map.set(t,e);return this.__ownerID||n===this._map?this:Re(this,n)},Ae.prototype.remove=function(t){if(!this.has(t))return this;var e=this._map&&this._map.remove(t);return this.__ownerID||e===this._map?this:Re(this,e)},Ae.prototype.wasAltered=function(){return this._map.wasAltered()},Ae.prototype.__iterator=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterator(t,e)},Ae.prototype.__iterate=function(t,e){var r=this;return n(this._defaultValues).map(function(t,e){return r.get(e)}).__iterate(t,e)},Ae.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var e=this._map&&this._map.__ensureOwner(t);return t?Re(this,e,t):(this.__ownerID=t,this._map=e,this)};var Jn=Ae.prototype;Jn.delete=Jn.remove,Jn.deleteIn=Jn.removeIn=zn.removeIn,Jn.merge=zn.merge,Jn.mergeWith=zn.mergeWith,Jn.mergeIn=zn.mergeIn,Jn.mergeDeep=zn.mergeDeep,Jn.mergeDeepWith=zn.mergeDeepWith,Jn.mergeDeepIn=zn.mergeDeepIn,Jn.setIn=zn.setIn,Jn.update=zn.update,Jn.updateIn=zn.updateIn,Jn.withMutations=zn.withMutations,Jn.asMutable=zn.asMutable,Jn.asImmutable=zn.asImmutable,t(Le,rt),Le.of=function(){return this(arguments)},Le.fromKeys=function(t){return this(n(t).keySeq())},Le.prototype.toString=function(){return this.__toString("Set {","}")},Le.prototype.has=function(t){return this._map.has(t)},Le.prototype.add=function(t){return Fe(this,this._map.set(t,!0))},Le.prototype.remove=function(t){return Fe(this,this._map.remove(t))},Le.prototype.clear=function(){return Fe(this,this._map.clear())},Le.prototype.union=function(){var t=un.call(arguments,0);return 0===(t=t.filter(function(t){return 0!==t.size})).length?this:0!==this.size||this.__ownerID||1!==t.length?this.withMutations(function(e){for(var n=0;n=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):Ye(t,e)},We.prototype.pushAll=function(t){if(0===(t=r(t)).size)return this;lt(t.size);var e=this.size,n=this._head;return t.reverse().forEach(function(t){e++,n={value:t,next:n}}),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):Ye(e,n)},We.prototype.pop=function(){return this.slice(1)},We.prototype.unshift=function(){return this.push.apply(this,arguments)},We.prototype.unshiftAll=function(t){return this.pushAll(t)},We.prototype.shift=function(){return this.pop.apply(this,arguments)},We.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):$e()},We.prototype.slice=function(t,e){if(y(t,e,this.size))return this;var n=g(t,this.size);if(b(e,this.size)!==this.size)return nt.prototype.slice.call(this,t,e);for(var r=this.size-n,i=this._head;n--;)i=i.next;return this.__ownerID?(this.size=r,this._head=i,this.__hash=void 0,this.__altered=!0,this):Ye(r,i)},We.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?Ye(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},We.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,r=this._head;r&&!1!==t(r.value,n++,this);)r=r.next;return n},We.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,r=this._head;return new _(function(){if(r){var e=r.value;return r=r.next,E(t,n++,e)}return T()})},We.isStack=Ge;var rr="@@__IMMUTABLE_STACK__@@",ir=We.prototype;ir[rr]=!0,ir.withMutations=zn.withMutations,ir.asMutable=zn.asMutable,ir.asImmutable=zn.asImmutable,ir.wasAltered=zn.wasAltered;var or;e.Iterator=_,Xe(e,{toArray:function(){lt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate(function(e,n){t[n]=e}),t},toIndexedSeq:function(){return new ie(this)},toJS:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJS?t.toJS():t}).__toJS()},toJSON:function(){return this.toSeq().map(function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t}).__toJS()},toKeyedSeq:function(){return new re(this,!0)},toMap:function(){return ft(this.toKeyedSeq())},toObject:function(){lt(this.size);var t={};return this.__iterate(function(e,n){t[n]=e}),t},toOrderedMap:function(){return Qt(this.toKeyedSeq())},toOrderedSet:function(){return He(a(this)?this.valueSeq():this)},toSet:function(){return Le(a(this)?this.valueSeq():this)},toSetSeq:function(){return new oe(this)},toSeq:function(){return s(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return We(a(this)?this.valueSeq():this)},toList:function(){return Ft(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){return Se(this,ve(this,un.call(arguments,0)))},includes:function(t){return this.some(function(e){return $(e,t)})},entries:function(){return this.__iterator(_n)},every:function(t,e){lt(this.size);var n=!0;return this.__iterate(function(r,i,o){if(!t.call(e,r,i,o))return n=!1,!1}),n},filter:function(t,e){return Se(this,le(this,t,e,!0))},find:function(t,e,n){var r=this.findEntry(t,e);return r?r[1]:n},forEach:function(t,e){return lt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){lt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate(function(r){n?n=!1:e+=t,e+=null!==r&&void 0!==r?r.toString():""}),e},keys:function(){return this.__iterator(bn)},map:function(t,e){return Se(this,ue(this,t,e))},reduce:function(t,e,n){lt(this.size);var r,i;return arguments.length<2?i=!0:r=e,this.__iterate(function(e,o,a){i?(i=!1,r=e):r=t.call(n,r,e,o,a)}),r},reduceRight:function(t,e,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return Se(this,ce(this,!0))},slice:function(t,e){return Se(this,pe(this,t,e,!0))},some:function(t,e){return!this.every(Ze(t),e)},sort:function(t){return Se(this,we(this,t))},values:function(){return this.__iterator(wn)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(t,e){return d(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return fe(this,t,e)},equals:function(t){return X(this,t)},entrySeq:function(){var t=this;if(t._cache)return new R(t._cache);var e=t.toSeq().map(Qe).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(Ze(t),e)},findEntry:function(t,e,n){var r=n;return this.__iterate(function(n,i,o){if(t.call(e,n,i,o))return r=[i,n],!1}),r},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},findLastEntry:function(t,e,n){return this.toKeyedSeq().reverse().findEntry(t,e,n)},findLastKey:function(t,e){return this.toKeyedSeq().reverse().findKey(t,e)},first:function(){return this.find(v)},flatMap:function(t,e){return Se(this,ge(this,t,e))},flatten:function(t){return Se(this,ye(this,t,!0))},fromEntrySeq:function(){return new ae(this)},get:function(t,e){return this.find(function(e,n){return $(n,t)},void 0,e)},getIn:function(t,e){for(var n,r=this,i=Me(t);!(n=i.next()).done;){var o=n.value;if((r=r&&r.get?r.get(o,vn):vn)===vn)return e}return r},groupBy:function(t,e){return he(this,t,e)},has:function(t){return this.get(t,vn)!==vn},hasIn:function(t){return this.getIn(t,vn)!==vn},isSubset:function(t){return t="function"==typeof t.includes?t:e(t),this.every(function(e){return t.includes(e)})},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:e(t)).isSubset(this)},keyOf:function(t){return this.findKey(function(e){return $(e,t)})},keySeq:function(){return this.toSeq().map(Je).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return _e(this,t)},maxBy:function(t,e){return _e(this,e,t)},min:function(t){return _e(this,t?tn(t):rn)},minBy:function(t,e){return _e(this,e?tn(e):rn,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return Se(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return Se(this,me(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(Ze(t),e)},sortBy:function(t,e){return Se(this,we(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return Se(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return Se(this,de(this,t,e))},takeUntil:function(t,e){return this.takeWhile(Ze(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=on(this))}});var ar=e.prototype;ar[cn]=!0,ar[Sn]=ar.values,ar.__toJS=ar.toArray,ar.__toStringMapper=en,ar.inspect=ar.toSource=function(){return this.toString()},ar.chain=ar.flatMap,ar.contains=ar.includes,Xe(n,{flip:function(){return Se(this,se(this))},mapEntries:function(t,e){var n=this,r=0;return Se(this,this.toSeq().map(function(i,o){return t.call(e,[o,i],r++,n)}).fromEntrySeq())},mapKeys:function(t,e){var n=this;return Se(this,this.toSeq().flip().map(function(r,i){return t.call(e,r,i,n)}).flip())}});var sr=n.prototype;return sr[ln]=!0,sr[Sn]=ar.entries,sr.__toJS=ar.toObject,sr.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+en(t)},Xe(r,{toKeyedSeq:function(){return new re(this,!1)},filter:function(t,e){return Se(this,le(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.lastKeyOf(t);return void 0===e?-1:e},reverse:function(){return Se(this,ce(this,!1))},slice:function(t,e){return Se(this,pe(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=g(t,t<0?this.count():this.size);var r=this.slice(0,t);return Se(this,1===n?r:r.concat(p(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.findLastEntry(t,e);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(t){return Se(this,ye(this,t,!1))},get:function(t,e){return(t=m(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find(function(e,n){return n===t},void 0,e)},has:function(t){return(t=m(this,t))>=0&&(void 0!==this.size?this.size===1/0||tA.length&&A.push(t)}function p(t,e,n,i){var o=typeof t;if("undefined"!==o&&"boolean"!==o||(t=null),null===t||"string"===o||"number"===o||"object"===o&&t.$$typeof===C||"object"===o&&t.$$typeof===I)return n(i,t,""===e?"."+d(t,0):e),1;var a=0;if(e=""===e?".":e+":",Array.isArray(t))for(var s=0;sthis.eventPool.length&&this.eventPool.push(t)}function H(t){t.eventPool=[],t.getPooled=B,t.release=z}function q(t,e,n,r){return F.call(this,t,e,n,r)}function V(t,e,n,r){return F.call(this,t,e,n,r)}function K(t,e){switch(t){case"topKeyUp":return-1!==hr.indexOf(e.keyCode);case"topKeyDown":return 229!==e.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function W(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}function G(t,e){switch(t){case"topCompositionEnd":return W(e);case"topKeyPress":return 32!==e.which?null:(Er=!0,wr);case"topTextInput":return(t=e.data)===wr&&Er?null:t;default:return null}}function Y(t,e){if(Tr)return"topCompositionEnd"===t||!pr&&K(t,e)?(t=L(),cr._root=null,cr._startText=null,cr._fallbackText=null,Tr=!1,t):null;switch(t){case"topPaste":return null;case"topKeyPress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1zr.length&&zr.push(t)}}}function Rt(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n["ms"+t]="MS"+e,n["O"+t]="o"+e.toLowerCase(),n}function Nt(t){if(Wr[t])return Wr[t];if(!Kr[t])return t;var e,n=Kr[t];for(e in n)if(n.hasOwnProperty(e)&&e in Gr)return Wr[t]=n[e];return""}function jt(t){return Object.prototype.hasOwnProperty.call(t,Jr)||(t[Jr]=Xr++,$r[t[Jr]]={}),$r[t[Jr]]}function Dt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Lt(t,e){var n=Dt(t);t=0;for(var r;n;){if(3===n.nodeType){if(r=t+n.textContent.length,t<=e&&r>=e)return{node:n,offset:e-t};t=r}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=Dt(n)}}function Ut(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}function Ft(t,e){if(ri||null==ti||ti!==Tn())return null;var n=ti;return"selectionStart"in n&&Ut(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?(n=window.getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}):n=void 0,ni&&Sn(ni,n)?null:(ni=n,t=F.getPooled(Zr.select,ei,t,e),t.type="select",t.target=ti,N(t),t)}function Bt(t,e,n,r){return F.call(this,t,e,n,r)}function zt(t,e,n,r){return F.call(this,t,e,n,r)}function Ht(t,e,n,r){return F.call(this,t,e,n,r)}function qt(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,32<=t||13===t?t:0}function Vt(t,e,n,r){return F.call(this,t,e,n,r)}function Kt(t,e,n,r){return F.call(this,t,e,n,r)}function Wt(t,e,n,r){return F.call(this,t,e,n,r)}function Gt(t,e,n,r){return F.call(this,t,e,n,r)}function Yt(t,e,n,r){return F.call(this,t,e,n,r)}function $t(t){0>fi||(t.current=li[fi],li[fi]=null,fi--)}function Xt(t,e){li[++fi]=t.current,t.current=e}function Jt(t){return Zt(t)?gi:vi.current}function Qt(t,e){var n=t.type.contextTypes;if(!n)return Pn;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Zt(t){return 2===t.tag&&null!=t.type.childContextTypes}function te(t){Zt(t)&&($t(yi,t),$t(vi,t))}function ee(t,e,n){null!=vi.cursor&&r("168"),Xt(vi,e,t),Xt(yi,n,t)}function ne(t,e){var n=t.stateNode,i=t.type.childContextTypes;if("function"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var o in n)o in i||r("108",_t(t)||"Unknown",o);return wn({},e,n)}function re(t){if(!Zt(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Pn,gi=vi.current,Xt(vi,e,t),Xt(yi,yi.current,t),!0}function ie(t,e){var n=t.stateNode;if(n||r("169"),e){var i=ne(t,gi);n.__reactInternalMemoizedMergedChildContext=i,$t(yi,t),$t(vi,t),Xt(vi,i,t)}else $t(yi,t);Xt(yi,e,t)}function oe(t,e,n){this.tag=t,this.key=e,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.memoizedState=this.updateQueue=this.memoizedProps=this.pendingProps=this.ref=null,this.internalContextTag=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function ae(t,e,n){var r=t.alternate;return null===r?(r=new oe(t.tag,t.key,t.internalContextTag),r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.pendingProps=e,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function se(t,e,n){var i=void 0,o=t.type,a=t.key;return"function"==typeof o?(i=o.prototype&&o.prototype.isReactComponent?new oe(2,a,e):new oe(0,a,e),i.type=o,i.pendingProps=t.props):"string"==typeof o?(i=new oe(5,a,e),i.type=o,i.pendingProps=t.props):"object"==typeof o&&null!==o&&"number"==typeof o.tag?(i=o,i.pendingProps=t.props):r("130",null==o?o:typeof o,""),i.expirationTime=n,i}function ue(t,e,n,r){return e=new oe(10,r,e),e.pendingProps=t,e.expirationTime=n,e}function ce(t,e,n){return e=new oe(6,null,e),e.pendingProps=t,e.expirationTime=n,e}function le(t,e,n){return e=new oe(7,t.key,e),e.type=t.handler,e.pendingProps=t,e.expirationTime=n,e}function fe(t,e,n){return t=new oe(9,null,e),t.expirationTime=n,t}function he(t,e,n){return e=new oe(4,t.key,e),e.pendingProps=t.children||[],e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function pe(t){return function(e){try{return t(e)}catch(t){}}}function de(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);bi=pe(function(t){return e.onCommitFiberRoot(n,t)}),wi=pe(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function me(t){"function"==typeof bi&&bi(t)}function ve(t){"function"==typeof wi&&wi(t)}function ye(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1}}function ge(t,e){null===t.last?t.first=t.last=e:(t.last.next=e,t.last=e),(0===t.expirationTime||t.expirationTime>e.expirationTime)&&(t.expirationTime=e.expirationTime)}function be(t,e){var n=t.alternate,r=t.updateQueue;null===r&&(r=t.updateQueue=ye(null)),null!==n?null===(t=n.updateQueue)&&(t=n.updateQueue=ye(null)):t=null,null===(t=t!==r?t:null)?ge(r,e):null===r.last||null===t.last?(ge(r,e),ge(t,e)):(ge(r,e),t.last=e)}function we(t,e,n,r){return"function"==typeof(t=t.partialState)?t.call(e,n,r):t}function _e(t,e,n,r,i,o){null!==t&&t.updateQueue===n&&(n=e.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?t=n.baseState:(t=n.baseState=e.memoizedState,n.isInitialized=!0);for(var a=!0,s=n.first,u=!1;null!==s;){var c=s.expirationTime;if(c>o){var l=n.expirationTime;(0===l||l>c)&&(n.expirationTime=c),u||(u=!0,n.baseState=t)}else u||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(t=we(s,r,t,i),a=!0):(c=we(s,r,t,i))&&(t=a?wn({},t,c):wn(t,c),a=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(null===(c=n.callbackList)&&(c=n.callbackList=[]),c.push(s));s=s.next}return null!==n.callbackList?e.effectTag|=32:null!==n.first||n.hasForceUpdate||(e.updateQueue=null),u||(n.baseState=t),t}function Ee(t,e){var n=t.callbackList;if(null!==n)for(t.callbackList=null,t=0;th?(p=f,f=null):p=f.sibling;var d=v(t,f,a[h],u);if(null===d){null===f&&(f=p);break}e&&f&&null===d.alternate&&n(t,f),r=s(d,r,h),null===l?c=d:l.sibling=d,l=d,f=p}if(h===a.length)return i(t,f),c;if(null===f){for(;hp?(d=h,h=null):d=h.sibling;var b=v(t,h,g.value,c);if(null===b){h||(h=d);break}e&&h&&null===b.alternate&&n(t,h),a=s(b,a,p),null===f?l=b:f.sibling=b,f=b,h=d}if(g.done)return i(t,h),l;if(null===h){for(;!g.done;p++,g=u.next())null!==(g=m(t,g.value,c))&&(a=s(g,a,p),null===f?l=g:f.sibling=g,f=g);return l}for(h=o(t,h);!g.done;p++,g=u.next())null!==(g=y(h,t,p,g.value,c))&&(e&&null!==g.alternate&&h.delete(null===g.key?p:g.key),a=s(g,a,p),null===f?l=g:f.sibling=g,f=g);return e&&h.forEach(function(e){return n(t,e)}),l}return function(t,e,o,s){var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case hi:t:{var l=o.key;for(c=e;null!==c;){if(c.key===l){if(10===c.tag?o.type===mi:c.type===o.type){i(t,c.sibling),(e=a(c,o.type===mi?o.props.children:o.props,s)).ref=Oe(c,o),e.return=t,t=e;break t}i(t,c);break}n(t,c),c=c.sibling}o.type===mi?(o=ue(o.props.children,t.internalContextTag,s,o.key),o.return=t,t=o):(s=se(o,t.internalContextTag,s),s.ref=Oe(e,o),s.return=t,t=s)}return u(t);case pi:t:{for(c=o.key;null!==e;){if(e.key===c){if(7===e.tag){i(t,e.sibling),(o=a(e,o,s)).return=t,t=o;break t}i(t,e);break}n(t,e),e=e.sibling}(o=le(o,t.internalContextTag,s)).return=t,t=o}return u(t);case di:t:{if(null!==e){if(9===e.tag){i(t,e.sibling),(e=a(e,null,s)).type=o.value,e.return=t,t=e;break t}i(t,e)}(e=fe(o,t.internalContextTag,s)).type=o.value,e.return=t,t=e}return u(t);case _i:t:{for(c=o.key;null!==e;){if(e.key===c){if(4===e.tag&&e.stateNode.containerInfo===o.containerInfo&&e.stateNode.implementation===o.implementation){i(t,e.sibling),(o=a(e,o.children||[],s)).return=t,t=o;break t}i(t,e);break}n(t,e),e=e.sibling}(o=he(o,t.internalContextTag,s)).return=t,t=o}return u(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==e&&6===e.tag?(i(t,e.sibling),o=a(e,o,s)):(i(t,e),o=ce(o,t.internalContextTag,s)),o.return=t,t=o,u(t);if(Ei(o))return g(t,e,o,s);if(xe(o))return b(t,e,o,s);if(c&&Pe(t,o),void 0===o)switch(t.tag){case 2:case 1:r("152",(o=t.type).displayName||o.name||"Component")}return i(t,e)}}function Ce(t,e,n,i,o){function a(t,e,n){s(t,e,n,e.expirationTime)}function s(t,e,n,r){e.child=null===t?Oi(e,e.child,n,r):t.child===e.child?Si(e,e.child,n,r):xi(e,e.child,n,r)}function u(t,e){var n=e.ref;null===n||t&&t.ref===n||(e.effectTag|=128)}function c(t,e,n,r){if(u(t,e),!n)return r&&ie(e,!1),f(t,e);n=e.stateNode,Br.current=e;var i=n.render();return e.effectTag|=1,a(t,e,i),e.memoizedState=n.state,e.memoizedProps=n.props,r&&ie(e,!0),e.child}function l(t){var e=t.stateNode;e.pendingContext?ee(t,e.pendingContext,e.pendingContext!==e.context):e.context&&ee(t,e.context,!1),y(t,e.containerInfo)}function f(t,e){if(null!==t&&e.child!==t.child&&r("153"),null!==e.child){var n=ae(t=e.child,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=ae(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function h(t,e){switch(e.tag){case 3:l(e);break;case 2:re(e);break;case 4:y(e,e.stateNode.containerInfo)}return null}var p=t.shouldSetTextContent,d=t.useSyncScheduling,m=t.shouldDeprioritizeSubtree,v=e.pushHostContext,y=e.pushHostContainer,g=n.enterHydrationState,b=n.resetHydrationState,w=n.tryToClaimNextHydratableInstance,_=(t=Te(i,o,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e})).adoptClassInstance,E=t.constructClassInstance,T=t.mountClassInstance,S=t.updateClassInstance;return{beginWork:function(t,e,n){if(0===e.expirationTime||e.expirationTime>n)return h(0,e);switch(e.tag){case 0:null!==t&&r("155");var i=e.type,o=e.pendingProps,s=Jt(e);return s=Qt(e,s),i=i(o,s),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render?(e.tag=2,o=re(e),_(e,i),T(e,n),e=c(t,e,!0,o)):(e.tag=1,a(t,e,i),e.memoizedProps=o,e=e.child),e;case 1:t:{if(o=e.type,n=e.pendingProps,i=e.memoizedProps,yi.current)null===n&&(n=i);else if(null===n||i===n){e=f(t,e);break t}o=o(n,i=Qt(e,i=Jt(e))),e.effectTag|=1,a(t,e,o),e.memoizedProps=n,e=e.child}return e;case 2:return o=re(e),i=void 0,null===t?e.stateNode?r("153"):(E(e,e.pendingProps),T(e,n),i=!0):i=S(t,e,n),c(t,e,i,o);case 3:return l(e),null!==(o=e.updateQueue)?(i=e.memoizedState,o=_e(t,e,o,null,null,n),i===o?(b(),e=f(t,e)):(i=o.element,s=e.stateNode,(null===t||null===t.child)&&s.hydrate&&g(e)?(e.effectTag|=2,e.child=Oi(e,e.child,i,n)):(b(),a(t,e,i)),e.memoizedState=o,e=e.child)):(b(),e=f(t,e)),e;case 5:v(e),null===t&&w(e),o=e.type;var x=e.memoizedProps;return null===(i=e.pendingProps)&&null===(i=x)&&r("154"),s=null!==t?t.memoizedProps:null,yi.current||null!==i&&x!==i?(x=i.children,p(o,i)?x=null:s&&p(o,s)&&(e.effectTag|=16),u(t,e),2147483647!==n&&!d&&m(o,i)?(e.expirationTime=2147483647,e=null):(a(t,e,x),e.memoizedProps=i,e=e.child)):e=f(t,e),e;case 6:return null===t&&w(e),null===(t=e.pendingProps)&&(t=e.memoizedProps),e.memoizedProps=t,null;case 8:e.tag=7;case 7:return o=e.pendingProps,yi.current?null===o&&null===(o=t&&t.memoizedProps)&&r("154"):null!==o&&e.memoizedProps!==o||(o=e.memoizedProps),i=o.children,e.stateNode=null===t?Oi(e,e.stateNode,i,n):t.child===e.child?Si(e,e.stateNode,i,n):xi(e,e.stateNode,i,n),e.memoizedProps=o,e.stateNode;case 9:return null;case 4:t:{if(y(e,e.stateNode.containerInfo),o=e.pendingProps,yi.current)null===o&&null==(o=t&&t.memoizedProps)&&r("154");else if(null===o||e.memoizedProps===o){e=f(t,e);break t}null===t?e.child=xi(e,e.child,o,n):a(t,e,o),e.memoizedProps=o,e=e.child}return e;case 10:t:{if(n=e.pendingProps,yi.current)null===n&&(n=e.memoizedProps);else if(null===n||e.memoizedProps===n){e=f(t,e);break t}a(t,e,n),e.memoizedProps=n,e=e.child}return e;default:r("156")}},beginFailedWork:function(t,e,n){switch(e.tag){case 2:re(e);break;case 3:l(e);break;default:r("157")}return e.effectTag|=64,null===t?e.child=null:e.child!==t.child&&(e.child=t.child),0===e.expirationTime||e.expirationTime>n?h(0,e):(e.firstEffect=null,e.lastEffect=null,s(t,e,null,n),2===e.tag&&(t=e.stateNode,e.memoizedProps=t.props,e.memoizedState=t.state),e.child)}}}function Ie(t,e,n){function i(t){t.effectTag|=4}var o=t.createInstance,a=t.createTextInstance,s=t.appendInitialChild,u=t.finalizeInitialChildren,c=t.prepareUpdate,l=t.persistence,f=e.getRootHostContainer,h=e.popHostContext,p=e.getHostContext,d=e.popHostContainer,m=n.prepareToHydrateHostInstance,v=n.prepareToHydrateHostTextInstance,y=n.popHydrationState,g=void 0,b=void 0,w=void 0;return t.mutation?(g=function(){},b=function(t,e,n){(e.updateQueue=n)&&i(e)},w=function(t,e,n,r){n!==r&&i(e)}):r(l?"235":"236"),{completeWork:function(t,e,n){var l=e.pendingProps;switch(null===l?l=e.memoizedProps:2147483647===e.expirationTime&&2147483647!==n||(e.pendingProps=null),e.tag){case 1:return null;case 2:return te(e),null;case 3:return d(e),$t(yi,e),$t(vi,e),(l=e.stateNode).pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),null!==t&&null!==t.child||(y(e),e.effectTag&=-3),g(e),null;case 5:h(e),n=f();var _=e.type;if(null!==t&&null!=e.stateNode){var E=t.memoizedProps,T=e.stateNode,S=p();T=c(T,_,E,l,n,S),b(t,e,T,_,E,l,n),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!l)return null===e.stateNode&&r("166"),null;if(t=p(),y(e))m(e,n,t)&&i(e);else{t=o(_,l,n,t,e);t:for(E=e.child;null!==E;){if(5===E.tag||6===E.tag)s(t,E.stateNode);else if(4!==E.tag&&null!==E.child){E.child.return=E,E=E.child;continue}if(E===e)break;for(;null===E.sibling;){if(null===E.return||E.return===e)break t;E=E.return}E.sibling.return=E.return,E=E.sibling}u(t,_,l,n)&&i(e),e.stateNode=t}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)w(t,e,t.memoizedProps,l);else{if("string"!=typeof l)return null===e.stateNode&&r("166"),null;t=f(),n=p(),y(e)?v(e)&&i(e):e.stateNode=a(l,t,n,e)}return null;case 7:(l=e.memoizedProps)||r("165"),e.tag=8,_=[];t:for((E=e.stateNode)&&(E.return=e);null!==E;){if(5===E.tag||6===E.tag||4===E.tag)r("247");else if(9===E.tag)_.push(E.type);else if(null!==E.child){E.child.return=E,E=E.child;continue}for(;null===E.sibling;){if(null===E.return||E.return===e)break t;E=E.return}E.sibling.return=E.return,E=E.sibling}return E=l.handler,l=E(l.props,_),e.child=Si(e,null!==t?t.child:null,l,n),e.child;case 8:return e.tag=7,null;case 9:case 10:return null;case 4:return d(e),g(e),null;case 0:r("167");default:r("156")}}}}function Me(t,e){function n(t){var n=t.ref;if(null!==n)try{n(null)}catch(n){e(t,n)}}function i(t){switch("function"==typeof ve&&ve(t),t.tag){case 2:n(t);var r=t.stateNode;if("function"==typeof r.componentWillUnmount)try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(n){e(t,n)}break;case 5:n(t);break;case 7:o(t.stateNode);break;case 4:c&&s(t)}}function o(t){for(var e=t;;)if(i(e),null===e.child||c&&4===e.tag){if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;e=e.return}e.sibling.return=e.return,e=e.sibling}else e.child.return=e,e=e.child}function a(t){return 5===t.tag||3===t.tag||4===t.tag}function s(t){for(var e=t,n=!1,a=void 0,s=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&r("160"),n.tag){case 5:a=n.stateNode,s=!1;break t;case 3:case 4:a=n.stateNode.containerInfo,s=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag)o(e),s?b(a,e.stateNode):g(a,e.stateNode);else if(4===e.tag?a=e.stateNode.containerInfo:i(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;4===(e=e.return).tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}var u=t.getPublicInstance,c=t.mutation;t=t.persistence,c||r(t?"235":"236");var l=c.commitMount,f=c.commitUpdate,h=c.resetTextContent,p=c.commitTextUpdate,d=c.appendChild,m=c.appendChildToContainer,v=c.insertBefore,y=c.insertInContainerBefore,g=c.removeChild,b=c.removeChildFromContainer;return{commitResetTextContent:function(t){h(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(a(e)){var n=e;break t}e=e.return}r("160"),n=void 0}var i=e=void 0;switch(n.tag){case 5:e=n.stateNode,i=!1;break;case 3:case 4:e=n.stateNode.containerInfo,i=!0;break;default:r("161")}16&n.effectTag&&(h(e),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||a(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var o=t;;){if(5===o.tag||6===o.tag)n?i?y(e,o.stateNode,n):v(e,o.stateNode,n):i?m(e,o.stateNode):d(e,o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},commitDeletion:function(t){s(t),t.return=null,t.child=null,t.alternate&&(t.alternate.child=null,t.alternate.return=null)},commitWork:function(t,e){switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var i=e.memoizedProps;t=null!==t?t.memoizedProps:i;var o=e.type,a=e.updateQueue;e.updateQueue=null,null!==a&&f(n,a,o,t,i,e)}break;case 6:null===e.stateNode&&r("162"),n=e.memoizedProps,p(e.stateNode,null!==t?t.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(t,e){switch(e.tag){case 2:var n=e.stateNode;if(4&e.effectTag)if(null===t)n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidMount();else{var i=t.memoizedProps;t=t.memoizedState,n.props=e.memoizedProps,n.state=e.memoizedState,n.componentDidUpdate(i,t)}null!==(e=e.updateQueue)&&Ee(e,n);break;case 3:null!==(n=e.updateQueue)&&Ee(n,null!==e.child?e.child.stateNode:null);break;case 5:n=e.stateNode,null===t&&4&e.effectTag&&l(n,e.type,e.memoizedProps,e);break;case 6:case 4:break;default:r("163")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var n=t.stateNode;switch(t.tag){case 5:e(u(n));break;default:e(n)}}},commitDetachRef:function(t){null!==(t=t.ref)&&t(null)}}}function Ae(t){function e(t){return t===Pi&&r("174"),t}var n=t.getChildHostContext,i=t.getRootHostContext,o={current:Pi},a={current:Pi},s={current:Pi};return{getHostContext:function(){return e(o.current)},getRootHostContainer:function(){return e(s.current)},popHostContainer:function(t){$t(o,t),$t(a,t),$t(s,t)},popHostContext:function(t){a.current===t&&($t(o,t),$t(a,t))},pushHostContainer:function(t,e){Xt(s,e,t),e=i(e),Xt(a,t,t),Xt(o,e,t)},pushHostContext:function(t){var r=e(s.current),i=e(o.current);i!==(r=n(i,t.type,r))&&(Xt(a,t,t),Xt(o,r,t))},resetHostContainer:function(){o.current=Pi,s.current=Pi}}}function Re(t){function e(t,e){var n=new oe(5,null,0);n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function n(t,e){switch(t.tag){case 5:return null!==(e=a(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=s(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function i(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;h=t}var o=t.shouldSetTextContent;if(!(t=t.hydration))return{enterHydrationState:function(){return!1},resetHydrationState:function(){},tryToClaimNextHydratableInstance:function(){},prepareToHydrateHostInstance:function(){r("175")},prepareToHydrateHostTextInstance:function(){r("176")},popHydrationState:function(){return!1}};var a=t.canHydrateInstance,s=t.canHydrateTextInstance,u=t.getNextHydratableSibling,c=t.getFirstHydratableChild,l=t.hydrateInstance,f=t.hydrateTextInstance,h=null,p=null,d=!1;return{enterHydrationState:function(t){return p=c(t.stateNode.containerInfo),h=t,d=!0},resetHydrationState:function(){p=h=null,d=!1},tryToClaimNextHydratableInstance:function(t){if(d){var r=p;if(r){if(!n(t,r)){if(!(r=u(r))||!n(t,r))return t.effectTag|=2,d=!1,void(h=t);e(h,p)}h=t,p=c(r)}else t.effectTag|=2,d=!1,h=t}},prepareToHydrateHostInstance:function(t,e,n){return e=l(t.stateNode,t.type,t.memoizedProps,e,n,t),t.updateQueue=e,null!==e},prepareToHydrateHostTextInstance:function(t){return f(t.stateNode,t.memoizedProps,t)},popHydrationState:function(t){if(t!==h)return!1;if(!d)return i(t),d=!0,!1;var n=t.type;if(5!==t.tag||"head"!==n&&"body"!==n&&!o(n,t.memoizedProps))for(n=p;n;)e(t,n),n=u(n);return i(t),p=h?u(t.stateNode):null,!0}}}function Ne(t){function e(t){rt=G=!0;var e=t.stateNode;if(e.current===t&&r("177"),e.isReadyForCommit=!1,Br.current=null,1a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==e)return e;if(null!==n&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1t))if(X<=K)for(;null!==Y;)Y=c(Y)?o(Y):i(Y);else for(;null!==Y&&!_();)Y=c(Y)?o(Y):i(Y)}else if(!(0===X||X>t))if(X<=K)for(;null!==Y;)Y=i(Y);else for(;null!==Y&&!_();)Y=i(Y)}function s(t,e){if(G&&r("243"),G=!0,t.isReadyForCommit=!1,t!==$||e!==X||null===Y){for(;-1e)&&(t.expirationTime=e),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>e)&&(t.alternate.expirationTime=e),null===t.return){if(3!==t.tag)break;var n=t.stateNode;!G&&n===$&&e<=X&&(Y=$=null,X=0);var i=e;if(gt>yt&&r("185"),null===n.nextScheduledRoot)n.remainingExpirationTime=i,null===at?(ot=at=n,n.nextScheduledRoot=n):(at=at.nextScheduledRoot=n,at.nextScheduledRoot=ot);else{var o=n.remainingExpirationTime;(0===o||ibt)&&(ft=!0)}function E(t){null===ct&&r("246"),ct.remainingExpirationTime=0,ht||(ht=!0,pt=t)}var T=Ae(t),S=Re(t),x=T.popHostContainer,O=T.popHostContext,P=T.resetHostContainer,k=Ce(t,T,S,p,h),C=k.beginWork,I=k.beginFailedWork,M=Ie(t,T,S).completeWork,A=(T=Me(t,u)).commitResetTextContent,R=T.commitPlacement,N=T.commitDeletion,j=T.commitWork,D=T.commitLifeCycles,L=T.commitAttachRef,U=T.commitDetachRef,F=t.now,B=t.scheduleDeferredCallback,z=t.useSyncScheduling,H=t.prepareForCommit,q=t.resetAfterCommit,V=F(),K=2,W=0,G=!1,Y=null,$=null,X=0,J=null,Q=null,Z=null,tt=null,et=null,nt=!1,rt=!1,it=!1,ot=null,at=null,st=!1,ut=!1,ct=null,lt=0,ft=!1,ht=!1,pt=null,dt=null,mt=!1,vt=!1,yt=1e3,gt=0,bt=1;return{computeAsyncExpiration:f,computeExpirationForFiber:h,scheduleWork:p,batchedUpdates:function(t,e){var n=mt;mt=!0;try{return t(e)}finally{(mt=n)||ut||b(1,null)}},unbatchedUpdates:function(t){if(mt&&!vt){vt=!0;try{return t()}finally{vt=!1}}return t()},flushSync:function(t){var e=mt;mt=!0;try{t:{var n=W;W=1;try{var i=t();break t}finally{W=n}i=void 0}return i}finally{mt=e,ut&&r("187"),b(1,null)}},deferredUpdates:function(t){var e=W;W=f();try{return t()}finally{W=e}}}}function je(t){function e(t){return null===(t=Ot(t))?null:t.stateNode}var n=t.getPublicInstance,i=(t=Ne(t)).computeAsyncExpiration,o=t.computeExpirationForFiber,a=t.scheduleWork;return{createContainer:function(t,e){var n=new oe(3,null,0);return t={current:n,containerInfo:t,pendingChildren:null,remainingExpirationTime:0,isReadyForCommit:!1,finishedWork:null,context:null,pendingContext:null,hydrate:e,nextScheduledRoot:null},n.stateNode=t},updateContainer:function(t,e,n,s){var u=e.current;if(n){var c;t:{for(2===Et(n=n._reactInternalFiber)&&2===n.tag||r("170"),c=n;3!==c.tag;){if(Zt(c)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break t}(c=c.return)||r("171")}c=c.stateNode.context}n=Zt(n)?ne(n,c):c}else n=Pn;null===e.context?e.context=n:e.pendingContext=n,e=void 0===(e=s)?null:e,be(u,{expirationTime:s=null!=t&&null!=t.type&&null!=t.type.prototype&&!0===t.type.prototype.unstable_isAsyncReactComponent?i():o(u),partialState:{element:t},callback:e,isReplace:!1,isForced:!1,nextCallback:null,next:null}),a(u,s)},batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,flushSync:t.flushSync,getPublicRootInstance:function(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:return n(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:e,findHostInstanceWithNoPortals:function(t){return null===(t=Pt(t))?null:t.stateNode},injectIntoDevTools:function(t){var n=t.findFiberByHostInstance;return de(wn({},t,{findHostInstanceByFiber:function(t){return e(t)},findFiberByHostInstance:function(t){return n?n(t):null}}))}}}function De(t){return!!Ki.hasOwnProperty(t)||!Vi.hasOwnProperty(t)&&(qi.test(t)?Ki[t]=!0:(Vi[t]=!0,!1))}function Le(t,e,n){var r=a(e);if(r&&o(e,n)){var i=r.mutationMethod;i?i(t,n):null==n||r.hasBooleanValue&&!n||r.hasNumericValue&&isNaN(n)||r.hasPositiveNumericValue&&1>n||r.hasOverloadedBooleanValue&&!1===n?Fe(t,e):r.mustUseProperty?t[r.propertyName]=n:(e=r.attributeName,(i=r.attributeNamespace)?t.setAttributeNS(i,e,""+n):r.hasBooleanValue||r.hasOverloadedBooleanValue&&!0===n?t.setAttribute(e,""):t.setAttribute(e,""+n))}else Ue(t,e,o(e,n)?n:null)}function Ue(t,e,n){De(e)&&(null==n?t.removeAttribute(e):t.setAttribute(e,""+n))}function Fe(t,e){var n=a(e);n?(e=n.mutationMethod)?e(t,void 0):n.mustUseProperty?t[n.propertyName]=!n.hasBooleanValue&&"":t.removeAttribute(n.attributeName):t.removeAttribute(e)}function Be(t,e){var n=e.value,r=e.checked;return wn({type:void 0,step:void 0,min:void 0,max:void 0},e,{defaultChecked:void 0,defaultValue:void 0,value:null!=n?n:t._wrapperState.initialValue,checked:null!=r?r:t._wrapperState.initialChecked})}function ze(t,e){var n=e.defaultValue;t._wrapperState={initialChecked:null!=e.checked?e.checked:e.defaultChecked,initialValue:null!=e.value?e.value:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function He(t,e){var n=e.checked;null!=n&&Le(t,"checked",n||!1),null!=(n=e.value)?0===n&&""===t.value?t.value="0":"number"===e.type?(n!=(e=parseFloat(t.value)||0)||n==e&&t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n):(null==e.value&&null!=e.defaultValue&&t.defaultValue!==""+e.defaultValue&&(t.defaultValue=""+e.defaultValue),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked))}function qe(t,e){switch(e.type){case"submit":case"reset":break;case"color":case"date":case"datetime":case"datetime-local":case"month":case"time":case"week":t.value="",t.value=t.defaultValue;break;default:t.value=t.value}""!==(e=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function Ve(t){var e="";return gn.Children.forEach(t,function(t){null==t||"string"!=typeof t&&"number"!=typeof t||(e+=t)}),e}function Ke(t,e){return t=wn({children:void 0},e),(e=Ve(e.children))&&(t.children=e),t}function We(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i=e.length||r("93"),e=e[0]),n=""+e),null==n&&(n=""),i=n),t._wrapperState={initialValue:""+i}}function Xe(t,e){var n=e.value;null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Je(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function Qe(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ze(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?Qe(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function tn(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}function en(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=e[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Ji.hasOwnProperty(i)&&Ji[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}function nn(t,e,n){e&&(Zi[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&r("137",t,n()),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&r("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||r("61")),null!=e.style&&"object"!=typeof e.style&&r("62",n()))}function rn(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function on(t,e){var n=jt(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=$n[e];for(var r=0;r<\/script>",t=t.removeChild(t.firstChild)):t="string"==typeof e.is?n.createElement(t,{is:e.is}):n.createElement(t):t=n.createElementNS(r,t),t}function sn(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function un(t,e,n,r){var i=rn(e,n);switch(e){case"iframe":case"object":It("topLoad","load",t);var o=n;break;case"video":case"audio":for(o in no)no.hasOwnProperty(o)&&It(o,no[o],t);o=n;break;case"source":It("topError","error",t),o=n;break;case"img":case"image":It("topError","error",t),It("topLoad","load",t),o=n;break;case"form":It("topReset","reset",t),It("topSubmit","submit",t),o=n;break;case"details":It("topToggle","toggle",t),o=n;break;case"input":ze(t,n),o=Be(t,n),It("topInvalid","invalid",t),on(r,"onChange");break;case"option":o=Ke(t,n);break;case"select":Ge(t,n),o=wn({},n,{value:void 0}),It("topInvalid","invalid",t),on(r,"onChange");break;case"textarea":$e(t,n),o=Ye(t,n),It("topInvalid","invalid",t),on(r,"onChange");break;default:o=n}nn(e,o,eo);var a,s=o;for(a in s)if(s.hasOwnProperty(a)){var u=s[a];"style"===a?en(t,u,eo):"dangerouslySetInnerHTML"===a?null!=(u=u?u.__html:void 0)&&Yi(t,u):"children"===a?"string"==typeof u?("textarea"!==e||""!==u)&&Xi(t,u):"number"==typeof u&&Xi(t,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Yn.hasOwnProperty(a)?null!=u&&on(r,a):i?Ue(t,a,u):null!=u&&Le(t,a,u))}switch(e){case"input":ot(t),qe(t,n);break;case"textarea":ot(t),Je(t,n);break;case"option":null!=n.value&&t.setAttribute("value",n.value);break;case"select":t.multiple=!!n.multiple,null!=(e=n.value)?We(t,!!n.multiple,e,!1):null!=n.defaultValue&&We(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(t.onclick=_n)}}function cn(t,e,n,r,i){var o=null;switch(e){case"input":n=Be(t,n),r=Be(t,r),o=[];break;case"option":n=Ke(t,n),r=Ke(t,r),o=[];break;case"select":n=wn({},n,{value:void 0}),r=wn({},r,{value:void 0}),o=[];break;case"textarea":n=Ye(t,n),r=Ye(t,r),o=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(t.onclick=_n)}nn(e,r,eo);var a,s;t=null;for(a in n)if(!r.hasOwnProperty(a)&&n.hasOwnProperty(a)&&null!=n[a])if("style"===a)for(s in e=n[a])e.hasOwnProperty(s)&&(t||(t={}),t[s]="");else"dangerouslySetInnerHTML"!==a&&"children"!==a&&"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(Yn.hasOwnProperty(a)?o||(o=[]):(o=o||[]).push(a,null));for(a in r){var u=r[a];if(e=null!=n?n[a]:void 0,r.hasOwnProperty(a)&&u!==e&&(null!=u||null!=e))if("style"===a)if(e){for(s in e)!e.hasOwnProperty(s)||u&&u.hasOwnProperty(s)||(t||(t={}),t[s]="");for(s in u)u.hasOwnProperty(s)&&e[s]!==u[s]&&(t||(t={}),t[s]=u[s])}else t||(o||(o=[]),o.push(a,t)),t=u;else"dangerouslySetInnerHTML"===a?(u=u?u.__html:void 0,e=e?e.__html:void 0,null!=u&&e!==u&&(o=o||[]).push(a,""+u)):"children"===a?e===u||"string"!=typeof u&&"number"!=typeof u||(o=o||[]).push(a,""+u):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&(Yn.hasOwnProperty(a)?(null!=u&&on(i,a),o||e===u||(o=[])):(o=o||[]).push(a,u))}return t&&(o=o||[]).push("style",t),o}function ln(t,e,n,r,i){rn(n,r),r=rn(n,i);for(var o=0;o=(u={attributeName:u,attributeNamespace:null,propertyName:s,mutationMethod:null,mustUseProperty:i(c,e.MUST_USE_PROPERTY),hasBooleanValue:i(c,e.HAS_BOOLEAN_VALUE),hasNumericValue:i(c,e.HAS_NUMERIC_VALUE),hasPositiveNumericValue:i(c,e.HAS_POSITIVE_NUMERIC_VALUE),hasOverloadedBooleanValue:i(c,e.HAS_OVERLOADED_BOOLEAN_VALUE),hasStringBooleanValue:i(c,e.HAS_STRING_BOOLEAN_VALUE)}).hasBooleanValue+u.hasNumericValue+u.hasOverloadedBooleanValue||r("50",s),a.hasOwnProperty(s)&&(u.attributeName=a[s]),o.hasOwnProperty(s)&&(u.attributeNamespace=o[s]),t.hasOwnProperty(s)&&(u.mutationMethod=t[s]),In[s]=u}}},In={},Mn=Cn,An=Mn.MUST_USE_PROPERTY,Rn=Mn.HAS_BOOLEAN_VALUE,Nn=Mn.HAS_NUMERIC_VALUE,jn=Mn.HAS_POSITIVE_NUMERIC_VALUE,Dn=Mn.HAS_OVERLOADED_BOOLEAN_VALUE,Ln=Mn.HAS_STRING_BOOLEAN_VALUE,Un={Properties:{allowFullScreen:Rn,async:Rn,autoFocus:Rn,autoPlay:Rn,capture:Dn,checked:An|Rn,cols:jn,contentEditable:Ln,controls:Rn,default:Rn,defer:Rn,disabled:Rn,download:Dn,draggable:Ln,formNoValidate:Rn,hidden:Rn,loop:Rn,multiple:An|Rn,muted:An|Rn,noValidate:Rn,open:Rn,playsInline:Rn,readOnly:Rn,required:Rn,reversed:Rn,rows:jn,rowSpan:Nn,scoped:Rn,seamless:Rn,selected:An|Rn,size:jn,start:Nn,span:jn,spellCheck:Ln,style:0,tabIndex:0,itemScope:Rn,acceptCharset:0,className:0,htmlFor:0,httpEquiv:0,value:Ln},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMMutationMethods:{value:function(t,e){if(null==e)return t.removeAttribute("value");"number"!==t.type||!1===t.hasAttribute("value")?t.setAttribute("value",""+e):t.validity&&!t.validity.badInput&&t.ownerDocument.activeElement!==t&&t.setAttribute("value",""+e)}}},Fn=Mn.HAS_STRING_BOOLEAN_VALUE,Bn={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},zn={Properties:{autoReverse:Fn,externalResourcesRequired:Fn,preserveAlpha:Fn},DOMAttributeNames:{autoReverse:"autoReverse",externalResourcesRequired:"externalResourcesRequired",preserveAlpha:"preserveAlpha"},DOMAttributeNamespaces:{xlinkActuate:Bn.xlink,xlinkArcrole:Bn.xlink,xlinkHref:Bn.xlink,xlinkRole:Bn.xlink,xlinkShow:Bn.xlink,xlinkTitle:Bn.xlink,xlinkType:Bn.xlink,xmlBase:Bn.xml,xmlLang:Bn.xml,xmlSpace:Bn.xml}},Hn=/[\-\:]([a-z])/g;"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode x-height xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type xml:base xmlns:xlink xml:lang xml:space".split(" ").forEach(function(t){var e=t.replace(Hn,s);zn.Properties[e]=0,zn.DOMAttributeNames[e]=t}),Mn.injectDOMPropertyConfig(Un),Mn.injectDOMPropertyConfig(zn);var qn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,injection:{injectErrorUtils:function(t){"function"!=typeof t.invokeGuardedCallback&&r("197"),u=t.invokeGuardedCallback}},invokeGuardedCallback:function(t,e,n,r,i,o,a,s,c){u.apply(qn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,r,i,o,a,s,u){if(qn.invokeGuardedCallback.apply(this,arguments),qn.hasCaughtError()){var c=qn.clearCaughtError();qn._hasRethrowError||(qn._hasRethrowError=!0,qn._rethrowError=c)}},rethrowCaughtError:function(){return c.apply(qn,arguments)},hasCaughtError:function(){return qn._hasCaughtError},clearCaughtError:function(){if(qn._hasCaughtError){var t=qn._caughtError;return qn._caughtError=null,qn._hasCaughtError=!1,t}r("198")}},Vn=null,Kn={},Wn=[],Gn={},Yn={},$n={},Xn=Object.freeze({plugins:Wn,eventNameDispatchConfigs:Gn,registrationNameModules:Yn,registrationNameDependencies:$n,possibleRegistrationNames:null,injectEventPluginOrder:h,injectEventPluginsByName:p}),Jn=null,Qn=null,Zn=null,tr=null,er={injectEventPluginOrder:h,injectEventPluginsByName:p},nr=Object.freeze({injection:er,getListener:w,extractEvents:_,enqueueEvents:E,processEventQueue:T}),rr=Math.random().toString(36).slice(2),ir="__reactInternalInstance$"+rr,or="__reactEventHandlers$"+rr,ar=Object.freeze({precacheFiberNode:function(t,e){e[ir]=t},getClosestInstanceFromNode:S,getInstanceFromNode:function(t){return!(t=t[ir])||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:x,getFiberCurrentPropsFromNode:O,updateFiberProps:function(t,e){t[or]=e}}),sr=Object.freeze({accumulateTwoPhaseDispatches:N,accumulateTwoPhaseDispatchesSkipTarget:function(t){v(t,M)},accumulateEnterLeaveDispatches:j,accumulateDirectDispatches:function(t){v(t,R)}}),ur=null,cr={_root:null,_startText:null,_fallbackText:null},lr="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),fr={type:null,target:null,currentTarget:_n.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};wn(F.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=_n.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=_n.thatReturnsTrue)},persist:function(){this.isPersistent=_n.thatReturnsTrue},isPersistent:_n.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e=parseInt(vr.version(),10))}var yr,gr=mr,br=bn.canUseDOM&&(!pr||dr&&8=dr),wr=String.fromCharCode(32),_r={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["topCompositionEnd","topKeyPress","topTextInput","topPaste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"topBlur topCompositionEnd topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"topBlur topCompositionStart topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"topBlur topCompositionUpdate topKeyDown topKeyPress topKeyUp topMouseDown".split(" ")}},Er=!1,Tr=!1,Sr={eventTypes:_r,extractEvents:function(t,e,n,r){var i;if(pr)t:{switch(t){case"topCompositionStart":var o=_r.compositionStart;break t;case"topCompositionEnd":o=_r.compositionEnd;break t;case"topCompositionUpdate":o=_r.compositionUpdate;break t}o=void 0}else Tr?K(t,n)&&(o=_r.compositionEnd):"topKeyDown"===t&&229===n.keyCode&&(o=_r.compositionStart);return o?(br&&(Tr||o!==_r.compositionStart?o===_r.compositionEnd&&Tr&&(i=L()):(cr._root=r,cr._startText=U(),Tr=!0)),o=q.getPooled(o,e,n,r),i?o.data=i:null!==(i=W(n))&&(o.data=i),N(o),i=o):i=null,(t=gr?G(t,n):Y(t,n))?(e=V.getPooled(_r.beforeInput,e,n,r),e.data=t,N(e)):e=null,[i,e]}},xr=null,Or=null,Pr=null,kr={injectFiberControlledHostComponent:function(t){xr=t}},Cr=Object.freeze({injection:kr,enqueueStateRestore:X,restoreStateIfNeeded:J}),Ir=!1,Mr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};bn.canUseDOM&&(yr=document.implementation&&document.implementation.hasFeature&&!0!==document.implementation.hasFeature("",""));var Ar={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Rr=null,Nr=null,jr=!1;bn.canUseDOM&&(jr=nt("input")&&(!document.documentMode||9=document.documentMode,Zr={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},ti=null,ei=null,ni=null,ri=!1,ii={eventTypes:Zr,extractEvents:function(t,e,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){t:{o=jt(o),i=$n.onSelect;for(var a=0;ae&&(e=8),Bi=e"+e+"",e=Gi.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),$i=/["'&<>]/;bn.canUseDOM&&("textContent"in document.documentElement||(tn=function(t,e){if(3===t.nodeType)t.nodeValue=e;else{if("boolean"==typeof e||"number"==typeof e)e=""+e;else{e=""+e;var n=$i.exec(e);if(n){var r,i="",o=0;for(r=n.index;rr&&(i=r,r=t,t=i),i=Lt(n,t);var o=Lt(n,r);if(i&&o&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)){var a=document.createRange();a.setStart(i.node,i.offset),e.removeAllRanges(),t>r?(e.addRange(a),e.extend(o.node,o.offset)):(a.setEnd(o.node,o.offset),e.addRange(a))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(On(n),n=0;n0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1]||e+"Subscription",a=function(t){function a(n,o){r(this,a);var s=i(this,t.call(this,n,o));return s[e]=n.store,s}return o(a,t),a.prototype.getChildContext=function(){var t;return t={},t[e]=this[e],t[n]=null,t},a.prototype.render=function(){return s.Children.only(this.props.children)},a}(s.Component);return a.propTypes={store:l.storeShape.isRequired,children:c.a.element.isRequired},a.childContextTypes=(t={},t[e]=l.storeShape.isRequired,t[n]=l.subscriptionShape,t),a}Object.defineProperty(e,"__esModule",{value:!0}),e.createProvider=a;var s=n(0),u=(n.n(s),n(2)),c=n.n(u),l=n(18);n(8);e.default=a()},function(t,e,n){"use strict";var r=n(6),i=n(58),o=n(59);t.exports=function(){function t(t,e,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function e(){return t}t.isRequired=t;var n={array:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e};return n.checkPropTypes=r,n.PropTypes=n,n}},function(t,e,n){"use strict";var r=function(t){};t.exports=function(t,e,n,i,o,a,s,u){if(r(e),!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,a,s,u],f=0;(c=new Error(e.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(t,e,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(){var t=[],e=[];return{clear:function(){e=o,t=o},notify:function(){for(var n=t=e,r=0;r=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e,n){for(var r=e.length-1;r>=0;r--){var i=e[r](t);if(i)return i}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function o(t,e){return t===e}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.connectHOC,n=void 0===e?s.default:e,a=t.mapStateToPropsFactories,d=void 0===a?l.default:a,m=t.mapDispatchToPropsFactories,v=void 0===m?c.default:m,y=t.mergePropsFactories,g=void 0===y?f.default:y,b=t.selectorFactory,w=void 0===b?h.default:b;return function(t,e,a){var s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},c=s.pure,l=void 0===c||c,f=s.areStatesEqual,h=void 0===f?o:f,m=s.areOwnPropsEqual,y=void 0===m?u.default:m,b=s.areStatePropsEqual,_=void 0===b?u.default:b,E=s.areMergedPropsEqual,T=void 0===E?u.default:E,S=r(s,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),x=i(t,d,"mapStateToProps"),O=i(e,v,"mapDispatchToProps"),P=i(a,g,"mergeProps");return n(w,p({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:x,initMapDispatchToProps:O,initMergeProps:P,pure:l,areStatesEqual:h,areOwnPropsEqual:y,areStatePropsEqual:_,areMergedPropsEqual:T},S))}}Object.defineProperty(e,"__esModule",{value:!0}),e.createConnect=a;var s=n(19),u=n(62),c=n(63),l=n(79),f=n(80),h=n(81),p=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(u)throw u;for(var i=!1,o={},a=0;a=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e,n,r){return function(i,o){return n(t(i,o),e(r,o),o)}}function o(t,e,n,r,i){function o(i,o){return d=i,m=o,v=t(d,m),y=e(r,m),g=n(v,y,m),p=!0,g}function a(){return v=t(d,m),e.dependsOnOwnProps&&(y=e(r,m)),g=n(v,y,m)}function s(){return t.dependsOnOwnProps&&(v=t(d,m)),e.dependsOnOwnProps&&(y=e(r,m)),g=n(v,y,m)}function u(){var e=t(d,m),r=!h(e,v);return v=e,r&&(g=n(v,y,m)),g}function c(t,e){var n=!f(e,m),r=!l(t,d);return d=t,m=e,n&&r?a():n?s():r?u():g}var l=i.areStatesEqual,f=i.areOwnPropsEqual,h=i.areStatePropsEqual,p=!1,d=void 0,m=void 0,v=void 0,y=void 0,g=void 0;return function(t,e){return p?c(t,e):o(t,e)}}Object.defineProperty(e,"__esModule",{value:!0}),e.impureFinalPropsSelectorFactory=i,e.pureFinalPropsSelectorFactory=o,e.default=function(t,e){var n=e.initMapStateToProps,a=e.initMapDispatchToProps,s=e.initMergeProps,u=r(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),c=n(t,u),l=a(t,u),f=s(t,u);return(u.pure?o:i)(c,l,f,t,u)};n(82)},function(t,e,n){"use strict";function r(t,e,n){if(!t)throw new Error("Unexpected value for "+e+" in "+n+".");"mapStateToProps"!==e&&"mapDispatchToProps"!==e||t.hasOwnProperty("dependsOnOwnProps")||Object(i.default)("The selector for "+e+" of "+n+" did not specify a value for dependsOnOwnProps.")}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,i){r(t,"mapStateToProps",i),r(e,"mapDispatchToProps",i),r(n,"mergeProps",i)};var i=n(8)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(84);n.d(e,"BrowserRouter",function(){return r.default});var i=n(86);n.d(e,"HashRouter",function(){return i.default});var o=n(32);n.d(e,"Link",function(){return o.default});var a=n(88);n.d(e,"MemoryRouter",function(){return a.default});var s=n(91);n.d(e,"NavLink",function(){return s.default});var u=n(94);n.d(e,"Prompt",function(){return u.default});var c=n(96);n.d(e,"Redirect",function(){return c.default});var l=n(33);n.d(e,"Route",function(){return l.default});var f=n(12);n.d(e,"Router",function(){return f.default});var h=n(102);n.d(e,"StaticRouter",function(){return h.default});var p=n(104);n.d(e,"Switch",function(){return p.default});var d=n(106);n.d(e,"matchPath",function(){return d.default});var m=n(107);n.d(e,"withRouter",function(){return m.default})},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n.n(a),u=n(0),c=n.n(u),l=n(2),f=n.n(l),h=n(85),p=n.n(h),d=n(12),m=function(t){function e(){var n,o,a;r(this,e);for(var s=arguments.length,u=Array(s),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},e.prototype.render=function(){return c.a.createElement(d.default,{history:this.history,children:this.props.children})},e}(c.a.Component);m.propTypes={basename:f.a.string,forceRefresh:f.a.bool,getUserConfirmation:f.a.func,keyLength:f.a.number,children:f.a.node},e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(f.canUseDOM,"Browser history needs a DOM");var e=window.history,n=(0,f.supportsHistory)(),r=!(0,f.supportsPopStateOnHashChange)(),p=t.forceRefresh,d=void 0!==p&&p,m=t.getUserConfirmation,v=void 0===m?f.getConfirmation:m,y=t.keyLength,g=void 0===y?6:y,b=t.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(t.basename)):"",w=function(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return(0,a.default)(!b||(0,c.hasBasename)(o,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+b+'".'),b&&(o=(0,c.stripBasename)(o,b)),(0,u.createLocation)(o,r,n)},_=function(){return Math.random().toString(36).substr(2,g)},E=(0,l.default)(),T=function(t){o(D,t),D.length=e.length,E.notifyListeners(D.location,D.action)},S=function(t){(0,f.isExtraneousPopstateEvent)(t)||P(w(t.state))},x=function(){P(w(h()))},O=!1,P=function(t){O?(O=!1,T()):E.confirmTransitionTo(t,"POP",v,function(e){e?T({action:"POP",location:t}):k(t)})},k=function(t){var e=D.location,n=I.indexOf(e.key);-1===n&&(n=0);var r=I.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(O=!0,A(i))},C=w(h()),I=[C.key],M=function(t){return b+(0,c.createPath)(t)},A=function(t){e.go(t)},R=0,N=function(t){1===(R+=t)?((0,f.addEventListener)(window,"popstate",S),r&&(0,f.addEventListener)(window,"hashchange",x)):0===R&&((0,f.removeEventListener)(window,"popstate",S),r&&(0,f.removeEventListener)(window,"hashchange",x))},j=!1,D={length:e.length,action:"POP",location:C,createHref:M,push:function(t,r){(0,a.default)(!("object"===(void 0===t?"undefined":i(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,u.createLocation)(t,r,_(),D.location);E.confirmTransitionTo(o,"PUSH",v,function(t){if(t){var r=M(o),i=o.key,s=o.state;if(n)if(e.pushState({key:i,state:s},null,r),d)window.location.href=r;else{var u=I.indexOf(D.location.key),c=I.slice(0,-1===u?0:u+1);c.push(o.key),I=c,T({action:"PUSH",location:o})}else(0,a.default)(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(t,r){(0,a.default)(!("object"===(void 0===t?"undefined":i(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=(0,u.createLocation)(t,r,_(),D.location);E.confirmTransitionTo(o,"REPLACE",v,function(t){if(t){var r=M(o),i=o.key,s=o.state;if(n)if(e.replaceState({key:i,state:s},null,r),d)window.location.replace(r);else{var u=I.indexOf(D.location.key);-1!==u&&(I[u]=o.key),T({action:"REPLACE",location:o})}else(0,a.default)(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:A,goBack:function(){return A(-1)},goForward:function(){return A(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=E.setPrompt(t);return j||(N(1),j=!0),function(){return j&&(j=!1,N(-1)),e()}},listen:function(t){var e=E.appendListener(t);return N(1),function(){N(-1),e()}}};return D}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n.n(a),u=n(0),c=n.n(u),l=n(2),f=n.n(l),h=n(87),p=n.n(h),d=n(12),m=function(t){function e(){var n,o,a;r(this,e);for(var s=arguments.length,u=Array(s),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},e.prototype.render=function(){return c.a.createElement(d.default,{history:this.history,children:this.props.children})},e}(c.a.Component);m.propTypes={basename:f.a.string,getUserConfirmation:f.a.func,hashType:f.a.oneOf(["hashbang","noslash","slash"]),children:f.a.node},e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i=Object.assign||function(t){for(var e=1;e=0?e:0)+"#"+t)};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.default)(l.canUseDOM,"Hash history needs a DOM");var e=window.history,n=(0,l.supportsGoWithoutReloadUsingHash)(),r=t.getUserConfirmation,m=void 0===r?l.getConfirmation:r,v=t.hashType,y=void 0===v?"slash":v,g=t.basename?(0,u.stripTrailingSlash)((0,u.addLeadingSlash)(t.basename)):"",b=f[y],w=b.encodePath,_=b.decodePath,E=function(){var t=_(h());return(0,o.default)(!g||(0,u.hasBasename)(t,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+g+'".'),g&&(t=(0,u.stripBasename)(t,g)),(0,s.createLocation)(t)},T=(0,c.default)(),S=function(t){i(U,t),U.length=e.length,T.notifyListeners(U.location,U.action)},x=!1,O=null,P=function(){var t=h(),e=w(t);if(t!==e)d(e);else{var n=E(),r=U.location;if(!x&&(0,s.locationsAreEqual)(r,n))return;if(O===(0,u.createPath)(n))return;O=null,k(n)}},k=function(t){x?(x=!1,S()):T.confirmTransitionTo(t,"POP",m,function(e){e?S({action:"POP",location:t}):C(t)})},C=function(t){var e=U.location,n=R.lastIndexOf((0,u.createPath)(e));-1===n&&(n=0);var r=R.lastIndexOf((0,u.createPath)(t));-1===r&&(r=0);var i=n-r;i&&(x=!0,N(i))},I=h(),M=w(I);I!==M&&d(M);var A=E(),R=[(0,u.createPath)(A)],N=function(t){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},j=0,D=function(t){1===(j+=t)?(0,l.addEventListener)(window,"hashchange",P):0===j&&(0,l.removeEventListener)(window,"hashchange",P)},L=!1,U={length:e.length,action:"POP",location:A,createHref:function(t){return"#"+w(g+(0,u.createPath)(t))},push:function(t,e){(0,o.default)(void 0===e,"Hash history cannot push state; it is ignored");var n=(0,s.createLocation)(t,void 0,void 0,U.location);T.confirmTransitionTo(n,"PUSH",m,function(t){if(t){var e=(0,u.createPath)(n),r=w(g+e);if(h()!==r){O=e,p(r);var i=R.lastIndexOf((0,u.createPath)(U.location)),a=R.slice(0,-1===i?0:i+1);a.push(e),R=a,S({action:"PUSH",location:n})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}})},replace:function(t,e){(0,o.default)(void 0===e,"Hash history cannot replace state; it is ignored");var n=(0,s.createLocation)(t,void 0,void 0,U.location);T.confirmTransitionTo(n,"REPLACE",m,function(t){if(t){var e=(0,u.createPath)(n),r=w(g+e);h()!==r&&(O=e,d(r));var i=R.indexOf((0,u.createPath)(U.location));-1!==i&&(R[i]=e),S({action:"REPLACE",location:n})}})},go:N,goBack:function(){return N(-1)},goForward:function(){return N(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=T.setPrompt(t);return L||(D(1),L=!0),function(){return L&&(L=!1,D(-1)),e()}},listen:function(t){var e=T.appendListener(t);return D(1),function(){D(-1),e()}}};return U}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(89);e.default=r.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(1),s=n.n(a),u=n(0),c=n.n(u),l=n(2),f=n.n(l),h=n(90),p=n.n(h),d=n(13),m=function(t){function e(){var n,o,a;r(this,e);for(var s=arguments.length,u=Array(s),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},e.prototype.render=function(){return c.a.createElement(d.default,{history:this.history,children:this.props.children})},e}(c.a.Component);m.propTypes={initialEntries:f.a.array,initialIndex:f.a.number,getUserConfirmation:f.a.func,keyLength:f.a.number,children:f.a.node},e.default=m},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}e.__esModule=!0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,f=t.initialIndex,h=void 0===f?0:f,p=t.keyLength,d=void 0===p?6:p,m=(0,c.default)(),v=function(t){o(E,t),E.length=E.entries.length,m.notifyListeners(E.location,E.action)},y=function(){return Math.random().toString(36).substr(2,d)},g=l(h,0,r.length-1),b=r.map(function(t){return"string"==typeof t?(0,u.createLocation)(t,void 0,y()):(0,u.createLocation)(t,void 0,t.key||y())}),w=s.createPath,_=function(t){var n=l(E.index+t,0,E.entries.length-1),r=E.entries[n];m.confirmTransitionTo(r,"POP",e,function(t){t?v({action:"POP",location:r,index:n}):v()})},E={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:w,push:function(t,n){(0,a.default)(!("object"===(void 0===t?"undefined":i(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,u.createLocation)(t,n,y(),E.location);m.confirmTransitionTo(r,"PUSH",e,function(t){if(t){var e=E.index+1,n=E.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),v({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,n){(0,a.default)(!("object"===(void 0===t?"undefined":i(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=(0,u.createLocation)(t,n,y(),E.location);m.confirmTransitionTo(r,"REPLACE",e,function(t){t&&(E.entries[E.index]=r,v({action:"REPLACE",location:r}))})},go:_,goBack:function(){return _(-1)},goForward:function(){return _(1)},canGo:function(t){var e=E.index+t;return e>=0&&e0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(t)},listen:function(t){return m.appendListener(t)}};return E}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n.n(i),a=n(2),s=n.n(a),u=n(33),c=n(32),l=Object.assign||function(t){for(var e=1;e outside a "),this.props.when&&this.enable(this.props.message)},e.prototype.componentWillReceiveProps=function(t){t.when?this.props.when&&this.props.message===t.message||this.enable(t.message):this.disable()},e.prototype.componentWillUnmount=function(){this.disable()},e.prototype.render=function(){return null},e}(s.a.Component);h.propTypes={when:c.a.bool,message:c.a.oneOfType([c.a.func,c.a.string]).isRequired},h.defaultProps={when:!0},h.contextTypes={router:c.a.shape({history:c.a.shape({block:c.a.func.isRequired}).isRequired}).isRequired},e.default=h},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(97);e.default=r.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=n.n(a),u=n(2),c=n.n(u),l=n(1),f=n.n(l),h=n(3),p=n.n(h),d=n(98),m=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},e.prototype.componentWillMount=function(){p()(this.context.router,"You should not use outside a "),this.isStatic()&&this.perform()},e.prototype.componentDidMount=function(){this.isStatic()||this.perform()},e.prototype.componentDidUpdate=function(t){var e=Object(d.createLocation)(t.to),n=Object(d.createLocation)(this.props.to);Object(d.locationsAreEqual)(e,n)?f()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},e.prototype.perform=function(){var t=this.context.router.history,e=this.props,n=e.push,r=e.to;n?t.push(r):t.replace(r)},e.prototype.render=function(){return null},e}(s.a.Component);m.propTypes={push:c.a.bool,from:c.a.string,to:c.a.oneOfType([c.a.string,c.a.object]).isRequired},m.defaultProps={push:!1},m.contextTypes={router:c.a.shape({history:c.a.shape({push:c.a.func.isRequired,replace:c.a.func.isRequired}).isRequired,staticContext:c.a.object}).isRequired},e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(99);n.d(e,"createBrowserHistory",function(){return r.default});var i=n(100);n.d(e,"createHashHistory",function(){return i.default});var o=n(101);n.d(e,"createMemoryHistory",function(){return o.default});var a=n(7);n.d(e,"createLocation",function(){return a.createLocation}),n.d(e,"locationsAreEqual",function(){return a.locationsAreEqual});var s=n(5);n.d(e,"parsePath",function(){return s.parsePath}),n.d(e,"createPath",function(){return s.createPath})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(7),u=n(5),c=n(15),l=n(35),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};a()(l.canUseDOM,"Browser history needs a DOM");var e=window.history,n=Object(l.supportsHistory)(),r=!Object(l.supportsPopStateOnHashChange)(),o=t.forceRefresh,d=void 0!==o&&o,m=t.getUserConfirmation,v=void 0===m?l.getConfirmation:m,y=t.keyLength,g=void 0===y?6:y,b=t.basename?Object(u.stripTrailingSlash)(Object(u.addLeadingSlash)(t.basename)):"",w=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,a=o.pathname+o.search+o.hash;return i()(!b||Object(u.hasBasename)(a,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+b+'".'),b&&(a=Object(u.stripBasename)(a,b)),Object(s.createLocation)(a,r,n)},_=function(){return Math.random().toString(36).substr(2,g)},E=Object(c.default)(),T=function(t){h(D,t),D.length=e.length,E.notifyListeners(D.location,D.action)},S=function(t){Object(l.isExtraneousPopstateEvent)(t)||P(w(t.state))},x=function(){P(w(p()))},O=!1,P=function(t){O?(O=!1,T()):E.confirmTransitionTo(t,"POP",v,function(e){e?T({action:"POP",location:t}):k(t)})},k=function(t){var e=D.location,n=I.indexOf(e.key);-1===n&&(n=0);var r=I.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(O=!0,A(i))},C=w(p()),I=[C.key],M=function(t){return b+Object(u.createPath)(t)},A=function(t){e.go(t)},R=0,N=function(t){1===(R+=t)?(Object(l.addEventListener)(window,"popstate",S),r&&Object(l.addEventListener)(window,"hashchange",x)):0===R&&(Object(l.removeEventListener)(window,"popstate",S),r&&Object(l.removeEventListener)(window,"hashchange",x))},j=!1,D={length:e.length,action:"POP",location:C,createHref:M,push:function(t,r){i()(!("object"===(void 0===t?"undefined":f(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(s.createLocation)(t,r,_(),D.location);E.confirmTransitionTo(o,"PUSH",v,function(t){if(t){var r=M(o),a=o.key,s=o.state;if(n)if(e.pushState({key:a,state:s},null,r),d)window.location.href=r;else{var u=I.indexOf(D.location.key),c=I.slice(0,-1===u?0:u+1);c.push(o.key),I=c,T({action:"PUSH",location:o})}else i()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},replace:function(t,r){i()(!("object"===(void 0===t?"undefined":f(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o=Object(s.createLocation)(t,r,_(),D.location);E.confirmTransitionTo(o,"REPLACE",v,function(t){if(t){var r=M(o),a=o.key,s=o.state;if(n)if(e.replaceState({key:a,state:s},null,r),d)window.location.replace(r);else{var u=I.indexOf(D.location.key);-1!==u&&(I[u]=o.key),T({action:"REPLACE",location:o})}else i()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},go:A,goBack:function(){return A(-1)},goForward:function(){return A(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=E.setPrompt(t);return j||(N(1),j=!0),function(){return j&&(j=!1,N(-1)),e()}},listen:function(t){var e=E.appendListener(t);return N(1),function(){N(-1),e()}}};return D}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n.n(r),o=n(3),a=n.n(o),s=n(7),u=n(5),c=n(15),l=n(35),f=Object.assign||function(t){for(var e=1;e=0?e:0)+"#"+t)};e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(l.canUseDOM,"Hash history needs a DOM");var e=window.history,n=Object(l.supportsGoWithoutReloadUsingHash)(),r=t.getUserConfirmation,o=void 0===r?l.getConfirmation:r,v=t.hashType,y=void 0===v?"slash":v,g=t.basename?Object(u.stripTrailingSlash)(Object(u.addLeadingSlash)(t.basename)):"",b=h[y],w=b.encodePath,_=b.decodePath,E=function(){var t=_(p());return i()(!g||Object(u.hasBasename)(t,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+t+'" to begin with "'+g+'".'),g&&(t=Object(u.stripBasename)(t,g)),Object(s.createLocation)(t)},T=Object(c.default)(),S=function(t){f(U,t),U.length=e.length,T.notifyListeners(U.location,U.action)},x=!1,O=null,P=function(){var t=p(),e=w(t);if(t!==e)m(e);else{var n=E(),r=U.location;if(!x&&Object(s.locationsAreEqual)(r,n))return;if(O===Object(u.createPath)(n))return;O=null,k(n)}},k=function(t){x?(x=!1,S()):T.confirmTransitionTo(t,"POP",o,function(e){e?S({action:"POP",location:t}):C(t)})},C=function(t){var e=U.location,n=R.lastIndexOf(Object(u.createPath)(e));-1===n&&(n=0);var r=R.lastIndexOf(Object(u.createPath)(t));-1===r&&(r=0);var i=n-r;i&&(x=!0,N(i))},I=p(),M=w(I);I!==M&&m(M);var A=E(),R=[Object(u.createPath)(A)],N=function(t){i()(n,"Hash history go(n) causes a full page reload in this browser"),e.go(t)},j=0,D=function(t){1===(j+=t)?Object(l.addEventListener)(window,"hashchange",P):0===j&&Object(l.removeEventListener)(window,"hashchange",P)},L=!1,U={length:e.length,action:"POP",location:A,createHref:function(t){return"#"+w(g+Object(u.createPath)(t))},push:function(t,e){i()(void 0===e,"Hash history cannot push state; it is ignored");var n=Object(s.createLocation)(t,void 0,void 0,U.location);T.confirmTransitionTo(n,"PUSH",o,function(t){if(t){var e=Object(u.createPath)(n),r=w(g+e);if(p()!==r){O=e,d(r);var o=R.lastIndexOf(Object(u.createPath)(U.location)),a=R.slice(0,-1===o?0:o+1);a.push(e),R=a,S({action:"PUSH",location:n})}else i()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),S()}})},replace:function(t,e){i()(void 0===e,"Hash history cannot replace state; it is ignored");var n=Object(s.createLocation)(t,void 0,void 0,U.location);T.confirmTransitionTo(n,"REPLACE",o,function(t){if(t){var e=Object(u.createPath)(n),r=w(g+e);p()!==r&&(O=e,m(r));var i=R.indexOf(Object(u.createPath)(U.location));-1!==i&&(R[i]=e),S({action:"REPLACE",location:n})}})},go:N,goBack:function(){return N(-1)},goForward:function(){return N(1)},block:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=T.setPrompt(t);return L||(D(1),L=!0),function(){return L&&(L=!1,D(-1)),e()}},listen:function(t){var e=T.appendListener(t);return D(1),function(){D(-1),e()}}};return U}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(1),i=n.n(r),o=n(5),a=n(7),s=n(15),u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c=Object.assign||function(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{},e=t.getUserConfirmation,n=t.initialEntries,r=void 0===n?["/"]:n,f=t.initialIndex,h=void 0===f?0:f,p=t.keyLength,d=void 0===p?6:p,m=Object(s.default)(),v=function(t){c(E,t),E.length=E.entries.length,m.notifyListeners(E.location,E.action)},y=function(){return Math.random().toString(36).substr(2,d)},g=l(h,0,r.length-1),b=r.map(function(t){return"string"==typeof t?Object(a.createLocation)(t,void 0,y()):Object(a.createLocation)(t,void 0,t.key||y())}),w=o.createPath,_=function(t){var n=l(E.index+t,0,E.entries.length-1),r=E.entries[n];m.confirmTransitionTo(r,"POP",e,function(t){t?v({action:"POP",location:r,index:n}):v()})},E={length:b.length,action:"POP",location:b[g],index:g,entries:b,createHref:w,push:function(t,n){i()(!("object"===(void 0===t?"undefined":u(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(a.createLocation)(t,n,y(),E.location);m.confirmTransitionTo(r,"PUSH",e,function(t){if(t){var e=E.index+1,n=E.entries.slice(0);n.length>e?n.splice(e,n.length-e,r):n.push(r),v({action:"PUSH",location:r,index:e,entries:n})}})},replace:function(t,n){i()(!("object"===(void 0===t?"undefined":u(t))&&void 0!==t.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=Object(a.createLocation)(t,n,y(),E.location);m.confirmTransitionTo(r,"REPLACE",e,function(t){t&&(E.entries[E.index]=r,v({action:"REPLACE",location:r}))})},go:_,goBack:function(){return _(-1)},goForward:function(){return _(1)},canGo:function(t){var e=E.index+t;return e>=0&&e0&&void 0!==arguments[0]&&arguments[0];return m.setPrompt(t)},listen:function(t){return m.appendListener(t)}};return E}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(103);e.default=r.default},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var s=n(1),u=n.n(s),c=n(3),l=n.n(c),f=n(0),h=n.n(f),p=n(2),d=n.n(p),m=n(4),v=(n.n(m),n(13)),y=Object.assign||function(t){for(var e=1;e",t)}},S=function(){},x=function(t){function e(){var n,r,a;i(this,e);for(var s=arguments.length,u=Array(s),c=0;c ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},e.prototype.render=function(){var t=this.props,e=t.basename,n=(t.context,t.location),i=r(t,["basename","context","location"]),o={createHref:this.createHref,action:"POP",location:w(e,_(n)),push:this.handlePush,replace:this.handleReplace,go:T("go"),goBack:T("goBack"),goForward:T("goForward"),listen:this.handleListen,block:this.handleBlock};return h.a.createElement(v.default,y({},i,{history:o}))},e}(h.a.Component);x.propTypes={basename:d.a.string,context:d.a.object.isRequired,location:d.a.oneOfType([d.a.string,d.a.object])},x.defaultProps={basename:"",location:"/"},x.childContextTypes={router:d.a.object.isRequired},e.default=x},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(105);e.default=r.default},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=n(0),s=n.n(a),u=n(2),c=n.n(u),l=n(1),f=n.n(l),h=n(3),p=n.n(h),d=n(14),m=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return o(e,t),e.prototype.componentWillMount=function(){p()(this.context.router,"You should not use outside a ")},e.prototype.componentWillReceiveProps=function(t){f()(!(t.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),f()(!(!t.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},e.prototype.render=function(){var t=this.context.router.route,e=this.props.children,n=this.props.location||t.location,r=void 0,i=void 0;return s.a.Children.forEach(e,function(e){if(s.a.isValidElement(e)){var o=e.props,a=o.path,u=o.exact,c=o.strict,l=o.sensitive,f=o.from,h=a||f;null==r&&(i=e,r=h?Object(d.default)(n.pathname,{path:h,exact:u,strict:c,sensitive:l}):t.match)}}),r?s.a.cloneElement(i,{location:n,computedMatch:r}):null},e}(s.a.Component);m.contextTypes={router:c.a.shape({route:c.a.object.isRequired}).isRequired},m.propTypes={children:c.a.node,location:c.a.object},e.default=m},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);e.default=r.default},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(108);e.default=r.default},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)e.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var i=n(0),o=n.n(i),a=n(2),s=n.n(a),u=n(20),c=n.n(u),l=n(34),f=Object.assign||function(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:r,n=null,o=null;return function(){return i(e,n,arguments)||(o=t.apply(null,arguments)),n=arguments,o}}function a(t){var e=Array.isArray(t[0])?t[0]:t;if(!e.every(function(t){return"function"==typeof t})){var n=e.map(function(t){return typeof t}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return e}function s(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:u;if("object"!=typeof t)throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+typeof t);var n=Object.keys(t);return e(n.map(function(e){return t[e]}),function(){for(var t=arguments.length,e=Array(t),r=0;re)throw Error("Bad port number "+e);t.Ia=e}else t.Ia=null}function h(t,e,n){e instanceof v?t.a=e:(n||(e=d(e,Va)),t.a=new v(e))}function p(t,e){return t?e?decodeURI(t):decodeURIComponent(t):""}function d(t,e,n){return"string"==typeof t?(t=encodeURI(t).replace(e,m),n&&(t=t.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),t):null}function m(t){return"%"+((t=t.charCodeAt(0))>>4&15).toString(16)+(15&t).toString(16)}function v(t){this.b=t||null}function y(t){var e=new v;if(e.b=t.b,t.a){var n,r={};for(n in t.a)r[n]=t.a[n].concat();e.a=r,e.c=t.c}return e}function g(){var t,e,n=new Promise(function(n,r){t=n,e=r});return n.resolve=t,n.reject=e,n}function b(t,e){var n=_();this.i=null==t.maxAttempts?n.maxAttempts:t.maxAttempts,this.f=null==t.baseDelay?n.baseDelay:t.baseDelay,this.h=null==t.fuzzFactor?n.fuzzFactor:t.fuzzFactor,this.g=null==t.backoffFactor?n.backoffFactor:t.backoffFactor,this.a=0,this.b=this.f,(this.c=e||!1)&&(this.a=1)}function w(e){if(e.a>=e.i){if(!e.c)return Promise.reject();e.a=1,e.b=e.f}var n=new g;return e.a?(t.setTimeout(n.resolve,e.b*(1+(2*Math.random()-1)*e.h)),e.b*=e.g):n.resolve(),e.a++,n}function _(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:0}}function E(t,e,n,r,i){var o,a=i in r;for(o in e){var s=i+"."+o,u=a?r[i]:n[o];(a||o in t)&&(void 0===e[o]?void 0===u||a?delete t[o]:t[o]=u:u.constructor==Object&&e[o]&&e[o].constructor==Object?(t[o]||(t[o]=u),E(t[o],e[o],u,r,s)):typeof e[o]==typeof u&&null!=e[o]&&e[o].constructor==u.constructor&&(t[o]=e[o]))}}function T(t){return JSON.parse(JSON.stringify(t))}function S(t,e){return t.reduce(function(t,e,n){return e.catch(t.bind(null,n))}.bind(null,e),Promise.reject())}function x(t,e){return t.concat(e)}function O(){}function P(t){return null!=t}function k(t,e,n){return n.indexOf(t)==e}function C(t){this.f=!1,this.a=[],this.b=[],this.c=[],this.g=t||null}function I(t,e){return{uris:t,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:e}}function M(t,e,n,r,i,o){if(t.f)return Promise.reject();var a=new c(n.uris[i]),s=a.ca;if(s||(s=location.protocol,s=s.slice(0,-1),l(a,s),n.uris[i]=a.toString()),!(s=Wa[s]))return Promise.reject(new u(2,1,1e3,a));var f=Date.now();return s(n.uris[i],n,e).then(function(t){void 0==t.timeMs&&(t.timeMs=Date.now()-f);var n=Date.now(),r=Promise.resolve();return this.c.forEach(function(n){r=r.then(function(){return Promise.resolve(n(e,t))}.bind(this))}),(r=r.catch(function(t){var e=2;throw t instanceof u&&(e=t.severity),new u(e,1,1007,t)})).then(function(){return t.timeMs+=Date.now()-n,t.timeMs+=o,t})}.bind(t)).catch(function(t){if(t&&1==t.severity)return i=(i+1)%n.uris.length,w(r).then(function(){return M(this,e,n,r,i,o)}.bind(this),function(){throw t});throw t}.bind(t))}function A(t,e){for(var n=[],r=0;r=t[e]}.bind(null,e);if(!e[0]&&!e[2])return X(t,!1);if(!e[1]&&!e[3])return X(t,!0);if(n(0)&&n(1)&&n(2)&&n(3))return $(t);throw new u(2,2,2003)}function Q(t){t=unescape(encodeURIComponent(t));for(var e=new Uint8Array(t.length),n=0;nt.end(0)-t.start(0)?null:t.length?t.end(t.length-1):null}function Ot(t,e){return!(!t||!t.length||1==t.length&&1e-6>t.end(0)-t.start(0))&&(e>=t.start(0)&&e<=t.end(t.length-1))}function Pt(t,e){if(!t||!t.length||1==t.length&&1e-6>t.end(0)-t.start(0))return 0;for(var n=0,r=t.length-1;0<=r&&t.end(r)>e;--r)n+=t.end(r)-Math.max(t.start(r),e);return n}function kt(t){this.f=null,this.c=t,this.h=0,this.g=1/0,this.a=this.b=null}function Ct(t,e){$a[t]=e.length?Mt.bind(null,e):e}function It(t,e,n,r){return Promise.resolve().then(function(){if(this.f&&this.c)if(null==n||null==r)this.f.parseInit(e);else{var t=this.f.parseMedia(e,{periodStart:this.h,segmentStart:n,segmentEnd:r}).filter(function(t){return t.startTimen.end(0)-n.start(0)?null:1==n.length&&0>n.start(0)?0:n.length?n.start(0):null;return n}function Dt(t,e){try{return t.c[e].buffered}catch(t){return null}}function Lt(t,e,n,r,i){return"text"==e?It(t.a,n,r,i):Bt(t,e,t.ve.bind(t,e,n))}function Ut(t,e){return"text"==e?t.a.remove(0,1/0):Bt(t,e,t.vc.bind(t,e,0,t.f.duration))}function Ft(t,e,n,r){return"text"==e?(t.a.h=n,null!=r&&(t.a.g=r),Promise.resolve()):(null==r&&(r=1/0),Promise.all([Bt(t,e,t.Kc.bind(t,e)),Bt(t,e,t.ke.bind(t,e,n)),Bt(t,e,t.he.bind(t,e,r))]))}function Bt(t,e,n){if(t.i)return Promise.reject();if(n={start:n,p:new g},t.b[e].push(n),1==t.b[e].length)try{n.start()}catch(r){"QuotaExceededError"==r.name?n.p.reject(new u(2,3,3017,e)):n.p.reject(new u(2,3,3015,r)),Ht(t,e)}return n.p}function zt(t,e){if(t.i)return Promise.reject();var n,r=[];for(n in t.c){var i=new g,o={start:function(t){t.resolve()}.bind(null,i),p:i};t.b[n].push(o),r.push(i),1==t.b[n].length&&o.start()}return Promise.all(r).then(function(){var t;try{e()}catch(t){var n=Promise.reject(new u(2,3,3015,t))}for(t in this.c)Ht(this,t);return n}.bind(t),function(){return Promise.reject()}.bind(t))}function Ht(t,e){t.b[e].shift();var n=t.b[e][0];if(n)try{n.start()}catch(r){n.p.reject(new u(2,3,3015,r)),Ht(t,e)}}function qt(t,e,n){return n==e||t>=Xa&&n==e.split("-")[0]||t>=Ja&&n.split("-")[0]==e.split("-")[0]}function Vt(t){t=t.toLowerCase().split("-");var e=Qa[t[0]];return e&&(t[0]=e),t.join("-")}function Kt(t,e,n){var r=t.video;return!(r&&(r.widthe.maxWidth||r.width>n.width||r.heighte.maxHeight||r.height>n.height||r.width*r.heighte.maxPixels)||t.bandwidthe.maxBandwidth)}function Wt(t,e,n){var r=!1;return t.variants.forEach(function(t){var i=t.allowedByApplication;t.allowedByApplication=Kt(t,e,n),i!=t.allowedByApplication&&(r=!0)}),r}function Gt(t,e,n){var r=e.video,i=e.audio;for(e=0;er.indexOf(e)||n&&(t.mimeType!=n.mimeType||t.codecs.split(".")[0]!=n.codecs.split(".")[0]))}function $t(t,e,n){var r=null;return Zt(t.variants).map(function(t){var i;i=t.video&&t.audio?n==t.video.id&&e==t.audio.id:t.video&&n==t.video.id||t.audio&&e==t.audio.id;var o="";t.video&&(o+=t.video.codecs),t.audio&&(""!=o&&(o+=", "),o+=t.audio.codecs,r=t.audio.label);var a=t.audio?t.audio.codecs:null,s=t.video?t.video.codecs:null,u=null;t.video?u=t.video.mimeType:t.audio&&(u=t.audio.mimeType);var c=null;t.audio?c=t.audio.kind:t.video&&(c=t.video.kind);var l=A((t.audio?t.audio.roles:[]).concat(t.video?t.video.roles:[]));return{id:t.id,active:i,type:"variant",bandwidth:t.bandwidth,language:t.language,label:r,kind:c||null,width:t.video?t.video.width:null,height:t.video?t.video.height:null,frameRate:t.video?t.video.frameRate:void 0,mimeType:u,codecs:o,audioCodec:a,videoCodec:s,primary:t.primary,roles:l,videoId:t.video?t.video.id:null,audioId:t.audio?t.audio.id:null,channelsCount:t.audio?t.audio.channelsCount:null,audioBandwidth:t.audio&&t.audio.bandwidth?t.audio.bandwidth:null,videoBandwidth:t.video&&t.video.bandwidth?t.video.bandwidth:null}})}function Xt(t,e){return t.textStreams.map(function(t){return{id:t.id,active:e==t.id,type:"text",language:t.language,label:t.label,kind:t.kind,mimeType:t.mimeType,codecs:t.codecs||null,audioCodec:null,videoCodec:null,primary:t.primary,roles:t.roles,channelsCount:null,audioBandwidth:null,videoBandwidth:null}})}function Jt(t,e){for(var n=0;n=t.periods[n].startTime)return n;return 0}function se(t,e){for(var n=0;ne?"-Infinity":"Infinity":e;return r}})}function he(t){return JSON.parse(t,function(t,e){return"NaN"==e?NaN:"-Infinity"==e?-1/0:"Infinity"==e?1/0:e&&"object"==typeof e&&"TimeRanges"==e.__type__?pe(e):e})}function pe(t){return{length:t.length,start:function(e){return t.start[e]},end:function(e){return t.end[e]}}}function de(t,e,n,r,i,o){this.D=t,this.h=e,this.I=n,this.l=!1,this.B=r,this.C=i,this.s=o,this.c=this.i=!1,this.w="",this.a=this.j=null,this.b={video:{},player:{}},this.m=0,this.f={},this.g=null}function me(t){for(var e in t.f){var n=t.f[e];delete t.f[e],n.reject(new u(1,7,7e3))}}function ve(t,e){var n=fe(e);t.a.sendMessage("urn:x-cast:com.google.shaka.v2",n,function(){},s)}function ye(){this.ub=new j,this.Za=this}function ge(t,e,n){ye.call(this),this.c=t,this.b=e,this.i=this.g=this.f=this.j=this.h=null,this.a=new de(n,this.qe.bind(this),this.re.bind(this),this.se.bind(this),this.te.bind(this),this.bc.bind(this)),be(this)}function be(t){t.a.init(),t.i=new D,Za.forEach(function(t){L(this.i,this.c,t,this.He.bind(this))}.bind(t)),rs.forEach(function(t){L(this.i,this.b,t,this.Rd.bind(this))}.bind(t)),t.h={};for(var e in t.c)Object.defineProperty(t.h,e,{configurable:!1,enumerable:!0,get:t.Ge.bind(t,e),set:t.Ie.bind(t,e)});t.j={};for(e in t.b)Object.defineProperty(t.j,e,{configurable:!1,enumerable:!0,get:t.Qd.bind(t,e)});t.f=new ye,t.f.Za=t.h,t.g=new ye,t.g.Za=t.j}function we(t,e,n,r){ye.call(this),this.a=t,this.b=e,this.j={video:t,player:e},this.l=n||function(){},this.m=r||function(t){return t},this.i=!1,this.f=!0,this.h=this.g=this.c=null,_e(this)}function _e(e){var n=cast.receiver.CastReceiverManager.getInstance();n.onSenderConnected=e.oc.bind(e),n.onSenderDisconnected=e.oc.bind(e),n.onSystemVolumeChanged=e.Sc.bind(e),e.g=n.getCastMessageBus("urn:x-cast:com.google.cast.media"),e.g.onMessage=e.rd.bind(e),e.c=n.getCastMessageBus("urn:x-cast:com.google.shaka.v2"),e.c.onMessage=e.Ed.bind(e),n.start(),Za.forEach(function(t){this.a.addEventListener(t,this.rc.bind(this,"video"))}.bind(e)),rs.forEach(function(t){this.b.addEventListener(t,this.rc.bind(this,"player"))}.bind(e)),cast.__platform__&&cast.__platform__.canDisplayType('video/mp4; codecs="avc1.640028"; width=3840; height=2160')?e.b.Pb(3840,2160):e.b.Pb(1920,1080),e.b.addEventListener("loading",function(){this.f=!1,Ee(this)}.bind(e)),e.a.addEventListener("playing",function(){this.f=!1,Ee(this)}.bind(e)),e.a.addEventListener("pause",function(){Ee(this)}.bind(e)),e.b.addEventListener("unloading",function(){this.f=!0,Ee(this)}.bind(e)),e.a.addEventListener("ended",function(){t.setTimeout(function(){this.a&&this.a.ended&&(this.f=!0,Ee(this))}.bind(this),5e3)}.bind(e))}function Ee(t){Promise.resolve().then(function(){this.dispatchEvent(new le("caststatuschanged")),xe(this,0)}.bind(t))}function Te(t,e,n){for(var r in e.player)t.b[r](e.player[r]);t.l(n),n=Promise.resolve();var i=t.a.autoplay;e.manifest&&(t.a.autoplay=!1,(n=t.b.load(e.manifest,e.startTime)).catch(function(t){this.b.dispatchEvent(new le("error",{detail:t}))}.bind(t))),n.then(function(){var t;for(t in e.video){var n=e.video[t];this.a[t]=n}for(t in e.playerAfterLoad)n=e.playerAfterLoad[t],this.b[t](n);this.a.autoplay=i,e.manifest&&(this.a.play(),xe(this,0))}.bind(t))}function Se(t,e,n,r){t.i&&(t=fe(e),r?n.getCastChannel(r).send(t):n.broadcast(t))}function xe(t,e,n){var r=fs,r={mediaSessionId:0,playbackRate:t.a.playbackRate,playerState:t.f?r.IDLE:t.b.Na?r.Gc:t.a.paused?r.Hc:r.Ic,currentTime:t.a.currentTime,supportedMediaCommands:15,volume:{level:t.a.volume,muted:t.a.muted}};n&&(r.media=n),Se(t,{requestId:e,type:"MEDIA_STATUS",status:[r]},t.g)}function Oe(t,e){var n=Pe(t,e);return 1!=n.length?null:n[0]}function Pe(t,e){return Array.prototype.filter.call(t.childNodes,function(t){return t.tagName==e})}function ke(t){var e=t.firstChild;return e&&e.nodeType==Node.TEXT_NODE?t.textContent.trim():null}function Ce(t,e,n,r){var i=null;return null!=(t=t.getAttribute(e))&&(i=n(t)),null==i?void 0!=r?r:null:i}function Ie(t){return t?(/^\d+\-\d+\-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t)&&(t+="Z"),t=Date.parse(t),isNaN(t)?null:Math.floor(t/1e3)):null}function Me(t){return t&&(t=/^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$/.exec(t))?(t=31536e3*Number(t[1]||null)+2592e3*Number(t[2]||null)+86400*Number(t[3]||null)+3600*Number(t[4]||null)+60*Number(t[5]||null)+Number(t[6]||null),isFinite(t)?t:null):null}function Ae(t){var e=/([0-9]+)-([0-9]+)/.exec(t);return e?(t=Number(e[1]),isFinite(t)?(e=Number(e[2]),isFinite(e)?{start:t,end:e}:null):null):null}function Re(t){return(t=Number(t))%1?null:t}function Ne(t){return!((t=Number(t))%1)&&0(m=m||0))if(h+1=m)break;m=Math.ceil((m-p)/d)-1}else{if(1/0==u)break;if(p/i>=u)break;m=Math.ceil((u*i-p)/d)-1}0>>31;var l=2147483647&l,f=r.u.F();if(r.u.J(4),1==a)throw new u(2,3,3006);i.push(new $e(i.length,e/o,(e+f)/o,function(){return n},t,t+l-1)),e+=f,t+=l}return i}function an(t){this.a=t}function sn(t,e){if(t.a.length){var n=t.a[t.a.length-1];n.startTime>e||(t.a[t.a.length-1]=new $e(n.position,n.startTime,e,n.a,n.V,n.K))}}function un(t){this.b=t,this.a=new Xe(t,0),ds||(ds=[new Uint8Array([255]),new Uint8Array([127,255]),new Uint8Array([63,255,255]),new Uint8Array([31,255,255,255]),new Uint8Array([15,255,255,255,255]),new Uint8Array([7,255,255,255,255,255]),new Uint8Array([3,255,255,255,255,255,255]),new Uint8Array([1,255,255,255,255,255,255,255])])}function cn(t){var e=ln(t);if(7=e&&!(n&1<<8-e);e++);if(8t||n&&t>=n?null:Math.floor(t/r)},getSegmentReference:function(t){var e=t*r;return 0>e||n&&e>=n?null:new $e(t,e,e+r,function(){var n=ze(a,u,t+i,s,e*o);return z(c,[n])},0,null)}}}function Pn(t,e){for(var n=[],r=0;re.l||(e.f=t.setTimeout(e.ue.bind(e),1e3*Math.max(Math.max(3,e.l)-n,0)))}function zn(t,e,n){e=e||{contentType:"",mimeType:"",codecs:"",containsEmsgBoxes:!1,frameRate:void 0,Db:null},n=n||e.X;var r=Pe(t,"BaseURL").map(ke),i=t.getAttribute("contentType")||e.contentType,o=t.getAttribute("mimeType")||e.mimeType,a=t.getAttribute("codecs")||e.codecs,s=Ce(t,"frameRate",De)||e.frameRate,u=!!Pe(t,"InbandEventStream").length,c=Hn(c=Pe(t,"AudioChannelConfiguration"))||e.Db;return i||(i=Wn(o,a)),{X:z(n,r),Ua:Oe(t,"SegmentBase")||e.Ua,pa:Oe(t,"SegmentList")||e.pa,Va:Oe(t,"SegmentTemplate")||e.Va,width:Ce(t,"width",je)||e.width,height:Ce(t,"height",je)||e.height,contentType:i,mimeType:o,codecs:a,frameRate:s,containsEmsgBoxes:u||e.containsEmsgBoxes,id:t.getAttribute("id"),Db:c}}function Hn(t){for(var e=0;e>=1;return t}}}return null}function qn(t){var e=0+(t.Ua?1:0);return e+=t.pa?1:0,(e+=t.Va?1:0)?(1!=e&&(t.Ua&&(t.pa=null),t.Va=null),!0):"text"==t.contentType||"application"==t.contentType}function Vn(t,e,n,r){return e=z(e,[n]),e=I(e,t.b.retryParameters),e.method=r,t.a.networkingEngine.request(0,e).then(function(t){if("HEAD"==r){if(!t.headers||!t.headers.date)return 0;t=t.headers.date}else t=$(t.data);return t=Date.parse(t),isNaN(t)?0:t-Date.now()})}function Kn(t,e,n,r){n=n.map(function(t){return{scheme:t.getAttribute("schemeIdUri"),value:t.getAttribute("value")}});var i=t.b.dash.clockSyncUri;return r&&!n.length&&i&&n.push({scheme:"urn:mpeg:dash:utc:http-head:2014",value:i}),S(n,function(t){var n=t.value;switch(t.scheme){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":return Vn(this,e,n,"HEAD");case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":return Vn(this,e,n,"GET");case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":return t=Date.parse(n),isNaN(t)?0:t-Date.now();case"urn:mpeg:dash:utc:http-ntp:2014":case"urn:mpeg:dash:utc:ntp:2014":case"urn:mpeg:dash:utc:sntp:2014":default:return Promise.reject()}}.bind(t)).catch(function(){return 0})}function Wn(t,e){return $a[Y(t,e)]?"text":t.split("/")[0]}function Gn(t,e,n,r){this.uri=t,this.type=e,this.T=n,this.segments=r||null}function Yn(t,e,n,r){this.id=t,this.name=e,this.a=n,this.value=r||null}function $n(t,e){this.name=t,this.value=e}function Xn(t,e,n){return n=n||null,(t=t.getAttribute(e))?t.value:n}function Jn(t,e){this.T=e,this.uri=t}function Qn(t,e){return t.filter(function(t){return t.name==e})}function Zn(t,e){var n=Qn(t,e);return n.length?n[0]:null}function tr(t,e,n){return t.filter(function(t){var r=t.getAttribute("TYPE");return t=t.getAttribute("GROUP-ID"),r.value==e&&t.value==n})}function er(t){this.b=t,this.a=0}function nr(t,e){e.lastIndex=t.a;var n=(n=e.exec(t.b))?{position:n.index,length:n[0].length,ae:n}:null;return t.a!=t.b.length&&n&&n.position==t.a?(t.a+=n.length,n.ae):null}function rr(t){return t.a==t.b.length?null:(t=nr(t,/[^ \t\n]*/gm))?t[0]:null}function ir(){this.a=0}function or(t,e,n){var r=(e=(e=$(e)).replace(/\r\n|\r(?=[^\n]|$)/gm,"\n").trim()).split(/\n+/m);if(!/^#EXTM3U($|[ \t\n])/m.test(r[0]))throw new u(2,4,4015);e=0;for(var i=[],o=1;or.position){var c=s.endTime-s.startTime,l=o,f=o+c,o=o+c;i.push(new $e(s.position,l,f,s.a,s.V,s.K))}}n=i,e.ce.lb(n),n.length&&(e.zb=n[n.length-1]),Zn(t.T,"EXT-X-ENDLIST")&&(t=e.zb.endTime,Nr(this,!1),this.a.ea(t))}.bind(t))}function fr(t,e,n){if(0!=(e=or(t.w,e,n)).type)throw new u(2,4,4022);return hr(t,e).then(function(t){this.b.filterAllPeriods([t]),this.f&&this.a.Cc(3*this.l),this.B={presentationTimeline:this.a,periods:[t],offlineSessionIds:[],minBufferTime:0}}.bind(t))}function hr(t,e){var n=e.T,r=Qn(e.T,"EXT-X-MEDIA").filter(function(t){return"SUBTITLES"==Ir(t,"TYPE")}.bind(t)).map(function(t){return vr(this,t,e)}.bind(t));return Promise.all(r).then(function(t){var r=Qn(n,"EXT-X-STREAM-INF").map(function(t){return pr(this,t,e)}.bind(this));return Promise.all(r).then(function(e){return e=e.reduce(x,[]),this.f||xr(this,e),{startTime:0,variants:e,textStreams:t}}.bind(this))}.bind(t))}function pr(t,e,n){var r=Xn(e,"CODECS","avc1.42E01E,mp4a.40.2").split(","),i=e.getAttribute("RESOLUTION"),o=null,a=null,s=Xn(e,"FRAME-RATE"),u=Number(Ir(e,"BANDWIDTH"));if(i)var c=i.value.split("x"),o=c[0],a=c[1];var l=Cr(t,n);n=Qn(n.T,"EXT-X-MEDIA");var f=Xn(e,"AUDIO"),h=Xn(e,"VIDEO");if(f?n=tr(n,"AUDIO",f):h&&(n=tr(n,"VIDEO",h)),c=Or("text",r)){var p=Xn(e,"SUBTITLES");p&&(p=tr(n,"SUBTITLES",p)).length&&(t.g[p[0].id].stream.codecs=c),r.splice(r.indexOf(c),1)}n=n.map(function(t){return yr(this,t,r,l)}.bind(t));var d=[],m=[];return Promise.all(n).then(function(t){if(f?d=t:h&&(m=t),d.length||m.length)if(d.length)if(Ir(e,"URI")==d[0].Mb){t="audio";var n=!0}else t="video";else t="audio";else n=!1,1==r.length?(t=Or("video",r),t=i||s||t?"video":"audio"):(t="video",r=[r.join(",")]);return n?Promise.resolve():br(this,e,r,t,l)}.bind(t)).then(function(t){return t&&("audio"==t.stream.type?d=[t]:m=[t]),dr(this,d,m,u,o,a,s)}.bind(t))}function dr(t,e,n,r,i,o,a){n.forEach(function(t){(t=t.stream)&&(t.width=Number(i)||void 0,t.height=Number(o)||void 0,t.frameRate=Number(a)||void 0)}.bind(t)),e.length||(e=[null]),n.length||(n=[null]);for(var s=[],u=0;un&&(t.c=n):(Nr(t,!0),t.c=n),t.l=Math.max(n,t.l)}}function Er(t,e){var n=null,r=0;t.f&&(n=Date.now()/1e3-e,r=3*t.l),t.a=new Mn(n,r),t.a.ob(!t.f)}function Tr(t){var e=Qn(t.T,"EXT-X-MAP");if(!e.length)return null;if(1t.Y()?t.ia():t.kb())}function Fr(e,n){null!=e.f&&(t.clearInterval(e.f),e.f=null),e.g=n,e.a.playbackRate=e.h||0>n?0:n,!e.h&&0>n&&(e.f=t.setInterval(function(){this.a.currentTime+=n/4}.bind(e),250))}function Br(t,e){var n=Ot.bind(null,t.a.buffered),r=1*Math.max(t.c.minBufferTime||0,t.l.rebufferingGoal),i=t.c.presentationTimeline,o=i.va(),a=i.Da(r),s=i.Da(5),r=i.Da(r+5);return e>o?o:e=a||n(e)?e:r}function zr(t,e,n){t.a.currentTime=n;var r=0,i=function(){!this.a||10<=r++||this.a.currentTime!=e||(this.a.currentTime=n,setTimeout(i,100))}.bind(t);setTimeout(i,100)}function Hr(t,e){var n=t.c.presentationTimeline.ia();return en?n:e)}function qr(t,e,n,r,i,o,a){this.a=t,this.B=e,this.g=n,this.w=r,this.l=i,this.h=o,this.C=a,this.c=[],this.j=new D,this.b=!1,this.i=-1,this.f=null,Kr(this)}function Vr(t){var e=T(t);return e.eventElement=t.eventElement,e}function Kr(e){Wr(e),e.f=t.setTimeout(e.D.bind(e),250)}function Wr(e){e.f&&(t.clearTimeout(e.f),e.f=null)}function Gr(t,e){this.a=e,this.b=t,this.h=null,this.i=1,this.m=Promise.resolve(),this.g=[],this.j={},this.c={},this.s=!1,this.w=null,this.f=this.l=!1}function Yr(t){return t.b.periods[ae(t.b,Lr(t.a.Sa))]}function $r(t){var e=t.c.video||t.c.audio;return e?t.b.periods[e.xa]:null}function Xr(t){return K(t.c,function(t){return t.oa||t.stream})}function Jr(t,e){var n=t.c.video;if(n){var r=n.stream;if(r)if(e){var i=r.trickModeVideo;if(i){var o=n.oa;o||(Zr(t,i,!1),n.oa=r)}}else(o=n.oa)&&(n.oa=null,Zr(t,o,!0))}}function Qr(t,e,n){e.video&&Zr(t,e.video,n),e.audio&&Zr(t,e.audio,n)}function Zr(t,e,n){var r=t.c[e.type];if(!r&&"text"==e.type&&t.h.ignoreTextStreamFailures)ni(t,{text:e});else if(r){var i=se(t.b,e);n&&i!=r.xa?ei(t):(r.oa&&(e.trickModeVideo?(r.oa=e,e=e.trickModeVideo):r.oa=null),(i=t.g[i])&&i.Ka&&(i=t.j[e.id])&&i.Ka&&r.stream!=e&&("text"==e.type&&Nt(t.a.M,Y(e.mimeType,e.codecs)),r.stream=e,r.mb=!0,n&&(r.ta?r.sb=!0:r.ya?(r.ra=!0,r.sb=!0):(bi(r),yi(t,r,!0)))))}}function ti(t){var e=Lr(t.a.Sa);Object.keys(t.c).every(function(t){var n=this.a.M;return"text"==t?(t=n.a,t=e>=t.b&&ee?t.a.M.ea(e):t.a.M.ea(Math.pow(2,32))}function ai(t,e){var n=Lr(t.a.Sa),r=e.Ea&&e.ja?t.b.periods[se(t.b,e.Ea)].startTime+e.ja.endTime:Math.max(n,e.wc),i=se(t.b,e.stream),o=ae(t.b,r),a=t.a.M,s=e.type;return"text"==s?(a=a.a,a=null==a.a||a.a=t.b.presentationTimeline.Y()?(e.endOfStream=!0,null):(e.endOfStream=!1,e.xa=o,o!=i?null:a>=s?.5:(r=t.a.M,o=e.type,r="text"==o?r.a.a:xt(Dt(r,o)),e.ja&&e.stream==e.Ea?(o=e.ja.position+1,r=si(t,e,i,o)):null==(o=e.ja?e.stream.findSegmentPosition(Math.max(0,t.b.periods[se(t.b,e.Ea)].startTime+e.ja.endTime-t.b.periods[i].startTime)):e.stream.findSegmentPosition(Math.max(0,(r||n)-t.b.periods[i].startTime)))?r=null:(a=null,null==r&&(a=si(t,e,i,Math.max(0,o-1))),r=a||si(t,e,i,o)),r?(e.wc=0,ui(t,e,n,i,r),null):1))}function si(t,e,n,r){return n=t.b.periods[n],(e=e.stream.getSegmentReference(r))?(t=t.b.presentationTimeline,r=t.va(),n.startTime+e.endTimer?null:e):null}function ui(t,e,n,r,i){var o=t.b.periods[r],a=e.stream,s=t.b.periods[r+1],u=null,u=s?s.startTime:t.b.presentationTimeline.Y();r=li(t,e,r,u),e.ya=!0,e.mb=!1,s=vi(t,i),Promise.all([r,s]).then(function(t){if(!this.f&&!this.l)return fi(this,e,n,o,a,i,t[1])}.bind(t)).then(function(){this.f||this.l||(e.ya=!1,e.Lb=!1,e.ra||this.a.Fb(),gi(this,e,0),pi(this,a))}.bind(t)).catch(function(t){this.f||this.l||(e.ya=!1,"text"==e.type&&this.h.ignoreTextStreamFailures?delete this.c.text:3017==t.code?ci(this,e,t):(e.Pa=!0,t.severity=2,wi(this,t)))}.bind(t))}function ci(t,e,n){if(!V(t.c).some(function(t){return t!=e&&t.Lb})){var r=Math.round(100*t.i);if(20=(n=n-r-t.h.bufferBehind)?Promise.resolve():t.a.M.remove(e.type,r,r+n).then(function(){}.bind(t))}function pi(t,e){if(!t.s&&(t.s=V(t.c).every(function(t){return"text"==t.type||!t.ra&&!t.ta&&t.ja}),t.s)){var n=se(t.b,e);for(t.g[n]||ri(t,n).then(function(){this.a.fc()}.bind(t)).catch(O),n=0;n=e.status&&202!=e.status)e.responseURL&&(t=e.responseURL),n({uri:t,data:e.response,headers:i,fromCache:!!i["x-shaka-from-cache"]});else{var o=null;try{o=J(e.response)}catch(t){}r(new u(401==e.status||403==e.status?2:1,1,1001,t,e.status,o,i))}},i.onerror=function(){r(new u(1,1,1002,t))},i.ontimeout=function(){r(new u(1,1,1003,t))};for(var o in e.headers)i.setRequestHeader(o,e.headers[o]);i.send(e.body)})}function Ei(){this.a=null,this.b=[],this.c={}}function Ti(t,e,n){return Oi(t,e,"readwrite",function(t){t.put(n)})}function Si(t,e,n){return Oi(t,"segment","readwrite",function(t){for(var r=0;r=t.length?Promise.resolve():Fi(this,t[e++]).then(n):Promise.reject(new u(2,9,9002))}.bind(this);return n()}.bind(t));return t.b={},t.i=Promise.all(n).then(function(){return Ti(this.j,"manifest",e)}.bind(t)).then(function(){this.l=[]}.bind(t)),t.i}function Fi(t,e){var n=I(e.uris,t.w);(e.V||null!=e.K)&&(n.headers.Range="bytes="+e.V+"-"+(null==e.K?"":e.K));var r;return t.s.request(1,n).then(function(t){return this.a?(r=t.data.byteLength,this.l.push(e.Nb.key),e.Nb.data=t.data,Ti(this.j,"segment",e.Nb)):Promise.reject(new u(2,9,9002))}.bind(t)).then(function(){if(!this.a)return Promise.reject(new u(2,9,9002));null==e.K?(this.a.size+=r,this.f+=e.Xb):this.h+=r;var t=(this.h+this.f)/(this.c+this.g),n=Ci(this.a);this.m.progressCallback(n,t)}.bind(t))}function Bi(){this.a=-1}function zi(t){var e=new Mn(null,0);e.ea(t.duration);var n=t.drmInfo?[t.drmInfo]:[];return{presentationTimeline:e,minBufferTime:10,offlineSessionIds:t.sessionIds,periods:t.periods.map(function(t){return Ii(t,n,e)})}}function Hi(t){if(/^offline:([0-9]+)$/.exec(t)){var e={uri:t,data:new ArrayBuffer(0),headers:{"content-type":"application/x-offline-manifest"}};return Promise.resolve(e)}if(e=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(t)){var n=Number(e[1]),r=ji();return r?r.init(Es).then(function(){return r.get("segment",n)}).then(function(e){return r.o().then(function(){if(!e)throw new u(2,9,9003,n);return{uri:t,data:e.data,headers:{}}})}):Promise.reject(new u(2,9,9e3))}return Promise.reject(new u(2,1,9004,t))}function qi(t){this.a=null;for(var e=0;e=t.endTime)return null;var e=new VTTCue(t.startTime,t.endTime,t.l);e.lineAlign=t.h,e.positionAlign=t.i,e.size=t.size;try{e.align=t.f}catch(t){}return"center"==t.f&&"center"!=e.align&&(e.position="auto",e.align="middle"),t.b==Us?e.vertical="lr":t.b==Fs&&(e.vertical="rl"),t.g==zs&&(e.snapToLines=!1),null!=t.c&&(e.line=t.c),null!=t.position&&(e.position=t.position),e}function Ki(t,e){for(var n=t.a.cues,r=[],i=0;i=r.a.length)t=n;else{var i=[];for(t=0;tt.a.indexOf("underline")&&t.a.push("underline");break;case"noUnderline":0<=t.a.indexOf("underline")&&N(t.a,"underline");break;case"lineThrough":0>t.a.indexOf("lineThrough")&&t.a.push("lineThrough");break;case"noLineThrough":0<=t.a.indexOf("lineThrough")&&N(t.a,"lineThrough");break;case"overline":0>t.a.indexOf("overline")&&t.a.push("overline");break;case"noOverline":0<=t.a.indexOf("overline")&&N(t.a,"overline")}}function Sa(t,e,n,r){return(t=Oa(t,n,r))?t:xa(e,n,r)}function xa(t,e,n){for(var r=_a(t),i=0;in.length)return null;var r=null,i=t;for(t=null;i&&!(t=i.getAttribute(e))&&(i=i.parentNode)instanceof Element;);if(e=t)for(t=0;tthis.a?t:Math.min(o(this.b),o(this.c))},e("shaka.util.Error",u),u.prototype.toString=function(){return"shaka.util.Error "+JSON.stringify(this,null," ")},u.Severity={RECOVERABLE:1,CRITICAL:2},u.Category={NETWORK:1,TEXT:2,MEDIA:3,MANIFEST:4,STREAMING:5,DRM:6,PLAYER:7,CAST:8,STORAGE:9},u.Code={UNSUPPORTED_SCHEME:1e3,BAD_HTTP_STATUS:1001,HTTP_ERROR:1002,TIMEOUT:1003,MALFORMED_DATA_URI:1004,UNKNOWN_DATA_URI_ENCODING:1005,REQUEST_FILTER_ERROR:1006,RESPONSE_FILTER_ERROR:1007,INVALID_TEXT_HEADER:2e3,INVALID_TEXT_CUE:2001,UNABLE_TO_DETECT_ENCODING:2003,BAD_ENCODING:2004,INVALID_XML:2005,INVALID_MP4_TTML:2007,INVALID_MP4_VTT:2008,BUFFER_READ_OUT_OF_BOUNDS:3e3,JS_INTEGER_OVERFLOW:3001,EBML_OVERFLOW:3002,EBML_BAD_FLOATING_POINT_SIZE:3003,MP4_SIDX_WRONG_BOX_TYPE:3004,MP4_SIDX_INVALID_TIMESCALE:3005,MP4_SIDX_TYPE_NOT_SUPPORTED:3006,WEBM_CUES_ELEMENT_MISSING:3007,WEBM_EBML_HEADER_ELEMENT_MISSING:3008,WEBM_SEGMENT_ELEMENT_MISSING:3009,WEBM_INFO_ELEMENT_MISSING:3010,WEBM_DURATION_ELEMENT_MISSING:3011,WEBM_CUE_TRACK_POSITIONS_ELEMENT_MISSING:3012,WEBM_CUE_TIME_ELEMENT_MISSING:3013,MEDIA_SOURCE_OPERATION_FAILED:3014,MEDIA_SOURCE_OPERATION_THREW:3015,VIDEO_ERROR:3016,QUOTA_EXCEEDED_ERROR:3017,UNABLE_TO_GUESS_MANIFEST_TYPE:4e3,DASH_INVALID_XML:4001,DASH_NO_SEGMENT_INFO:4002,DASH_EMPTY_ADAPTATION_SET:4003,DASH_EMPTY_PERIOD:4004,DASH_WEBM_MISSING_INIT:4005,DASH_UNSUPPORTED_CONTAINER:4006,DASH_PSSH_BAD_ENCODING:4007,DASH_NO_COMMON_KEY_SYSTEM:4008,DASH_MULTIPLE_KEY_IDS_NOT_SUPPORTED:4009,DASH_CONFLICTING_KEY_IDS:4010,UNPLAYABLE_PERIOD:4011,RESTRICTIONS_CANNOT_BE_MET:4012,NO_PERIODS:4014,HLS_PLAYLIST_HEADER_MISSING:4015,INVALID_HLS_TAG:4016,HLS_INVALID_PLAYLIST_HIERARCHY:4017,DASH_DUPLICATE_REPRESENTATION_ID:4018,HLS_MULTIPLE_MEDIA_INIT_SECTIONS_FOUND:4020,HLS_COULD_NOT_GUESS_MIME_TYPE:4021,HLS_MASTER_PLAYLIST_NOT_PROVIDED:4022,HLS_REQUIRED_ATTRIBUTE_MISSING:4023,HLS_REQUIRED_TAG_MISSING:4024,HLS_COULD_NOT_GUESS_CODECS:4025,HLS_KEYFORMATS_NOT_SUPPORTED:4026,DASH_UNSUPPORTED_XLINK_ACTUATE:4027,DASH_XLINK_DEPTH_LIMIT:4028,HLS_LIVE_CONTENT_NOT_SUPPORTED:4029,INVALID_STREAMS_CHOSEN:5005,NO_RECOGNIZED_KEY_SYSTEMS:6e3,REQUESTED_KEY_SYSTEM_CONFIG_UNAVAILABLE:6001,FAILED_TO_CREATE_CDM:6002,FAILED_TO_ATTACH_TO_VIDEO:6003,INVALID_SERVER_CERTIFICATE:6004,FAILED_TO_CREATE_SESSION:6005,FAILED_TO_GENERATE_LICENSE_REQUEST:6006,LICENSE_REQUEST_FAILED:6007,LICENSE_RESPONSE_REJECTED:6008,ENCRYPTED_CONTENT_WITHOUT_DRM_INFO:6010,NO_LICENSE_SERVER_GIVEN:6012,OFFLINE_SESSION_REMOVED:6013,EXPIRED:6014,LOAD_INTERRUPTED:7e3,CAST_API_UNAVAILABLE:8e3,NO_CAST_RECEIVERS:8001,ALREADY_CASTING:8002,UNEXPECTED_CAST_ERROR:8003,CAST_CANCELED_BY_USER:8004,CAST_CONNECTION_TIMED_OUT:8005,CAST_RECEIVER_APP_UNAVAILABLE:8006,STORAGE_NOT_SUPPORTED:9e3,INDEXED_DB_ERROR:9001,OPERATION_ABORTED:9002,REQUESTED_ITEM_NOT_FOUND:9003,MALFORMED_OFFLINE_URI:9004,CANNOT_STORE_LIVE_OFFLINE:9005,STORE_ALREADY_IN_PROGRESS:9006,NO_INIT_DATA_FOR_OFFLINE:9007,LOCAL_PLAYER_INSTANCE_REQUIRED:9008,CONTENT_UNSUPPORTED_BY_BROWSER:9009};var Ba=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#(.*))?$/;(Ua=c.prototype).ca="",Ua.Ba="",Ua.ha="",Ua.Ia=null,Ua.$="",Ua.ua="",Ua.toString=function(){var t=[],e=this.ca;if(e&&t.push(d(e,za,!0),":"),e=this.ha){t.push("//");var n=this.Ba;n&&t.push(d(n,za,!0),"@"),t.push(encodeURIComponent(e).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(e=this.Ia)&&t.push(":",String(e))}return(e=this.$)&&(this.ha&&"/"!=e.charAt(0)&&t.push("/"),t.push(d(e,"/"==e.charAt(0)?qa:Ha,!0))),(e=this.a.toString())&&t.push("?",e),(e=this.ua)&&t.push("#",d(e,Ka)),t.join("")},Ua.resolve=function(t){var e=new c(this);"data"===e.ca&&(e=new c);var n=!!t.ca;n?l(e,t.ca):n=!!t.Ba,n?e.Ba=t.Ba:n=!!t.ha,n?e.ha=t.ha:n=null!=t.Ia;i=t.$;if(n)f(e,t.Ia);else if(n=!!t.$)if("/"!=i.charAt(0)&&(this.ha&&!this.$?i="/"+i:-1!=(r=e.$.lastIndexOf("/"))&&(i=e.$.substr(0,r+1)+i)),".."==i||"."==i)i="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){for(var r=!i.lastIndexOf("/",0),i=i.split("/"),o=[],a=0;ar||n&&1e3>r)&&!this.a[e].ma&&(this.a.splice(e,1),t.close()),et(this.B)}},Ua.Td=function(){!q(this.w)&&W(this.w,function(t,e){return"expired"==e})&&this.g(new u(2,6,6014)),this.sa(this.w)},Ua.zd=function(){for(var t=0;t=this.a||(t<=this.b&&e>=this.a?this.b=this.a=null:t<=this.b&&ethis.b&&e>=this.a&&(this.a=t))}.bind(this))},Mt.prototype.parseInit=function(t){this.Ra(t,0,null,null)},Mt.prototype.parseMedia=function(t,e){return this.Ra(t,e.periodStart,e.segmentStart,e.segmentEnd)},(Ua=At.prototype).o=function(){this.i=!0;var t,e=[];for(t in this.b){var n=this.b[t],r=n[0];for(this.b[t]=n.slice(0,1),r&&e.push(r.p.catch(O)),r=1;r=i.bandwidth/this.a.bandwidthDowngradeTarget&&e<=o&&(n=i)}return this.f=Date.now(),n},ue.prototype.chooseVariant=ue.prototype.chooseVariant,ue.prototype.enable=function(){this.c=!0},ue.prototype.enable=ue.prototype.enable,ue.prototype.disable=function(){this.c=!1},ue.prototype.disable=ue.prototype.disable,ue.prototype.segmentDownloaded=function(t,e){var n=this.b;if(!(16e3>e)){var r=8e3*e/t,o=t/1e3;n.a+=e,i(n.b,o,r),i(n.c,o,r)}if(null!=this.f&&this.c)t:{if(this.i){if(Date.now()-this.f<1e3*this.a.switchInterval)break t}else{if(!(128e3<=this.b.a))break t;this.i=!0}n=this.chooseVariant(),this.b.getBandwidthEstimate(this.a.defaultBandwidthEstimate),this.h(n)}},ue.prototype.segmentDownloaded=ue.prototype.segmentDownloaded,ue.prototype.getBandwidthEstimate=function(){return this.b.getBandwidthEstimate(this.a.defaultBandwidthEstimate)},ue.prototype.getBandwidthEstimate=ue.prototype.getBandwidthEstimate,ue.prototype.setVariants=function(t){this.g=t},ue.prototype.setVariants=ue.prototype.setVariants,ue.prototype.configure=function(t){this.a=t},ue.prototype.configure=ue.prototype.configure,le.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},le.prototype.stopImmediatePropagation=function(){this.a=!0},le.prototype.stopPropagation=function(){};var Za="ended play playing pause pausing ratechange seeked seeking timeupdate volumechange".split(" "),ts="buffered currentTime duration ended loop muted paused playbackRate seeking videoHeight videoWidth volume".split(" "),es=["loop","playbackRate"],ns=["pause","play"],rs="adaptation buffering emsg error loading unloading texttrackvisibility timelineregionadded timelineregionenter timelineregionexit trackschanged".split(" "),is="drmInfo getAudioLanguages getConfiguration getExpiration getManifestUri getPlaybackRate getTextLanguages getTextTracks getStats getVariantTracks isAudioOnly isBuffering isInProgress isLive isTextTrackVisible keySystem seekRange".split(" "),os=["getPlayheadTimeAsDate","getPresentationStartTimeAsDate"],as=[["getConfiguration","configure"]],ss=[["isTextTrackVisible","setTextTrackVisibility"]],us="addTextTrack cancelTrickPlay configure resetConfiguration retryStreaming selectAudioLanguage selectTextLanguage selectTextTrack selectVariantTrack setTextTrackVisibility trickPlay".split(" "),cs=["load","unload"],ls=!1;(Ua=de.prototype).o=function(){return me(this),this.a&&(this.a.leave(function(){},function(){}),this.a=null),this.C=this.B=this.h=null,this.c=this.i=!1,this.g=this.f=this.b=this.j=null,Promise.resolve()},Ua.Z=function(){return this.c},Ua.Kb=function(){return this.w},Ua.init=function(){if(t.chrome&&chrome.cast&&chrome.cast.isAvailable){delete t.__onGCastApiAvailable,this.i=!0,this.h();var e=new chrome.cast.SessionRequest(this.D),e=new chrome.cast.ApiConfig(e,this.qd.bind(this),this.Bd.bind(this),"origin_scoped");chrome.cast.initialize(e,function(){},function(){}),ls&&setTimeout(this.h.bind(this),20)}else t.__onGCastApiAvailable=function(t){t&&this.init()}.bind(this)},Ua.Ob=function(t){this.j=t,this.c&&ve(this,{type:"appData",appData:this.j})},Ua.cast=function(t){return this.i?ls?this.c?Promise.reject(new u(1,8,8002)):(this.g=new g,chrome.cast.requestSession(this.Gb.bind(this,t),this.hc.bind(this)),this.g):Promise.reject(new u(1,8,8001)):Promise.reject(new u(1,8,8e3))},Ua.ib=function(){this.c&&(me(this),this.a&&(this.a.stop(function(){},function(){}),this.a=null))},Ua.get=function(t,e){if("video"==t){if(0<=ns.indexOf(e))return this.uc.bind(this,t,e)}else if("player"==t){if(0<=os.indexOf(e)&&!this.get("player","isLive")())return function(){};if(0<=us.indexOf(e))return this.uc.bind(this,t,e);if(0<=cs.indexOf(e))return this.Xd.bind(this,t,e);if(0<=is.indexOf(e))return this.qc.bind(this,t,e)}return this.qc(t,e)},Ua.set=function(t,e,n){this.b[t][e]=n,ve(this,{type:"set",targetName:t,property:e,value:n})},Ua.Gb=function(t,e){this.a=e,this.a.addUpdateListener(this.ic.bind(this)),this.a.addMessageListener("urn:x-cast:com.google.shaka.v2",this.vd.bind(this)),this.ic(),ve(this,{type:"init",initState:t,appData:this.j}),this.g.resolve()},Ua.hc=function(t){var e=8003;switch(t.code){case"cancel":e=8004;break;case"timeout":e=8005;break;case"receiver_unavailable":e=8006}this.g.reject(new u(2,8,e,t))},Ua.qc=function(t,e){return this.b[t][e]},Ua.uc=function(t,e){ve(this,{type:"call",targetName:t,methodName:e,args:Array.prototype.slice.call(arguments,2)})},Ua.Xd=function(t,e){var n=Array.prototype.slice.call(arguments,2),r=new g,i=this.m.toString();return this.m++,this.f[i]=r,ve(this,{type:"asyncCall",targetName:t,methodName:e,args:n,id:i}),r},Ua.qd=function(t){var e=this.s();this.g=new g,this.l=!0,this.Gb(e,t)},Ua.Bd=function(t){ls="available"==t,this.h()},Ua.ic=function(){var t=!!this.a&&"connected"==this.a.status;if(this.c&&!t){this.C();for(var e in this.b)this.b[e]={};me(this)}this.w=(this.c=t)?this.a.receiver.friendlyName:"",this.h()},Ua.vd=function(t,e){switch((i=he(e)).type){case"event":var n=i.targetName,r=i.event;this.B(n,new le(r.type,r));break;case"update":r=i.update;for(n in r){var i=this.b[n]||{};for(o in r[n])i[o]=r[n][o]}this.l&&(this.I(),this.l=!1);break;case"asyncComplete":n=i.id;var o=i.error;if(i=this.f[n],delete this.f[n],i)if(o){n=new u(o.severity,o.category,o.code);for(r in o)n[r]=o[r];i.reject(n)}else i.resolve()}},ye.prototype.addEventListener=function(t,e){this.ub.push(t,e)},ye.prototype.removeEventListener=function(t,e){this.ub.remove(t,e)},ye.prototype.dispatchEvent=function(t){for(var e=this.ub.get(t.type)||[],n=0;nthis.L.byteLength&&Je();var e=this.L.buffer.slice(this.v,this.v+t);return this.v+=t,new Uint8Array(e)},Xe.prototype.readBytes=Xe.prototype.Ja,Xe.prototype.J=function(t){this.v+t>this.L.byteLength&&Je(),this.v+=t},Xe.prototype.skip=Xe.prototype.J,Xe.prototype.Ib=function(){for(var t=this.v;this.ba()&&this.L.getUint8(this.v);)this.v+=1;return t=this.L.buffer.slice(t,this.v),this.v+=1,$(t)},Xe.prototype.readTerminatedString=Xe.prototype.Ib,e("shaka.util.Mp4Parser",Qe),Qe.prototype.G=function(t,e){var n=nn(t);return this.b[n]=0,this.a[n]=e,this},Qe.prototype.box=Qe.prototype.G,Qe.prototype.aa=function(t,e){var n=nn(t);return this.b[n]=1,this.a[n]=e,this},Qe.prototype.fullBox=Qe.prototype.aa,Qe.prototype.parse=function(t){for(t=new Xe(new DataView(t),0);t.ba();)this.nb(0,t)},Qe.prototype.parse=Qe.prototype.parse,Qe.prototype.nb=function(t,e){var n=e.v,r=e.F(),i=e.F();switch(r){case 0:r=e.L.byteLength-n;break;case 1:r=e.Ta()}var o=this.a[i];if(o){var a=null,s=null;1==this.b[i]&&(s=e.F(),a=s>>>24,s&=16777215),i=0<(i=n+r-e.v)?e.Ja(i).buffer:new ArrayBuffer(0),o({Ra:this,version:a,ac:s,u:i=new Xe(new DataView(i),0),size:r,start:n+t})}else e.J(n+r-e.v)},Qe.prototype.parseNext=Qe.prototype.nb,Qe.children=Ze,Qe.sampleDescription=tn,Qe.allData=en,e("shaka.media.SegmentIndex",an),an.prototype.o=function(){return this.a=null,Promise.resolve()},an.prototype.destroy=an.prototype.o,an.prototype.find=function(t){for(var e=this.a.length-1;0<=e;--e){var n=this.a[e];if(t>=n.startTime&&t(t-=this.a[0].position)||t>=this.a.length?null:this.a[t]:null},an.prototype.get=an.prototype.get,an.prototype.lb=function(t){for(var e,n,r,i=[],o=e=0;er.startTime||(.1t);++e);this.a.splice(0,e)},an.prototype.evict=an.prototype.wb;var ds;un.prototype.ba=function(){return this.a.ba()},pn.prototype.parse=function(t,e,n,r){var i;if(e=new un(new DataView(e)),440786851!=cn(e).id)throw new u(2,3,3008);var o=cn(e);if(408125543!=o.id)throw new u(2,3,3009);for(e=o.a.byteOffset,o=new un(o.a),i=null;o.ba();){var a=cn(o);if(357149030==a.id){i=a;break}}if(!i)throw new u(2,3,3010);for(o=new un(i.a),i=1e6,a=null;o.ba();){var s=cn(o);if(2807729==s.id)i=hn(s);else if(17545==s.id)if(4==(a=s).a.byteLength)a=a.a.getFloat32(0);else{if(8!=a.a.byteLength)throw new u(2,3,3003);a=a.a.getFloat64(0)}}if(null==a)throw new u(2,3,3011);if(o=i/1e9,i=a*o,475249515!=(t=cn(new un(new DataView(t)))).id)throw new u(2,3,3007);return dn(t,e,o,i,n,r)};var ms={},vs={};e("shaka.media.ManifestParser.registerParserByExtension",function(t,e){vs[t]=e}),e("shaka.media.ManifestParser.registerParserByMime",function(t,e){ms[t]=e}),e("shaka.media.PresentationTimeline",Mn),Mn.prototype.Y=function(){return this.a},Mn.prototype.getDuration=Mn.prototype.Y,Mn.prototype.ea=function(t){this.a=t},Mn.prototype.setDuration=Mn.prototype.ea,Mn.prototype.ad=function(){return this.c},Mn.prototype.getPresentationStartTime=Mn.prototype.ad,Mn.prototype.Bc=function(t){this.i=t},Mn.prototype.setClockOffset=Mn.prototype.Bc,Mn.prototype.ob=function(t){this.h=t},Mn.prototype.setStatic=Mn.prototype.ob,Mn.prototype.cd=function(){return this.f},Mn.prototype.getSegmentAvailabilityDuration=Mn.prototype.cd,Mn.prototype.Dc=function(t){this.f=t},Mn.prototype.setSegmentAvailabilityDuration=Mn.prototype.Dc,Mn.prototype.Cc=function(t){this.j=t},Mn.prototype.setDelay=Mn.prototype.Cc,Mn.prototype.Ga=function(t,e){e.length&&(this.b=e.reduce(function(t,e){return Math.max(t,e.endTime-e.startTime)},this.b))},Mn.prototype.notifySegments=Mn.prototype.Ga,Mn.prototype.Cb=function(t){this.b=Math.max(this.b,t)},Mn.prototype.notifyMaxSegmentDuration=Mn.prototype.Cb,Mn.prototype.R=function(){return 1/0==this.a&&!this.h},Mn.prototype.isLive=Mn.prototype.R,Mn.prototype.wa=function(){return 1/0!=this.a&&!this.h},Mn.prototype.isInProgress=Mn.prototype.wa,Mn.prototype.ia=function(){return this.Da(0)},Mn.prototype.getSegmentAvailabilityStart=Mn.prototype.ia,Mn.prototype.Da=function(t){if(1/0==this.f)return this.g;var e=this.va();return Math.max(this.g,Math.min(e-this.f+t,e))},Mn.prototype.getSafeAvailabilityStart=Mn.prototype.Da,Mn.prototype.Ac=function(t){this.g=t},Mn.prototype.setAvailabilityStart=Mn.prototype.Ac,Mn.prototype.va=function(){return this.R()||this.wa()?Math.min(Math.max(0,(Date.now()+this.i)/1e3-this.b-this.c),this.a):this.a},Mn.prototype.getSegmentAvailabilityEnd=Mn.prototype.va,Mn.prototype.kb=function(){return Math.max(0,this.va()-(this.R()||this.wa()?this.j:0))},Mn.prototype.getSeekRangeEnd=Mn.prototype.kb,e("shaka.dash.DashParser",An),(Ua=An.prototype).configure=function(t){this.b=t},Ua.start=function(t,e){return this.g=[t],this.a=e,Rn(this).then(function(){return this.a&&Bn(this,0),this.c}.bind(this))},Ua.stop=function(){return this.b=this.a=null,this.g=[],this.c=null,this.i=[],this.j={},null!=this.f&&(t.clearTimeout(this.f),this.f=null),Promise.resolve()},Ua.update=function(){Rn(this).catch(function(t){this.a&&this.a.onError(t)}.bind(this))},Ua.onExpirationUpdated=function(){},Ua.Md=function(t,e){t.U=zn(e,t.W,null);var n=!1,r=(l=Pe(e,"Role")).map(function(t){return t.getAttribute("value")}).filter(P),i=void 0;"text"==t.U.contentType&&(i="subtitle");for(var o=0;o(r=e.split(":")).length||"data"!=r[0])throw new u(2,1,1004,e);if(2>(r=r.slice(1).join(":").split(",")).length)throw new u(2,1,1004,e);var n=r[0],r=t.decodeURIComponent(r.slice(1).join(",")),i=null;if(1<(n=n.split(";")).length&&(i=n[1]),"base64"==i)e=rt(r).buffer;else{if(i)throw new u(2,1,1005,e);e=Q(r)}return{data:e,contentType:n[0]}},Wa.data=ur,e("shaka.hls.HlsParser",cr),(Ua=cr.prototype).configure=function(t){this.h=t},Ua.start=function(t,e){return this.b=e,this.m=t,Ar(this,t).then(function(e){return fr(this,e.data,t).then(function(){return Rr(this,this.c),this.B}.bind(this))}.bind(this))},Ua.stop=function(){return this.h=this.b=null,this.g={},this.C={},this.B=null,Promise.resolve()},Ua.update=function(){if(this.f){for(var t=[],e=Object.keys(this.s),n=0;nthis.g?0:this.g;this.a.playbackRate&&this.a.playbackRate!=t&&Fr(this,this.a.playbackRate)},Ua.kc=function(){var t=Ur(this);.001>Math.abs(this.a.currentTime-t)?(L(this.b,this.a,"seeking",this.nc.bind(this)),L(this.b,this.a,"playing",this.lc.bind(this))):(U(this.b,this.a,"seeking",this.Cd.bind(this)),this.a.currentTime=t)},Ua.Cd=function(){L(this.b,this.a,"seeking",this.nc.bind(this)),L(this.b,this.a,"playing",this.lc.bind(this))},Ua.mc=function(){if(this.a.readyState){this.a.readyState!=this.C&&(this.i=!1,this.C=this.a.readyState);var t=this.l.smallGapLimit,e=this.a.currentTime,n=this.a.buffered;if(en.end(0)-n.start(0))){var r=.1;/(Edge\/|Trident\/|Tizen)/.test(navigator.userAgent)&&(r=.5);for(var i=0;ie&&(!i||n.end(i-1)-e<=r)){r=i;break t}}r=null}if(null==r){if(3>this.a.readyState&&0=n.start(r)&&e=this.c.presentationTimeline.kb())){var o=i-e,a=!1;(t=o<=t)||this.i||(this.i=!0,o=new le("largegap",{currentTime:e,gapSize:o}),o.cancelable=!0,this.D(o),this.l.jumpLargeGaps&&!o.defaultPrevented&&(a=!0)),(t||a)&&(r&&n.end(r-1),zr(this,e,i))}}}},Ua.nc=function(){this.m=!1;var t=this.a.currentTime,e=Br(this,t);.001this.a.currentTime?1:e.info.endTime=r||this.a.ended||i;this.b?(n=1*Math.max(this.g.minBufferTime||0,this.w.rebufferingGoal),(e||t>=n)&&0!=this.b&&(this.b=!1,this.l(!1))):!e&&.5>t&&1!=this.b&&(this.b=!0,this.l(!0)),this.c.forEach(this.m.bind(this,!1))},(Ua=Gr.prototype).o=function(){for(var t in this.c)bi(this.c[t]);return this.h=this.c=this.j=this.g=this.m=this.b=this.a=null,this.f=!0,Promise.resolve()},Ua.configure=function(t){this.h=t,this.w=new b({maxAttempts:Math.max(t.retryParameters.maxAttempts,2),baseDelay:t.retryParameters.baseDelay,backoffFactor:t.retryParameters.backoffFactor,fuzzFactor:t.retryParameters.fuzzFactor,timeout:0},!0)},Ua.init=function(){var t=this.a.gc(this.b.periods[ae(this.b,Lr(this.a.Sa))]);return t.variant||t.text?ni(this,t).then(function(){this.a&&this.a.sd&&this.a.sd()}.bind(this)):Promise.reject(new u(2,5,5005))},Ua.xe=function(t){if(!this.f&&!t.ya&&null!=t.qa&&!t.ta)if(t.qa=null,t.ra)yi(this,t,t.sb);else{try{var e=ai(this,t);null!=e&&(gi(this,t,e),t.Pa=!1)}catch(t){return void wi(this,t)}e=V(this.c),di(this,t),e.every(function(t){return t.endOfStream})&&this.a.M.endOfStream().then(function(){this.b.presentationTimeline.ea(this.a.M.Y())}.bind(this))}},Ua.Nd=function(t,e,n){var r=n.u.Ib(),i=n.u.Ib(),o=n.u.F(),a=n.u.F(),s=n.u.F(),u=n.u.F();n=n.u.Ja(n.u.L.byteLength-n.u.v),t=t.startTime+e.startTime+a/o,"urn:mpeg:dash:event:2012"==r?this.a.td():this.a.onEvent(new le("emsg",{detail:{startTime:t,endTime:t+s/o,schemeIdUri:r,value:i,timescale:o,presentationTimeDelta:a,eventDuration:s,id:u,messageData:n}}))},e("shaka.net.HttpPlugin",_i),Wa.http=_i,Wa.https=_i,(Ua=Ei.prototype).init=function(t,e){return Pi(this,t,e).then(function(){var e=Object.keys(t);return Promise.all(e.map(function(t){return xi(this,t).then(function(e){this.c[t]=e}.bind(this))}.bind(this)))}.bind(this))},Ua.o=function(){return Promise.all(this.b.map(function(t){try{t.transaction.abort()}catch(t){}return t.N.catch(O)})).then(function(){this.a&&(this.a.close(),this.a=null)}.bind(this))},Ua.get=function(t,e){var n;return Oi(this,t,"readonly",function(t){n=t.get(e)}).then(function(){return n.result})},Ua.forEach=function(t,e){return Oi(this,t,"readonly",function(t){t.openCursor().onsuccess=function(t){(t=t.target.result)&&(e(t.value),t.continue())}})},Ua.remove=function(t,e){return Oi(this,t,"readwrite",function(t){t.delete(e)})};var Es={manifest:"key",segment:"key"};Di.prototype.o=function(){var t=this.j,e=this.l,n=this.i||Promise.resolve();return e.length&&(n=n.then(function(){return Si(t,e)})),this.b={},this.l=[],this.i=this.a=this.w=this.s=this.j=this.m=null,n},(Ua=Bi.prototype).configure=function(){},Ua.start=function(t){var e=/^offline:([0-9]+)$/.exec(t);if(!e)return Promise.reject(new u(2,1,9004,t));var n=Number(e[1]),r=ji();return this.a=n,r?r.init(Es).then(function(){return r.get("manifest",n)}).then(function(t){if(!t)throw new u(2,9,9003,n);return zi(t)}).then(function(t){return r.o().then(function(){return t})},function(t){return r.o().then(function(){throw t})}):Promise.reject(new u(2,9,9e3))},Ua.stop=function(){return Promise.resolve()},Ua.update=function(){},Ua.onExpirationUpdated=function(t,e){var n=ji();n.init(Es).then(function(){return n.get("manifest",this.a)}.bind(this)).then(function(r){if(r&&!(0>r.sessionIds.indexOf(t))&&(void 0==r.expiration||r.expiration>e))return r.expiration=e,Ti(n,"manifest",r)}).catch(function(){}).then(function(){return n.o()})},ms["application/x-offline-manifest"]=Bi,e("shaka.offline.OfflineScheme",Hi),Wa.offline=Hi,e("shaka.text.SimpleTextDisplayer",qi),qi.prototype.remove=function(t,e){return!!this.a&&(Ki(this,function(n){return!(n.startTime>=e||n.endTime<=t)}),!0)},qi.prototype.remove=qi.prototype.remove,qi.prototype.append=function(t){for(var e=[],n=0;nthis.ab.indexOf(t.id)}.bind(this))},Yi.prototype.getTextTracks=Yi.prototype.ed,Yi.prototype.fe=function(t){this.a&&(t=Qt(Yr(this.a),t))&&(to(this,t,!1),this.ga?this.fa=t:Zr(this.a,t,!0))},Yi.prototype.selectTextTrack=Yi.prototype.fe,Yi.prototype.ge=function(t,e){if(this.a){var n=Jt(Yr(this.a),t);n&&n.allowedByApplication&&n.allowedByKeySystem&&(Zi(this,n,!1),so(this,n,e))}},Yi.prototype.selectVariantTrack=Yi.prototype.ge,Yi.prototype.Uc=function(){return this.a?Zt(Yr(this.a).variants).map(function(t){return t.language}).filter(k):[]},Yi.prototype.getAudioLanguages=Yi.prototype.Uc,Yi.prototype.dd=function(){return this.a?Yr(this.a).textStreams.map(function(t){return t.language}).filter(k):[]},Yi.prototype.getTextLanguages=Yi.prototype.dd,Yi.prototype.de=function(t,e){if(this.a){var n=Yr(this.a);this.na=t,this.Ya=e||"",fo(this,n)}},Yi.prototype.selectAudioLanguage=Yi.prototype.de,Yi.prototype.ee=function(t,e){if(this.a){var n=Yr(this.a);this.Xa=t,this.tb=e||"",fo(this,n)}},Yi.prototype.selectTextLanguage=Yi.prototype.ee,Yi.prototype.ld=function(){return this.w?this.w.isTextVisible():this.gb},Yi.prototype.isTextTrackVisible=Yi.prototype.ld,Yi.prototype.je=function(t){this.w?this.w.setTextVisibility(t):this.gb=t,mo(this)},Yi.prototype.setTextTrackVisibility=Yi.prototype.je,Yi.prototype.Zc=function(){return this.b?new Date(1e3*this.b.presentationTimeline.c+1e3*this.f.currentTime):null},Yi.prototype.getPlayheadTimeAsDate=Yi.prototype.Zc,Yi.prototype.bd=function(){return this.b?new Date(1e3*this.b.presentationTimeline.c):null},Yi.prototype.getPresentationStartTimeAsDate=Yi.prototype.bd,Yi.prototype.getStats=function(){uo(this),this.Wa();var t=null,e=null,n=(n=this.f)&&n.getVideoPlaybackQuality?n.getVideoPlaybackQuality():{};return this.h&&this.b&&(t=ae(this.b,Lr(this.h)),e=this.C[t],e=oe(e.audio,e.video,this.b.periods[t].variants),t=e.video||{}),t||(t={}),e||(e={}),{width:t.width||0,height:t.height||0,streamBandwidth:e.bandwidth||0,decodedFrames:Number(n.totalVideoFrames),droppedFrames:Number(n.droppedVideoFrames),estimatedBandwidth:this.g?this.g.getBandwidthEstimate():NaN,loadLatency:this.i.loadLatency,playTime:this.i.playTime,bufferingTime:this.i.bufferingTime,switchHistory:T(this.i.switchHistory),stateHistory:T(this.i.stateHistory)}},Yi.prototype.getStats=Yi.prototype.getStats,Yi.prototype.addTextTrack=function(t,e,n,r,i,o){if(!this.a)return Promise.reject();for(var a,s=Yr(this.a),u=0;uZt(t.variants).length)throw new u(2,4,4012)}.bind(this))},Ua.hb=function(t){var e=this.a?Xr(this.a):{};if(Gt(this.j,e,t),e=0Zt(t.variants).length,!e)throw new u(2,4,4011);if(t)throw new u(2,4,4012)},Ua.pe=function(t,e){this.g&&this.g.segmentDownloaded(t,e)},Ua.Ec=function(t){if(uo(this),this.Na=t,this.Wa(),this.h){var e=this.h;t!=e.h&&(e.h=t,Fr(e,e.g))}this.dispatchEvent(new le("buffering",{buffering:t}))},Ua.le=function(){po(this)},Ua.Wa=function(){if(!this.I){var t=this.Na?"buffering":this.f.ended?"ended":this.f.paused?"paused":"playing",e=Date.now()/1e3;if(this.i.stateHistory.length){var n=this.i.stateHistory[this.i.stateHistory.length-1];if(n.duration=e-n.timestamp,t==n.state)return}this.i.stateHistory.push({timestamp:e,state:t,duration:0})}},Ua.oe=function(){if(this.B){var t=this.B;t.c.forEach(t.m.bind(t,!0))}this.a&&ti(this.a)},Ua.od=function(t){this.ga=!0,this.g.disable();var e={audio:!1,text:!1},n=te(t,this.na,this.Ya,e);return t=ee(t,this.Xa,this.tb,e),n=lo(this,n),t=t[0]||null,this.fa=this.sa=null,n&&Zi(this,n,!0),t&&(to(this,t,!0),!$r(this.a)&&n&&n.audio&&e.text&&t.language!=n.audio.language&&(this.w.setTextVisibility(!0),mo(this))),{variant:n,text:t}},Ua.Mc=function(){this.ga=!1,this.c.abr.enabled&&this.g.enable(),this.sa&&(Qr(this.a,this.sa,this.Vb),this.sa=null),this.fa&&(Zr(this.a,this.fa,!0),this.fa=null)},Ua.ud=function(){this.l&&this.l.update&&this.l.update()},Ua.Dd=function(){this.h&&this.h.Fb()},Ua.Fc=function(t,e){Zi(this,t,!0),this.a&&(Qr(this.a,t,e||!1),ho(this))},Ua.Ae=function(t,e){if(this.a){var n=$r(this.a);(n=ie(t.audio,t.video,n?n.variants:[]))&&this.Fc(n,e)}},Ua.La=function(t){if(!this.I){var e=new le("error",{detail:t});this.dispatchEvent(e),e.defaultPrevented&&(t.handled=!0)}},Ua.Gd=function(t){this.B?this.B.s(t):this.eb.push(t)},Ua.pb=function(t){this.dispatchEvent(t)},Ua.Hd=function(){if(this.f.error){var t=this.f.error.code;if(1!=t){var e=this.f.error.msExtendedCode;e&&(0>e&&(e+=Math.pow(2,32)),e=e.toString(16)),this.La(new u(2,3,3016,t,e,this.f.error.message))}}},Ua.ne=function(t){var e=["output-restricted","internal-error"],n=Yr(this.a),r=!1,i=1==Object.keys(t).length&&"00"==Object.keys(t)[0];n.variants.forEach(function(n){var o=[];n.audio&&o.push(n.audio),n.video&&o.push(n.video),o.forEach(function(o){var a=n.allowedByKeySystem;o.keyId&&(o=t[i?"00":o.keyId],n.allowedByKeySystem=!!o&&0>e.indexOf(o)),a!=n.allowedByKeySystem&&(r=!0)})});var o=Xr(this.a);(o=ie(o.audio,o.video,n.variants))&&!o.allowedByKeySystem&&fo(this,n),r&&po(this)},Ua.me=function(t,e){this.l&&this.l.onExpirationUpdated&&this.l.onExpirationUpdated(t,e),this.dispatchEvent(new le("expirationupdated"))},e("shaka.offline.Storage",vo),vo.support=yo,vo.prototype.o=function(){var t=this.a,e=this.i?this.i.o().catch(function(){}).then(function(){if(t)return t.o()}):Promise.resolve();return this.b=this.g=this.i=this.a=null,e},vo.prototype.destroy=vo.prototype.o,vo.prototype.configure=function(t){E(this.b,t,bo(this),{},"")},vo.prototype.configure=vo.prototype.configure,vo.prototype.ye=function(t,e,n){function r(t){o=t}if(this.s)return Promise.reject(new u(2,9,9006));this.s=!0;var i,o=null;return wo(this).then(function(){return So(this),go(this,t,r,n)}.bind(this)).then(function(n){if(So(this),this.f=n.manifest,this.c=n.Rc,this.f.presentationTimeline.R()||this.f.presentationTimeline.wa())throw new u(2,9,9005,t);this.m(this.f.periods),this.h=this.a.c.manifest++,this.l=0,n=e||{};var r=this.f.periods.map(this.C.bind(this)),o=this.c.b,a=ft(this.c);if(o){if(!a.length)throw new u(2,9,9007,t);o.initData=[]}return i={key:this.h,originalManifestUri:t,duration:this.l,size:0,expiration:this.c.jb(),periods:r,sessionIds:this.b.usePersistentLicense?a:[],drmInfo:o,appMetadata:n},Ui(this.i,i)}.bind(this)).then(function(){if(So(this),o)throw o;return _o(this)}.bind(this)).then(function(){return Ci(i)}.bind(this)).catch(function(t){return _o(this).catch(O).then(function(){throw t})}.bind(this))},vo.prototype.store=vo.prototype.ye,vo.prototype.remove=function(t){function e(t){6013!=t.code&&(a=t)}var n=t.offlineUri,r=/^offline:([0-9]+)$/.exec(n);if(!r)return Promise.reject(new u(2,9,9004,n));var i,o,a=null,s=Number(r[1]);return wo(this).then(function(){return So(this),this.a.get("manifest",s)}.bind(this)).then(function(t){if(So(this),!t)throw new u(2,9,9003,n);return i=t,t=zi(i),(o=new st(this.g.s,e,function(){},function(){})).configure(this.g.getConfiguration().drm),o.init(t,this.b.usePersistentLicense||!1)}.bind(this)).then(function(){return ct(o,i.sessionIds)}.bind(this)).then(function(){return o.o()}.bind(this)).then(function(){if(So(this),a)throw a;var e=i.periods.map(function(t){return t.streams.map(function(t){var e=t.segments.map(function(t){return t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(t.uri),Number(t[1])});return t.initSegmentUri&&(t=/^offline:[0-9]+\/[0-9]+\/([0-9]+)$/.exec(t.initSegmentUri),e.push(Number(t[1]))),e}).reduce(x,[])}).reduce(x,[]),n=0,r=e.length,o=this.b.progressCallback;return Si(this.a,e,function(){o(t,++n/r)})}.bind(this)).then(function(){return So(this),this.b.progressCallback(t,1),this.a.remove("manifest",s)}.bind(this))},vo.prototype.remove=vo.prototype.remove,vo.prototype.list=function(){var t=[];return wo(this).then(function(){return So(this),this.a.forEach("manifest",function(e){t.push(Ci(e))})}.bind(this)).then(function(){return t})},vo.prototype.list=vo.prototype.list,vo.prototype.B=function(t){for(var e,n=[],r=Vt(this.g.getConfiguration().preferredAudioLanguage),i=[0,Xa,Ja],o=t.filter(function(t){return"variant"==t.type}),i=i.map(function(t){return o.filter(function(e){return e=Vt(e.language),qt(t,r,e)})}),a=0;a=t.height});return s.length&&(s.sort(function(t,e){return e.height-t.height}),e=s.filter(function(t){return t.height==s[0].height})),e.sort(function(t,e){return t.bandwidth-e.bandwidth}),e.length&&n.push(e[Math.floor(e.length/2)]),n.push.apply(n,t.filter(function(t){return"text"==t.type})),n},vo.prototype.m=function(t){t.forEach(this.w.bind(this))},vo.prototype.w=function(t){var e={};if(this.j){var n=this.j.filter(function(t){return"variant"==t.type}),r=null;n.length&&(r=Jt(t,n[0])),r&&(r.video&&(e.video=r.video),r.audio&&(e.audio=r.audio))}Gt(this.c,e,t),Wt(t,this.g.getConfiguration().restrictions,{width:1/0,height:1/0})},vo.prototype.C=function(t){var e,n,r=$t(t,null,null),i=Xt(t,null),r=this.b.trackSelectionCallback(r.concat(i));for(this.j||(this.j=r,this.m(this.f.periods)),i=r.length-1;0navigator.userAgent.indexOf("Trident/")||HTMLInputElement.prototype.addEventListener==Po||(xs=HTMLInputElement.prototype.addEventListener,HTMLInputElement.prototype.addEventListener=Po)}),xo(function(){if(4503599627370497!=Math.round(4503599627370497)){var t=Math.round;Math.round=function(e){var n=e;return 4503599627370496>=e&&(n=t(e)),n}}}),ko.prototype.c=function(t){if(!(1a[0].indexOf("--\x3e")&&(c=a[0],a.splice(0,1));var l=new er(a[0]),f=Na(l),h=nr(l,/[ \t]+--\x3e[ \t]+/g),p=Na(l);if(null==f||!h||null==p)throw new u(2,2,2001);for(a=new ba(f+s,p+s,a.slice(1).join("\n").trim()),nr(l,/[ \t]+/gm),s=rr(l);s;)Ra(a,s),nr(l,/[ \t]+/gm),s=rr(l);null!=c&&(a.id=c),c=a}c&&o.push(c)}return o},Ct("text/vtt",Aa),Ct('text/vtt; codecs="vtt"',Aa),ja.prototype.parseInit=function(t){var e=!1;if((new Qe).G("moov",Ze).G("trak",Ze).G("mdia",Ze).aa("mdhd",function(t){0==t.version?(t.u.J(4),t.u.J(4),this.a=t.u.F(),t.u.J(4)):(t.u.J(8),t.u.J(8),this.a=t.u.F(),t.u.J(8)),t.u.J(4)}.bind(this)).G("minf",Ze).G("stbl",Ze).aa("stsd",tn).G("wvtt",function(){e=!0}).parse(t),!this.a)throw new u(2,2,2008);if(!e)throw new u(2,2,2008)},ja.prototype.parseMedia=function(t,e){var n=0,r=[],i=[],o=[],a=!1,s=!1,c=!1,l=null;if((new Qe).G("moof",Ze).G("traf",Ze).aa("tfdt",function(t){a=!0,n=t.version?t.u.Ta():t.u.F()}).aa("tfhd",function(t){var e=t.ac;(t=t.u).J(4),1&e&&t.J(8),2&e&&t.J(4),l=8&e?t.F():null}).aa("trun",function(t){s=!0;var e=t.version,n=t.ac,i=(t=t.u).F();1&n&&t.J(4),4&n&&t.J(4);for(var o=[],a=0;a