-
Notifications
You must be signed in to change notification settings - Fork 0
/
vendor.js
1 lines (1 loc) · 313 KB
/
vendor.js
1
!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={i:n,l:!1,exports:{}};return t[n].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,a,o){for(var s,l,u,c=0,f=[];c<r.length;c++)l=r[c],i[l]&&f.push(i[l][0]),i[l]=0;for(s in a)Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s]);for(n&&n(r,a,o);f.length;)f.shift()();if(o)for(c=0;c<o.length;c++)u=e(e.s=o[c]);return u};var r={},i={1:0};e.m=t,e.c=r,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.oe=function(t){throw console.error(t),t},e(e.s=122)}([function(t,e,n){"use strict";t.exports=n(33)},function(t,e,n){t.exports=n(40)()},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 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)}function o(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!y&&"id"in e){var r='ReactKonva: You are using "id" attribute for a Konva node. In some very rare cases it may produce bugs. Currently we recommend not to use it and use "name" attribute instead.\nYou are using id = "'+e.id+'".\nFor me info see: https://github.com/konvajs/react-konva/issues/119';console.warn(r),y=!0}if(!b&&"zIndex"in e){console.warn('ReactKonva: You are using "zIndex" attribute for a Konva node.\nreact-konva may get confused with ordering. Just define correct order of elements in your render function of a component.\nFor me info see: https://github.com/konvajs/react-konva/issues/194\n'),b=!0}var i={},a=!1;for(var o in n)if(!m[o]){var l="on"===o.slice(0,2),u=n[o]!==e[o];if(l&&u){var c=o.substr(2).toLowerCase();"content"===c.substr(0,7)&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),t.off(c,n[o])}var f=!e.hasOwnProperty(o);f&&t.setAttr(o,void 0)}for(var o in e)if(!m[o]){var l="on"===o.slice(0,2),d=n[o]!==e[o];if(l&&d){var c=o.substr(2).toLowerCase();"content"===c.substr(0,7)&&(c="content"+c.substr(7,1).toUpperCase()+c.substr(8)),e[o]&&t.on(c+g,e[o])}l||e[o]===n[o]&&e[o]===t.getAttr(o)||(a=!0,i[o]=e[o])}a&&(t.setAttrs(i),s(t))}function s(t){var e=t.getLayer()||t.getStage();e&&e.batchDraw()}var l=n(8),u=n(9),c=n(0),f=n(27),d=n(68),h=n(70),p=n(71),v=c.Component,g=".react-konva-event",m={children:!0,ref:!0,key:!0,style:!0},y=!1,b=!1,_=function(t){function e(){return r(this,e),i(this,t.apply(this,arguments))}return a(e,t),e.prototype.componentDidMount=function(){f.isBrowser&&(this._stage=new f.Stage({width:this.props.width,height:this.props.height,container:this._tagRef}),o(this._stage,this.props),this._mountNode=w.createContainer(this._stage),w.updateContainer(this.props.children,this._mountNode,this))},e.prototype.componentDidUpdate=function(t,e){f.isBrowser&&(o(this._stage,this.props,t),w.updateContainer(this.props.children,this._mountNode,this))},e.prototype.componentWillUnmount=function(){f.isBrowser&&(w.updateContainer(null,this._mountNode,this),this._stage.destroy())},e.prototype.getStage=function(){return this._stage},e.prototype.render=function(){var t=this,e=this.props;return c.createElement("div",{ref:function(e){return t._tagRef=e},accessKey:e.accessKey,className:e.className,role:e.role,style:e.style,tabIndex:e.tabIndex,title:e.title})},e}(v),C=["Layer","FastLayer","Group","Label","Rect","Circle","Ellipse","Wedge","Line","Sprite","Image","Text","TextPath","Star","Ring","Arc","Tag","Path","RegularPolygon","Arrow","Shape","Transformer"],x={};C.forEach(function(t){x[t]=t});var S={},w=d({appendInitialChild:function(t,e){if("string"==typeof e)return void l(!1,'Don not use plain text as child of Konva.Node. You are using text: "%s"',e);t.add(e),s(t)},createInstance:function(t,e,n){var r=f[t];if(!r)return void l(i,'ReactKonva does not support the type "%s"',t);var i=new r;return i._applyProps=o,i._applyProps(i,e),i},createTextInstance:function(t,e,n){l(!1,'Text components are not supported for now in ReactKonva. You text is: "'+t+'"')},finalizeInitialChildren:function(t,e,n){return!1},getPublicInstance:function(t){return t},prepareForCommit:function(){},prepareUpdate:function(t,e,n,r){return S},resetAfterCommit:function(){},resetTextContent:function(t){},shouldDeprioritizeSubtree:function(t,e){return!1},getRootHostContext:function(){return u},getChildHostContext:function(){return u},scheduleDeferredCallback:h.rIC,shouldSetTextContent:function(t,e){return!1},now:h.now,isPrimaryRenderer:!1,supportsMutation:!0,appendChild:function(t,e){e.parent===t?e.moveToTop():t.add(e),s(t)},appendChildToContainer:function(t,e){e.parent===t?e.moveToTop():t.add(e),s(t)},insertBefore:function(t,e,n){l(e!==n,"ReactKonva: Can not insert node before itself"),e.remove(),t.add(e),e.setZIndex(n.getZIndex()),s(t)},insertInContainerBefore:function(t,e,n){l(e!==n,"ReactKonva: Can not insert node before itself"),e.remove(),t.add(e),e.setZIndex(n.getZIndex()),s(t)},removeChild:function(t,e){e.destroy(),e.off(g),s(t)},removeChildFromContainer:function(t,e){e.destroy(),e.off(g),s(t)},commitTextUpdate:function(t,e,n){l(!1,'Text components are not yet supported in ReactKonva. You text is: "'+n+'"')},commitMount:function(t,e,n){},commitUpdate:function(t,e,n,r,i){t._applyProps(t,i,r)}});w.injectIntoDevTools({findFiberByHostInstance:p.getClosestInstanceFromNode,bundleType:0,version:c.version||16,rendererPackageName:"react-konva",getInspectorDataForViewTag:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];console.log(e)}});t.exports=Object.assign({},x,{Stage:_})},,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(39),i=n(20),a=n(45);n.d(e,"Provider",function(){return r.b}),n.d(e,"createProvider",function(){return r.a}),n.d(e,"connectAdvanced",function(){return i.a}),n.d(e,"connect",function(){return a.a})},,,,function(t,e,n){"use strict";function r(t,e,n,r,a,o,s,l){if(i(e),!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,a,o,s,l],f=0;u=new Error(e.replace(/%s/g,function(){return c[f++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}var i=function(t){};t.exports=r},function(t,e,n){"use strict";var r={};t.exports=r},function(t,e,n){"use strict";function r(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},n=0;n<10;n++)e["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(t){r[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var n,s,l=r(t),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)a.call(n,c)&&(l[c]=n[c]);if(i){s=i(n);for(var f=0;f<s.length;f++)o.call(n,s[f])&&(l[s[f]]=n[s[f]])}}return l}},function(t,e,n){"use strict";function r(t){"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t);try{throw new Error(t)}catch(t){}}e.a=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(21),i=n(59),a=n(60),o=n(61),s=n(24);n(23);n.d(e,"createStore",function(){return r.b}),n.d(e,"combineReducers",function(){return i.a}),n.d(e,"bindActionCreators",function(){return a.a}),n.d(e,"applyMiddleware",function(){return o.a}),n.d(e,"compose",function(){return s.a})},function(t,e,n){"use strict";function r(t){if(!Object(o.a)(t)||Object(i.a)(t)!=s)return!1;var e=Object(a.a)(t);if(null===e)return!0;var n=f.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==d}var i=n(48),a=n(53),o=n(55),s="[object Object]",l=Function.prototype,u=Object.prototype,c=l.toString,f=u.hasOwnProperty,d=c.call(Object);e.a=r},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},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";function r(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(t){console.error(t)}}r(),t.exports=n(34)},function(t,e,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=i},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function i(t,e){if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(!a.call(e,n[o])||!r(t[n[o]],e[n[o]]))return!1;return!0}var a=Object.prototype.hasOwnProperty;t.exports=i},function(t,e,n){"use strict";n.d(e,"b",function(){return a}),n.d(e,"a",function(){return o});var r=n(1),i=n.n(r),a=i.a.shape({trySubscribe:i.a.func.isRequired,tryUnsubscribe:i.a.func.isRequired,notifyNestedSubs:i.a.func.isRequired,isSubscribed:i.a.func.isRequired}),o=i.a.shape({subscribe:i.a.func.isRequired,dispatch:i.a.func.isRequired,getState:i.a.func.isRequired})},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 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)}function o(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 s(){}function l(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}function u(t){var e,n,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=u.getDisplayName,d=void 0===c?function(t){return"ConnectAdvanced("+t+")"}:c,_=u.methodName,C=void 0===_?"connectAdvanced":_,x=u.renderCountProp,S=void 0===x?void 0:x,w=u.shouldHandleStateChanges,T=void 0===w||w,k=u.storeKey,P=void 0===k?"store":k,K=u.withRef,F=void 0!==K&&K,E=o(u,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),N=P+"Subscription",I=y++,R=(e={},e[P]=g.a,e[N]=g.b,e),D=(n={},n[N]=g.b,n);return function(e){h()("function"==typeof e,"You must pass a component to the function returned by "+C+". Instead received "+JSON.stringify(e));var n=e.displayName||e.name||"Component",o=d(n),u=m({},E,{getDisplayName:d,methodName:C,renderCountProp:S,shouldHandleStateChanges:T,storeKey:P,withRef:F,displayName:o,wrappedComponentName:n,WrappedComponent:e}),c=function(n){function c(t,e){r(this,c);var a=i(this,n.call(this,t,e));return a.version=I,a.state={},a.renderCount=0,a.store=t[P]||e[P],a.propsMode=Boolean(t[P]),a.setWrappedInstance=a.setWrappedInstance.bind(a),h()(a.store,'Could not find "'+P+'" in either the context or props of "'+o+'". Either wrap the root component in a <Provider>, or explicitly pass "'+P+'" as a prop to "'+o+'".'),a.initSelector(),a.initSubscription(),a}return a(c,n),c.prototype.getChildContext=function(){var t,e=this.propsMode?null:this.subscription;return t={},t[N]=e||this.context[N],t},c.prototype.componentDidMount=function(){T&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},c.prototype.componentWillReceiveProps=function(t){this.selector.run(t)},c.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},c.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},c.prototype.getWrappedInstance=function(){return h()(F,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+C+"() call."),this.wrappedInstance},c.prototype.setWrappedInstance=function(t){this.wrappedInstance=t},c.prototype.initSelector=function(){var e=t(this.store.dispatch,u);this.selector=l(e,this.store),this.selector.run(this.props)},c.prototype.initSubscription=function(){if(T){var t=(this.propsMode?this.props:this.context)[N];this.subscription=new v.a(this.store,t,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},c.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(b)):this.notifyNestedSubs()},c.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},c.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},c.prototype.addExtraProps=function(t){if(!(F||S||this.propsMode&&this.subscription))return t;var e=m({},t);return F&&(e.ref=this.setWrappedInstance),S&&(e[S]=this.renderCount++),this.propsMode&&this.subscription&&(e[N]=this.subscription),e},c.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))},c}(p.Component);return c.WrappedComponent=e,c.displayName=o,c.childContextTypes=D,c.contextTypes=R,c.propTypes=R,f()(c,e)}}e.a=u;var c=n(42),f=n.n(c),d=n(43),h=n.n(d),p=n(0),v=(n.n(p),n(44)),g=n(19),m=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},y=0,b={}},function(t,e,n){"use strict";function r(t,e,n){function s(){m===g&&(m=g.slice())}function l(){return v}function u(t){if("function"!=typeof t)throw new Error("Expected listener to be a function.");var e=!0;return s(),m.push(t),function(){if(e){e=!1,s();var n=m.indexOf(t);m.splice(n,1)}}}function c(t){if(!Object(i.a)(t))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===t.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(y)throw new Error("Reducers may not dispatch actions.");try{y=!0,v=p(v,t)}finally{y=!1}for(var e=g=m,n=0;n<e.length;n++){(0,e[n])()}return t}function f(t){if("function"!=typeof t)throw new Error("Expected the nextReducer to be a function.");p=t,c({type:o.INIT})}function d(){var t,e=u;return t={subscribe:function(t){function n(){t.next&&t.next(l())}if("object"!=typeof t)throw new TypeError("Expected the observer to be an object.");return n(),{unsubscribe:e(n)}}},t[a.a]=function(){return this},t}var h;if("function"==typeof e&&void 0===n&&(n=e,e=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(r)(t,e)}if("function"!=typeof t)throw new Error("Expected the reducer to be a function.");var p=t,v=e,g=[],m=g,y=!1;return c({type:o.INIT}),h={dispatch:c,subscribe:u,getState:l,replaceReducer:f},h[a.a]=d,h}n.d(e,"a",function(){return o}),e.b=r;var i=n(13),a=n(56),o={INIT:"@@redux/INIT"}},function(t,e,n){"use strict";var r=n(49),i=r.a.Symbol;e.a=i},function(t,e,n){"use strict"},function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}e.a=r},function(t,e,n){"use strict";function r(t){return function(e,n){function r(){return i}var i=t(e,n);return r.dependsOnOwnProps=!1,r}}function i(t){return null!==t.dependsOnOwnProps&&void 0!==t.dependsOnOwnProps?Boolean(t.dependsOnOwnProps):1!==t.length}function a(t,e){return function(e,n){var r=(n.displayName,function(t,e){return r.dependsOnOwnProps?r.mapToProps(t,e):r.mapToProps(t)});return r.dependsOnOwnProps=!0,r.mapToProps=function(e,n){r.mapToProps=t,r.dependsOnOwnProps=i(t);var a=r(e,n);return"function"==typeof a&&(r.mapToProps=a,r.dependsOnOwnProps=i(a),a=r(e,n)),a},r}}e.a=r,e.b=a;n(26)},function(t,e,n){"use strict";n(13),n(11)},function(t,e,n){(function(e){!function(){"use strict";var n=Math.PI/180,r={version:"1.7.6",stages:[],idCounter:0,ids:{},names:{},shapes:{},listenClickTap:!1,inDblClickWindow:!1,isBrowser:"undefined"!=typeof window&&("[object Window]"==={}.toString.call(window)||"[object global]"==={}.toString.call(window)),enableTrace:!1,traceArrMax:100,dblClickWindow:400,pixelRatio:void 0,dragDistance:3,angleDeg:!0,showWarnings:!0,Filters:{},isDragging:function(){var t=r.DD;return!!t&&t.isDragging},isDragReady:function(){var t=r.DD;return!!t&&!!t.node},_addId:function(t,e){void 0!==e&&(this.ids[e]=t)},_removeId:function(t){void 0!==t&&delete this.ids[t]},_addName:function(t,e){e&&(this.names[e]||(this.names[e]=[]),this.names[e].push(t))},_removeName:function(t,e){if(t){var n=this.names[t];if(n){for(var r=0;r<n.length;r++){n[r]._id===e&&n.splice(r,1)}0===n.length&&delete this.names[t]}}},getAngle:function(t){return this.angleDeg?t*n:t},_detectIE:function(t){var e=t.indexOf("msie ");if(e>0)return parseInt(t.substring(e+5,t.indexOf(".",e)),10);if(t.indexOf("trident/")>0){var n=t.indexOf("rv:");return parseInt(t.substring(n+3,t.indexOf(".",n)),10)}var r=t.indexOf("edge/");return r>0&&parseInt(t.substring(r+5,t.indexOf(".",r)),10)},_parseUA:function(t){var e=t.toLowerCase(),n=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[],i=!!t.match(/Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile/i),a=!!t.match(/IEMobile/i);return{browser:n[1]||"",version:n[2]||"0",isIE:r._detectIE(e),mobile:i,ieMobile:a}},UA:void 0},i=void 0!==e?e:"undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope?self:{};r.UA=r._parseUA(i.navigator&&i.navigator.userAgent||""),i.Konva&&console.error("Konva instance is already exist in current eviroment. Please use only one instance."),i.Konva=r,r.global=i,r.window=i,r.document=i.document,t.exports=r}(),function(){"use strict";Konva.Collection=function(){var t=[].slice.call(arguments),e=t.length,n=0;for(this.length=e;n<e;n++)this[n]=t[n];return this},Konva.Collection.prototype=[],Konva.Collection.prototype.each=function(t){for(var e=0;e<this.length;e++)t(this[e],e)},Konva.Collection.prototype.toArray=function(){var t,e=[],n=this.length;for(t=0;t<n;t++)e.push(this[t]);return e},Konva.Collection.toCollection=function(t){var e,n=new Konva.Collection,r=t.length;for(e=0;e<r;e++)n.push(t[e]);return n},Konva.Collection._mapMethod=function(t){Konva.Collection.prototype[t]=function(){var e,n=this.length,r=[].slice.call(arguments);for(e=0;e<n;e++)this[e][t].apply(this[e],r);return this}},Konva.Collection.mapMethods=function(t){var e=t.prototype;for(var n in e)Konva.Collection._mapMethod(n)},Konva.Transform=function(t){this.m=t&&t.slice()||[1,0,0,1,0,0]},Konva.Transform.prototype={copy:function(){return new Konva.Transform(this.m)},point:function(t){var e=this.m;return{x:e[0]*t.x+e[2]*t.y+e[4],y:e[1]*t.x+e[3]*t.y+e[5]}},translate:function(t,e){return this.m[4]+=this.m[0]*t+this.m[2]*e,this.m[5]+=this.m[1]*t+this.m[3]*e,this},scale:function(t,e){return this.m[0]*=t,this.m[1]*=t,this.m[2]*=e,this.m[3]*=e,this},rotate:function(t){var e=Math.cos(t),n=Math.sin(t),r=this.m[0]*e+this.m[2]*n,i=this.m[1]*e+this.m[3]*n,a=this.m[0]*-n+this.m[2]*e,o=this.m[1]*-n+this.m[3]*e;return this.m[0]=r,this.m[1]=i,this.m[2]=a,this.m[3]=o,this},getTranslation:function(){return{x:this.m[4],y:this.m[5]}},skew:function(t,e){var n=this.m[0]+this.m[2]*e,r=this.m[1]+this.m[3]*e,i=this.m[2]+this.m[0]*t,a=this.m[3]+this.m[1]*t;return this.m[0]=n,this.m[1]=r,this.m[2]=i,this.m[3]=a,this},multiply:function(t){var e=this.m[0]*t.m[0]+this.m[2]*t.m[1],n=this.m[1]*t.m[0]+this.m[3]*t.m[1],r=this.m[0]*t.m[2]+this.m[2]*t.m[3],i=this.m[1]*t.m[2]+this.m[3]*t.m[3],a=this.m[0]*t.m[4]+this.m[2]*t.m[5]+this.m[4],o=this.m[1]*t.m[4]+this.m[3]*t.m[5]+this.m[5];return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this},invert:function(){var t=1/(this.m[0]*this.m[3]-this.m[1]*this.m[2]),e=this.m[3]*t,n=-this.m[1]*t,r=-this.m[2]*t,i=this.m[0]*t,a=t*(this.m[2]*this.m[5]-this.m[3]*this.m[4]),o=t*(this.m[1]*this.m[4]-this.m[0]*this.m[5]);return this.m[0]=e,this.m[1]=n,this.m[2]=r,this.m[3]=i,this.m[4]=a,this.m[5]=o,this},getMatrix:function(){return this.m},setAbsolutePosition:function(t,e){var n=this.m[0],r=this.m[1],i=this.m[2],a=this.m[3],o=this.m[4],s=this.m[5],l=(n*(e-s)-r*(t-o))/(n*a-r*i),u=(t-o-i*l)/n;return this.translate(u,l)}};var t=Math.PI/180,e=180/Math.PI,n={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,132,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,255,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,203],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[119,128,144],slategrey:[119,128,144],snow:[255,255,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],transparent:[255,255,255,0],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,5]},r=/rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)/;Konva.Util={_isElement:function(t){return!(!t||1!=t.nodeType)},_isFunction:function(t){return!!(t&&t.constructor&&t.call&&t.apply)},_isObject:function(t){return!!t&&t.constructor===Object},_isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},_isNumber:function(t){return"[object Number]"===Object.prototype.toString.call(t)},_isString:function(t){return"[object String]"===Object.prototype.toString.call(t)},_throttle:function(t,e,n){var r,i,a,o=null,s=0,l=n||{},u=function(){s=!1===l.leading?0:(new Date).getTime(),o=null,a=t.apply(r,i),r=i=null};return function(){var n=(new Date).getTime();s||!1!==l.leading||(s=n);var c=e-(n-s);return r=this,i=arguments,c<=0?(clearTimeout(o),o=null,s=n,a=t.apply(r,i),r=i=null):o||!1===l.trailing||(o=setTimeout(u,c)),a}},_hasMethods:function(t){var e,n=[];for(e in t)t.hasOwnProperty(e)&&this._isFunction(t[e])&&n.push(e);return n.length>0},isValidSelector:function(t){if("string"!=typeof t)return!1;var e=t[0];return"#"===e||"."===e||e===e.toUpperCase()},createCanvasElement:function(){var t=Konva.isBrowser?Konva.document.createElement("canvas"):new Konva._nodeCanvas;try{t.style=t.style||{}}catch(t){}return t},_isInDocument:function(t){for(;t=t.parentNode;)if(t==Konva.document)return!0;return!1},_simplifyArray:function(t){var e,n,r=[],i=t.length,a=Konva.Util;for(e=0;e<i;e++)n=t[e],a._isNumber(n)?n=Math.round(1e3*n)/1e3:a._isString(n)||(n=n.toString()),r.push(n);return r},_getImage:function(t,e){var n,r;if(t)if(this._isElement(t))e(t);else if(this._isString(t))n=new Konva.window.Image,n.onload=function(){e(n)},n.src=t;else if(t.data){r=Konva.Util.createCanvasElement(),r.width=t.width,r.height=t.height;var i=r.getContext("2d");i.putImageData(t,0,0),this._getImage(r.toDataURL(),e)}else e(null);else e(null)},_getRGBAString:function(t){return["rgba(",t.red||0,",",t.green||0,",",t.blue||0,",",t.alpha||1,")"].join("")},_rgbToHex:function(t,e,n){return((1<<24)+(t<<16)+(e<<8)+n).toString(16).slice(1)},_hexToRgb:function(t){t=t.replace("#","");var e=parseInt(t,16);return{r:e>>16&255,g:e>>8&255,b:255&e}},getRandomColor:function(){for(var t=(16777215*Math.random()<<0).toString(16);t.length<6;)t="0"+t;return"#"+t},get:function(t,e){return void 0===t?e:t},getRGB:function(t){var e;return t in n?(e=n[t],{r:e[0],g:e[1],b:e[2]}):"#"===t[0]?this._hexToRgb(t.substring(1)):"rgb("===t.substr(0,4)?(e=r.exec(t.replace(/ /g,"")),{r:parseInt(e[1],10),g:parseInt(e[2],10),b:parseInt(e[3],10)}):{r:0,g:0,b:0}},colorToRGBA:function(t){return t=t||"black",Konva.Util._namedColorToRBA(t)||Konva.Util._hex3ColorToRGBA(t)||Konva.Util._hex6ColorToRGBA(t)||Konva.Util._rgbColorToRGBA(t)||Konva.Util._rgbaColorToRGBA(t)},_namedColorToRBA:function(t){var e=n[t.toLowerCase()];return e?{r:e[0],g:e[1],b:e[2],a:1}:null},_rgbColorToRGBA:function(t){if(0===t.indexOf("rgb(")){t=t.match(/rgb\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:1}}},_rgbaColorToRGBA:function(t){if(0===t.indexOf("rgba(")){t=t.match(/rgba\(([^)]+)\)/)[1];var e=t.split(/ *, */).map(Number);return{r:e[0],g:e[1],b:e[2],a:e[3]}}},_hex6ColorToRGBA:function(t){if("#"===t[0]&&7===t.length)return{r:parseInt(t.slice(1,3),16),g:parseInt(t.slice(3,5),16),b:parseInt(t.slice(5,7),16),a:1}},_hex3ColorToRGBA:function(t){if("#"===t[0]&&4===t.length)return{r:parseInt(t[1]+t[1],16),g:parseInt(t[2]+t[2],16),b:parseInt(t[3]+t[3],16),a:1}},_merge:function(t,e){var n=this._clone(e);for(var r in t)this._isObject(t[r])?n[r]=this._merge(t[r],n[r]):n[r]=t[r];return n},cloneObject:function(t){var e={};for(var n in t)this._isObject(t[n])?e[n]=this.cloneObject(t[n]):this._isArray(t[n])?e[n]=this.cloneArray(t[n]):e[n]=t[n];return e},cloneArray:function(t){return t.slice(0)},_degToRad:function(e){return e*t},_radToDeg:function(t){return t*e},_capitalize:function(t){return t.charAt(0).toUpperCase()+t.slice(1)},throw:function(t){throw new Error("Konva error: "+t)},error:function(t){console.error("Konva error: "+t)},warn:function(t){Konva.global.console&&console.warn&&Konva.showWarnings&&console.warn("Konva warning: "+t)},extend:function(t,e){function n(){this.constructor=t}n.prototype=e.prototype;var r=t.prototype;t.prototype=new n;for(var i in r)r.hasOwnProperty(i)&&(t.prototype[i]=r[i]);t.__super__=e.prototype,t.super=e},addMethods:function(t,e){var n;for(n in e)t.prototype[n]=e[n]},_getControlPoints:function(t,e,n,r,i,a,o){var s=Math.sqrt(Math.pow(n-t,2)+Math.pow(r-e,2)),l=Math.sqrt(Math.pow(i-n,2)+Math.pow(a-r,2)),u=o*s/(s+l),c=o*l/(s+l);return[n-u*(i-t),r-u*(a-e),n+c*(i-t),r+c*(a-e)]},_expandPoints:function(t,e){var n,r,i=t.length,a=[];for(n=2;n<i-2;n+=2)r=Konva.Util._getControlPoints(t[n-2],t[n-1],t[n],t[n+1],t[n+2],t[n+3],e),a.push(r[0]),a.push(r[1]),a.push(t[n]),a.push(t[n+1]),a.push(r[2]),a.push(r[3]);return a},_removeLastLetter:function(t){return t.substring(0,t.length-1)},each:function(t,e){for(var n in t)e(n,t[n])},_getProjectionToSegment:function(t,e,n,r,i,a){var o,s,l,u=(t-n)*(t-n)+(e-r)*(e-r);if(0==u)o=t,s=e,l=(i-n)*(i-n)+(a-r)*(a-r);else{var c=((i-t)*(n-t)+(a-e)*(r-e))/u;c<0?(o=t,s=e,l=(t-i)*(t-i)+(e-a)*(e-a)):c>1?(o=n,s=r,l=(n-i)*(n-i)+(r-a)*(r-a)):(o=t+c*(n-t),s=e+c*(r-e),l=(o-i)*(o-i)+(s-a)*(s-a))}return[o,s,l]},_getProjectionToLine:function(t,e,n){var r=Konva.Util.cloneObject(t),i=Number.MAX_VALUE;return e.forEach(function(a,o){if(n||o!==e.length-1){var s=e[(o+1)%e.length],l=Konva.Util._getProjectionToSegment(a.x,a.y,s.x,s.y,t.x,t.y),u=l[0],c=l[1],f=l[2];f<i&&(r.x=u,r.y=c,i=f)}}),r},_prepareArrayForTween:function(t,e,n){var r,i=[],a=[];if(t.length>e.length){var o=e;e=t,t=o}for(r=0;r<t.length;r+=2)i.push({x:t[r],y:t[r+1]});for(r=0;r<e.length;r+=2)a.push({x:e[r],y:e[r+1]});var s=[];return a.forEach(function(t){var e=Konva.Util._getProjectionToLine(t,i,n);s.push(e.x),s.push(e.y)}),s},_prepareToStringify:function(t){var e;t.visitedByCircularReferenceRemoval=!0;for(var n in t)if(t.hasOwnProperty(n)&&t[n]&&"object"==typeof t[n])if(e=Object.getOwnPropertyDescriptor(t,n),t[n].visitedByCircularReferenceRemoval||Konva.Util._isElement(t[n])){if(!e.configurable)return null;delete t[n]}else if(null===Konva.Util._prepareToStringify(t[n])){if(!e.configurable)return null;delete t[n]}return delete t.visitedByCircularReferenceRemoval,t}}}(),function(){"use strict";function t(){if(e)return e;var t=Konva.Util.createCanvasElement(),n=t.getContext("2d");return e=function(){return(Konva.window.devicePixelRatio||1)/(n.webkitBackingStorePixelRatio||n.mozBackingStorePixelRatio||n.msBackingStorePixelRatio||n.oBackingStorePixelRatio||n.backingStorePixelRatio||1)}()}var e;Konva.Canvas=function(t){this.init(t)},Konva.Canvas.prototype={init:function(e){var n=e||{},r=n.pixelRatio||Konva.pixelRatio||t();this.pixelRatio=r,this._canvas=Konva.Util.createCanvasElement(),this._canvas.style.padding=0,this._canvas.style.margin=0,this._canvas.style.border=0,this._canvas.style.background="transparent",this._canvas.style.position="absolute",this._canvas.style.top=0,this._canvas.style.left=0},getContext:function(){return this.context},getPixelRatio:function(){return this.pixelRatio},setPixelRatio:function(t){var e=this.pixelRatio;this.pixelRatio=t,this.setSize(this.getWidth()/e,this.getHeight()/e)},setWidth:function(t){this.width=this._canvas.width=t*this.pixelRatio,this._canvas.style.width=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},setHeight:function(t){this.height=this._canvas.height=t*this.pixelRatio,this._canvas.style.height=t+"px";var e=this.pixelRatio;this.getContext()._context.scale(e,e)},getWidth:function(){return this.width},getHeight:function(){return this.height},setSize:function(t,e){this.setWidth(t),this.setHeight(e)},toDataURL:function(t,e){try{return this._canvas.toDataURL(t,e)}catch(t){try{return this._canvas.toDataURL()}catch(t){return Konva.Util.warn("Unable to get data URL. "+t.message),""}}}},Konva.SceneCanvas=function(t){var e=t||{},n=e.width||0,r=e.height||0;Konva.Canvas.call(this,e),this.context=new Konva.SceneContext(this),this.setSize(n,r)},Konva.Util.extend(Konva.SceneCanvas,Konva.Canvas),Konva.HitCanvas=function(t){var e=t||{},n=e.width||0,r=e.height||0;Konva.Canvas.call(this,e),this.context=new Konva.HitContext(this),this.setSize(n,r),this.hitCanvas=!0},Konva.Util.extend(Konva.HitCanvas,Konva.Canvas)}(),function(){"use strict";var t=["arc","arcTo","beginPath","bezierCurveTo","clearRect","clip","closePath","createLinearGradient","createPattern","createRadialGradient","drawImage","fill","fillText","getImageData","createImageData","lineTo","moveTo","putImageData","quadraticCurveTo","rect","restore","rotate","save","scale","setLineDash","setTransform","stroke","strokeText","transform","translate"],e=["fillStyle","strokeStyle","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","lineCap","lineDashOffset","lineJoin","lineWidth","miterLimit","font","textAlign","textBaseline","globalAlpha","globalCompositeOperation"];Konva.Context=function(t){this.init(t)},Konva.Context.prototype={init:function(t){this.canvas=t,this._context=t._canvas.getContext("2d"),Konva.enableTrace&&(this.traceArr=[],this._enableTrace())},fillShape:function(t){t.getFillEnabled()&&this._fill(t)},strokeShape:function(t){t.getStrokeEnabled()&&this._stroke(t)},fillStrokeShape:function(t){t.getFillEnabled()&&this._fill(t),t.getStrokeEnabled()&&this._stroke(t)},getTrace:function(t){var e,n,r,i,a=this.traceArr,o=a.length,s="";for(e=0;e<o;e++)n=a[e],r=n.method,r?(i=n.args,s+=r,t?s+="()":Konva.Util._isArray(i[0])?s+="(["+i.join(",")+"])":s+="("+i.join(",")+")"):(s+=n.property,t||(s+="="+n.val)),s+=";";return s},clearTrace:function(){this.traceArr=[]},_trace:function(t){var e,n=this.traceArr;n.push(t),(e=n.length)>=Konva.traceArrMax&&n.shift()},reset:function(){var t=this.getCanvas().getPixelRatio();this.setTransform(1*t,0,0,1*t,0,0)},getCanvas:function(){return this.canvas},clear:function(t){var e=this.getCanvas();t?this.clearRect(t.x||0,t.y||0,t.width||0,t.height||0):this.clearRect(0,0,e.getWidth()/e.pixelRatio,e.getHeight()/e.pixelRatio)},_applyLineCap:function(t){var e=t.getLineCap();e&&this.setAttr("lineCap",e)},_applyOpacity:function(t){var e=t.getAbsoluteOpacity();1!==e&&this.setAttr("globalAlpha",e)},_applyLineJoin:function(t){var e=t.getLineJoin();e&&this.setAttr("lineJoin",e)},setAttr:function(t,e){this._context[t]=e},arc:function(){var t=arguments;this._context.arc(t[0],t[1],t[2],t[3],t[4],t[5])},beginPath:function(){this._context.beginPath()},bezierCurveTo:function(){var t=arguments;this._context.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5])},clearRect:function(){var t=arguments;this._context.clearRect(t[0],t[1],t[2],t[3])},clip:function(){this._context.clip()},closePath:function(){this._context.closePath()},createImageData:function(){var t=arguments;return 2===t.length?this._context.createImageData(t[0],t[1]):1===t.length?this._context.createImageData(t[0]):void 0},createLinearGradient:function(){var t=arguments;return this._context.createLinearGradient(t[0],t[1],t[2],t[3])},createPattern:function(){var t=arguments;return this._context.createPattern(t[0],t[1])},createRadialGradient:function(){var t=arguments;return this._context.createRadialGradient(t[0],t[1],t[2],t[3],t[4],t[5])},drawImage:function(){var t=arguments,e=this._context;3===t.length?e.drawImage(t[0],t[1],t[2]):5===t.length?e.drawImage(t[0],t[1],t[2],t[3],t[4]):9===t.length&&e.drawImage(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8])},isPointInPath:function(t,e){return this._context.isPointInPath(t,e)},fill:function(){this._context.fill()},fillRect:function(t,e,n,r){this._context.fillRect(t,e,n,r)},strokeRect:function(t,e,n,r){this._context.strokeRect(t,e,n,r)},fillText:function(){var t=arguments;this._context.fillText(t[0],t[1],t[2])},measureText:function(t){return this._context.measureText(t)},getImageData:function(){var t=arguments;return this._context.getImageData(t[0],t[1],t[2],t[3])},lineTo:function(){var t=arguments;this._context.lineTo(t[0],t[1])},moveTo:function(){var t=arguments;this._context.moveTo(t[0],t[1])},rect:function(){var t=arguments;this._context.rect(t[0],t[1],t[2],t[3])},putImageData:function(){var t=arguments;this._context.putImageData(t[0],t[1],t[2])},quadraticCurveTo:function(){var t=arguments;this._context.quadraticCurveTo(t[0],t[1],t[2],t[3])},restore:function(){this._context.restore()},rotate:function(){var t=arguments;this._context.rotate(t[0])},save:function(){this._context.save()},scale:function(){var t=arguments;this._context.scale(t[0],t[1])},setLineDash:function(){var t=arguments,e=this._context;this._context.setLineDash?e.setLineDash(t[0]):"mozDash"in e?e.mozDash=t[0]:"webkitLineDash"in e&&(e.webkitLineDash=t[0])},getLineDash:function(){return this._context.getLineDash()},setTransform:function(){var t=arguments;this._context.setTransform(t[0],t[1],t[2],t[3],t[4],t[5])},stroke:function(){this._context.stroke()},strokeText:function(){var t=arguments;this._context.strokeText(t[0],t[1],t[2])},transform:function(){var t=arguments;this._context.transform(t[0],t[1],t[2],t[3],t[4],t[5])},translate:function(){var t=arguments;this._context.translate(t[0],t[1])},_enableTrace:function(){var e,n,r=this,i=t.length,a=Konva.Util._simplifyArray,o=this.setAttr;for(e=0;e<i;e++)!function(t){var e,i=r[t];r[t]=function(){return n=a(Array.prototype.slice.call(arguments,0)),e=i.apply(r,arguments),r._trace({method:t,args:n}),e}}(t[e]);r.setAttr=function(){o.apply(r,arguments);var t=arguments[0],e=arguments[1];"shadowOffsetX"!==t&&"shadowOffsetY"!==t&&"shadowBlur"!==t||(e/=this.canvas.getPixelRatio()),r._trace({property:t,val:e})}}},e.forEach(function(t){Object.defineProperty(Konva.Context.prototype,t,{get:function(){return this._context[t]},set:function(e){this._context[t]=e}})}),Konva.SceneContext=function(t){Konva.Context.call(this,t)},Konva.SceneContext.prototype={_fillColor:function(t){var e=t.fill();this.setAttr("fillStyle",e),t._fillFunc(this)},_fillPattern:function(t){var e=t.getFillPatternX(),n=t.getFillPatternY(),r=t.getFillPatternScale(),i=Konva.getAngle(t.getFillPatternRotation()),a=t.getFillPatternOffset();(e||n)&&this.translate(e||0,n||0),i&&this.rotate(i),r&&this.scale(r.x,r.y),a&&this.translate(-1*a.x,-1*a.y),this.setAttr("fillStyle",this.createPattern(t.getFillPatternImage(),t.getFillPatternRepeat()||"repeat")),this.fill()},_fillLinearGradient:function(t){var e=t.getFillLinearGradientStartPoint(),n=t.getFillLinearGradientEndPoint(),r=t.getFillLinearGradientColorStops(),i=this.createLinearGradient(e.x,e.y,n.x,n.y);if(r){for(var a=0;a<r.length;a+=2)i.addColorStop(r[a],r[a+1]);this.setAttr("fillStyle",i),t._fillFunc(this)}},_fillRadialGradient:function(t){for(var e=t.getFillRadialGradientStartPoint(),n=t.getFillRadialGradientEndPoint(),r=t.getFillRadialGradientStartRadius(),i=t.getFillRadialGradientEndRadius(),a=t.getFillRadialGradientColorStops(),o=this.createRadialGradient(e.x,e.y,r,n.x,n.y,i),s=0;s<a.length;s+=2)o.addColorStop(a[s],a[s+1]);this.setAttr("fillStyle",o),this.fill()},_fill:function(t){var e=t.fill(),n=t.getFillPatternImage(),r=t.getFillLinearGradientColorStops(),i=t.getFillRadialGradientColorStops(),a=t.getFillPriority();e&&"color"===a?this._fillColor(t):n&&"pattern"===a?this._fillPattern(t):r&&"linear-gradient"===a?this._fillLinearGradient(t):i&&"radial-gradient"===a?this._fillRadialGradient(t):e?this._fillColor(t):n?this._fillPattern(t):r?this._fillLinearGradient(t):i&&this._fillRadialGradient(t)},_stroke:function(t){var e=t.dash(),n=t.getStrokeScaleEnabled()||t instanceof Konva.Text;t.hasStroke()&&(n||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(t),e&&t.dashEnabled()&&(this.setLineDash(e),this.setAttr("lineDashOffset",t.dashOffset())),this.setAttr("lineWidth",t.strokeWidth()),this.setAttr("strokeStyle",t.stroke()),t.getShadowForStrokeEnabled()||this.setAttr("shadowColor","rgba(0,0,0,0)"),t._strokeFunc(this),n||this.restore())},_applyShadow:function(t){var e=Konva.Util,n=e.get(t.getShadowRGBA(),"black"),r=e.get(t.getShadowBlur(),5),i=e.get(t.getShadowOffset(),{x:0,y:0}),a=t.getAbsoluteScale(),o=this.canvas.getPixelRatio(),s=a.x*o,l=a.y*o;this.setAttr("shadowColor",n),this.setAttr("shadowBlur",r*o*Math.min(Math.abs(s),Math.abs(l))),this.setAttr("shadowOffsetX",i.x*s),this.setAttr("shadowOffsetY",i.y*l)},_applyGlobalCompositeOperation:function(t){var e=t.getGlobalCompositeOperation();"source-over"!==e&&this.setAttr("globalCompositeOperation",e)}},Konva.Util.extend(Konva.SceneContext,Konva.Context),Konva.HitContext=function(t){Konva.Context.call(this,t)},Konva.HitContext.prototype={_fill:function(t){this.save(),this.setAttr("fillStyle",t.colorKey),t._fillFuncHit(this),this.restore()},_stroke:function(t){if(t.hasStroke()&&t.strokeHitEnabled()){var e=t.getStrokeScaleEnabled()||t instanceof Konva.Text;e||(this.save(),this.setTransform(1,0,0,1,0,0)),this._applyLineCap(t),this.setAttr("lineWidth",t.strokeWidth()),this.setAttr("strokeStyle",t.colorKey),t._strokeFuncHit(this),e||this.restore()}}},Konva.Util.extend(Konva.HitContext,Konva.Context)}(),function(){"use strict";Konva.Factory={addGetterSetter:function(t,e,n,r,i){this.addGetter(t,e,n),this.addSetter(t,e,r,i),this.addOverloadedGetterSetter(t,e)},addGetter:function(t,e,n){var r="get"+Konva.Util._capitalize(e);t.prototype[r]=function(){var t=this.attrs[e];return void 0===t?n:t}},addSetter:function(t,e,n,r){var i="set"+Konva.Util._capitalize(e);t.prototype[i]=function(t){return n&&(t=n.call(this,t)),this._setAttr(e,t),r&&r.call(this),this}},addComponentsGetterSetter:function(t,e,n,r,i){var a,o,s=n.length,l=Konva.Util._capitalize,u="get"+l(e),c="set"+l(e);t.prototype[u]=function(){var t={};for(a=0;a<s;a++)o=n[a],t[o]=this.getAttr(e+l(o));return t},t.prototype[c]=function(t){var n,a=this.attrs[e];r&&(t=r.call(this,t));for(n in t)t.hasOwnProperty(n)&&this._setAttr(e+l(n),t[n]);return this._fireChangeEvent(e,a,t),i&&i.call(this),this},this.addOverloadedGetterSetter(t,e)},addOverloadedGetterSetter:function(t,e){var n=Konva.Util._capitalize(e),r="set"+n,i="get"+n;t.prototype[e]=function(){return arguments.length?(this[r](arguments[0]),this):this[i]()}},addDeprecatedGetterSetter:function(t,e,n,r){var i="get"+Konva.Util._capitalize(e),a=e+" property is deprecated and will be removed soon. Look at Konva change log for more information.";t.prototype[i]=function(){Konva.Util.error(a);var t=this.attrs[e];return void 0===t?n:t},this.addSetter(t,e,r,function(){Konva.Util.error(a)}),this.addOverloadedGetterSetter(t,e)},backCompat:function(t,e){Konva.Util.each(e,function(e,n){var r=t.prototype[n];t.prototype[e]=function(){r.apply(this,arguments),Konva.Util.error(e+" method is deprecated and will be removed soon. Use "+n+" instead")}})},afterSetFilter:function(){this._filterUpToDate=!1}},Konva.Validators={RGBComponent:function(t){return t>255?255:t<0?0:Math.round(t)},alphaComponent:function(t){return t>1?1:t<1e-4?1e-4:t}}}(),function(t){"use strict";var e="Shape",n=["id"],r=["xChange.konva","yChange.konva","scaleXChange.konva","scaleYChange.konva","skewXChange.konva","skewYChange.konva","rotationChange.konva","offsetXChange.konva","offsetYChange.konva","transformsEnabledChange.konva"].join(" "),i=["scaleXChange.konva","scaleYChange.konva"].join(" ");t.Node=function(t){this._init(t)},t.Util.addMethods(t.Node,{_init:function(e){var n=this;this._id=t.idCounter++,this.eventListeners={},this.attrs={},this._cache={},this._filterUpToDate=!1,this._isUnderCache=!1,this.setAttrs(e),this.on(r,function(){this._clearCache("transform"),n._clearSelfAndDescendantCache("absoluteTransform")}),this.on(i,function(){n._clearSelfAndDescendantCache("absoluteScale")}),this.on("visibleChange.konva",function(){n._clearSelfAndDescendantCache("visible")}),this.on("listeningChange.konva",function(){n._clearSelfAndDescendantCache("listening")}),this.on("opacityChange.konva",function(){n._clearSelfAndDescendantCache("absoluteOpacity")})},_clearCache:function(t){t?delete this._cache[t]:this._cache={}},_getCache:function(t,e){return void 0===this._cache[t]&&(this._cache[t]=e.call(this)),this._cache[t]},_clearSelfAndDescendantCache:function(t){this._clearCache(t),this.children&&this.getChildren().each(function(e){e._clearSelfAndDescendantCache(t)})},clearCache:function(){return delete this._cache.canvas,this._filterUpToDate=!1,this},cache:function(e){var n=e||{},r=this.getClientRect({skipTransform:!0,relativeTo:this.getParent()}),i=n.width||r.width,a=n.height||r.height,o=n.pixelRatio,s=n.x||r.x,l=n.y||r.y,u=n.offset||0,c=n.drawBorder||!1;if(!i||!a)return void setTimeout(function(){t.Util.throw("Width or height of caching configuration equals 0. Caching is ignored.")});i+=2*u,a+=2*u,s-=u,l-=u;var f=new t.SceneCanvas({pixelRatio:o,width:i,height:a}),d=new t.SceneCanvas({pixelRatio:o,width:i,height:a}),h=new t.HitCanvas({pixelRatio:1,width:i,height:a}),p=f.getContext(),v=h.getContext();return h.isCache=!0,this.clearCache(),p.save(),v.save(),p.translate(-s,-l),v.translate(-s,-l),this._isUnderCache=!0,this._clearSelfAndDescendantCache("absoluteOpacity"),this._clearSelfAndDescendantCache("absoluteScale"),this.drawScene(f,this,!0),this.drawHit(h,this,!0),this._isUnderCache=!1,p.restore(),v.restore(),c&&(p.save(),p.beginPath(),p.rect(0,0,i,a),p.closePath(),p.setAttr("strokeStyle","red"),p.setAttr("lineWidth",5),p.stroke(),p.restore()),this._cache.canvas={scene:f,filter:d,hit:h,x:s,y:l},this},getClientRect:function(){throw new Error('abstract "getClientRect" method call')},_transformedRect:function(t,e){var n,r,i,a,o=[{x:t.x,y:t.y},{x:t.x+t.width,y:t.y},{x:t.x+t.width,y:t.y+t.height},{x:t.x,y:t.y+t.height}],s=this.getAbsoluteTransform(e);return o.forEach(function(t){var e=s.point(t);void 0===n&&(n=i=e.x,r=a=e.y),n=Math.min(n,e.x),r=Math.min(r,e.y),i=Math.max(i,e.x),a=Math.max(a,e.y)}),{x:n,y:r,width:i-n,height:a-r}},_drawCachedSceneCanvas:function(t){t.save(),t._applyOpacity(this),t._applyGlobalCompositeOperation(this),t.translate(this._cache.canvas.x,this._cache.canvas.y);var e=this._getCachedSceneCanvas(),n=e.pixelRatio;t.drawImage(e._canvas,0,0,e.width/n,e.height/n),t.restore()},_drawCachedHitCanvas:function(t){var e=this._cache.canvas,n=e.hit;t.save(),t.translate(this._cache.canvas.x,this._cache.canvas.y),t.drawImage(n._canvas,0,0),t.restore()},_getCachedSceneCanvas:function(){var e,n,r,i,a=this.filters(),o=this._cache.canvas,s=o.scene,l=o.filter,u=l.getContext();if(a){if(!this._filterUpToDate){var c=s.pixelRatio;try{for(e=a.length,u.clear(),u.drawImage(s._canvas,0,0,s.getWidth()/c,s.getHeight()/c),n=u.getImageData(0,0,l.getWidth(),l.getHeight()),r=0;r<e;r++)i=a[r],"function"==typeof i?(i.call(this,n),u.putImageData(n,0,0)):t.Util.error("Filter should be type of function, but got "+typeof i+" insted. Please check correct filters")}catch(e){t.Util.error("Unable to apply filter. "+e.message)}this._filterUpToDate=!0}return l}return s},on:function(t,e){if(3===arguments.length)return this._delegate.apply(this,arguments);var n,r,i,a,o,s=t.split(" "),l=s.length;for(n=0;n<l;n++)r=s[n],i=r.split("."),a=i[0],o=i[1]||"",this.eventListeners[a]||(this.eventListeners[a]=[]),this.eventListeners[a].push({name:o,handler:e});return this},off:function(t){var e,n,r,i,a,o,s=(t||"").split(" "),l=s.length;if(!t)for(n in this.eventListeners)this._off(n);for(e=0;e<l;e++)if(r=s[e],i=r.split("."),a=i[0],o=i[1],a)this.eventListeners[a]&&this._off(a,o);else for(n in this.eventListeners)this._off(n,o);return this},dispatchEvent:function(t){var e={target:this,type:t.type,evt:t};return this.fire(t.type,e),this},addEventListener:function(t,e){return this.on(t,function(t){e.call(this,t.evt)}),this},removeEventListener:function(t){return this.off(t),this},_delegate:function(e,n,r){var i=this;this.on(e,function(e){for(var a=e.target.findAncestors(n,!0,i),o=0;o<a.length;o++)e=t.Util.cloneObject(e),e.currentTarget=a[o],r.call(a[o],e)})},remove:function(){var t=this.getParent();return t&&t.children&&(t.children.splice(this.index,1),t._setChildrenIndices(),delete this.parent),this._clearSelfAndDescendantCache("stage"),this._clearSelfAndDescendantCache("absoluteTransform"),this._clearSelfAndDescendantCache("visible"),this._clearSelfAndDescendantCache("listening"),this._clearSelfAndDescendantCache("absoluteOpacity"),this},destroy:function(){t._removeId(this.getId());for(var e=(this.getName()||"").split(/\s/g),n=0;n<e.length;n++){var r=e[n];t._removeName(r,this._id)}return this.remove(),this},getAttr:function(e){var n="get"+t.Util._capitalize(e);return t.Util._isFunction(this[n])?this[n]():this.attrs[e]},getAncestors:function(){for(var e=this.getParent(),n=new t.Collection;e;)n.push(e),e=e.getParent();return n},getAttrs:function(){return this.attrs||{}},setAttrs:function(e){var n,r;if(!e)return this;for(n in e)"children"!==n&&(r="set"+t.Util._capitalize(n),t.Util._isFunction(this[r])?this[r](e[n]):this._setAttr(n,e[n]));return this},isListening:function(){return this._getCache("listening",this._isListening)},_isListening:function(){var t=this.getListening(),e=this.getParent();return"inherit"===t?!e||e.isListening():t},isVisible:function(){return this._getCache("visible",this._isVisible)},_isVisible:function(){var t=this.getVisible(),e=this.getParent();return"inherit"===t?!e||e.isVisible():t},shouldDrawHit:function(t){var e=this.getLayer();return t&&t.isCache||e&&e.hitGraphEnabled()&&this.isListening()&&this.isVisible()},show:function(){return this.setVisible(!0),this},hide:function(){return this.setVisible(!1),this},getZIndex:function(){return this.index||0},getAbsoluteZIndex:function(){function t(u){for(n=[],r=u.length,i=0;i<r;i++)a=u[i],l++,a.nodeType!==e&&(n=n.concat(a.getChildren().toArray())),a._id===s._id&&(i=r);n.length>0&&n[0].getDepth()<=o&&t(n)}var n,r,i,a,o=this.getDepth(),s=this,l=0;return"Stage"!==s.nodeType&&t(s.getStage().getChildren()),l},getDepth:function(){for(var t=0,e=this.parent;e;)t++,e=e.parent;return t},setPosition:function(t){return this.setX(t.x),this.setY(t.y),this},getPosition:function(){return{x:this.getX(),y:this.getY()}},getAbsolutePosition:function(e){var n=this.getAbsoluteTransform(e).getMatrix(),r=new t.Transform,i=this.offset();return r.m=n.slice(),r.translate(i.x,i.y),r.getTranslation()},setAbsolutePosition:function(t){var e,n=this._clearTransform();return this.attrs.x=n.x,this.attrs.y=n.y,delete n.x,delete n.y,e=this.getAbsoluteTransform(),e.invert(),e.translate(t.x,t.y),t={x:this.attrs.x+e.getTranslation().x,y:this.attrs.y+e.getTranslation().y},this.setPosition({x:t.x,y:t.y}),this._setTransform(n),this},_setTransform:function(t){var e;for(e in t)this.attrs[e]=t[e];this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform")},_clearTransform:function(){var t={x:this.getX(),y:this.getY(),rotation:this.getRotation(),scaleX:this.getScaleX(),scaleY:this.getScaleY(),offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),skewX:this.getSkewX(),skewY:this.getSkewY()};return this.attrs.x=0,this.attrs.y=0,this.attrs.rotation=0,this.attrs.scaleX=1,this.attrs.scaleY=1,this.attrs.offsetX=0,this.attrs.offsetY=0,this.attrs.skewX=0,this.attrs.skewY=0,this._clearCache("transform"),this._clearSelfAndDescendantCache("absoluteTransform"),t},move:function(t){var e=t.x,n=t.y,r=this.getX(),i=this.getY();return void 0!==e&&(r+=e),void 0!==n&&(i+=n),this.setPosition({x:r,y:i}),this},_eachAncestorReverse:function(t,e){var n,r,i=[],a=this.getParent();if(e&&e._id===this._id)return t(this),!0;for(i.unshift(this);a&&(!e||a._id!==e._id);)i.unshift(a),a=a.parent;for(n=i.length,r=0;r<n;r++)t(i[r])},rotate:function(t){return this.setRotation(this.getRotation()+t),this},moveToTop:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveToTop function is ignored."),!1;var e=this.index;return this.parent.children.splice(e,1),this.parent.children.push(this),this.parent._setChildrenIndices(),!0},moveUp:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveUp function is ignored."),!1;var e=this.index;return e<this.parent.getChildren().length-1&&(this.parent.children.splice(e,1),this.parent.children.splice(e+1,0,this),this.parent._setChildrenIndices(),!0)},moveDown:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveDown function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.splice(e-1,0,this),this.parent._setChildrenIndices(),!0)},moveToBottom:function(){if(!this.parent)return t.Util.warn("Node has no parent. moveToBottom function is ignored."),!1;var e=this.index;return e>0&&(this.parent.children.splice(e,1),this.parent.children.unshift(this),this.parent._setChildrenIndices(),!0)},setZIndex:function(e){if(!this.parent)return t.Util.warn("Node has no parent. zIndex parameter is ignored."),!1;var n=this.index;return this.parent.children.splice(n,1),this.parent.children.splice(e,0,this),this.parent._setChildrenIndices(),this},getAbsoluteOpacity:function(){return this._getCache("absoluteOpacity",this._getAbsoluteOpacity)},_getAbsoluteOpacity:function(){var t=this.getOpacity(),e=this.getParent();return e&&!e._isUnderCache&&(t*=this.getParent().getAbsoluteOpacity()),t},moveTo:function(t){return this.getParent()!==t&&((this.__originalRemove||this.remove).call(this),t.add(this)),this},toObject:function(){var e,n,r,i,a={},o=this.getAttrs();a.attrs={};for(e in o)n=o[e],r=this[e],delete o[e],i=r?r.call(this):null,o[e]=n,i!==n&&(a.attrs[e]=n);return a.className=this.getClassName(),t.Util._prepareToStringify(a)},toJSON:function(){return JSON.stringify(this.toObject())},getParent:function(){return this.parent},findAncestors:function(t,e,n){var r=[];e&&this._isMatch(t)&&r.push(this);for(var i=this.parent;i;){if(i===n)return r;i._isMatch(t)&&r.push(i),i=i.parent}return r},findAncestor:function(t,e,n){return this.findAncestors(t,e,n)[0]},_isMatch:function(e){if(!e)return!1;var n,r,i=e.replace(/ /g,"").split(","),a=i.length;for(n=0;n<a;n++)if(r=i[n],t.Util.isValidSelector(r)||(t.Util.warn('Selector "'+r+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),t.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),t.Util.warn("Konva is awesome, right?")),"#"===r.charAt(0)){if(this.id()===r.slice(1))return!0}else if("."===r.charAt(0)){if(this.hasName(r.slice(1)))return!0}else if(0!==this._get(r).length)return!0;return!1},getLayer:function(){var t=this.getParent();return t?t.getLayer():null},getStage:function(){return this._getCache("stage",this._getStage)},_getStage:function(){var t=this.getParent();return t?t.getStage():void 0},fire:function(t,e,n){return e=e||{},e.target=e.target||this,n?this._fireAndBubble(t,e):this._fire(t,e),this},getAbsoluteTransform:function(t){return t?this._getAbsoluteTransform(t):this._getCache("absoluteTransform",this._getAbsoluteTransform)},_getAbsoluteTransform:function(e){var n,r,i=new t.Transform;return this._eachAncestorReverse(function(t){n=t.transformsEnabled(),r=t.getTransform(),"all"===n?i.multiply(r):"position"===n&&i.translate(t.x(),t.y())},e),i},getAbsoluteScale:function(t){return t?this._getAbsoluteScale(t):this._getCache("absoluteScale",this._getAbsoluteScale)},_getAbsoluteScale:function(t){for(var e=this;e;)e._isUnderCache&&(t=e),e=e.getParent();var n=1,r=1;return this._eachAncestorReverse(function(t){n*=t.scaleX(),r*=t.scaleY()},t),{x:n,y:r}},getTransform:function(){return this._getCache("transform",this._getTransform)},_getTransform:function(){var e=new t.Transform,n=this.getX(),r=this.getY(),i=t.getAngle(this.getRotation()),a=this.getScaleX(),o=this.getScaleY(),s=this.getSkewX(),l=this.getSkewY(),u=this.getOffsetX(),c=this.getOffsetY();return 0===n&&0===r||e.translate(n,r),0!==i&&e.rotate(i),0===s&&0===l||e.skew(s,l),1===a&&1===o||e.scale(a,o),0===u&&0===c||e.translate(-1*u,-1*c),e},clone:function(e){var r,i,a,o,s,l=t.Util.cloneObject(this.attrs);for(var u in n){delete l[n[u]]}for(r in e)l[r]=e[r];var c=new this.constructor(l);for(r in this.eventListeners)for(i=this.eventListeners[r],a=i.length,o=0;o<a;o++)s=i[o],s.name.indexOf("konva")<0&&(c.eventListeners[r]||(c.eventListeners[r]=[]),c.eventListeners[r].push(s));return c},_toKonvaCanvas:function(e){e=e||{};var n=this.getStage(),r=e.x||0,i=e.y||0,a=e.pixelRatio||1,o=new t.SceneCanvas({width:e.width||this.getWidth()||(n?n.getWidth():0),height:e.height||this.getHeight()||(n?n.getHeight():0),pixelRatio:a}),s=o.getContext();return s.save(),(r||i)&&s.translate(-1*r,-1*i),this.drawScene(o),s.restore(),o},toCanvas:function(t){return this._toKonvaCanvas(t)._canvas},toDataURL:function(t){t=t||{};var e=t.mimeType||null,n=t.quality||null;return this._toKonvaCanvas(t).toDataURL(e,n)},toImage:function(e){if(!e||!e.callback)throw"callback required for toImage method config argument";t.Util._getImage(this.toDataURL(e),function(t){e.callback(t)})},setSize:function(t){return this.setWidth(t.width),this.setHeight(t.height),this},getSize:function(){return{width:this.getWidth(),height:this.getHeight()}},getWidth:function(){return this.attrs.width||0},getHeight:function(){return this.attrs.height||0},getClassName:function(){return this.className||this.nodeType},getType:function(){return this.nodeType},getDragDistance:function(){return void 0!==this.attrs.dragDistance?this.attrs.dragDistance:this.parent?this.parent.getDragDistance():t.dragDistance},_get:function(t){return this.className===t||this.nodeType===t?[this]:[]},_off:function(t,e){var n,r,i=this.eventListeners[t];for(n=0;n<i.length;n++)if(!("konva"===(r=i[n].name)&&"konva"!==e||e&&r!==e)){if(i.splice(n,1),0===i.length){delete this.eventListeners[t];break}n--}},_fireChangeEvent:function(t,e,n){this._fire(t+"Change",{oldVal:e,newVal:n})},setId:function(e){var n=this.getId();return t._removeId(n),t._addId(this,e),this._setAttr("id",e),this},setName:function(e){var n,r,i=(this.getName()||"").split(/\s/g),a=(e||"").split(/\s/g);for(r=0;r<i.length;r++)n=i[r],-1===a.indexOf(n)&&n&&t._removeName(n,this._id);for(r=0;r<a.length;r++)n=a[r],-1===i.indexOf(n)&&n&&t._addName(this,n);return this._setAttr("name",e),this},addName:function(t){if(!this.hasName(t)){var e=this.name(),n=e?e+" "+t:t;this.setName(n)}return this},hasName:function(t){return-1!==(this.name()||"").split(/\s/g).indexOf(t)},removeName:function(t){var e=(this.name()||"").split(/\s/g),n=e.indexOf(t);return-1!==n&&(e.splice(n,1),this.setName(e.join(" "))),this},setAttr:function(e,n){var r="set"+t.Util._capitalize(e),i=this[r];return t.Util._isFunction(i)?i.call(this,n):this._setAttr(e,n),this},_setAttr:function(t,e){var n;(n=this.attrs[t])!==e&&(void 0===e||null===e?delete this.attrs[t]:this.attrs[t]=e,this._fireChangeEvent(t,n,e))},_setComponentAttr:function(t,e,n){var r;void 0!==n&&(r=this.attrs[t],r||(this.attrs[t]=this.getAttr(t)),this.attrs[t][e]=n,this._fireChangeEvent(t,r,n))},_fireAndBubble:function(t,n,r){var i=!0;if(n&&this.nodeType===e&&(n.target=this),"mouseenter"===t&&r&&(this._id===r._id||this.isAncestorOf&&this.isAncestorOf(r))?i=!1:"mouseleave"===t&&r&&(this._id===r._id||this.isAncestorOf&&this.isAncestorOf(r))&&(i=!1),i){this._fire(t,n);var a=("mouseenter"===t||"mouseleave"===t)&&r&&r.isAncestorOf&&r.isAncestorOf(this)&&!r.isAncestorOf(this.parent);(n&&!n.cancelBubble||!n)&&this.parent&&this.parent.isListening()&&!a&&(r&&r.parent?this._fireAndBubble.call(this.parent,t,n,r.parent):this._fireAndBubble.call(this.parent,t,n))}},_fire:function(t,e){var n,r=this.eventListeners[t];if(e=e||{},e.currentTarget=this,e.type=t,r)for(n=0;n<r.length;n++)r[n].handler.call(this,e)},draw:function(){return this.drawScene(),this.drawHit(),this}}),t.Node.create=function(e,n){return t.Util._isString(e)&&(e=JSON.parse(e)),this._createNode(e,n)},t.Node._createNode=function(e,n){var r,i,a,o=t.Node.prototype.getClassName.call(e),s=e.children;if(n&&(e.attrs.container=n),r=new t[o](e.attrs),s)for(i=s.length,a=0;a<i;a++)r.add(this._createNode(s[a]));return r},t.Factory.addOverloadedGetterSetter(t.Node,"position"),t.Factory.addGetterSetter(t.Node,"x",0),t.Factory.addGetterSetter(t.Node,"y",0),t.Factory.addGetterSetter(t.Node,"globalCompositeOperation","source-over"),t.Factory.addGetterSetter(t.Node,"opacity",1),t.Factory.addGetter(t.Node,"name"),t.Factory.addOverloadedGetterSetter(t.Node,"name"),t.Factory.addGetter(t.Node,"id"),t.Factory.addOverloadedGetterSetter(t.Node,"id"),t.Factory.addGetterSetter(t.Node,"rotation",0),t.Factory.addComponentsGetterSetter(t.Node,"scale",["x","y"]),t.Factory.addGetterSetter(t.Node,"scaleX",1),t.Factory.addGetterSetter(t.Node,"scaleY",1),t.Factory.addComponentsGetterSetter(t.Node,"skew",["x","y"]),t.Factory.addGetterSetter(t.Node,"skewX",0),t.Factory.addGetterSetter(t.Node,"skewY",0),t.Factory.addComponentsGetterSetter(t.Node,"offset",["x","y"]),t.Factory.addGetterSetter(t.Node,"offsetX",0),t.Factory.addGetterSetter(t.Node,"offsetY",0),t.Factory.addSetter(t.Node,"dragDistance"),t.Factory.addOverloadedGetterSetter(t.Node,"dragDistance"),t.Factory.addSetter(t.Node,"width",0),t.Factory.addOverloadedGetterSetter(t.Node,"width"),t.Factory.addSetter(t.Node,"height",0),t.Factory.addOverloadedGetterSetter(t.Node,"height"),t.Factory.addGetterSetter(t.Node,"listening","inherit"),t.Factory.addGetterSetter(t.Node,"preventDefault",!0),t.Factory.addGetterSetter(t.Node,"filters",void 0,function(t){return this._filterUpToDate=!1,t}),t.Factory.addGetterSetter(t.Node,"visible","inherit"),t.Factory.addGetterSetter(t.Node,"transformsEnabled","all"),t.Factory.addOverloadedGetterSetter(t.Node,"size"),t.Factory.backCompat(t.Node,{rotateDeg:"rotate",setRotationDeg:"setRotation",getRotationDeg:"getRotation"}),t.Collection.mapMethods(t.Node)}(Konva),function(){"use strict";Konva.Filters.Grayscale=function(t){var e,n,r=t.data,i=r.length;for(e=0;e<i;e+=4)n=.34*r[e]+.5*r[e+1]+.16*r[e+2],r[e]=n,r[e+1]=n,r[e+2]=n}}(),function(t){"use strict";t.Filters.Brighten=function(t){var e,n=255*this.brightness(),r=t.data,i=r.length;for(e=0;e<i;e+=4)r[e]+=n,r[e+1]+=n,r[e+2]+=n},t.Factory.addGetterSetter(t.Node,"brightness",0,null,t.Factory.afterSetFilter)}(Konva),function(){"use strict";Konva.Filters.Invert=function(t){var e,n=t.data,r=n.length;for(e=0;e<r;e+=4)n[e]=255-n[e],n[e+1]=255-n[e+1],n[e+2]=255-n[e+2]}}(),function(t){"use strict";function e(){this.r=0,this.g=0,this.b=0,this.a=0,this.next=null}function n(t,n){var a,o,s,l,u,c,f,d,h,p,v,g,m,y,b,_,C,x,S,w,T,k,P,K,F=t.data,E=t.width,N=t.height,I=n+n+1,R=E-1,D=N-1,M=n+1,O=M*(M+1)/2,A=new e,U=null,L=A,G=null,z=null,B=r[n],H=i[n];for(s=1;s<I;s++)L=L.next=new e,s===M&&(U=L);for(L.next=A,f=c=0,o=0;o<N;o++){for(_=C=x=S=d=h=p=v=0,g=M*(w=F[c]),m=M*(T=F[c+1]),y=M*(k=F[c+2]),b=M*(P=F[c+3]),d+=O*w,h+=O*T,p+=O*k,v+=O*P,L=A,s=0;s<M;s++)L.r=w,L.g=T,L.b=k,L.a=P,L=L.next;for(s=1;s<M;s++)l=c+((R<s?R:s)<<2),d+=(L.r=w=F[l])*(K=M-s),h+=(L.g=T=F[l+1])*K,p+=(L.b=k=F[l+2])*K,v+=(L.a=P=F[l+3])*K,_+=w,C+=T,x+=k,S+=P,L=L.next;for(G=A,z=U,a=0;a<E;a++)F[c+3]=P=v*B>>H,0!==P?(P=255/P,F[c]=(d*B>>H)*P,F[c+1]=(h*B>>H)*P,F[c+2]=(p*B>>H)*P):F[c]=F[c+1]=F[c+2]=0,d-=g,h-=m,p-=y,v-=b,g-=G.r,m-=G.g,y-=G.b,b-=G.a,l=f+((l=a+n+1)<R?l:R)<<2,_+=G.r=F[l],C+=G.g=F[l+1],x+=G.b=F[l+2],S+=G.a=F[l+3],d+=_,h+=C,p+=x,v+=S,G=G.next,g+=w=z.r,m+=T=z.g,y+=k=z.b,b+=P=z.a,_-=w,C-=T,x-=k,S-=P,z=z.next,c+=4;f+=E}for(a=0;a<E;a++){for(C=x=S=_=h=p=v=d=0,c=a<<2,g=M*(w=F[c]),m=M*(T=F[c+1]),y=M*(k=F[c+2]),b=M*(P=F[c+3]),d+=O*w,h+=O*T,p+=O*k,v+=O*P,L=A,s=0;s<M;s++)L.r=w,L.g=T,L.b=k,L.a=P,L=L.next;for(u=E,s=1;s<=n;s++)c=u+a<<2,d+=(L.r=w=F[c])*(K=M-s),h+=(L.g=T=F[c+1])*K,p+=(L.b=k=F[c+2])*K,v+=(L.a=P=F[c+3])*K,_+=w,C+=T,x+=k,S+=P,L=L.next,s<D&&(u+=E);for(c=a,G=A,z=U,o=0;o<N;o++)l=c<<2,F[l+3]=P=v*B>>H,P>0?(P=255/P,F[l]=(d*B>>H)*P,F[l+1]=(h*B>>H)*P,F[l+2]=(p*B>>H)*P):F[l]=F[l+1]=F[l+2]=0,d-=g,h-=m,p-=y,v-=b,g-=G.r,m-=G.g,y-=G.b,b-=G.a,l=a+((l=o+M)<D?l:D)*E<<2,d+=_+=G.r=F[l],h+=C+=G.g=F[l+1],p+=x+=G.b=F[l+2],v+=S+=G.a=F[l+3],G=G.next,g+=w=z.r,m+=T=z.g,y+=k=z.b,b+=P=z.a,_-=w,C-=T,x-=k,S-=P,z=z.next,c+=E}}var r=[512,512,456,512,328,456,335,512,405,328,271,456,388,335,292,512,454,405,364,328,298,271,496,456,420,388,360,335,312,292,273,512,482,454,428,405,383,364,345,328,312,298,284,271,259,496,475,456,437,420,404,388,374,360,347,335,323,312,302,292,282,273,265,512,497,482,468,454,441,428,417,405,394,383,373,364,354,345,337,328,320,312,305,298,291,284,278,271,265,259,507,496,485,475,465,456,446,437,428,420,412,404,396,388,381,374,367,360,354,347,341,335,329,323,318,312,307,302,297,292,287,282,278,273,269,265,261,512,505,497,489,482,475,468,461,454,447,441,435,428,422,417,411,405,399,394,389,383,378,373,368,364,359,354,350,345,341,337,332,328,324,320,316,312,309,305,301,298,294,291,287,284,281,278,274,271,268,265,262,259,257,507,501,496,491,485,480,475,470,465,460,456,451,446,442,437,433,428,424,420,416,412,408,404,400,396,392,388,385,381,377,374,370,367,363,360,357,354,350,347,344,341,338,335,332,329,326,323,320,318,315,312,310,307,304,302,299,297,294,292,289,287,285,282,280,278,275,273,271,269,267,265,263,261,259],i=[9,11,12,13,13,14,14,15,15,15,15,16,16,16,16,17,17,17,17,17,17,17,18,18,18,18,18,18,18,18,18,19,19,19,19,19,19,19,19,19,19,19,19,19,19,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,20,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,21,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,22,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24];t.Filters.Blur=function(t){var e=Math.round(this.blurRadius());e>0&&n(t,e)},t.Factory.addGetterSetter(t.Node,"blurRadius",0,null,t.Factory.afterSetFilter)}(Konva),function(){"use strict";function t(t,e,n){var r=4*(n*t.width+e),i=[];return i.push(t.data[r++],t.data[r++],t.data[r++],t.data[r++]),i}function e(t,e){return Math.sqrt(Math.pow(t[0]-e[0],2)+Math.pow(t[1]-e[1],2)+Math.pow(t[2]-e[2],2))}function n(t){for(var e=[0,0,0],n=0;n<t.length;n++)e[0]+=t[n][0],e[1]+=t[n][1],e[2]+=t[n][2];return e[0]/=t.length,e[1]/=t.length,e[2]/=t.length,e}function r(r,i){var a=t(r,0,0),o=t(r,r.width-1,0),s=t(r,0,r.height-1),l=t(r,r.width-1,r.height-1),u=i||10;if(e(a,o)<u&&e(o,l)<u&&e(l,s)<u&&e(s,a)<u){for(var c=n([o,a,l,s]),f=[],d=0;d<r.width*r.height;d++){var h=e(c,[r.data[4*d],r.data[4*d+1],r.data[4*d+2]]);f[d]=h<u?0:255}return f}}function i(t,e){for(var n=0;n<t.width*t.height;n++)t.data[4*n+3]=e[n]}function a(t,e,n){for(var r=[1,1,1,1,0,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var l=0;l<e;l++){for(var u=s*e+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-a,p=l+d-a;if(h>=0&&h<n&&p>=0&&p<e){var v=h*e+p,g=r[f*i+d];c+=t[v]*g}}o[u]=2040===c?255:0}return o}function o(t,e,n){for(var r=[1,1,1,1,1,1,1,1,1],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var l=0;l<e;l++){for(var u=s*e+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-a,p=l+d-a;if(h>=0&&h<n&&p>=0&&p<e){var v=h*e+p,g=r[f*i+d];c+=t[v]*g}}o[u]=c>=1020?255:0}return o}function s(t,e,n){for(var r=[1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9,1/9],i=Math.round(Math.sqrt(r.length)),a=Math.floor(i/2),o=[],s=0;s<n;s++)for(var l=0;l<e;l++){for(var u=s*e+l,c=0,f=0;f<i;f++)for(var d=0;d<i;d++){var h=s+f-a,p=l+d-a;if(h>=0&&h<n&&p>=0&&p<e){var v=h*e+p,g=r[f*i+d];c+=t[v]*g}}o[u]=c}return o}Konva.Filters.Mask=function(t){var e=this.threshold(),n=r(t,e);return n&&(n=a(n,t.width,t.height),n=o(n,t.width,t.height),n=s(n,t.width,t.height),i(t,n)),t},Konva.Factory.addGetterSetter(Konva.Node,"threshold",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.RGB=function(t){var e,n,r=t.data,i=r.length,a=this.red(),o=this.green(),s=this.blue();for(e=0;e<i;e+=4)n=(.34*r[e]+.5*r[e+1]+.16*r[e+2])/255,r[e]=n*a,r[e+1]=n*o,r[e+2]=n*s,r[e+3]=r[e+3]},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.RGBA=function(t){var e,n,r=t.data,i=r.length,a=this.red(),o=this.green(),s=this.blue(),l=this.alpha();for(e=0;e<i;e+=4)n=1-l,r[e]=a*l+r[e]*n,r[e+1]=o*l+r[e+1]*n,r[e+2]=s*l+r[e+2]*n},Konva.Factory.addGetterSetter(Konva.Node,"red",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"green",0,function(t){return this._filterUpToDate=!1,t>255?255:t<0?0:Math.round(t)}),Konva.Factory.addGetterSetter(Konva.Node,"blue",0,Konva.Validators.RGBComponent,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"alpha",1,function(t){return this._filterUpToDate=!1,t>1?1:t<0?0:t})}(),function(){"use strict";Konva.Filters.HSV=function(t){var e,n,r,i,a,o=t.data,s=o.length,l=Math.pow(2,this.value()),u=Math.pow(2,this.saturation()),c=Math.abs(this.hue()+360)%360,f=l*u*Math.cos(c*Math.PI/180),d=l*u*Math.sin(c*Math.PI/180),h=.299*l+.701*f+.167*d,p=.587*l-.587*f+.33*d,v=.114*l-.114*f-.497*d,g=.299*l-.299*f-.328*d,m=.587*l+.413*f+.035*d,y=.114*l-.114*f+.293*d,b=.299*l-.3*f+1.25*d,_=.587*l-.586*f-1.05*d,C=.114*l+.886*f-.2*d;for(e=0;e<s;e+=4)n=o[e+0],r=o[e+1],i=o[e+2],a=o[e+3],o[e+0]=h*n+p*r+v*i,o[e+1]=g*n+m*r+y*i,o[e+2]=b*n+_*r+C*i,o[e+3]=a},Konva.Factory.addGetterSetter(Konva.Node,"hue",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"value",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Factory.addGetterSetter(Konva.Node,"hue",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"saturation",0,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"luminance",0,null,Konva.Factory.afterSetFilter),Konva.Filters.HSL=function(t){var e,n,r,i,a,o=t.data,s=o.length,l=Math.pow(2,this.saturation()),u=Math.abs(this.hue()+360)%360,c=127*this.luminance(),f=1*l*Math.cos(u*Math.PI/180),d=1*l*Math.sin(u*Math.PI/180),h=.299+.701*f+.167*d,p=.587-.587*f+.33*d,v=.114-.114*f-.497*d,g=.299-.299*f-.328*d,m=.587+.413*f+.035*d,y=.114-.114*f+.293*d,b=.299-.3*f+1.25*d,_=.587-.586*f-1.05*d,C=.114+.886*f-.2*d;for(e=0;e<s;e+=4)n=o[e+0],r=o[e+1],i=o[e+2],a=o[e+3],o[e+0]=h*n+p*r+v*i+c,o[e+1]=g*n+m*r+y*i+c,o[e+2]=b*n+_*r+C*i+c,o[e+3]=a}}(),function(){"use strict";Konva.Filters.Emboss=function(t){var e=10*this.embossStrength(),n=255*this.embossWhiteLevel(),r=this.embossDirection(),i=this.embossBlend(),a=0,o=0,s=t.data,l=t.width,u=t.height,c=4*l,f=u;switch(r){case"top-left":a=-1,o=-1;break;case"top":a=-1,o=0;break;case"top-right":a=-1,o=1;break;case"right":a=0,o=1;break;case"bottom-right":a=1,o=1;break;case"bottom":a=1,o=0;break;case"bottom-left":a=1,o=-1;break;case"left":a=0,o=-1;break;default:Konva.Util.error("Unknown emboss direction: "+r)}do{var d=(f-1)*c,h=a;f+h<1&&(h=0),f+h>u&&(h=0);var p=(f-1+h)*l*4,v=l;do{var g=d+4*(v-1),m=o;v+m<1&&(m=0),v+m>l&&(m=0);var y=p+4*(v-1+m),b=s[g]-s[y],_=s[g+1]-s[y+1],C=s[g+2]-s[y+2],x=b,S=x>0?x:-x,w=_>0?_:-_,T=C>0?C:-C;if(w>S&&(x=_),T>S&&(x=C),x*=e,i){var k=s[g]+x,P=s[g+1]+x,K=s[g+2]+x;s[g]=k>255?255:k<0?0:k,s[g+1]=P>255?255:P<0?0:P,s[g+2]=K>255?255:K<0?0:K}else{var F=n-x;F<0?F=0:F>255&&(F=255),s[g]=s[g+1]=s[g+2]=F}}while(--v)}while(--f)},Konva.Factory.addGetterSetter(Konva.Node,"embossStrength",.5,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossWhiteLevel",.5,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossDirection","top-left",null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"embossBlend",!1,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";function t(t,e,n,r,i){var a,o=n-e,s=i-r;return 0===o?r+s/2:0===s?r:(a=(t-e)/o,a=s*a+r)}Konva.Filters.Enhance=function(e){var n,r,i,a,o=e.data,s=o.length,l=o[0],u=l,c=o[1],f=c,d=o[2],h=d,p=this.enhance();if(0!==p){for(a=0;a<s;a+=4)n=o[a+0],n<l?l=n:n>u&&(u=n),r=o[a+1],r<c?c=r:r>f&&(f=r),i=o[a+2],i<d?d=i:i>h&&(h=i);u===l&&(u=255,l=0),f===c&&(f=255,c=0),h===d&&(h=255,d=0);var v,g,m,y,b,_,C,x,S;for(p>0?(g=u+p*(255-u),m=l-p*(l-0),b=f+p*(255-f),_=c-p*(c-0),x=h+p*(255-h),S=d-p*(d-0)):(v=.5*(u+l),g=u+p*(u-v),m=l+p*(l-v),y=.5*(f+c),b=f+p*(f-y),_=c+p*(c-y),C=.5*(h+d),x=h+p*(h-C),S=d+p*(d-C)),a=0;a<s;a+=4)o[a+0]=t(o[a+0],l,u,m,g),o[a+1]=t(o[a+1],c,f,_,b),o[a+2]=t(o[a+2],d,h,S,x)}},Konva.Factory.addGetterSetter(Konva.Node,"enhance",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Posterize=function(t){var e,n=Math.round(254*this.levels())+1,r=t.data,i=r.length,a=255/n;for(e=0;e<i;e+=1)r[e]=Math.floor(r[e]/a)*a},Konva.Factory.addGetterSetter(Konva.Node,"levels",.5,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Noise=function(t){var e,n=255*this.noise(),r=t.data,i=r.length,a=n/2;for(e=0;e<i;e+=4)r[e+0]+=a-2*a*Math.random(),r[e+1]+=a-2*a*Math.random(),r[e+2]+=a-2*a*Math.random()},Konva.Factory.addGetterSetter(Konva.Node,"noise",.2,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Pixelate=function(t){var e,n,r,i,a,o,s,l,u,c,f,d,h,p,v=Math.ceil(this.pixelSize()),g=t.width,m=t.height,y=Math.ceil(g/v),b=Math.ceil(m/v);if(t=t.data,v<=0)return void Konva.Util.error("pixelSize value can not be <= 0");for(d=0;d<y;d+=1)for(h=0;h<b;h+=1){for(i=0,a=0,o=0,s=0,l=d*v,u=l+v,c=h*v,f=c+v,p=0,e=l;e<u;e+=1)if(!(e>=g))for(n=c;n<f;n+=1)n>=m||(r=4*(g*n+e),i+=t[r+0],a+=t[r+1],o+=t[r+2],s+=t[r+3],p+=1);for(i/=p,a/=p,o/=p,e=l;e<u;e+=1)if(!(e>=g))for(n=c;n<f;n+=1)n>=m||(r=4*(g*n+e),t[r+0]=i,t[r+1]=a,t[r+2]=o,t[r+3]=s)}},Konva.Factory.addGetterSetter(Konva.Node,"pixelSize",8,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Threshold=function(t){var e,n=255*this.threshold(),r=t.data,i=r.length;for(e=0;e<i;e+=1)r[e]=r[e]<n?0:255},Konva.Factory.addGetterSetter(Konva.Node,"threshold",.5,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Filters.Sepia=function(t){var e,n,r,i,a,o,s,l,u,c=t.data,f=t.width,d=t.height,h=4*f;do{e=(d-1)*h,n=f;do{r=e+4*(n-1),i=c[r],a=c[r+1],o=c[r+2],s=.393*i+.769*a+.189*o,l=.349*i+.686*a+.168*o,u=.272*i+.534*a+.131*o,c[r]=s>255?255:s,c[r+1]=l>255?255:l,c[r+2]=u>255?255:u,c[r+3]=c[r+3]}while(--n)}while(--d)}}(),function(){"use strict";Konva.Filters.Solarize=function(t){var e=t.data,n=t.width,r=t.height,i=4*n,a=r;do{var o=(a-1)*i,s=n;do{var l=o+4*(s-1),u=e[l],c=e[l+1],f=e[l+2];u>127&&(u=255-u),c>127&&(c=255-c),f>127&&(f=255-f),e[l]=u,e[l+1]=c,e[l+2]=f}while(--s)}while(--a)}}(),function(){"use strict";var t=function(t,e,n){var r,i,a,o,s=t.data,l=e.data,u=t.width,c=t.height,f=n.polarCenterX||u/2,d=n.polarCenterY||c/2,h=0,p=0,v=0,g=0,m=Math.sqrt(f*f+d*d);i=u-f,a=c-d,o=Math.sqrt(i*i+a*a),m=o>m?o:m;var y,b,_,C,x=c,S=u,w=360/S*Math.PI/180;for(b=0;b<S;b+=1)for(_=Math.sin(b*w),C=Math.cos(b*w),y=0;y<x;y+=1)i=Math.floor(f+m*y/x*C),a=Math.floor(d+m*y/x*_),r=4*(a*u+i),h=s[r+0],p=s[r+1],v=s[r+2],g=s[r+3],r=4*(b+y*u),l[r+0]=h,l[r+1]=p,l[r+2]=v,l[r+3]=g},e=function(t,e,n){var r,i,a,o,s,l,u=t.data,c=e.data,f=t.width,d=t.height,h=n.polarCenterX||f/2,p=n.polarCenterY||d/2,v=0,g=0,m=0,y=0,b=Math.sqrt(h*h+p*p);i=f-h,a=d-p,l=Math.sqrt(i*i+a*a),b=l>b?l:b;var _,C,x,S,w=d,T=f,k=n.polarRotation||0;for(i=0;i<f;i+=1)for(a=0;a<d;a+=1)o=i-h,s=a-p,_=Math.sqrt(o*o+s*s)*w/b,C=(180*Math.atan2(s,o)/Math.PI+360+k)%360,C=C*T/360,x=Math.floor(C),S=Math.floor(_),r=4*(S*f+x),v=u[r+0],g=u[r+1],m=u[r+2],y=u[r+3],r=4*(a*f+i),c[r+0]=v,c[r+1]=g,c[r+2]=m,c[r+3]=y};Konva.Filters.Kaleidoscope=function(n){var r,i,a,o,s,l,u,c,f,d,h=n.width,p=n.height,v=Math.round(this.kaleidoscopePower()),g=Math.round(this.kaleidoscopeAngle()),m=Math.floor(h*(g%360)/360);if(!(v<1)){var y=Konva.Util.createCanvasElement();y.width=h,y.height=p;var b=y.getContext("2d").getImageData(0,0,h,p);t(n,b,{polarCenterX:h/2,polarCenterY:p/2});for(var _=h/Math.pow(2,v);_<=8;)_*=2,v-=1;_=Math.ceil(_);var C=_,x=0,S=C,w=1;for(m+_>h&&(x=C,S=0,w=-1),i=0;i<p;i+=1)for(r=x;r!==S;r+=w)a=Math.round(r+m)%h,f=4*(h*i+a),s=b.data[f+0],l=b.data[f+1],u=b.data[f+2],c=b.data[f+3],d=4*(h*i+r),b.data[d+0]=s,b.data[d+1]=l,b.data[d+2]=u,b.data[d+3]=c;for(i=0;i<p;i+=1)for(C=Math.floor(_),o=0;o<v;o+=1){for(r=0;r<C+1;r+=1)f=4*(h*i+r),s=b.data[f+0],l=b.data[f+1],u=b.data[f+2],c=b.data[f+3],d=4*(h*i+2*C-r-1),b.data[d+0]=s,b.data[d+1]=l,b.data[d+2]=u,b.data[d+3]=c;C*=2}e(b,n,{polarRotation:0})}},Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopePower",2,null,Konva.Factory.afterSetFilter),Konva.Factory.addGetterSetter(Konva.Node,"kaleidoscopeAngle",0,null,Konva.Factory.afterSetFilter)}(),function(){"use strict";Konva.Container=function(t){this.__init(t)},Konva.Util.addMethods(Konva.Container,{__init:function(t){this.children=new Konva.Collection,Konva.Node.call(this,t)},getChildren:function(t){if(!t)return this.children;var e=new Konva.Collection;return this.children.each(function(n){t(n)&&e.push(n)}),e},hasChildren:function(){return this.getChildren().length>0},removeChildren:function(){for(var t,e=Konva.Collection.toCollection(this.children),n=0;n<e.length;n++)t=e[n],delete t.parent,t.index=0,t.remove();return e=null,this.children=new Konva.Collection,this},destroyChildren:function(){for(var t,e=Konva.Collection.toCollection(this.children),n=0;n<e.length;n++)t=e[n],delete t.parent,t.index=0,t.destroy();return e=null,this.children=new Konva.Collection,this},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}if(t.getParent())return t.moveTo(this),this;var n=this.children;return this._validateAdd(t),t.index=n.length,t.parent=this,n.push(t),this._fire("add",{child:t}),Konva.DD&&t.isDragging()&&Konva.DD.anim.setLayers(t.getLayer()),this},destroy:function(){return this.hasChildren()&&this.destroyChildren(),Konva.Node.prototype.destroy.call(this),this},find:function(t){var e,n,r,i,a,o,s,l=[],u=t.replace(/ /g,"").split(","),c=u.length;for(e=0;e<c;e++)if(r=u[e],Konva.Util.isValidSelector(r)||(Konva.Util.warn('Selector "'+r+'" is invalid. Allowed selectors examples are "#foo", ".bar" or "Group".'),Konva.Util.warn('If you have a custom shape with such className, please change it to start with upper letter like "Triangle".'),Konva.Util.warn("Konva is awesome, right?")),"#"===r.charAt(0))(a=this._getNodeById(r.slice(1)))&&l.push(a);else if("."===r.charAt(0))i=this._getNodesByName(r.slice(1)),l=l.concat(i);else for(o=this.getChildren(),s=o.length,n=0;n<s;n++)l=l.concat(o[n]._get(r));return Konva.Collection.toCollection(l)},findOne:function(t){return this.find(t)[0]},_getNodeById:function(t){var e=Konva.ids[t];return void 0!==e&&this.isAncestorOf(e)?e:null},_getNodesByName:function(t){var e=Konva.names[t]||[];return this._getDescendants(e)},_get:function(t){for(var e=Konva.Node.prototype._get.call(this,t),n=this.getChildren(),r=n.length,i=0;i<r;i++)e=e.concat(n[i]._get(t));return e},toObject:function(){var t=Konva.Node.prototype.toObject.call(this);t.children=[];for(var e=this.getChildren(),n=e.length,r=0;r<n;r++){var i=e[r];t.children.push(i.toObject())}return t},_getDescendants:function(t){for(var e=[],n=t.length,r=0;r<n;r++){var i=t[r];this.isAncestorOf(i)&&e.push(i)}return e},isAncestorOf:function(t){for(var e=t.getParent();e;){if(e._id===this._id)return!0;e=e.getParent()}return!1},clone:function(t){var e=Konva.Node.prototype.clone.call(this,t);return this.getChildren().each(function(t){e.add(t.clone())}),e},getAllIntersections:function(t){var e=[];return this.find("Shape").each(function(n){n.isVisible()&&n.intersects(t)&&e.push(n)}),e},_setChildrenIndices:function(){this.children.each(function(t,e){t.index=e})},drawScene:function(t,e,n){var r=this.getLayer(),i=t||r&&r.getCanvas(),a=i&&i.getContext(),o=this._cache.canvas,s=o&&o.scene;return this.isVisible()&&(!n&&s?(a.save(),r._applyTransform(this,a,e),this._drawCachedSceneCanvas(a),a.restore()):this._drawChildren(i,"drawScene",e,!1,n)),this},drawHit:function(t,e,n){var r=this.getLayer(),i=t||r&&r.hitCanvas,a=i&&i.getContext(),o=this._cache.canvas,s=o&&o.hit;return this.shouldDrawHit(i)&&(r&&r.clearHitCache(),!n&&s?(a.save(),r._applyTransform(this,a,e),this._drawCachedHitCanvas(a),a.restore()):this._drawChildren(i,"drawHit",e)),this},_drawChildren:function(t,e,n,r,i){var a,o,s=this.getLayer(),l=t&&t.getContext(),u=this.getClipWidth(),c=this.getClipHeight(),f=this.getClipFunc(),d=u&&c||f;if(d&&s){l.save();var h=this.getAbsoluteTransform(n),p=h.getMatrix();l.transform(p[0],p[1],p[2],p[3],p[4],p[5]),l.beginPath(),f?f.call(this,l,this):(a=this.getClipX(),o=this.getClipY(),l.rect(a,o,u,c)),l.clip(),p=h.copy().invert().getMatrix(),l.transform(p[0],p[1],p[2],p[3],p[4],p[5])}this.children.each(function(a){a[e](t,n,r,i)}),d&&l.restore()},shouldDrawHit:function(t){var e=this.getLayer(),n=Konva.DD,r=n&&Konva.isDragging()&&-1!==Konva.DD.anim.getLayers().indexOf(e);return t&&t.isCache||e&&e.hitGraphEnabled()&&this.isVisible()&&!r},getClientRect:function(t){t=t||{};var e,n,r,i,a=t.skipTransform,o=t.relativeTo,s={x:0,y:0,width:0,height:0},l=this;return this.children.each(function(t){if(t.isVisible()){var a=t.getClientRect({relativeTo:l});void 0===e?(e=a.x,n=a.y,r=a.x+a.width,i=a.y+a.height):(e=Math.min(e,a.x),n=Math.min(n,a.y),r=Math.max(r,a.x+a.width),i=Math.max(i,a.y+a.height))}}),0!==this.children.length&&(s={x:e,y:n,width:r-e,height:i-n}),a?s:this._transformedRect(s,o)}}),Konva.Util.extend(Konva.Container,Konva.Node),Konva.Container.prototype.get=Konva.Container.prototype.find,Konva.Factory.addComponentsGetterSetter(Konva.Container,"clip",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Container,"clipX"),Konva.Factory.addGetterSetter(Konva.Container,"clipY"),Konva.Factory.addGetterSetter(Konva.Container,"clipWidth"),Konva.Factory.addGetterSetter(Konva.Container,"clipHeight"),Konva.Factory.addGetterSetter(Konva.Container,"clipFunc"),Konva.Collection.mapMethods(Konva.Container)}(),function(t){"use strict";function e(t){t.fill()}function n(t){t.stroke()}function r(t){t.fill()}function i(t){t.stroke()}function a(){this._clearCache(s)}function o(){this._clearCache(l)}var s="hasShadow",l="shadowRGBA";t.Shape=function(t){this.__init(t)},t.Util.addMethods(t.Shape,{__init:function(s){this.nodeType="Shape",this._fillFunc=e,this._strokeFunc=n,this._fillFuncHit=r,this._strokeFuncHit=i;for(var l,u=t.shapes;;)if((l=t.Util.getRandomColor())&&!(l in u))break;this.colorKey=l,u[l]=this,t.Node.call(this,s),this.on("shadowColorChange.konva shadowBlurChange.konva shadowOffsetChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",a),this.on("shadowColorChange.konva shadowOpacityChange.konva shadowEnabledChange.konva",o)},hasChildren:function(){return!1},getChildren:function(){return[]},getContext:function(){return this.getLayer().getContext()},getCanvas:function(){return this.getLayer().getCanvas()},hasShadow:function(){return this._getCache(s,this._hasShadow)},_hasShadow:function(){return this.getShadowEnabled()&&0!==this.getShadowOpacity()&&!!(this.getShadowColor()||this.getShadowBlur()||this.getShadowOffsetX()||this.getShadowOffsetY())},getShadowRGBA:function(){return this._getCache(l,this._getShadowRGBA)},_getShadowRGBA:function(){if(this.hasShadow()){var e=t.Util.colorToRGBA(this.shadowColor());return"rgba("+e.r+","+e.g+","+e.b+","+e.a*(this.getShadowOpacity()||1)+")"}},hasFill:function(){return!!(this.getFill()||this.getFillPatternImage()||this.getFillLinearGradientColorStops()||this.getFillRadialGradientColorStops())},hasStroke:function(){return this.strokeEnabled()&&!!this.stroke()},intersects:function(t){var e,n=this.getStage(),r=n.bufferHitCanvas;return r.getContext().clear(),this.drawHit(r),e=r.context.getImageData(Math.round(t.x),Math.round(t.y),1,1).data,e[3]>0},destroy:function(){return t.Node.prototype.destroy.call(this),delete t.shapes[this.colorKey],this},_useBufferCanvas:function(t){return!t&&this.perfectDrawEnabled()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()||this.perfectDrawEnabled()&&this.hasShadow()&&1!==this.getAbsoluteOpacity()&&this.hasFill()&&this.hasStroke()&&this.getStage()},getSelfRect:function(){var t=this.getSize();return{x:this._centroid?Math.round(-t.width/2):0,y:this._centroid?Math.round(-t.height/2):0,width:t.width,height:t.height}},getClientRect:function(t){t=t||{};var e=t.skipTransform,n=t.relativeTo,r=this.getSelfRect(),i=this.hasStroke()&&this.strokeWidth()||0,a=r.width+i,o=r.height+i,s=this.hasShadow()?this.shadowOffsetX():0,l=this.hasShadow()?this.shadowOffsetY():0,u=a+Math.abs(s),c=o+Math.abs(l),f=this.hasShadow()&&this.shadowBlur()||0,d=u+2*f,h=c+2*f,p=0;Math.round(i/2)!==i/2&&(p=1);var v={width:d+p,height:h+p,x:-Math.round(i/2+f)+Math.min(s,0)+r.x,y:-Math.round(i/2+f)+Math.min(l,0)+r.y};return e?v:this._transformedRect(v,n)},drawScene:function(t,e,n,r){var i,a,o,s=this.getLayer(),l=t||s.getCanvas(),u=l.getContext(),c=this._cache.canvas,f=this.sceneFunc(),d=this.hasShadow(),h=this.hasStroke();if(!this.isVisible())return this;if(c)return u.save(),s._applyTransform(this,u,e),this._drawCachedSceneCanvas(u),u.restore(),this;if(!f)return this;if(u.save(),this._useBufferCanvas(n)&&!r){if(i=this.getStage(),a=i.bufferCanvas,o=a.getContext(),o.clear(),o.save(),o._applyLineJoin(this),!n)if(s)s._applyTransform(this,o,e);else{var p=this.getAbsoluteTransform(e).getMatrix();u.transform(p[0],p[1],p[2],p[3],p[4],p[5])}f.call(this,o),o.restore();var v=a.pixelRatio;d&&!l.hitCanvas?(u.save(),u._applyShadow(this),u._applyOpacity(this),u._applyGlobalCompositeOperation(this),u.drawImage(a._canvas,0,0,a.width/v,a.height/v),u.restore()):(u._applyOpacity(this),u._applyGlobalCompositeOperation(this),u.drawImage(a._canvas,0,0,a.width/v,a.height/v))}else{if(u._applyLineJoin(this),!n)if(s)s._applyTransform(this,u,e);else{var g=this.getAbsoluteTransform(e).getMatrix();u.transform(g[0],g[1],g[2],g[3],g[4],g[5])}d&&h&&!l.hitCanvas?(u.save(),n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),u._applyShadow(this),f.call(this,u),u.restore(),this.hasFill()&&this.getShadowForStrokeEnabled()&&f.call(this,u)):d&&!l.hitCanvas?(u.save(),n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),u._applyShadow(this),f.call(this,u),u.restore()):(n||(u._applyOpacity(this),u._applyGlobalCompositeOperation(this)),f.call(this,u))}return u.restore(),this},drawHit:function(t,e,n){var r=this.getLayer(),i=t||r.hitCanvas,a=i.getContext(),o=this.hitFunc()||this.sceneFunc(),s=this._cache.canvas,l=s&&s.hit;if(!this.shouldDrawHit(i))return this;if(r&&r.clearHitCache(),l)return a.save(),r._applyTransform(this,a,e),this._drawCachedHitCanvas(a),a.restore(),this;if(!o)return this;if(a.save(),a._applyLineJoin(this),!n)if(r)r._applyTransform(this,a,e);else{var u=this.getAbsoluteTransform(e).getMatrix();a.transform(u[0],u[1],u[2],u[3],u[4],u[5])}return o.call(this,a),a.restore(),this},drawHitFromCache:function(e){var n,r,i,a,o,s,l=e||0,u=this._cache.canvas,c=this._getCachedSceneCanvas(),f=u.hit,d=f.getContext(),h=f.getWidth(),p=f.getHeight();d.clear(),d.drawImage(c._canvas,0,0,h,p);try{for(n=d.getImageData(0,0,h,p),r=n.data,i=r.length,a=t.Util._hexToRgb(this.colorKey),o=0;o<i;o+=4)s=r[o+3],s>l?(r[o]=a.r,r[o+1]=a.g,r[o+2]=a.b,r[o+3]=255):r[o+3]=0;d.putImageData(n,0,0)}catch(e){t.Util.error("Unable to draw hit graph from cached scene canvas. "+e.message)}return this}}),t.Util.extend(t.Shape,t.Node),t.Factory.addGetterSetter(t.Shape,"stroke"),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeRed",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeGreen",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeBlue",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"strokeAlpha",1,t.Validators.alphaComponent),t.Factory.addGetterSetter(t.Shape,"strokeWidth",2),t.Factory.addGetterSetter(t.Shape,"strokeHitEnabled",!0),t.Factory.addGetterSetter(t.Shape,"perfectDrawEnabled",!0),t.Factory.addGetterSetter(t.Shape,"shadowForStrokeEnabled",!0),t.Factory.addGetterSetter(t.Shape,"lineJoin"),t.Factory.addGetterSetter(t.Shape,"lineCap"),t.Factory.addGetterSetter(t.Shape,"sceneFunc"),t.Factory.addGetterSetter(t.Shape,"hitFunc"),t.Factory.addGetterSetter(t.Shape,"dash"),t.Factory.addGetterSetter(t.Shape,"dashOffset",0),t.Factory.addGetterSetter(t.Shape,"shadowColor"),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowRed",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowGreen",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowBlue",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"shadowAlpha",1,t.Validators.alphaComponent),t.Factory.addGetterSetter(t.Shape,"shadowBlur"),t.Factory.addGetterSetter(t.Shape,"shadowOpacity"),t.Factory.addComponentsGetterSetter(t.Shape,"shadowOffset",["x","y"]),t.Factory.addGetterSetter(t.Shape,"shadowOffsetX",0),t.Factory.addGetterSetter(t.Shape,"shadowOffsetY",0),t.Factory.addGetterSetter(t.Shape,"fillPatternImage"),t.Factory.addGetterSetter(t.Shape,"fill"),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillRed",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillGreen",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillBlue",0,t.Validators.RGBComponent),t.Factory.addDeprecatedGetterSetter(t.Shape,"fillAlpha",1,t.Validators.alphaComponent),t.Factory.addGetterSetter(t.Shape,"fillPatternX",0),t.Factory.addGetterSetter(t.Shape,"fillPatternY",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientColorStops"),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartRadius",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndRadius",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientColorStops"),t.Factory.addGetterSetter(t.Shape,"fillPatternRepeat","repeat"),t.Factory.addGetterSetter(t.Shape,"fillEnabled",!0),t.Factory.addGetterSetter(t.Shape,"strokeEnabled",!0),t.Factory.addGetterSetter(t.Shape,"shadowEnabled",!0),t.Factory.addGetterSetter(t.Shape,"dashEnabled",!0),t.Factory.addGetterSetter(t.Shape,"strokeScaleEnabled",!0),t.Factory.addGetterSetter(t.Shape,"fillPriority","color"),t.Factory.addComponentsGetterSetter(t.Shape,"fillPatternOffset",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillPatternOffsetX",0),t.Factory.addGetterSetter(t.Shape,"fillPatternOffsetY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillPatternScale",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillPatternScaleX",1),t.Factory.addGetterSetter(t.Shape,"fillPatternScaleY",1),t.Factory.addComponentsGetterSetter(t.Shape,"fillLinearGradientStartPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientStartPointX",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientStartPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillLinearGradientEndPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientEndPointX",0),t.Factory.addGetterSetter(t.Shape,"fillLinearGradientEndPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillRadialGradientStartPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartPointX",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientStartPointY",0),t.Factory.addComponentsGetterSetter(t.Shape,"fillRadialGradientEndPoint",["x","y"]),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndPointX",0),t.Factory.addGetterSetter(t.Shape,"fillRadialGradientEndPointY",0),t.Factory.addGetterSetter(t.Shape,"fillPatternRotation",0),t.Factory.backCompat(t.Shape,{dashArray:"dash",getDashArray:"getDash",setDashArray:"getDash",drawFunc:"sceneFunc",getDrawFunc:"getSceneFunc",setDrawFunc:"setSceneFunc",drawHitFunc:"hitFunc",getDrawHitFunc:"getHitFunc",setDrawHitFunc:"setHitFunc"}),t.Collection.mapMethods(t.Shape)}(Konva),function(){"use strict";function t(t,n){t.content.addEventListener(n,function(r){t[e+n](r)},!1)}var e="_",n=["mousedown","mousemove","mouseup","mouseout","touchstart","touchmove","touchend","mouseover","wheel","contextmenu"],r=n.length;Konva.Stage=function(t){this.___init(t)},Konva.Util.addMethods(Konva.Stage,{___init:function(t){this.nodeType="Stage",Konva.Container.call(this,t),this._id=Konva.idCounter++,this._buildDOM(),this._bindContentEvents(),this._enableNestedTransforms=!1,Konva.stages.push(this)},_validateAdd:function(t){"Layer"!==t.getType()&&Konva.Util.throw("You may only add layers to the stage.")},setContainer:function(t){if("string"==typeof t){if("."===t.charAt(0)){var e=t.slice(1);t=Konva.document.getElementsByClassName(e)[0]}else{var n;n="#"!==t.charAt(0)?t:t.slice(1),t=Konva.document.getElementById(n)}if(!t)throw"Can not find container in document with id "+n}return this._setAttr("container",t),this},shouldDrawHit:function(){return!0},draw:function(){return Konva.Node.prototype.draw.call(this),this},setHeight:function(t){return Konva.Node.prototype.setHeight.call(this,t),this._resizeDOM(),this},setWidth:function(t){return Konva.Node.prototype.setWidth.call(this,t),this._resizeDOM(),this},clear:function(){var t,e=this.children,n=e.length;for(t=0;t<n;t++)e[t].clear();return this},clone:function(t){return t||(t={}),t.container=Konva.document.createElement("div"),Konva.Container.prototype.clone.call(this,t)},destroy:function(){var t=this.content;Konva.Container.prototype.destroy.call(this),t&&Konva.Util._isInDocument(t)&&this.getContainer().removeChild(t);var e=Konva.stages.indexOf(this);return e>-1&&Konva.stages.splice(e,1),this},getPointerPosition:function(){return this.pointerPos},getStage:function(){return this},getContent:function(){return this.content},toDataURL:function(t){t=t||{};var e=t.mimeType||null,n=t.quality||null,r=t.x||0,i=t.y||0,a=new Konva.SceneCanvas({width:t.width||this.getWidth(),height:t.height||this.getHeight(),pixelRatio:t.pixelRatio}),o=a.getContext()._context,s=this.children;(r||i)&&o.translate(-1*r,-1*i),s.each(function(t){var e=t.getCanvas().getWidth(),n=t.getCanvas().getHeight(),r=t.getCanvas().getPixelRatio();o.drawImage(t.getCanvas()._canvas,0,0,e/r,n/r)});var l=a.toDataURL(e,n);return t.callback&&t.callback(l),l},toImage:function(t){var e=t.callback;t.callback=function(t){Konva.Util._getImage(t,function(t){e(t)})},this.toDataURL(t)},getIntersection:function(t,e){var n,r,i=this.getChildren(),a=i.length,o=a-1;for(n=o;n>=0;n--)if(r=i[n].getIntersection(t,e))return r;return null},_resizeDOM:function(){if(this.content){var t,e,n=this.getWidth(),r=this.getHeight(),i=this.getChildren(),a=i.length;for(this.content.style.width=n+"px",this.content.style.height=r+"px",this.bufferCanvas.setSize(n,r),this.bufferHitCanvas.setSize(n,r),t=0;t<a;t++)e=i[t],e.setSize(n,r),e.draw()}},add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return Konva.Container.prototype.add.call(this,t),t._setCanvasSize(this.width(),this.height()),t.draw(),Konva.isBrowser&&this.content.appendChild(t.canvas._canvas),this},getParent:function(){return null},getLayer:function(){return null},getLayers:function(){return this.getChildren()},_bindContentEvents:function(){if(Konva.isBrowser)for(var e=0;e<r;e++)t(this,n[e])},_mouseover:function(t){Konva.UA.mobile||(this._setPointerPosition(t),this._fire("contentMouseover",{evt:t}))},_mouseout:function(t){if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.targetShape;e&&!Konva.isDragging()&&(e._fireAndBubble("mouseout",{evt:t}),e._fireAndBubble("mouseleave",{evt:t}),this.targetShape=null),this.pointerPos=void 0,this._fire("contentMouseout",{evt:t})}},_mousemove:function(t){if(Konva.UA.ieMobile)return this._touchmove(t);if((void 0!==t.movementX||void 0!==t.movementY)&&0===t.movementY&&0===t.movementX)return null;if(Konva.UA.mobile)return null;this._setPointerPosition(t);var e;Konva.isDragging()||(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()?Konva.isDragging()||this.targetShape&&this.targetShape._id===e._id?e._fireAndBubble("mousemove",{evt:t}):(this.targetShape&&(this.targetShape._fireAndBubble("mouseout",{evt:t},e),this.targetShape._fireAndBubble("mouseleave",{evt:t},e)),e._fireAndBubble("mouseover",{evt:t},this.targetShape),e._fireAndBubble("mouseenter",{evt:t},this.targetShape),this.targetShape=e):this.targetShape&&!Konva.isDragging()&&(this.targetShape._fireAndBubble("mouseout",{evt:t}),this.targetShape._fireAndBubble("mouseleave",{evt:t}),this.targetShape=null),this._fire("contentMousemove",{evt:t})),t.preventDefault&&t.preventDefault()},_mousedown:function(t){if(Konva.UA.ieMobile)return this._touchstart(t);if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,e&&e.isListening()&&(this.clickStartShape=e,e._fireAndBubble("mousedown",{evt:t})),this._fire("contentMousedown",{evt:t})}t.preventDefault&&t.preventDefault()},_mouseup:function(t){if(Konva.UA.ieMobile)return this._touchend(t);if(!Konva.UA.mobile){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition()),n=this.clickStartShape,r=this.clickEndShape,i=!1,a=Konva.DD;Konva.inDblClickWindow?(i=!0,Konva.inDblClickWindow=!1):a&&a.justDragged?a&&(a.justDragged=!1):Konva.inDblClickWindow=!0,setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),e&&e.isListening()&&(this.clickEndShape=e,e._fireAndBubble("mouseup",{evt:t}),Konva.listenClickTap&&n&&n._id===e._id&&(e._fireAndBubble("click",{evt:t}),i&&r&&r._id===e._id&&e._fireAndBubble("dblclick",{evt:t}))),this._fire("contentMouseup",{evt:t}),Konva.listenClickTap&&(this._fire("contentClick",{evt:t}),i&&this._fire("contentDblclick",{evt:t})),Konva.listenClickTap=!1}t.preventDefault&&t.preventDefault()},_contextmenu:function(t){this._fire("contentContextmenu",{evt:t})},_touchstart:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());Konva.listenClickTap=!0,e&&e.isListening()&&(this.tapStartShape=e,e._fireAndBubble("touchstart",{evt:t}),e.isListening()&&e.preventDefault()&&t.preventDefault&&t.preventDefault()),this._fire("contentTouchstart",{evt:t})},_touchend:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition()),n=!1;Konva.inDblClickWindow?(n=!0,Konva.inDblClickWindow=!1):Konva.inDblClickWindow=!0,setTimeout(function(){Konva.inDblClickWindow=!1},Konva.dblClickWindow),e&&e.isListening()&&(e._fireAndBubble("touchend",{evt:t}),Konva.listenClickTap&&this.tapStartShape&&e._id===this.tapStartShape._id&&(e._fireAndBubble("tap",{evt:t}),n&&e._fireAndBubble("dbltap",{evt:t})),e.isListening()&&e.preventDefault()&&t.preventDefault&&t.preventDefault()),this._fire("contentTouchend",{evt:t}),Konva.listenClickTap&&(this._fire("contentTap",{evt:t}),n&&this._fire("contentDbltap",{evt:t})),Konva.listenClickTap=!1},_touchmove:function(t){this._setPointerPosition(t);var e,n=Konva.DD;Konva.isDragging()||(e=this.getIntersection(this.getPointerPosition()),e&&e.isListening()&&(e._fireAndBubble("touchmove",{evt:t}),e.isListening()&&e.preventDefault()&&t.preventDefault&&t.preventDefault()),this._fire("contentTouchmove",{evt:t})),n&&Konva.isDragging()&&Konva.DD.node.preventDefault()&&t.preventDefault()},_wheel:function(t){this._setPointerPosition(t);var e=this.getIntersection(this.getPointerPosition());e&&e.isListening()&&e._fireAndBubble("wheel",{evt:t}),this._fire("contentWheel",{evt:t})},_setPointerPosition:function(t){var e=this._getContentPosition(),n=null,r=null;if(t=t||window.event,void 0!==t.touches){if(t.touches.length>0){var i=t.touches[0];n=i.clientX-e.left,r=i.clientY-e.top}}else n=t.clientX-e.left,r=t.clientY-e.top;null!==n&&null!==r&&(this.pointerPos={x:n,y:r})},_getContentPosition:function(){var t=this.content.getBoundingClientRect?this.content.getBoundingClientRect():{top:0,left:0};return{top:t.top,left:t.left}},_buildDOM:function(){if(this.bufferCanvas=new Konva.SceneCanvas,this.bufferHitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.isBrowser){var t=this.getContainer();if(!t)throw"Stage has no container. A container is required.";t.innerHTML="",this.content=Konva.document.createElement("div"),this.content.style.position="relative",this.content.className="konvajs-content",this.content.setAttribute("role","presentation"),t.appendChild(this.content),this._resizeDOM()}},_onContent:function(t,e){var n,r,i=t.split(" "),a=i.length;for(n=0;n<a;n++)r=i[n],this.content.addEventListener(r,e,!1)},cache:function(){Konva.Util.warn("Cache function is not allowed for stage. You may use cache only for layers, groups and shapes.")},clearCache:function(){}}),Konva.Util.extend(Konva.Stage,Konva.Container),Konva.Factory.addGetter(Konva.Stage,"container"),Konva.Factory.addOverloadedGetterSetter(Konva.Stage,"container")}(),function(t){"use strict";t.BaseLayer=function(t){this.___init(t)},t.Util.addMethods(t.BaseLayer,{___init:function(e){this.nodeType="Layer",t.Container.call(this,e)},createPNGStream:function(){return this.canvas._canvas.createPNGStream()},getCanvas:function(){return this.canvas},getHitCanvas:function(){return this.hitCanvas},getContext:function(){return this.getCanvas().getContext()},clear:function(t){return this.getContext().clear(t),this},clearHitCache:function(){this._hitImageData=void 0},setZIndex:function(e){t.Node.prototype.setZIndex.call(this,e);var n=this.getStage();return n&&(n.content.removeChild(this.getCanvas()._canvas),e<n.getChildren().length-1?n.content.insertBefore(this.getCanvas()._canvas,n.getChildren()[e+1].getCanvas()._canvas):n.content.appendChild(this.getCanvas()._canvas)),this},moveToTop:function(){t.Node.prototype.moveToTop.call(this);var e=this.getStage();return e&&(e.content.removeChild(this.getCanvas()._canvas),e.content.appendChild(this.getCanvas()._canvas)),this},moveUp:function(){if(!t.Node.prototype.moveUp.call(this))return this;var e=this.getStage();return e?(e.content.removeChild(this.getCanvas()._canvas),this.index<e.getChildren().length-1?e.content.insertBefore(this.getCanvas()._canvas,e.getChildren()[this.index+1].getCanvas()._canvas):e.content.appendChild(this.getCanvas()._canvas),this):this},moveDown:function(){if(t.Node.prototype.moveDown.call(this)){var e=this.getStage();if(e){var n=e.getChildren();e.content.removeChild(this.getCanvas()._canvas),e.content.insertBefore(this.getCanvas()._canvas,n[this.index+1].getCanvas()._canvas)}}return this},moveToBottom:function(){if(t.Node.prototype.moveToBottom.call(this)){var e=this.getStage();if(e){var n=e.getChildren();e.content.removeChild(this.getCanvas()._canvas),e.content.insertBefore(this.getCanvas()._canvas,n[1].getCanvas()._canvas)}}return this},getLayer:function(){return this},remove:function(){var e=this.getCanvas()._canvas;return t.Node.prototype.remove.call(this),e&&e.parentNode&&t.Util._isInDocument(e)&&e.parentNode.removeChild(e),this},getStage:function(){return this.parent},setSize:function(t,e){return this.canvas.setSize(t,e),this},getWidth:function(){if(this.parent)return this.parent.getWidth()},setWidth:function(){t.Util.warn('Can not change width of layer. Use "stage.width(value)" function instead.')},getHeight:function(){if(this.parent)return this.parent.getHeight()},setHeight:function(){t.Util.warn('Can not change height of layer. Use "stage.height(value)" function instead.')},_applyTransform:function(t,e,n){var r=t.getAbsoluteTransform(n).getMatrix();e.transform(r[0],r[1],r[2],r[3],r[4],r[5])}}),t.Util.extend(t.BaseLayer,t.Container),t.Factory.addGetterSetter(t.BaseLayer,"clearBeforeDraw",!0),t.Collection.mapMethods(t.BaseLayer)}(Konva),function(){"use strict";var t=[{x:0,y:0},{x:-1,y:0},{x:-1,y:-1},{x:0,y:-1},{x:1,y:-1},{x:1,y:0},{x:1,y:1},{x:0,y:1},{x:-1,y:1}],e=t.length;Konva.Layer=function(t){this.____init(t)},Konva.Util.addMethods(Konva.Layer,{____init:function(t){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,this.hitCanvas=new Konva.HitCanvas({pixelRatio:1}),Konva.BaseLayer.call(this,t)},_setCanvasSize:function(t,e){this.canvas.setSize(t,e),this.hitCanvas.setSize(t,e)},_validateAdd:function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&Konva.Util.throw("You may only add groups and shapes to a layer.")},getIntersection:function(n,r){var i,a,o,s;if(!this.hitGraphEnabled()||!this.isVisible())return null;for(var l=1,u=!1;;){for(a=0;a<e;a++){if(o=t[a],i=this._getIntersection({x:n.x+o.x*l,y:n.y+o.y*l}),(s=i.shape)&&r)return s.findAncestor(r,!0);if(s)return s;if(u=!!i.antialiased,!i.antialiased)break}if(!u)return null;l+=1}},_getImageData:function(t,e){var n=this.hitCanvas.width||1,r=this.hitCanvas.height||1,i=Math.round(e)*n+Math.round(t);return this._hitImageData||(this._hitImageData=this.hitCanvas.context.getImageData(0,0,n,r)),[this._hitImageData.data[4*i+0],this._hitImageData.data[4*i+1],this._hitImageData.data[4*i+2],this._hitImageData.data[4*i+3]]},_getIntersection:function(t){var e,n,r=this.hitCanvas.pixelRatio,i=this.hitCanvas.context.getImageData(Math.round(t.x*r),Math.round(t.y*r),1,1).data,a=i[3];return 255===a?(e=Konva.Util._rgbToHex(i[0],i[1],i[2]),n=Konva.shapes["#"+e],n?{shape:n}:{antialiased:!0}):a>0?{antialiased:!0}:{}},drawScene:function(t,e){var n=this.getLayer(),r=t||n&&n.getCanvas();return this._fire("beforeDraw",{node:this}),this.getClearBeforeDraw()&&r.getContext().clear(),Konva.Container.prototype.drawScene.call(this,r,e),this._fire("draw",{node:this}),this},drawHit:function(t,e){var n=this.getLayer(),r=t||n&&n.hitCanvas;return n&&n.getClearBeforeDraw()&&n.getHitCanvas().getContext().clear(),Konva.Container.prototype.drawHit.call(this,r,e),this.imageData=null,this},clear:function(t){return Konva.BaseLayer.prototype.clear.call(this,t),this.getHitCanvas().getContext().clear(t),this.imageData=null,this},setVisible:function(t){return Konva.Node.prototype.setVisible.call(this,t),t?(this.getCanvas()._canvas.style.display="block",this.hitCanvas._canvas.style.display="block"):(this.getCanvas()._canvas.style.display="none",this.hitCanvas._canvas.style.display="none"),this},enableHitGraph:function(){return this.setHitGraphEnabled(!0),this},disableHitGraph:function(){return this.setHitGraphEnabled(!1),this},setSize:function(t,e){return Konva.BaseLayer.prototype.setSize.call(this,t,e),this.hitCanvas.setSize(t,e),this}}),Konva.Util.extend(Konva.Layer,Konva.BaseLayer),Konva.Factory.addGetterSetter(Konva.Layer,"hitGraphEnabled",!0),Konva.Collection.mapMethods(Konva.Layer)}(),function(){"use strict";Konva.FastLayer=function(t){this.____init(t)},Konva.Util.addMethods(Konva.FastLayer,{____init:function(t){this.nodeType="Layer",this.canvas=new Konva.SceneCanvas,Konva.BaseLayer.call(this,t)},_validateAdd:function(t){"Shape"!==t.getType()&&Konva.Util.throw("You may only add shapes to a fast layer.")},_setCanvasSize:function(t,e){this.canvas.setSize(t,e)},hitGraphEnabled:function(){return!1},getIntersection:function(){return null},drawScene:function(t){var e=this.getLayer(),n=t||e&&e.getCanvas();return this.getClearBeforeDraw()&&n.getContext().clear(),Konva.Container.prototype.drawScene.call(this,n),this},draw:function(){return this.drawScene(),this},setVisible:function(t){return Konva.Node.prototype.setVisible.call(this,t),this.getCanvas()._canvas.style.display=t?"block":"none",this}}),Konva.Util.extend(Konva.FastLayer,Konva.BaseLayer),Konva.Collection.mapMethods(Konva.FastLayer)}(),function(){"use strict";Konva.Group=function(t){this.___init(t)},Konva.Util.addMethods(Konva.Group,{___init:function(t){this.nodeType="Group",Konva.Container.call(this,t)},_validateAdd:function(t){var e=t.getType();"Group"!==e&&"Shape"!==e&&Konva.Util.throw("You may only add groups and shapes to groups.")}}),Konva.Util.extend(Konva.Group,Konva.Container),Konva.Collection.mapMethods(Konva.Group)}(),function(t){"use strict";function e(t){setTimeout(t,1e3/60)}function n(){return i.apply(t.global,arguments)}var r=function(){return t.global.performance&&t.global.performance.now?function(){return t.global.performance.now()}:function(){return(new Date).getTime()}}(),i=function(){return t.global.requestAnimationFrame||t.global.webkitRequestAnimationFrame||t.global.mozRequestAnimationFrame||t.global.oRequestAnimationFrame||t.global.msRequestAnimationFrame||e}();t.Animation=function(e,n){var i=t.Animation;this.func=e,this.setLayers(n),this.id=i.animIdCounter++,this.frame={time:0,timeDiff:0,lastTime:r()}},t.Animation.prototype={setLayers:function(t){var e=[];return e=t?t.length>0?t:[t]:[],this.layers=e,this},getLayers:function(){return this.layers},addLayer:function(t){var e,n=this.layers,r=n.length;for(e=0;e<r;e++)if(n[e]._id===t._id)return!1;return this.layers.push(t),!0},isRunning:function(){var e,n=t.Animation,r=n.animations,i=r.length;for(e=0;e<i;e++)if(r[e].id===this.id)return!0;return!1},start:function(){var e=t.Animation;return this.stop(),this.frame.timeDiff=0,this.frame.lastTime=r(),e._addAnimation(this),this},stop:function(){return t.Animation._removeAnimation(this),this},_updateFrameObject:function(t){this.frame.timeDiff=t-this.frame.lastTime,this.frame.lastTime=t,this.frame.time+=this.frame.timeDiff,this.frame.frameRate=1e3/this.frame.timeDiff}},t.Animation.animations=[],t.Animation.animIdCounter=0,t.Animation.animRunning=!1,t.Animation._addAnimation=function(t){this.animations.push(t),this._handleAnimation()},t.Animation._removeAnimation=function(t){var e,n=t.id,r=this.animations,i=r.length;for(e=0;e<i;e++)if(r[e].id===n){this.animations.splice(e,1);break}},t.Animation._runFrames=function(){var t,e,n,i,a,o,s,l,u={},c=this.animations;for(i=0;i<c.length;i++)if(t=c[i],e=t.layers,n=t.func,t._updateFrameObject(r()),o=e.length,!n||!1!==n.call(t,t.frame))for(a=0;a<o;a++)s=e[a],void 0!==s._id&&(u[s._id]=s);for(l in u)u.hasOwnProperty(l)&&u[l].draw()},t.Animation._animationLoop=function(){var e=t.Animation;e.animations.length?(e._runFrames(),n(e._animationLoop)):e.animRunning=!1},t.Animation._handleAnimation=function(){this.animRunning||(this.animRunning=!0,n(this._animationLoop))},t.BaseLayer.prototype.batchDraw=function(){var e=this,n=t.Animation;return this.batchAnim||(this.batchAnim=new n(function(){e.batchAnim.stop()},this)),this.batchAnim.isRunning()||this.batchAnim.start(),this},t.Stage.prototype.batchDraw=function(){return this.getChildren().each(function(t){t.batchDraw()}),this}}(Konva),function(){"use strict";var t={node:1,duration:1,easing:1,onFinish:1,yoyo:1},e=0,n=["fill","stroke","shadowColor"],r=function(t,e,n,r,i,a,o){this.prop=t,this.propFunc=e,this.begin=r,this._pos=r,this.duration=a,this._change=0,this.prevPos=0,this.yoyo=o,this._time=0,this._position=0,this._startTime=0,this._finish=0,this.func=n,this._change=i-this.begin,this.pause()};r.prototype={fire:function(t){var e=this[t];e&&e()},setTime:function(t){t>this.duration?this.yoyo?(this._time=this.duration,this.reverse()):this.finish():t<0?this.yoyo?(this._time=0,this.play()):this.reset():(this._time=t,this.update())},getTime:function(){return this._time},setPosition:function(t){this.prevPos=this._pos,this.propFunc(t),this._pos=t},getPosition:function(t){return void 0===t&&(t=this._time),this.func(t,this.begin,this._change,this.duration)},play:function(){this.state=2,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onPlay")},reverse:function(){this.state=3,this._time=this.duration-this._time,this._startTime=this.getTimer()-this._time,this.onEnterFrame(),this.fire("onReverse")},seek:function(t){this.pause(),this._time=t,this.update(),this.fire("onSeek")},reset:function(){this.pause(),this._time=0,this.update(),this.fire("onReset")},finish:function(){this.pause(),this._time=this.duration,this.update(),this.fire("onFinish")},update:function(){this.setPosition(this.getPosition(this._time))},onEnterFrame:function(){var t=this.getTimer()-this._startTime;2===this.state?this.setTime(t):3===this.state&&this.setTime(this.duration-t)},pause:function(){this.state=1,this.fire("onPause")},getTimer:function(){return(new Date).getTime()}},Konva.Tween=function(n){var i,a,o=this,s=n.node,l=s._id,u=n.easing||Konva.Easings.Linear,c=!!n.yoyo;i=void 0===n.duration?1:0===n.duration?.001:n.duration,this.node=s,this._id=e++;var f=s.getLayer()||(s instanceof Konva.Stage?s.getLayers():null);f||Konva.Util.error("Tween constructor have `node` that is not in a layer. Please add node into layer first."),this.anim=new Konva.Animation(function(){o.tween.onEnterFrame()},f),this.tween=new r(a,function(t){o._tweenFunc(t)},u,0,1,1e3*i,c),this._addListeners(),Konva.Tween.attrs[l]||(Konva.Tween.attrs[l]={}),Konva.Tween.attrs[l][this._id]||(Konva.Tween.attrs[l][this._id]={}),Konva.Tween.tweens[l]||(Konva.Tween.tweens[l]={});for(a in n)void 0===t[a]&&this._addAttr(a,n[a]);this.reset(),this.onFinish=n.onFinish,this.onReset=n.onReset},Konva.Tween.attrs={},Konva.Tween.tweens={},Konva.Tween.prototype={_addAttr:function(t,e){var r,i,a,o,s,l,u,c=this.node,f=c._id;if(a=Konva.Tween.tweens[f][t],a&&delete Konva.Tween.attrs[f][a][t],r=c.getAttr(t),Konva.Util._isArray(e))for(i=[],s=Math.max(e.length,r.length),"points"===t&&e.length!==r.length&&(e.length>r.length?(u=r,r=Konva.Util._prepareArrayForTween(r,e,c.closed())):(l=e,e=Konva.Util._prepareArrayForTween(e,r,c.closed()))),o=0;o<s;o++)i.push(e[o]-r[o]);else if(-1!==n.indexOf(t)){r=Konva.Util.colorToRGBA(r);var d=Konva.Util.colorToRGBA(e);i={r:d.r-r.r,g:d.g-r.g,b:d.b-r.b,a:d.a-r.a}}else i=e-r;Konva.Tween.attrs[f][this._id][t]={start:r,diff:i,end:e,trueEnd:l,trueStart:u},Konva.Tween.tweens[f][t]=this._id},_tweenFunc:function(t){var e,r,i,a,o,s,l,u,c=this.node,f=Konva.Tween.attrs[c._id][this._id];for(e in f){if(r=f[e],i=r.start,a=r.diff,u=r.end,Konva.Util._isArray(i))for(o=[],l=Math.max(i.length,u.length),s=0;s<l;s++)o.push((i[s]||0)+a[s]*t);else o=-1!==n.indexOf(e)?"rgba("+Math.round(i.r+a.r*t)+","+Math.round(i.g+a.g*t)+","+Math.round(i.b+a.b*t)+","+(i.a+a.a*t)+")":i+a*t;c.setAttr(e,o)}},_addListeners:function(){var t=this;this.tween.onPlay=function(){t.anim.start()},this.tween.onReverse=function(){t.anim.start()},this.tween.onPause=function(){t.anim.stop()},this.tween.onFinish=function(){var e=t.node,n=Konva.Tween.attrs[e._id][t._id];n.points&&n.points.trueEnd&&e.points(n.points.trueEnd),t.onFinish&&t.onFinish.call(t)},this.tween.onReset=function(){var e=t.node,n=Konva.Tween.attrs[e._id][t._id];n.points&&n.points.trueStart&&e.points(n.points.trueStart),t.onReset&&t.onReset()}},play:function(){return this.tween.play(),this},reverse:function(){return this.tween.reverse(),this},reset:function(){return this.tween.reset(),this},seek:function(t){return this.tween.seek(1e3*t),this},pause:function(){return this.tween.pause(),this},finish:function(){return this.tween.finish(),this},destroy:function(){var t,e=this.node._id,n=this._id,r=Konva.Tween.tweens[e];this.pause();for(t in r)delete Konva.Tween.tweens[e][t];delete Konva.Tween.attrs[e][n]}},Konva.Node.prototype.to=function(t){var e=t.onFinish;t.node=this,t.onFinish=function(){this.destroy(),e&&e()},new Konva.Tween(t).play()},Konva.Easings={BackEaseIn:function(t,e,n,r){var i=1.70158;return n*(t/=r)*t*((i+1)*t-i)+e},BackEaseOut:function(t,e,n,r){var i=1.70158;return n*((t=t/r-1)*t*((i+1)*t+i)+1)+e},BackEaseInOut:function(t,e,n,r){var i=1.70158;return(t/=r/2)<1?n/2*(t*t*((1+(i*=1.525))*t-i))+e:n/2*((t-=2)*t*((1+(i*=1.525))*t+i)+2)+e},ElasticEaseIn:function(t,e,n,r,i,a){var o=0;return 0===t?e:1==(t/=r)?e+n:(a||(a=.3*r),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),-i*Math.pow(2,10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a)+e)},ElasticEaseOut:function(t,e,n,r,i,a){var o=0;return 0===t?e:1==(t/=r)?e+n:(a||(a=.3*r),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),i*Math.pow(2,-10*t)*Math.sin((t*r-o)*(2*Math.PI)/a)+n+e)},ElasticEaseInOut:function(t,e,n,r,i,a){var o=0;return 0===t?e:2==(t/=r/2)?e+n:(a||(a=r*(.3*1.5)),!i||i<Math.abs(n)?(i=n,o=a/4):o=a/(2*Math.PI)*Math.asin(n/i),t<1?i*Math.pow(2,10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a)*-.5+e:i*Math.pow(2,-10*(t-=1))*Math.sin((t*r-o)*(2*Math.PI)/a)*.5+n+e)},BounceEaseOut:function(t,e,n,r){return(t/=r)<1/2.75?n*(7.5625*t*t)+e:t<2/2.75?n*(7.5625*(t-=1.5/2.75)*t+.75)+e:t<2.5/2.75?n*(7.5625*(t-=2.25/2.75)*t+.9375)+e:n*(7.5625*(t-=2.625/2.75)*t+.984375)+e},BounceEaseIn:function(t,e,n,r){return n-Konva.Easings.BounceEaseOut(r-t,0,n,r)+e},BounceEaseInOut:function(t,e,n,r){return t<r/2?.5*Konva.Easings.BounceEaseIn(2*t,0,n,r)+e:.5*Konva.Easings.BounceEaseOut(2*t-r,0,n,r)+.5*n+e},EaseIn:function(t,e,n,r){return n*(t/=r)*t+e},EaseOut:function(t,e,n,r){return-n*(t/=r)*(t-2)+e},EaseInOut:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t+e:-n/2*(--t*(t-2)-1)+e},StrongEaseIn:function(t,e,n,r){return n*(t/=r)*t*t*t*t+e},StrongEaseOut:function(t,e,n,r){return n*((t=t/r-1)*t*t*t*t+1)+e},StrongEaseInOut:function(t,e,n,r){return(t/=r/2)<1?n/2*t*t*t*t*t+e:n/2*((t-=2)*t*t*t*t+2)+e},Linear:function(t,e,n,r){return n*t/r+e}}}(),function(){"use strict";Konva.DD={anim:new Konva.Animation(function(){var t=this.dirty;return this.dirty=!1,t}),isDragging:!1,justDragged:!1,offset:{x:0,y:0},node:null,_drag:function(t){var e=Konva.DD,n=e.node;if(n){if(!e.isDragging){var r=n.getStage().getPointerPosition();r||(n.getStage()._setPointerPosition(t),r=n.getStage().getPointerPosition());var i=n.dragDistance();if(Math.max(Math.abs(r.x-e.startPointerPos.x),Math.abs(r.y-e.startPointerPos.y))<i)return}n.getStage()._setPointerPosition(t),n._setDragPosition(t),e.isDragging||(e.isDragging=!0,n.fire("dragstart",{type:"dragstart",target:n,evt:t},!0)),n.fire("dragmove",{type:"dragmove",target:n,evt:t},!0)}},_endDragBefore:function(t){var e,n=Konva.DD,r=n.node;r&&(e=r.getLayer(),n.anim.stop(),n.isDragging&&(n.isDragging=!1,n.justDragged=!0,Konva.listenClickTap=!1,t&&(t.dragEndNode=r)),delete n.node,(r.getLayer()||e||r instanceof Konva.Stage)&&(e||r).draw())},_endDragAfter:function(t){t=t||{};var e=t.dragEndNode;t&&e&&e.fire("dragend",{type:"dragend",target:e,evt:t},!0)}},Konva.Node.prototype.startDrag=function(){var t=Konva.DD,e=this.getStage(),n=this.getLayer(),r=e.getPointerPosition(),i=this.getAbsolutePosition();r&&(t.node&&t.node.stopDrag(),t.node=this,t.startPointerPos=r,t.offset.x=r.x-i.x,t.offset.y=r.y-i.y,t.anim.setLayers(n||this.getLayers()),t.anim.start(),this._setDragPosition())},Konva.Node.prototype._setDragPosition=function(t){var e=Konva.DD,n=this.getStage().getPointerPosition(),r=this.getDragBoundFunc();if(n){var i={x:n.x-e.offset.x,y:n.y-e.offset.y};void 0!==r&&(i=r.call(this,i,t)),this.setAbsolutePosition(i),this._lastPos&&this._lastPos.x===i.x&&this._lastPos.y===i.y||(e.anim.dirty=!0),this._lastPos=i}},Konva.Node.prototype.stopDrag=function(){var t=Konva.DD,e={};t._endDragBefore(e),t._endDragAfter(e)},Konva.Node.prototype.setDraggable=function(t){this._setAttr("draggable",t),this._dragChange()};var t=Konva.Node.prototype.remove;if(Konva.Node.prototype.__originalRemove=t,Konva.Node.prototype.remove=function(){var e=Konva.DD;e.node&&e.node._id===this._id&&this.stopDrag(),t.call(this)},Konva.Node.prototype.isDragging=function(){var t=Konva.DD;return!(!t.node||t.node._id!==this._id||!t.isDragging)},Konva.Node.prototype._listenDrag=function(){var t=this;this._dragCleanup(),"Stage"===this.getClassName()?this.on("contentMousedown.konva contentTouchstart.konva",function(e){Konva.DD.node||t.startDrag(e)}):this.on("mousedown.konva touchstart.konva",function(e){1!==e.evt.button&&2!==e.evt.button&&(Konva.DD.node||t.startDrag(e))})},Konva.Node.prototype._dragChange=function(){if(this.attrs.draggable)this._listenDrag();else{this._dragCleanup();var t=this.getStage(),e=Konva.DD;t&&e.node&&e.node._id===this._id&&e.node.stopDrag()}},Konva.Node.prototype._dragCleanup=function(){"Stage"===this.getClassName()?(this.off("contentMousedown.konva"),this.off("contentTouchstart.konva")):(this.off("mousedown.konva"),this.off("touchstart.konva"))},Konva.Factory.addGetterSetter(Konva.Node,"dragBoundFunc"),Konva.Factory.addGetter(Konva.Node,"draggable",!1),Konva.Factory.addOverloadedGetterSetter(Konva.Node,"draggable"),Konva.isBrowser){var e=Konva.document.documentElement;e.addEventListener("mouseup",Konva.DD._endDragBefore,!0),e.addEventListener("touchend",Konva.DD._endDragBefore,!0),e.addEventListener("mousemove",Konva.DD._drag),e.addEventListener("touchmove",Konva.DD._drag),e.addEventListener("mouseup",Konva.DD._endDragAfter,!1),e.addEventListener("touchend",Konva.DD._endDragAfter,!1)}}(),function(){"use strict";Konva.Rect=function(t){this.___init(t)},Konva.Rect.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Rect",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.getCornerRadius(),n=this.getWidth(),r=this.getHeight();t.beginPath(),e?(e=Math.min(e,n/2,r/2),t.moveTo(e,0),t.lineTo(n-e,0),t.arc(n-e,e,e,3*Math.PI/2,0,!1),t.lineTo(n,r-e),t.arc(n-e,r-e,e,0,Math.PI/2,!1),t.lineTo(e,r),t.arc(e,r-e,e,Math.PI/2,Math.PI,!1),t.lineTo(0,e),t.arc(e,e,e,Math.PI,3*Math.PI/2,!1)):t.rect(0,0,n,r),t.closePath(),t.fillStrokeShape(this)}},Konva.Util.extend(Konva.Rect,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Rect,"cornerRadius",0),Konva.Collection.mapMethods(Konva.Rect)}(),function(t){"use strict";var e=2*Math.PI-1e-4;t.Circle=function(t){this.___init(t)},t.Circle.prototype={_centroid:!0,___init:function(e){t.Shape.call(this,e),this.className="Circle",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){t.beginPath(),t.arc(0,0,this.getRadius(),0,e,!1),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(e){t.Node.prototype.setWidth.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)},setHeight:function(e){t.Node.prototype.setHeight.call(this,e),this.radius()!==e/2&&this.setRadius(e/2)}},t.Util.extend(t.Circle,t.Shape),t.Factory.addGetterSetter(t.Circle,"radius",0),t.Factory.addOverloadedGetterSetter(t.Circle,"radius"),t.Collection.mapMethods(t.Circle)}(Konva),function(){"use strict";var t=2*Math.PI-1e-4;Konva.Ellipse=function(t){this.___init(t)},Konva.Ellipse.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Ellipse",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var n=this.getRadiusX(),r=this.getRadiusY();e.beginPath(),e.save(),n!==r&&e.scale(1,r/n),e.arc(0,0,n,0,t,!1),e.restore(),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadiusX()},getHeight:function(){return 2*this.getRadiusY()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.setRadius({x:t/2})},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.setRadius({y:t/2})}},Konva.Util.extend(Konva.Ellipse,Konva.Shape),Konva.Factory.addComponentsGetterSetter(Konva.Ellipse,"radius",["x","y"]),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusX",0),Konva.Factory.addGetterSetter(Konva.Ellipse,"radiusY",0),Konva.Collection.mapMethods(Konva.Ellipse)}(),function(){"use strict";var t=2*Math.PI-1e-4;Konva.Ring=function(t){this.___init(t)},Konva.Ring.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Ring",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){e.beginPath(),e.arc(0,0,this.getInnerRadius(),0,t,!1),e.moveTo(this.getOuterRadius(),0),e.arc(0,0,this.getOuterRadius(),t,0,!0),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setOuterRadius:function(t){this._setAttr("outerRadius",t),this.setWidth(2*t),this.setHeight(2*t)}},Konva.Util.extend(Konva.Ring,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Ring,"innerRadius",0),Konva.Factory.addGetter(Konva.Ring,"outerRadius",0),Konva.Factory.addOverloadedGetterSetter(Konva.Ring,"outerRadius"),Konva.Collection.mapMethods(Konva.Ring)}(),function(){"use strict";Konva.Wedge=function(t){this.___init(t)},Konva.Wedge.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Wedge",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){t.beginPath(),t.arc(0,0,this.getRadius(),0,Konva.getAngle(this.getAngle()),this.getClockwise()),t.lineTo(0,0),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},Konva.Util.extend(Konva.Wedge,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Wedge,"radius",0),Konva.Factory.addGetterSetter(Konva.Wedge,"angle",0),Konva.Factory.addGetterSetter(Konva.Wedge,"clockwise",!1),Konva.Factory.backCompat(Konva.Wedge,{angleDeg:"angle",getAngleDeg:"getAngle",setAngleDeg:"setAngle"}),Konva.Collection.mapMethods(Konva.Wedge)}(),function(t){"use strict";t.Arc=function(t){this.___init(t)},t.Arc.prototype={_centroid:!0,___init:function(e){t.Shape.call(this,e),this.className="Arc",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(e){var n=t.getAngle(this.angle()),r=this.clockwise();e.beginPath(),e.arc(0,0,this.getOuterRadius(),0,n,r),e.arc(0,0,this.getInnerRadius(),n,0,!r),e.closePath(),e.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(e){t.Node.prototype.setWidth.call(this,e),this.getOuterRadius()!==e/2&&this.setOuterRadius(e/2)},setHeight:function(e){t.Node.prototype.setHeight.call(this,e),this.getOuterRadius()!==e/2&&this.setOuterRadius(e/2)}},t.Util.extend(t.Arc,t.Shape),t.Factory.addGetterSetter(t.Arc,"innerRadius",0),t.Factory.addGetterSetter(t.Arc,"outerRadius",0),t.Factory.addGetterSetter(t.Arc,"angle",0),t.Factory.addGetterSetter(t.Arc,"clockwise",!1),t.Collection.mapMethods(t.Arc)}(Konva),function(){"use strict";Konva.Image=function(t){this.___init(t)},Konva.Image.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Image",this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()&&this.getStage()},_sceneFunc:function(t){var e,n,r,i=this.getWidth(),a=this.getHeight(),o=this.getImage();o&&(e=this.getCropWidth(),n=this.getCropHeight(),r=e&&n?[o,this.getCropX(),this.getCropY(),e,n,0,0,i,a]:[o,0,0,i,a]),(this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,i,a),t.closePath(),t.fillStrokeShape(this)),o&&t.drawImage.apply(t,r)},_hitFunc:function(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},getWidth:function(){var t=this.getImage();return this.attrs.width||(t?t.width:0)},getHeight:function(){var t=this.getImage();return this.attrs.height||(t?t.height:0)}},Konva.Util.extend(Konva.Image,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Image,"image"),Konva.Factory.addComponentsGetterSetter(Konva.Image,"crop",["x","y","width","height"]),Konva.Factory.addGetterSetter(Konva.Image,"cropX",0),Konva.Factory.addGetterSetter(Konva.Image,"cropY",0),Konva.Factory.addGetterSetter(Konva.Image,"cropWidth",0),Konva.Factory.addGetterSetter(Konva.Image,"cropHeight",0),Konva.Collection.mapMethods(Konva.Image),Konva.Image.fromURL=function(t,e){var n=new Image;n.onload=function(){var t=new Konva.Image({image:n});e(t)},n.src=t}}(),function(){"use strict";function t(){return r||(r=Konva.Util.createCanvasElement().getContext(i))}function e(t){t.fillText(this.partialText,0,0)}function n(t){t.strokeText(this.partialText,0,0)}var r,i="2d",a=["fontFamily","fontSize","fontStyle","fontVariant","padding","align","lineHeight","text","width","height","wrap","letterSpacing"],o=a.length;Konva.Text=function(t){this.___init(t)},Konva.Text.prototype={___init:function(t){t=t||{},t.fillLinearGradientColorStops||t.fillRadialGradientColorStops||(t.fill=t.fill||"black"),Konva.Shape.call(this,t),this._fillFunc=e,this._strokeFunc=n,this.className="Text";for(var r=0;r<o;r++)this.on(a[r]+"Change.konva",this._setTextData);this._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){var e,n=this.getPadding(),r=this.getTextHeight(),i=this.getLineHeight()*r,a=this.textArr,o=a.length,s=this.getAlign(),l=this.getWidth(),u=this.getLetterSpacing(),c=this.textDecoration(),f=this.fill(),d=this.fontSize();for(t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline","middle"),t.setAttr("textAlign","left"),t.save(),n?(t.translate(n,0),t.translate(0,n+r/2)):t.translate(0,r/2),e=0;e<o;e++){var h=a[e],p=h.text,v=h.width;if(t.save(),"right"===s?t.translate(l-v-2*n,0):"center"===s&&t.translate((l-v-2*n)/2,0),-1!==c.indexOf("underline")&&(t.save(),t.beginPath(),t.moveTo(0,Math.round(i/2)),t.lineTo(Math.round(v),Math.round(i/2)),t.lineWidth=d/15,t.strokeStyle=f,t.stroke(),t.restore()),-1!==c.indexOf("line-through")&&(t.save(),t.beginPath(),t.moveTo(0,0),t.lineTo(Math.round(v),0),t.lineWidth=d/15,t.strokeStyle=f,t.stroke(),t.restore()),0!==u||"justify"===s)for(var g=p.split(" ").length-1,m=0;m<p.length;m++){var y=p[m];" "===y&&e!==o-1&&"justify"===s&&t.translate(Math.floor((l-v)/g),0),this.partialText=y,t.fillStrokeShape(this),t.translate(Math.round(this._getTextSize(y).width)+u,0)}else this.partialText=p,t.fillStrokeShape(this);t.restore(),t.translate(0,i)}t.restore()},_hitFunc:function(t){var e=this.getWidth(),n=this.getHeight();t.beginPath(),t.rect(0,0,e,n),t.closePath(),t.fillStrokeShape(this)},setText:function(t){var e=Konva.Util._isString(t)?t:(t||"").toString();return this._setAttr("text",e),this},getWidth:function(){return"auto"===this.attrs.width||void 0===this.attrs.width?this.getTextWidth()+2*this.getPadding():this.attrs.width},getHeight:function(){return"auto"===this.attrs.height||void 0===this.attrs.height?this.getTextHeight()*this.textArr.length*this.getLineHeight()+2*this.getPadding():this.attrs.height},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},_getTextSize:function(e){var n,r=t(),i=this.getFontSize();return r.save(),r.font=this._getContextFont(),n=r.measureText(e),r.restore(),{width:n.width,height:parseInt(i,10)}},_getContextFont:function(){return Konva.UA.isIE?this.getFontStyle()+" "+this.getFontSize()+"px "+this.getFontFamily():this.getFontStyle()+" "+this.getFontVariant()+" "+this.getFontSize()+"px "+this.getFontFamily()},_addTextLine:function(t){"justify"===this.align()&&(t=t.trim());var e=this._getTextWidth(t);return this.textArr.push({text:t,width:e})},_getTextWidth:function(e){var n=this.getLetterSpacing(),r=e.length;return t().measureText(e).width+(r?n*(r-1):0)},_setTextData:function(){var e=this.getText().split("\n"),n=+this.getFontSize(),r=0,i=this.getLineHeight()*n,a=this.attrs.width,o=this.attrs.height,s="auto"!==a,l="auto"!==o,u=this.getPadding(),c=a-2*u,f=o-2*u,d=0,h=this.getWrap(),p="none"!==h,v="char"!==h&&p;this.textArr=[],t().save(),t().font=this._getContextFont();for(var g=0,m=e.length;g<m;++g){var y=e[g],b=this._getTextWidth(y);if(s&&b>c)for(;y.length>0;){for(var _=0,C=y.length,x="",S=0;_<C;){var w=_+C>>>1,T=y.slice(0,w+1),k=this._getTextWidth(T);k<=c?(_=w+1,x=T,S=k):C=w}if(!x)break;if(v){var P=Math.max(x.lastIndexOf(" "),x.lastIndexOf("-"))+1;P>0&&(_=P,x=x.slice(0,_),S=this._getTextWidth(x))}if(this._addTextLine(x),r=Math.max(r,S),d+=i,!p||l&&d+i>f)break;if(y=y.slice(_),y.length>0&&(b=this._getTextWidth(y))<=c){this._addTextLine(y),d+=i,r=Math.max(r,b);break}}else this._addTextLine(y),d+=i,r=Math.max(r,b);if(l&&d+i>f)break}t().restore(),this.textHeight=n,this.textWidth=r}},Konva.Util.extend(Konva.Text,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Text,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.Text,"fontSize",12),Konva.Factory.addGetterSetter(Konva.Text,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.Text,"fontVariant","normal"),Konva.Factory.addGetterSetter(Konva.Text,"padding",0),Konva.Factory.addGetterSetter(Konva.Text,"align","left"),Konva.Factory.addGetterSetter(Konva.Text,"lineHeight",1),Konva.Factory.addGetterSetter(Konva.Text,"wrap","word"),Konva.Factory.addGetterSetter(Konva.Text,"letterSpacing",0),Konva.Factory.addGetter(Konva.Text,"text",""),Konva.Factory.addOverloadedGetterSetter(Konva.Text,"text"),Konva.Factory.addGetterSetter(Konva.Text,"textDecoration",""),Konva.Collection.mapMethods(Konva.Text)}(),function(){"use strict";Konva.Line=function(t){this.___init(t)},Konva.Line.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Line",this.on("pointsChange.konva tensionChange.konva closedChange.konva bezierChange.konva",function(){this._clearCache("tensionPoints")}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e,n,r,i=this.getPoints(),a=i.length,o=this.getTension(),s=this.getClosed(),l=this.getBezier();if(a){if(t.beginPath(),t.moveTo(i[0],i[1]),0!==o&&a>4){for(e=this.getTensionPoints(),n=e.length,r=s?0:4,s||t.quadraticCurveTo(e[0],e[1],e[2],e[3]);r<n-2;)t.bezierCurveTo(e[r++],e[r++],e[r++],e[r++],e[r++],e[r++]);s||t.quadraticCurveTo(e[n-2],e[n-1],i[a-2],i[a-1])}else if(l)for(r=2;r<a;)t.bezierCurveTo(i[r++],i[r++],i[r++],i[r++],i[r++],i[r++]);else for(r=2;r<a;r+=2)t.lineTo(i[r],i[r+1]);s?(t.closePath(),t.fillStrokeShape(this)):t.strokeShape(this)}},getTensionPoints:function(){return this._getCache("tensionPoints",this._getTensionPoints)},_getTensionPoints:function(){return this.getClosed()?this._getTensionPointsClosed():Konva.Util._expandPoints(this.getPoints(),this.getTension())},_getTensionPointsClosed:function(){var t=this.getPoints(),e=t.length,n=this.getTension(),r=Konva.Util,i=r._getControlPoints(t[e-2],t[e-1],t[0],t[1],t[2],t[3],n),a=r._getControlPoints(t[e-4],t[e-3],t[e-2],t[e-1],t[0],t[1],n),o=Konva.Util._expandPoints(t,n);return[i[2],i[3]].concat(o).concat([a[0],a[1],t[e-2],t[e-1],a[2],a[3],i[0],i[1],t[0],t[1]])},getWidth:function(){return this.getSelfRect().width},getHeight:function(){return this.getSelfRect().height},getSelfRect:function(){var t;t=0!==this.getTension()?this._getTensionPoints():this.getPoints();for(var e,n,r=t[0],i=t[0],a=t[1],o=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],r=Math.min(r,e),i=Math.max(i,e),a=Math.min(a,n),o=Math.max(o,n);return{x:Math.round(r),y:Math.round(a),width:Math.round(i-r),height:Math.round(o-a)}}},Konva.Util.extend(Konva.Line,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Line,"closed",!1),Konva.Factory.addGetterSetter(Konva.Line,"bezier",!1),Konva.Factory.addGetterSetter(Konva.Line,"tension",0),Konva.Factory.addGetterSetter(Konva.Line,"points",[]),Konva.Collection.mapMethods(Konva.Line)}(),function(){"use strict";Konva.Sprite=function(t){this.___init(t)},Konva.Sprite.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Sprite",this._updated=!0;var e=this;this.anim=new Konva.Animation(function(){var t=e._updated;return e._updated=!1,t}),this.on("animationChange.konva",function(){this.frameIndex(0)}),this.on("frameIndexChange.konva",function(){this._updated=!0}),this.on("frameRateChange.konva",function(){this.anim.isRunning()&&(clearInterval(this.interval),this._setInterval())}),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){var e=this.getAnimation(),n=this.frameIndex(),r=4*n,i=this.getAnimations()[e],a=this.frameOffsets(),o=i[r+0],s=i[r+1],l=i[r+2],u=i[r+3],c=this.getImage();if((this.hasFill()||this.hasStroke())&&(t.beginPath(),t.rect(0,0,l,u),t.closePath(),t.fillStrokeShape(this)),c)if(a){var f=a[e],d=2*n;t.drawImage(c,o,s,l,u,f[d+0],f[d+1],l,u)}else t.drawImage(c,o,s,l,u,0,0,l,u)},_hitFunc:function(t){var e=this.getAnimation(),n=this.frameIndex(),r=4*n,i=this.getAnimations()[e],a=this.frameOffsets(),o=i[r+2],s=i[r+3];if(t.beginPath(),a){var l=a[e],u=2*n;t.rect(l[u+0],l[u+1],o,s)}else t.rect(0,0,o,s);t.closePath(),t.fillShape(this)},_useBufferCanvas:function(){return(this.hasShadow()||1!==this.getAbsoluteOpacity())&&this.hasStroke()},_setInterval:function(){var t=this;this.interval=setInterval(function(){t._updateIndex()},1e3/this.getFrameRate())},start:function(){var t=this.getLayer();this.anim.setLayers(t),this._setInterval(),this.anim.start()},stop:function(){this.anim.stop(),clearInterval(this.interval)},isRunning:function(){return this.anim.isRunning()},_updateIndex:function(){var t=this.frameIndex(),e=this.getAnimation();t<this.getAnimations()[e].length/4-1?this.frameIndex(t+1):this.frameIndex(0)}},Konva.Util.extend(Konva.Sprite,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Sprite,"animation"),Konva.Factory.addGetterSetter(Konva.Sprite,"animations"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameOffsets"),Konva.Factory.addGetterSetter(Konva.Sprite,"image"),Konva.Factory.addGetterSetter(Konva.Sprite,"frameIndex",0),Konva.Factory.addGetterSetter(Konva.Sprite,"frameRate",17),Konva.Factory.backCompat(Konva.Sprite,{index:"frameIndex",getIndex:"getFrameIndex",setIndex:"setFrameIndex"}),Konva.Collection.mapMethods(Konva.Sprite)}(),function(){"use strict";Konva.Path=function(t){this.___init(t)},Konva.Path.prototype={___init:function(t){this.dataArray=[];var e=this;Konva.Shape.call(this,t),this.className="Path",this.dataArray=Konva.Path.parsePathData(this.getData()),this.on("dataChange.konva",function(){e.dataArray=Konva.Path.parsePathData(this.getData())}),this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.dataArray;t.beginPath();for(var n=0;n<e.length;n++){var r=e[n].command,i=e[n].points;switch(r){case"L":t.lineTo(i[0],i[1]);break;case"M":t.moveTo(i[0],i[1]);break;case"C":t.bezierCurveTo(i[0],i[1],i[2],i[3],i[4],i[5]);break;case"Q":t.quadraticCurveTo(i[0],i[1],i[2],i[3]);break;case"A":var a=i[0],o=i[1],s=i[2],l=i[3],u=i[4],c=i[5],f=i[6],d=i[7],h=s>l?s:l,p=s>l?1:s/l,v=s>l?l/s:1;t.translate(a,o),t.rotate(f),t.scale(p,v),t.arc(0,0,h,u,u+c,1-d),t.scale(1/p,1/v),t.rotate(-f),t.translate(-a,-o);break;case"z":t.closePath()}}t.fillStrokeShape(this)},getSelfRect:function(){var t=[];this.dataArray.forEach(function(e){t=t.concat(e.points)});for(var e,n,r=t[0],i=t[0],a=t[1],o=t[1],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],r=Math.min(r,e),i=Math.max(i,e),a=Math.min(a,n),o=Math.max(o,n);return{x:Math.round(r),y:Math.round(a),width:Math.round(i-r),height:Math.round(o-a)}}},Konva.Util.extend(Konva.Path,Konva.Shape),Konva.Path.getLineLength=function(t,e,n,r){return Math.sqrt((n-t)*(n-t)+(r-e)*(r-e))},Konva.Path.getPointOnLine=function(t,e,n,r,i,a,o){void 0===a&&(a=e),void 0===o&&(o=n);var s=(i-n)/(r-e+1e-8),l=Math.sqrt(t*t/(1+s*s));r<e&&(l*=-1);var u,c=s*l;if(r===e)u={x:a,y:o+c};else if((o-n)/(a-e+1e-8)===s)u={x:a+l,y:o+c};else{var f,d,h=this.getLineLength(e,n,r,i);if(h<1e-8)return;var p=(a-e)*(r-e)+(o-n)*(i-n);p/=h*h,f=e+p*(r-e),d=n+p*(i-n);var v=this.getLineLength(a,o,f,d),g=Math.sqrt(t*t-v*v);l=Math.sqrt(g*g/(1+s*s)),r<e&&(l*=-1),c=s*l,u={x:f+l,y:d+c}}return u},Konva.Path.getPointOnCubicBezier=function(t,e,n,r,i,a,o,s,l){function u(t){return t*t*t}function c(t){return 3*t*t*(1-t)}function f(t){return 3*t*(1-t)*(1-t)}function d(t){return(1-t)*(1-t)*(1-t)}return{x:s*u(t)+a*c(t)+r*f(t)+e*d(t),y:l*u(t)+o*c(t)+i*f(t)+n*d(t)}},Konva.Path.getPointOnQuadraticBezier=function(t,e,n,r,i,a,o){function s(t){return t*t}function l(t){return 2*t*(1-t)}function u(t){return(1-t)*(1-t)}return{x:a*s(t)+r*l(t)+e*u(t),y:o*s(t)+i*l(t)+n*u(t)}},Konva.Path.getPointOnEllipticalArc=function(t,e,n,r,i,a){var o=Math.cos(a),s=Math.sin(a),l={x:n*Math.cos(i),y:r*Math.sin(i)};return{x:t+(l.x*o-l.y*s),y:e+(l.x*s+l.y*o)}},Konva.Path.parsePathData=function(t){if(!t)return[];var e=t,n=["m","M","l","L","v","V","h","H","z","Z","c","C","q","Q","t","T","s","S","a","A"];e=e.replace(new RegExp(" ","g"),",");for(var r=0;r<n.length;r++)e=e.replace(new RegExp(n[r],"g"),"|"+n[r]);var i=e.split("|"),a=[],o=0,s=0;for(r=1;r<i.length;r++){var l=i[r],u=l.charAt(0);l=l.slice(1),l=l.replace(new RegExp(",-","g"),"-"),l=l.replace(new RegExp("-","g"),",-"),l=l.replace(new RegExp("e,-","g"),"e-");var c=l.split(",");c.length>0&&""===c[0]&&c.shift();for(var f=0;f<c.length;f++)c[f]=parseFloat(c[f]);for(;c.length>0&&!isNaN(c[0]);){var d,h,p,v,g,m,y,b,_,C,x=null,S=[],w=o,T=s;switch(u){case"l":o+=c.shift(),s+=c.shift(),x="L",S.push(o,s);break;case"L":o=c.shift(),s=c.shift(),S.push(o,s);break;case"m":var k=c.shift(),P=c.shift();if(o+=k,s+=P,x="M",a.length>2&&"z"===a[a.length-1].command)for(var K=a.length-2;K>=0;K--)if("M"===a[K].command){o=a[K].points[0]+k,s=a[K].points[1]+P;break}S.push(o,s),u="l";break;case"M":o=c.shift(),s=c.shift(),x="M",S.push(o,s),u="L";break;case"h":o+=c.shift(),x="L",S.push(o,s);break;case"H":o=c.shift(),x="L",S.push(o,s);break;case"v":s+=c.shift(),x="L",S.push(o,s);break;case"V":s=c.shift(),x="L",S.push(o,s);break;case"C":S.push(c.shift(),c.shift(),c.shift(),c.shift()),o=c.shift(),s=c.shift(),S.push(o,s);break;case"c":S.push(o+c.shift(),s+c.shift(),o+c.shift(),s+c.shift()),o+=c.shift(),s+=c.shift(),x="C",S.push(o,s);break;case"S":h=o,p=s,d=a[a.length-1],"C"===d.command&&(h=o+(o-d.points[2]),p=s+(s-d.points[3])),S.push(h,p,c.shift(),c.shift()),o=c.shift(),s=c.shift(),x="C",S.push(o,s);break;case"s":h=o,p=s,d=a[a.length-1],"C"===d.command&&(h=o+(o-d.points[2]),p=s+(s-d.points[3])),S.push(h,p,o+c.shift(),s+c.shift()),o+=c.shift(),s+=c.shift(),x="C",S.push(o,s);break;case"Q":S.push(c.shift(),c.shift()),o=c.shift(),s=c.shift(),S.push(o,s);break;case"q":S.push(o+c.shift(),s+c.shift()),o+=c.shift(),s+=c.shift(),x="Q",S.push(o,s);break;case"T":h=o,p=s,d=a[a.length-1],"Q"===d.command&&(h=o+(o-d.points[0]),p=s+(s-d.points[1])),o=c.shift(),s=c.shift(),x="Q",S.push(h,p,o,s);break;case"t":h=o,p=s,d=a[a.length-1],"Q"===d.command&&(h=o+(o-d.points[0]),p=s+(s-d.points[1])),o+=c.shift(),s+=c.shift(),x="Q",S.push(h,p,o,s);break;case"A":v=c.shift(),g=c.shift(),m=c.shift(),y=c.shift(),b=c.shift(),_=o,C=s,o=c.shift(),s=c.shift(),x="A",S=this.convertEndpointToCenterParameterization(_,C,o,s,y,b,v,g,m);break;case"a":v=c.shift(),g=c.shift(),m=c.shift(),y=c.shift(),b=c.shift(),_=o,C=s,o+=c.shift(),s+=c.shift(),x="A",S=this.convertEndpointToCenterParameterization(_,C,o,s,y,b,v,g,m)}a.push({command:x||u,points:S,start:{x:w,y:T},pathLength:this.calcLength(w,T,x||u,S)})}"z"!==u&&"Z"!==u||a.push({command:"z",points:[],start:void 0,pathLength:0})}return a},Konva.Path.calcLength=function(t,e,n,r){var i,a,o,s,l=Konva.Path;switch(n){case"L":return l.getLineLength(t,e,r[0],r[1]);case"C":for(i=0,a=l.getPointOnCubicBezier(0,t,e,r[0],r[1],r[2],r[3],r[4],r[5]),s=.01;s<=1;s+=.01)o=l.getPointOnCubicBezier(s,t,e,r[0],r[1],r[2],r[3],r[4],r[5]),i+=l.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case"Q":for(i=0,a=l.getPointOnQuadraticBezier(0,t,e,r[0],r[1],r[2],r[3]),s=.01;s<=1;s+=.01)o=l.getPointOnQuadraticBezier(s,t,e,r[0],r[1],r[2],r[3]),i+=l.getLineLength(a.x,a.y,o.x,o.y),a=o;return i;case"A":i=0;var u=r[4],c=r[5],f=r[4]+c,d=Math.PI/180;if(Math.abs(u-f)<d&&(d=Math.abs(u-f)),a=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],u,0),c<0)for(s=u-d;s>f;s-=d)o=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=l.getLineLength(a.x,a.y,o.x,o.y),a=o;else for(s=u+d;s<f;s+=d)o=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],s,0),i+=l.getLineLength(a.x,a.y,o.x,o.y),a=o;return o=l.getPointOnEllipticalArc(r[0],r[1],r[2],r[3],f,0),i+=l.getLineLength(a.x,a.y,o.x,o.y)}return 0},Konva.Path.convertEndpointToCenterParameterization=function(t,e,n,r,i,a,o,s,l){var u=l*(Math.PI/180),c=Math.cos(u)*(t-n)/2+Math.sin(u)*(e-r)/2,f=-1*Math.sin(u)*(t-n)/2+Math.cos(u)*(e-r)/2,d=c*c/(o*o)+f*f/(s*s);d>1&&(o*=Math.sqrt(d),s*=Math.sqrt(d));var h=Math.sqrt((o*o*(s*s)-o*o*(f*f)-s*s*(c*c))/(o*o*(f*f)+s*s*(c*c)));i===a&&(h*=-1),isNaN(h)&&(h=0);var p=h*o*f/s,v=h*-s*c/o,g=(t+n)/2+Math.cos(u)*p-Math.sin(u)*v,m=(e+r)/2+Math.sin(u)*p+Math.cos(u)*v,y=function(t){return Math.sqrt(t[0]*t[0]+t[1]*t[1])},b=function(t,e){return(t[0]*e[0]+t[1]*e[1])/(y(t)*y(e))},_=function(t,e){return(t[0]*e[1]<t[1]*e[0]?-1:1)*Math.acos(b(t,e))},C=_([1,0],[(c-p)/o,(f-v)/s]),x=[(c-p)/o,(f-v)/s],S=[(-1*c-p)/o,(-1*f-v)/s],w=_(x,S);return b(x,S)<=-1&&(w=Math.PI),b(x,S)>=1&&(w=0),0===a&&w>0&&(w-=2*Math.PI),1===a&&w<0&&(w+=2*Math.PI),[g,m,o,s,C,w,u,a]},Konva.Factory.addGetterSetter(Konva.Path,"data"),Konva.Collection.mapMethods(Konva.Path)}(),function(){"use strict";function t(t){t.fillText(this.partialText,0,0)}function e(t){t.strokeText(this.partialText,0,0)}Konva.TextPath=function(t){this.___init(t)},Konva.TextPath.prototype={___init:function(n){var r=this;this.dummyCanvas=Konva.Util.createCanvasElement(),this.dataArray=[],Konva.Shape.call(this,n),this._fillFunc=t,this._strokeFunc=e,this._fillFuncHit=t,this._strokeFuncHit=e,this.className="TextPath",this.dataArray=Konva.Path.parsePathData(this.attrs.data),this.on("dataChange.konva",function(){r.dataArray=Konva.Path.parsePathData(this.attrs.data),r._setTextData()}),this.on("textChange.konva alignChange.konva letterSpacingChange.konva",r._setTextData),r._setTextData(),this.sceneFunc(this._sceneFunc),this.hitFunc(this._hitFunc)},_sceneFunc:function(t){t.setAttr("font",this._getContextFont()),t.setAttr("textBaseline",this.getTextBaseline()),t.setAttr("textAlign","left"),t.save();var e=this.textDecoration(),n=this.fill(),r=this.fontSize(),i=this.glyphInfo;"underline"===e&&t.beginPath();for(var a=0;a<i.length;a++){t.save();var o=i[a].p0;t.translate(o.x,o.y),t.rotate(i[a].rotation),this.partialText=i[a].text,t.fillStrokeShape(this),"underline"===e&&(0===a&&t.moveTo(0,r/2+1),t.lineTo(r,r/2+1)),t.restore()}"underline"===e&&(t.strokeStyle=n,t.lineWidth=r/20,t.stroke()),t.restore()},_hitFunc:function(t){t.beginPath();var e=this.glyphInfo;if(e.length>=1){var n=e[0].p0;t.moveTo(n.x,n.y)}for(var r=0;r<e.length;r++){var i=e[r].p1;t.lineTo(i.x,i.y)}t.setAttr("lineWidth",this.getFontSize()),t.setAttr("strokeStyle",this.colorKey),t.stroke()},getTextWidth:function(){return this.textWidth},getTextHeight:function(){return this.textHeight},setText:function(t){Konva.Text.prototype.setText.call(this,t)},_getTextSize:function(t){var e=this.dummyCanvas,n=e.getContext("2d");n.save(),n.font=this._getContextFont();var r=n.measureText(t);return n.restore(),{width:r.width,height:parseInt(this.attrs.fontSize,10)}},_setTextData:function(){var t=this,e=this._getTextSize(this.attrs.text),n=this.getLetterSpacing(),r=this.align();this.textWidth=e.width,this.textHeight=e.height;var i=Math.max(this.textWidth+((this.attrs.text||"").length-1)*n,0);this.glyphInfo=[];for(var a=0,o=0;o<t.dataArray.length;o++)t.dataArray[o].pathLength>0&&(a+=t.dataArray[o].pathLength);var s=0;"center"===r&&(s=Math.max(0,a/2-i/2)),"right"===r&&(s=Math.max(0,a-i));for(var l,u,c,f=this.getText().split(""),d=this.getText().split(" ").length-1,h=-1,p=0,v=function(){p=0;for(var e=t.dataArray,n=h+1;n<e.length;n++){if(e[n].pathLength>0)return h=n,e[n];"M"===e[n].command&&(l={x:e[n].points[0],y:e[n].points[1]})}return{}},g=function(e){var o=t._getTextSize(e).width+n;" "===e&&"justify"===r&&(o+=(a-i)/d);var s=0,f=0;for(u=void 0;Math.abs(o-s)/o>.01&&f<25;){f++;for(var h=s;void 0===c;)(c=v())&&h+c.pathLength<o&&(h+=c.pathLength,c=void 0);if(c==={}||void 0===l)return;var g=!1;switch(c.command){case"L":Konva.Path.getLineLength(l.x,l.y,c.points[0],c.points[1])>o?u=Konva.Path.getPointOnLine(o,l.x,l.y,c.points[0],c.points[1],l.x,l.y):c=void 0;break;case"A":var m=c.points[4],y=c.points[5],b=c.points[4]+y;0===p?p=m+1e-8:o>s?p+=Math.PI/180*y/Math.abs(y):p-=Math.PI/360*y/Math.abs(y),(y<0&&p<b||y>=0&&p>b)&&(p=b,g=!0),u=Konva.Path.getPointOnEllipticalArc(c.points[0],c.points[1],c.points[2],c.points[3],p,c.points[6]);break;case"C":0===p?p=o>c.pathLength?1e-8:o/c.pathLength:o>s?p+=(o-s)/c.pathLength:p-=(s-o)/c.pathLength,p>1&&(p=1,g=!0),u=Konva.Path.getPointOnCubicBezier(p,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3],c.points[4],c.points[5]);break;case"Q":0===p?p=o/c.pathLength:o>s?p+=(o-s)/c.pathLength:p-=(s-o)/c.pathLength,p>1&&(p=1,g=!0),u=Konva.Path.getPointOnQuadraticBezier(p,c.start.x,c.start.y,c.points[0],c.points[1],c.points[2],c.points[3])}void 0!==u&&(s=Konva.Path.getLineLength(l.x,l.y,u.x,u.y)),g&&(g=!1,c=void 0)}},m=t._getTextSize("C").width+n,y=0;y<s/m&&(g("C"),void 0!==l&&void 0!==u);y++)l=u;for(var b=0;b<f.length&&(g(f[b]),void 0!==l&&void 0!==u);b++){var _=Konva.Path.getLineLength(l.x,l.y,u.x,u.y),C=Konva.Path.getPointOnLine(0+_/2,l.x,l.y,u.x,u.y),x=Math.atan2(u.y-l.y,u.x-l.x);this.glyphInfo.push({transposeX:C.x,transposeY:C.y,text:f[b],rotation:x,p0:l,p1:u}),l=u}},getSelfRect:function(){var t=[];this.glyphInfo.forEach(function(e){t.push(e.p0.x),t.push(e.p0.y),t.push(e.p1.x),t.push(e.p1.y)});for(var e,n,r=t[0],i=t[0],a=t[0],o=t[0],s=0;s<t.length/2;s++)e=t[2*s],n=t[2*s+1],r=Math.min(r,e),i=Math.max(i,e),a=Math.min(a,n),o=Math.max(o,n);var l=this.fontSize();return{x:Math.round(r)-l/2,y:Math.round(a)-l/2,width:Math.round(i-r)+l,height:Math.round(o-a)+l}}},Konva.TextPath.prototype._getContextFont=Konva.Text.prototype._getContextFont,Konva.Util.extend(Konva.TextPath,Konva.Shape),Konva.Factory.addGetterSetter(Konva.TextPath,"fontFamily","Arial"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontSize",12),Konva.Factory.addGetterSetter(Konva.TextPath,"fontStyle","normal"),Konva.Factory.addGetterSetter(Konva.TextPath,"align","left"),Konva.Factory.addGetterSetter(Konva.TextPath,"letterSpacing",0),Konva.Factory.addGetterSetter(Konva.TextPath,"textBaseline","middle"),Konva.Factory.addGetterSetter(Konva.TextPath,"fontVariant","normal"),Konva.Factory.addGetter(Konva.TextPath,"text",""),Konva.Factory.addGetterSetter(Konva.TextPath,"textDecoration",null),Konva.Collection.mapMethods(Konva.TextPath)}(),function(){"use strict";Konva.RegularPolygon=function(t){this.___init(t)},Konva.RegularPolygon.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="RegularPolygon",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e,n,r,i=this.attrs.sides,a=this.attrs.radius;for(t.beginPath(),t.moveTo(0,0-a),e=1;e<i;e++)n=a*Math.sin(2*e*Math.PI/i),r=-1*a*Math.cos(2*e*Math.PI/i),t.lineTo(n,r);t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getRadius()},getHeight:function(){return 2*this.getRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.radius()!==t/2&&this.setRadius(t/2)}},Konva.Util.extend(Konva.RegularPolygon,Konva.Shape),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"radius",0),Konva.Factory.addGetterSetter(Konva.RegularPolygon,"sides",0),Konva.Collection.mapMethods(Konva.RegularPolygon)}(),function(){"use strict";Konva.Star=function(t){this.___init(t)},Konva.Star.prototype={_centroid:!0,___init:function(t){Konva.Shape.call(this,t),this.className="Star",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.innerRadius(),n=this.outerRadius(),r=this.numPoints();t.beginPath(),t.moveTo(0,0-n);for(var i=1;i<2*r;i++){var a=i%2==0?n:e,o=a*Math.sin(i*Math.PI/r),s=-1*a*Math.cos(i*Math.PI/r);t.lineTo(o,s)}t.closePath(),t.fillStrokeShape(this)},getWidth:function(){return 2*this.getOuterRadius()},getHeight:function(){return 2*this.getOuterRadius()},setWidth:function(t){Konva.Node.prototype.setWidth.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)},setHeight:function(t){Konva.Node.prototype.setHeight.call(this,t),this.outerRadius()!==t/2&&this.setOuterRadius(t/2)}},Konva.Util.extend(Konva.Star,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Star,"numPoints",5),Konva.Factory.addGetterSetter(Konva.Star,"innerRadius",0),Konva.Factory.addGetterSetter(Konva.Star,"outerRadius",0),Konva.Collection.mapMethods(Konva.Star)}(),function(){"use strict";var t=["fontFamily","fontSize","fontStyle","padding","lineHeight","text","width"],e=t.length;Konva.Label=function(t){this.____init(t)},Konva.Label.prototype={____init:function(t){var e=this;Konva.Group.call(this,t),this.className="Label",this.on("add.konva",function(t){e._addListeners(t.child),e._sync()})},getText:function(){return this.find("Text")[0]},getTag:function(){return this.find("Tag")[0]},_addListeners:function(n){var r,i=this,a=function(){i._sync()};for(r=0;r<e;r++)n.on(t[r]+"Change.konva",a)},getWidth:function(){return this.getText().getWidth()},getHeight:function(){return this.getText().getHeight()},_sync:function(){var t,e,n,r,i,a,o,s=this.getText(),l=this.getTag();if(s&&l){switch(t=s.getWidth(),e=s.getHeight(),n=l.getPointerDirection(),r=l.getPointerWidth(),o=l.getPointerHeight(),i=0,a=0,n){case"up":i=t/2,a=-1*o;break;case"right":i=t+r,a=e/2;break;case"down":i=t/2,a=e+o;break;case"left":i=-1*r,a=e/2}l.setAttrs({x:-1*i,y:-1*a,width:t,height:e}),s.setAttrs({x:-1*i,y:-1*a})}}},Konva.Util.extend(Konva.Label,Konva.Group),Konva.Collection.mapMethods(Konva.Label),Konva.Tag=function(t){this.___init(t)},Konva.Tag.prototype={___init:function(t){Konva.Shape.call(this,t),this.className="Tag",this.sceneFunc(this._sceneFunc)},_sceneFunc:function(t){var e=this.getWidth(),n=this.getHeight(),r=this.getPointerDirection(),i=this.getPointerWidth(),a=this.getPointerHeight(),o=Math.min(this.getCornerRadius(),e/2,n/2);t.beginPath(),o?t.moveTo(o,0):t.moveTo(0,0),"up"===r&&(t.lineTo((e-i)/2,0),t.lineTo(e/2,-1*a),t.lineTo((e+i)/2,0)),o?(t.lineTo(e-o,0),t.arc(e-o,o,o,3*Math.PI/2,0,!1)):t.lineTo(e,0),"right"===r&&(t.lineTo(e,(n-a)/2),t.lineTo(e+i,n/2),t.lineTo(e,(n+a)/2)),o?(t.lineTo(e,n-o),t.arc(e-o,n-o,o,0,Math.PI/2,!1)):t.lineTo(e,n),"down"===r&&(t.lineTo((e+i)/2,n),t.lineTo(e/2,n+a),t.lineTo((e-i)/2,n)),o?(t.lineTo(o,n),t.arc(o,n-o,o,Math.PI/2,Math.PI,!1)):t.lineTo(0,n),"left"===r&&(t.lineTo(0,(n+a)/2),t.lineTo(-1*i,n/2),t.lineTo(0,(n-a)/2)),o&&(t.lineTo(0,o),t.arc(o,o,o,Math.PI,3*Math.PI/2,!1)),t.closePath(),t.fillStrokeShape(this)},getSelfRect:function(){var t=0,e=0,n=this.getPointerWidth(),r=this.getPointerHeight(),i=this.pointerDirection(),a=this.getWidth(),o=this.getHeight();return"up"===i?(e-=r,o+=r):"down"===i?o+=r:"left"===i?(t-=1.5*n,a+=n):"right"===i&&(a+=1.5*n),{x:t,y:e,width:a,height:o}}},Konva.Util.extend(Konva.Tag,Konva.Shape),Konva.Factory.addGetterSetter(Konva.Tag,"pointerDirection","none"),Konva.Factory.addGetterSetter(Konva.Tag,"pointerWidth",0),Konva.Factory.addGetterSetter(Konva.Tag,"pointerHeight",0),Konva.Factory.addGetterSetter(Konva.Tag,"cornerRadius",0),Konva.Collection.mapMethods(Konva.Tag)}(),function(t){"use strict";t.Arrow=function(t){this.____init(t)},t.Arrow.prototype={____init:function(e){t.Line.call(this,e),this.className="Arrow"},_sceneFunc:function(e){t.Line.prototype._sceneFunc.apply(this,arguments);var n=2*Math.PI,r=this.points(),i=r.length,a=r[i-2]-r[i-4],o=r[i-1]-r[i-3],s=(Math.atan2(o,a)+n)%n,l=this.pointerLength(),u=this.pointerWidth();e.save(),e.beginPath(),e.translate(r[i-2],r[i-1]),e.rotate(s),e.moveTo(0,0),e.lineTo(-l,u/2),e.lineTo(-l,-u/2),e.closePath(),e.restore(),this.pointerAtBeginning()&&(e.save(),e.translate(r[0],r[1]),a=r[2]-r[0],o=r[3]-r[1],e.rotate((Math.atan2(-o,-a)+n)%n),e.moveTo(0,0),e.lineTo(-l,u/2),e.lineTo(-l,-u/2),e.closePath(),e.restore()),e.fillStrokeShape(this)}},t.Util.extend(t.Arrow,t.Line),t.Factory.addGetterSetter(t.Arrow,"pointerLength",10),t.Factory.addGetterSetter(t.Arrow,"pointerWidth",10),t.Factory.addGetterSetter(t.Arrow,"pointerAtBeginning",!1),t.Collection.mapMethods(t.Arrow)}(Konva)}).call(e,n(14))},,,,,,function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="http://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);y(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||N}function a(){}function o(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||N}function s(t,e,n){var r=void 0,i={},a=null,o=null;if(null!=e)for(r in void 0!==e.ref&&(o=e.ref),void 0!==e.key&&(a=""+e.key),e)D.call(e,r)&&!M.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];i.children=l}if(t&&t.defaultProps)for(r in s=t.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:x,type:t,key:a,ref:o,props:i,_owner:R.current}}function l(t){return"object"==typeof t&&null!==t&&t.$$typeof===x}function u(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,function(t){return e[t]})}function c(t,e,n,r){if(A.length){var i=A.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function f(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>A.length&&A.push(t)}function d(t,e,n,i){var a=typeof t;"undefined"!==a&&"boolean"!==a||(t=null);var o=!1;if(null===t)o=!0;else switch(a){case"string":case"number":o=!0;break;case"object":switch(t.$$typeof){case x:case S:o=!0}}if(o)return n(i,t,""===e?"."+h(t,0):e),1;if(o=0,e=""===e?".":e+":",Array.isArray(t))for(var s=0;s<t.length;s++){a=t[s];var l=e+h(a,s);o+=d(a,l,n,i)}else if(null===t||void 0===t?l=null:(l=E&&t[E]||t["@@iterator"],l="function"==typeof l?l:null),"function"==typeof l)for(t=l.call(t),s=0;!(a=t.next()).done;)a=a.value,l=e+h(a,s++),o+=d(a,l,n,i);else"object"===a&&(n=""+t,r("31","[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return o}function h(t,e){return"object"==typeof t&&null!==t&&null!=t.key?u(t.key):e.toString(36)}function p(t,e){t.func.call(t.context,e,t.count++)}function v(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?g(t,r,n,_.thatReturnsArgument):null!=t&&(l(t)&&(e=i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(O,"$&/")+"/")+n,t={$$typeof:x,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}),r.push(t))}function g(t,e,n,r,i){var a="";null!=n&&(a=(""+n).replace(O,"$&/")+"/"),e=c(e,a,r,i),null==t||d(t,"",v,e),f(e)}var m=n(10),y=n(8),b=n(9),_=n(15),C="function"==typeof Symbol&&Symbol.for,x=C?Symbol.for("react.element"):60103,S=C?Symbol.for("react.portal"):60106,w=C?Symbol.for("react.fragment"):60107,T=C?Symbol.for("react.strict_mode"):60108,k=C?Symbol.for("react.provider"):60109,P=C?Symbol.for("react.context"):60110,K=C?Symbol.for("react.async_mode"):60111,F=C?Symbol.for("react.forward_ref"):60112,E="function"==typeof Symbol&&Symbol.iterator,N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};i.prototype.isReactComponent={},i.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&r("85"),this.updater.enqueueSetState(this,t,e,"setState")},i.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},a.prototype=i.prototype;var I=o.prototype=new a;I.constructor=o,m(I,i.prototype),I.isPureReactComponent=!0;var R={current:null},D=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0},O=/\/+/g,A=[],U={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return g(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;e=c(null,null,e,n),null==t||d(t,"",p,e),f(e)},count:function(t){return null==t?0:d(t,"",_.thatReturnsNull,null)},toArray:function(t){var e=[];return g(t,e,null,_.thatReturnsArgument),e},only:function(t){return l(t)||r("143"),t}},createRef:function(){return{current:null}},Component:i,PureComponent:o,createContext:function(t,e){return void 0===e&&(e=null),t={$$typeof:P,_calculateChangedBits:e,_defaultValue:t,_currentValue:t,_changedBits:0,Provider:null,Consumer:null},t.Provider={$$typeof:k,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:F,render:t}},Fragment:w,StrictMode:T,unstable_AsyncMode:K,createElement:s,cloneElement:function(t,e,n){(null===t||void 0===t)&&r("267",t);var i=void 0,a=m({},t.props),o=t.key,s=t.ref,l=t._owner;if(null!=e){void 0!==e.ref&&(s=e.ref,l=R.current),void 0!==e.key&&(o=""+e.key);var u=void 0;t.type&&t.type.defaultProps&&(u=t.type.defaultProps);for(i in e)D.call(e,i)&&!M.hasOwnProperty(i)&&(a[i]=void 0===e[i]&&void 0!==u?u[i]:e[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){u=Array(i);for(var c=0;c<i;c++)u[c]=arguments[c+2];a.children=u}return{$$typeof:x,type:t.type,key:o,ref:s,props:a,_owner:l}},createFactory:function(t){var e=s.bind(null,t);return e.type=t,e},isValidElement:l,version:"16.3.2",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:R,assign:m}},L=Object.freeze({default:U}),G=L&&U||L;t.exports=G.default?G.default:G},function(t,e,n){"use strict";function r(t){for(var e=arguments.length-1,n="http://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);un(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function i(t,e,n,r,i,a,o,s,l){this._hasCaughtError=!1,this._caughtError=null;var u=Array.prototype.slice.call(arguments,3);try{e.apply(n,u)}catch(t){this._caughtError=t,this._hasCaughtError=!0}}function a(){if(yn._hasRethrowError){var t=yn._rethrowError;throw yn._rethrowError=null,yn._hasRethrowError=!1,t}}function o(){if(bn)for(var t in _n){var e=_n[t],n=bn.indexOf(t);if(-1<n||r("96",t),!Cn[n]){e.extractEvents||r("97",t),Cn[n]=e,n=e.eventTypes;for(var i in n){var a=void 0,o=n[i],l=e,u=i;xn.hasOwnProperty(u)&&r("99",u),xn[u]=o;var c=o.phasedRegistrationNames;if(c){for(a in c)c.hasOwnProperty(a)&&s(c[a],l,u);a=!0}else o.registrationName?(s(o.registrationName,l,u),a=!0):a=!1;a||r("98",i,t)}}}}function s(t,e,n){Sn[t]&&r("100",t),Sn[t]=e,wn[t]=e.eventTypes[n].dependencies}function l(t){bn&&r("101"),bn=Array.prototype.slice.call(t),o()}function u(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var i=t[e];_n.hasOwnProperty(e)&&_n[e]===i||(_n[e]&&r("102",e),_n[e]=i,n=!0)}n&&o()}function c(t,e,n,r){e=t.type||"unknown-event",t.currentTarget=Kn(r),yn.invokeGuardedCallbackAndCatchFirstError(e,n,void 0,t),t.currentTarget=null}function f(t,e){return null==e&&r("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function d(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}function h(t,e){if(t){var n=t._dispatchListeners,r=t._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!t.isPropagationStopped();i++)c(t,e,n[i],r[i]);else n&&c(t,e,n,r);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}function p(t){return h(t,!0)}function v(t){return h(t,!1)}function g(t,e){var n=t.stateNode;if(!n)return null;var i=kn(n);if(!i)return null;n=i[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(i=!i.disabled)||(t=t.type,i=!("button"===t||"input"===t||"select"===t||"textarea"===t)),t=!i;break t;default:t=!1}return t?null:(n&&"function"!=typeof n&&r("231",e,typeof n),n)}function m(t,e){null!==t&&(Fn=f(Fn,t)),t=Fn,Fn=null,t&&(e?d(t,p):d(t,v),Fn&&r("95"),yn.rethrowCaughtError())}function y(t,e,n,r){for(var i=null,a=0;a<Cn.length;a++){var o=Cn[a];o&&(o=o.extractEvents(t,e,n,r))&&(i=f(i,o))}m(i,!1)}function b(t){if(t[Rn])return t[Rn];for(;!t[Rn];){if(!t.parentNode)return null;t=t.parentNode}return t=t[Rn],5===t.tag||6===t.tag?t:null}function _(t){if(5===t.tag||6===t.tag)return t.stateNode;r("33")}function C(t){return t[Dn]||null}function x(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function S(t,e,n){for(var r=[];t;)r.push(t),t=x(t);for(t=r.length;0<t--;)e(r[t],"captured",n);for(t=0;t<r.length;t++)e(r[t],"bubbled",n)}function w(t,e,n){(e=g(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=f(n._dispatchListeners,e),n._dispatchInstances=f(n._dispatchInstances,t))}function T(t){t&&t.dispatchConfig.phasedRegistrationNames&&S(t._targetInst,w,t)}function k(t){if(t&&t.dispatchConfig.phasedRegistrationNames){var e=t._targetInst;e=e?x(e):null,S(e,w,t)}}function P(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=g(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=f(n._dispatchListeners,e),n._dispatchInstances=f(n._dispatchInstances,t))}function K(t){t&&t.dispatchConfig.registrationName&&P(t._targetInst,null,t)}function F(t){d(t,T)}function E(t,e,n,r){if(n&&r)t:{for(var i=n,a=r,o=0,s=i;s;s=x(s))o++;s=0;for(var l=a;l;l=x(l))s++;for(;0<o-s;)i=x(i),o--;for(;0<s-o;)a=x(a),s--;for(;o--;){if(i===a||i===a.alternate)break t;i=x(i),a=x(a)}i=null}else i=null;for(a=i,i=[];n&&n!==a&&(null===(o=n.alternate)||o!==a);)i.push(n),n=x(n);for(n=[];r&&r!==a&&(null===(o=r.alternate)||o!==a);)n.push(r),r=x(r);for(r=0;r<i.length;r++)P(i[r],"bubbled",t);for(t=n.length;0<t--;)P(n[t],"captured",e)}function N(){return!An&&fn.canUseDOM&&(An="textContent"in document.documentElement?"textContent":"innerText"),An}function I(){if(Un._fallbackText)return Un._fallbackText;var t,e,n=Un._startText,r=n.length,i=R(),a=i.length;for(t=0;t<r&&n[t]===i[t];t++);var o=r-t;for(e=1;e<=o&&n[r-e]===i[a-e];e++);return Un._fallbackText=i.slice(t,1<e?1-e:void 0),Un._fallbackText}function R(){return"value"in Un._root?Un._root.value:Un._root[N()]}function D(t,e,n,r){this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface;for(var i in t)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?hn.thatReturnsTrue:hn.thatReturnsFalse,this.isPropagationStopped=hn.thatReturnsFalse,this}function M(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function O(t){t instanceof this||r("223"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function A(t){t.eventPool=[],t.getPooled=M,t.release=O}function U(t,e){switch(t){case"topKeyUp":return-1!==Hn.indexOf(e.keyCode);case"topKeyDown":return 229!==e.keyCode;case"topKeyPress":case"topMouseDown":case"topBlur":return!0;default:return!1}}function L(t){return t=t.detail,"object"==typeof t&&"data"in t?t.data:null}function G(t,e){switch(t){case"topCompositionEnd":return L(e);case"topKeyPress":return 32!==e.which?null:(Xn=!0,Qn);case"topTextInput":return t=e.data,t===Qn&&Xn?null:t;default:return null}}function z(t,e){if($n)return"topCompositionEnd"===t||!jn&&U(t,e)?(t=I(),Un._root=null,Un._startText=null,Un._fallbackText=null,$n=!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&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"topCompositionEnd":return qn?null:e.data;default:return null}}function B(t){if(t=Pn(t)){Zn&&"function"==typeof Zn.restoreControlledState||r("194");var e=kn(t.stateNode);Zn.restoreControlledState(t.stateNode,t.type,e)}}function H(t){er?nr?nr.push(t):nr=[t]:er=t}function j(){return null!==er||null!==nr}function W(){if(er){var t=er,e=nr;if(nr=er=null,B(t),e)for(t=0;t<e.length;t++)B(e[t])}}function V(t,e){return t(e)}function q(t,e,n){return t(e,n)}function Q(){}function Y(t,e){if(ir)return t(e);ir=!0;try{return V(t,e)}finally{ir=!1,j()&&(Q(),W())}}function X(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!ar[t.type]:"textarea"===e}function $(t){return t=t.target||window,t.correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function J(t,e){return!(!fn.canUseDOM||e&&!("addEventListener"in document))&&(t="on"+t,e=t in document,e||(e=document.createElement("div"),e.setAttribute(t,"return;"),e="function"==typeof e[t]),e)}function Z(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function tt(t){var e=Z(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&"function"==typeof n.get&&"function"==typeof n.set)return Object.defineProperty(t,e,{configurable:!0,get:function(){return n.get.call(this)},set:function(t){r=""+t,n.set.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}function et(t){t._valueTracker||(t._valueTracker=tt(t))}function nt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Z(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}function rt(t){return null===t||void 0===t?null:(t=yr&&t[yr]||t["@@iterator"],"function"==typeof t?t:null)}function it(t){if("function"==typeof(t=t.type))return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case dr:return"ReactFragment";case fr:return"ReactPortal";case ur:return"ReactCall";case cr:return"ReactReturn"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case mr:return t=t.render.displayName||t.render.name||"",""!==t?"ForwardRef("+t+")":"ForwardRef"}return null}function at(t){var e="";do{t:switch(t.tag){case 0:case 1:case 2:case 5:var n=t._debugOwner,r=t._debugSource,i=it(t),a=null;n&&(a=it(n)),n=r,i="\n in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":a?" (created by "+a+")":"");break t;default:i=""}e+=i,t=t.return}while(t);return e}function ot(t){return!!Cr.hasOwnProperty(t)||!_r.hasOwnProperty(t)&&(br.test(t)?Cr[t]=!0:(_r[t]=!0,!1))}function st(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}function lt(t,e,n,r){if(null===e||void 0===e||st(t,e,n,r))return!0;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function ut(t,e,n,r,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e}function ct(t){return t[1].toUpperCase()}function ft(t,e,n,r){var i=xr.hasOwnProperty(e)?xr[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(lt(e,n,i,r)&&(n=null),r||null===i?ot(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(i=i.type,n=3===i||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}function dt(t,e){var n=e.checked;return dn({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function ht(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=yt(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function pt(t,e){null!=(e=e.checked)&&ft(t,"checked",e,!1)}function vt(t,e){pt(t,e);var n=yt(e.value);null!=n&&("number"===e.type?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n)),e.hasOwnProperty("value")?mt(t,e.type,n):e.hasOwnProperty("defaultValue")&&mt(t,e.type,yt(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function gt(t,e){(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue"))&&(""===t.value&&(t.value=""+t._wrapperState.initialValue),t.defaultValue=""+t._wrapperState.initialValue),e=t.name,""!==e&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!t.defaultChecked,""!==e&&(t.name=e)}function mt(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}function yt(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function bt(t,e,n){return t=D.getPooled(wr.change,t,e,n),t.type="change",H(n),F(t),t}function _t(t){m(t,!1)}function Ct(t){if(nt(_(t)))return t}function xt(t,e){if("topChange"===t)return e}function St(){Tr&&(Tr.detachEvent("onpropertychange",wt),kr=Tr=null)}function wt(t){"value"===t.propertyName&&Ct(kr)&&(t=bt(kr,t,$(t)),Y(_t,t))}function Tt(t,e,n){"topFocus"===t?(St(),Tr=e,kr=n,Tr.attachEvent("onpropertychange",wt)):"topBlur"===t&&St()}function kt(t){if("topSelectionChange"===t||"topKeyUp"===t||"topKeyDown"===t)return Ct(kr)}function Pt(t,e){if("topClick"===t)return Ct(e)}function Kt(t,e){if("topInput"===t||"topChange"===t)return Ct(e)}function Ft(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=Er[t])&&!!e[t]}function Et(){return Ft}function Nt(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(e=e.return,0!=(2&e.effectTag))return 1}return 3===e.tag?2:3}function It(t){return!!(t=t._reactInternalFiber)&&2===Nt(t)}function Rt(t){2!==Nt(t)&&r("188")}function Dt(t){var e=t.alternate;if(!e)return e=Nt(t),3===e&&r("188"),1===e?null:t;for(var n=t,i=e;;){var a=n.return,o=a?a.alternate:null;if(!a||!o)break;if(a.child===o.child){for(var s=a.child;s;){if(s===n)return Rt(a),t;if(s===i)return Rt(a),e;s=s.sibling}r("188")}if(n.return!==i.return)n=a,i=o;else{s=!1;for(var l=a.child;l;){if(l===n){s=!0,n=a,i=o;break}if(l===i){s=!0,i=a,n=o;break}l=l.sibling}if(!s){for(l=o.child;l;){if(l===n){s=!0,n=o,i=a;break}if(l===i){s=!0,i=o,n=a;break}l=l.sibling}s||r("189")}}n.alternate!==i&&r("190")}return 3!==n.tag&&r("188"),n.stateNode.current===n?t:e}function Mt(t){if(!(t=Dt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function Ot(t){if(!(t=Dt(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child&&4!==e.tag)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function At(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}function Ut(t,e){var n=t[0].toUpperCase()+t.slice(1),r="on"+n;n="top"+n,e={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:e},jr[t]=e,Wr[n]=e}function Lt(t){var e=t.targetInst;do{if(!e){t.ancestors.push(e);break}var n;for(n=e;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;t.ancestors.push(e),e=b(n)}while(e);for(n=0;n<t.ancestors.length;n++)e=t.ancestors[n],y(t.topLevelType,e,t.nativeEvent,$(t.nativeEvent))}function Gt(t){Yr=!!t}function zt(t,e,n){if(!n)return null;t=(qr(t)?Ht:jt).bind(null,t),n.addEventListener(e,t,!1)}function Bt(t,e,n){if(!n)return null;t=(qr(t)?Ht:jt).bind(null,t),n.addEventListener(e,t,!0)}function Ht(t,e){q(jt,t,e)}function jt(t,e){if(Yr){var n=$(e);if(n=b(n),null!==n&&"number"==typeof n.tag&&2!==Nt(n)&&(n=null),Qr.length){var r=Qr.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{Y(Lt,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>Qr.length&&Qr.push(t)}}}function Wt(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 Vt(t){if(Jr[t])return Jr[t];if(!$r[t])return t;var e,n=$r[t];for(e in n)if(n.hasOwnProperty(e)&&e in Zr)return Jr[t]=n[e];return t}function qt(t){return Object.prototype.hasOwnProperty.call(t,ii)||(t[ii]=ri++,ni[t[ii]]={}),ni[t[ii]]}function Qt(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Yt(t,e){var n=Qt(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=Qt(n)}}function Xt(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&"text"===t.type||"textarea"===e||"true"===t.contentEditable)}function $t(t,e){if(ci||null==si||si!==pn())return null;var n=si;return"selectionStart"in n&&Xt(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,ui&&vn(ui,n)?null:(ui=n,t=D.getPooled(oi.select,li,t,e),t.type="select",t.target=si,F(t),t)}function Jt(t,e,n,r){this.tag=t,this.key=n,this.stateNode=this.type=null,this.sibling=this.child=this.return=null,this.index=0,this.ref=null,this.pendingProps=e,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Zt(t,e,n){var r=t.alternate;return null===r?(r=new Jt(t.tag,e,t.key,t.mode),r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,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 te(t,e,n){var i=t.type,a=t.key;t=t.props;var o=void 0;if("function"==typeof i)o=i.prototype&&i.prototype.isReactComponent?2:0;else if("string"==typeof i)o=5;else switch(i){case dr:return ee(t.children,e,n,a);case gr:o=11,e|=3;break;case hr:o=11,e|=2;break;case ur:o=7;break;case cr:o=9;break;default:if("object"==typeof i&&null!==i)switch(i.$$typeof){case pr:o=13;break;case vr:o=12;break;case mr:o=14;break;default:if("number"==typeof i.tag)return e=i,e.pendingProps=t,e.expirationTime=n,e;r("130",null==i?i:typeof i,"")}else r("130",null==i?i:typeof i,"")}return e=new Jt(o,t,a,e),e.type=i,e.expirationTime=n,e}function ee(t,e,n,r){return t=new Jt(10,t,r,e),t.expirationTime=n,t}function ne(t,e,n){return t=new Jt(6,t,null,e),t.expirationTime=n,t}function re(t,e,n){return e=new Jt(4,null!==t.children?t.children:[],t.key,e),e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function ie(t){return function(e){try{return t(e)}catch(t){}}}function ae(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);di=ie(function(t){return e.onCommitFiberRoot(n,t)}),hi=ie(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function oe(t){"function"==typeof di&&di(t)}function se(t){"function"==typeof hi&&hi(t)}function le(t){return{baseState:t,expirationTime:0,first:null,last:null,callbackList:null,hasForceUpdate:!1,isInitialized:!1,capturedValues:null}}function ue(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 ce(t){pi=vi=null;var e=t.alternate,n=t.updateQueue;null===n&&(n=t.updateQueue=le(null)),null!==e?null===(t=e.updateQueue)&&(t=e.updateQueue=le(null)):t=null,pi=n,vi=t!==n?t:null}function fe(t,e){ce(t),t=pi;var n=vi;null===n?ue(t,e):null===t.last||null===n.last?(ue(t,e),ue(n,e)):(ue(t,e),n.last=e)}function de(t,e,n,r){return t=t.partialState,"function"==typeof t?t.call(e,n,r):t}function he(t,e,n,r,i,a){null!==t&&t.updateQueue===n&&(n=e.updateQueue={baseState:n.baseState,expirationTime:n.expirationTime,first:n.first,last:n.last,isInitialized:n.isInitialized,capturedValues:n.capturedValues,callbackList:null,hasForceUpdate:!1}),n.expirationTime=0,n.isInitialized?t=n.baseState:(t=n.baseState=e.memoizedState,n.isInitialized=!0);for(var o=!0,s=n.first,l=!1;null!==s;){var u=s.expirationTime;if(u>a){var c=n.expirationTime;(0===c||c>u)&&(n.expirationTime=u),l||(l=!0,n.baseState=t)}else l||(n.first=s.next,null===n.first&&(n.last=null)),s.isReplace?(t=de(s,r,t,i),o=!0):(u=de(s,r,t,i))&&(t=o?dn({},t,u):dn(t,u),o=!1),s.isForced&&(n.hasForceUpdate=!0),null!==s.callback&&(u=n.callbackList,null===u&&(u=n.callbackList=[]),u.push(s)),null!==s.capturedValue&&(u=n.capturedValues,null===u?n.capturedValues=[s.capturedValue]:u.push(s.capturedValue));s=s.next}return null!==n.callbackList?e.effectTag|=32:null!==n.first||n.hasForceUpdate||null!==n.capturedValues||(e.updateQueue=null),l||(n.baseState=t),t}function pe(t,e){var n=t.callbackList;if(null!==n)for(t.callbackList=null,t=0;t<n.length;t++){var i=n[t],a=i.callback;i.callback=null,"function"!=typeof a&&r("191",a),a.call(e)}}function ve(t,e,n,r,i){function a(t,e,n,r,i,a){if(null===e||null!==t.updateQueue&&t.updateQueue.hasForceUpdate)return!0;var o=t.stateNode;return t=t.type,"function"==typeof o.shouldComponentUpdate?o.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!vn(e,n)||!vn(r,i))}function o(t,e){e.updater=p,t.stateNode=e,e._reactInternalFiber=t}function s(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&p.enqueueReplaceState(e,e.state,null)}function l(t,e,n,r){if(t=t.type,"function"==typeof t.getDerivedStateFromProps)return t.getDerivedStateFromProps.call(null,n,r)}var u=t.cacheContext,c=t.getMaskedContext,f=t.getUnmaskedContext,d=t.isContextConsumer,h=t.hasContextChanged,p={isMounted:It,enqueueSetState:function(t,r,i){t=t._reactInternalFiber,i=void 0===i?null:i;var a=n(t);fe(t,{expirationTime:a,partialState:r,callback:i,isReplace:!1,isForced:!1,capturedValue:null,next:null}),e(t,a)},enqueueReplaceState:function(t,r,i){t=t._reactInternalFiber,i=void 0===i?null:i;var a=n(t);fe(t,{expirationTime:a,partialState:r,callback:i,isReplace:!0,isForced:!1,capturedValue:null,next:null}),e(t,a)},enqueueForceUpdate:function(t,r){t=t._reactInternalFiber,r=void 0===r?null:r;var i=n(t);fe(t,{expirationTime:i,partialState:null,callback:r,isReplace:!1,isForced:!0,capturedValue:null,next:null}),e(t,i)}};return{adoptClassInstance:o,callGetDerivedStateFromProps:l,constructClassInstance:function(t,e){var n=t.type,r=f(t),i=d(t),a=i?c(t,r):mn;n=new n(e,a);var s=null!==n.state&&void 0!==n.state?n.state:null;return o(t,n),t.memoizedState=s,e=l(t,n,e,s),null!==e&&void 0!==e&&(t.memoizedState=dn({},t.memoizedState,e)),i&&u(t,r,a),n},mountClassInstance:function(t,e){var n=t.type,r=t.alternate,i=t.stateNode,a=t.pendingProps,o=f(t);i.props=a,i.state=t.memoizedState,i.refs=mn,i.context=c(t,o),"function"==typeof n.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(n=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),n!==i.state&&p.enqueueReplaceState(i,i.state,null),null!==(n=t.updateQueue)&&(i.state=he(r,t,n,i,a,e))),"function"==typeof i.componentDidMount&&(t.effectTag|=4)},resumeMountClassInstance:function(t,e){var n=t.type,o=t.stateNode;o.props=t.memoizedProps,o.state=t.memoizedState;var u=t.memoizedProps,d=t.pendingProps,p=o.context,v=f(t);v=c(t,v),(n="function"==typeof n.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate)||"function"!=typeof o.UNSAFE_componentWillReceiveProps&&"function"!=typeof o.componentWillReceiveProps||(u!==d||p!==v)&&s(t,o,d,v),p=t.memoizedState,e=null!==t.updateQueue?he(null,t,t.updateQueue,o,d,e):p;var g=void 0;if(u!==d&&(g=l(t,o,d,e)),null!==g&&void 0!==g){e=null===e||void 0===e?g:dn({},e,g);var m=t.updateQueue;null!==m&&(m.baseState=dn({},m.baseState,g))}return u!==d||p!==e||h()||null!==t.updateQueue&&t.updateQueue.hasForceUpdate?((u=a(t,u,d,p,e,v))?(n||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||("function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount()),"function"==typeof o.componentDidMount&&(t.effectTag|=4)):("function"==typeof o.componentDidMount&&(t.effectTag|=4),r(t,d),i(t,e)),o.props=d,o.state=e,o.context=v,u):("function"==typeof o.componentDidMount&&(t.effectTag|=4),!1)},updateClassInstance:function(t,e,n){var o=e.type,u=e.stateNode;u.props=e.memoizedProps,u.state=e.memoizedState;var d=e.memoizedProps,p=e.pendingProps,v=u.context,g=f(e);g=c(e,g),(o="function"==typeof o.getDerivedStateFromProps||"function"==typeof u.getSnapshotBeforeUpdate)||"function"!=typeof u.UNSAFE_componentWillReceiveProps&&"function"!=typeof u.componentWillReceiveProps||(d!==p||v!==g)&&s(e,u,p,g),v=e.memoizedState,n=null!==e.updateQueue?he(t,e,e.updateQueue,u,p,n):v;var m=void 0;if(d!==p&&(m=l(e,u,p,n)),null!==m&&void 0!==m){n=null===n||void 0===n?m:dn({},n,m);var y=e.updateQueue;null!==y&&(y.baseState=dn({},y.baseState,m))}return d!==p||v!==n||h()||null!==e.updateQueue&&e.updateQueue.hasForceUpdate?((m=a(e,d,p,v,n,g))?(o||"function"!=typeof u.UNSAFE_componentWillUpdate&&"function"!=typeof u.componentWillUpdate||("function"==typeof u.componentWillUpdate&&u.componentWillUpdate(p,n,g),"function"==typeof u.UNSAFE_componentWillUpdate&&u.UNSAFE_componentWillUpdate(p,n,g)),"function"==typeof u.componentDidUpdate&&(e.effectTag|=4),"function"==typeof u.getSnapshotBeforeUpdate&&(e.effectTag|=2048)):("function"!=typeof u.componentDidUpdate||d===t.memoizedProps&&v===t.memoizedState||(e.effectTag|=4),"function"!=typeof u.getSnapshotBeforeUpdate||d===t.memoizedProps&&v===t.memoizedState||(e.effectTag|=2048),r(e,p),i(e,n)),u.props=p,u.state=n,u.context=g,m):("function"!=typeof u.componentDidUpdate||d===t.memoizedProps&&v===t.memoizedState||(e.effectTag|=4),"function"!=typeof u.getSnapshotBeforeUpdate||d===t.memoizedProps&&v===t.memoizedState||(e.effectTag|=2048),!1)}}}function ge(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var i=void 0;n&&(2!==n.tag&&r("110"),i=n.stateNode),i||r("147",t);var a=""+t;return null!==e&&null!==e.ref&&e.ref._stringRef===a?e.ref:(e=function(t){var e=i.refs===mn?i.refs={}:i.refs;null===t?delete e[a]:e[a]=t},e._stringRef=a,e)}"string"!=typeof t&&r("148"),n._owner||r("254",t)}return t}function me(t,e){"textarea"!==t.type&&r("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function ye(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function i(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function a(t,e,n){return t=Zt(t,e,n),t.index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index,r<n?(e.effectTag=2,n):r):(e.effectTag=2,n):n}function s(e){return t&&null===e.alternate&&(e.effectTag=2),e}function l(t,e,n,r){return null===e||6!==e.tag?(e=ne(n,t.mode,r),e.return=t,e):(e=a(e,n,r),e.return=t,e)}function u(t,e,n,r){return null!==e&&e.type===n.type?(r=a(e,n.props,r),r.ref=ge(t,e,n),r.return=t,r):(r=te(n,t.mode,r),r.ref=ge(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?(e=re(n,t.mode,r),e.return=t,e):(e=a(e,n.children||[],r),e.return=t,e)}function f(t,e,n,r,i){return null===e||10!==e.tag?(e=ee(n,t.mode,r,i),e.return=t,e):(e=a(e,n,r),e.return=t,e)}function d(t,e,n){if("string"==typeof e||"number"==typeof e)return e=ne(""+e,t.mode,n),e.return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case lr:return n=te(e,t.mode,n),n.ref=ge(t,null,e),n.return=t,n;case fr:return e=re(e,t.mode,n),e.return=t,e}if(gi(e)||rt(e))return e=ee(e,t.mode,n,null),e.return=t,e;me(t,e)}return null}function h(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:l(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case lr:return n.key===i?n.type===dr?f(t,e,n.props.children,r,i):u(t,e,n,r):null;case fr:return n.key===i?c(t,e,n,r):null}if(gi(n)||rt(n))return null!==i?null:f(t,e,n,r,null);me(t,n)}return null}function p(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return t=t.get(n)||null,l(e,t,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case lr:return t=t.get(null===r.key?n:r.key)||null,r.type===dr?f(e,t,r.props.children,i,r.key):u(e,t,r,i);case fr:return t=t.get(null===r.key?n:r.key)||null,c(e,t,r,i)}if(gi(r)||rt(r))return t=t.get(n)||null,f(e,t,r,i,null);me(e,r)}return null}function v(r,a,s,l){for(var u=null,c=null,f=a,v=a=0,g=null;null!==f&&v<s.length;v++){f.index>v?(g=f,f=null):g=f.sibling;var m=h(r,f,s[v],l);if(null===m){null===f&&(f=g);break}t&&f&&null===m.alternate&&e(r,f),a=o(m,a,v),null===c?u=m:c.sibling=m,c=m,f=g}if(v===s.length)return n(r,f),u;if(null===f){for(;v<s.length;v++)(f=d(r,s[v],l))&&(a=o(f,a,v),null===c?u=f:c.sibling=f,c=f);return u}for(f=i(r,f);v<s.length;v++)(g=p(f,r,v,s[v],l))&&(t&&null!==g.alternate&&f.delete(null===g.key?v:g.key),a=o(g,a,v),null===c?u=g:c.sibling=g,c=g);return t&&f.forEach(function(t){return e(r,t)}),u}function g(a,s,l,u){var c=rt(l);"function"!=typeof c&&r("150"),null==(l=c.call(l))&&r("151");for(var f=c=null,v=s,g=s=0,m=null,y=l.next();null!==v&&!y.done;g++,y=l.next()){v.index>g?(m=v,v=null):m=v.sibling;var b=h(a,v,y.value,u);if(null===b){v||(v=m);break}t&&v&&null===b.alternate&&e(a,v),s=o(b,s,g),null===f?c=b:f.sibling=b,f=b,v=m}if(y.done)return n(a,v),c;if(null===v){for(;!y.done;g++,y=l.next())null!==(y=d(a,y.value,u))&&(s=o(y,s,g),null===f?c=y:f.sibling=y,f=y);return c}for(v=i(a,v);!y.done;g++,y=l.next())null!==(y=p(v,a,g,y.value,u))&&(t&&null!==y.alternate&&v.delete(null===y.key?g:y.key),s=o(y,s,g),null===f?c=y:f.sibling=y,f=y);return t&&v.forEach(function(t){return e(a,t)}),c}return function(t,i,o,l){"object"==typeof o&&null!==o&&o.type===dr&&null===o.key&&(o=o.props.children);var u="object"==typeof o&&null!==o;if(u)switch(o.$$typeof){case lr:t:{var c=o.key;for(u=i;null!==u;){if(u.key===c){if(10===u.tag?o.type===dr:u.type===o.type){n(t,u.sibling),i=a(u,o.type===dr?o.props.children:o.props,l),i.ref=ge(t,u,o),i.return=t,t=i;break t}n(t,u);break}e(t,u),u=u.sibling}o.type===dr?(i=ee(o.props.children,t.mode,l,o.key),i.return=t,t=i):(l=te(o,t.mode,l),l.ref=ge(t,i,o),l.return=t,t=l)}return s(t);case fr:t:{for(u=o.key;null!==i;){if(i.key===u){if(4===i.tag&&i.stateNode.containerInfo===o.containerInfo&&i.stateNode.implementation===o.implementation){n(t,i.sibling),i=a(i,o.children||[],l),i.return=t,t=i;break t}n(t,i);break}e(t,i),i=i.sibling}i=re(o,t.mode,l),i.return=t,t=i}return s(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==i&&6===i.tag?(n(t,i.sibling),i=a(i,o,l),i.return=t,t=i):(n(t,i),i=ne(o,t.mode,l),i.return=t,t=i),s(t);if(gi(o))return v(t,i,o,l);if(rt(o))return g(t,i,o,l);if(u&&me(t,o),void 0===o)switch(t.tag){case 2:case 1:l=t.type,r("152",l.displayName||l.name||"Component")}return n(t,i)}}function be(t,e,n,i,a,o,s){function l(t,e,n){u(t,e,n,e.expirationTime)}function u(t,e,n,r){e.child=null===t?yi(e,null,n,r):mi(e,t.child,n,r)}function c(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function f(t,e,n,r,i,a){if(c(t,e),!n&&!i)return r&&k(e,!1),v(t,e);n=e.stateNode,or.current=e;var o=i?null:n.render();return e.effectTag|=1,i&&(u(t,e,null,a),e.child=null),u(t,e,o,a),e.memoizedState=n.state,e.memoizedProps=n.props,r&&k(e,!0),e.child}function d(t){var e=t.stateNode;e.pendingContext?T(t,e.pendingContext,e.pendingContext!==e.context):e.context&&T(t,e.context,!1),b(t,e.containerInfo)}function h(t,e,n,r){var i=t.child;for(null!==i&&(i.return=t);null!==i;){switch(i.tag){case 12:var a=0|i.stateNode;if(i.type===e&&0!=(a&n)){for(a=i;null!==a;){var o=a.alternate;if(0===a.expirationTime||a.expirationTime>r)a.expirationTime=r,null!==o&&(0===o.expirationTime||o.expirationTime>r)&&(o.expirationTime=r);else{if(null===o||!(0===o.expirationTime||o.expirationTime>r))break;o.expirationTime=r}a=a.return}a=null}else a=i.child;break;case 13:a=i.type===t.type?null:i.child;break;default:a=i.child}if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){a=i;break}a=a.return}i=a}}function p(t,e,n){var r=e.type._context,i=e.pendingProps,a=e.memoizedProps;if(!S()&&a===i)return e.stateNode=0,_(e),v(t,e);var o=i.value;if(e.memoizedProps=i,null===a)o=1073741823;else if(a.value===i.value){if(a.children===i.children)return e.stateNode=0,_(e),v(t,e);o=0}else{var s=a.value;if(s===o&&(0!==s||1/s==1/o)||s!==s&&o!==o){if(a.children===i.children)return e.stateNode=0,_(e),v(t,e);o=0}else if(o="function"==typeof r._calculateChangedBits?r._calculateChangedBits(s,o):1073741823,0===(o|=0)){if(a.children===i.children)return e.stateNode=0,_(e),v(t,e)}else h(e,r,o,n)}return e.stateNode=o,_(e),l(t,e,i.children),e.child}function v(t,e){if(null!==t&&e.child!==t.child&&r("153"),null!==e.child){t=e.child;var n=Zt(t,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=Zt(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}var g=t.shouldSetTextContent,m=t.shouldDeprioritizeSubtree,y=e.pushHostContext,b=e.pushHostContainer,_=i.pushProvider,C=n.getMaskedContext,x=n.getUnmaskedContext,S=n.hasContextChanged,w=n.pushContextProvider,T=n.pushTopLevelContextObject,k=n.invalidateContextProvider,P=a.enterHydrationState,K=a.resetHydrationState,F=a.tryToClaimNextHydratableInstance;t=ve(n,o,s,function(t,e){t.memoizedProps=e},function(t,e){t.memoizedState=e});var E=t.adoptClassInstance,N=t.callGetDerivedStateFromProps,I=t.constructClassInstance,R=t.mountClassInstance,D=t.resumeMountClassInstance,M=t.updateClassInstance;return{beginWork:function(t,e,n){if(0===e.expirationTime||e.expirationTime>n){switch(e.tag){case 3:d(e);break;case 2:w(e);break;case 4:b(e,e.stateNode.containerInfo);break;case 13:_(e)}return null}switch(e.tag){case 0:null!==t&&r("155");var i=e.type,a=e.pendingProps,o=x(e);return o=C(e,o),i=i(a,o),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof?(o=e.type,e.tag=2,e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,"function"==typeof o.getDerivedStateFromProps&&null!==(a=N(e,i,a,e.memoizedState))&&void 0!==a&&(e.memoizedState=dn({},e.memoizedState,a)),a=w(e),E(e,i),R(e,n),t=f(t,e,!0,a,!1,n)):(e.tag=1,l(t,e,i),e.memoizedProps=a,t=e.child),t;case 1:return a=e.type,n=e.pendingProps,S()||e.memoizedProps!==n?(i=x(e),i=C(e,i),a=a(n,i),e.effectTag|=1,l(t,e,a),e.memoizedProps=n,t=e.child):t=v(t,e),t;case 2:a=w(e),null===t?null===e.stateNode?(I(e,e.pendingProps),R(e,n),i=!0):i=D(e,n):i=M(t,e,n),o=!1;var s=e.updateQueue;return null!==s&&null!==s.capturedValues&&(o=i=!0),f(t,e,i,a,o,n);case 3:t:if(d(e),null!==(i=e.updateQueue)){if(o=e.memoizedState,a=he(t,e,i,null,null,n),e.memoizedState=a,null!==(i=e.updateQueue)&&null!==i.capturedValues)i=null;else{if(o===a){K(),t=v(t,e);break t}i=a.element}o=e.stateNode,(null===t||null===t.child)&&o.hydrate&&P(e)?(e.effectTag|=2,e.child=yi(e,null,i,n)):(K(),l(t,e,i)),e.memoizedState=a,t=e.child}else K(),t=v(t,e);return t;case 5:return y(e),null===t&&F(e),a=e.type,s=e.memoizedProps,i=e.pendingProps,o=null!==t?t.memoizedProps:null,S()||s!==i||((s=1&e.mode&&m(a,i))&&(e.expirationTime=1073741823),s&&1073741823===n)?(s=i.children,g(a,i)?s=null:o&&g(a,o)&&(e.effectTag|=16),c(t,e),1073741823!==n&&1&e.mode&&m(a,i)?(e.expirationTime=1073741823,e.memoizedProps=i,t=null):(l(t,e,s),e.memoizedProps=i,t=e.child)):t=v(t,e),t;case 6:return null===t&&F(e),e.memoizedProps=e.pendingProps,null;case 8:e.tag=7;case 7:return a=e.pendingProps,S()||e.memoizedProps!==a||(a=e.memoizedProps),i=a.children,e.stateNode=null===t?yi(e,e.stateNode,i,n):mi(e,t.stateNode,i,n),e.memoizedProps=a,e.stateNode;case 9:return null;case 4:return b(e,e.stateNode.containerInfo),a=e.pendingProps,S()||e.memoizedProps!==a?(null===t?e.child=mi(e,null,a,n):l(t,e,a),e.memoizedProps=a,t=e.child):t=v(t,e),t;case 14:return n=e.type.render,n=n(e.pendingProps,e.ref),l(t,e,n),e.memoizedProps=n,e.child;case 10:return n=e.pendingProps,S()||e.memoizedProps!==n?(l(t,e,n),e.memoizedProps=n,t=e.child):t=v(t,e),t;case 11:return n=e.pendingProps.children,S()||null!==n&&e.memoizedProps!==n?(l(t,e,n),e.memoizedProps=n,t=e.child):t=v(t,e),t;case 13:return p(t,e,n);case 12:t:{i=e.type,o=e.pendingProps,s=e.memoizedProps,a=i._currentValue;var u=i._changedBits;if(S()||0!==u||s!==o){e.memoizedProps=o;var T=o.unstable_observedBits;if(void 0!==T&&null!==T||(T=1073741823),e.stateNode=T,0!=(u&T))h(e,i,u,n);else if(s===o){t=v(t,e);break t}n=o.children,n=n(a),l(t,e,n),t=e.child}else t=v(t,e)}return t;default:r("156")}}}}function _e(t,e,n,i,a){function o(t){t.effectTag|=4}var s=t.createInstance,l=t.createTextInstance,u=t.appendInitialChild,c=t.finalizeInitialChildren,f=t.prepareUpdate,d=t.persistence,h=e.getRootHostContainer,p=e.popHostContext,v=e.getHostContext,g=e.popHostContainer,m=n.popContextProvider,y=n.popTopLevelContextObject,b=i.popProvider,_=a.prepareToHydrateHostInstance,C=a.prepareToHydrateHostTextInstance,x=a.popHydrationState,S=void 0,w=void 0,T=void 0;return t.mutation?(S=function(){},w=function(t,e,n){(e.updateQueue=n)&&o(e)},T=function(t,e,n,r){n!==r&&o(e)}):r(d?"235":"236"),{completeWork:function(t,e,n){var i=e.pendingProps;switch(e.tag){case 1:return null;case 2:return m(e),t=e.stateNode,i=e.updateQueue,null!==i&&null!==i.capturedValues&&(e.effectTag&=-65,"function"==typeof t.componentDidCatch?e.effectTag|=256:i.capturedValues=null),null;case 3:return g(e),y(e),i=e.stateNode,i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),null!==t&&null!==t.child||(x(e),e.effectTag&=-3),S(e),t=e.updateQueue,null!==t&&null!==t.capturedValues&&(e.effectTag|=256),null;case 5:p(e),n=h();var a=e.type;if(null!==t&&null!=e.stateNode){var d=t.memoizedProps,k=e.stateNode,P=v();k=f(k,a,d,i,n,P),w(t,e,k,a,d,i,n,P),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!i)return null===e.stateNode&&r("166"),null;if(t=v(),x(e))_(e,n,t)&&o(e);else{d=s(a,i,n,t,e);t:for(P=e.child;null!==P;){if(5===P.tag||6===P.tag)u(d,P.stateNode);else if(4!==P.tag&&null!==P.child){P.child.return=P,P=P.child;continue}if(P===e)break;for(;null===P.sibling;){if(null===P.return||P.return===e)break t;P=P.return}P.sibling.return=P.return,P=P.sibling}c(d,a,i,n,t)&&o(e),e.stateNode=d}null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)T(t,e,t.memoizedProps,i);else{if("string"!=typeof i)return null===e.stateNode&&r("166"),null;t=h(),n=v(),x(e)?C(e)&&o(e):e.stateNode=l(i,t,n,e)}return null;case 7:(i=e.memoizedProps)||r("165"),e.tag=8,a=[];t:for((d=e.stateNode)&&(d.return=e);null!==d;){if(5===d.tag||6===d.tag||4===d.tag)r("247");else if(9===d.tag)a.push(d.pendingProps.value);else if(null!==d.child){d.child.return=d,d=d.child;continue}for(;null===d.sibling;){if(null===d.return||d.return===e)break t;d=d.return}d.sibling.return=d.return,d=d.sibling}return d=i.handler,i=d(i.props,a),e.child=mi(e,null!==t?t.child:null,i,n),e.child;case 8:return e.tag=7,null;case 9:case 14:case 10:case 11:return null;case 4:return g(e),S(e),null;case 13:return b(e),null;case 12:return null;case 0:r("167");default:r("156")}}}}function Ce(t,e,n,r,i){var a=t.popHostContainer,o=t.popHostContext,s=e.popContextProvider,l=e.popTopLevelContextObject,u=n.popProvider;return{throwException:function(t,e,n){e.effectTag|=512,e.firstEffect=e.lastEffect=null,e={value:n,source:e,stack:at(e)};do{switch(t.tag){case 3:return ce(t),t.updateQueue.capturedValues=[e],void(t.effectTag|=1024);case 2:if(n=t.stateNode,0==(64&t.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&!i(n)){ce(t),n=t.updateQueue;var r=n.capturedValues;return null===r?n.capturedValues=[e]:r.push(e),void(t.effectTag|=1024)}}t=t.return}while(null!==t)},unwindWork:function(t){switch(t.tag){case 2:s(t);var e=t.effectTag;return 1024&e?(t.effectTag=-1025&e|64,t):null;case 3:return a(t),l(t),e=t.effectTag,1024&e?(t.effectTag=-1025&e|64,t):null;case 5:return o(t),null;case 4:return a(t),null;case 13:return u(t),null;default:return null}},unwindInterruptedWork:function(t){switch(t.tag){case 2:s(t);break;case 3:a(t),l(t);break;case 5:o(t);break;case 4:a(t);break;case 13:u(t)}}}}function xe(t,e){var n=e.source;null===e.stack&&at(n),null!==n&&it(n),e=e.value,null!==t&&2===t.tag&&it(t);try{e&&e.suppressReactErrorLogging||console.error(e)}catch(t){t&&t.suppressReactErrorLogging||console.error(t)}}function Se(t,e,n,i,a){function o(t){var n=t.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){e(t,n)}else n.current=null}function s(t){switch("function"==typeof se&&se(t),t.tag){case 2:o(t);var n=t.stateNode;if("function"==typeof n.componentWillUnmount)try{n.props=t.memoizedProps,n.state=t.memoizedState,n.componentWillUnmount()}catch(n){e(t,n)}break;case 5:o(t);break;case 7:l(t.stateNode);break;case 4:d&&c(t)}}function l(t){for(var e=t;;)if(s(e),null===e.child||d&&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 u(t){return 5===t.tag||3===t.tag||4===t.tag}function c(t){for(var e=t,n=!1,i=void 0,a=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&r("160"),n.tag){case 5:i=n.stateNode,a=!1;break t;case 3:case 4:i=n.stateNode.containerInfo,a=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag)l(e),a?x(i,e.stateNode):C(i,e.stateNode);else if(4===e.tag?i=e.stateNode.containerInfo:s(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;e=e.return,4===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}var f=t.getPublicInstance,d=t.mutation;t=t.persistence,d||r(t?"235":"236");var h=d.commitMount,p=d.commitUpdate,v=d.resetTextContent,g=d.commitTextUpdate,m=d.appendChild,y=d.appendChildToContainer,b=d.insertBefore,_=d.insertInContainerBefore,C=d.removeChild,x=d.removeChildFromContainer;return{commitBeforeMutationLifeCycles:function(t,e){switch(e.tag){case 2:if(2048&e.effectTag&&null!==t){var n=t.memoizedProps,i=t.memoizedState;t=e.stateNode,t.props=e.memoizedProps,t.state=e.memoizedState,e=t.getSnapshotBeforeUpdate(n,i),t.__reactInternalSnapshotBeforeUpdate=e}break;case 3:case 5:case 6:case 4:break;default:r("163")}},commitResetTextContent:function(t){v(t.stateNode)},commitPlacement:function(t){t:{for(var e=t.return;null!==e;){if(u(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&&(v(e),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||u(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 a=t;;){if(5===a.tag||6===a.tag)n?i?_(e,a.stateNode,n):b(e,a.stateNode,n):i?y(e,a.stateNode):m(e,a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}},commitDeletion:function(t){c(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 a=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&p(n,o,a,t,i,e)}break;case 6:null===e.stateNode&&r("162"),n=e.memoizedProps,g(e.stateNode,null!==t?t.memoizedProps:n,n);break;case 3:break;default:r("163")}},commitLifeCycles:function(t,e,n){switch(n.tag){case 2:if(t=n.stateNode,4&n.effectTag)if(null===e)t.props=n.memoizedProps,t.state=n.memoizedState,t.componentDidMount();else{var i=e.memoizedProps;e=e.memoizedState,t.props=n.memoizedProps,t.state=n.memoizedState,t.componentDidUpdate(i,e,t.__reactInternalSnapshotBeforeUpdate)}n=n.updateQueue,null!==n&&pe(n,t);break;case 3:if(null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 5:t=f(n.child.stateNode);break;case 2:t=n.child.stateNode}pe(e,t)}break;case 5:t=n.stateNode,null===e&&4&n.effectTag&&h(t,n.type,n.memoizedProps,n);break;case 6:case 4:break;default:r("163")}},commitErrorLogging:function(t,e){switch(t.tag){case 2:var n=t.type;e=t.stateNode;var i=t.updateQueue;(null===i||null===i.capturedValues)&&r("264");var o=i.capturedValues;for(i.capturedValues=null,"function"!=typeof n.getDerivedStateFromCatch&&a(e),e.props=t.memoizedProps,e.state=t.memoizedState,n=0;n<o.length;n++){i=o[n];var s=i.value,l=i.stack;xe(t,i),e.componentDidCatch(s,{componentStack:null!==l?l:""})}break;case 3:for(n=t.updateQueue,(null===n||null===n.capturedValues)&&r("264"),o=n.capturedValues,n.capturedValues=null,n=0;n<o.length;n++)i=o[n],xe(t,i),e(i.value);break;default:r("265")}},commitAttachRef:function(t){var e=t.ref;if(null!==e){var n=t.stateNode;switch(t.tag){case 5:t=f(n);break;default:t=n}"function"==typeof e?e(t):e.current=t}},commitDetachRef:function(t){null!==(t=t.ref)&&("function"==typeof t?t(null):t.current=null)}}}function we(t,e){function n(t){return t===bi&&r("174"),t}var i=t.getChildHostContext,a=t.getRootHostContext;t=e.createCursor;var o=e.push,s=e.pop,l=t(bi),u=t(bi),c=t(bi);return{getHostContext:function(){return n(l.current)},getRootHostContainer:function(){return n(c.current)},popHostContainer:function(t){s(l,t),s(u,t),s(c,t)},popHostContext:function(t){u.current===t&&(s(l,t),s(u,t))},pushHostContainer:function(t,e){o(c,e,t),o(u,t,t),o(l,bi,t),e=a(e),s(l,t),o(l,e,t)},pushHostContext:function(t){var e=n(c.current),r=n(l.current);e=i(r,t.type,e),r!==e&&(o(u,t,t),o(l,e,t))}}}function Te(t){function e(t,e){var n=new Jt(5,null,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=o(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;d=t}var a=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 o=t.canHydrateInstance,s=t.canHydrateTextInstance,l=t.getNextHydratableSibling,u=t.getFirstHydratableChild,c=t.hydrateInstance,f=t.hydrateTextInstance,d=null,h=null,p=!1;return{enterHydrationState:function(t){return h=u(t.stateNode.containerInfo),d=t,p=!0},resetHydrationState:function(){h=d=null,p=!1},tryToClaimNextHydratableInstance:function(t){if(p){var r=h;if(r){if(!n(t,r)){if(!(r=l(r))||!n(t,r))return t.effectTag|=2,p=!1,void(d=t);e(d,h)}d=t,h=u(r)}else t.effectTag|=2,p=!1,d=t}},prepareToHydrateHostInstance:function(t,e,n){return e=c(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!==d)return!1;if(!p)return i(t),p=!0,!1;var n=t.type;if(5!==t.tag||"head"!==n&&"body"!==n&&!a(n,t.memoizedProps))for(n=h;n;)e(t,n),n=l(n);return i(t),h=d?l(t.stateNode):null,!0}}}function ke(t){function e(t,e,n){t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=n}function n(t){return 2===t.tag&&null!=t.type.childContextTypes}function i(t,e){var n=t.stateNode,i=t.type.childContextTypes;if("function"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var a in n)a in i||r("108",it(t)||"Unknown",a);return dn({},e,n)}var a=t.createCursor,o=t.push,s=t.pop,l=a(mn),u=a(!1),c=mn;return{getUnmaskedContext:function(t){return n(t)?c:l.current},cacheContext:e,getMaskedContext:function(t,n){var r=t.type.contextTypes;if(!r)return mn;var i=t.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===n)return i.__reactInternalMemoizedMaskedChildContext;var a,o={};for(a in r)o[a]=n[a];return i&&e(t,n,o),o},hasContextChanged:function(){return u.current},isContextConsumer:function(t){return 2===t.tag&&null!=t.type.contextTypes},isContextProvider:n,popContextProvider:function(t){n(t)&&(s(u,t),s(l,t))},popTopLevelContextObject:function(t){s(u,t),s(l,t)},pushTopLevelContextObject:function(t,e,n){null!=l.cursor&&r("168"),o(l,e,t),o(u,n,t)},processChildContext:i,pushContextProvider:function(t){if(!n(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||mn,c=l.current,o(l,e,t),o(u,u.current,t),!0},invalidateContextProvider:function(t,e){var n=t.stateNode;if(n||r("169"),e){var a=i(t,c);n.__reactInternalMemoizedMergedChildContext=a,s(u,t),s(l,t),o(l,a,t)}else s(u,t);o(u,e,t)},findCurrentUnmaskedContext:function(t){for(2!==Nt(t)||2!==t.tag?r("170"):void 0;3!==t.tag;){if(n(t))return t.stateNode.__reactInternalMemoizedMergedChildContext;(t=t.return)||r("171")}return t.stateNode.context}}}function Pe(t){var e=t.createCursor,n=t.push,r=t.pop,i=e(null),a=e(null),o=e(0);return{pushProvider:function(t){var e=t.type._context;n(o,e._changedBits,t),n(a,e._currentValue,t),n(i,t,t),e._currentValue=t.pendingProps.value,e._changedBits=t.stateNode},popProvider:function(t){var e=o.current,n=a.current;r(i,t),r(a,t),r(o,t),t=t.type._context,t._currentValue=n,t._changedBits=e}}}function Ke(){var t=[],e=-1;return{createCursor:function(t){return{current:t}},isEmpty:function(){return-1===e},pop:function(n){0>e||(n.current=t[e],t[e]=null,e--)},push:function(n,r){e++,t[e]=n.current,n.current=r},checkThatStackIsEmpty:function(){},resetStackAfterFatalErrorInDev:function(){}}}function Fe(t){function e(){if(null!==Z)for(var t=Z.return;null!==t;)I(t),t=t.return;tt=null,et=0,Z=null,it=!1}function n(t){return null!==ot&&ot.has(t)}function i(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(512&t.effectTag)){e=F(e,t,et);var i=t;if(1073741823===et||1073741823!==i.expirationTime){t:switch(i.tag){case 3:case 2:var a=i.updateQueue;a=null===a?0:a.expirationTime;break t;default:a=0}for(var o=i.child;null!==o;)0!==o.expirationTime&&(0===a||a>o.expirationTime)&&(a=o.expirationTime),o=o.sibling;i.expirationTime=a}if(null!==e)return e;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t)),null!==r)return r;if(null===n){it=!0;break}t=n}else{if(null!==(t=N(t)))return t.effectTag&=2559,t;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;t=n}}return null}function a(t){var e=K(t.alternate,t,et);return null===e&&(e=i(t)),or.current=null,e}function o(t,n,o){J&&r("243"),J=!0,n===et&&t===tt&&null!==Z||(e(),tt=t,et=n,Z=Zt(tt.current,null,et),t.pendingCommitExpirationTime=0);for(var s=!1;;){try{if(o)for(;null!==Z&&!x();)Z=a(Z);else for(;null!==Z;)Z=a(Z)}catch(t){if(null===Z){s=!0,S(t);break}o=Z;var l=o.return;if(null===l){s=!0,S(t);break}E(l,o,t),Z=i(o)}break}return J=!1,s||null!==Z?null:it?(t.pendingCommitExpirationTime=n,t.current.alternate):void r("262")}function s(t,e,n,r){t={value:n,source:t,stack:at(t)},fe(e,{expirationTime:r,partialState:null,callback:null,isReplace:!1,isForced:!1,capturedValue:t,next:null}),c(e,r)}function l(t,e){t:{J&&!rt&&r("263");for(var i=t.return;null!==i;){switch(i.tag){case 2:var a=i.stateNode;if("function"==typeof i.type.getDerivedStateFromCatch||"function"==typeof a.componentDidCatch&&!n(a)){s(t,i,e,1),t=void 0;break t}break;case 3:s(t,i,e,1),t=void 0;break t}i=i.return}3===t.tag&&s(t,t,e,1),t=void 0}return t}function u(t){return t=0!==$?$:J?rt?1:et:1&t.mode?Ct?10*(1+((f()+15)/10|0)):25*(1+((f()+500)/25|0)):1,Ct&&(0===pt||t>pt)&&(pt=t),t}function c(t,n){t:{for(;null!==t;){if((0===t.expirationTime||t.expirationTime>n)&&(t.expirationTime=n),null!==t.alternate&&(0===t.alternate.expirationTime||t.alternate.expirationTime>n)&&(t.alternate.expirationTime=n),null===t.return){if(3!==t.tag){n=void 0;break t}var i=t.stateNode;!J&&0!==et&&n<et&&e(),J&&!rt&&tt===i||p(i,n),wt>St&&r("185")}t=t.return}n=void 0}return n}function f(){return Y=B()-q,Q=2+(Y/10|0)}function d(t,e,n,r,i){var a=$;$=1;try{return t(e,n,r,i)}finally{$=a}}function h(t){if(0!==ut){if(t>ut)return;j(ct)}var e=B()-q;ut=t,ct=H(g,{timeout:10*(t-2)-e})}function p(t,e){if(null===t.nextScheduledRoot)t.remainingExpirationTime=e,null===lt?(st=lt=t,t.nextScheduledRoot=t):(lt=lt.nextScheduledRoot=t,lt.nextScheduledRoot=st);else{var n=t.remainingExpirationTime;(0===n||e<n)&&(t.remainingExpirationTime=e)}ft||(bt?_t&&(dt=t,ht=1,_(t,1,!1)):1===e?m():h(e))}function v(){var t=0,e=null;if(null!==lt)for(var n=lt,i=st;null!==i;){var a=i.remainingExpirationTime;if(0===a){if((null===n||null===lt)&&r("244"),i===i.nextScheduledRoot){st=lt=i.nextScheduledRoot=null;break}if(i===st)st=a=i.nextScheduledRoot,lt.nextScheduledRoot=a,i.nextScheduledRoot=null;else{if(i===lt){lt=n,lt.nextScheduledRoot=st,i.nextScheduledRoot=null;break}n.nextScheduledRoot=i.nextScheduledRoot,i.nextScheduledRoot=null}i=n.nextScheduledRoot}else{if((0===t||a<t)&&(t=a,e=i),i===lt)break;n=i,i=i.nextScheduledRoot}}n=dt,null!==n&&n===e&&1===t?wt++:wt=0,dt=e,ht=t}function g(t){y(0,!0,t)}function m(){y(1,!1,null)}function y(t,e,n){if(yt=n,v(),e)for(;null!==dt&&0!==ht&&(0===t||t>=ht)&&(!vt||f()>=ht);)_(dt,ht,!vt),v();else for(;null!==dt&&0!==ht&&(0===t||t>=ht);)_(dt,ht,!1),v();null!==yt&&(ut=0,ct=-1),0!==ht&&h(ht),yt=null,vt=!1,b()}function b(){if(wt=0,null!==xt){var t=xt;xt=null;for(var e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){gt||(gt=!0,mt=t)}}}if(gt)throw t=mt,mt=null,gt=!1,t}function _(t,e,n){ft&&r("245"),ft=!0,n?(n=t.finishedWork,null!==n?C(t,n,e):(t.finishedWork=null,null!==(n=o(t,e,!0))&&(x()?t.finishedWork=n:C(t,n,e)))):(n=t.finishedWork,null!==n?C(t,n,e):(t.finishedWork=null,null!==(n=o(t,e,!1))&&C(t,n,e))),ft=!1}function C(t,e,n){var i=t.firstBatch;if(null!==i&&i._expirationTime<=n&&(null===xt?xt=[i]:xt.push(i),i._defer))return t.finishedWork=e,void(t.remainingExpirationTime=0);t.finishedWork=null,rt=J=!0,n=e.stateNode,n.current===e&&r("177"),i=n.pendingCommitExpirationTime,0===i&&r("261"),n.pendingCommitExpirationTime=0;var a=f();if(or.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var o=e.firstEffect}else o=e;else o=e.firstEffect;for(W(n.containerInfo),nt=o;null!==nt;){var s=!1,u=void 0;try{for(;null!==nt;)2048&nt.effectTag&&R(nt.alternate,nt),nt=nt.nextEffect}catch(t){s=!0,u=t}s&&(null===nt&&r("178"),l(nt,u),null!==nt&&(nt=nt.nextEffect))}for(nt=o;null!==nt;){s=!1,u=void 0;try{for(;null!==nt;){var c=nt.effectTag;if(16&c&&D(nt),128&c){var d=nt.alternate;null!==d&&z(d)}switch(14&c){case 2:M(nt),nt.effectTag&=-3;break;case 6:M(nt),nt.effectTag&=-3,A(nt.alternate,nt);break;case 4:A(nt.alternate,nt);break;case 8:O(nt)}nt=nt.nextEffect}}catch(t){s=!0,u=t}s&&(null===nt&&r("178"),l(nt,u),null!==nt&&(nt=nt.nextEffect))}for(V(n.containerInfo),n.current=e,nt=o;null!==nt;){c=!1,d=void 0;try{for(o=n,s=a,u=i;null!==nt;){var h=nt.effectTag;36&h&&U(o,nt.alternate,nt,s,u),256&h&&L(nt,S),128&h&&G(nt);var p=nt.nextEffect;nt.nextEffect=null,nt=p}}catch(t){c=!0,d=t}c&&(null===nt&&r("178"),l(nt,d),null!==nt&&(nt=nt.nextEffect))}J=rt=!1,"function"==typeof oe&&oe(e.stateNode),e=n.current.expirationTime,0===e&&(ot=null),t.remainingExpirationTime=e}function x(){return!(null===yt||yt.timeRemaining()>Tt)&&(vt=!0)}function S(t){null===dt&&r("246"),dt.remainingExpirationTime=0,gt||(gt=!0,mt=t)}var w=Ke(),T=we(t,w),k=ke(w);w=Pe(w);var P=Te(t),K=be(t,T,k,w,P,c,u).beginWork,F=_e(t,T,k,w,P).completeWork;T=Ce(T,k,w,c,n);var E=T.throwException,N=T.unwindWork,I=T.unwindInterruptedWork;T=Se(t,l,c,u,function(t){null===ot?ot=new Set([t]):ot.add(t)},f);var R=T.commitBeforeMutationLifeCycles,D=T.commitResetTextContent,M=T.commitPlacement,O=T.commitDeletion,A=T.commitWork,U=T.commitLifeCycles,L=T.commitErrorLogging,G=T.commitAttachRef,z=T.commitDetachRef,B=t.now,H=t.scheduleDeferredCallback,j=t.cancelDeferredCallback,W=t.prepareForCommit,V=t.resetAfterCommit,q=B(),Q=2,Y=q,X=0,$=0,J=!1,Z=null,tt=null,et=0,nt=null,rt=!1,it=!1,ot=null,st=null,lt=null,ut=0,ct=-1,ft=!1,dt=null,ht=0,pt=0,vt=!1,gt=!1,mt=null,yt=null,bt=!1,_t=!1,Ct=!1,xt=null,St=1e3,wt=0,Tt=1;return{recalculateCurrentTime:f,computeExpirationForFiber:u,scheduleWork:c,requestWork:p,flushRoot:function(t,e){ft&&r("253"),dt=t,ht=e,_(t,e,!1),m(),b()},batchedUpdates:function(t,e){var n=bt;bt=!0;try{return t(e)}finally{(bt=n)||ft||m()}},unbatchedUpdates:function(t,e){if(bt&&!_t){_t=!0;try{return t(e)}finally{_t=!1}}return t(e)},flushSync:function(t,e){ft&&r("187");var n=bt;bt=!0;try{return d(t,e)}finally{bt=n,m()}},flushControlled:function(t){var e=bt;bt=!0;try{d(t)}finally{(bt=e)||ft||y(1,!1,null)}},deferredUpdates:function(t){var e=$;$=25*(1+((f()+500)/25|0));try{return t()}finally{$=e}},syncUpdates:d,interactiveUpdates:function(t,e,n){if(Ct)return t(e,n);bt||ft||0===pt||(y(pt,!1,null),pt=0);var r=Ct,i=bt;bt=Ct=!0;try{return t(e,n)}finally{Ct=r,(bt=i)||ft||m()}},flushInteractiveUpdates:function(){ft||0===pt||(y(pt,!1,null),pt=0)},computeUniqueAsyncExpiration:function(){var t=25*(1+((f()+500)/25|0));return t<=X&&(t=X+1),X=t},legacyContext:k}}function Ee(t){function e(t,e,n,r,i,a){if(r=e.current,n){n=n._reactInternalFiber;var s=l(n);n=u(n)?c(n,s):s}else n=mn;return null===e.context?e.context=n:e.pendingContext=n,e=a,fe(r,{expirationTime:i,partialState:{element:t},callback:void 0===e?null:e,isReplace:!1,isForced:!1,capturedValue:null,next:null}),o(r,i),i}var n=t.getPublicInstance;t=Fe(t);var i=t.recalculateCurrentTime,a=t.computeExpirationForFiber,o=t.scheduleWork,s=t.legacyContext,l=s.findCurrentUnmaskedContext,u=s.isContextProvider,c=s.processChildContext;return{createContainer:function(t,e,n){return e=new Jt(3,null,null,e?3:0),t={current:e,containerInfo:t,pendingChildren:null,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},e.stateNode=t},updateContainer:function(t,n,r,o){var s=n.current,l=i();return s=a(s),e(t,n,r,l,s,o)},updateContainerAtExpirationTime:function(t,n,r,a,o){return e(t,n,r,i(),a,o)},flushRoot:t.flushRoot,requestWork:t.requestWork,computeUniqueAsyncExpiration:t.computeUniqueAsyncExpiration,batchedUpdates:t.batchedUpdates,unbatchedUpdates:t.unbatchedUpdates,deferredUpdates:t.deferredUpdates,syncUpdates:t.syncUpdates,interactiveUpdates:t.interactiveUpdates,flushInteractiveUpdates:t.flushInteractiveUpdates,flushControlled:t.flushControlled,flushSync:t.flushSync,getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return n(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:function(t){var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?r("188"):r("268",Object.keys(t))),t=Mt(e),null===t?null:t.stateNode},findHostInstanceWithNoPortals:function(t){return t=Ot(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var e=t.findFiberByHostInstance;return ae(dn({},t,{findHostInstanceByFiber:function(t){return t=Mt(t),null===t?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null}}))}}}function Ne(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:fr,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Ie(t){var e="";return cn.Children.forEach(t,function(t){null==t||"string"!=typeof t&&"number"!=typeof t||(e+=t)}),e}function Re(t,e){return t=dn({children:void 0},e),(e=Ie(e.children))&&(t.children=e),t}function De(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+n,e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Me(t,e){var n=e.value;t._wrapperState={initialValue:null!=n?n:e.defaultValue,wasMultiple:!!e.multiple}}function Oe(t,e){return null!=e.dangerouslySetInnerHTML&&r("91"),dn({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Ae(t,e){var n=e.value;null==n&&(n=e.defaultValue,e=e.children,null!=e&&(null!=n&&r("92"),Array.isArray(e)&&(1>=e.length||r("93"),e=e[0]),n=""+e),null==n&&(n="")),t._wrapperState={initialValue:""+n}}function Ue(t,e){var n=e.value;null!=n&&(n=""+n,n!==t.value&&(t.value=n),null==e.defaultValue&&(t.defaultValue=n)),null!=e.defaultValue&&(t.defaultValue=e.defaultValue)}function Le(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}function Ge(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?Ge(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}function Be(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 He(t,e){t=t.style;for(var n in e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,a=e[n];i=null==a||"boolean"==typeof a||""===a?"":r||"number"!=typeof a||0===a||Gi.hasOwnProperty(i)&&Gi[i]?(""+a).trim():a+"px","float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}function je(t,e,n){e&&(Bi[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 We(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 Ve(t,e){t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument;var n=qt(t);e=wn[e];for(var r=0;r<e.length;r++){var i=e[r];n.hasOwnProperty(i)&&n[i]||("topScroll"===i?Bt("topScroll","scroll",t):"topFocus"===i||"topBlur"===i?(Bt("topFocus","focus",t),Bt("topBlur","blur",t),n.topBlur=!0,n.topFocus=!0):"topCancel"===i?(J("cancel",!0)&&Bt("topCancel","cancel",t),n.topCancel=!0):"topClose"===i?(J("close",!0)&&Bt("topClose","close",t),n.topClose=!0):ti.hasOwnProperty(i)&&zt(i,ti[i],t),n[i]=!0)}}function qe(t,e,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===Ai.html&&(r=Ge(t)),r===Ai.html?"script"===t?(t=n.createElement("div"),t.innerHTML="<script><\/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 Qe(t,e){return(9===e.nodeType?e:e.ownerDocument).createTextNode(t)}function Ye(t,e,n,r){var i=We(e,n);switch(e){case"iframe":case"object":zt("topLoad","load",t);var a=n;break;case"video":case"audio":for(a in ei)ei.hasOwnProperty(a)&&zt(a,ei[a],t);a=n;break;case"source":zt("topError","error",t),a=n;break;case"img":case"image":case"link":zt("topError","error",t),zt("topLoad","load",t),a=n;break;case"form":zt("topReset","reset",t),zt("topSubmit","submit",t),a=n;break;case"details":zt("topToggle","toggle",t),a=n;break;case"input":ht(t,n),a=dt(t,n),zt("topInvalid","invalid",t),Ve(r,"onChange");break;case"option":a=Re(t,n);break;case"select":Me(t,n),a=dn({},n,{value:void 0}),zt("topInvalid","invalid",t),Ve(r,"onChange");break;case"textarea":Ae(t,n),a=Oe(t,n),zt("topInvalid","invalid",t),Ve(r,"onChange");break;default:a=n}je(e,a,Hi);var o,s=a;for(o in s)if(s.hasOwnProperty(o)){var l=s[o];"style"===o?He(t,l,Hi):"dangerouslySetInnerHTML"===o?null!=(l=l?l.__html:void 0)&&Li(t,l):"children"===o?"string"==typeof l?("textarea"!==e||""!==l)&&Be(t,l):"number"==typeof l&&Be(t,""+l):"suppressContentEditableWarning"!==o&&"suppressHydrationWarning"!==o&&"autoFocus"!==o&&(Sn.hasOwnProperty(o)?null!=l&&Ve(r,o):null!=l&&ft(t,o,l,i))}switch(e){case"input":et(t),gt(t,n);break;case"textarea":et(t),Le(t,n);break;case"option":null!=n.value&&t.setAttribute("value",n.value);break;case"select":t.multiple=!!n.multiple,e=n.value,null!=e?De(t,!!n.multiple,e,!1):null!=n.defaultValue&&De(t,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof a.onClick&&(t.onclick=hn)}}function Xe(t,e,n,r,i){var a=null;switch(e){case"input":n=dt(t,n),r=dt(t,r),a=[];break;case"option":n=Re(t,n),r=Re(t,r),a=[];break;case"select":n=dn({},n,{value:void 0}),r=dn({},r,{value:void 0}),a=[];break;case"textarea":n=Oe(t,n),r=Oe(t,r),a=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(t.onclick=hn)}je(e,r,Hi),e=t=void 0;var o=null;for(t in n)if(!r.hasOwnProperty(t)&&n.hasOwnProperty(t)&&null!=n[t])if("style"===t){var s=n[t];for(e in s)s.hasOwnProperty(e)&&(o||(o={}),o[e]="")}else"dangerouslySetInnerHTML"!==t&&"children"!==t&&"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&"autoFocus"!==t&&(Sn.hasOwnProperty(t)?a||(a=[]):(a=a||[]).push(t,null));for(t in r){var l=r[t];if(s=null!=n?n[t]:void 0,r.hasOwnProperty(t)&&l!==s&&(null!=l||null!=s))if("style"===t)if(s){for(e in s)!s.hasOwnProperty(e)||l&&l.hasOwnProperty(e)||(o||(o={}),o[e]="");for(e in l)l.hasOwnProperty(e)&&s[e]!==l[e]&&(o||(o={}),o[e]=l[e])}else o||(a||(a=[]),a.push(t,o)),o=l;else"dangerouslySetInnerHTML"===t?(l=l?l.__html:void 0,s=s?s.__html:void 0,null!=l&&s!==l&&(a=a||[]).push(t,""+l)):"children"===t?s===l||"string"!=typeof l&&"number"!=typeof l||(a=a||[]).push(t,""+l):"suppressContentEditableWarning"!==t&&"suppressHydrationWarning"!==t&&(Sn.hasOwnProperty(t)?(null!=l&&Ve(i,t),a||s===l||(a=[])):(a=a||[]).push(t,l))}return o&&(a=a||[]).push("style",o),a}function $e(t,e,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&pt(t,i),We(n,r),r=We(n,i);for(var a=0;a<e.length;a+=2){var o=e[a],s=e[a+1];"style"===o?He(t,s,Hi):"dangerouslySetInnerHTML"===o?Li(t,s):"children"===o?Be(t,s):ft(t,o,s,r)}switch(n){case"input":vt(t,i);break;case"textarea":Ue(t,i);break;case"select":t._wrapperState.initialValue=void 0,e=t._wrapperState.wasMultiple,t._wrapperState.wasMultiple=!!i.multiple,n=i.value,null!=n?De(t,!!i.multiple,n,!1):e!==!!i.multiple&&(null!=i.defaultValue?De(t,!!i.multiple,i.defaultValue,!0):De(t,!!i.multiple,i.multiple?[]:"",!1))}}function Je(t,e,n,r,i){switch(e){case"iframe":case"object":zt("topLoad","load",t);break;case"video":case"audio":for(var a in ei)ei.hasOwnProperty(a)&&zt(a,ei[a],t);break;case"source":zt("topError","error",t);break;case"img":case"image":case"link":zt("topError","error",t),zt("topLoad","load",t);break;case"form":zt("topReset","reset",t),zt("topSubmit","submit",t);break;case"details":zt("topToggle","toggle",t);break;case"input":ht(t,n),zt("topInvalid","invalid",t),Ve(i,"onChange");break;case"select":Me(t,n),zt("topInvalid","invalid",t),Ve(i,"onChange");break;case"textarea":Ae(t,n),zt("topInvalid","invalid",t),Ve(i,"onChange")}je(e,n,Hi),r=null;for(var o in n)n.hasOwnProperty(o)&&(a=n[o],"children"===o?"string"==typeof a?t.textContent!==a&&(r=["children",a]):"number"==typeof a&&t.textContent!==""+a&&(r=["children",""+a]):Sn.hasOwnProperty(o)&&null!=a&&Ve(i,o));switch(e){case"input":et(t),gt(t,n);break;case"textarea":et(t),Le(t,n);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(t.onclick=hn)}return r}function Ze(t,e){return t.nodeValue!==e}function tn(t){this._expirationTime=qi.computeUniqueAsyncExpiration(),this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function en(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function nn(t,e,n){this._internalRoot=qi.createContainer(t,e,n)}function rn(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function an(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function on(t,e){if(e||(e=t?9===t.nodeType?t.documentElement:t.firstChild:null,e=!(!e||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new nn(t,!1,e)}function sn(t,e,n,i,a){rn(n)||r("200");var o=n._reactRootContainer;if(o){if("function"==typeof a){var s=a;a=function(){var t=qi.getPublicRootInstance(o._internalRoot);s.call(t)}}null!=t?o.legacy_renderSubtreeIntoContainer(t,e,a):o.render(e,a)}else{if(o=n._reactRootContainer=on(n,i),"function"==typeof a){var l=a;a=function(){var t=qi.getPublicRootInstance(o._internalRoot);l.call(t)}}qi.unbatchedUpdates(function(){null!=t?o.legacy_renderSubtreeIntoContainer(t,e,a):o.render(e,a)})}return qi.getPublicRootInstance(o._internalRoot)}function ln(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return rn(e)||r("200"),Ne(t,e,null,n)}var un=n(8),cn=n(0),fn=n(17),dn=n(10),hn=n(15),pn=n(35),vn=n(18),gn=n(36),mn=n(9);cn||r("227");var yn={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(t,e,n,r,a,o,s,l,u){i.apply(yn,arguments)},invokeGuardedCallbackAndCatchFirstError:function(t,e,n,r,i,a,o,s,l){if(yn.invokeGuardedCallback.apply(this,arguments),yn.hasCaughtError()){var u=yn.clearCaughtError();yn._hasRethrowError||(yn._hasRethrowError=!0,yn._rethrowError=u)}},rethrowCaughtError:function(){return a.apply(yn,arguments)},hasCaughtError:function(){return yn._hasCaughtError},clearCaughtError:function(){if(yn._hasCaughtError){var t=yn._caughtError;return yn._caughtError=null,yn._hasCaughtError=!1,t}r("198")}},bn=null,_n={},Cn=[],xn={},Sn={},wn={},Tn=Object.freeze({plugins:Cn,eventNameDispatchConfigs:xn,registrationNameModules:Sn,registrationNameDependencies:wn,possibleRegistrationNames:null,injectEventPluginOrder:l,injectEventPluginsByName:u}),kn=null,Pn=null,Kn=null,Fn=null,En={injectEventPluginOrder:l,injectEventPluginsByName:u},Nn=Object.freeze({injection:En,getListener:g,runEventsInBatch:m,runExtractedEventsInBatch:y}),In=Math.random().toString(36).slice(2),Rn="__reactInternalInstance$"+In,Dn="__reactEventHandlers$"+In,Mn=Object.freeze({precacheFiberNode:function(t,e){e[Rn]=t},getClosestInstanceFromNode:b,getInstanceFromNode:function(t){return t=t[Rn],!t||5!==t.tag&&6!==t.tag?null:t},getNodeFromInstance:_,getFiberCurrentPropsFromNode:C,updateFiberProps:function(t,e){t[Dn]=e}}),On=Object.freeze({accumulateTwoPhaseDispatches:F,accumulateTwoPhaseDispatchesSkipTarget:function(t){d(t,k)},accumulateEnterLeaveDispatches:E,accumulateDirectDispatches:function(t){d(t,K)}}),An=null,Un={_root:null,_startText:null,_fallbackText:null},Ln="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),Gn={type:null,target:null,currentTarget:hn.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};dn(D.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=hn.thatReturnsTrue)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=hn.thatReturnsTrue)},persist:function(){this.isPersistent=hn.thatReturnsTrue},isPersistent:hn.thatReturnsFalse,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;for(e=0;e<Ln.length;e++)this[Ln[e]]=null}}),D.Interface=Gn,D.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var i=new e;return dn(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=dn({},r.Interface,t),n.extend=r.extend,A(n),n},A(D);var zn=D.extend({data:null}),Bn=D.extend({data:null}),Hn=[9,13,27,32],jn=fn.canUseDOM&&"CompositionEvent"in window,Wn=null;fn.canUseDOM&&"documentMode"in document&&(Wn=document.documentMode);var Vn=fn.canUseDOM&&"TextEvent"in window&&!Wn,qn=fn.canUseDOM&&(!jn||Wn&&8<Wn&&11>=Wn),Qn=String.fromCharCode(32),Yn={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(" ")}},Xn=!1,$n=!1,Jn={eventTypes:Yn,extractEvents:function(t,e,n,r){var i=void 0,a=void 0;if(jn)t:{switch(t){case"topCompositionStart":i=Yn.compositionStart;break t;case"topCompositionEnd":i=Yn.compositionEnd;break t;case"topCompositionUpdate":i=Yn.compositionUpdate;break t}i=void 0}else $n?U(t,n)&&(i=Yn.compositionEnd):"topKeyDown"===t&&229===n.keyCode&&(i=Yn.compositionStart);return i?(qn&&($n||i!==Yn.compositionStart?i===Yn.compositionEnd&&$n&&(a=I()):(Un._root=r,Un._startText=R(),$n=!0)),i=zn.getPooled(i,e,n,r),a?i.data=a:null!==(a=L(n))&&(i.data=a),F(i),a=i):a=null,(t=Vn?G(t,n):z(t,n))?(e=Bn.getPooled(Yn.beforeInput,e,n,r),e.data=t,F(e)):e=null,null===a?e:null===e?a:[a,e]}},Zn=null,tr={injectFiberControlledHostComponent:function(t){Zn=t}},er=null,nr=null,rr=Object.freeze({injection:tr,enqueueStateRestore:H,needsStateRestore:j,restoreStateIfNeeded:W}),ir=!1,ar={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},or=cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,sr="function"==typeof Symbol&&Symbol.for,lr=sr?Symbol.for("react.element"):60103,ur=sr?Symbol.for("react.call"):60104,cr=sr?Symbol.for("react.return"):60105,fr=sr?Symbol.for("react.portal"):60106,dr=sr?Symbol.for("react.fragment"):60107,hr=sr?Symbol.for("react.strict_mode"):60108,pr=sr?Symbol.for("react.provider"):60109,vr=sr?Symbol.for("react.context"):60110,gr=sr?Symbol.for("react.async_mode"):60111,mr=sr?Symbol.for("react.forward_ref"):60112,yr="function"==typeof Symbol&&Symbol.iterator,br=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,_r={},Cr={},xr={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){xr[t]=new ut(t,0,!1,t,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];xr[e]=new ut(e,1,!1,t[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(t){xr[t]=new ut(t,2,!1,t.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(t){xr[t]=new ut(t,2,!1,t,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){xr[t]=new ut(t,3,!1,t.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(t){xr[t]=new ut(t,3,!0,t.toLowerCase(),null)}),["capture","download"].forEach(function(t){xr[t]=new ut(t,4,!1,t.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(t){xr[t]=new ut(t,6,!1,t.toLowerCase(),null)}),["rowSpan","start"].forEach(function(t){xr[t]=new ut(t,5,!1,t.toLowerCase(),null)});var Sr=/[\-:]([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 xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Sr,ct);xr[e]=new ut(e,1,!1,t,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Sr,ct);xr[e]=new ut(e,1,!1,t,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Sr,ct);xr[e]=new ut(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")}),xr.tabIndex=new ut("tabIndex",1,!1,"tabindex",null);var wr={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"topBlur topChange topClick topFocus topInput topKeyDown topKeyUp topSelectionChange".split(" ")}},Tr=null,kr=null,Pr=!1;fn.canUseDOM&&(Pr=J("input")&&(!document.documentMode||9<document.documentMode));var Kr={eventTypes:wr,_isInputEventSupported:Pr,extractEvents:function(t,e,n,r){var i=e?_(e):window,a=void 0,o=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?a=xt:X(i)?Pr?a=Kt:(a=kt,o=Tt):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(a=Pt),a&&(a=a(t,e)))return bt(a,n,r);o&&o(t,i,e),"topBlur"===t&&null!=e&&(t=e._wrapperState||i._wrapperState)&&t.controlled&&"number"===i.type&&mt(i,"number",i.value)}},Fr=D.extend({view:null,detail:null}),Er={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},Nr=Fr.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Et,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)}}),Ir={mouseEnter:{registrationName:"onMouseEnter",dependencies:["topMouseOut","topMouseOver"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["topMouseOut","topMouseOver"]}},Rr={eventTypes:Ir,extractEvents:function(t,e,n,r){if("topMouseOver"===t&&(n.relatedTarget||n.fromElement)||"topMouseOut"!==t&&"topMouseOver"!==t)return null;var i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window;if("topMouseOut"===t?(t=e,e=(e=n.relatedTarget||n.toElement)?b(e):null):t=null,t===e)return null;var a=null==t?i:_(t);i=null==e?i:_(e);var o=Nr.getPooled(Ir.mouseLeave,t,n,r);return o.type="mouseleave",o.target=a,o.relatedTarget=i,n=Nr.getPooled(Ir.mouseEnter,e,n,r),n.type="mouseenter",n.target=i,n.relatedTarget=a,E(o,n,t,e),[o,n]}},Dr=D.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Mr=D.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Or=Fr.extend({relatedTarget:null}),Ar={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ur={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Lr=Fr.extend({key:function(t){if(t.key){var e=Ar[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?(t=At(t),13===t?"Enter":String.fromCharCode(t)):"keydown"===t.type||"keyup"===t.type?Ur[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Et,charCode:function(t){return"keypress"===t.type?At(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?At(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),Gr=Nr.extend({dataTransfer:null}),zr=Fr.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Et}),Br=D.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),Hr=Nr.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),jr={},Wr={};"blur cancel click close contextMenu copy cut doubleClick dragEnd dragStart drop focus input invalid keyDown keyPress keyUp mouseDown mouseUp paste pause play rateChange reset seeked submit touchCancel touchEnd touchStart volumeChange".split(" ").forEach(function(t){Ut(t,!0)}),"abort animationEnd animationIteration animationStart canPlay canPlayThrough drag dragEnter dragExit dragLeave dragOver durationChange emptied encrypted ended error load loadedData loadedMetadata loadStart mouseMove mouseOut mouseOver playing progress scroll seeking stalled suspend timeUpdate toggle touchMove transitionEnd waiting wheel".split(" ").forEach(function(t){Ut(t,!1)});var Vr={eventTypes:jr,isInteractiveTopLevelEventType:function(t){return void 0!==(t=Wr[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var i=Wr[t];if(!i)return null;switch(t){case"topKeyPress":if(0===At(n))return null;case"topKeyDown":case"topKeyUp":t=Lr;break;case"topBlur":case"topFocus":t=Or;break;case"topClick":if(2===n.button)return null;case"topDoubleClick":case"topMouseDown":case"topMouseMove":case"topMouseUp":case"topMouseOut":case"topMouseOver":case"topContextMenu":t=Nr;break;case"topDrag":case"topDragEnd":case"topDragEnter":case"topDragExit":case"topDragLeave":case"topDragOver":case"topDragStart":case"topDrop":t=Gr;break;case"topTouchCancel":case"topTouchEnd":case"topTouchMove":case"topTouchStart":t=zr;break;case"topAnimationEnd":case"topAnimationIteration":case"topAnimationStart":t=Dr;break;case"topTransitionEnd":t=Br;break;case"topScroll":t=Fr;break;case"topWheel":t=Hr;break;case"topCopy":case"topCut":case"topPaste":t=Mr;break;default:t=D}return e=t.getPooled(i,e,n,r),F(e),e}},qr=Vr.isInteractiveTopLevelEventType,Qr=[],Yr=!0,Xr=Object.freeze({get _enabled(){return Yr},setEnabled:Gt,isEnabled:function(){return Yr},trapBubbledEvent:zt,trapCapturedEvent:Bt,dispatchEvent:jt}),$r={animationend:Wt("Animation","AnimationEnd"),animationiteration:Wt("Animation","AnimationIteration"),animationstart:Wt("Animation","AnimationStart"),transitionend:Wt("Transition","TransitionEnd")},Jr={},Zr={};fn.canUseDOM&&(Zr=document.createElement("div").style,"AnimationEvent"in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),"TransitionEvent"in window||delete $r.transitionend.transition);var ti={topAnimationEnd:Vt("animationend"),topAnimationIteration:Vt("animationiteration"),topAnimationStart:Vt("animationstart"),topBlur:"blur",topCancel:"cancel",topChange:"change",topClick:"click",topClose:"close",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoad:"load",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topToggle:"toggle",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:Vt("transitionend"),topWheel:"wheel"},ei={topAbort:"abort",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topSeeked:"seeked",topSeeking:"seeking",topStalled:"stalled",topSuspend:"suspend",topTimeUpdate:"timeupdate",topVolumeChange:"volumechange",topWaiting:"waiting"},ni={},ri=0,ii="_reactListenersID"+(""+Math.random()).slice(2),ai=fn.canUseDOM&&"documentMode"in document&&11>=document.documentMode,oi={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"topBlur topContextMenu topFocus topKeyDown topKeyUp topMouseDown topMouseUp topSelectionChange".split(" ")}},si=null,li=null,ui=null,ci=!1,fi={eventTypes:oi,extractEvents:function(t,e,n,r){var i,a=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!a)){t:{a=qt(a),i=wn.onSelect;for(var o=0;o<i.length;o++){var s=i[o];if(!a.hasOwnProperty(s)||!a[s]){a=!1;break t}}a=!0}i=!a}if(i)return null;switch(a=e?_(e):window,t){case"topFocus":(X(a)||"true"===a.contentEditable)&&(si=a,li=e,ui=null);break;case"topBlur":ui=li=si=null;break;case"topMouseDown":ci=!0;break;case"topContextMenu":case"topMouseUp":return ci=!1,$t(n,r);case"topSelectionChange":if(ai)break;case"topKeyDown":case"topKeyUp":return $t(n,r)}return null}};En.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),kn=Mn.getFiberCurrentPropsFromNode,Pn=Mn.getInstanceFromNode,Kn=Mn.getNodeFromInstance,En.injectEventPluginsByName({SimpleEventPlugin:Vr,EnterLeaveEventPlugin:Rr,ChangeEventPlugin:Kr,SelectEventPlugin:fi,BeforeInputEventPlugin:Jn});var di=null,hi=null;new Set;var pi=void 0,vi=void 0,gi=Array.isArray,mi=ye(!0),yi=ye(!1),bi={},_i=Object.freeze({default:Ee}),Ci=_i&&Ee||_i,xi=Ci.default?Ci.default:Ci,Si="object"==typeof performance&&"function"==typeof performance.now,wi=void 0;wi=Si?function(){return performance.now()}:function(){return Date.now()};var Ti=void 0,ki=void 0;if(fn.canUseDOM)if("function"!=typeof requestIdleCallback||"function"!=typeof cancelIdleCallback){var Pi=null,Ki=!1,Fi=-1,Ei=!1,Ni=0,Ii=33,Ri=33,Di=void 0;Di=Si?{didTimeout:!1,timeRemaining:function(){var t=Ni-performance.now();return 0<t?t:0}}:{didTimeout:!1,timeRemaining:function(){var t=Ni-Date.now();return 0<t?t:0}};var Mi="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(t){if(t.source===window&&t.data===Mi){if(Ki=!1,t=wi(),0>=Ni-t){if(!(-1!==Fi&&Fi<=t))return void(Ei||(Ei=!0,requestAnimationFrame(Oi)));Di.didTimeout=!0}else Di.didTimeout=!1;Fi=-1,t=Pi,Pi=null,null!==t&&t(Di)}},!1);var Oi=function(t){Ei=!1;var e=t-Ni+Ri;e<Ri&&Ii<Ri?(8>e&&(e=8),Ri=e<Ii?Ii:e):Ii=e,Ni=t+Ri,Ki||(Ki=!0,window.postMessage(Mi,"*"))};Ti=function(t,e){return Pi=t,null!=e&&"number"==typeof e.timeout&&(Fi=wi()+e.timeout),Ei||(Ei=!0,requestAnimationFrame(Oi)),0},ki=function(){Pi=null,Ki=!1,Fi=-1}}else Ti=window.requestIdleCallback,ki=window.cancelIdleCallback;else Ti=function(t){return setTimeout(function(){t({timeRemaining:function(){return 1/0},didTimeout:!1})})},ki=function(t){clearTimeout(t)};var Ai={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"},Ui=void 0,Li=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction(function(){return t(e,n)})}:t}(function(t,e){if(t.namespaceURI!==Ai.svg||"innerHTML"in t)t.innerHTML=e;else{for(Ui=Ui||document.createElement("div"),Ui.innerHTML="<svg>"+e+"</svg>",e=Ui.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}),Gi={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},zi=["Webkit","ms","Moz","O"];Object.keys(Gi).forEach(function(t){zi.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Gi[e]=Gi[t]})});var Bi=dn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}),Hi=hn.thatReturns(""),ji=Object.freeze({createElement:qe,createTextNode:Qe,setInitialProperties:Ye,diffProperties:Xe,updateProperties:$e,diffHydratedProperties:Je,diffHydratedText:Ze,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(t,e,n){switch(e){case"input":if(vt(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var i=n[e];if(i!==t&&i.form===t.form){var a=C(i);a||r("90"),nt(i),vt(i,a)}}}break;case"textarea":Ue(t,n);break;case"select":null!=(e=n.value)&&De(t,!!n.multiple,e,!1)}}});tr.injectFiberControlledHostComponent(ji);var Wi=null,Vi=null;tn.prototype.render=function(t){this._defer||r("250"),this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,i=new en;return qi.updateContainerAtExpirationTime(t,e,null,n,i._onCommit),i},tn.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},tn.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||r("251"),this._hasChildren){var n=this._expirationTime;if(e!==this){this._hasChildren&&(n=this._expirationTime=e._expirationTime,this.render(this._children));for(var i=null,a=e;a!==this;)i=a,a=a._next;null===i&&r("251"),i._next=a._next,this._next=e,t.firstBatch=this}this._defer=!1,qi.flushRoot(t,n),e=this._next,this._next=null,e=t.firstBatch=e,null!==e&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},tn.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++)(0,t[e])()}},en.prototype.then=function(t){if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},en.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++){var n=t[e];"function"!=typeof n&&r("191",n),n()}}},nn.prototype.render=function(t,e){var n=this._internalRoot,r=new en;return e=void 0===e?null:e,null!==e&&r.then(e),qi.updateContainer(t,n,null,r._onCommit),r},nn.prototype.unmount=function(t){var e=this._internalRoot,n=new en;return t=void 0===t?null:t,null!==t&&n.then(t),qi.updateContainer(null,e,null,n._onCommit),n},nn.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,i=new en;return n=void 0===n?null:n,null!==n&&i.then(n),qi.updateContainer(e,r,t,i._onCommit),i},nn.prototype.createBatch=function(){var t=new tn(this),e=t._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=t,t._next=null;else{for(n=null;null!==r&&r._expirationTime<=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}return t};var qi=xi({getRootHostContext:function(t){var e=t.nodeType;switch(e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ze(null,"");break;default:e=8===e?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=ze(t,e)}return t},getChildHostContext:function(t,e){return ze(t,e)},getPublicInstance:function(t){return t},prepareForCommit:function(){Wi=Yr;var t=pn();if(Xt(t)){if("selectionStart"in t)var e={start:t.selectionStart,end:t.selectionEnd};else t:{var n=window.getSelection&&window.getSelection();if(n&&0!==n.rangeCount){e=n.anchorNode;var r=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{e.nodeType,i.nodeType}catch(t){e=null;break t}var a=0,o=-1,s=-1,l=0,u=0,c=t,f=null;e:for(;;){for(var d;c!==e||0!==r&&3!==c.nodeType||(o=a+r),c!==i||0!==n&&3!==c.nodeType||(s=a+n),3===c.nodeType&&(a+=c.nodeValue.length),null!==(d=c.firstChild);)f=c,c=d;for(;;){if(c===t)break e;if(f===e&&++l===r&&(o=a),f===i&&++u===n&&(s=a),null!==(d=c.nextSibling))break;c=f,f=c.parentNode}c=d}e=-1===o||-1===s?null:{start:o,end:s}}else e=null}e=e||{start:0,end:0}}else e=null;Vi={focusedElem:t,selectionRange:e},Gt(!1)},resetAfterCommit:function(){var t=Vi,e=pn(),n=t.focusedElem,r=t.selectionRange;if(e!==n&&gn(document.documentElement,n)){if(Xt(n))if(e=r.start,t=r.end,void 0===t&&(t=e),"selectionStart"in n)n.selectionStart=e,n.selectionEnd=Math.min(t,n.value.length);else if(window.getSelection){e=window.getSelection();var i=n[N()].length;t=Math.min(r.start,i),r=void 0===r.end?t:Math.min(r.end,i),!e.extend&&t>r&&(i=r,r=t,t=i),i=Yt(n,t);var a=Yt(n,r);if(i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)){var o=document.createRange();o.setStart(i.node,i.offset),e.removeAllRanges(),t>r?(e.addRange(o),e.extend(a.node,a.offset)):(o.setEnd(a.node,a.offset),e.addRange(o))}}for(e=[],t=n;t=t.parentNode;)1===t.nodeType&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(n.focus(),n=0;n<e.length;n++)t=e[n],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}Vi=null,Gt(Wi),Wi=null},createInstance:function(t,e,n,r,i){return t=qe(t,e,n,r),t[Rn]=i,t[Dn]=e,t},appendInitialChild:function(t,e){t.appendChild(e)},finalizeInitialChildren:function(t,e,n,r){return Ye(t,e,n,r),an(e,n)},prepareUpdate:function(t,e,n,r,i){return Xe(t,e,n,r,i)},shouldSetTextContent:function(t,e){return"textarea"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&"string"==typeof e.dangerouslySetInnerHTML.__html},shouldDeprioritizeSubtree:function(t,e){return!!e.hidden},createTextInstance:function(t,e,n,r){return t=Qe(t,e),t[Rn]=r,t},now:wi,mutation:{commitMount:function(t,e,n){an(e,n)&&t.focus()},commitUpdate:function(t,e,n,r,i){t[Dn]=i,$e(t,e,n,r,i)},resetTextContent:function(t){Be(t,"")},commitTextUpdate:function(t,e,n){t.nodeValue=n},appendChild:function(t,e){t.appendChild(e)},appendChildToContainer:function(t,e){8===t.nodeType?t.parentNode.insertBefore(e,t):t.appendChild(e)},insertBefore:function(t,e,n){t.insertBefore(e,n)},insertInContainerBefore:function(t,e,n){8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n)},removeChild:function(t,e){t.removeChild(e)},removeChildFromContainer:function(t,e){8===t.nodeType?t.parentNode.removeChild(e):t.removeChild(e)}},hydration:{canHydrateInstance:function(t,e){return 1!==t.nodeType||e.toLowerCase()!==t.nodeName.toLowerCase()?null:t},canHydrateTextInstance:function(t,e){return""===e||3!==t.nodeType?null:t},getNextHydratableSibling:function(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t},getFirstHydratableChild:function(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t},hydrateInstance:function(t,e,n,r,i,a){return t[Rn]=a,t[Dn]=n,Je(t,e,n,i,r)},hydrateTextInstance:function(t,e,n){return t[Rn]=n,Ze(t,e)},didNotMatchHydratedContainerTextInstance:function(){},didNotMatchHydratedTextInstance:function(){},didNotHydrateContainerInstance:function(){},didNotHydrateInstance:function(){},didNotFindHydratableContainerInstance:function(){},didNotFindHydratableContainerTextInstance:function(){},didNotFindHydratableInstance:function(){},didNotFindHydratableTextInstance:function(){}},scheduleDeferredCallback:Ti,cancelDeferredCallback:ki}),Qi=qi;V=Qi.batchedUpdates,q=Qi.interactiveUpdates,Q=Qi.flushInteractiveUpdates;var Yi={createPortal:ln,findDOMNode:function(t){return null==t?null:1===t.nodeType?t:qi.findHostInstance(t)},hydrate:function(t,e,n){return sn(null,t,e,!0,n)},render:function(t,e,n){return sn(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,i){return(null==t||void 0===t._reactInternalFiber)&&r("38"),sn(t,e,n,!1,i)},unmountComponentAtNode:function(t){return rn(t)||r("40"),!!t._reactRootContainer&&(qi.unbatchedUpdates(function(){sn(null,null,t,!1,function(){t._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return ln.apply(void 0,arguments)},unstable_batchedUpdates:qi.batchedUpdates,unstable_deferredUpdates:qi.deferredUpdates,flushSync:qi.flushSync,unstable_flushControlled:qi.flushControlled,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:Nn,EventPluginRegistry:Tn,EventPropagators:On,ReactControlledComponent:rr,ReactDOMComponentTree:Mn,ReactDOMEventListener:Xr},unstable_createRoot:function(t,e){return new nn(t,!0,null!=e&&!0===e.hydrate)}};qi.injectIntoDevTools({findFiberByHostInstance:b,bundleType:0,version:"16.3.2",rendererPackageName:"react-dom"});var Xi=Object.freeze({default:Yi}),$i=Xi&&Yi||Xi;t.exports=$i.default?$i.default:$i},function(t,e,n){"use strict";function r(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}t.exports=r},function(t,e,n){"use strict";function r(t,e){return!(!t||!e)&&(t===e||!i(t)&&(i(e)?r(t,e.parentNode):"contains"in t?t.contains(e):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(e))))}var i=n(37);t.exports=r},function(t,e,n){"use strict";function r(t){return i(t)&&3==t.nodeType}var i=n(38);t.exports=r},function(t,e,n){"use strict";function r(t){var e=t?t.ownerDocument||t:document,n=e.defaultView||window;return!(!t||!("function"==typeof n.Node?t instanceof n.Node:"object"==typeof t&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName))}t.exports=r},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 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)}function o(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",n=arguments[1],o=n||e+"Subscription",l=function(t){function n(a,o){r(this,n);var s=i(this,t.call(this,a,o));return s[e]=a.store,s}return a(n,t),n.prototype.getChildContext=function(){var t;return t={},t[e]=this[e],t[o]=null,t},n.prototype.render=function(){return s.Children.only(this.props.children)},n}(s.Component);return l.propTypes={store:c.a.isRequired,children:u.a.element.isRequired},l.childContextTypes=(t={},t[e]=c.a.isRequired,t[o]=c.b,t),l}e.a=o;var s=n(0),l=(n.n(s),n(1)),u=n.n(l),c=n(19);n(11);e.b=o()},function(t,e,n){"use strict";function r(){}var i=n(41);t.exports=function(){function t(t,e,n,r,a,o){if(o!==i){var s=new Error("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");throw s.name="Invariant Violation",s}}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";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(t,e,n){"use strict";function r(t,e,n){if("string"!=typeof e){if(f){var d=c(e);d&&d!==f&&r(t,d,n)}var h=s(e);l&&(h=h.concat(l(e)));for(var p=0;p<h.length;++p){var v=h[p];if(!(i[v]||a[v]||n&&n[v])){var g=u(e,v);try{o(t,v,g)}catch(t){}}}return t}return t}var i={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},a={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,s=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,f=c&&c(Object);t.exports=r},function(t,e,n){"use strict";var r=function(t,e,n,r,i,a,o,s){if(!t){var l;if(void 0===e)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,a,o,s],c=0;l=new Error(e.replace(/%s/g,function(){return u[c++]})),l.name="Invariant Violation"}throw l.framesToPop=1,l}};t.exports=r},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=a,t=a},notify:function(){for(var n=t=e,r=0;r<n.length;r++)n[r]()},get:function(){return e},subscribe:function(n){var r=!0;return e===t&&(e=t.slice()),e.push(n),function(){r&&t!==a&&(r=!1,e===t&&(e=t.slice()),e.splice(e.indexOf(n),1))}}}}n.d(e,"a",function(){return s});var a=null,o={notify:function(){}},s=function(){function t(e,n,i){r(this,t),this.store=e,this.parentSub=n,this.onStateChange=i,this.unsubscribe=null,this.listeners=o}return t.prototype.addNestedSub=function(t){return this.trySubscribe(),this.listeners.subscribe(t)},t.prototype.notifyNestedSubs=function(){this.listeners.notify()},t.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},t.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=i())},t.prototype.tryUnsubscribe=function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null,this.listeners.clear(),this.listeners=o)},t}()},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,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 a(t,e){return t===e}var o=n(20),s=n(46),l=n(47),u=n(62),c=n(63),f=n(64),d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t};e.a=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.connectHOC,n=void 0===e?o.a:e,h=t.mapStateToPropsFactories,p=void 0===h?u.a:h,v=t.mapDispatchToPropsFactories,g=void 0===v?l.a:v,m=t.mergePropsFactories,y=void 0===m?c.a:m,b=t.selectorFactory,_=void 0===b?f.a:b;return function(t,e,o){var l=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},u=l.pure,c=void 0===u||u,f=l.areStatesEqual,h=void 0===f?a:f,v=l.areOwnPropsEqual,m=void 0===v?s.a:v,b=l.areStatePropsEqual,C=void 0===b?s.a:b,x=l.areMergedPropsEqual,S=void 0===x?s.a:x,w=r(l,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),T=i(t,p,"mapStateToProps"),k=i(e,g,"mapDispatchToProps"),P=i(o,y,"mergeProps");return n(_,d({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:T,initMapDispatchToProps:k,initMergeProps:P,pure:c,areStatesEqual:h,areOwnPropsEqual:m,areStatePropsEqual:C,areMergedPropsEqual:S},w))}}()},function(t,e,n){"use strict";function r(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!==t&&e!==e}function i(t,e){if(r(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),i=Object.keys(e);if(n.length!==i.length)return!1;for(var o=0;o<n.length;o++)if(!a.call(e,n[o])||!r(t[n[o]],e[n[o]]))return!1;return!0}e.a=i;var a=Object.prototype.hasOwnProperty},function(t,e,n){"use strict";function r(t){return"function"==typeof t?Object(s.b)(t,"mapDispatchToProps"):void 0}function i(t){return t?void 0:Object(s.a)(function(t){return{dispatch:t}})}function a(t){return t&&"object"==typeof t?Object(s.a)(function(e){return Object(o.bindActionCreators)(t,e)}):void 0}var o=n(12),s=n(25);e.a=[r,i,a]},function(t,e,n){"use strict";function r(t){return null==t?void 0===t?l:s:u&&u in Object(t)?Object(a.a)(t):Object(o.a)(t)}var i=n(22),a=n(51),o=n(52),s="[object Null]",l="[object Undefined]",u=i.a?i.a.toStringTag:void 0;e.a=r},function(t,e,n){"use strict";var r=n(50),i="object"==typeof self&&self&&self.Object===Object&&self,a=r.a||i||Function("return this")();e.a=a},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(e,n(14))},function(t,e,n){"use strict";function r(t){var e=o.call(t,l),n=t[l];try{t[l]=void 0;var r=!0}catch(t){}var i=s.call(t);return r&&(e?t[l]=n:delete t[l]),i}var i=n(22),a=Object.prototype,o=a.hasOwnProperty,s=a.toString,l=i.a?i.a.toStringTag:void 0;e.a=r},function(t,e,n){"use strict";function r(t){return a.call(t)}var i=Object.prototype,a=i.toString;e.a=r},function(t,e,n){"use strict";var r=n(54),i=Object(r.a)(Object.getPrototypeOf,Object);e.a=i},function(t,e,n){"use strict";function r(t,e){return function(n){return t(e(n))}}e.a=r},function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.a=r},function(t,e,n){"use strict";(function(t,r){var i,a=n(58);i="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==t?t:r;var o=Object(a.a)(i);e.a=o}).call(e,n(14),n(57)(t))},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}e.a=r},function(t,e,n){"use strict";function r(t,e){var n=e&&e.type;return"Given action "+(n&&'"'+n.toString()+'"'||"an action")+', reducer "'+t+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function i(t){Object.keys(t).forEach(function(e){var n=t[e];if(void 0===n(void 0,{type:o.a.INIT}))throw new Error('Reducer "'+e+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===n(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+e+"\" returned undefined when probed with a random type. Don't try to handle "+o.a.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function a(t){for(var e=Object.keys(t),n={},a=0;a<e.length;a++){var o=e[a];"function"==typeof t[o]&&(n[o]=t[o])}var s=Object.keys(n),l=void 0;try{i(n)}catch(t){l=t}return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments[1];if(l)throw l;for(var i=!1,a={},o=0;o<s.length;o++){var u=s[o],c=n[u],f=t[u],d=c(f,e);if(void 0===d){var h=r(u,e);throw new Error(h)}a[u]=d,i=i||d!==f}return i?a:t}}e.a=a;var o=n(21);n(13),n(23)},function(t,e,n){"use strict";function r(t,e){return function(){return e(t.apply(void 0,arguments))}}function i(t,e){if("function"==typeof t)return r(t,e);if("object"!=typeof t||null===t)throw new Error("bindActionCreators expected an object or a function, instead received "+(null===t?"null":typeof t)+'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?');for(var n=Object.keys(t),i={},a=0;a<n.length;a++){var o=n[a],s=t[o];"function"==typeof s&&(i[o]=r(s,e))}return i}e.a=i},function(t,e,n){"use strict";function r(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return function(n,r,o){var s=t(n,r,o),l=s.dispatch,u=[],c={getState:s.getState,dispatch:function(t){return l(t)}};return u=e.map(function(t){return t(c)}),l=i.a.apply(void 0,u)(s.dispatch),a({},s,{dispatch:l})}}}e.a=r;var i=n(24),a=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}},function(t,e,n){"use strict";function r(t){return"function"==typeof t?Object(a.b)(t,"mapStateToProps"):void 0}function i(t){return t?void 0:Object(a.a)(function(){return{}})}var a=n(25);e.a=[r,i]},function(t,e,n){"use strict";function r(t,e,n){return s({},n,t,e)}function i(t){return function(e,n){var r=(n.displayName,n.pure),i=n.areMergedPropsEqual,a=!1,o=void 0;return function(e,n,s){var l=t(e,n,s);return a?r&&i(l,o)||(o=l):(a=!0,o=l),o}}}function a(t){return"function"==typeof t?i(t):void 0}function o(t){return t?void 0:function(){return r}}var s=(n(26),Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t});e.a=[a,o]},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,n,r){return function(i,a){return n(t(i,a),e(r,a),a)}}function a(t,e,n,r,i){function a(i,a){return p=i,v=a,g=t(p,v),m=e(r,v),y=n(g,m,v),h=!0,y}function o(){return g=t(p,v),e.dependsOnOwnProps&&(m=e(r,v)),y=n(g,m,v)}function s(){return t.dependsOnOwnProps&&(g=t(p,v)),e.dependsOnOwnProps&&(m=e(r,v)),y=n(g,m,v)}function l(){var e=t(p,v),r=!d(e,g);return g=e,r&&(y=n(g,m,v)),y}function u(t,e){var n=!f(e,v),r=!c(t,p);return p=t,v=e,n&&r?o():n?s():r?l():y}var c=i.areStatesEqual,f=i.areOwnPropsEqual,d=i.areStatePropsEqual,h=!1,p=void 0,v=void 0,g=void 0,m=void 0,y=void 0;return function(t,e){return h?u(t,e):a(t,e)}}function o(t,e){var n=e.initMapStateToProps,o=e.initMapDispatchToProps,s=e.initMergeProps,l=r(e,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),u=n(t,l),c=o(t,l),f=s(t,l);return(l.pure?a:i)(u,c,f,t,l)}e.a=o;n(65)},function(t,e,n){"use strict";n(11)},,,function(t,e,n){"use strict";t.exports=n(69)},function(t,e,n){t.exports=function e(r){"use strict";function i(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);ae(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function a(t){return null===t||void 0===t?null:(t=Ce&&t[Ce]||t["@@iterator"],"function"==typeof t?t:null)}function o(t){var e=t.type;if("function"==typeof e)return e.displayName||e.name;if("string"==typeof e)return e;switch(e){case ye:return"AsyncMode";case me:return"Context.Consumer";case he:return"ReactFragment";case de:return"ReactPortal";case ve:return"Profiler("+t.pendingProps.id+")";case ge:return"Context.Provider";case pe:return"StrictMode";case _e:return"Timeout"}if("object"==typeof e&&null!==e)switch(e.$$typeof){case be:return t=e.render.displayName||e.render.name||"",""!==t?"ForwardRef("+t+")":"ForwardRef"}return null}function s(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(e=e.return,0!=(2&e.effectTag))return 1}return 3===e.tag?2:3}function l(t){2!==s(t)&&i("188")}function u(t){var e=t.alternate;if(!e)return e=s(t),3===e&&i("188"),1===e?null:t;for(var n=t,r=e;;){var a=n.return,o=a?a.alternate:null;if(!a||!o)break;if(a.child===o.child){for(var u=a.child;u;){if(u===n)return l(a),t;if(u===r)return l(a),e;u=u.sibling}i("188")}if(n.return!==r.return)n=a,r=o;else{u=!1;for(var c=a.child;c;){if(c===n){u=!0,n=a,r=o;break}if(c===r){u=!0,r=a,n=o;break}c=c.sibling}if(!u){for(c=o.child;c;){if(c===n){u=!0,n=o,r=a;break}if(c===r){u=!0,r=o,n=a;break}c=c.sibling}u||i("189")}}n.alternate!==r&&i("190")}return 3!==n.tag&&i("188"),n.stateNode.current===n?t:e}function c(t){if(!(t=u(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function f(t){if(!(t=u(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child&&4!==e.tag)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}function d(t){var e="";do{t:switch(t.tag){case 0:case 1:case 2:case 5:var n=t._debugOwner,r=t._debugSource,i=o(t),a=null;n&&(a=o(n)),n=r,i="\n in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":a?" (created by "+a+")":"");break t;default:i=""}e+=i,t=t.return}while(t);return e}function h(t){return{current:t}}function p(t){0>cn||(t.current=un[cn],un[cn]=null,cn--)}function v(t,e){cn++,un[cn]=t.current,t.current=e}function g(t){return y(t)?hn:fn.current}function m(t,e){var n=t.type.contextTypes;if(!n)return se;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,a={};for(i in n)a[i]=e[i];return r&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=a),a}function y(t){return 2===t.tag&&null!=t.type.childContextTypes}function b(t){y(t)&&(p(dn,t),p(fn,t))}function _(t){p(dn,t),p(fn,t)}function C(t,e,n){fn.current!==se&&i("168"),v(fn,e,t),v(dn,n,t)}function x(t,e){var n=t.stateNode,r=t.type.childContextTypes;if("function"!=typeof n.getChildContext)return e;n=n.getChildContext();for(var a in n)a in r||i("108",o(t)||"Unknown",a);return ie({},e,n)}function S(t){if(!y(t))return!1;var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||se,hn=fn.current,v(fn,e,t),v(dn,dn.current,t),!0}function w(t,e){var n=t.stateNode;if(n||i("169"),e){var r=x(t,hn);n.__reactInternalMemoizedMergedChildContext=r,p(dn,t),p(fn,t),v(fn,r,t)}else p(dn,t);v(dn,e,t)}function T(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=e,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function k(t,e,n){var r=t.alternate;return null===r?(r=new T(t.tag,e,t.key,t.mode),r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,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 P(t,e,n){var r=t.type,a=t.key;if(t=t.props,"function"==typeof r)var o=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)o=5;else switch(r){case he:return K(t.children,e,n,a);case ye:o=11,e|=3;break;case pe:o=11,e|=2;break;case ve:return r=new T(15,t,a,4|e),r.type=ve,r.expirationTime=n,r;case _e:o=16,e|=2;break;default:t:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case ge:o=13;break t;case me:o=12;break t;case be:o=14;break t;default:i("130",null==r?r:typeof r,"")}o=void 0}}return e=new T(o,t,a,e),e.type=r,e.expirationTime=n,e}function K(t,e,n,r){return t=new T(10,t,r,e),t.expirationTime=n,t}function F(t,e,n){return t=new T(6,t,null,e),t.expirationTime=n,t}function E(t,e,n){return e=new T(4,null!==t.children?t.children:[],t.key,e),e.expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function N(t){return function(e){try{return t(e)}catch(t){}}}function I(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);pn=N(function(t){return e.onCommitFiberRoot(n,t)}),vn=N(function(t){return e.onCommitFiberUnmount(n,t)})}catch(t){}return!0}function R(t){"function"==typeof pn&&pn(t)}function D(t){"function"==typeof vn&&vn(t)}function M(t){return{expirationTime:0,baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function O(t){return{expirationTime:t.expirationTime,baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function A(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function U(t,e,n){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e),(0===t.expirationTime||t.expirationTime>n)&&(t.expirationTime=n)}function L(t,e,n){var r=t.alternate;if(null===r){var i=t.updateQueue,a=null;null===i&&(i=t.updateQueue=M(t.memoizedState))}else i=t.updateQueue,a=r.updateQueue,null===i?null===a?(i=t.updateQueue=M(t.memoizedState),a=r.updateQueue=M(r.memoizedState)):i=t.updateQueue=O(a):null===a&&(a=r.updateQueue=O(i));null===a||i===a?U(i,e,n):null===i.lastUpdate||null===a.lastUpdate?(U(i,e,n),U(a,e,n)):(U(i,e,n),a.lastUpdate=e)}function G(t,e,n){var r=t.updateQueue;r=null===r?t.updateQueue=M(t.memoizedState):z(t,r),null===r.lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=e:(r.lastCapturedUpdate.next=e,r.lastCapturedUpdate=e),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function z(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=O(e)),e}function B(t,e,n,r,i,a){switch(n.tag){case 1:return t=n.payload,"function"==typeof t?t.call(a,r,i):t;case 3:t.effectTag=-1025&t.effectTag|64;case 0:if(t=n.payload,null===(i="function"==typeof t?t.call(a,r,i):t)||void 0===i)break;return ie({},r,i);case 2:gn=!0}return r}function H(t,e,n,r,i){if(gn=!1,!(0===e.expirationTime||e.expirationTime>i)){e=z(t,e);for(var a=e.baseState,o=null,s=0,l=e.firstUpdate,u=a;null!==l;){var c=l.expirationTime;c>i?(null===o&&(o=l,a=u),(0===s||s>c)&&(s=c)):(u=B(t,e,l,u,n,r),null!==l.callback&&(t.effectTag|=32,l.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=l:(e.lastEffect.nextEffect=l,e.lastEffect=l))),l=l.next}for(c=null,l=e.firstCapturedUpdate;null!==l;){var f=l.expirationTime;f>i?(null===c&&(c=l,null===o&&(a=u)),(0===s||s>f)&&(s=f)):(u=B(t,e,l,u,n,r),null!==l.callback&&(t.effectTag|=32,l.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=l:(e.lastCapturedEffect.nextEffect=l,e.lastCapturedEffect=l))),l=l.next}null===o&&(e.lastUpdate=null),null===c?e.lastCapturedUpdate=null:t.effectTag|=32,null===o&&null===c&&(a=u),e.baseState=a,e.firstUpdate=o,e.firstCapturedUpdate=c,e.expirationTime=s,t.memoizedState=u}}function j(t,e){"function"!=typeof t&&i("191",t),t.call(e)}function W(t,e,n){for(null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),t=e.firstEffect,e.firstEffect=e.lastEffect=null;null!==t;){var r=t.callback;null!==r&&(t.callback=null,j(r,n)),t=t.nextEffect}for(t=e.firstCapturedEffect,e.firstCapturedEffect=e.lastCapturedEffect=null;null!==t;)e=t.callback,null!==e&&(t.callback=null,j(e,n)),t=t.nextEffect}function V(t,e){return{value:t,source:e,stack:d(e)}}function q(t){var e=t.type._context;Ae?(v(bn,e._changedBits,t),v(yn,e._currentValue,t),v(mn,t,t),e._currentValue=t.pendingProps.value,e._changedBits=t.stateNode):(v(bn,e._changedBits2,t),v(yn,e._currentValue2,t),v(mn,t,t),e._currentValue2=t.pendingProps.value,e._changedBits2=t.stateNode)}function Q(t){var e=bn.current,n=yn.current;p(mn,t),p(yn,t),p(bn,t),t=t.type._context,Ae?(t._currentValue=n,t._changedBits=e):(t._currentValue2=n,t._changedBits2=e)}function Y(t){return t===_n&&i("174"),t}function X(t,e){v(Sn,e,t),v(xn,t,t),v(Cn,_n,t),e=Se(e),p(Cn,t),v(Cn,e,t)}function $(t){p(Cn,t),p(xn,t),p(Sn,t)}function J(t){xn.current===t&&(p(Cn,t),p(xn,t))}function Z(t,e,n){var r=t.memoizedState;e=e(n,r),r=null===e||void 0===e?r:ie({},r,e),t.memoizedState=r,null!==(t=t.updateQueue)&&0===t.expirationTime&&(t.baseState=r)}function tt(t,e,n,r,i,a){var o=t.stateNode;return t=t.type,"function"==typeof o.shouldComponentUpdate?o.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!le(e,n)||!le(r,i))}function et(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&wn.enqueueReplaceState(e,e.state,null)}function nt(t,e){var n=t.type,r=t.stateNode,i=t.pendingProps,a=g(t);r.props=i,r.state=t.memoizedState,r.refs=se,r.context=m(t,a),a=t.updateQueue,null!==a&&(H(t,a,i,r,e),r.state=t.memoizedState),a=t.type.getDerivedStateFromProps,"function"==typeof a&&(Z(t,a,i),r.state=t.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&wn.enqueueReplaceState(r,r.state,null),null!==(a=t.updateQueue)&&(H(t,a,i,r,e),r.state=t.memoizedState)),"function"==typeof r.componentDidMount&&(t.effectTag|=4)}function rt(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var r=void 0;n&&(2!==n.tag&&i("110"),r=n.stateNode),r||i("147",t);var a=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===a?e.ref:(e=function(t){var e=r.refs===se?r.refs={}:r.refs;null===t?delete e[a]:e[a]=t},e._stringRef=a,e)}"string"!=typeof t&&i("148"),n._owner||i("254",t)}return t}function it(t,e){"textarea"!==t.type&&i("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function at(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function o(t,e,n){return t=k(t,e,n),t.index=0,t.sibling=null,t}function s(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index,r<n?(e.effectTag=2,n):r):(e.effectTag=2,n):n}function l(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?(e=F(n,t.mode,r),e.return=t,e):(e=o(e,n,r),e.return=t,e)}function c(t,e,n,r){return null!==e&&e.type===n.type?(r=o(e,n.props,r),r.ref=rt(t,e,n),r.return=t,r):(r=P(n,t.mode,r),r.ref=rt(t,e,n),r.return=t,r)}function f(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?(e=E(n,t.mode,r),e.return=t,e):(e=o(e,n.children||[],r),e.return=t,e)}function d(t,e,n,r,i){return null===e||10!==e.tag?(e=K(n,t.mode,r,i),e.return=t,e):(e=o(e,n,r),e.return=t,e)}function h(t,e,n){if("string"==typeof e||"number"==typeof e)return e=F(""+e,t.mode,n),e.return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case fe:return n=P(e,t.mode,n),n.ref=rt(t,null,e),n.return=t,n;case de:return e=E(e,t.mode,n),e.return=t,e}if(Tn(e)||a(e))return e=K(e,t.mode,n,null),e.return=t,e;it(t,e)}return null}function p(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case fe:return n.key===i?n.type===he?d(t,e,n.props.children,r,i):c(t,e,n,r):null;case de:return n.key===i?f(t,e,n,r):null}if(Tn(n)||a(n))return null!==i?null:d(t,e,n,r,null);it(t,n)}return null}function v(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return t=t.get(n)||null,u(e,t,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case fe:return t=t.get(null===r.key?n:r.key)||null,r.type===he?d(e,t,r.props.children,i,r.key):c(e,t,r,i);case de:return t=t.get(null===r.key?n:r.key)||null,f(e,t,r,i)}if(Tn(r)||a(r))return t=t.get(n)||null,d(e,t,r,i,null);it(e,r)}return null}function g(i,a,o,l){for(var u=null,c=null,f=a,d=a=0,g=null;null!==f&&d<o.length;d++){f.index>d?(g=f,f=null):g=f.sibling;var m=p(i,f,o[d],l);if(null===m){null===f&&(f=g);break}t&&f&&null===m.alternate&&e(i,f),a=s(m,a,d),null===c?u=m:c.sibling=m,c=m,f=g}if(d===o.length)return n(i,f),u;if(null===f){for(;d<o.length;d++)(f=h(i,o[d],l))&&(a=s(f,a,d),null===c?u=f:c.sibling=f,c=f);return u}for(f=r(i,f);d<o.length;d++)(g=v(f,i,d,o[d],l))&&(t&&null!==g.alternate&&f.delete(null===g.key?d:g.key),a=s(g,a,d),null===c?u=g:c.sibling=g,c=g);return t&&f.forEach(function(t){return e(i,t)}),u}function m(o,l,u,c){var f=a(u);"function"!=typeof f&&i("150"),null==(u=f.call(u))&&i("151");for(var d=f=null,g=l,m=l=0,y=null,b=u.next();null!==g&&!b.done;m++,b=u.next()){g.index>m?(y=g,g=null):y=g.sibling;var _=p(o,g,b.value,c);if(null===_){g||(g=y);break}t&&g&&null===_.alternate&&e(o,g),l=s(_,l,m),null===d?f=_:d.sibling=_,d=_,g=y}if(b.done)return n(o,g),f;if(null===g){for(;!b.done;m++,b=u.next())null!==(b=h(o,b.value,c))&&(l=s(b,l,m),null===d?f=b:d.sibling=b,d=b);return f}for(g=r(o,g);!b.done;m++,b=u.next())null!==(b=v(g,o,m,b.value,c))&&(t&&null!==b.alternate&&g.delete(null===b.key?m:b.key),l=s(b,l,m),null===d?f=b:d.sibling=b,d=b);return t&&g.forEach(function(t){return e(o,t)}),f}return function(t,r,s,u){var c="object"==typeof s&&null!==s&&s.type===he&&null===s.key;c&&(s=s.props.children);var f="object"==typeof s&&null!==s;if(f)switch(s.$$typeof){case fe:t:{for(f=s.key,c=r;null!==c;){if(c.key===f){if(10===c.tag?s.type===he:c.type===s.type){n(t,c.sibling),r=o(c,s.type===he?s.props.children:s.props,u),r.ref=rt(t,c,s),r.return=t,t=r;break t}n(t,c);break}e(t,c),c=c.sibling}s.type===he?(r=K(s.props.children,t.mode,u,s.key),r.return=t,t=r):(u=P(s,t.mode,u),u.ref=rt(t,r,s),u.return=t,t=u)}return l(t);case de:t:{for(c=s.key;null!==r;){if(r.key===c){if(4===r.tag&&r.stateNode.containerInfo===s.containerInfo&&r.stateNode.implementation===s.implementation){n(t,r.sibling),r=o(r,s.children||[],u),r.return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}r=E(s,t.mode,u),r.return=t,t=r}return l(t)}if("string"==typeof s||"number"==typeof s)return s=""+s,null!==r&&6===r.tag?(n(t,r.sibling),r=o(r,s,u),r.return=t,t=r):(n(t,r),r=F(s,t.mode,u),r.return=t,t=r),l(t);if(Tn(s))return g(t,r,s,u);if(a(s))return m(t,r,s,u);if(f&&it(t,s),void 0===s&&!c)switch(t.tag){case 2:case 1:u=t.type,i("152",u.displayName||u.name||"Component")}return n(t,r)}}function ot(t,e){var n=new T(5,null,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 st(t,e){switch(t.tag){case 5:return null!==(e=nn(e,t.type,t.pendingProps))&&(t.stateNode=e,!0);case 6:return null!==(e=rn(e,t.pendingProps))&&(t.stateNode=e,!0);default:return!1}}function lt(t){if(En){var e=Fn;if(e){var n=e;if(!st(t,e)){if(!(e=an(n))||!st(t,e))return t.effectTag|=2,En=!1,void(Kn=t);ot(Kn,n)}Kn=t,Fn=on(e)}else t.effectTag|=2,En=!1,Kn=t}}function ut(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;Kn=t}function ct(t){if(!Ge||t!==Kn)return!1;if(!En)return ut(t),En=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!Ne(e,t.memoizedProps))for(e=Fn;e;)ot(t,e),e=an(e);return ut(t),Fn=Kn?an(t.stateNode):null,!0}function ft(){Ge&&(Fn=Kn=null,En=!1)}function dt(t,e,n){ht(t,e,n,e.expirationTime)}function ht(t,e,n,r){e.child=null===t?Pn(e,null,n,r):kn(e,t.child,n,r)}function pt(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function vt(t,e,n,r,i){pt(t,e);var a=0!=(64&e.effectTag);if(!n&&!a)return r&&w(e,!1),bt(t,e);n=e.stateNode,ue.current=e;var o=a?null:n.render();return e.effectTag|=1,a&&(ht(t,e,null,i),e.child=null),ht(t,e,o,i),e.memoizedState=n.state,e.memoizedProps=n.props,r&&w(e,!0),e.child}function gt(t){var e=t.stateNode;e.pendingContext?C(t,e.pendingContext,e.pendingContext!==e.context):e.context&&C(t,e.context,!1),X(t,e.containerInfo)}function mt(t,e,n,r){var i=t.child;for(null!==i&&(i.return=t);null!==i;){switch(i.tag){case 12:var a=0|i.stateNode;if(i.type===e&&0!=(a&n)){for(a=i;null!==a;){var o=a.alternate;if(0===a.expirationTime||a.expirationTime>r)a.expirationTime=r,null!==o&&(0===o.expirationTime||o.expirationTime>r)&&(o.expirationTime=r);else{if(null===o||!(0===o.expirationTime||o.expirationTime>r))break;o.expirationTime=r}a=a.return}a=null}else a=i.child;break;case 13:a=i.type===t.type?null:i.child;break;default:a=i.child}if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}}function yt(t,e,n){var r=e.type._context,i=e.pendingProps,a=e.memoizedProps,o=!0;if(dn.current)o=!1;else if(a===i)return e.stateNode=0,q(e),bt(t,e);var s=i.value;if(e.memoizedProps=i,null===a)s=1073741823;else if(a.value===i.value){if(a.children===i.children&&o)return e.stateNode=0,q(e),bt(t,e);s=0}else{var l=a.value;if(l===s&&(0!==l||1/l==1/s)||l!==l&&s!==s){if(a.children===i.children&&o)return e.stateNode=0,q(e),bt(t,e);s=0}else if(s="function"==typeof r._calculateChangedBits?r._calculateChangedBits(l,s):1073741823,0===(s|=0)){if(a.children===i.children&&o)return e.stateNode=0,q(e),bt(t,e)}else mt(e,r,s,n)}return e.stateNode=s,q(e),dt(t,e,i.children),e.child}function bt(t,e){if(null!==t&&e.child!==t.child&&i("153"),null!==e.child){t=e.child;var n=k(t,t.pendingProps,t.expirationTime);for(e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,n=n.sibling=k(t,t.pendingProps,t.expirationTime),n.return=e;n.sibling=null}return e.child}function _t(t,e,n){if(0===e.expirationTime||e.expirationTime>n){switch(e.tag){case 3:gt(e);break;case 2:S(e);break;case 4:X(e,e.stateNode.containerInfo);break;case 13:q(e)}return null}switch(e.tag){case 0:null!==t&&i("155");var r=e.type,a=e.pendingProps,o=g(e);return o=m(e,o),r=r(a,o),e.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(o=e.type,e.tag=2,e.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,o=o.getDerivedStateFromProps,"function"==typeof o&&Z(e,o,a),a=S(e),r.updater=wn,e.stateNode=r,r._reactInternalFiber=e,nt(e,n),t=vt(t,e,!0,a,n)):(e.tag=1,dt(t,e,r),e.memoizedProps=a,t=e.child),t;case 1:return a=e.type,n=e.pendingProps,dn.current||e.memoizedProps!==n?(r=g(e),r=m(e,r),a=a(n,r),e.effectTag|=1,dt(t,e,a),e.memoizedProps=n,t=e.child):t=bt(t,e),t;case 2:if(a=S(e),null===t)if(null===e.stateNode){var s=e.pendingProps,l=e.type;r=g(e);var u=2===e.tag&&null!=e.type.contextTypes;o=u?m(e,r):se,s=new l(s,o),e.memoizedState=null!==s.state&&void 0!==s.state?s.state:null,s.updater=wn,e.stateNode=s,s._reactInternalFiber=e,u&&(u=e.stateNode,u.__reactInternalMemoizedUnmaskedChildContext=r,u.__reactInternalMemoizedMaskedChildContext=o),nt(e,n),r=!0}else{l=e.type,r=e.stateNode,u=e.memoizedProps,o=e.pendingProps,r.props=u;var c=r.context;s=g(e),s=m(e,s);var f=l.getDerivedStateFromProps;(l="function"==typeof f||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(u!==o||c!==s)&&et(e,r,o,s),gn=!1;var d=e.memoizedState;c=r.state=d;var h=e.updateQueue;null!==h&&(H(e,h,o,r,n),c=e.memoizedState),u!==o||d!==c||dn.current||gn?("function"==typeof f&&(Z(e,f,o),c=e.memoizedState),(u=gn||tt(e,u,o,d,c,s))?(l||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(e.effectTag|=4)):("function"==typeof r.componentDidMount&&(e.effectTag|=4),e.memoizedProps=o,e.memoizedState=c),r.props=o,r.state=c,r.context=s,r=u):("function"==typeof r.componentDidMount&&(e.effectTag|=4),r=!1)}else l=e.type,r=e.stateNode,o=e.memoizedProps,u=e.pendingProps,r.props=o,c=r.context,s=g(e),s=m(e,s),f=l.getDerivedStateFromProps,(l="function"==typeof f||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==u||c!==s)&&et(e,r,u,s),gn=!1,c=e.memoizedState,d=r.state=c,h=e.updateQueue,null!==h&&(H(e,h,u,r,n),d=e.memoizedState),o!==u||c!==d||dn.current||gn?("function"==typeof f&&(Z(e,f,u),d=e.memoizedState),(f=gn||tt(e,o,u,c,d,s))?(l||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(u,d,s),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(u,d,s)),"function"==typeof r.componentDidUpdate&&(e.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof r.componentDidUpdate||o===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=256),e.memoizedProps=u,e.memoizedState=d),r.props=u,r.state=d,r.context=s,r=f):("function"!=typeof r.componentDidUpdate||o===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===t.memoizedProps&&c===t.memoizedState||(e.effectTag|=256),r=!1);return vt(t,e,r,a,n);case 3:return gt(e),a=e.updateQueue,null!==a?(r=e.memoizedState,r=null!==r?r.element:null,H(e,a,e.pendingProps,null,n),(a=e.memoizedState.element)===r?(ft(),t=bt(t,e)):(r=e.stateNode,(r=(null===t||null===t.child)&&r.hydrate)&&(Ge?(Fn=on(e.stateNode.containerInfo),Kn=e,r=En=!0):r=!1),r?(e.effectTag|=2,e.child=Pn(e,null,a,n)):(ft(),dt(t,e,a)),t=e.child)):(ft(),t=bt(t,e)),t;case 5:return r=Y(Sn.current),a=Y(Cn.current),r=we(a,e.type,r),a!==r&&(v(xn,e,e),v(Cn,r,e)),null===t&<(e),a=e.type,u=e.memoizedProps,r=e.pendingProps,o=null!==t?t.memoizedProps:null,dn.current||u!==r||((u=1&e.mode&&Ie(a,r))&&(e.expirationTime=1073741823),u&&1073741823===n)?(u=r.children,Ne(a,r)?u=null:o&&Ne(a,o)&&(e.effectTag|=16),pt(t,e),1073741823!==n&&1&e.mode&&Ie(a,r)?(e.expirationTime=1073741823,e.memoizedProps=r,t=null):(dt(t,e,u),e.memoizedProps=r,t=e.child)):t=bt(t,e),t;case 6:return null===t&<(e),e.memoizedProps=e.pendingProps,null;case 16:return null;case 4:return X(e,e.stateNode.containerInfo),a=e.pendingProps,dn.current||e.memoizedProps!==a?(null===t?e.child=kn(e,null,a,n):dt(t,e,a),e.memoizedProps=a,t=e.child):t=bt(t,e),t;case 14:return a=e.type.render,n=e.pendingProps,r=e.ref,dn.current||e.memoizedProps!==n||r!==(null!==t?t.ref:null)?(a=a(n,r),dt(t,e,a),e.memoizedProps=n,t=e.child):t=bt(t,e),t;case 10:return n=e.pendingProps,dn.current||e.memoizedProps!==n?(dt(t,e,n),e.memoizedProps=n,t=e.child):t=bt(t,e),t;case 11:return n=e.pendingProps.children,dn.current||null!==n&&e.memoizedProps!==n?(dt(t,e,n),e.memoizedProps=n,t=e.child):t=bt(t,e),t;case 15:return n=e.pendingProps,e.memoizedProps===n?t=bt(t,e):(dt(t,e,n.children),e.memoizedProps=n,t=e.child),t;case 13:return yt(t,e,n);case 12:t:if(r=e.type,o=e.pendingProps,u=e.memoizedProps,a=Ae?r._currentValue:r._currentValue2,s=Ae?r._changedBits:r._changedBits2,dn.current||0!==s||u!==o){if(e.memoizedProps=o,l=o.unstable_observedBits,void 0!==l&&null!==l||(l=1073741823),e.stateNode=l,0!=(s&l))mt(e,r,s,n);else if(u===o){t=bt(t,e);break t}n=o.children,n=n(a),e.effectTag|=1,dt(t,e,n),t=e.child}else t=bt(t,e);return t;default:i("156")}}function Ct(t){t.effectTag|=4}function xt(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)Ke(t,n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}}function St(t,e){var n=e.pendingProps;switch(e.tag){case 1:return null;case 2:return b(e),null;case 3:return $(e),_(e),n=e.stateNode,n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==t&&null!==t.child||(ct(e),e.effectTag&=-3),Nn(e),null;case 5:J(e);var r=Y(Sn.current),a=e.type;if(null!==t&&null!=e.stateNode){var o=t.memoizedProps,s=e.stateNode,l=Y(Cn.current);s=Ee(s,a,o,n,r,l),In(t,e,s,a,o,n,r,l),t.ref!==e.ref&&(e.effectTag|=128)}else{if(!n)return null===e.stateNode&&i("166"),null;t=Y(Cn.current),ct(e)?(Ge||i("175"),n=sn(e.stateNode,e.type,e.memoizedProps,r,t,e),e.updateQueue=n,null!==n&&Ct(e)):(o=Pe(a,n,r,t,e),xt(o,e),Fe(o,a,n,r,t)&&Ct(e),e.stateNode=o),null!==e.ref&&(e.effectTag|=128)}return null;case 6:if(t&&null!=e.stateNode)Rn(t,e,t.memoizedProps,n);else{if("string"!=typeof n)return null===e.stateNode&&i("166"),null;r=Y(Sn.current),a=Y(Cn.current),ct(e)?(Ge||i("176"),ln(e.stateNode,e.memoizedProps,e)&&Ct(e)):e.stateNode=Re(n,r,a,e)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return $(e),Nn(e),null;case 13:return Q(e),null;case 12:return null;case 0:i("167");default:i("156")}}function wt(t,e){var n=e.source;null===e.stack&&null!==n&&d(n),null!==n&&o(n),e=e.value,null!==t&&2===t.tag&&o(t);try{e&&e.suppressReactErrorLogging||console.error(e)}catch(t){t&&t.suppressReactErrorLogging||console.error(t)}}function Tt(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){Gt(t,e)}else e.current=null}function kt(t){switch("function"==typeof D&&D(t),t.tag){case 2:Tt(t);var e=t.stateNode;if("function"==typeof e.componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){Gt(t,e)}break;case 5:Tt(t);break;case 4:Ue?Et(t):Le&&Le&&(t=t.stateNode.containerInfo,e=Je(t),en(t,e))}}function Pt(t){for(var e=t;;)if(kt(e),null===e.child||Ue&&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 Kt(t){return 5===t.tag||3===t.tag||4===t.tag}function Ft(t){if(Ue){t:{for(var e=t.return;null!==e;){if(Kt(e)){var n=e;break t}e=e.return}i("160"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:i("161")}16&n.effectTag&&(Xe(e),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||Kt(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 a=t;;){if(5===a.tag||6===a.tag)n?r?qe(e,a.stateNode,n):Ve(e,a.stateNode,n):r?Be(e,a.stateNode):ze(e,a.stateNode);else if(4!==a.tag&&null!==a.child){a.child.return=a,a=a.child;continue}if(a===t)break;for(;null===a.sibling;){if(null===a.return||a.return===t)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}}function Et(t){for(var e=t,n=!1,r=void 0,a=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&i("160"),n.tag){case 5:r=n.stateNode,a=!1;break t;case 3:case 4:r=n.stateNode.containerInfo,a=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag)Pt(e),a?Ye(r,e.stateNode):Qe(r,e.stateNode);else if(4===e.tag?r=e.stateNode.containerInfo:kt(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;e=e.return,4===e.tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}function Nt(t,e){if(Ue)switch(e.tag){case 2:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps;t=null!==t?t.memoizedProps:r;var a=e.type,o=e.updateQueue;e.updateQueue=null,null!==o&&We(n,o,a,t,r,e)}break;case 6:null===e.stateNode&&i("162"),n=e.memoizedProps,He(e.stateNode,null!==t?t.memoizedProps:n,n);break;case 3:case 15:case 16:break;default:i("163")}else if(Le)switch(e.tag){case 2:case 5:case 6:break;case 3:case 4:e=e.stateNode,en(e.containerInfo,e.pendingChildren);break;default:i("163")}}function It(t,e,n){n=A(n),n.tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){ee(r),wt(t,e)},n}function Rt(t,e,n){n=A(n),n.tag=3;var r=t.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===Qn?Qn=new Set([this]):Qn.add(this);var n=e.value,r=e.stack;wt(t,e),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function Dt(t,e,n,r,i,a){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=V(r,n),t=e;do{switch(t.tag){case 3:return t.effectTag|=1024,r=It(t,r,a),void G(t,r,a);case 2:if(e=r,n=t.stateNode,0==(64&t.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===Qn||!Qn.has(n)))return t.effectTag|=1024,r=Rt(t,e,a),void G(t,r,a)}t=t.return}while(null!==t)}function Mt(t){switch(t.tag){case 2:b(t);var e=t.effectTag;return 1024&e?(t.effectTag=-1025&e|64,t):null;case 3:return $(t),_(t),e=t.effectTag,1024&e?(t.effectTag=-1025&e|64,t):null;case 5:return J(t),null;case 16:return e=t.effectTag,1024&e?(t.effectTag=-1025&e|64,t):null;case 4:return $(t),null;case 13:return Q(t),null;default:return null}}function Ot(){if(null!==Gn)for(var t=Gn.return;null!==t;){var e=t;switch(e.tag){case 2:b(e);break;case 3:$(e),_(e);break;case 5:J(e);break;case 4:$(e);break;case 13:Q(e)}t=t.return}zn=null,Bn=0,Hn=-1,jn=!1,Gn=null,qn=!1}function At(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(512&t.effectTag)){e=St(e,t,Bn);var i=t;if(1073741823===Bn||1073741823!==i.expirationTime){var a=0;switch(i.tag){case 3:case 2:var o=i.updateQueue;null!==o&&(a=o.expirationTime)}for(o=i.child;null!==o;)0!==o.expirationTime&&(0===a||a>o.expirationTime)&&(a=o.expirationTime),o=o.sibling;i.expirationTime=a}if(null!==e)return e;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t)),null!==r)return r;if(null===n){qn=!0;break}t=n}else{if(null!==(t=Mt(t,jn,Bn)))return t.effectTag&=511,t;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;t=n}}return null}function Ut(t){var e=_t(t.alternate,t,Bn);return null===e&&(e=At(t)),ue.current=null,e}function Lt(t,e,n){Ln&&i("243"),Ln=!0,e===Bn&&t===zn&&null!==Gn||(Ot(),zn=t,Bn=e,Hn=-1,Gn=k(zn.current,null,Bn),t.pendingCommitExpirationTime=0);var r=!1;for(jn=!n||Bn<=Mn;;){try{if(n)for(;null!==Gn&&!te();)Gn=Ut(Gn);else for(;null!==Gn;)Gn=Ut(Gn)}catch(e){if(null===Gn)r=!0,ee(e);else{null===Gn&&i("271"),n=Gn;var a=n.return;if(null===a){r=!0,ee(e);break}Dt(t,a,n,e,jn,Bn,On),Gn=At(n)}}break}if(Ln=!1,r)return null;if(null===Gn){if(qn)return t.pendingCommitExpirationTime=e,t.current.alternate;jn&&i("262"),0<=Hn&&setTimeout(function(){var e=t.current.expirationTime;0!==e&&(0===t.remainingExpirationTime||t.remainingExpirationTime<e)&&Vt(t,e)},Hn),ne(t.current.expirationTime)}return null}function Gt(t,e){var n;t:{for(Ln&&!Vn&&i("263"),n=t.return;null!==n;){switch(n.tag){case 2:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===Qn||!Qn.has(r))){t=V(e,t),t=Rt(n,t,1),L(n,t,1),Bt(n,1),n=void 0;break t}break;case 3:t=V(e,t),t=It(n,t,1),L(n,t,1),Bt(n,1),n=void 0;break t}n=n.return}3===t.tag&&(n=V(e,t),n=It(t,n,1),L(t,n,1),Bt(t,1)),n=void 0}return n}function zt(t,e){return t=0!==Un?Un:Ln?Vn?1:Bn:1&e.mode?ur?2+10*(1+((t-2+15)/10|0)):2+25*(1+((t-2+500)/25|0)):1,ur&&(0===nr||t>nr)&&(nr=t),t}function Bt(t,e){for(;null!==t;){if((0===t.expirationTime||t.expirationTime>e)&&(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;!Ln&&0!==Bn&&e<Bn&&Ot();var r=n.current.expirationTime;Ln&&!Vn&&zn===n||Vt(n,r),dr>fr&&i("185")}t=t.return}}function Ht(){return On=Oe()-Dn,Mn=2+(On/10|0)}function jt(t,e,n,r,i){var a=Un;Un=1;try{return t(e,n,r,i)}finally{Un=a}}function Wt(t){if(0!==$n){if(t>$n)return;null!==Jn&&Me(Jn)}var e=Oe()-Dn;$n=t,Jn=De(Qt,{timeout:10*(t-2)-e})}function Vt(t,e){if(null===t.nextScheduledRoot)t.remainingExpirationTime=e,null===Xn?(Yn=Xn=t,t.nextScheduledRoot=t):(Xn=Xn.nextScheduledRoot=t,Xn.nextScheduledRoot=Yn);else{var n=t.remainingExpirationTime;(0===n||e<n)&&(t.remainingExpirationTime=e)}Zn||(sr?lr&&(tr=t,er=1,Jt(t,1,!1)):1===e?Yt():Wt(e))}function qt(){var t=0,e=null;if(null!==Xn)for(var n=Xn,r=Yn;null!==r;){var a=r.remainingExpirationTime;if(0===a){if((null===n||null===Xn)&&i("244"),r===r.nextScheduledRoot){Yn=Xn=r.nextScheduledRoot=null;break}if(r===Yn)Yn=a=r.nextScheduledRoot,Xn.nextScheduledRoot=a,r.nextScheduledRoot=null;else{if(r===Xn){Xn=n,Xn.nextScheduledRoot=Yn,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===t||a<t)&&(t=a,e=r),r===Xn)break;n=r,r=r.nextScheduledRoot}}n=tr,null!==n&&n===e&&1===t?dr++:dr=0,tr=e,er=t}function Qt(t){Xt(0,!0,t)}function Yt(){Xt(1,!1,null)}function Xt(t,e,n){if(or=n,qt(),e)for(;null!==tr&&0!==er&&(0===t||t>=er)&&(!rr||Ht()>=er);)Ht(),Jt(tr,er,!rr),qt();else for(;null!==tr&&0!==er&&(0===t||t>=er);)Jt(tr,er,!1),qt();null!==or&&($n=0,Jn=null),0!==er&&Wt(er),or=null,rr=!1,$t()}function $t(){if(dr=0,null!==cr){var t=cr;cr=null;for(var e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){ir||(ir=!0,ar=t)}}}if(ir)throw t=ar,ar=null,ir=!1,t}function Jt(t,e,n){Zn&&i("245"),Zn=!0,n?(n=t.finishedWork,null!==n?Zt(t,n,e):null!==(n=Lt(t,e,!0))&&(te()?t.finishedWork=n:Zt(t,n,e))):(n=t.finishedWork,null!==n?Zt(t,n,e):null!==(n=Lt(t,e,!1))&&Zt(t,n,e)),Zn=!1}function Zt(t,e,n){var r=t.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===cr?cr=[r]:cr.push(r),r._defer))return t.finishedWork=e,void(t.remainingExpirationTime=0);if(t.finishedWork=null,Vn=Ln=!0,n=e.stateNode,n.current===e&&i("177"),r=n.pendingCommitExpirationTime,0===r&&i("261"),n.pendingCommitExpirationTime=0,Ht(),ue.current=null,1<e.effectTag)if(null!==e.lastEffect){e.lastEffect.nextEffect=e;var a=e.firstEffect}else a=e;else a=e.firstEffect;for(Te(n.containerInfo),Wn=a;null!==Wn;){var o=!1,s=void 0;try{for(;null!==Wn;){if(256&Wn.effectTag){var l=Wn.alternate,u=Wn;switch(u.tag){case 2:if(256&u.effectTag&&null!==l){var c=l.memoizedProps,f=l.memoizedState,d=u.stateNode;d.props=u.memoizedProps,d.state=u.memoizedState;var h=d.getSnapshotBeforeUpdate(c,f);d.__reactInternalSnapshotBeforeUpdate=h}break;case 3:case 5:case 6:case 4:break;default:i("163")}}Wn=Wn.nextEffect}}catch(t){o=!0,s=t}o&&(null===Wn&&i("178"),Gt(Wn,s),null!==Wn&&(Wn=Wn.nextEffect))}for(Wn=a;null!==Wn;){l=!1,c=void 0;try{for(;null!==Wn;){var p=Wn.effectTag;if(16&p&&Ue&&Xe(Wn.stateNode),128&p){var v=Wn.alternate;if(null!==v){var g=v.ref;null!==g&&("function"==typeof g?g(null):g.current=null)}}switch(14&p){case 2:Ft(Wn),Wn.effectTag&=-3;break;case 6:Ft(Wn),Wn.effectTag&=-3,Nt(Wn.alternate,Wn);break;case 4:Nt(Wn.alternate,Wn);break;case 8:f=Wn,Ue?Et(f):Pt(f),f.return=null,f.child=null,f.alternate&&(f.alternate.child=null,f.alternate.return=null)}Wn=Wn.nextEffect}}catch(t){l=!0,c=t}l&&(null===Wn&&i("178"),Gt(Wn,c),null!==Wn&&(Wn=Wn.nextEffect))}for(ke(n.containerInfo),n.current=e,Wn=a;null!==Wn;){p=!1,v=void 0;try{for(g=r;null!==Wn;){var m=Wn.effectTag;if(36&m){var y=Wn.alternate;switch(a=Wn,l=g,a.tag){case 2:var b=a.stateNode;if(4&a.effectTag)if(null===y)b.props=a.memoizedProps,b.state=a.memoizedState,b.componentDidMount();else{var _=y.memoizedProps,C=y.memoizedState;b.props=a.memoizedProps,b.state=a.memoizedState,b.componentDidUpdate(_,C,b.__reactInternalSnapshotBeforeUpdate)}var x=a.updateQueue;null!==x&&(b.props=a.memoizedProps,b.state=a.memoizedState,W(a,x,b,l));break;case 3:var S=a.updateQueue;if(null!==S){if(c=null,null!==a.child)switch(a.child.tag){case 5:c=xe(a.child.stateNode);break;case 2:c=a.child.stateNode}W(a,S,c,l)}break;case 5:var w=a.stateNode;null===y&&4&a.effectTag&&je(w,a.type,a.memoizedProps,a);break;case 6:case 4:case 15:case 16:break;default:i("163")}}if(128&m){a=void 0;var T=Wn.ref;if(null!==T){var k=Wn.stateNode;switch(Wn.tag){case 5:a=xe(k);break;default:a=k}"function"==typeof T?T(a):T.current=a}}var P=Wn.nextEffect;Wn.nextEffect=null,Wn=P}}catch(t){p=!0,v=t}p&&(null===Wn&&i("178"),Gt(Wn,v),null!==Wn&&(Wn=Wn.nextEffect))}Ln=Vn=!1,"function"==typeof R&&R(e.stateNode),e=n.current.expirationTime,0===e&&(Qn=null),t.remainingExpirationTime=e}function te(){return!(null===or||or.timeRemaining()>hr)&&(rr=!0)}function ee(t){null===tr&&i("246"),tr.remainingExpirationTime=0,ir||(ir=!0,ar=t)}function ne(t){null===tr&&i("246"),tr.remainingExpirationTime=t}function re(t,e,n,r,a){var o=e.current;if(n){n=n._reactInternalFiber;var l;t:{for(2===s(n)&&2===n.tag||i("170"),l=n;3!==l.tag;){if(y(l)){l=l.stateNode.__reactInternalMemoizedMergedChildContext;break t}(l=l.return)||i("171")}l=l.stateNode.context}n=y(n)?x(n,l):l}else n=se;return null===e.context?e.context=n:e.pendingContext=n,e=a,a=A(r),a.payload={element:t},e=void 0===e?null:e,null!==e&&(a.callback=e),L(o,a,r),Bt(o,r),r}var ie=n(10),ae=n(8),oe=n(0),se=n(9),le=n(18),ue=oe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,ce="function"==typeof Symbol&&Symbol.for,fe=ce?Symbol.for("react.element"):60103,de=ce?Symbol.for("react.portal"):60106,he=ce?Symbol.for("react.fragment"):60107,pe=ce?Symbol.for("react.strict_mode"):60108,ve=ce?Symbol.for("react.profiler"):60114,ge=ce?Symbol.for("react.provider"):60109,me=ce?Symbol.for("react.context"):60110,ye=ce?Symbol.for("react.async_mode"):60111,be=ce?Symbol.for("react.forward_ref"):60112,_e=ce?Symbol.for("react.timeout"):60113,Ce="function"==typeof Symbol&&Symbol.iterator,xe=r.getPublicInstance,Se=r.getRootHostContext,we=r.getChildHostContext,Te=r.prepareForCommit,ke=r.resetAfterCommit,Pe=r.createInstance,Ke=r.appendInitialChild,Fe=r.finalizeInitialChildren,Ee=r.prepareUpdate,Ne=r.shouldSetTextContent,Ie=r.shouldDeprioritizeSubtree,Re=r.createTextInstance,De=r.scheduleDeferredCallback,Me=r.cancelDeferredCallback,Oe=r.now,Ae=r.isPrimaryRenderer,Ue=r.supportsMutation,Le=r.supportsPersistence,Ge=r.supportsHydration,ze=r.appendChild,Be=r.appendChildToContainer,He=r.commitTextUpdate,je=r.commitMount,We=r.commitUpdate,Ve=r.insertBefore,qe=r.insertInContainerBefore,Qe=r.removeChild,Ye=r.removeChildFromContainer,Xe=r.resetTextContent,$e=r.cloneInstance,Je=r.createContainerChildSet,Ze=r.appendChildToContainerChildSet,tn=r.finalizeContainerChildren,en=r.replaceContainerChildren,nn=r.canHydrateInstance,rn=r.canHydrateTextInstance,an=r.getNextHydratableSibling,on=r.getFirstHydratableChild,sn=r.hydrateInstance,ln=r.hydrateTextInstance;new Set;var un=[],cn=-1,fn=h(se),dn=h(!1),hn=se,pn=null,vn=null,gn=!1,mn=h(null),yn=h(null),bn=h(0),_n={},Cn=h(_n),xn=h(_n),Sn=h(_n),wn={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===s(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=Ht();r=zt(r,t);var i=A(r);i.payload=e,void 0!==n&&null!==n&&(i.callback=n),L(t,i,r),Bt(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=Ht();r=zt(r,t);var i=A(r);i.tag=1,i.payload=e,void 0!==n&&null!==n&&(i.callback=n),L(t,i,r),Bt(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=Ht();n=zt(n,t);var r=A(n);r.tag=2,void 0!==e&&null!==e&&(r.callback=e),L(t,r,n),Bt(t,n)}},Tn=Array.isArray,kn=at(!0),Pn=at(!1),Kn=null,Fn=null,En=!1,Nn=void 0,In=void 0,Rn=void 0;Ue?(Nn=function(){},In=function(t,e,n){(e.updateQueue=n)&&Ct(e)},Rn=function(t,e,n,r){n!==r&&Ct(e)}):Le?(Nn=function(t){var e=t.stateNode;if(null!==t.firstEffect){var n=e.containerInfo,r=Je(n);t:for(var i=t.child;null!==i;){if(5===i.tag||6===i.tag)Ze(r,i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break t;for(;null===i.sibling;){if(null===i.return||i.return===t)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}e.pendingChildren=r,Ct(t),tn(n,r)}},In=function(t,e,n,r,i,a,o,s){var l=null===e.firstEffect;t=t.stateNode,l&&null===n?e.stateNode=t:(n=$e(t,n,r,i,a,e,l,e.stateNode),Fe(n,r,a,o,s)&&Ct(e),e.stateNode=n,l?Ct(e):xt(n,e))},Rn=function(t,e,n,r){n!==r&&(t=Y(Sn.current),n=Y(Cn.current),e.stateNode=Re(r,t,n,e),Ct(e))}):(Nn=function(){},In=function(){},Rn=function(){});var Dn=Oe(),Mn=2,On=Dn,An=0,Un=0,Ln=!1,Gn=null,zn=null,Bn=0,Hn=-1,jn=!1,Wn=null,Vn=!1,qn=!1,Qn=null,Yn=null,Xn=null,$n=0,Jn=void 0,Zn=!1,tr=null,er=0,nr=0,rr=!1,ir=!1,ar=null,or=null,sr=!1,lr=!1,ur=!1,cr=null,fr=1e3,dr=0,hr=1,pr={updateContainerAtExpirationTime:re,createContainer:function(t,e,n){return e=new T(3,null,null,e?3:0),t={current:e,containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},e.stateNode=t},updateContainer:function(t,e,n,r){var i=e.current;return i=zt(Ht(),i),re(t,e,n,i,r)},flushRoot:function(t,e){Zn&&i("253"),tr=t,er=e,Jt(t,e,!1),Yt(),$t()},requestWork:Vt,computeUniqueAsyncExpiration:function(){var t=2+25*(1+((Ht()-2+500)/25|0));return t<=An&&(t=An+1),An=t},batchedUpdates:function(t,e){var n=sr;sr=!0;try{return t(e)}finally{(sr=n)||Zn||Yt()}},unbatchedUpdates:function(t,e){if(sr&&!lr){lr=!0;try{return t(e)}finally{lr=!1}}return t(e)},deferredUpdates:function(t){var e=Un;Un=2+25*(1+((Ht()-2+500)/25|0));try{return t()}finally{Un=e}},syncUpdates:jt,interactiveUpdates:function(t,e,n){if(ur)return t(e,n);sr||Zn||0===nr||(Xt(nr,!1,null),nr=0);var r=ur,i=sr;sr=ur=!0;try{return t(e,n)}finally{ur=r,(sr=i)||Zn||Yt()}},flushInteractiveUpdates:function(){Zn||0===nr||(Xt(nr,!1,null),nr=0)},flushControlled:function(t){var e=sr;sr=!0;try{jt(t)}finally{(sr=e)||Zn||Xt(1,!1,null)}},flushSync:function(t,e){Zn&&i("187");var n=sr;sr=!0;try{return jt(t,e)}finally{sr=n,Yt()}},getPublicRootInstance:function(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return xe(t.child.stateNode);default:return t.child.stateNode}},findHostInstance:function(t){var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?i("188"):i("268",Object.keys(t))),t=c(e),null===t?null:t.stateNode},findHostInstanceWithNoPortals:function(t){return t=f(t),null===t?null:t.stateNode},injectIntoDevTools:function(t){var e=t.findFiberByHostInstance;return I(ie({},t,{findHostInstanceByFiber:function(t){return t=c(t),null===t?null:t.stateNode},findFiberByHostInstance:function(t){return e?e(t):null}}))}};t.exports=pr.default?pr.default:pr;var vr=t.exports;return t.exports=e,vr}},function(t,e,n){"use strict";var r="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},i=n(17),a="object"===("undefined"==typeof performance?"undefined":r(performance))&&"function"==typeof performance.now,o=void 0;o=a?function(){return performance.now()}:function(){return Date.now()};var s=void 0;if(i.canUseDOM)if("function"!=typeof requestIdleCallback){var l,u=null,c=null,f=!1,d=!1,h=0,p=33,v=33;l=a?{timeRemaining:function(){return h-performance.now()}}:{timeRemaining:function(){return h-Date.now()}};var g="__reactIdleCallback$"+Math.random().toString(36).slice(2),m=function(t){if(t.source===window&&t.data===g){f=!1;var e=c;c=null,null!==e&&e(l)}};window.addEventListener("message",m,!1);var y=function(t){d=!1;var e=t-h+v;e<v&&p<v?(e<8&&(e=8),v=e<p?p:e):p=e,h=t+v,f||(f=!0,window.postMessage(g,"*"));var n=u;u=null,null!==n&&n(t)};s=function(t){return c=t,d||(d=!0,requestAnimationFrame(y)),0}}else s=requestIdleCallback;else s=function(t){return setTimeout(function(){t({timeRemaining:function(){return 1/0}})}),0};e.now=o,e.rIC=s},function(t,e,n){"use strict";function r(t){if(t[s])return t[s];for(;!t[s];){if(!t.parentNode)return null;t=t.parentNode}var e=t[s];return e.tag===i||e.tag===a?e:null}e.__esModule=!0,e.getClosestInstanceFromNode=r;var i=5,a=6,o=Math.random().toString(36).slice(2),s="__reactInternalInstance$"+o},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){n(0),n(16),n(12),n(4),n(27),t.exports=n(2)}]);