/*! For license information please see player.4.2.308.bundle.js.LICENSE.txt */ !function(e){function t(t){for(var n,i,a=t[0],o=t[1],s=0,c=[];s=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function f(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=o.trys,(i=i.length>0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function y(){for(var e=[],t=0;t";return this.type.name+"@"+e+(this.isAlive?"":" [dead]")},t.prototype.die=function(){this.isAlive&&this.state!==We.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},t.prototype.finalizeCreation=function(){this.baseFinalizeCreation()},t.prototype.aboutToDie=function(){this.baseAboutToDie()},t.prototype.finalizeDeath=function(){this.baseFinalizeDeath()},t.prototype.fireHook=function(e){this.fireInternalHook(e)},p([a.action],t.prototype,"die",null),t}(ie),oe=1,se={onError:function(e){throw e}},le=function(e){function t(t,n,r,i,a){var o=e.call(this,t,n,r,i)||this;if(o.nodeId=++oe,o.isProtectionEnabled=!0,o._autoUnbox=!0,o._isRunningAction=!1,o._hasSnapshotReaction=!1,o._observableInstanceState=0,o._cachedInitialSnapshotCreated=!1,o.unbox=o.unbox.bind(o),o._initialSnapshot=yt(a),o.identifierAttribute=t.identifierAttribute,n||(o.identifierCache=new qe),o._childNodes=t.initializeChildNodes(o,o._initialSnapshot),o.identifier=null,o.unnormalizedIdentifier=null,o.identifierAttribute&&o._initialSnapshot){var s=o._initialSnapshot[o.identifierAttribute];if(void 0===s){var l=o._childNodes[o.identifierAttribute];l&&(s=l.value)}if("string"!=typeof s&&"number"!=typeof s)throw ct("Instance identifier '"+o.identifierAttribute+"' for type '"+o.type.name+"' must be a string or a number");o.identifier=qn(s),o.unnormalizedIdentifier=s}return n?n.root.identifierCache.addNodeToCache(o):o.identifierCache.addNodeToCache(o),o}return d(t,e),t.prototype.applyPatches=function(e){this.createObservableInstanceIfNeeded(),this._applyPatches(e)},t.prototype.applySnapshot=function(e){this.createObservableInstanceIfNeeded(),this._applySnapshot(e)},t.prototype.createObservableInstanceIfNeeded=function(){0===this._observableInstanceState&&this.createObservableInstance()},t.prototype.createObservableInstance=function(){var e,t;this._observableInstanceState=1;for(var n=[],r=this.parent;r&&0===r._observableInstanceState;)n.unshift(r),r=r.parent;try{for(var o=m(n),s=o.next();!s.done;s=o.next()){s.value.createObservableInstanceIfNeeded()}}catch(t){e={error:t}}finally{try{s&&!s.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}var l,c,u=this.type;try{this.storedValue=u.createNewInstance(this._childNodes),this.preboot(),this._isRunningAction=!0,u.finalizeNewInstance(this,this.storedValue)}catch(e){throw this.state=We.DEAD,e}finally{this._isRunningAction=!1}this._observableInstanceState=2,l=this,c="snapshot",Object(a.getAtom)(l,c).trackAndCompute(),this.isRoot&&this._addSnapshotReaction(),this._childNodes=st,this.state=We.CREATED,this.fireHook(i.afterCreate),this.finalizeCreation()},Object.defineProperty(t.prototype,"root",{get:function(){var e=this.parent;return e?e.root:this},enumerable:!1,configurable:!0}),t.prototype.clearParent=function(){if(this.parent){this.fireHook(i.beforeDetach);var e=this.state;this.state=We.DETACHING;var t=this.root,n=t.environment,r=t.identifierCache.splitCache(this);try{this.parent.removeChild(this.subpath),this.baseSetParent(null,""),this.environment=n,this.identifierCache=r}finally{this.state=e}}},t.prototype.setParent=function(e,t){var n=e!==this.parent,r=t!==this.subpath;(n||r)&&(n?(this.environment=void 0,e.root.identifierCache.mergeCache(this),this.baseSetParent(e,t),this.fireHook(i.afterAttach)):r&&this.baseSetParent(this.parent,t))},t.prototype.fireHook=function(e){var t=this;this.fireInternalHook(e);var n=this.storedValue&&"object"==typeof this.storedValue&&this.storedValue[e];"function"==typeof n&&(a._allowStateChangesInsideComputed?Object(a._allowStateChangesInsideComputed)((function(){n.apply(t.storedValue)})):n.apply(this.storedValue))},Object.defineProperty(t.prototype,"snapshot",{get:function(){return yt(this.getSnapshot())},enumerable:!1,configurable:!0}),t.prototype.getSnapshot=function(){return this.isAlive?2===this._observableInstanceState?this._getActualSnapshot():this._getCachedInitialSnapshot():this._snapshotUponDeath},t.prototype._getActualSnapshot=function(){return this.type.getSnapshot(this)},t.prototype._getCachedInitialSnapshot=function(){if(!this._cachedInitialSnapshotCreated){var e=this.type,t=this._childNodes,n=this._initialSnapshot;this._cachedInitialSnapshot=e.processInitialSnapshot(t,n),this._cachedInitialSnapshotCreated=!0}return this._cachedInitialSnapshot},t.prototype.isRunningAction=function(){return!!this._isRunningAction||!this.isRoot&&this.parent.isRunningAction()},t.prototype.assertAlive=function(e){var t=l();if(!this.isAlive&&"ignore"!==t){var n=this._getAssertAliveError(e);switch(t){case"error":throw ct(n);case"warn":Tt(n)}}},t.prototype._getAssertAliveError=function(e){var t=this.getEscapedPath(!1)||this.pathUponDeath||"",n=e.subpath&&Rt(e.subpath)||"",r=e.actionContext||Te();r&&"action"!==r.type&&r.parentActionEvent&&(r=r.parentActionEvent);var i="";r&&null!=r.name&&(i=(r&&r.context&&D(r.context)||t)+"."+r.name+"()");return"You are trying to read or write to an object that is no longer part of a state tree. (Object type: '"+this.type.name+"', Path upon death: '"+t+"', Subpath: '"+n+"', Action: '"+i+"'). Either detach nodes first, or don't use objects after removing / replacing them in the tree."},t.prototype.getChildNode=function(e){this.assertAlive({subpath:e}),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildNode(this,e):this._childNodes[e]}finally{this._autoUnbox=!0}},t.prototype.getChildren=function(){this.assertAlive(st),this._autoUnbox=!1;try{return 2===this._observableInstanceState?this.type.getChildren(this):it(this._childNodes)}finally{this._autoUnbox=!0}},t.prototype.getChildType=function(e){return this.type.getChildType(e)},Object.defineProperty(t.prototype,"isProtected",{get:function(){return this.root.isProtectionEnabled},enumerable:!1,configurable:!0}),t.prototype.assertWritable=function(e){if(this.assertAlive(e),!this.isRunningAction()&&this.isProtected)throw ct("Cannot modify '"+this+"', the object is protected and can only be modified by using an action.")},t.prototype.removeChild=function(e){this.type.removeChild(this,e)},t.prototype.unbox=function(e){return e?(this.assertAlive({subpath:e.subpath||e.subpathUponDeath}),this._autoUnbox?e.value:e):e},t.prototype.toString=function(){var e=(this.isAlive?this.path:this.pathUponDeath)||"",t=this.identifier?"(id: "+this.identifier+")":"";return this.type.name+"@"+e+t+(this.isAlive?"":" [dead]")},t.prototype.finalizeCreation=function(){var e=this;this.baseFinalizeCreation((function(){var t,n;try{for(var r=m(e.getChildren()),a=r.next();!a.done;a=r.next()){a.value.finalizeCreation()}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}e.fireInternalHook(i.afterCreationFinalization)}))},t.prototype.detach=function(){if(!this.isAlive)throw ct("Error while detaching, node is not alive.");this.clearParent()},t.prototype.preboot=function(){var e=this;this._applyPatches=Ee(this.storedValue,"@APPLY_PATCHES",(function(t){t.forEach((function(t){var n=Vt(t.path);rt(e,n.slice(0,-1)).applyPatchLocally(n[n.length-1],t)}))})),this._applySnapshot=Ee(this.storedValue,"@APPLY_SNAPSHOT",(function(t){if(t!==e.snapshot)return e.type.applySnapshot(e,t)})),vt(this.storedValue,"$treenode",this),vt(this.storedValue,"toJSON",Je)},t.prototype.die=function(){this.isAlive&&this.state!==We.DETACHING&&(this.aboutToDie(),this.finalizeDeath())},t.prototype.aboutToDie=function(){0!==this._observableInstanceState&&(this.getChildren().forEach((function(e){e.aboutToDie()})),this.baseAboutToDie(),this._internalEventsEmit("dispose"),this._internalEventsClear("dispose"))},t.prototype.finalizeDeath=function(){this.getChildren().forEach((function(e){e.finalizeDeath()})),this.root.identifierCache.notifyDied(this);var e=this.snapshot;this._snapshotUponDeath=e,this._internalEventsClearAll(),this.baseFinalizeDeath()},t.prototype.onSnapshot=function(e){return this._addSnapshotReaction(),this._internalEventsRegister("snapshot",e)},t.prototype.emitSnapshot=function(e){this._internalEventsEmit("snapshot",e)},t.prototype.onPatch=function(e){return this._internalEventsRegister("patch",e)},t.prototype.emitPatch=function(e,t){if(this._internalEventsHasSubscribers("patch")){var n=g(function(e){if(!("oldValue"in e))throw ct("Patches without `oldValue` field cannot be inversed");return[Dt(e),Nt(e)]}(function(e){for(var t=[],n=1;n=0&&this.middlewares.splice(t,1)}},t.prototype.addMiddleWare=function(e,t){var n=this;void 0===t&&(t=!0);var r={handler:e,includeHooks:t};return this.middlewares?this.middlewares.push(r):this.middlewares=[r],function(){n.removeMiddleware(r)}},t.prototype.applyPatchLocally=function(e,t){this.assertWritable({subpath:e}),this.createObservableInstanceIfNeeded(),this.type.applyPatchLocally(this,e,t)},t.prototype._addSnapshotReaction=function(){var e=this;if(!this._hasSnapshotReaction){var t=Object(a.reaction)((function(){return e.snapshot}),(function(t){return e.emitSnapshot(t)}),se);this.addDisposer(t),this._hasSnapshotReaction=!0}},t.prototype._internalEventsHasSubscribers=function(e){return!!this._internalEvents&&this._internalEvents.hasSubscribers(e)},t.prototype._internalEventsRegister=function(e,t,n){return void 0===n&&(n=!1),this._internalEvents||(this._internalEvents=new xt),this._internalEvents.register(e,t,n)},t.prototype._internalEventsHas=function(e,t){return!!this._internalEvents&&this._internalEvents.has(e,t)},t.prototype._internalEventsUnregister=function(e,t){this._internalEvents&&this._internalEvents.unregister(e,t)},t.prototype._internalEventsEmit=function(e){for(var t,n=[],r=1;r0},enumerable:!1,configurable:!0}),e}();function ye(e){var t=new WeakMap;return function(n,r){var i=n.parentActionEvent?t.get(n.parentActionEvent):void 0;if("action"===n.type){var a=h(h({},n),{env:i&&i.call.env,parentCall:i&&i.call}),o=!e.filter||e.filter(a),s=new ge(o?e:void 0,a);t.set(n,s);var l=void 0;try{l=r(n)}catch(e){throw s.finish(e),e}return s.hasFlowsPending||s.finish(),l}if(!i)return r(n);switch(n.type){case"flow_spawn":return i.incFlowsPending(),r(n);case"flow_resume":case"flow_resume_error":return r(n);case"flow_throw":var c=n.args[0];try{return r(n)}finally{i.decFlowsPending(),i.hasFlowsPending||i.finish(c)}case"flow_return":try{return r(n)}finally{i.decFlowsPending(),i.hasFlowsPending||i.finish()}}}}function ve(e){return{$MST_UNSERIALIZABLE:!0,type:e}}function be(e,t){Ke(e,1),Ot(t,(function(e){return"object"==typeof e}),"object or array",2),Object(a.runInAction)((function(){pt(t).forEach((function(t){return function(e,t){var n=z(e,t.path||"");if(!n)throw ct("Invalid action path: "+(t.path||""));var r=Ze(n);if("@APPLY_PATCHES"===t.name)return w.call(null,n,t.args[0]);if("@APPLY_SNAPSHOT"===t.name)return P.call(null,n,t.args[0]);if("function"!=typeof n[t.name])throw ct("Action '"+t.name+"' does not exist in '"+r.path+"'");return n[t.name].apply(n,t.args?t.args.map((function(e){return(t=e)&&"object"==typeof t&&"$MST_DATE"in t?new Date(t.$MST_DATE):t;var t})):[])}(e,t)}))}))}function xe(e,t){Ke(e,1);var n,r=[],i=function(e){(!t||t(e,Ie()))&&r.push(e)},a={actions:r,get recording(){return!!n},stop:function(){n&&(n(),n=void 0)},resume:function(){n||(n=_e(e,i))},replay:function(e){be(e,r)}};return a.resume(),a}function _e(e,t,n){return void 0===n&&(n=!1),Ke(e,1),ke(e,(function(r,i){if("action"===r.type&&r.id===r.rootId){var a=Ze(r.context),o={name:r.name,path:tt(Ze(e),a),args:r.args.map((function(e,t){return function(e,t,n,r){if(r instanceof Date)return{$MST_DATE:r.getTime()};if(gt(r))return r;if($e(r))return ve("[MSTNode: "+v(r).name+"]");if("function"==typeof r)return ve("[function]");if("object"==typeof r&&!ft(r)&&!ht(r))return ve("[object "+(r&&r.constructor&&r.constructor.name||"Complex Object")+"]");try{return JSON.stringify(r),r}catch(e){return ve(""+e)}}(0,r.name,0,e)}))};if(n){var s=i(r);return t(o),s}return t(o),i(r)}return i(r)}))}var we,Se=1;function Te(){return we}function Oe(){return Se++}function Ce(e,t){var n=Ze(e.context);"action"===e.type&&n.assertAlive({actionContext:e});var r=n._isRunningAction;n._isRunningAction=!0;var o=we;we=e;try{return function(e,t,n){var r=new je(e,n);if(r.isEmpty)return Object(a.action)(n).apply(null,t.args);var o=null;return function e(t){var s=r.getNextMiddleware(),l=s&&s.handler;return l?!s.includeHooks&&i[t.name]?e(t):(l(t,(function(t,n){!0,o=e(t),n&&(o=n(o))}),(function(e){!0,o=e})),o):Object(a.action)(n).apply(null,t.args)}(t)}(n,e,t)}finally{we=o,n._isRunningAction=r}}function Pe(e){if(e)return"action"===e.type?e:e.parentActionEvent}function Ee(e,t,n){var r=function(){var r=Oe(),i=we,a=Pe(i);return Ce({type:"action",name:t,id:r,args:_t(arguments),context:e,tree:M(e),rootId:i?i.rootId:r,parentId:i?i.id:0,allParentIds:i?y(i.allParentIds,[i.id]):[],parentEvent:i,parentActionEvent:a},n)};return r._isMSTAction=!0,r}function ke(e,t,n){void 0===n&&(n=!0);var r=Ze(e);return r.addMiddleWare(t,n)}function Ae(e,t,n){void 0===n&&(n=!0);var r={handler:e,includeHooks:n};return t.$mst_middleware=t.$mst_middleware||[],t.$mst_middleware.push(r),t}var je=function(){function e(e,t){this.arrayIndex=0,this.inArrayIndex=0,this.middlewares=[],t.$mst_middleware&&this.middlewares.push(t.$mst_middleware);for(var n=e;n;)n.middlewares&&this.middlewares.push(n.middlewares),n=n.parent}return Object.defineProperty(e.prototype,"isEmpty",{get:function(){return this.middlewares.length<=0},enumerable:!1,configurable:!0}),e.prototype.getNextMiddleware=function(){var e=this.middlewares[this.arrayIndex];if(e){var t=e[this.inArrayIndex++];return t||(this.arrayIndex++,this.inArrayIndex=0,this.getNextMiddleware())}},e}();function Ie(){for(var e=Te();e&&"action"!==e.type;)e=e.parentActionEvent;return e}function Me(e,t,n){for(var r="number"==typeof t?t:t.id,i=n?e:e.parentActionEvent;i;){if(i.id===r)return!0;i=i.parentActionEvent}return!1}function De(e,t){return Me(e,t,!1)}function Ne(e,t){return Me(e,t,!0)}function Re(e){return"function"==typeof e?"":$e(e)?"<"+e+">":"`"+function(e){try{return JSON.stringify(e)}catch(e){return""}}(e)+"`"}function Le(e){var t=e.value,n=e.context[e.context.length-1].type,r=e.context.map((function(e){return e.path})).filter((function(e){return e.length>0})).join("/"),i=r.length>0?'at path "/'+r+'" ':"",a=$e(t)?"value of type "+Ze(t).type.name+":":gt(t)?"value":"snapshot",o=n&&$e(t)&&n.is(Ze(t).snapshot);return""+i+a+" "+Re(t)+" is not assignable "+(n?"to type: `"+n.name+"`":"")+(e.message?" ("+e.message+")":"")+(n?hn(n)||gt(t)?".":", expected an instance of `"+n.name+"` or a snapshot like `"+n.describe()+"` instead."+(o?" (Note that a snapshot of the provided value is compatible with the targeted type)":""):".")}function Fe(e,t,n){return e.concat([{path:t,type:n}])}function Ve(){return ot}function Be(e,t,n){return[{context:e,value:t,message:n}]}function He(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function ze(t,n){void 0!==e&&e.env&&"true"===e.env.ENABLE_TYPE_CHECK&&Ue(t,n)}function Ue(e,t){var n=e.validate(t,[{path:"",type:e}]);if(n.length>0)throw ct(function(e,t,n){if(0===n.length)return;return"Error while converting "+(r=Re(t),(r.length<280?r:r.substring(0,272)+"......"+r.substring(r.length-8))+" to `")+e.name+"`:\n\n "+n.map(Le).join("\n ");var r}(e,t,n))}var We,Ge=0,qe=function(){function e(){this.cacheId=Ge++,this.cache=a.observable.map(),this.lastCacheModificationPerId=a.observable.map()}return e.prototype.updateLastCacheModificationPerId=function(e){var t=this.lastCacheModificationPerId.get(e);this.lastCacheModificationPerId.set(e,void 0===t?1:t+1)},e.prototype.getLastCacheModificationPerId=function(e){var t=this.lastCacheModificationPerId.get(e)||0;return this.cacheId+"-"+t},e.prototype.addNodeToCache=function(e,t){if(void 0===t&&(t=!0),e.identifierAttribute){var n=e.identifier;this.cache.has(n)||this.cache.set(n,a.observable.array([],lt));var r=this.cache.get(n);if(-1!==r.indexOf(e))throw ct("Already registered");r.push(e),t&&this.updateLastCacheModificationPerId(n)}},e.prototype.mergeCache=function(e){var t=this;Object(a.values)(e.identifierCache.cache).forEach((function(e){return e.forEach((function(e){t.addNodeToCache(e)}))}))},e.prototype.notifyDied=function(e){if(e.identifierAttribute){var t=e.identifier,n=this.cache.get(t);n&&(n.remove(e),n.length||this.cache.delete(t),this.updateLastCacheModificationPerId(e.identifier))}},e.prototype.splitCache=function(t){var n=this,r=new e,i=t.path;return Object(a.entries)(this.cache).forEach((function(e){for(var t=g(e,2),a=t[0],o=t[1],s=!1,l=o.length-1;l>=0;l--)0===o[l].path.indexOf(i)&&(r.addNodeToCache(o[l],!1),o.splice(l,1),s=!0);s&&n.updateLastCacheModificationPerId(a)})),r},e.prototype.has=function(e,t){var n=this.cache.get(t);return!!n&&n.some((function(t){return e.isAssignableFrom(t.type)}))},e.prototype.resolve=function(e,t){var n=this.cache.get(t);if(!n)return null;var r=n.filter((function(t){return e.isAssignableFrom(t.type)}));switch(r.length){case 0:return null;case 1:return r[0];default:throw ct("Cannot resolve a reference to type '"+e.name+"' with id: '"+t+"' unambigously, there are multiple candidates: "+r.map((function(e){return e.path})).join(", "))}},e}();function Ye(e,t,n,r,i){var a=Qe(i);if(a){if(a.parent)throw ct("Cannot add an object to a state tree if it is already part of the same or another state tree. Tried to assign an object to '"+(t?t.path:"")+"/"+n+"', but it lives already at '"+a.path+"'");return t&&a.setParent(t,n),a}return new le(e,t,n,r,i)}function Xe(e,t,n,r,i){return new ae(e,t,n,r,i)}function $e(e){return!(!e||!e.$treenode)}function Ke(e,t){Ot(e,$e,"mobx-state-tree node",t)}function Ze(e){if(!$e(e))throw ct("Value "+e+" is no MST Node");return e.$treenode}function Qe(e){return e&&e.$treenode||null}function Je(){return Ze(this).snapshot}!function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CREATED=1]="CREATED",e[e.FINALIZED=2]="FINALIZED",e[e.DETACHING=3]="DETACHING",e[e.DEAD=4]="DEAD"}(We||(We={}));var et=function(e){return".."};function tt(e,t){if(e.root!==t.root)throw ct("Cannot calculate relative path: objects '"+e+"' and '"+t+"' are not part of the same object tree");for(var n=Vt(e.path),r=Vt(t.path),i=0;i0},enumerable:!1,configurable:!0}),e.prototype.register=function(e,t){var n=this;return void 0===t&&(t=!1),t?this.handlers.unshift(e):this.handlers.push(e),function(){n.unregister(e)}},e.prototype.has=function(e){return this.handlers.indexOf(e)>=0},e.prototype.unregister=function(e){var t=this.handlers.indexOf(e);t>=0&&this.handlers.splice(t,1)},e.prototype.clear=function(){this.handlers.length=0},e.prototype.emit=function(){for(var e=[],t=0;t0?this.hookInitializers.concat(e):[e];return new t(this.name,this._subType,n)},t.prototype.instantiate=function(e,t,n,r){return this._determineIdentifierMode(),Ye(this,e,t,n,r)},t.prototype._determineIdentifierMode=function(){if(this.identifierMode===Ht.UNKNOWN){var e=[];if(function e(t,n){var r,i,a=t.getSubTypes();if("cannotDetermine"===a)return!1;if(a){var o=pt(a);try{for(var s=m(o),l=s.next();!l.done;l=s.next()){if(!e(l.value,n))return!1}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}return t instanceof en&&n.push(t),!0}(this._subType,e)){var t=void 0;e.forEach((function(e){if(e.identifierAttribute){if(t&&t!==e.identifierAttribute)throw ct("The objects in a map should all have the same identifier attribute, expected '"+t+"', but child of type '"+e.name+"' declared attribute '"+e.identifierAttribute+"' as identifier");t=e.identifierAttribute}})),t?(this.identifierMode=Ht.YES,this.mapIdentifierAttribute=t):this.identifierMode=Ht.NO}}},t.prototype.initializeChildNodes=function(e,t){void 0===t&&(t={});var n=e.type._subType,r={};return Object.keys(t).forEach((function(i){r[i]=n.instantiate(e,i,void 0,t[i])})),r},t.prototype.createNewInstance=function(e){return new Ut(e)},t.prototype.finalizeNewInstance=function(e,t){Object(a._interceptReads)(t,e.unbox),e.type.hookInitializers.forEach((function(e){var n=e(t);Object.keys(n).forEach((function(e){var r=n[e],i=Ee(t,e,r);vt(t,e,i)}))})),Object(a.intercept)(t,this.willChange),Object(a.observe)(t,this.didChange)},t.prototype.describe=function(){return"Map"},t.prototype.getChildren=function(e){return Object(a.values)(e.storedValue)},t.prototype.getChildNode=function(e,t){var n=e.storedValue.get(""+t);if(!n)throw ct("Not a child "+t);return n},t.prototype.willChange=function(e){var t=Ze(e.object),n=e.name;t.assertWritable({subpath:n});var r=t.type,i=r._subType;switch(e.type){case"update":var a=e.newValue;if(a===e.object.get(n))return null;ze(i,a),e.newValue=i.reconcile(t.getChildNode(n),e.newValue,t,n),r.processIdentifier(n,e.newValue);break;case"add":ze(i,e.newValue),e.newValue=i.instantiate(t,n,void 0,e.newValue),r.processIdentifier(n,e.newValue)}return e},t.prototype.processIdentifier=function(e,t){if(this.identifierMode===Ht.YES&&t instanceof le){var n=t.identifier;if(n!==e)throw ct("A map of objects containing an identifier should always store the object under their own identifier. Trying to store key '"+n+"', but expected: '"+e+"'")}},t.prototype.getSnapshot=function(e){var t={};return e.getChildren().forEach((function(e){t[e.subpath]=e.snapshot})),t},t.prototype.processInitialSnapshot=function(e){var t={};return Object.keys(e).forEach((function(n){t[n]=e[n].getSnapshot()})),t},t.prototype.didChange=function(e){var t=Ze(e.object);switch(e.type){case"update":return void t.emitPatch({op:"replace",path:Rt(e.name),value:e.newValue.snapshot,oldValue:e.oldValue?e.oldValue.snapshot:void 0},t);case"add":return void t.emitPatch({op:"add",path:Rt(e.name),value:e.newValue.snapshot,oldValue:void 0},t);case"delete":var n=e.oldValue.snapshot;return e.oldValue.die(),void t.emitPatch({op:"remove",path:Rt(e.name),oldValue:n},t)}},t.prototype.applyPatchLocally=function(e,t,n){var r=e.storedValue;switch(n.op){case"add":case"replace":r.set(t,n.value);break;case"remove":r.delete(t)}},t.prototype.applySnapshot=function(e,t){ze(this,t);var n=e.storedValue,r={};if(Array.from(n.keys()).forEach((function(e){r[e]=!1})),t)for(var i in t)n.set(i,t[i]),r[""+i]=!0;Object.keys(r).forEach((function(e){!1===r[e]&&n.delete(e)}))},t.prototype.getChildType=function(){return this._subType},t.prototype.isValidSnapshot=function(e,t){var n=this;return ft(e)?He(Object.keys(e).map((function(r){return n._subType.validate(e[r],Fe(t,r,n._subType))}))):Be(t,e,"Value is not a plain object")},t.prototype.getDefaultSnapshot=function(){return st},t.prototype.removeChild=function(e,t){e.storedValue.delete(t)},p([a.action],t.prototype,"applySnapshot",null),t}(ue);function Gt(e){return he(e)&&(e.flags&re.Map)>0}var qt=function(e){function t(t,n,r){void 0===r&&(r=[]);var i=e.call(this,t)||this;return i._subType=n,i.flags=re.Array,i.hookInitializers=[],i.hookInitializers=r,i}return d(t,e),t.prototype.hooks=function(e){var n=this.hookInitializers.length>0?this.hookInitializers.concat(e):[e];return new t(this.name,this._subType,n)},t.prototype.instantiate=function(e,t,n,r){return Ye(this,e,t,n,r)},t.prototype.initializeChildNodes=function(e,t){void 0===t&&(t=[]);var n=e.type._subType,r={};return t.forEach((function(t,i){var a=""+i;r[a]=n.instantiate(e,a,void 0,t)})),r},t.prototype.createNewInstance=function(e){return a.observable.array(it(e),lt)},t.prototype.finalizeNewInstance=function(e,t){Object(a._getAdministration)(t).dehancer=e.unbox,e.type.hookInitializers.forEach((function(e){var n=e(t);Object.keys(n).forEach((function(e){var r=n[e],i=Ee(t,e,r);vt(t,e,i)}))})),Object(a.intercept)(t,this.willChange),Object(a.observe)(t,this.didChange)},t.prototype.describe=function(){return this._subType.describe()+"[]"},t.prototype.getChildren=function(e){return e.storedValue.slice()},t.prototype.getChildNode=function(e,t){var n=Number(t);if(n=0;n--)t.emitPatch({op:"remove",path:""+(e.index+n),oldValue:e.removed[n].snapshot},t);for(n=0;n0}function Zt(){return Ze(this).toString()}var Qt={name:"AnonymousModel",properties:{},initializers:ot};function Jt(e){return Object.keys(e).reduce((function(e,t){var n,r,a;if(t in i)throw ct("Hook '"+t+"' was defined as property. Hooks should be defined as part of the actions");var o=Object.getOwnPropertyDescriptor(e,t);if("get"in o)throw ct("Getters are not supported as properties. Please use views instead");var s=o.value;if(null==s)throw ct("The default value of an attribute cannot be null or undefined as the type cannot be inferred. Did you mean `types.maybe(someType)`?");if(gt(s))return Object.assign({},e,((n={})[t]=wn(function(e){switch(typeof e){case"string":return rn;case"number":return an;case"boolean":return sn;case"object":if(e instanceof Date)return dn}throw ct("Cannot determine primitive type from value "+e)}(s),s),n));if(s instanceof Wt)return Object.assign({},e,((r={})[t]=wn(s,{}),r));if(s instanceof qt)return Object.assign({},e,((a={})[t]=wn(s,[]),a));if(he(s))return e;throw ct("Invalid type definition for property '"+t+"', cannot infer a type from a value like '"+s+"' ("+typeof s+")")}),e)}var en=function(e){function t(t){var n=e.call(this,t.name||Qt.name)||this;return n.flags=re.Object,n.named=function(e){return n.cloneAndEnhance({name:e})},n.props=function(e){return n.cloneAndEnhance({properties:e})},n.preProcessSnapshot=function(e){var t=n.preProcessor;return t?n.cloneAndEnhance({preProcessor:function(n){return t(e(n))}}):n.cloneAndEnhance({preProcessor:e})},n.postProcessSnapshot=function(e){var t=n.postProcessor;return t?n.cloneAndEnhance({postProcessor:function(n){return e(t(n))}}):n.cloneAndEnhance({postProcessor:e})},Object.assign(n,Qt,t),n.properties=Jt(n.properties),n.properties,n.propertyNames=Object.keys(n.properties),n.identifierAttribute=n._getIdentifierAttribute(),n}return d(t,e),t.prototype._getIdentifierAttribute=function(){var e=void 0;return this.forAllProps((function(t,n){if(n.flags&re.Identifier){if(e)throw ct("Cannot define property '"+t+"' as object identifier, property '"+e+"' is already defined as identifier property");e=t}})),e},t.prototype.cloneAndEnhance=function(e){return new t({name:e.name||this.name,properties:Object.assign({},this.properties,e.properties),initializers:this.initializers.concat(e.initializers||[]),preProcessor:e.preProcessor||this.preProcessor,postProcessor:e.postProcessor||this.postProcessor})},t.prototype.actions=function(e){var t=this;return this.cloneAndEnhance({initializers:[function(n){return t.instantiateActions(n,e(n)),n}]})},t.prototype.instantiateActions=function(e,t){if(!ft(t))throw ct("actions initializer should return a plain object containing actions");Object.keys(t).forEach((function(n){if("preProcessSnapshot"===n)throw ct("Cannot define action 'preProcessSnapshot', it should be defined using 'type.preProcessSnapshot(fn)' instead");if("postProcessSnapshot"===n)throw ct("Cannot define action 'postProcessSnapshot', it should be defined using 'type.postProcessSnapshot(fn)' instead");var r=t[n],a=e[n];if(n in i&&a){var o=r;r=function(){a.apply(null,arguments),o.apply(null,arguments)}}var s=r.$mst_middleware,l=r.bind(t);l.$mst_middleware=s;var c=Ee(e,n,l);t[n]=c,vt(e,n,c)}))},t.prototype.volatile=function(e){var t=this;if("function"!=typeof e)throw ct("You passed an "+typeof e+" to volatile state as an argument, when function is expected");return this.cloneAndEnhance({initializers:[function(n){return t.instantiateVolatileState(n,e(n)),n}]})},t.prototype.instantiateVolatileState=function(e,t){if(!ft(t))throw ct("volatile state initializer should return a plain object containing state");Object(a.set)(e,t)},t.prototype.extend=function(e){var t=this;return this.cloneAndEnhance({initializers:[function(n){var r=e(n),i=r.actions,a=r.views,o=r.state,s=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0}var nn=function(e){function t(t,n,r,i){void 0===i&&(i=ut);var a=e.call(this,t)||this;return a.flags=n,a.checker=r,a.initializer=i,a.flags=n,a}return d(t,e),t.prototype.describe=function(){return this.name},t.prototype.instantiate=function(e,t,n,r){return Xe(this,e,t,n,r)},t.prototype.createNewInstance=function(e){return this.initializer(e)},t.prototype.isValidSnapshot=function(e,t){return gt(e)&&this.checker(e)?Ve():Be(t,e,"Value is not a "+("Date"===this.name?"Date or a unix milliseconds timestamp":this.name))},t}(de),rn=new nn("string",re.String,(function(e){return"string"==typeof e})),an=new nn("number",re.Number,(function(e){return"number"==typeof e})),on=new nn("integer",re.Integer,(function(e){return dt(e)})),sn=new nn("boolean",re.Boolean,(function(e){return"boolean"==typeof e})),ln=new nn("null",re.Null,(function(e){return null===e})),cn=new nn("undefined",re.Undefined,(function(e){return void 0===e})),un=new nn("Date",re.Date,(function(e){return"number"==typeof e||e instanceof Date}),(function(e){return e instanceof Date?e:new Date(e)}));un.getSnapshot=function(e){return e.storedValue.getTime()};var dn=un;function hn(e){return he(e)&&(e.flags&(re.String|re.Number|re.Integer|re.Boolean|re.Date))>0}var pn=function(e){function t(t){var n=e.call(this,JSON.stringify(t))||this;return n.flags=re.Literal,n.value=t,n}return d(t,e),t.prototype.instantiate=function(e,t,n,r){return Xe(this,e,t,n,r)},t.prototype.describe=function(){return JSON.stringify(this.value)},t.prototype.isValidSnapshot=function(e,t){return gt(e)&&e===this.value?Ve():Be(t,e,"Value is not a literal "+JSON.stringify(this.value))},t}(de);function fn(e){return Ot(),new pn(e)}function mn(e){return he(e)&&(e.flags&re.Literal)>0}var gn=function(e){function t(t,n,r,i){var a=e.call(this,t)||this;return a._subtype=n,a._predicate=r,a._message=i,a}return d(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|re.Refinement},enumerable:!1,configurable:!0}),t.prototype.describe=function(){return this.name},t.prototype.instantiate=function(e,t,n,r){return this._subtype.instantiate(e,t,n,r)},t.prototype.isAssignableFrom=function(e){return this._subtype.isAssignableFrom(e)},t.prototype.isValidSnapshot=function(e,t){var n=this._subtype.validate(e,t);if(n.length>0)return n;var r=$e(e)?Ze(e).snapshot:e;return this._predicate(r)?Ve():Be(t,e,this._message(e))},t.prototype.reconcile=function(e,t,n,r){return this._subtype.reconcile(e,t,n,r)},t.prototype.getSubTypes=function(){return this._subtype},t}(ce);function yn(e){return(e.flags&re.Refinement)>0}var vn=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i._types=n,i._eager=!0,r=h({eager:!0,dispatcher:void 0},r),i._dispatcher=r.dispatcher,r.eager||(i._eager=!1),i}return d(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){var e=re.Union;return this._types.forEach((function(t){e|=t.flags})),e},enumerable:!1,configurable:!0}),t.prototype.isAssignableFrom=function(e){return this._types.some((function(t){return t.isAssignableFrom(e)}))},t.prototype.describe=function(){return"("+this._types.map((function(e){return e.describe()})).join(" | ")+")"},t.prototype.instantiate=function(e,t,n,r){var i=this.determineType(r,void 0);if(!i)throw ct("No matching type for union "+this.describe());return i.instantiate(e,t,n,r)},t.prototype.reconcile=function(e,t,n,r){var i=this.determineType(t,e.type);if(!i)throw ct("No matching type for union "+this.describe());return i.reconcile(e,t,n,r)},t.prototype.determineType=function(e,t){return this._dispatcher?this._dispatcher(e):t?t.is(e)?t:this._types.filter((function(e){return e!==t})).find((function(t){return t.is(e)})):this._types.find((function(t){return t.is(e)}))},t.prototype.isValidSnapshot=function(e,t){if(this._dispatcher)return this._dispatcher(e).validate(e,t);for(var n=[],r=0,i=0;i0}var _n=function(e){function t(t,n,r){var i=e.call(this,t.name)||this;return i._subtype=t,i._defaultValue=n,i.optionalValues=r,i}return d(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return this._subtype.flags|re.Optional},enumerable:!1,configurable:!0}),t.prototype.describe=function(){return this._subtype.describe()+"?"},t.prototype.instantiate=function(e,t,n,r){if(this.optionalValues.indexOf(r)>=0){var i=this.getDefaultInstanceOrSnapshot();return this._subtype.instantiate(e,t,n,i)}return this._subtype.instantiate(e,t,n,r)},t.prototype.reconcile=function(e,t,n,r){return this._subtype.reconcile(e,this.optionalValues.indexOf(t)<0&&this._subtype.is(t)?t:this.getDefaultInstanceOrSnapshot(),n,r)},t.prototype.getDefaultInstanceOrSnapshot=function(){var e="function"==typeof this._defaultValue?this._defaultValue():this._defaultValue;return"function"==typeof this._defaultValue&&ze(this,e),e},t.prototype.isValidSnapshot=function(e,t){return this.optionalValues.indexOf(e)>=0?Ve():this._subtype.validate(e,t)},t.prototype.isAssignableFrom=function(e){return this._subtype.isAssignableFrom(e)},t.prototype.getSubTypes=function(){return this._subtype},t}(ce);function wn(e,t,n){return function(e,t){if("function"!=typeof t&&$e(t))throw ct("default value cannot be an instance, pass a snapshot or a function that creates an instance/snapshot instead");pe(e,1)}(e,t),new _n(e,t,n||Sn)}var Sn=[void 0];function Tn(e){return he(e)&&(e.flags&re.Optional)>0}var On=wn(cn,void 0),Cn=wn(ln,null);function Pn(e){return pe(e,1),bn(e,On)}var En=function(e){function t(t,n){var r=e.call(this,t)||this;return r._definition=n,r}return d(t,e),Object.defineProperty(t.prototype,"flags",{get:function(){return(this._subType?this._subType.flags:0)|re.Late},enumerable:!1,configurable:!0}),t.prototype.getSubType=function(e){if(!this._subType){var t=void 0;try{t=this._definition()}catch(e){if(!(e instanceof ReferenceError))throw e;t=void 0}if(e&&void 0===t)throw ct("Late type seems to be used too early, the definition (still) returns undefined");t&&(this._subType=t)}return this._subType},t.prototype.instantiate=function(e,t,n,r){return this.getSubType(!0).instantiate(e,t,n,r)},t.prototype.reconcile=function(e,t,n,r){return this.getSubType(!0).reconcile(e,t,n,r)},t.prototype.describe=function(){var e=this.getSubType(!1);return e?e.name:""},t.prototype.isValidSnapshot=function(e,t){var n=this.getSubType(!1);return n?n.validate(e,t):Ve()},t.prototype.isAssignableFrom=function(e){var t=this.getSubType(!1);return!!t&&t.isAssignableFrom(e)},t.prototype.getSubTypes=function(){var e=this.getSubType(!1);return e||"cannotDetermine"},t}(ce);function kn(e){return he(e)&&(e.flags&re.Late)>0}var An=function(e){function t(t){var n=e.call(this,t?"frozen("+t.name+")":"frozen")||this;return n.subType=t,n.flags=re.Frozen,n}return d(t,e),t.prototype.describe=function(){return""},t.prototype.instantiate=function(e,t,n,r){return Xe(this,e,t,n,r)},t.prototype.isValidSnapshot=function(e,t){return function(e){return"function"!=typeof e}(e)?this.subType?this.subType.validate(e,t):Ve():Be(t,e,"Value is not serializable and cannot be frozen")},t}(de),jn=new An;function In(e){return he(e)&&(e.flags&re.Frozen)>0}var Mn=function(){function e(e,t){if(this.targetType=t,Yn(e))this.identifier=e;else{if(!$e(e))throw ct("Can only store references to tree nodes or identifiers, got: '"+e+"'");var n=Ze(e);if(!n.identifierAttribute)throw ct("Can only store references with a defined identifier attribute.");var r=n.unnormalizedIdentifier;if(null==r)throw ct("Can only store references to tree nodes with a defined identifier.");this.identifier=r}}return e.prototype.updateResolvedReference=function(e){var t=qn(this.identifier),n=e.root,r=n.identifierCache.getLastCacheModificationPerId(t);if(!this.resolvedReference||this.resolvedReference.lastCacheModification!==r){var i=this.targetType,a=n.identifierCache.resolve(i,t);if(!a)throw new Dn("[mobx-state-tree] Failed to resolve reference '"+this.identifier+"' to type '"+this.targetType.name+"' (from node: "+e.path+")");this.resolvedReference={node:a,lastCacheModification:r}}},Object.defineProperty(e.prototype,"resolvedValue",{get:function(){return this.updateResolvedReference(this.node),this.resolvedReference.node.value},enumerable:!1,configurable:!0}),e}(),Dn=function(e){function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return d(t,e),t}(Error),Nn=function(e){function t(t,n){var r=e.call(this,"reference("+t.name+")")||this;return r.targetType=t,r.onInvalidated=n,r.flags=re.Reference,r}return d(t,e),t.prototype.describe=function(){return this.name},t.prototype.isAssignableFrom=function(e){return this.targetType.isAssignableFrom(e)},t.prototype.isValidSnapshot=function(e,t){return Yn(e)?Ve():Be(t,e,"Value is not a valid identifier, which is a string or a number")},t.prototype.fireInvalidated=function(e,t,n,r){var i=t.parent;if(i&&i.isAlive){var a=i.storedValue;a&&this.onInvalidated({cause:e,parent:a,invalidTarget:r?r.storedValue:void 0,invalidId:n,replaceRef:function(e){w(t.root.storedValue,{op:"replace",value:e,path:t.path})},removeRef:function(){tn(i.type)?this.replaceRef(void 0):w(t.root.storedValue,{op:"remove",path:t.path})}})}},t.prototype.addTargetNodeWatcher=function(e,t){var n=this,r=this.getValue(e);if(r){var a=Ze(r),o=function(r,o){var s=function(e){switch(e){case i.beforeDestroy:return"destroy";case i.beforeDetach:return"detach";default:return}}(o);s&&n.fireInvalidated(s,e,t,a)},s=a.registerHook(i.beforeDetach,o),l=a.registerHook(i.beforeDestroy,o);return function(){s(),l()}}},t.prototype.watchTargetNodeForInvalidations=function(e,t,n){var r=this;if(this.onInvalidated){var a;e.registerHook(i.beforeDestroy,(function(){a&&a()}));var o=function(i){a&&a();var o=e.parent,s=o&&o.storedValue;if(o&&o.isAlive&&s){(n?!!n.get(t,s):e.root.identifierCache.has(r.targetType,qn(t)))?a=r.addTargetNodeWatcher(e,t):i||r.fireInvalidated("invalidSnapshotReference",e,t,null)}};e.state===We.FINALIZED?o(!0):(e.isRoot||e.root.registerHook(i.afterCreationFinalization,(function(){e.parent&&e.parent.createObservableInstanceIfNeeded()})),e.registerHook(i.afterAttach,(function(){o(!1)})))}},t}(de),Rn=function(e){function t(t,n){return e.call(this,t,n)||this}return d(t,e),t.prototype.getValue=function(e){if(e.isAlive)return e.storedValue.resolvedValue},t.prototype.getSnapshot=function(e){return e.storedValue.identifier},t.prototype.instantiate=function(e,t,n,r){var i=$e(r)?V(r):r,a=new Mn(r,this.targetType),o=Xe(this,e,t,n,a);return a.node=o,this.watchTargetNodeForInvalidations(o,i,void 0),o},t.prototype.reconcile=function(e,t,n,r){if(!e.isDetaching&&e.type===this){var i=$e(t),a=e.storedValue;if(!i&&a.identifier===t||i&&a.resolvedValue===t)return e.setParent(n,r),e}var o=this.instantiate(n,r,void 0,t);return e.die(),o},t}(Nn),Ln=function(e){function t(t,n,r){var i=e.call(this,t,r)||this;return i.options=n,i}return d(t,e),t.prototype.getValue=function(e){if(e.isAlive)return this.options.get(e.storedValue,e.parent?e.parent.storedValue:null)},t.prototype.getSnapshot=function(e){return e.storedValue},t.prototype.instantiate=function(e,t,n,r){var i=$e(r)?this.options.set(r,e?e.storedValue:null):r,a=Xe(this,e,t,n,i);return this.watchTargetNodeForInvalidations(a,i,this.options),a},t.prototype.reconcile=function(e,t,n,r){var i=$e(t)?this.options.set(t,e?e.storedValue:null):t;if(!e.isDetaching&&e.type===this&&e.storedValue===i)return e.setParent(n,r),e;var a=this.instantiate(n,r,void 0,i);return e.die(),a},t}(Nn);function Fn(e,t){pe(e,1);var n=t||void 0,r=t?t.onInvalidated:void 0;return n&&(n.get||n.set)?new Ln(e,{get:n.get,set:n.set},r):new Rn(e,r)}function Vn(e){return(e.flags&re.Reference)>0}var Bn=function(e){function t(t,n){var r=e.call(this,t)||this;return r.validType=n,r.flags=re.Identifier,r}return d(t,e),t.prototype.instantiate=function(e,t,n,r){if(!(e&&e.type instanceof en))throw ct("Identifier types can only be instantiated as direct child of a model type");return Xe(this,e,t,n,r)},t.prototype.reconcile=function(e,t,n,r){if(e.storedValue!==t)throw ct("Tried to change identifier from '"+e.storedValue+"' to '"+t+"'. Changing identifiers is not allowed.");return e.setParent(n,r),e},t.prototype.isValidSnapshot=function(e,t){return typeof e!==this.validType?Be(t,e,"Value is not a valid "+this.describe()+", expected a "+this.validType):Ve()},t}(de),Hn=function(e){function t(){var t=e.call(this,"identifier","string")||this;return t.flags=re.Identifier,t}return d(t,e),t.prototype.describe=function(){return"identifier"},t}(Bn),zn=function(e){function t(){return e.call(this,"identifierNumber","number")||this}return d(t,e),t.prototype.getSnapshot=function(e){return e.storedValue},t.prototype.describe=function(){return"identifierNumber"},t}(Bn),Un=new Hn,Wn=new zn;function Gn(e){return he(e)&&(e.flags&re.Identifier)>0}function qn(e){return""+e}function Yn(e){return"string"==typeof e||"number"==typeof e}var Xn=function(e){function t(t){var n=e.call(this,t.name)||this;return n.options=t,n.flags=re.Custom,n}return d(t,e),t.prototype.describe=function(){return this.name},t.prototype.isValidSnapshot=function(e,t){if(this.options.isTargetType(e))return Ve();var n=this.options.getValidationMessage(e);return n?Be(t,e,"Invalid value for type '"+this.name+"': "+n):Ve()},t.prototype.getSnapshot=function(e){return this.options.toSnapshot(e.storedValue)},t.prototype.instantiate=function(e,t,n,r){return Xe(this,e,t,n,this.options.isTargetType(r)?r:this.options.fromSnapshot(r,e&&e.root.environment))},t.prototype.reconcile=function(e,t,n,r){var i=!this.options.isTargetType(t);if(!e.isDetaching&&(e.type===this&&(i?t===e.snapshot:t===e.storedValue)))return e.setParent(n,r),e;var a=i?this.options.fromSnapshot(t,n.root.environment):t,o=this.instantiate(n,r,void 0,a);return e.die(),o},t}(de),$n={enumeration:function(e,t){var n="string"==typeof e?t:e,r=bn.apply(void 0,y(n.map((function(e){return fn(""+e)}))));return"string"==typeof e&&(r.name=e),r},model:function(){for(var e=[],t=0;t",e)},array:function(e){return pe(e,1),new qt(e.name+"[]",e)},frozen:function(e){return 0===arguments.length?jn:he(e)?new An(e):wn(jn,e)},identifier:Un,identifierNumber:Wn,late:function(e,t){var n="string"==typeof e?e:"late("+e.toString()+")",r="string"==typeof e?t:e;return new En(n,r)},undefined:cn,null:ln,snapshotProcessor:function(e,t,n){return pe(e,1),new Bt(e,t,n)}}}.call(this,n(186),n(787).setImmediate)},function(e,t,n){"use strict";n.r(t),n.d(t,"isNaN",(function(){return i})),n.d(t,"getType",(function(){return a})),n.d(t,"getDefault",(function(){return o})),n.d(t,"checkString",(function(){return s})),n.d(t,"checkBoolean",(function(){return l})),n.d(t,"checkNumber",(function(){return c})),n.d(t,"checkObject",(function(){return u})),n.d(t,"checkArray",(function(){return d})),n.d(t,"checkDate",(function(){return h})),n.d(t,"castString",(function(){return p})),n.d(t,"castNumber",(function(){return f})),n.d(t,"toBoolean",(function(){return m})),n.d(t,"toNumber",(function(){return g})),n.d(t,"toText",(function(){return y})),n.d(t,"toNumberOrPercent",(function(){return v})),n.d(t,"hasValue",(function(){return b})),n.d(t,"getValue",(function(){return x})),n.d(t,"getValueDefault",(function(){return _})),n.d(t,"isDate",(function(){return w})),n.d(t,"isString",(function(){return S})),n.d(t,"isNumber",(function(){return T})),n.d(t,"isObject",(function(){return O})),n.d(t,"isArray",(function(){return C}));var r=n(19);function i(e){return Number(e)!==e}function a(e){return{}.toString.call(e)}function o(e,t){return e||t}function s(e){if("string"==typeof e)return!0;throw new Error("Expected a string but got "+a(e))}function l(e){if("boolean"==typeof e)return!0;throw new Error("Expected a boolean but got "+a(e))}function c(e){if("number"!=typeof e)throw new Error("Expected a number but got "+a(e));if(i(e))throw new Error("Expected a number but got NaN");return!0}function u(e){var t=a(e);if("[object Object]"===t)return!0;throw new Error("Expected an object but got "+t)}function d(e){if(Array.isArray(e))return!0;throw new Error("Expected an array but got "+a(e))}function h(e){var t=a(e);if("[object Date]"===t)return!0;throw new Error("Expected a date but got "+t)}function p(e){if("string"==typeof e)return e;if("number"==typeof e)return""+e;throw new Error("Expected a string or number but got "+a(e))}function f(e){if("string"==typeof e){var t=+e;if(i(t))throw new Error("Cannot cast string "+JSON.stringify(e)+" to a number");return t}if("number"==typeof e){if(i(e))throw new Error("Expected a number but got NaN");return e}var n=a(e);if("[object Date]"===n)return e.getTime();throw new Error("Expected a string, number, or date but got "+n)}function m(e){return!!e}function g(e){if(b(e)&&!T(e)){var t=Number(e);return i(t)&&S(e)&&""!=e?g(e.replace(/[^0-9.\-]+/g,"")):t}return e}function y(e){if(b(e)&&!S(e)){if(T(e))return p(e);if(O(e))return e.toString()}return e}function v(e){return!b(e)||T(e)||Object(r.b)(e)?e:S(e)&&-1!=e.indexOf("%")?Object(r.c)(g(e)):g(e)}function b(e){return null!=e}function x(e){if(b(e))return e;throw new Error("Value doesn't exist")}function _(e,t){return b(e)?e:t}function w(e){return"[object Date]"===a(e)}function S(e){return"string"==typeof e}function T(e){return"number"==typeof e&&Number(e)==e}function O(e){return"object"==typeof e&&null!=e}function C(e){return Array.isArray(e)}},function(e,t,n){"use strict";n.r(t),n.d(t,"validateDate",(function(){return O})),n.d(t,"validateEmail",(function(){return I})),n.d(t,"validateEmailStrict",(function(){return M})),n.d(t,"any",(function(){return D.a})),n.d(t,"validateUrl",(function(){return D.h})),n.d(t,"isLinkSecure",(function(){return D.b})),n.d(t,"removeAllBeforeHostnameFromUrl",(function(){return D.g})),n.d(t,"isLinkStartsWith",(function(){return D.c})),n.d(t,"validateUrlSoftly",(function(){return D.i})),n.d(t,"isSameOrigin",(function(){return D.e})),n.d(t,"isUrlPartsEqual",(function(){return D.f})),n.d(t,"isMatchSchema",(function(){return D.d})),n.d(t,"recursiveIterateDom",(function(){return N.o})),n.d(t,"stripeTagsBySelector",(function(){return N.u})),n.d(t,"removeTagsBySelector",(function(){return N.p})),n.d(t,"stripeTagsWithoutAttributes",(function(){return N.v})),n.d(t,"replaceTags",(function(){return N.q})),n.d(t,"extractContent",(function(){return N.b})),n.d(t,"isWholeHtml",(function(){return N.i})),n.d(t,"isContainsHtml",(function(){return N.g})),n.d(t,"clearStylesFromElements",(function(){return N.a})),n.d(t,"stripeStyleFromCssText",(function(){return N.s})),n.d(t,"stripeStyleFromHtmlString",(function(){return N.t})),n.d(t,"jsonToStringStyle",(function(){return N.j})),n.d(t,"stringToJsonStyle",(function(){return N.r})),n.d(t,"wrapHtml",(function(){return N.x})),n.d(t,"mergeStyles",(function(){return N.k})),n.d(t,"mergeStylesCssText",(function(){return N.l})),n.d(t,"getStyleValueFromCssText",(function(){return N.f})),n.d(t,"omitClassNames",(function(){return N.m})),n.d(t,"omitDefaultStyles",(function(){return N.n})),n.d(t,"updateStyle",(function(){return N.w})),n.d(t,"getStyle",(function(){return N.d})),n.d(t,"getStyleFromEl",(function(){return N.e})),n.d(t,"isEqualElms",(function(){return N.h})),n.d(t,"getCSSVariableValue",(function(){return N.c})),n.d(t,"getLastMatrixIndexes",(function(){return V})),n.d(t,"generateUniqueId",(function(){return B.a})),n.d(t,"getPureId",(function(){return B.b})),n.d(t,"notifyIdCounter",(function(){return B.c})),n.d(t,"randomId",(function(){return B.e})),n.d(t,"randomHash",(function(){return B.d})),n.d(t,"copyClipboard",(function(){return H.b})),n.d(t,"pasteClipboard",(function(){return H.e})),n.d(t,"addToProjectLocalStorage",(function(){return H.a})),n.d(t,"getFromProjectLocalStorage",(function(){return H.c})),n.d(t,"isAddedToProjectLocalStorage",(function(){return H.d})),n.d(t,"isTransparentColor",(function(){return z.j})),n.d(t,"isOpaqueColor",(function(){return z.i})),n.d(t,"areColorsEqual",(function(){return z.b})),n.d(t,"areColorsNotEqual",(function(){return z.c})),n.d(t,"adjustColor",(function(){return z.a})),n.d(t,"getColorsInterpolation",(function(){return z.e})),n.d(t,"lightenDarkenColor",(function(){return z.k})),n.d(t,"getElementColors",(function(){return z.f})),n.d(t,"getReadableColor",(function(){return z.h})),n.d(t,"getColorsFromImage",(function(){return z.d})),n.d(t,"getMatchingColorsForColor",(function(){return z.g})),n.d(t,"styleProperties",(function(){return U.g})),n.d(t,"forbiddenObjectTypesForStyleCopying",(function(){return U.c})),n.d(t,"TEXT_OBJECT_TYPES",(function(){return U.a})),n.d(t,"isCopyStyleAllowedForObject",(function(){return U.d})),n.d(t,"isPropImportantForStyleCopying",(function(){return U.e})),n.d(t,"styleCouldBeApplied",(function(){return U.f})),n.d(t,"applyStyleHelper",(function(){return U.b})),n.d(t,"textModelStub",(function(){return W.e})),n.d(t,"getRidOfListingStyle",(function(){return W.d})),n.d(t,"getRidOfCustomTextAlign",(function(){return W.c})),n.d(t,"clearBadTextStyleForNewTextObject",(function(){return W.a})),n.d(t,"loadImage",(function(){return G.b})),n.d(t,"loadFileOrBlob",(function(){return G.a})),n.d(t,"prepareImageForFiltering",(function(){return G.c})),n.d(t,"isInvalidXmlDocument",(function(){return q})),n.d(t,"prefixIdsInXml",(function(){return Y})),n.d(t,"reactJoin",(function(){return X.b})),n.d(t,"getDomEl",(function(){return X.a})),n.d(t,"selectInput",(function(){return X.c})),n.d(t,"asyncReaction",(function(){return Q})),n.d(t,"getModelPropertyNames",(function(){return J.f})),n.d(t,"getDefaultValue",(function(){return J.c})),n.d(t,"omitDefaultValuesFromSnapshot",(function(){return J.g})),n.d(t,"wrapWithDefaultPostProcessedSnapshot",(function(){return J.m})),n.d(t,"wrapWithPostProcessedSnapshot",(function(){return J.n})),n.d(t,"getModelProperties",(function(){return J.e})),n.d(t,"getDefaultValues",(function(){return J.d})),n.d(t,"resetFieldsToDefaultState",(function(){return J.h})),n.d(t,"resetToDefaultState",(function(){return J.i})),n.d(t,"EQUAL_FUNCTIONS",(function(){return J.a})),n.d(t,"setProp",(function(){return J.j})),n.d(t,"setProps",(function(){return J.k})),n.d(t,"toggleFlagAtLeastTillTheEndOfCurrentStack",(function(){return J.l})),n.d(t,"getCopiedModelName",(function(){return J.b})),n.d(t,"svgPathToColorizedBase64",(function(){return re})),n.d(t,"makeFnWithTtl",(function(){return ie})),n.d(t,"cleanBrowserClipboardData",(function(){return ae.a})),n.d(t,"getFileBlobFromClipboard",(function(){return ae.b})),n.d(t,"getTextFromClipboard",(function(){return ae.c})),n.d(t,"microTask",(function(){return ge.a})),n.d(t,"wait",(function(){return ye})),n.d(t,"waitForVariable",(function(){return ve})),n.d(t,"waitNextReRender",(function(){return be})),n.d(t,"onCompleteAllCallbacks",(function(){return xe})),n.d(t,"waitOnCompleteAllCallBacksFactory",(function(){return _e})),n.d(t,"getFnResultAsync",(function(){return we})),n.d(t,"resolvePromiseAfterAsyncSetValue",(function(){return Se})),n.d(t,"getWithExecutionFns",(function(){return fe})),n.d(t,"getCellInTBodyPosition",(function(){return Te})),n.d(t,"getCellInTBodyByPosition",(function(){return Oe})),n.d(t,"createTable",(function(){return Ce})),n.d(t,"addEventListener",(function(){return Pe.a})),n.d(t,"onTransitionEnd",(function(){return Pe.b})),n.d(t,"stopPropagation",(function(){return Pe.c})),n.d(t,"updateFlowchartConnections",(function(){return je})),n.d(t,"getArraysValuesByPaths",(function(){return Fe})),n.d(t,"setArraysValuesByPaths",(function(){return He})),n.d(t,"isAxiosNetworkError",(function(){return ze})),n.d(t,"runReqIgnoringNetworkErrors",(function(){return Ue})),n.d(t,"getDoneTyping",(function(){return We})),n.d(t,"getMaximumAvailableSize",(function(){return Ge.a})),n.d(t,"bytesToSize",(function(){return qe})),n.d(t,"getThemeColor",(function(){return Ye})),n.d(t,"initTextMetrics",(function(){return et})),n.d(t,"parseJson",(function(){return Ae.a})),n.d(t,"getPreparedPathsToElementsInPathWithArrays",(function(){return Le})),n.d(t,"isPromise",(function(){return pe.a})),n.d(t,"asyncNoop",(function(){return tt})),n.d(t,"allValuesInArrEqual",(function(){return nt})),n.d(t,"withoutLast",(function(){return rt})),n.d(t,"toDegrees",(function(){return it})),n.d(t,"toRadians",(function(){return at})),n.d(t,"isNumeric",(function(){return ot})),n.d(t,"getArrValueIfAllValuesInArrEqual",(function(){return st})),n.d(t,"getWritable",(function(){return lt})),n.d(t,"arrayMove",(function(){return ct})),n.d(t,"roundToDecimalPlace",(function(){return ut})),n.d(t,"getNumbersFromDirtyString",(function(){return dt})),n.d(t,"getNumberFromDirtyString",(function(){return ht})),n.d(t,"isFiniteNumberFromDirtyString",(function(){return pt})),n.d(t,"getNumericOr",(function(){return ft})),n.d(t,"addPostfixIfNeed",(function(){return mt})),n.d(t,"keys",(function(){return gt})),n.d(t,"handleKeys",(function(){return yt})),n.d(t,"handleEnterKey",(function(){return vt})),n.d(t,"handlersByKeys",(function(){return bt})),n.d(t,"copyValue",(function(){return xt})),n.d(t,"isAllEqual",(function(){return _t})),n.d(t,"isApproximatelyEqual",(function(){return wt})),n.d(t,"booleanToNumber",(function(){return St})),n.d(t,"booleanToText",(function(){return Tt})),n.d(t,"numericToBoolean",(function(){return Ot})),n.d(t,"booleanToNumericString",(function(){return Ct})),n.d(t,"stringToBoolean",(function(){return Pt})),n.d(t,"encodePath",(function(){return Et})),n.d(t,"ensureExtension",(function(){return kt})),n.d(t,"calc",(function(){return At})),n.d(t,"getAbsolutePathFromRelative",(function(){return jt})),n.d(t,"isDefined",(function(){return It})),n.d(t,"toFixedNumber",(function(){return Mt})),n.d(t,"getXpercent",(function(){return Dt})),n.d(t,"reduceArrayOfObjects",(function(){return Nt})),n.d(t,"getComponentDisplayName",(function(){return Rt})),n.d(t,"wrapComponentDisplayName",(function(){return Lt})),n.d(t,"randomValue",(function(){return Ft})),n.d(t,"isDescendant",(function(){return Vt})),n.d(t,"getConsecutiveNumbers",(function(){return Bt})),n.d(t,"scaleToWidth",(function(){return Ht})),n.d(t,"scaleToHeight",(function(){return zt})),n.d(t,"toCssReadable",(function(){return Ut})),n.d(t,"createFilterCssPropertyFromObject",(function(){return Wt})),n.d(t,"getValueOrEdgeOfAvailableValue",(function(){return Gt})),n.d(t,"getScrollbarWidth",(function(){return qt})),n.d(t,"changeDimensionsSavingProportions",(function(){return Yt})),n.d(t,"transpose",(function(){return Xt})),n.d(t,"transformMatrixToShape",(function(){return $t})),n.d(t,"getInvisibleSymbol",(function(){return Kt})),n.d(t,"trimSpacesAndInvisibleSymbolsIfString",(function(){return Zt})),n.d(t,"cutLength",(function(){return Qt})),n.d(t,"isPointInTriangle",(function(){return Jt})),n.d(t,"secondsToMinutesAndSeconds",(function(){return en})),n.d(t,"secondsToMinutesAndSecondsString",(function(){return tn})),n.d(t,"getHumanStringFromSeconds",(function(){return nn})),n.d(t,"toFormData",(function(){return rn})),n.d(t,"dataUrlToFile",(function(){return an})),n.d(t,"getSafeLink",(function(){return on})),n.d(t,"downloadFile",(function(){return sn})),n.d(t,"returnVariableIfExists",(function(){return ln})),n.d(t,"importAll",(function(){return cn})),n.d(t,"getExtensionFromPath",(function(){return un})),n.d(t,"getExtensionFromBase64Image",(function(){return dn})),n.d(t,"canBeConvertedToPixels",(function(){return hn})),n.d(t,"toPixels",(function(){return pn})),n.d(t,"getAttrInPixelsIfPossible",(function(){return fn})),n.d(t,"getRangeViewValue",(function(){return mn})),n.d(t,"replaceTransparentColor",(function(){return gn})),n.d(t,"formatDate",(function(){return yn})),n.d(t,"getDateRangeOfWeek",(function(){return vn})),n.d(t,"changeTextOfChildNodeOfHTMLElement",(function(){return bn})),n.d(t,"getParallaxAttrs",(function(){return xn}));var r=n(162),i=n.n(r),a=n(24),o=n.n(a),s=n(409),l=n.n(s),c=n(571),u=n(572),d=n.n(u),h=n(83),p=n.n(h),f=n(267),m=n.n(f),g=n(54),y=n.n(g),v=n(90),b=n.n(v),x=n(406),_=n.n(x),w=n(133),S=n.n(w),T=n(12);const O=e=>{const[t,n,r]=e?String(e).split("-").map(Number):[];if(!t||!n||!r)return!1;const i=new Date(t,n-1,r);return i.getFullYear()===t&&i.getMonth()===n-1&&i.getDate()===r};var C=n(96),P=n.n(C);const E="[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?",k=new RegExp(E),A=new RegExp(`^${E}$`),j=(e="")=>P()(e)?e.toLowerCase():String(e).toLowerCase();function I(e=""){const t=j(e);return!!(e=>e.includes("@"))(t)&&k.test(t)}function M(e=""){return A.test(j(e))}var D=n(341),N=n(275),R=n(31),L=n.n(R),F=n(250);const V=n.n(F)()((e,t=!1)=>{const n=L()(e,"0.length",0),r=L()(e,"length",0);let i=0,a=0;for(let t=0;tJSON.stringify([e,t]));var B=n(257),H=n(433),z=n(158),U=n(180),W=n(455),G=n(432);function q(e){return!1}function Y(e,t){const n=new RegExp('id="(.*?)"',"gm"),r=[...e.matchAll(n)].map(e=>e[1]);let i=e;if(!r)return i;for(const e of r){const n=new RegExp(`id="(${e})"`,"gm");i=i.replace(n,`id="${t}_${e}"`);const r=new RegExp(`xlink:href="#(${e})"`,"gm");i=i.replace(r,`xlink:href="#${t}_${e}"`);const a=new RegExp(`#(${e})\\)`,"gm");i=i.replace(a,`#${t}_${e})`)}return i}var X=n(314),$=n(15),K=n(501);var Z=(e,t)=>async function(n,r){if(e.cantExecuteReactionImmediately)return void e.addReactionInListToExecute(n);const i=n=>t(n,r,e);e.disableImmediateReactionExecution(),await i(n),e.listToExecuteIsEmpty||await e.executeStoredReactions(i),e.enableImmediateReactionExecution()};var Q=(e,t,n,r)=>{const i=new K.b(e),a=Z(i,n);return Object($.reaction)(t,a,r)},J=n(227),ee=n(154),te=n(577),ne=n.n(te);const re=(e,t,n)=>{const r=((e,t,n="0 0 490 490")=>``)(e,new ee.a(t).toRgbString(),n);return ne()(r)},ie=(e,t=1e3)=>{let n=0,r="__LAST_RESULT_NOT_SET__";return({forceGetResult:i=!1,forceGetSavedResult:a=!1}={},...o)=>{const s=Date.now();i&&a&&console.error("Error in logic! Can't be in one moment forceGetResult === true and forceGetSavedResult === true");return"__LAST_RESULT_NOT_SET__"!==r&&!i&&(a||s-n{if(!e||!t)return n;const r=Array.isArray(t)?t:t.replace(/\[(.*?)\]/g,(e,t)=>"."+t).split(".");let i=e;for(const e of r){if(e.endsWith("()")){const t=e.slice(0,-"()".length);i=i&&se()(i[t])?i[t]():void 0}else i=i?i[e]:void 0;if(void 0===i)return n}return i};var me=n(560),ge=n.n(me);function ye(e=1e3){return new Promise(t=>setTimeout(t,e))}async function ve(e,t=window,n=150,r=(e=>void 0!==e)){const i=fe(t,e,void 0);return r(i)?i:(await ye(n),ve(e,t,n,r))}function be(){return new Promise(requestAnimationFrame)}const xe=(e,t)=>{let n=0;const r=[];return(...i)=>{r.push(...i),n++;const a=ce()(e)?e:e();n===a&&t(...r)}},_e=(e,t)=>{let n=()=>{};const r=new Promise(r=>{t&&setTimeout(r,t),n=xe(e,r)});return[n,r]};async function we(e,...t){if(!se()(e))return e;let n=e(...t);return pe()(n)&&(n=await n),n}const Se=()=>{const e={resolve:de.a,reject:de.a},t=new Promise((t,n)=>{e.resolve=t,e.reject=n});return t.set=e.resolve,t.throw=e.reject,t},Te=e=>{const t=e.closest("table").tBodies[0].children;for(let n=0;ne.querySelector(`tbody>tr:nth-child(${t+1})>td:nth-child(${n+1})`),Ce=e=>{let t="";for(let n=0;n";for(let r=0;r${n}-${r}`;t+=""}return t+="
",t};var Pe=n(283),Ee=n(29),ke=n.n(Ee),Ae=n(190);const je=e=>(e.forEach(t=>{if("container"===t.type&&t.prevId){const[,n]=t.prevId.split("-");Object.keys(t.cPoints).forEach(r=>{t.cPoints[r].forEach((i,a)=>{const o=e.find(e=>e.prevId===`${i}-${n}`);ke()(o)||(t.cPoints[r][a]=o.id)})})}if("cLines"===t.type&&t.prevId){const[,n]=t.prevId.split("-");t.points="string"==typeof t.points?Object(Ae.a)({string:t.points}):t.points,t.points.forEach((r,i)=>{r.forEach((r,a)=>{const o=r.connectedTo,s=e.find(e=>e.prevId===`${o}-${n}`);if(o&&!ke()(s)){const e=s.id;t.points[i][a].connectedTo=e,t.points[i][a].tempConnectedTo=void 0}})})}}),e.forEach(e=>{"container"!==e.type&&"cLines"!==e.type||(e.prevId=void 0)}),e);var Ie=n(435),Me=n.n(Ie);const De=e=>{const[,t,n,r]=e.match("(\\w+)(\\W+)(\\w+)");return{propertyName:t,operator:n,value:r}},Ne=(e,t,n,r)=>{const{propertyName:i,operator:a,value:o}=r,s=L()(e,`${t}.${n}.${i}`);switch(a){case"===":return s===o;case"!==":return s!==o;case"<":return s":return s>o;case">=":return s>=o;default:throw new Error("@getPreparedPathsToElementsInPathWithArrays::Not implemented!")}},Re=(e,t)=>t?`${e}.${t}`:e,Le=(e,...t)=>{if(t.length>1)return Me()(t=>Le(e,t),t);const[n]=t;let r=[n].filter(Boolean),i=null;do{const t=[];for(let n=0;n{const n=Le(e,...t),r=[];for(const t of n){const n=fe(e,t);void 0!==n&&r.push(n)}return r};var Ve=n(48),Be=n.n(Ve);const He=(e,t,n)=>{const r=Array.isArray(t)?t:[t],i=Le(e,...r);for(const t of i)Be()(e,t,n)};function ze(e){return e.isAxiosError&&!e.response}async function Ue(e,t,n=1e3,r=5){try{return await o.a[e](...t)}catch(i){if(ze(i)&&r>0)return await ye(n),Ue(e,t,n,r-1);throw i}}function We(e,t=300){let n;return{keyDownHandler:t=>{"Enter"===t.key&&e(),clearTimeout(n)},keyUpHandler:r=>{"Enter"!==r.key&&(clearTimeout(n),n=setTimeout(e,t))}}}var Ge=n(496);const qe=(e,t=2)=>{const n=["Bytes","KB","MB","GB","TB"];if(0===e)return"0 Byte";const r=Math.floor(Math.log(e)/Math.log(1e3)),i=Math.round(e/Math.pow(1e3,r)*Math.pow(10,t))/Math.pow(10,t);return`${"Bytes"===n[r]||"KB"===n[r]?Math.floor(i):i} ${n[r]}`};function Ye(e=0,t=[],n=[]){if(t.length-1(t,...n)=>{if(n.some(e=>!Ze()(e))||t&&!P()(t))throw new Error("@common/helpers/textMetrics::Not implemented!");return e(t)},et=(e,t)=>{const n=!$e()(e);if(!n)return Object(Qe.init)(e,t);const r={opacity:0,position:"absolute",left:"100vw",...(n?t||e:t)||{}},i=document.createElement("div");i.style.cssText=Object(N.j)(r),document.body.appendChild(i);const a=Object(Qe.init)(i);return a.destroy=()=>{document.body.removeChild(i)},a.width=Je(a.width.bind(a)),a.height=Je(a.height.bind(a)),a.lines=Je(a.lines.bind(a)),a},tt=()=>Promise.resolve(),nt=(e,t=b.a)=>Boolean(e.length)&&e.every(n=>t(e[0],n)),rt=e=>e.slice(0,-1),it=e=>e*(180/Math.PI),at=e=>e*(Math.PI/180),ot=e=>!isNaN(e)&&null!==e,st=(e,t,n)=>nt(e,n)?e[0]:t,lt=e=>S()(e),ct=(e,t,n,r=!1)=>{let i=n;switch(n){case"first":i=0;break;case"last":i=e.length-1;break;case"prev":i=0===t?0:t-1;break;case"next":i=t+1}return r?l.a.mutate(e,t,i):l()(e,t,i)},ut=(e,t=0)=>{const n=10**t;return Math.round(e*n)/n},dt=e=>{if(!p()(e))return ot(e)?[e]:[];return e.replace(/[^\d\-.\s]/g,"").replace(/-{1,}\s*/g,e=>e.endsWith(" ")?"":"-").trim().split(/\s+/).filter(Boolean).map(Number)},ht=e=>{const t=dt(e);return t.length?Number(t[0]):NaN},pt=e=>{const t=ht(e);return Number.isFinite(t)};function ft(e,t,n=0){const r=y()(n,t,e);return ot(r)?Number(r):n}function mt(e,t){return t?p()(e)&&e.endsWith(t)?e:`${e}${t}`:e}const gt={ENTER:"Enter",DELETE:"Delete",BACKSPACE:"Backspace",ESC:"Escape",UP:"ArrowUp",DOWN:"ArrowDown",TAB:"Tab",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown"};function yt(e,t){return n=>{e.includes(n.key)&&t(n)}}function vt(e){return yt([gt.ENTER],e)}function bt(e){return t=>{for(const[n,r]of Object.entries(e))n===t.key&&r(t)}}function xt(e){e.select(),document.execCommand("copy")}const _t=e=>!(!e||!e.length)&&(1===e.length||e.slice(1).every(t=>b()(t,e[0]))),wt=(e,t,n)=>Math.abs(e-t)<=n;function St(e){return Number(e)}function Tt(e){return e?"yes":"no"}function Ot(e){return Boolean(Number(e))}function Ct(e){return""+Number(e)}function Pt(e=""){return"true"===e}function Et(e){return e.split("/").map(e=>encodeURIComponent(e)).join("/")}function kt(e,t){return!i.a.extname(e)&&t?`${e}.${t}`:e}function At(e,t,n){switch(t){case"plus":return e+n;case"minus":return e-n;default:throw new Error("unknown direction")}}const jt=(e,t)=>{if(t.startsWith("./"))return`${e}.${t.slice("./".length)}`;const n=new RegExp(_()("../"),"g"),r=t.match(n);if(null===r)return t;const i=r.length*"../".length,a=t.slice(i);return e.split(".").slice(0,-r.length).concat(""===a?[]:a.split(".")).join(".")};function It(e){return void 0!==e}function Mt(e,t){return e=Number(e),Number(e.toFixed(null!=t?t:0))}function Dt(e,t){return e*t/100}function Nt(e){const t=Object.keys(e[0]),n={};for(const e of t)n[e]=[];return e.reduce((e,n)=>{for(const r of t)e[r].push(n[r]);return e},n)}function Rt(e){return e.displayName||e.name||"Component"}function Lt(e,t){const n=Rt(e);e.displayName=`${t}(${n})`}const Ft=(e=100,t)=>void 0!==t?Math.floor(Math.random()*(t-e+1)+e):Math.ceil(Math.random()*e),Vt=(e,t)=>{let n=t.parentNode;for(;null!=n;){if(n===e)return!0;n=n.parentNode}return!1};function Bt(e,t){const n=[];for(let r=e;r<=t;r++)n.push(r);return n}function Ht(e,t,n){return{width:Math.floor(n),height:Math.floor(t*n/e)}}function zt(e,t,n){return{width:Math.floor(e*n/t),height:Math.floor(n)}}const Ut=e=>(e+100)/100;function Wt({brightness:e,contrast:t,hue:n,blur:r}){let i=e;e>1&&(i=10*e);let a="";if(0!==e){a+=`brightness(${Ut(i)}) `}if(0!==t){a+=`contrast(${Ut(t)}) `}if(0!==r){a+=`blur(${r/10+"px"}) `}if(0!==n){a+=`hue-rotate(${n+"deg"})`}return a.trim()}function Gt(e,t,n){return nt?t:n}const qt=d()((function(){const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;return e.parentNode.removeChild(e),n}));function Yt(e,t,n,r){const i=n/e,a=r/t;let o=Math.min(i,a);return n===e&&r!==t?o=a:r===t&&n!==e&&(o=i),{width:e*o,height:t*o,ratio:o}}function Xt(e){return Object.keys(e[0]).map(t=>e.map(e=>e[t]))}function $t(e,{rowLength:t,colLength:n,newCellsValues:r}){const i=(e,t,n)=>{if(e.length===t)return e;const r=t-e.length;return r>0?((e,t,n)=>[...e,...Array.from({length:t},void 0!==n?()=>n:void 0)])(e,r,n):((e,t)=>e.slice(0,-t))(e,Math.abs(r))};return i(e,t,[]).map(e=>i(e,n,r))}function Kt(e="zeroWidthSpace"){return{zeroWidthSpace:"​",zeroWidthNonJoiner:"‌",zeroWidthJoiner:"‍"}[e]}function Zt(e){return p()(e)?e.replace(c.zeroWidthCharacters,"").trim():e}function Qt(e,t,n="…"){return e.length>t?`${e.slice(0,t)}${n}`:e}function Jt(e,t){const n=e[0],r=e[1],i=t[0],a=t[1],o=t[2],s=o[0]-i[0],l=o[1]-i[1],c=a[0]-i[0],u=a[1]-i[1],d=n-i[0],h=r-i[1],p=s*s+l*l,f=s*c+l*u,m=s*d+l*h,g=c*c+u*u,y=c*d+u*h,v=p*g-f*f,b=0===v?0:1/v,x=(g*m-f*y)*b,_=(p*y-f*m)*b;return x>=0&&_>=0&&x+_<1}function en(e=0){const t=Math.floor(e/60);return{m:t,s:Math.round(e-60*t)}}function tn(e=0){const{m:t,s:n}=en(e),r=""+n;return`${(""+t).padStart(2,"0")}:${r.padStart(2,"0")}`}function nn(e){const{m:t,s:n}=en(e);let r="";return t&&(r+=t+" minutes"),n&&(r&&(r+=" and "),r+=n+" seconds"),r||(r+="0 seconds"),r}const rn=e=>Object.entries(e).reduce((e,[t,n])=>(e.append(t,m()(n)?String(n):n),e),new FormData),an=async(e,t)=>{const n=e.split(","),r=n[0].match(/:(.*?);/);if(null===r)return null;const i=r[1],a=atob(n[1]);let o=a.length;const s=new Uint8Array(o);for(;o--;)s[o]=a.charCodeAt(o);return new File([s],t,{type:i})},on=(e,t)=>(e=e.replace("javascript:","")).startsWith("tel:")||e.startsWith("mailto:")?e.trim():`https://my.visme.co/utils/goto/${t}?url=${encodeURIComponent(e)}`;async function sn(e,t){const{data:n}=await o.a.get(e,{responseType:"blob"}),r=await URL.createObjectURL(n),i=document.createElement("a");i.href=r,i.download=t,document.body.appendChild(i),i.click(),document.body.removeChild(i)}function ln(e,t=window){const n=y()(void 0,e,t);if(It(n))return n}function cn(e,t,n=""){return t.keys().forEach(r=>{const i=n?"."+n:"",a=r.slice("./".length,-i.length);e[a]=t(r)}),e}function un(e){const t=i.a.extname(e);return t?t.replace(".","").replace(/[^a-zA-Z.]+.*/g,""):null}function dn(e){return e.includes("data:image/")?e.substring("data:image/".length,e.indexOf(";base64")):null}function hn(e=""){const t=String(e);return["pt","px","pc","in","cm","mm"].some(e=>t.endsWith(e))||/^\d+?.\d*$/.test(t)}function pn(e=""){if(!p()(e))return Number(e);const t=e.match(/^(\d+\.?\d*)([a-z%]*)$/);if(!t)throw new Error("cant parse unit");const[,n,r]=t;switch(r){case"%":return null;case"":case"px":return Number(n);case"pt":return 1.328147*Number(n);case"pc":return 63.751067*Number(n);case"in":return 96*Number(n);case"cm":return 37.795276*Number(n);case"mm":return 3.779528*Number(n);default:throw new Error("unsupported unit")}}function fn(e,t){if(!e.hasAttribute(t))return null;const n=e.getAttribute(t);return hn(n)?pn(n):null}const mn=e=>(e.value-e.minValue)/(e.maxValue-e.minValue)*100;function gn(e){return"transparent"===e?T.a.white:e}const yn=(e,t)=>{const n=e.substring(0,4),r=e.substring(4,6),i=e.substring(6,8),a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];switch(t){case"MM/DD":return`${r}/${i}`;case"YYYY/MM/DD":return`${n}/${r}/${i}`;case"MMM. DD, YYYY":return`${a[r-1]}. ${i}, ${n}`;default:return`${n}-${r}-${i}`}},vn=(e,t=!0)=>{const n=new Date,r=n.getDay()-1;n.setDate(n.getDate()-r);const i=new Date(n.valueOf()),a=(n.getDay()+6)%7;i.setDate(i.getDate()-a+3);const o=new Date(i.getFullYear(),0,4),s=(i-o)/864e5,l=e-(new Date(i.getFullYear(),0,1).getDay()<5?1+Math.ceil(s/7):Math.ceil(s/7));n.setDate(n.getDate()+7*l);const c=`${n.getMonth()+1}/${n.getDate()}`+(t?"/"+n.getFullYear():"");n.setDate(n.getDate()+6);return`${c} - ${`${n.getMonth()+1}/${n.getDate()}`+(t?"/"+n.getFullYear():"")}`};function bn(e,t){t instanceof Text&&(t.nodeValue=e),t instanceof HTMLElement&&(t.innerHTML=e)}function xn(e){const t=e.parentSlide().isLast,n=t?150:100,r=`data-${t?0:-100}-bottom`,i={};return i[`data-${e.visualSize().height+n}-bottom`]="opacity:0;margin-top:100px;",i[r]=`opacity:${e.opacity/100};margin-top:0px;`,i}},function(e,t,n){"use strict";n.r(t),n.d(t,"PI",(function(){return i})),n.d(t,"HALFPI",(function(){return a})),n.d(t,"RADIANS",(function(){return o})),n.d(t,"DEGREES",(function(){return s})),n.d(t,"toNumberRange",(function(){return l})),n.d(t,"round",(function(){return c})),n.d(t,"ceil",(function(){return u})),n.d(t,"stretch",(function(){return d})),n.d(t,"fitToRange",(function(){return h})),n.d(t,"sin",(function(){return p})),n.d(t,"tan",(function(){return f})),n.d(t,"cos",(function(){return m})),n.d(t,"max",(function(){return g})),n.d(t,"min",(function(){return y})),n.d(t,"closest",(function(){return v})),n.d(t,"intersect",(function(){return b})),n.d(t,"invertRange",(function(){return x})),n.d(t,"intersection",(function(){return _})),n.d(t,"getDistance",(function(){return w})),n.d(t,"getHorizontalDistance",(function(){return S})),n.d(t,"getVerticalDistance",(function(){return T})),n.d(t,"getCubicCurveDistance",(function(){return O})),n.d(t,"getScale",(function(){return C})),n.d(t,"getMidPoint",(function(){return P})),n.d(t,"getRotation",(function(){return E})),n.d(t,"getAngle",(function(){return k})),n.d(t,"getCenterShift",(function(){return A})),n.d(t,"getBBox",(function(){return j})),n.d(t,"getCommonRectangle",(function(){return I})),n.d(t,"getPointOnQuadraticCurve",(function(){return M})),n.d(t,"getPointOnCubicCurve",(function(){return D})),n.d(t,"getCubicControlPointA",(function(){return N})),n.d(t,"getCubicControlPointB",(function(){return R})),n.d(t,"adjustTension",(function(){return L})),n.d(t,"normalizeAngle",(function(){return F})),n.d(t,"fitAngleToRange",(function(){return V})),n.d(t,"getArcRect",(function(){return B})),n.d(t,"getArcPoint",(function(){return H})),n.d(t,"isInRectangle",(function(){return z})),n.d(t,"getLineIntersection",(function(){return U}));var r=n(2),i=Math.PI,a=i/2,o=i/180,s=180/i;function l(e,t,n){return r.hasValue(e)?h(e=r.toNumber(e),t,n):e}function c(e,t,n){if(!r.isNumber(t)||t<=0){var i=Math.round(e);return n&&i-e==.5&&i--,i}var a=Math.pow(10,t);return Math.round(e*a)/a}function u(e,t){if(!r.isNumber(t)||t<=0)return Math.ceil(e);var n=Math.pow(10,t);return Math.ceil(e*n)/n}function d(e,t,n){return e*(n-t)+t}function h(e,t,n){if(r.isNumber(t)){if(r.isNumber(n)&&nn&&(e=n),e}function p(e){return c(Math.sin(o*e),10)}function f(e){return c(Math.tan(o*e),10)}function m(e){return c(Math.cos(o*e),10)}function g(e,t){return r.isNumber(e)?r.isNumber(t)&&t>e?t:e:r.isNumber(t)?t:null}function y(e,t){return r.isNumber(e)?r.isNumber(t)&&t0)for(var s=0;s<=i;s++){var l=D(e,t,n,r,s/i);a+=w(o,l),o=l}return a}function C(e,t,n,r){var i=w(t,r),a=w(e,n);return Math.abs(a/i)}function P(e,t,n){return r.isNumber(n)||(n=.5),{x:e.x+(t.x-e.x)*n,y:e.y+(t.y-e.y)*n}}function E(e,t,n,r){var i=k(t,r)-k(e,n);return i<0&&(i+=360),i}function k(e,t){t||(t={x:2*e.x,y:2*e.y});var n=t.x-e.x,r=t.y-e.y,i=Math.atan2(r,n)*s;return i<0&&(i+=360),F(i)}function A(e,t,n,r,i){var a=E(t,n,r,i)-90;a<0&&(a+=360);var o=w(t,r),s=Math.cos(a)/o+t.x,l=Math.cos(a)/o+t.y;return{x:s-e.x,y:l-e.y}}function j(e){if(e){var t=e.length;if(0!==t){for(var n,i=void 0,a=void 0,o=void 0,s=0;sa)&&(a=l.x),(!r.isNumber(i)||l.xo)&&(o=l.y)}return{x:i,y:n,width:a-i,height:o-n}}}return{x:0,y:0,width:0,height:0}}function I(e){var t=e.length;if(0!==t){for(var n=void 0,r=void 0,i=void 0,a=void 0,o=0;on){var r=t;t=n,n=r}e=F(e);var i=(t-F(t))/360;return en&&(e-360>t?e-=360:e=et+(n-t)/2-180?t:n),e}function B(e,t,n){var i=Number.MAX_VALUE,a=Number.MAX_VALUE,o=-Number.MAX_VALUE,s=-Number.MAX_VALUE,l=[];r.isNumber(n)||(n=1),l.push(H(n,e)),l.push(H(n,t));for(var c=Math.min(90*Math.floor(e/90),90*Math.floor(t/90)),u=Math.max(90*Math.ceil(e/90),90*Math.ceil(t/90)),d=c;d<=u;d+=90)d>=e&&d<=t&&l.push(H(n,d));for(var h=0;ho&&(o=p.x),p.y>s&&(s=p.y)}return{x:i,y:a,width:o-i,height:s-a}}function H(e,t){return{x:e*m(t),y:e*p(t)}}function z(e,t){return e.x>=t.x&&e.x<=t.x+t.width&&e.y>=t.y&&e.y<=t.y+t.height}function U(e,t,n,r){return{x:((e.x*t.y-t.x*e.y)*(n.x-r.x)-(e.x-t.x)*(n.x*r.y-n.y*r.x))/((e.x-t.x)*(n.y-r.y)-(e.y-t.y)*(n.x-r.x)),y:((e.x*t.y-t.x*e.y)*(n.y-r.y)-(e.y-t.y)*(n.x*r.y-n.y*r.x))/((e.x-t.x)*(n.y-r.y)-(e.y-t.y)*(n.x-r.x))}}},,function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return v}));var r=n(15),i=n(0),a=n.n(i);if(!i.useState)throw new Error("mobx-react-lite requires React with Hooks support");if(!r.spy)throw new Error("mobx-react-lite requires mobx at least version 4 to be available");var o=!1;function s(){return o}function l(){return(l=Object.assign||function(e){for(var t=1;t=n.cleanAt&&(n.reaction.dispose(),t.current=null,p.delete(t))})),p.size>0&&f()}var g={};function y(e){return"observer"+e}function v(e,t,n){if(void 0===t&&(t="observed"),void 0===n&&(n=g),s())return e();var i,o=(n.useForceUpdate||c)(),l=a.a.useRef(null);if(!l.current){var d=new r.Reaction(y(t),(function(){m.mounted?o():(d.dispose(),l.current=null)})),m=function(e){return{cleanAt:Date.now()+h,reaction:e}}(d);l.current=m,i=l,p.add(i),f()}var v,b,x=l.current.reaction;if(a.a.useDebugValue(x,u),a.a.useEffect((function(){var e;return e=l,p.delete(e),l.current?l.current.mounted=!0:(l.current={reaction:new r.Reaction(y(t),(function(){o()})),cleanAt:1/0},o()),function(){l.current.reaction.dispose(),l.current=null}}),[]),x.track((function(){try{v=e()}catch(e){b=e}})),b)throw b;return v}function b(e,t){if(s())return e;var n,r,a,o=l({forwardRef:!1},t),c=e.displayName||e.name,u=function(t,n){return v((function(){return e(t,n)}),c)};return u.displayName=c,n=o.forwardRef?Object(i.memo)(Object(i.forwardRef)(u)):Object(i.memo)(u),r=e,a=n,Object.keys(r).forEach((function(e){x[e]||Object.defineProperty(a,e,Object.getOwnPropertyDescriptor(r,e))})),n.displayName=c,n}var x={$$typeof:!0,render:!0,compare:!0,type:!0};function _(e){var t=e.children,n=e.render,r=t||n;return"function"!=typeof r?null:v(r)}function w(e,t,n,r,i){var a="children"===t?"render":"children",o="function"==typeof e[t],s="function"==typeof e[a];return o&&s?new Error("MobX Observer: Do not use children and render in the same time in`"+n):o||s?null:new Error("Invalid prop `"+i+"` of type `"+typeof e[t]+"` supplied to `"+n+"`, expected `function`.")}_.propTypes={children:w,render:w},_.displayName="Observer"}).call(this,n(105))},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return o})),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"f",(function(){return u}));var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0&&i[i.length-1])||6!==a[0]&&2!==a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function c(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function u(){for(var e=[],t=0;ta&&(t+=c(u),n=u)}return t}function l(e){return" M"+r.round(e.x,4)+","+r.round(e.y,4)+" "}function c(e){return" L"+r.round(e.x,4)+","+r.round(e.y,4)+" "}function u(e,t){return" Q"+r.round(t.x,4)+","+r.round(t.y,4)+" "+r.round(e.x,4)+","+r.round(e.y,4)}function d(e,t,n){return" C"+r.round(t.x,4)+","+r.round(t.y,4)+" "+r.round(n.x,4)+","+r.round(n.y,4)+" "+r.round(e.x,4)+","+r.round(e.y,4)}function h(){return" Z"}function p(e,t,n,a){if(0==t)return"";i.isNumber(a)||(a=n);var o="",s=",",l=Math.ceil(Math.abs(t)/180),u=1;t<0&&(u=0);var d=0,h=0,p=-r.cos(e)*n,f=-r.sin(e)*a;if(t<.5&&n>3e3){var m=e+t;return c({x:y=r.round(r.cos(m)*n,4),y:v=r.round(r.sin(m)*a,4)})}for(var g=0;g(h-e)/2&&(A=T);var j="";return 360==t?j=l(C):(j=l(O),j+=c(C),j+=m(k,s,y,!0)),j+=p(e+b,t-2*b,n,o),i.isNumber(a)&&0!=a?(360==t&&0==s?j+=l(E):(j+=m(P,s,y,!0),j+=c(E),j+=m(A,u,v,!0)),j+=p(h-_,-(t-2*_),a,g),(t<360||s>0)&&(j+=m(O,u,v,!0)),j+=c(O)):(j+=m(P,s,y,!0),t<360&&(j+=c(O))),j}function m(e,t,n,i,a,o){if(0==t)return"";var s=",";return" A"+t+s+n+s+(o=o||0)+s+ +(a=Boolean(a))+s+ +(i=Boolean(i))+s+r.round(e.x,4)+s+r.round(e.y,4)}function g(e,t,n,r){return i.isNumber(n)||(n=0),i.isNumber(r)||(r=0),l({x:n,y:r})+c({x:n+e,y:r})+c({x:n+e,y:r+t})+c({x:n,y:r+t})+" Z"}function y(e,t){var n=",",r=" L";return t?"M"+e.x+n+e.y+r+e.x+n+(e.y+e.height)+r+(e.x+e.width)+n+(e.y+e.height)+r+(e.x+e.width)+n+e.y+r+e.x+n+e.y:"M"+e.x+n+e.y+r+(e.x+e.width)+n+e.y+r+(e.x+e.width)+n+(e.y+e.height)+r+e.x+n+(e.y+e.height)+r+e.x+n+e.y}function v(e,t){var n=Object(a.b)().add("path").node;if(n.setAttribute("d",e),n.getPointAtLength&&n.getTotalLength){for(var r=n.getTotalLength(),i=[],o=0;od&&(f=2*d),(h+=2*Math.asin(f/2/d))*r.DEGREES>u+(n-o)/l*360)break;var m=h*r.DEGREES,g={x:e+d*Math.cos(h),y:t+d*a/n*Math.sin(h)};p.push(g),d=o+m/360*l}return p.shift(),p}function x(e){if(!e||0==e.length)return"";var t=l(e[0]);if(e&&e.length>0)for(var n=1;nt&&(!0!==n||0!=i)){if(r&&(u=j(u)),p=u.match(new RegExp(".{1,"+t+"}","g"))){if(r)for(var h=0;ht&&""!==a[o]&&(a.push(""),o++),a[o]+=u;o=a.length-1}}}else{var p;if(p=e.match(new RegExp(".{1,"+t+"}","g"))){if(r)for(h=0;ht&&(a=[]),a}function P(e,t,n,r,i){return e.length<=t?e:((t-=n.length)<1&&(t=1),(C(e,t,r,i)[0]||"")+n)}function E(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function k(e){return e.replace(/[\s\uFEFF\xA0]+$/g,"")}function A(e){return e.replace(/^[\s\uFEFF\xA0]+/g,"")}function j(e){return e.split("").reverse().join("")}function I(e){var t=e.trim();return(t=e.replace(/^'(.*)'$/,"$1"))==e&&(t=e.replace(/^"(.*)"$/,"$1")),t}function M(e,t,n){return void 0===t&&(t=0),void 0===n&&(n="0"),"string"!=typeof e&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(n)+e:e}function D(e){if(void 0===e)return l.g;var t=(e=(e=(e=e.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return t?t[1]:e===l.c?l.c:e===l.a?l.a:e===l.b?l.b:e.match(/[#0]/)?l.c:e.match(/[ymwdhnsqaxkzgtei]/)?l.a:l.g}function N(e){return e.replace(/\/(date|number|duration)$/i,"")}function R(e){return e?e.replace(/<[^>]*>/g,""):e}function L(e){return e?R((""+e).replace(/[\n\r]+/g,". ")):e}function F(e){if(o.isNaN(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(0===e&&1/e==-1/0)return"-0";var t=e<0;e=Math.abs(e);var n,r=o.getValue(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+e)),i=r[1],a=r[2]||"";if(null==r[3])n=""===a?i:i+"."+a;else{var l=+r[3];if(e<1){var c=l-1;n="0."+s.repeat("0",c)+i+a}else{n=0===(c=l-a.length)?i+a:c<0?i+a.slice(0,c)+"."+a.slice(c):i+a+s.repeat("0",c)}}return t?"-"+n:n}function V(e){if(o.isDate(e)){var t=new Date(e);return t.setMilliseconds(e.getMilliseconds()),t}if(o.isNumber(e))return new Date(e);var n=Number(e);return o.isNumber(n)?new Date(n):new Date(e)}function B(e){if(o.isDate(e))return e.getTime();if(o.isNumber(e))return e;if(o.isString(e)){var t=Number(e);return o.isNumber(t)?t:void 0}}function H(e,t){void 0===t&&(t=!1);var n=new Date(e.getFullYear(),0,0),r=e.getTime()-n.getTime()+60*(n.getTimezoneOffset()-e.getTimezoneOffset())*1e3;return Math.floor(r/864e5)}function z(e,t){void 0===t&&(t=!1);var n=H(e,t)-1,r=Math.floor((n-(e.getDay()||7)+10)/7);return 0===r?r=53:53===r&&(r=1),r}function U(e,t){void 0===t&&(t=!1);var n=z(new Date(e.getFullYear(),e.getMonth(),1),t),r=z(e,t);return 1==r&&(r=53),r-n+1}function W(e,t,n,r){void 0===n&&(n=1),void 0===r&&(r=!1);var i=new Date(t,0,4,0,0,0,0);return r&&i.setUTCFullYear(t),7*e+n-((i.getDay()||7)+3)}function G(e,t){return e>12?e-=12:0===e&&(e=12),o.hasValue(t)?e+(t-1):e}function q(e,t,n,r){if(void 0===t&&(t=!1),void 0===n&&(n=!1),void 0===r&&(r=!1),r)return t?"Coordinated Universal Time":"UTC";var i=e.toLocaleString("UTC"),a=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(i.length);return!1===n&&(a=a.replace(/ (standard|daylight|summer|winter) /i," ")),a}function Y(e,t){return Math.floor(Math.random()*(t-e))+e}function X(e,t,n){return e>n?n:en||e1&&i.pop(),u.pushAll(i,a),n.path=i.join("/"),""!==n.path&&"/"!==n.path[0])throw new Error("URL path must start with /")}return n.query=r.query,n.hash=r.hash,ue(n)}return ue(r)}function pe(){return!!window.MSInputMethodContext&&!!document.documentMode}},function(e,t,n){"use strict";n.r(t),n.d(t,"indexOf",(function(){return a})),n.d(t,"any",(function(){return o})),n.d(t,"map",(function(){return s})),n.d(t,"each",(function(){return l})),n.d(t,"eachReverse",(function(){return c})),n.d(t,"eachContinue",(function(){return u})),n.d(t,"shiftLeft",(function(){return d})),n.d(t,"last",(function(){return h})),n.d(t,"first",(function(){return p})),n.d(t,"insert",(function(){return f})),n.d(t,"setIndex",(function(){return m})),n.d(t,"pushAll",(function(){return g})),n.d(t,"remove",(function(){return y})),n.d(t,"move",(function(){return v})),n.d(t,"add",(function(){return b})),n.d(t,"replace",(function(){return x})),n.d(t,"toArray",(function(){return _})),n.d(t,"has",(function(){return w})),n.d(t,"copy",(function(){return S})),n.d(t,"slice",(function(){return T})),n.d(t,"insertIndex",(function(){return O})),n.d(t,"removeIndex",(function(){return C})),n.d(t,"getSortedIndex",(function(){return P})),n.d(t,"findIndex",(function(){return E})),n.d(t,"find",(function(){return k})),n.d(t,"shuffle",(function(){return A})),n.d(t,"keepIf",(function(){return j}));var r=n(4),i=n(2);function a(e,t){for(var n=e.length,r=0;r>1,s=t(n,e[o]);s<0?i=o:0===s?(a=!0,r=o+1):r=o+1}return{found:a,index:a?r-1:r}}function E(e,t){for(var n=e.length,r=0;r=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function s(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function l(){for(var e=[],t=0;t2&&ee("box");var n=q(t);return new je(e,Z(n),n.name,!0,n.equals)},array:function(e,t){arguments.length>2&&ee("array");var n=q(t);return _n(e,Z(n),n.name)},map:function(e,t){arguments.length>2&&ee("map");var n=q(t);return new kn(e,Z(n),n.name)},set:function(e,t){arguments.length>2&&ee("set");var n=q(t);return new In(e,Z(n),n.name)},object:function(e,t,n){"string"==typeof arguments[1]&&ee("object");var r=q(n);if(!1===r.proxy)return Ct({},e,t,r);var i=Pt(r),a=Ct({},void 0,void 0,r),o=pn(a);return Et(o,e,t,i),o},ref:$,shallow:X,deep:Y,struct:K},J=function(e,t,n){if("string"==typeof arguments[1]||"symbol"==typeof arguments[1])return Y.apply(null,arguments);if(Wt(e))return e;var r=v(e)?J.object(e,t,n):Array.isArray(e)?J.array(e,t):S(e)?J.map(e,t):T(e)?J.set(e,t):e;if(r!==e)return r;h("The provided value could not be converted into an observable. If you want just create an observable reference to the object use 'observable.box(value)'")};function ee(e){h("Expected one or two arguments to observable."+e+". Did you accidentally try to use observable."+e+" as decorator?")}Object.keys(Q).forEach((function(e){return J[e]=Q[e]}));var te,ne,re=V(!1,(function(e,t,n,r,i){var o=n.get,s=n.set,l=i[0]||{};Nn(e).addComputedProp(e,t,a({get:o,set:s,context:e},l))})),ie=re({equals:I.structural}),ae=function(e,t,n){if("string"==typeof t)return re.apply(null,arguments);if(null!==e&&"object"==typeof e&&1===arguments.length)return re.apply(null,arguments);p("function"==typeof e,"First argument to `computed` should be an expression."),p(arguments.length<3,"Computed takes one or two arguments if used as function");var r="object"==typeof t?t:{};return r.get=e,r.set="function"==typeof t?t:r.set,r.name=r.name||e.name||"",new Me(r)};ae.struct=ie,function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(te||(te={})),function(e){e[e.NONE=0]="NONE",e[e.LOG=1]="LOG",e[e.BREAK=2]="BREAK"}(ne||(ne={}));var oe=function(e){this.cause=e};function se(e){return e instanceof oe}function le(e){switch(e.dependenciesState){case te.UP_TO_DATE:return!1;case te.NOT_TRACKING:case te.STALE:return!0;case te.POSSIBLY_STALE:for(var t=ge(!0),n=fe(),r=e.observing,i=r.length,a=0;a0;He.computationDepth>0&&t&&h("Computed values are not allowed to cause side effects by changing observables that are already being observed. Tried to modify: "+e.name),He.allowStateChanges||!t&&"strict"!==He.enforceActions||h((He.enforceActions?"Since strict-mode is enabled, changing observed observable values outside actions is not allowed. Please wrap the code in an `action` if this change is intended. Tried to modify: ":"Side effects like changing state are not allowed at this point. Are you trying to modify state from, for example, the render function of a React component? Tried to modify: ")+e.name)}function de(e,t,n){var r=ge(!0);ve(e),e.newObserving=new Array(e.observing.length+100),e.unboundDepsCount=0,e.runId=++He.runId;var i,a=He.trackingDerivation;if(He.trackingDerivation=e,!0===He.disableErrorBoundaries)i=t.call(n);else try{i=t.call(n)}catch(e){i=new oe(e)}return He.trackingDerivation=a,function(e){for(var t=e.observing,n=e.observing=e.newObserving,r=te.UP_TO_DATE,i=0,a=e.unboundDepsCount,o=0;or&&(r=s.dependenciesState)}n.length=i,e.newObserving=null,a=t.length;for(;a--;){0===(s=t[a]).diffValue&&Ge(s,e),s.diffValue=0}for(;i--;){var s;1===(s=n[i]).diffValue&&(s.diffValue=0,We(s,e))}r!==te.UP_TO_DATE&&(e.dependenciesState=r,e.onBecomeStale())}(e),function(e){if(0!==e.observing.length)return;(He.reactionRequiresObservable||e.requiresObservable)&&console.warn("[mobx] Derivation "+e.name+" is created/updated without reading any observable value")}(e),ye(r),i}function he(e){var t=e.observing;e.observing=[];for(var n=t.length;n--;)Ge(t[n],e);e.dependenciesState=te.NOT_TRACKING}function pe(e){var t=fe();try{return e()}finally{me(t)}}function fe(){var e=He.trackingDerivation;return He.trackingDerivation=null,e}function me(e){He.trackingDerivation=e}function ge(e){var t=He.allowStateReads;return He.allowStateReads=e,t}function ye(e){He.allowStateReads=e}function ve(e){if(e.dependenciesState!==te.UP_TO_DATE){e.dependenciesState=te.UP_TO_DATE;for(var t=e.observing,n=t.length;n--;)t[n].lowestObserverState=te.UP_TO_DATE}}var be=0,xe=1,_e=Object.getOwnPropertyDescriptor((function(){}),"name"),we=_e&&_e.configurable;function Se(e,t,n){p("function"==typeof t,"`action` can only be invoked on functions"),"string"==typeof e&&e||h("actions should have valid names, got: '"+e+"'");var r=function(){return Te(e,t,n||this,arguments)};return r.isMobxAction=!0,we&&Object.defineProperty(r,"name",{value:e}),r}function Te(e,t,n,r){var i=Oe(e,n,r);try{return t.apply(n,r)}catch(e){throw i.error=e,e}finally{Ce(i)}}function Oe(e,t,n){var r=it()&&!!e,i=0;if(r){i=Date.now();var a=n&&n.length||0,o=new Array(a);if(a>0)for(var s=0;s0&&!e.__mobxGlobals&&(Ve=!1),e.__mobxGlobals&&e.__mobxGlobals.version!==(new Re).version&&(Ve=!1),Ve?e.__mobxGlobals?(e.__mobxInstanceCount+=1,e.__mobxGlobals.UNCHANGED||(e.__mobxGlobals.UNCHANGED={}),e.__mobxGlobals):(e.__mobxInstanceCount=1,e.__mobxGlobals=new Re):(setTimeout((function(){Be||h("There are multiple, different versions of MobX active. Make sure MobX is loaded only once or use `configure({ isolateGlobalState: true })`")}),1),new Re)}();function ze(){return He}function Ue(){var e=new Re;for(var t in e)-1===Ne.indexOf(t)&&(He[t]=e[t]);He.allowStateChanges=!He.enforceActions}function We(e,t){e.observers.add(t),e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function Ge(e,t){e.observers.delete(t),0===e.observers.size&&qe(e)}function qe(e){!1===e.isPendingUnobservation&&(e.isPendingUnobservation=!0,He.pendingUnobservations.push(e))}function Ye(){He.inBatch++}function Xe(){if(0==--He.inBatch){et();for(var e=He.pendingUnobservations,t=0;t0&&qe(e),!1)}function Ke(e,t){if(console.log("[mobx.trace] '"+e.name+"' is invalidated due to a change in: '"+t.name+"'"),e.isTracing===ne.BREAK){var n=[];!function e(t,n,r){if(n.length>=1e3)return void n.push("(and many more)");n.push(""+new Array(r).join("\t")+t.name),t.dependencies&&t.dependencies.forEach((function(t){return e(t,n,r+1)}))}(kt(e),n,1),new Function("debugger;\n/*\nTracing '"+e.name+"'\n\nYou are entering this break point because derivation '"+e.name+"' is being traced and '"+t.name+"' is now forcing it to update.\nJust follow the stacktrace you should now see in the devtools to see precisely what piece of your code is causing this update\nThe stackframe you are looking for is at least ~6-8 stack-frames up.\n\n"+(e instanceof Me?e.derivation.toString().replace(/[*]\//g,"/"):"")+"\n\nThe dependencies for this derivation are:\n\n"+n.join("\n")+"\n*/\n ")()}}var Ze=function(){function e(e,t,n,r){void 0===e&&(e="Reaction@"+d()),void 0===r&&(r=!1),this.name=e,this.onInvalidate=t,this.errorHandler=n,this.requiresObservable=r,this.observing=[],this.newObserving=[],this.dependenciesState=te.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+d(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1,this.isTracing=ne.NONE}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,He.pendingReactions.push(this),et())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){if(!this.isDisposed){if(Ye(),this._isScheduled=!1,le(this)){this._isTrackPending=!0;try{this.onInvalidate(),this._isTrackPending&&it()&&at({name:this.name,type:"scheduled-reaction"})}catch(e){this.reportExceptionInDerivation(e)}}Xe()}},e.prototype.track=function(e){if(!this.isDisposed){Ye();var t,n=it();n&&(t=Date.now(),ot({name:this.name,type:"reaction"})),this._isRunning=!0;var r=de(this,e,void 0);this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&he(this),se(r)&&this.reportExceptionInDerivation(r.cause),n&<({time:Date.now()-t}),Xe()}},e.prototype.reportExceptionInDerivation=function(e){var t=this;if(this.errorHandler)this.errorHandler(e,this);else{if(He.disableErrorBoundaries)throw e;var n="[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '"+this+"'";He.suppressReactionErrors?console.warn("[mobx] (error in reaction '"+this.name+"' suppressed, fix error of causing action below)"):console.error(n,e),it()&&at({type:"error",name:this.name,message:n,error:""+e}),He.globalReactionErrorHandlers.forEach((function(n){return n(e,t)}))}},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(Ye(),he(this),Xe()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e[E]=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.trace=function(e){void 0===e&&(e=!1),rn(this,e)},e}();function Qe(e){return He.globalReactionErrorHandlers.push(e),function(){var t=He.globalReactionErrorHandlers.indexOf(e);t>=0&&He.globalReactionErrorHandlers.splice(t,1)}}var Je=function(e){return e()};function et(){He.inBatch>0||He.isRunningReactions||Je(tt)}function tt(){He.isRunningReactions=!0;for(var e=He.pendingReactions,t=0;e.length>0;){100==++t&&(console.error("Reaction doesn't converge to a stable state after 100 iterations. Probably there is a cycle in the reactive function: "+e[0]),e.splice(0));for(var n=e.splice(0),r=0,i=n.length;r",e):2===arguments.length&&"function"==typeof t?Se(e,t):1===arguments.length&&"string"==typeof e?dt(e):!0!==r?dt(t).apply(null,arguments):void b(e,t,Se(e.name||t,n.value,this))};function ft(e,t){var n="string"==typeof e?e:e.name||"",r="function"==typeof e?e:t;return p("function"==typeof r&&0===r.length,"`runInAction` expects a function without arguments"),"string"==typeof n&&n||h("actions should have valid names, got: '"+n+"'"),Te(n,r,this,void 0)}function mt(e){return"function"==typeof e&&!0===e.isMobxAction}function gt(e,t,n){b(e,t,Se(t,n.bind(e)))}function yt(e,t){void 0===t&&(t=u),p("function"==typeof e,"Autorun expects a function as first argument"),p(!1===mt(e),"Autorun does not accept actions since actions are untrackable");var n,r=t&&t.name||e.name||"Autorun@"+d();if(!t.scheduler&&!t.delay)n=new Ze(r,(function(){this.track(o)}),t.onError,t.requiresObservable);else{var i=bt(t),a=!1;n=new Ze(r,(function(){a||(a=!0,i((function(){a=!1,n.isDisposed||n.track(o)})))}),t.onError,t.requiresObservable)}function o(){e(n)}return n.schedule(),n.getDisposer()}pt.bound=function(e,t,n,r){return!0===r?(gt(e,t,n.value),null):n?{configurable:!0,enumerable:!1,get:function(){return gt(this,t,n.value||n.initializer.call(this)),this[t]},set:ut}:{enumerable:!1,configurable:!0,set:function(e){gt(this,t,e)},get:function(){}}};var vt=function(e){return e()};function bt(e){return e.scheduler?e.scheduler:e.delay?function(t){return setTimeout(t,e.delay)}:vt}function xt(e,t,n){void 0===n&&(n=u),p("function"==typeof e,"First argument to reaction should be a function"),p("object"==typeof n,"Third argument of reactions should be an object");var r,i,a,o=n.name||"Reaction@"+d(),s=pt(o,n.onError?(r=n.onError,i=t,function(){try{return i.apply(this,arguments)}catch(e){r.call(this,e)}}):t),l=!n.scheduler&&!n.delay,c=bt(n),h=!0,f=!1,m=n.compareStructural?I.structural:n.equals||I.default,g=new Ze(o,(function(){h||l?y():f||(f=!0,c(y))}),n.onError,n.requiresObservable);function y(){if(f=!1,!g.isDisposed){var t=!1;g.track((function(){var n=e(g);t=h||!m(a,n),a=n})),h&&n.fireImmediately&&s(a,g),h||!0!==t||s(a,g),h&&(h=!1)}}return g.schedule(),g.getDisposer()}function _t(e,t,n){return St("onBecomeObserved",e,t,n)}function wt(e,t,n){return St("onBecomeUnobserved",e,t,n)}function St(e,t,n,r){var i="function"==typeof r?Hn(t,n):Hn(t),a="function"==typeof r?r:n,o=e+"Listeners";return i[o]?i[o].add(a):i[o]=new Set([a]),"function"!=typeof i[e]?h("Not an atom that can be (un)observed"):function(){var e=i[o];e&&(e.delete(a),0===e.size&&delete i[o])}}function Tt(e){var t=e.enforceActions,n=e.computedRequiresReaction,r=e.computedConfigurable,i=e.disableErrorBoundaries,a=e.reactionScheduler,o=e.reactionRequiresObservable,s=e.observableRequiresReaction;if(!0===e.isolateGlobalState&&((He.pendingReactions.length||He.inBatch||He.isRunningReactions)&&h("isolateGlobalState should be called before MobX is running any reactions"),Be=!0,Ve&&(0==--Fe().__mobxInstanceCount&&(Fe().__mobxGlobals=void 0),He=new Re)),void 0!==t){"boolean"!=typeof t&&"strict"!==t||function e(t,n){return n?e("'"+t+"', use '"+n+"' instead."):-1===f.indexOf(t)&&(f.push(t),console.error("[mobx] Deprecated: "+t),!0)}("Deprecated value for 'enforceActions', use 'false' => '\"never\"', 'true' => '\"observed\"', '\"strict\"' => \"'always'\" instead");var l=void 0;switch(t){case!0:case"observed":l=!0;break;case!1:case"never":l=!1;break;case"strict":case"always":l="strict";break;default:h("Invalid value for 'enforceActions': '"+t+"', expected 'never', 'always' or 'observed'")}He.enforceActions=l,He.allowStateChanges=!0!==l&&"strict"!==l}void 0!==n&&(He.computedRequiresReaction=!!n),void 0!==o&&(He.reactionRequiresObservable=!!o),void 0!==s&&(He.observableRequiresReaction=!!s,He.allowStateReads=!He.observableRequiresReaction),void 0!==r&&(He.computedConfigurable=!!r),void 0!==i&&(!0===i&&console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled."),He.disableErrorBoundaries=!!i),a&&rt(a)}function Ot(e,t){p(v(t),"Decorators should be a key value map");var n="function"==typeof e?e.prototype:e,r=function(e){var r=t[e];Array.isArray(r)||(r=[r]),p(r.every((function(e){return"function"==typeof e})),"Decorate: expected a decorator function or array of decorator functions for '"+e+"'");var i=Object.getOwnPropertyDescriptor(n,e),a=r.reduce((function(t,r){return r(n,e,t)}),i);a&&Object.defineProperty(n,e,a)};for(var i in t)r(i);return e}function Ct(e,t,n,r){p(arguments.length>=2&&arguments.length<=4,"'extendObservable' expected 2-4 arguments"),p("object"==typeof e,"'extendObservable' expects an object as first argument"),p(!An(e),"'extendObservable' should not be used on maps, use map.merge instead");var i=Pt(r=q(r));return F(e),Nn(e,r.name,i.enhancer),t&&Et(e,t,n,i),e}function Pt(e){return e.defaultDecorator||(!1===e.deep?$:Y)}function Et(e,t,n,r){var i,a,s,l;if(p(!Wt(t),"Extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540"),n){var c=O(n);try{for(var u=o(c),d=u.next();!d.done;d=u.next()){(g=d.value)in t||h("Trying to declare a decorator for unspecified property '"+C(g)+"'")}}catch(e){i={error:e}}finally{try{d&&!d.done&&(a=u.return)&&a.call(u)}finally{if(i)throw i.error}}}Ye();try{c=O(t);try{for(var f=o(c),m=f.next();!m.done;m=f.next()){var g=m.value,y=Object.getOwnPropertyDescriptor(t,g);v(t)||h("'extendObservabe' only accepts plain objects as second argument"),Ht(y.value)&&h("Passing a 'computed' as initial property value is no longer supported by extendObservable. Use a getter or decorator instead");var b=n&&g in n?n[g]:y.get?re:r;"function"!=typeof b&&h("Not a valid decorator for '"+C(g)+"', got: "+b);var x=b(e,g,y,!0);x&&Object.defineProperty(e,g,x)}}catch(e){s={error:e}}finally{try{m&&!m.done&&(l=f.return)&&l.call(f)}finally{if(s)throw s.error}}}finally{Xe()}}function kt(e,t){return At(Hn(e,t))}function At(e){var t,n,r={name:e.name};return e.observing&&e.observing.length>0&&(r.dependencies=(t=e.observing,n=[],t.forEach((function(e){-1===n.indexOf(e)&&n.push(e)})),n).map(At)),r}function jt(e,t){return It(Hn(e,t))}function It(e){var t={name:e.name};return function(e){return e.observers&&e.observers.size>0}(e)&&(t.observers=Array.from(function(e){return e.observers}(e)).map(It)),t}var Mt=0;function Dt(){this.message="FLOW_CANCELLED"}function Nt(e){return e instanceof Dt}function Rt(e){1!==arguments.length&&h("Flow expects 1 argument and cannot be used as decorator");var t=e.name||"";return function(){var n,r=this,i=arguments,a=++Mt,o=pt(t+" - runid: "+a+" - init",e).apply(r,i),s=void 0,l=new Promise((function(e,r){var i=0;function l(e){var n;s=void 0;try{n=pt(t+" - runid: "+a+" - yield "+i++,o.next).call(o,e)}catch(e){return r(e)}u(n)}function c(e){var n;s=void 0;try{n=pt(t+" - runid: "+a+" - yield "+i++,o.throw).call(o,e)}catch(e){return r(e)}u(n)}function u(t){if(!t||"function"!=typeof t.then)return t.done?e(t.value):(s=Promise.resolve(t.value)).then(l,c);t.then(u,r)}n=r,l(void 0)}));return l.cancel=pt(t+" - runid: "+a+" - cancel",(function(){try{s&&Lt(s);var e=o.return(void 0),t=Promise.resolve(e.value);t.then(g,g),Lt(t),n(new Dt)}catch(e){n(e)}})),l}}function Lt(e){"function"==typeof e.cancel&&e.cancel()}function Ft(e,t,n){var r;if(An(e)||Cn(e)||Ie(e))r=zn(e);else{if(!Bn(e))return h("Expected observable map, object or array as first array");if("string"!=typeof t)return h("InterceptReads can only be used with a specific property, not with an object in general");r=zn(e,t)}return void 0!==r.dehancer?h("An intercept reader was already established"):(r.dehancer="function"==typeof t?t:n,function(){r.dehancer=void 0})}function Vt(e,t,n){return"function"==typeof n?function(e,t,n){return zn(e,t).intercept(n)}(e,t,n):function(e,t){return zn(e).intercept(t)}(e,t)}function Bt(e,t){if(null==e)return!1;if(void 0!==t){if(!1===Bn(e))return!1;if(!e[E].values.has(t))return!1;var n=Hn(e,t);return De(n)}return De(e)}function Ht(e){return arguments.length>1?h("isComputed expects only 1 argument. Use isObservableProp to inspect the observability of a property"):Bt(e)}function zt(e,t){return"string"!=typeof t?h("isComputed expected a property name as second argument"):Bt(e,t)}function Ut(e,t){return null!=e&&(void 0!==t?An(e)||Cn(e)?h("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead."):!!Bn(e)&&e[E].values.has(t):Bn(e)||!!e[E]||A(e)||nt(e)||De(e))}function Wt(e){return 1!==arguments.length&&h("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property"),Ut(e)}function Gt(e,t){return"string"!=typeof t?h("expected a property name as second argument"):Ut(e,t)}function qt(e){return Bn(e)?e[E].getKeys():An(e)||Mn(e)?Array.from(e.keys()):Cn(e)?e.map((function(e,t){return t})):h("'keys()' can only be used on observable objects, arrays, sets and maps")}function Yt(e){return Bn(e)?qt(e).map((function(t){return e[t]})):An(e)?qt(e).map((function(t){return e.get(t)})):Mn(e)?Array.from(e.values()):Cn(e)?e.slice():h("'values()' can only be used on observable objects, arrays, sets and maps")}function Xt(e){return Bn(e)?qt(e).map((function(t){return[t,e[t]]})):An(e)?qt(e).map((function(t){return[t,e.get(t)]})):Mn(e)?Array.from(e.entries()):Cn(e)?e.map((function(e,t){return[t,e]})):h("'entries()' can only be used on observable objects, arrays and maps")}function $t(e,t,n){if(2!==arguments.length||Mn(e))if(Bn(e)){var r=e[E],i=r.values.get(t);i?r.write(t,n):r.addObservableProp(t,n,r.defaultEnhancer)}else if(An(e))e.set(t,n);else if(Mn(e))e.add(t);else{if(!Cn(e))return h("'set()' can only be used on observable objects, arrays and maps");"number"!=typeof t&&(t=parseInt(t,10)),p(t>=0,"Not a valid index: '"+t+"'"),Ye(),t>=e.length&&(e.length=t+1),e[t]=n,Xe()}else{Ye();var a=t;try{for(var o in a)$t(e,o,a[o])}finally{Xe()}}}function Kt(e,t){if(Bn(e))e[E].remove(t);else if(An(e))e.delete(t);else if(Mn(e))e.delete(t);else{if(!Cn(e))return h("'remove()' can only be used on observable objects, arrays and maps");"number"!=typeof t&&(t=parseInt(t,10)),p(t>=0,"Not a valid index: '"+t+"'"),e.splice(t,1)}}function Zt(e,t){return Bn(e)?zn(e).has(t):An(e)||Mn(e)?e.has(t):Cn(e)?t>=0&&t0}function mn(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function gn(e,t){var n=fe();try{for(var r=l(e.interceptors||[]),i=0,a=r.length;i0}function vn(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),m((function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}))}function bn(e,t){var n=fe(),r=e.changeListeners;if(r){for(var i=0,a=(r=r.slice()).length;i0?e.map(this.dehancer):e},e.prototype.intercept=function(e){return mn(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.proxy,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),vn(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;if(e!==t)if(e>t){for(var n=new Array(e-t),r=0;ri?e=i:e<0&&(e=Math.max(0,i+e)),t=1===arguments.length?i-e:null==t?0:Math.max(0,Math.min(t,i-e)),void 0===n&&(n=c),fn(this)){var a=gn(this,{object:this.proxy,type:"splice",index:e,removedCount:t,added:n});if(!a)return c;t=a.removedCount,n=a.added}var o=(n=0===n.length?n:n.map((function(e){return r.enhancer(e,void 0)}))).length-t;this.updateArrayLength(i,o);var s=this.spliceItemsIntoValues(e,t,n);return 0===t&&0===n.length||this.notifyArraySplice(e,n,s),this.dehanceValues(s)},e.prototype.spliceItemsIntoValues=function(e,t,n){var r;if(n.length<1e4)return(r=this.values).splice.apply(r,l([e,t],n));var i=this.values.slice(e,e+t);return this.values=this.values.slice(0,e).concat(n,this.values.slice(e+t)),i},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&it(),i=yn(this),o=i||r?{object:this.proxy,type:"update",index:e,newValue:t,oldValue:n}:null;r&&ot(a(a({},o),{name:this.atom.name})),this.atom.reportChanged(),i&&bn(this,o),r&<()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&it(),i=yn(this),o=i||r?{object:this.proxy,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&ot(a(a({},o),{name:this.atom.name})),this.atom.reportChanged(),i&&bn(this,o),r&<()},e}(),Sn={intercept:function(e){return this[E].intercept(e)},observe:function(e,t){return void 0===t&&(t=!1),this[E].observe(e,t)},clear:function(){return this.splice(0)},replace:function(e){var t=this[E];return t.spliceWithArray(0,t.values.length,e)},toJS:function(){return this.slice()},toJSON:function(){return this.toJS()},splice:function(e,t){for(var n=[],r=2;r-1&&(this.splice(n,1),!0)},get:function(e){var t=this[E];if(t){if(e=0&&r++}t=qn(t),n=qn(n);var l="[object Array]"===s;if(!l){if("object"!=typeof t||"object"!=typeof n)return!1;var c=t.constructor,u=n.constructor;if(c!==u&&!("function"==typeof c&&c instanceof c&&"function"==typeof u&&u instanceof u)&&"constructor"in t&&"constructor"in n)return!1}if(0===r)return!1;r<0&&(r=-1);a=a||[];var d=(i=i||[]).length;for(;d--;)if(i[d]===t)return a[d]===n;if(i.push(t),a.push(n),l){if((d=t.length)!==n.length)return!1;for(;d--;)if(!e(t[d],n[d],r-1,i,a))return!1}else{var h=Object.keys(t),p=void 0;if(d=h.length,Object.keys(n).length!==d)return!1;for(;d--;)if(p=h[d],!Yn(n,p)||!e(t[p],n[p],r-1,i,a))return!1}return i.pop(),a.pop(),!0}(e,t,n)}function qn(e){return Cn(e)?e.slice():S(e)||An(e)||T(e)||Mn(e)?Array.from(e.entries()):e}function Yn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Xn(e){return e[Symbol.iterator]=$n,e}function $n(){return this}if("undefined"==typeof Proxy||"undefined"==typeof Symbol)throw new Error("[mobx] MobX 5+ requires Proxy and Symbol objects. If your environment doesn't support Symbol or Proxy objects, please downgrade to MobX 4. For React Native Android, consider upgrading JSCore.");!function(){if("testCodeMinification"!==function(){}.name&&"true"!==e.env.IGNORE_MOBX_MINIFY_WARNING){var t=["process","env","NODE_ENV"].join(".");console.warn("[mobx] you are running a minified build, but '"+t+"' was not set to 'production' in your bundler. This results in an unnecessarily large and slow bundle")}}(),"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx({spy:ct,extras:{getDebugName:Un},$mobx:E})}.call(this,n(186),n(105))},function(e,t,n){(function(t){var n;n="undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{},e.exports=n}).call(this,n(105))},function(e,t){function n(){return e.exports=n=Object.assign||function(e){for(var t=1;te?t:e}function S(e){return b(e,null,w)}function T(e,t){void 0===t&&(t="");var n=!0,r="";return e((function(e){return n?n=!1:r+=t,r+=e,!0})),r}var O=function(){function e(e,t){this.createNewItems=!1,this.list=e,this._create=t,this.reset()}return e.prototype.reset=function(){this._listCopy=o(this.list.iterator())},e.prototype.clear=function(){this._listCopy.length=0},e.prototype.getFirst=function(){return this.returnItem(0)},e.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},e.prototype.find=function(e){var t=r.findIndex(this._listCopy,e);if(-1!==t){var n=this._listCopy[t];return r.remove(this._listCopy,n),n}return this.getLast()},e.prototype.removeItem=function(e){return r.remove(this._listCopy,e)},e.prototype.returnItem=function(e){if(e>=0&&e=0?R[i]:"")+e},F=function(){"undefined"!=typeof window&&window.document&&(r=window,i=r.document,a=i.documentElement,s=D("div")||{style:{}},l=D("div"),I=L(I),M=I+"Origin",s.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",u=!!L("perspective"),o=1)},V=function e(t){var n,r=D("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=this.parentNode,o=this.nextSibling,s=this.style.cssText;if(a.appendChild(r),r.appendChild(this),this.style.display="block",t)try{n=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=e}catch(e){}else this._gsapBBox&&(n=this._gsapBBox());return i&&(o?i.insertBefore(this,o):i.appendChild(this)),a.removeChild(r),this.style.cssText=s,n},B=function(e,t){for(var n=t.length;n--;)if(e.hasAttribute(t[n]))return e.getAttribute(t[n])},H=function(e){var t;try{t=e.getBBox()}catch(n){t=V.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===V||(t=V.call(e,!0)),!t||t.width||t.x||t.y?t:{x:+B(e,["x","cx","x1"])||0,y:+B(e,["y","cy","y1"])||0,width:0,height:0}},z=function(e){return!(!e.getCTM||e.parentNode&&!e.ownerSVGElement||!H(e))},U=function(e,t){if(t){var n=e.style;t in h&&t!==M&&(t=I),n.removeProperty?("ms"!==t.substr(0,2)&&"webkit"!==t.substr(0,6)||(t="-"+t),n.removeProperty(t.replace(g,"-$1").toLowerCase())):n.removeAttribute(t)}},W=function(e,t,n,r,i,a){var o=new d.n(e._pt,t,n,0,1,a?O:T);return e._pt=o,o.b=r,o.e=i,e._props.push(n),o},G={deg:1,rad:1,turn:1},q=function e(t,n,r,a){var o,l,c,u,p=parseFloat(r)||0,f=(r+"").trim().substr((p+"").length)||"px",m=s.style,g=y.test(n),v="svg"===t.tagName.toLowerCase(),b=(v?"client":"offset")+(g?"Width":"Height"),x="px"===a,_="%"===a;return a===f||!p||G[a]||G[f]?p:("px"!==f&&!x&&(p=e(t,n,r,"px")),u=t.getCTM&&z(t),_&&(h[n]||~n.indexOf("adius"))?Object(d.N)(p/(u?t.getBBox()[g?"width":"height"]:t[b])*100):(m[g?"width":"height"]=100+(x?f:a),l=~n.indexOf("adius")||"em"===a&&t.appendChild&&!v?t:t.parentNode,u&&(l=(t.ownerSVGElement||{}).parentNode),l&&l!==i&&l.appendChild||(l=i.body),(c=l._gsap)&&_&&c.width&&g&&c.time===d.P.time?Object(d.N)(p/c.width*100):((_||"%"===f)&&(m.position=N(t,"position")),l===t&&(m.position="static"),l.appendChild(s),o=s[b],l.removeChild(s),m.position="absolute",g&&_&&((c=Object(d.B)(l)).time=d.P.time,c.width=l[b]),Object(d.N)(x?o*p/100:o&&p?100/o*p:0))))},Y=function(e,t,n,r){var i;return o||F(),t in b&&"transform"!==t&&~(t=b[t]).indexOf(",")&&(t=t.split(",")[0]),h[t]&&"transform"!==t?(i=ie(e,r),i="transformOrigin"!==t?i[t]:ae(N(e,M))+" "+i.zOrigin+"px"):(!(i=e.style[t])||"auto"===i||r||~(i+"").indexOf("calc("))&&(i=Z[t]&&Z[t](e,t,n)||N(e,t)||Object(d.C)(e,t)||("opacity"===t?1:0)),n&&!~(i+"").indexOf(" ")?q(e,t,i,n)+n:i},X=function(e,t,n,r){if(!n||"none"===n){var i=L(t,e,1),a=i&&N(e,i,1);a&&a!==n?(t=i,n=a):"borderColor"===t&&(n=N(e,"borderTopColor"))}var o,s,l,c,u,h,p,f,m,g,y,v,b=new d.n(this._pt,e.style,t,0,1,d.L),x=0,_=0;if(b.b=n,b.e=r,n+="","auto"===(r+="")&&(e.style[t]=r,r=N(e,t)||r,e.style[t]=n),o=[n,r],Object(d.y)(o),r=o[1],l=(n=o[0]).match(d.I)||[],(r.match(d.I)||[]).length){for(;s=d.I.exec(r);)p=s[0],m=r.substring(x,s.index),u?u=(u+1)%5:"rgba("!==m.substr(-5)&&"hsla("!==m.substr(-5)||(u=1),p!==(h=l[_++]||"")&&(c=parseFloat(h)||0,y=h.substr((c+"").length),(v="="===p.charAt(1)?+(p.charAt(0)+"1"):0)&&(p=p.substr(2)),f=parseFloat(p),g=p.substr((f+"").length),x=d.I.lastIndex-g.length,g||(g=g||d.z.units[t]||y,x===r.length&&(r+=g,b.e+=g)),y!==g&&(c=q(e,t,h,g)||0),b._pt={_next:b._pt,p:m||1===_?m:",",s:c,c:v?v*f:f-c,m:u&&u<4?Math.round:0});b.c=x-1;)n=s[i],h[n]&&(r=1,n="transformOrigin"===n?M:I),U(a,n);r&&(U(a,I),l&&(l.svg&&a.removeAttribute("transform"),ie(a,1),l.uncache=1))}},Z={clearProps:function(e,t,n,r,i){if("isFromStart"!==i.data){var a=e._pt=new d.n(e._pt,t,n,0,0,K);return a.u=r,a.pr=-10,a.tween=i,e._props.push(n),1}}},Q=[1,0,0,1,0,0],J={},ee=function(e){return"matrix(1, 0, 0, 1, 0, 0)"===e||"none"===e||!e},te=function(e){var t=N(e,I);return ee(t)?Q:t.substr(7).match(d.H).map(d.N)},ne=function(e,t){var n,r,i,o,s=e._gsap||Object(d.B)(e),l=e.style,c=te(e);return s.svg&&e.getAttribute("transform")?"1,0,0,1,0,0"===(c=[(i=e.transform.baseVal.consolidate().matrix).a,i.b,i.c,i.d,i.e,i.f]).join(",")?Q:c:(c!==Q||e.offsetParent||e===a||s.svg||(i=l.display,l.display="block",(n=e.parentNode)&&e.offsetParent||(o=1,r=e.nextSibling,a.appendChild(e)),c=te(e),i?l.display=i:U(e,"display"),o&&(r?n.insertBefore(e,r):n?n.appendChild(e):a.removeChild(e))),t&&c.length>6?[c[0],c[1],c[4],c[5],c[12],c[13]]:c)},re=function(e,t,n,r,i,a){var o,s,l,c=e._gsap,u=i||ne(e,!0),d=c.xOrigin||0,h=c.yOrigin||0,p=c.xOffset||0,f=c.yOffset||0,m=u[0],g=u[1],y=u[2],v=u[3],b=u[4],x=u[5],_=t.split(" "),w=parseFloat(_[0])||0,S=parseFloat(_[1])||0;n?u!==Q&&(s=m*v-g*y)&&(l=w*(-g/s)+S*(m/s)-(m*x-g*b)/s,w=w*(v/s)+S*(-y/s)+(y*x-v*b)/s,S=l):(w=(o=H(e)).x+(~_[0].indexOf("%")?w/100*o.width:w),S=o.y+(~(_[1]||_[0]).indexOf("%")?S/100*o.height:S)),r||!1!==r&&c.smooth?(b=w-d,x=S-h,c.xOffset=p+(b*m+x*y)-b,c.yOffset=f+(b*g+x*v)-x):c.xOffset=c.yOffset=0,c.xOrigin=w,c.yOrigin=S,c.smooth=!!r,c.origin=t,c.originIsAbsolute=!!n,e.style[M]="0px 0px",a&&(W(a,c,"xOrigin",d,w),W(a,c,"yOrigin",h,S),W(a,c,"xOffset",p,c.xOffset),W(a,c,"yOffset",f,c.yOffset)),e.setAttribute("data-svg-origin",w+" "+S)},ie=function(e,t){var n=e._gsap||new d.g(e);if("x"in n&&!t&&!n.uncache)return n;var r,i,a,o,s,l,c,h,g,y,v,b,x,_,w,S,T,O,C,P,E,k,A,j,D,R,L,F,V,B,H,U,W=e.style,G=n.scaleX<0,q=N(e,M)||"0";return r=i=a=l=c=h=g=y=v=0,o=s=1,n.svg=!(!e.getCTM||!z(e)),_=ne(e,n.svg),n.svg&&(j=!n.uncache&&e.getAttribute("data-svg-origin"),re(e,j||q,!!j||n.originIsAbsolute,!1!==n.smooth,_)),b=n.xOrigin||0,x=n.yOrigin||0,_!==Q&&(O=_[0],C=_[1],P=_[2],E=_[3],r=k=_[4],i=A=_[5],6===_.length?(o=Math.sqrt(O*O+C*C),s=Math.sqrt(E*E+P*P),l=O||C?m(C,O)*p:0,(g=P||E?m(P,E)*p+l:0)&&(s*=Math.cos(g*f)),n.svg&&(r-=b-(b*O+x*P),i-=x-(b*C+x*E))):(U=_[6],B=_[7],L=_[8],F=_[9],V=_[10],H=_[11],r=_[12],i=_[13],a=_[14],c=(w=m(U,V))*p,w&&(j=k*(S=Math.cos(-w))+L*(T=Math.sin(-w)),D=A*S+F*T,R=U*S+V*T,L=k*-T+L*S,F=A*-T+F*S,V=U*-T+V*S,H=B*-T+H*S,k=j,A=D,U=R),h=(w=m(-P,V))*p,w&&(S=Math.cos(-w),H=E*(T=Math.sin(-w))+H*S,O=j=O*S-L*T,C=D=C*S-F*T,P=R=P*S-V*T),l=(w=m(C,O))*p,w&&(j=O*(S=Math.cos(w))+C*(T=Math.sin(w)),D=k*S+A*T,C=C*S-O*T,A=A*S-k*T,O=j,k=D),c&&Math.abs(c)+Math.abs(l)>359.9&&(c=l=0,h=180-h),o=Object(d.N)(Math.sqrt(O*O+C*C+P*P)),s=Object(d.N)(Math.sqrt(A*A+U*U)),w=m(k,A),g=Math.abs(w)>2e-4?w*p:0,v=H?1/(H<0?-H:H):0),n.svg&&(j=e.getAttribute("transform"),n.forceCSS=e.setAttribute("transform","")||!ee(N(e,I)),j&&e.setAttribute("transform",j))),Math.abs(g)>90&&Math.abs(g)<270&&(G?(o*=-1,g+=l<=0?180:-180,l+=l<=0?180:-180):(s*=-1,g+=g<=0?180:-180)),n.x=((n.xPercent=r&&Math.round(e.offsetWidth/2)===Math.round(-r)?-50:0)?0:r)+"px",n.y=((n.yPercent=i&&Math.round(e.offsetHeight/2)===Math.round(-i)?-50:0)?0:i)+"px",n.z=a+"px",n.scaleX=Object(d.N)(o),n.scaleY=Object(d.N)(s),n.rotation=Object(d.N)(l)+"deg",n.rotationX=Object(d.N)(c)+"deg",n.rotationY=Object(d.N)(h)+"deg",n.skewX=g+"deg",n.skewY=y+"deg",n.transformPerspective=v+"px",(n.zOrigin=parseFloat(q.split(" ")[2])||0)&&(W[M]=ae(q)),n.xOffset=n.yOffset=0,n.force3D=d.z.force3D,n.renderTransform=n.svg?ce:u?le:se,n.uncache=0,n},ae=function(e){return(e=e.split(" "))[0]+" "+e[1]},oe=function(e,t,n){var r=Object(d.Q)(t);return Object(d.N)(parseFloat(t)+parseFloat(q(e,"x",n+"px",r)))+r},se=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,le(e,t)},le=function(e,t){var n=t||this,r=n.xPercent,i=n.yPercent,a=n.x,o=n.y,s=n.z,l=n.rotation,c=n.rotationY,u=n.rotationX,d=n.skewX,h=n.skewY,p=n.scaleX,m=n.scaleY,g=n.transformPerspective,y=n.force3D,v=n.target,b=n.zOrigin,x="",_="auto"===y&&e&&1!==e||!0===y;if(b&&("0deg"!==u||"0deg"!==c)){var w,S=parseFloat(c)*f,T=Math.sin(S),O=Math.cos(S);S=parseFloat(u)*f,w=Math.cos(S),a=oe(v,a,T*w*-b),o=oe(v,o,-Math.sin(S)*-b),s=oe(v,s,O*w*-b+b)}"0px"!==g&&(x+="perspective("+g+") "),(r||i)&&(x+="translate("+r+"%, "+i+"%) "),(_||"0px"!==a||"0px"!==o||"0px"!==s)&&(x+="0px"!==s||_?"translate3d("+a+", "+o+", "+s+") ":"translate("+a+", "+o+") "),"0deg"!==l&&(x+="rotate("+l+") "),"0deg"!==c&&(x+="rotateY("+c+") "),"0deg"!==u&&(x+="rotateX("+u+") "),"0deg"===d&&"0deg"===h||(x+="skew("+d+", "+h+") "),1===p&&1===m||(x+="scale("+p+", "+m+") "),v.style[I]=x||"translate(0, 0)"},ce=function(e,t){var n,r,i,a,o,s=t||this,l=s.xPercent,c=s.yPercent,u=s.x,h=s.y,p=s.rotation,m=s.skewX,g=s.skewY,y=s.scaleX,v=s.scaleY,b=s.target,x=s.xOrigin,_=s.yOrigin,w=s.xOffset,S=s.yOffset,T=s.forceCSS,O=parseFloat(u),C=parseFloat(h);p=parseFloat(p),m=parseFloat(m),(g=parseFloat(g))&&(m+=g=parseFloat(g),p+=g),p||m?(p*=f,m*=f,n=Math.cos(p)*y,r=Math.sin(p)*y,i=Math.sin(p-m)*-v,a=Math.cos(p-m)*v,m&&(g*=f,o=Math.tan(m-g),i*=o=Math.sqrt(1+o*o),a*=o,g&&(o=Math.tan(g),n*=o=Math.sqrt(1+o*o),r*=o)),n=Object(d.N)(n),r=Object(d.N)(r),i=Object(d.N)(i),a=Object(d.N)(a)):(n=y,a=v,r=i=0),(O&&!~(u+"").indexOf("px")||C&&!~(h+"").indexOf("px"))&&(O=q(b,"x",u,"px"),C=q(b,"y",h,"px")),(x||_||w||S)&&(O=Object(d.N)(O+x-(x*n+_*i)+w),C=Object(d.N)(C+_-(x*r+_*a)+S)),(l||c)&&(o=b.getBBox(),O=Object(d.N)(O+l/100*o.width),C=Object(d.N)(C+c/100*o.height)),o="matrix("+n+","+r+","+i+","+a+","+O+","+C+")",b.setAttribute("transform",o),T&&(b.style[I]=o)},ue=function(e,t,n,r,i,a){var o,s,l=Object(d.E)(i),c=parseFloat(i)*(l&&~i.indexOf("rad")?p:1),u=a?c*a:c-r,h=r+u+"deg";return l&&("short"===(o=i.split("_")[1])&&(u%=360)!==u%180&&(u+=u<0?360:-360),"cw"===o&&u<0?u=(u+36e9)%360-360*~~(u/360):"ccw"===o&&u>0&&(u=(u-36e9)%360-360*~~(u/360))),e._pt=s=new d.n(e._pt,t,n,r,u,_),s.e=h,s.u="deg",e._props.push(n),s},de=function(e,t,n){var r,a,o,s,c,u,p,f=l.style,m=n._gsap;for(a in f.cssText=getComputedStyle(n).cssText+";position:absolute;display:block;",f[I]=t,i.body.appendChild(l),r=ie(l,1),h)(o=m[a])!==(s=r[a])&&"perspective,force3D,transformOrigin,svgOrigin".indexOf(a)<0&&(c=Object(d.Q)(o)!==(p=Object(d.Q)(s))?q(n,a,o,p):parseFloat(o),u=parseFloat(s),e._pt=new d.n(e._pt,m,a,c,u-c,x),e._pt.u=p||0,e._props.push(a));i.body.removeChild(l)};Object(d.A)("padding,margin,Width,Radius",(function(e,t){var n="Top",r="Right",i="Bottom",a="Left",o=(t<3?[n,r,i,a]:[n+a,n+r,i+r,i+a]).map((function(n){return t<2?e+n:"border"+n+e}));Z[t>1?"border"+e:e]=function(e,t,n,r,i){var a,s;if(arguments.length<4)return a=o.map((function(t){return Y(e,t,n)})),5===(s=a.join(" ")).split(a[0]).length?a[0]:s;a=(r+"").split(" "),s={},o.forEach((function(e,t){return s[e]=a[t]=a[t]||a[(t-1)/2|0]})),e.init(t,s,i)}}));var he,pe,fe={name:"css",register:F,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,n,r,i){var a,s,l,c,u,p,f,m,g,y,_,T,O,C,P,E,k,A,j,M=this._props,D=e.style;for(f in o||F(),t)if("autoRound"!==f&&(s=t[f],!d.J[f]||!Object(d.x)(f,t,n,r,e,i)))if(u=typeof s,p=Z[f],"function"===u&&(u=typeof(s=s.call(n,r,e,i))),"string"===u&&~s.indexOf("random(")&&(s=Object(d.M)(s)),p)p(this,e,f,s,n)&&(P=1);else if("--"===f.substr(0,2))this.add(D,"setProperty",getComputedStyle(e).getPropertyValue(f)+"",s+"",r,i,0,0,f);else{if(a=Y(e,f),c=parseFloat(a),(y="string"===u&&"="===s.charAt(1)?+(s.charAt(0)+"1"):0)&&(s=s.substr(2)),l=parseFloat(s),f in b&&("autoAlpha"===f&&(1===c&&"hidden"===Y(e,"visibility")&&l&&(c=0),W(this,D,"visibility",c?"inherit":"hidden",l?"inherit":"hidden",!l)),"scale"!==f&&"transform"!==f&&~(f=b[f]).indexOf(",")&&(f=f.split(",")[0])),_=f in h)if(T||((O=e._gsap).renderTransform||ie(e),C=!1!==t.smoothOrigin&&O.smooth,(T=this._pt=new d.n(this._pt,D,I,0,1,O.renderTransform,O,0,-1)).dep=1),"scale"===f)this._pt=new d.n(this._pt,O,"scaleY",O.scaleY,y?y*l:l-O.scaleY),M.push("scaleY",f),f+="X";else{if("transformOrigin"===f){k=void 0,A=void 0,j=void 0,k=(E=s).split(" "),A=k[0],j=k[1]||"50%","top"!==A&&"bottom"!==A&&"left"!==j&&"right"!==j||(E=A,A=j,j=E),k[0]=$[A]||A,k[1]=$[j]||j,s=k.join(" "),O.svg?re(e,s,0,C,0,this):((g=parseFloat(s.split(" ")[2])||0)!==O.zOrigin&&W(this,O,"zOrigin",O.zOrigin,g),W(this,D,f,ae(a),ae(s)));continue}if("svgOrigin"===f){re(e,s,1,C,0,this);continue}if(f in J){ue(this,O,f,c,s,y);continue}if("smoothOrigin"===f){W(this,O,"smooth",O.smooth,s);continue}if("force3D"===f){O[f]=s;continue}if("transform"===f){de(this,s,e);continue}}else f in D||(f=L(f)||f);if(_||(l||0===l)&&(c||0===c)&&!v.test(s)&&f in D)l||(l=0),(m=(a+"").substr((c+"").length))!==(g=(s+"").substr((l+"").length)||(f in d.z.units?d.z.units[f]:m))&&(c=q(e,f,a,g)),this._pt=new d.n(this._pt,_?O:D,f,c,y?y*l:l-c,"px"!==g||!1===t.autoRound||_?x:S),this._pt.u=g||0,m!==g&&(this._pt.b=a,this._pt.r=w);else if(f in D)X.call(this,e,f,a,s);else{if(!(f in e)){Object(d.G)(f,s);continue}this.add(e,f,e[f],s,r,i)}M.push(f)}P&&Object(d.O)(this)},get:Y,aliases:b,getSetter:function(e,t,n){var r=b[t];return r&&r.indexOf(",")<0&&(t=r),t in h&&t!==M&&(e._gsap.x||Y(e,"x"))?n&&c===n?"scale"===t?k:E:(c=n||{})&&("scale"===t?A:j):e.style&&!Object(d.F)(e.style[t])?C:~t.indexOf("-")?P:Object(d.D)(e,t)},core:{_removeProperty:U,_getMatrix:ne}};d.R.utils.checkPrefix=L,he="rotation,rotationX,rotationY,skewX,skewY",pe=Object(d.A)("x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+he+",transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective",(function(e){h[e]=1})),Object(d.A)(he,(function(e){d.z.units[e]="deg",J[e]=1})),b[pe[13]]="x,y,z,scale,scaleX,scaleY,xPercent,yPercent,"+he,Object(d.A)("0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY",(function(e){var t=e.split(":");b[t[1]]=pe[t[0]]})),Object(d.A)("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",(function(e){d.z.units[e]="px"})),d.R.registerPlugin(fe);var me=d.R.registerPlugin(fe)||d.R,ge=me.core.Tween},function(e,t,n){e.exports=n(928)()},function(e,t,n){"use strict";n.d(t,"h",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"e",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"i",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"d",(function(){return h})),n.d(t,"a",(function(){return p})),n.d(t,"g",(function(){return f}));var r=n(65);let i;!function(e){e.VerticalBar="VerticalBar",e.HorizontalBar="HorizontalBar",e.HorizontalReflectionBar="HorizontalReflectionBar",e.VerticalBar3D="VerticalBar3D",e.HorizontalBar3D="HorizontalBar3D",e.Pie="Pie",e.HalfOfPie="HalfOfPie",e.Pie3D="Pie3D",e.HalfOfPie3D="HalfOfPie3D",e.Donut="Donut",e.HalfOfDonut="HalfOfDonut",e.Donut3D="Donut3D",e.HalfOfDonut3D="HalfOfDonut3D",e.Dots="Dots",e.Lines="Lines",e.Concentric="Concentric",e.Cone="Cone",e.Polar="Polar",e.RadarPolygon="RadarPolygon",e.RadarTriangle="RadarTriangle",e.Pyramid="Pyramid",e.Tree="Tree",e.Area="Area",e.Funnel="Funnel"}(i||(i={}));const a={...i,Combo:"Combo"},o=Object.values(a),s="+",l={VerticalBarAndLines:[i.VerticalBar,i.Lines].join(s),VerticalBar3DAndLines:[i.VerticalBar3D,i.Lines].join(s),VerticalBarAndDots:[i.VerticalBar,i.Dots].join(s),VerticalBar3DAndDots:[i.VerticalBar3D,i.Dots].join(s),VerticalBarAndArea:[i.VerticalBar,i.Area].join(s),VerticalBar3DAndArea:[i.VerticalBar3D,i.Area].join(s)},c=Object.values(l),u={...i,...l};let d;!function(e){e.bar="Bar",e.pie="Pie",e.donut="Donut",e.linesAndDots="Lines & Dots",e.other="Other",e.combo="Combo"}(d||(d={}));const h={bar:{groupName:d.bar,types:[{type:a.VerticalBar,title:"Vertical Bar",fileName:"bar_v",am4chartType:"XYChart"},{type:a.HorizontalBar,title:"Horizontal Bar",fileName:"bar_h",am4chartType:"XYChart"},{type:a.HorizontalReflectionBar,title:"Horizontal Reflection Bar",fileName:"bar_c",am4chartType:"XYChart"},{type:a.VerticalBar3D,title:"Vertical Bar 3D",fileName:"bar_3v",am4chartType:"XYChart3D"},{type:a.HorizontalBar3D,title:"Horizontal Bar 3D",fileName:"bar_3h",am4chartType:"XYChart3D"}]},pie:{groupName:d.pie,types:[{type:a.Pie,title:"Pie",fileName:"pie_full",am4chartType:"PieChart"},{type:a.HalfOfPie,title:"Half Of Pie",fileName:"pie_half",am4chartType:"PieChart"},{type:a.Pie3D,title:"Pie 3D",fileName:"pie_3full",am4chartType:"PieChart3D",premium:!0},{type:a.HalfOfPie3D,title:"Half Of Pie 3D",fileName:"pie_3half",am4chartType:"PieChart3D",premium:!0}]},donut:{groupName:d.donut,placeholdersLengthForMoreDropdown:1,types:[{type:a.Donut,title:"Donut",fileName:"donut_full",am4chartType:"PieChart"},{type:a.HalfOfDonut,title:"Half Of Donut",fileName:"donut_half",am4chartType:"PieChart"},{type:a.Donut3D,title:"Donut 3D",fileName:"donut_3full",am4chartType:"PieChart3D",premium:!0},{type:a.HalfOfDonut3D,title:"Half Of Donut 3D",fileName:"donut_3half",am4chartType:"PieChart3D",premium:!0}]},linesAndDots:{groupName:d.linesAndDots,placeholdersLengthForMoreDropdown:1,types:[{type:a.Dots,title:"Dots",fileName:"ld_dots",am4chartType:"XYChart"},{type:a.Lines,title:"Lines",fileName:"ld_line_dots",am4chartType:"XYChart"}]},combo:{groupName:d.combo,types:[{type:a.Combo,isNew:!0,title:"Combo",fileName:"combo",am4chartType:"XYChart",premium:!0}]},other:{groupName:d.other,types:[{type:a.Concentric,title:"Concentric",fileName:"concentric",am4chartType:"RadarChart",premium:!0},{type:a.Cone,title:"Cone",fileName:"cone",am4chartType:"SlicedChart",premium:!0},{type:a.Polar,title:"Polar",fileName:"polar",am4chartType:"RadarChart",premium:!0},{type:a.RadarPolygon,title:"Radar Polygon",fileName:"radar_polygon",am4chartType:"RadarChart",premium:!0},{type:a.RadarTriangle,title:"Radar Triangle",fileName:"radar_triangle",am4chartType:"RadarChart",premium:!0},{type:a.Pyramid,title:"Pyramid",fileName:"pyramid",am4chartType:"SlicedChart",premium:!0},{type:a.Tree,title:"Tree",fileName:"tree",am4chartType:"XYChart",premium:!0},{type:a.Area,title:"Area",fileName:"area",am4chartType:"XYChart"},{type:a.Funnel,title:"Funnel",fileName:"funnel",am4chartType:"SlicedChart",premium:!0}]}},p=[h.bar,h.pie,h.donut,h.linesAndDots,h.combo,h.other];if(Object(r.a)({dev:!0})){if(p.reduce((e,t)=>e+t.types.length,0)!==o.length)throw new Error("@chartSchema.chartTypes::Meta length not equal chart types length!")}const f=[a.VerticalBar,a.Pie,a.Lines,a.Area,a.Funnel,a.Donut3D]},function(e,t,n){e.exports=n(796)},,function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}n.d(t,"g",(function(){return Rt})),n.d(t,"n",(function(){return ln})),n.d(t,"R",(function(){return hn})),n.d(t,"i",(function(){return pn})),n.d(t,"j",(function(){return fn})),n.d(t,"k",(function(){return mn})),n.d(t,"l",(function(){return gn})),n.d(t,"m",(function(){return yn})),n.d(t,"h",(function(){return vn})),n.d(t,"o",(function(){return bn})),n.d(t,"d",(function(){return xn})),n.d(t,"p",(function(){return _n})),n.d(t,"q",(function(){return wn})),n.d(t,"t",(function(){return Sn})),n.d(t,"e",(function(){return Tn})),n.d(t,"a",(function(){return On})),n.d(t,"s",(function(){return Cn})),n.d(t,"b",(function(){return Pn})),n.d(t,"r",(function(){return En})),n.d(t,"f",(function(){return kn})),n.d(t,"c",(function(){return An})),n.d(t,"w",(function(){return Yt})),n.d(t,"v",(function(){return Ft})),n.d(t,"u",(function(){return Ft})),n.d(t,"Q",(function(){return Qe})),n.d(t,"C",(function(){return ve})),n.d(t,"H",(function(){return $})),n.d(t,"I",(function(){return K})),n.d(t,"E",(function(){return V})),n.d(t,"F",(function(){return z})),n.d(t,"L",(function(){return tn})),n.d(t,"K",(function(){return J})),n.d(t,"A",(function(){return be})),n.d(t,"O",(function(){return sn})),n.d(t,"y",(function(){return wt})),n.d(t,"M",(function(){return ct})),n.d(t,"x",(function(){return zt})),n.d(t,"J",(function(){return de})),n.d(t,"P",(function(){return St})),n.d(t,"z",(function(){return A})),n.d(t,"N",(function(){return xe})),n.d(t,"G",(function(){return ie})),n.d(t,"D",(function(){return Qt})),n.d(t,"B",(function(){return ye}));var a,o,s,l,c,u,d,h,p,f,m,g,y,v,b,x,_,w,S,T,O,C,P,E,k,A={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},j={duration:.5,overwrite:!1,delay:0},I=1e8,M=2*Math.PI,D=M/4,N=0,R=Math.sqrt,L=Math.cos,F=Math.sin,V=function(e){return"string"==typeof e},B=function(e){return"function"==typeof e},H=function(e){return"number"==typeof e},z=function(e){return void 0===e},U=function(e){return"object"==typeof e},W=function(e){return!1!==e},G=function(){return"undefined"!=typeof window},q=function(e){return B(e)||V(e)},Y=Array.isArray,X=/(?:-?\.?\d|\.)+/gi,$=/[-+=.]*\d+[.e\-+]*\d*[e\-\+]*\d*/g,K=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Z=/[-+=.]*\d+(?:\.|e-|e)*\d*/gi,Q=/\(([^()]+)\)/i,J=/[+-]=-?[\.\d]+/,ee=/[#\-+.]*\b[a-z\d-=+%.]+/gi,te={},ne={},re=function(e){return(ne=ke(e,te))&&hn},ie=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},ae=function(e,t){return!t&&console.warn(e)},oe=function(e,t){return e&&(te[e]=t)&&ne&&(ne[e]=t)||te},se=function(){return 0},le={},ce=[],ue={},de={},he={},pe=30,fe=[],me="",ge=function(e){var t,n,r=e[0];if(U(r)||B(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(n=fe.length;n--&&!fe[n].targetTest(r););t=fe[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Rt(e[n],t)))||e.splice(n,1);return e},ye=function(e){return e._gsap||ge(nt(e))[0]._gsap},ve=function(e,t){var n=e[t];return B(n)?e[t]():z(n)&&e.getAttribute(t)||n},be=function(e,t){return(e=e.split(",")).forEach(t)||e},xe=function(e){return Math.round(1e5*e)/1e5||0},_e=function(e,t){for(var n=t.length,r=0;e.indexOf(t[r])<0&&++r=0?0:t._dirty?t.totalDuration():t._tDur)},Be=function(e){return e._end=xe(e._start+(e._tDur/Math.abs(e._ts||e._rts||1e-8)||0))},He=function(e,t){var n=e._dp;return n&&n.smoothChildTiming&&e._ts&&(e._start=xe(e._dp._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Be(e),n._dirty||Ne(n)),e},ze=function(e,t){var n;if((t._time||t._initted&&!t._dur)&&(n=Ve(e.rawTime(),t),(!t._dur||Ze(0,t.totalDuration(),n)-t._tTime>1e-8)&&t.render(n,!0)),Ne(e)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&n.totalTime(n._tTime),n=n._dp;e._zTime=-1e-8}},Ue=function(e,t,n,r){return t.parent&&De(t),t._start=xe(n+t._delay),t._end=xe(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),function(e,t,n,r,i){void 0===n&&(n="_first"),void 0===r&&(r="_last");var a,o=e[r];if(i)for(a=t[i];o&&o[i]>a;)o=o._prev;o?(t._next=o._next,o._next=t):(t._next=e[n],e[n]=t),t._next?t._next._prev=t:e[r]=t,t._prev=o,t.parent=t._dp=e}(e,t,"_first","_last",e._sort?"_start":0),e._recent=t,r||ze(e,t),e},We=function(e,t){return(te.ScrollTrigger||ie("scrollTrigger",t))&&te.ScrollTrigger.create(t,e)},Ge=function(e,t,n,r){return Ut(e,t),e._initted?!n&&e._pt&&(e._dur&&!1!==e.vars.lazy||!e._dur&&e.vars.lazy)&&u!==St.frame?(ce.push(e),e._lazy=[t,r],1):void 0:1},qe=function(e,t,n){var r=e._repeat,i=xe(t)||0;return e._dur=i,e._tDur=r?r<0?1e10:xe(i*(r+1)+e._rDelay*r):i,e._time>i&&(e._time=i,e._tTime=Math.min(e._tTime,e._tDur)),!n&&Ne(e.parent),e.parent&&Be(e),e},Ye=function(e){return e instanceof Ft?Ne(e):qe(e,e._dur)},Xe={_start:0,endTime:se},$e=function e(t,n){var r,i,a=t.labels,o=t._recent||Xe,s=t.duration()>=I?o.endTime(!1):t._dur;return V(n)&&(isNaN(n)||n in a)?"<"===(r=n.charAt(0))||">"===r?("<"===r?o._start:o.endTime(o._repeat>=0))+(parseFloat(n.substr(1))||0):(r=n.indexOf("="))<0?(n in a||(a[n]=s),a[n]):(i=+(n.charAt(r-1)+n.substr(r+1)),r>1?e(t,n.substr(0,r-1))+i:s+i):null==n?s:+n},Ke=function(e,t){return e||0===e?t(e):t},Ze=function(e,t,n){return nt?t:n},Qe=function(e){return(e+"").substr((parseFloat(e)+"").length)},Je=[].slice,et=function(e,t){return e&&U(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&U(e[0]))&&!e.nodeType&&e!==o},tt=function(e,t,n){return void 0===n&&(n=[]),e.forEach((function(e){var r;return V(e)&&!t||et(e,1)?(r=n).push.apply(r,nt(e)):n.push(e)}))||n},nt=function(e,t){return!V(e)||t||!s&&Tt()?Y(e)?tt(e,t):et(e)?Je.call(e,0):e?[e]:[]:Je.call(l.querySelectorAll(e),0)},rt=function(e){return e.sort((function(){return.5-Math.random()}))},it=function(e){if(B(e))return e;var t=U(e)?e:{each:e},n=jt(t.ease),r=t.from||0,i=parseFloat(t.base)||0,a={},o=r>0&&r<1,s=isNaN(r)||o,l=t.axis,c=r,u=r;return V(r)?c=u={center:.5,edges:.5,end:1}[r]||0:!o&&s&&(c=r[0],u=r[1]),function(e,o,d){var h,p,f,m,g,y,v,b,x,_=(d||t).length,w=a[_];if(!w){if(!(x="auto"===t.grid?0:(t.grid||[1,I])[1])){for(v=-I;v<(v=d[x++].getBoundingClientRect().left)&&x<_;);x--}for(w=a[_]=[],h=s?Math.min(x,_)*c-.5:r%x,p=s?_*u/x-.5:r/x|0,v=0,b=I,y=0;y<_;y++)f=y%x-h,m=p-(y/x|0),w[y]=g=l?Math.abs("y"===l?m:f):R(f*f+m*m),g>v&&(v=g),g_?_-1:l?"y"===l?_/x:x:Math.max(x,_/x))||0)*("edges"===r?-1:1),w.b=_<0?i-_:i,w.u=Qe(t.amount||t.each)||0,n=n&&_<0?kt(n):n}return _=(w[e]-w.min)/w.max||0,xe(w.b+(n?n(_):_)*w.v)+w.u}},at=function(e){var t=e<1?Math.pow(10,(e+"").length-2):1;return function(n){return Math.floor(Math.round(parseFloat(n)/e)*e*t)/t+(H(n)?0:Qe(n))}},ot=function(e,t){var n,r,i=Y(e);return!i&&U(e)&&(n=i=e.radius||I,e.values?(e=nt(e.values),(r=!H(e[0]))&&(n*=n)):e=at(e.increment)),Ke(t,i?B(e)?function(t){return r=e(t),Math.abs(r-t)<=n?r:t}:function(t){for(var i,a,o=parseFloat(r?t.x:t),s=parseFloat(r?t.y:0),l=I,c=0,u=e.length;u--;)(i=r?(i=e[u].x-o)*i+(a=e[u].y-s)*a:Math.abs(e[u]-o))(i=Math.abs(i))&&(a=r,s=i);return a},ht=function(e,t,n){var r,i,a=e.vars,o=a[t];if(o)return r=a[t+"Params"],i=a.callbackScope||e,n&&ce.length&&Se(),r?o.apply(i,r):o.call(i)},pt=function(e){return De(e),e.progress()<1&&ht(e,"onInterrupt"),e},ft=function(e){var t=(e=!e.name&&e.default||e).name,n=B(e),r=t&&!n&&e.init?function(){this._props=[]}:e,i={init:se,render:nn,add:Ht,kill:an,modifier:rn,rawVars:0},a={targetTest:0,get:0,getSetter:Qt,aliases:{},register:0};if(Tt(),e!==r){if(de[t])return;Pe(r,Pe(je(e,i),a)),ke(r.prototype,ke(i,je(e,a))),de[r.prop=t]=r,e.targetTest&&(fe.push(r),le[t]=1),t=("css"===t?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}oe(t,r),e.register&&e.register(hn,r,ln)},mt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},gt=function(e,t,n){return 255*(6*(e=e<0?e+1:e>1?e-1:e)<1?t+(n-t)*e*6:e<.5?n:3*e<2?t+(n-t)*(2/3-e)*6:t)+.5|0},yt=function(e,t,n){var r,i,a,o,s,l,c,u,d,h,p=e?H(e)?[e>>16,e>>8&255,255&e]:0:mt.black;if(!p){if(","===e.substr(-1)&&(e=e.substr(0,e.length-1)),mt[e])p=mt[e];else if("#"===e.charAt(0))4===e.length&&(r=e.charAt(1),i=e.charAt(2),a=e.charAt(3),e="#"+r+r+i+i+a+a),p=[(e=parseInt(e.substr(1),16))>>16,e>>8&255,255&e];else if("hsl"===e.substr(0,3))if(p=h=e.match(X),t){if(~e.indexOf("="))return p=e.match($),n&&p.length<4&&(p[3]=1),p}else o=+p[0]%360/360,s=+p[1]/100,r=2*(l=+p[2]/100)-(i=l<=.5?l*(s+1):l+s-l*s),p.length>3&&(p[3]*=1),p[0]=gt(o+1/3,r,i),p[1]=gt(o,r,i),p[2]=gt(o-1/3,r,i);else p=e.match(X)||mt.transparent;p=p.map(Number)}return t&&!h&&(r=p[0]/255,i=p[1]/255,a=p[2]/255,l=((c=Math.max(r,i,a))+(u=Math.min(r,i,a)))/2,c===u?o=s=0:(d=c-u,s=l>.5?d/(2-c-u):d/(c+u),o=c===r?(i-a)/d+(iv&&(x+=i-b),_+=i,g.time=(_-x)/1e3,((n=g.time-S)>0||a)&&(g.frame++,S+=n+(n>=w?.004:w-n),r=1),a||(p=f(e)),r&&T.forEach((function(e){return e(g.time,i,g.frame,t)}))},g={time:0,frame:0,tick:function(){O(!0)},wake:function(){c&&(!s&&G()&&(o=s=window,l=o.document||{},te.gsap=hn,(o.gsapVersions||(o.gsapVersions=[])).push(hn.version),re(ne||o.GreenSockGlobals||!o.gsap&&o||{}),m=o.requestAnimationFrame),p&&g.sleep(),f=m||function(e){return setTimeout(e,1e3*(S-g.time)+1|0)},h=1,O(2))},sleep:function(){(m?o.cancelAnimationFrame:clearTimeout)(p),h=0,f=se},lagSmoothing:function(e,t){v=e||1/1e-8,b=Math.min(t,v,0)},fps:function(e){w=1/(e||240),S=g.time+w},add:function(e){T.indexOf(e)<0&&T.push(e),Tt()},remove:function(e){var t;~(t=T.indexOf(e))&&T.splice(t,1)},_listeners:T=[]}),Tt=function(){return!h&&St.wake()},Ot={},Ct=/^[\d.\-M][\d.\-,\s]/,Pt=/["']/g,Et=function(e){for(var t,n,r,i={},a=e.substr(1,e.length-3).split(":"),o=a[0],s=1,l=a.length;s1&&n.config?n.config.apply(null,~e.indexOf("{")?[Et(t[1])]:Q.exec(e)[1].split(",").map(Oe)):Ot._CE&&Ct.test(e)?Ot._CE("",e):n}(e))||t},It=function(e,t,n,r){void 0===n&&(n=function(e){return 1-t(1-e)}),void 0===r&&(r=function(e){return e<.5?t(2*e)/2:1-t(2*(1-e))/2});var i,a={easeIn:t,easeOut:n,easeInOut:r};return be(e,(function(e){for(var t in Ot[e]=te[e]=a,Ot[i=e.toLowerCase()]=n,a)Ot[i+("easeIn"===t?".in":"easeOut"===t?".out":".inOut")]=Ot[e+"."+t]=a[t]})),a},Mt=function(e){return function(t){return t<.5?(1-e(1-2*t))/2:.5+e(2*(t-.5))/2}},Dt=function e(t,n,r){var i=n>=1?n:1,a=(r||(t?.3:.45))/(n<1?n:1),o=a/M*(Math.asin(1/i)||0),s=function(e){return 1===e?1:i*Math.pow(2,-10*e)*F((e-o)*a)+1},l="out"===t?s:"in"===t?function(e){return 1-s(1-e)}:Mt(s);return a=M/a,l.config=function(n,r){return e(t,n,r)},l},Nt=function e(t,n){void 0===n&&(n=1.70158);var r=function(e){return e?--e*e*((n+1)*e+n)+1:0},i="out"===t?r:"in"===t?function(e){return 1-r(1-e)}:Mt(r);return i.config=function(n){return e(t,n)},i};be("Linear,Quad,Cubic,Quart,Quint,Strong",(function(e,t){var n=t<5?t+1:t;It(e+",Power"+(n-1),t?function(e){return Math.pow(e,n)}:function(e){return e},(function(e){return 1-Math.pow(1-e,n)}),(function(e){return e<.5?Math.pow(2*e,n)/2:1-Math.pow(2*(1-e),n)/2}))})),Ot.Linear.easeNone=Ot.none=Ot.Linear.easeIn,It("Elastic",Dt("in"),Dt("out"),Dt()),C=7.5625,E=1/(P=2.75),It("Bounce",(function(e){return 1-k(1-e)}),k=function(e){return e0?e+(e+this._rDelay)*this._repeat:e):this.totalDuration()&&this._dur},t.totalDuration=function(e){if(!arguments.length)return this._tDur;this._dirty=0;var t=this._time/this._dur||0;return qe(this,this._repeat<0?e:(e-this._repeat*this._rDelay)/(this._repeat+1)),this._tTime?He(this,t*e+Le(this)):this},t.totalTime=function(e,t){if(Tt(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(He(this,e);n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&e0||!this._tDur&&!e)&&Ue(this._dp,this,this._start-this._delay)}return(this._tTime!==e||!this._dur&&!t||this._initted&&1e-8===Math.abs(this._zTime)||!e&&!this._initted)&&(this._ts||(this._pTime=e),Te(this,e,t)),this},t.time=function(e,t){return arguments.length?this.totalTime(Math.min(this.totalDuration(),e+Le(this))%this._dur||(e?this._dur:0),t):this._time},t.totalProgress=function(e,t){return arguments.length?this.totalTime(this.totalDuration()*e,t):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.ratio},t.progress=function(e,t){return arguments.length?this.totalTime(this.duration()*(!this._yoyo||1&this.iteration()?e:1-e)+Le(this),t):this.duration()?Math.min(1,this._time/this._dur):this.ratio},t.iteration=function(e,t){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(e-1)*n,t):this._repeat?Fe(this._tTime,n)+1:1},t.timeScale=function(e){if(!arguments.length)return-1e-8===this._rts?0:this._rts;if(this._rts===e)return this;var t=this.parent&&this._ts?Ve(this.parent._time,this):this._tTime;return this._rts=+e||0,this._ts=this._ps||-1e-8===e?0:this._rts,Re(this.totalTime(Ze(-this._delay,this._tDur,t),!0))},t.paused=function(e){return arguments.length?(this._ps!==e&&(this._ps=e,e?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Tt(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,1===this.progress()&&(this._tTime-=1e-8)&&1e-8!==Math.abs(this._zTime)))),this):this._ps},t.startTime=function(e){if(arguments.length){this._start=e;var t=this.parent||this._dp;return t&&(t._sort||!this.parent)&&Ue(t,this,e-this._delay),this}return this._start},t.endTime=function(e){return this._start+(W(e)?this.totalDuration():this.duration())/Math.abs(this._ts)},t.rawTime=function(e){var t=this.parent||this._dp;return t?e&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Ve(t.rawTime(e),this):this._tTime:this._tTime},t.globalTime=function(e){for(var t=this,n=arguments.length?e:t.rawTime();t;)n=t._start+n/(t._ts||1),t=t._dp;return n},t.repeat=function(e){return arguments.length?(this._repeat=e,Ye(this)):this._repeat},t.repeatDelay=function(e){return arguments.length?(this._rDelay=e,Ye(this)):this._rDelay},t.yoyo=function(e){return arguments.length?(this._yoyo=e,this):this._yoyo},t.seek=function(e,t){return this.totalTime($e(this,e),W(t))},t.restart=function(e,t){return this.play().totalTime(e?-this._delay:0,W(t))},t.play=function(e,t){return null!=e&&this.seek(e,t),this.reversed(!1).paused(!1)},t.reverse=function(e,t){return null!=e&&this.seek(e||this.totalDuration(),t),this.reversed(!0).paused(!1)},t.pause=function(e,t){return null!=e&&this.seek(e,t),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(e){return arguments.length?(!!e!==this.reversed()&&this.timeScale(-this._rts||(e?-1e-8:0)),this):this._rts<0},t.invalidate=function(){return this._initted=0,this._zTime=-1e-8,this},t.isActive=function(){var e,t=this.parent||this._dp,n=this._start;return!(t&&!(this._ts&&this._initted&&t.isActive()&&(e=t.rawTime(!0))>=n&&e1?(t?(r[e]=t,n&&(r[e+"Params"]=n),"onUpdate"===e&&(this._onUpdate=t)):delete r[e],this):r[e]},t.then=function(e){var t=this;return new Promise((function(n){var r=B(e)?e:Ce,i=function(){var e=t.then;t.then=null,B(r)&&(r=r(t))&&(r.then||r===t)&&(t.then=e),n(r),t.then=e};t._initted&&1===t.totalProgress()&&t._ts>=0||!t._tTime&&t._ts<0?i():t._prom=i}))},t.kill=function(){pt(this)},e}();Pe(Lt.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-1e-8,_prom:0,_ps:!1,_rts:1});var Ft=function(e){function t(t,n){var i;return void 0===t&&(t={}),(i=e.call(this,t,n)||this).labels={},i.smoothChildTiming=!!t.smoothChildTiming,i.autoRemoveChildren=!!t.autoRemoveChildren,i._sort=W(t.sortChildren),i.parent&&ze(i.parent,r(i)),t.scrollTrigger&&We(r(i),t.scrollTrigger),i}i(t,e);var n=t.prototype;return n.to=function(e,t,n){return new Yt(e,we(arguments,0,this),$e(this,H(t)?arguments[3]:n)),this},n.from=function(e,t,n){return new Yt(e,we(arguments,1,this),$e(this,H(t)?arguments[3]:n)),this},n.fromTo=function(e,t,n,r){return new Yt(e,we(arguments,2,this),$e(this,H(t)?arguments[4]:r)),this},n.set=function(e,t,n){return t.duration=0,t.parent=this,Ie(t).repeatDelay||(t.repeat=0),t.immediateRender=!!t.immediateRender,new Yt(e,t,$e(this,n),1),this},n.call=function(e,t,n){return Ue(this,Yt.delayedCall(0,e,t),$e(this,n))},n.staggerTo=function(e,t,n,r,i,a,o){return n.duration=t,n.stagger=n.stagger||r,n.onComplete=a,n.onCompleteParams=o,n.parent=this,new Yt(e,n,$e(this,i)),this},n.staggerFrom=function(e,t,n,r,i,a,o){return n.runBackwards=1,Ie(n).immediateRender=W(n.immediateRender),this.staggerTo(e,t,n,r,i,a,o)},n.staggerFromTo=function(e,t,n,r,i,a,o,s){return r.startAt=n,Ie(r).immediateRender=W(r.immediateRender),this.staggerTo(e,t,r,i,a,o,s)},n.render=function(e,t,n){var r,i,o,s,l,c,u,d,h,p,f,m,g=this._time,y=this._dirty?this.totalDuration():this._tDur,v=this._dur,b=this!==a&&e>y-1e-8&&e>=0?y:e<1e-8?0:e,x=this._zTime<0!=e<0&&(this._initted||!v);if(b!==this._tTime||n||x){if(g!==this._time&&v&&(b+=this._time-g,e+=this._time-g),r=b,h=this._start,c=!(d=this._ts),x&&(v||(g=this._zTime),(e||!t)&&(this._zTime=e)),this._repeat&&(f=this._yoyo,l=v+this._rDelay,((r=xe(b%l))>v||y===b)&&(r=v),(s=~~(b/l))&&s===b/l&&(r=v,s--),p=Fe(this._tTime,l),!g&&this._tTime&&p!==s&&(p=s),f&&1&s&&(r=v-r,m=1),s!==p&&!this._lock)){var _=f&&1&p,w=_===(f&&1&s);if(st)for(r=e._first;r&&r._start<=n;){if(!r._dur&&"isPause"===r.data&&r._start>t)return r;r=r._next}else for(r=e._last;r&&r._start>=n;){if(!r._dur&&"isPause"===r.data&&r._start=g&&e>=0)for(i=this._first;i;){if(o=i._next,(i._act||r>=i._start)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(r-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(r-i._start)*i._ts,t,n),r!==this._time||!this._ts&&!c){u=0,o&&(b+=this._zTime=-1e-8);break}}i=o}else{i=this._last;for(var S=e<0?e:r;i;){if(o=i._prev,(i._act||S<=i._end)&&i._ts&&u!==i){if(i.parent!==this)return this.render(e,t,n);if(i.render(i._ts>0?(S-i._start)*i._ts:(i._dirty?i.totalDuration():i._tDur)+(S-i._start)*i._ts,t,n),r!==this._time||!this._ts&&!c){u=0,o&&(b+=this._zTime=S?-1e-8:1e-8);break}}i=o}}if(u&&!t&&(this.pause(),u.render(r>=g?0:-1e-8)._zTime=r>=g?1:-1,this._ts))return this._start=h,Be(this),this.render(e,t,n);this._onUpdate&&!t&&ht(this,"onUpdate",!0),(b===y&&y>=this.totalDuration()||!b&&g)&&(h!==this._start&&Math.abs(d)===Math.abs(this._ts)||this._lock||((e||!v)&&(b===y&&this._ts>0||!b&&this._ts<0)&&De(this,1),t||e<0&&!g||!b&&!g||(ht(this,b===y?"onComplete":"onReverseComplete",!0),this._prom&&!(b0)&&this._prom())))}return this},n.add=function(e,t){var n=this;if(H(t)||(t=$e(this,t)),!(e instanceof Lt)){if(Y(e))return e.forEach((function(e){return n.add(e,t)})),Ne(this);if(V(e))return this.addLabel(e,t);if(!B(e))return this;e=Yt.delayedCall(0,e)}return this!==e?Ue(this,e,t):this},n.getChildren=function(e,t,n,r){void 0===e&&(e=!0),void 0===t&&(t=!0),void 0===n&&(n=!0),void 0===r&&(r=-I);for(var i=[],a=this._first;a;)a._start>=r&&(a instanceof Yt?t&&i.push(a):(n&&i.push(a),e&&i.push.apply(i,a.getChildren(!0,t,n)))),a=a._next;return i},n.getById=function(e){for(var t=this.getChildren(1,1,1),n=t.length;n--;)if(t[n].vars.id===e)return t[n]},n.remove=function(e){return V(e)?this.removeLabel(e):B(e)?this.killTweensOf(e):(Me(this,e),e===this._recent&&(this._recent=this._last),Ne(this))},n.totalTime=function(t,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=xe(St.time-(this._ts>0?t/this._ts:(this.totalDuration()-t)/-this._ts))),e.prototype.totalTime.call(this,t,n),this._forcing=0,this):this._tTime},n.addLabel=function(e,t){return this.labels[e]=$e(this,t),this},n.removeLabel=function(e){return delete this.labels[e],this},n.addPause=function(e,t,n){var r=Yt.delayedCall(0,t||se,n);return r.data="isPause",this._hasPause=1,Ue(this,r,$e(this,e))},n.removePause=function(e){var t=this._first;for(e=$e(this,e);t;)t._start===e&&"isPause"===t.data&&De(t),t=t._next},n.killTweensOf=function(e,t,n){for(var r=this.getTweensOf(e,n),i=r.length;i--;)Vt!==r[i]&&r[i].kill(e,t);return this},n.getTweensOf=function(e,t){for(var n,r=[],i=nt(e),a=this._first,o=H(t);a;)a instanceof Yt?_e(a._targets,i)&&(o?(!Vt||a._initted&&a._ts)&&a.globalTime(0)<=t&&a.globalTime(a.totalDuration())>t:!t||a.isActive())&&r.push(a):(n=a.getTweensOf(i,t)).length&&r.push.apply(r,n),a=a._next;return r},n.tweenTo=function(e,t){t=t||{};var n=this,r=$e(n,e),i=t,a=i.startAt,o=i.onStart,s=i.onStartParams,l=Yt.to(n,Pe(t,{ease:"none",lazy:!1,time:r,duration:t.duration||Math.abs((r-(a&&"time"in a?a.time:n._time))/n.timeScale())||1e-8,onStart:function(){n.pause();var e=t.duration||Math.abs((r-n._time)/n.timeScale());l._dur!==e&&qe(l,e).render(l._time,!0,!0),o&&o.apply(l,s||[])}}));return l},n.tweenFromTo=function(e,t,n){return this.tweenTo(t,Pe({startAt:{time:$e(this,e)}},n))},n.recent=function(){return this._recent},n.nextLabel=function(e){return void 0===e&&(e=this._time),dt(this,$e(this,e))},n.previousLabel=function(e){return void 0===e&&(e=this._time),dt(this,$e(this,e),1)},n.currentLabel=function(e){return arguments.length?this.seek(e,!0):this.previousLabel(this._time+1e-8)},n.shiftChildren=function(e,t,n){void 0===n&&(n=0);for(var r,i=this._first,a=this.labels;i;)i._start>=n&&(i._start+=e),i=i._next;if(t)for(r in a)a[r]>=n&&(a[r]+=e);return Ne(this)},n.invalidate=function(){var t=this._first;for(this._lock=0;t;)t.invalidate(),t=t._next;return e.prototype.invalidate.call(this)},n.clear=function(e){void 0===e&&(e=!0);for(var t,n=this._first;n;)t=n._next,this.remove(n),n=t;return this._time=this._tTime=this._pTime=0,e&&(this.labels={}),Ne(this)},n.totalDuration=function(e){var t,n,r,i,o=0,s=this,l=s._last,c=I;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-e:e));if(s._dirty){for(i=s.parent;l;)t=l._prev,l._dirty&&l.totalDuration(),(r=l._start)>c&&s._sort&&l._ts&&!s._lock?(s._lock=1,Ue(s,l,r-l._delay,1)._lock=0):c=r,r<0&&l._ts&&(o-=r,(!i&&!s._dp||i&&i.smoothChildTiming)&&(s._start+=r/s._ts,s._time-=r,s._tTime-=r),s.shiftChildren(-r,!1,-Infinity),c=0),(n=Be(l))>o&&l._ts&&(o=n),l=t;qe(s,s===a&&s._time>o?s._time:o,1),s._dirty=0}return s._tDur},t.updateRoot=function(e){if(a._ts&&(Te(a,Ve(e,a)),u=St.frame),St.frame>=pe){pe+=A.autoSleep||120;var t=a._first;if((!t||!t._ts)&&A.autoSleep&&St._listeners.length<2){for(;t&&!t._ts;)t=t._next;t||St.sleep()}}},t}(Lt);Pe(Ft.prototype,{_lock:0,_hasPause:0,_forcing:0});var Vt,Bt=function(e,t,n,r,i,a,o){var s,l,c,u,d,h,p,f,m=new ln(this._pt,e,t,0,1,tn,null,i),g=0,y=0;for(m.b=n,m.e=r,n+="",(p=~(r+="").indexOf("random("))&&(r=ct(r)),a&&(a(f=[n,r],e,t),n=f[0],r=f[1]),l=n.match(Z)||[];s=Z.exec(r);)u=s[0],d=r.substring(g,s.index),c?c=(c+1)%5:"rgba("===d.substr(-5)&&(c=1),u!==l[y++]&&(h=parseFloat(l[y-1])||0,m._pt={_next:m._pt,p:d||1===y?d:",",s:h,c:"="===u.charAt(1)?parseFloat(u.substr(2))*("-"===u.charAt(0)?-1:1):parseFloat(u)-h,m:c&&c<4?Math.round:0},g=Z.lastIndex);return m.c=g0)!E&&(t._startAt=0);else if(k&&!(n<0&&A))return void(t._zTime=n)}else if(O&&k)if(A)!E&&(t._startAt=0);else if(n&&(x=!1),o=Pe({overwrite:!1,data:"isFromStart",lazy:x&&W(_),immediateRender:x,stagger:0,parent:M},r),m&&(o[d.prop]=m),De(t._startAt=Yt.set(I,o)),x){if(!n)return}else e(t._startAt,1e-8);for(t._pt=0,_=k&&W(_)||_&&!k,i=0;i")}));else{if(d=P.length,f=x?it(x):se,U(x))for(h in x)~Gt.indexOf(h)&&(m||(m={}),m[h]=x[h]);for(c=0;cp-1e-8&&e>=0?p:e<1e-8?0:e;if(f){if(m!==this._tTime||!e||n||this._startAt&&this._zTime<0!=e<0){if(r=m,u=this.timeline,this._repeat){if(o=f+this._rDelay,((r=xe(m%o))>f||p===m)&&(r=f),(a=~~(m/o))&&a===m/o&&(r=f,a--),(l=this._yoyo&&1&a)&&(d=this._yEase,r=f-r),s=Fe(this._tTime,o),r===h&&!n&&this._initted)return this;a!==s&&(u&&this._yEase&&At(u,l),!this.vars.repeatRefresh||l||this._lock||(this._lock=n=1,this.render(xe(o*a),!0).invalidate()._lock=0))}if(!this._initted){if(Ge(this,e<0?e:r,n,t))return this._tTime=0,this;if(f!==this._dur)return this.render(e,t,n)}for(this._tTime=m,this._time=r,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=c=(d||this._ease)(r/f),this._from&&(this.ratio=c=1-c),r&&!h&&!t&&ht(this,"onStart"),i=this._pt;i;)i.r(c,i.d),i=i._next;u&&u.render(e<0?e:!r&&l?-1e-8:u._dur*c,t,n)||this._startAt&&(this._zTime=e),this._onUpdate&&!t&&(e<0&&this._startAt&&this._startAt.render(e,!0,n),ht(this,"onUpdate")),this._repeat&&a!==s&&this.vars.onRepeat&&!t&&this.parent&&ht(this,"onRepeat"),m!==this._tDur&&m||this._tTime!==m||(e<0&&this._startAt&&!this._onUpdate&&this._startAt.render(e,!0,!0),(e||!f)&&(m===this._tDur&&this._ts>0||!m&&this._ts<0)&&De(this,1),t||e<0&&!h||!m&&!h||(ht(this,m===p?"onComplete":"onReverseComplete",!0),this._prom&&!(m0)&&this._prom()))}}else!function(e,t,n,r){var i,a,o=e.ratio,s=t<0||!t&&o&&!e._start&&e._zTime>1e-8&&!e._dp._lock||e._ts<0||e._dp._ts<0?0:1,l=e._rDelay,c=0;if(l&&e._repeat&&(c=Ze(0,e._tDur,t),Fe(c,l)!==(a=Fe(e._tTime,l))&&(o=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),e._initted||!Ge(e,t,r,n))if(s!==o||r||1e-8===e._zTime||!t&&e._zTime){for(a=e._zTime,e._zTime=t||(n?1e-8:0),n||(n=t&&!a),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=c,n||ht(e,"onStart"),i=e._pt;i;)i.r(s,i.d),i=i._next;e._startAt&&t<0&&e._startAt.render(t,!0,!0),e._onUpdate&&!n&&ht(e,"onUpdate"),c&&e._repeat&&!n&&e.parent&&ht(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&De(e,1),n||(ht(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)}(this,e,t,n);return this},n.targets=function(){return this._targets},n.invalidate=function(){return this._pt=this._op=this._startAt=this._onUpdate=this._act=this._lazy=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(),e.prototype.invalidate.call(this)},n.kill=function(e,t){if(void 0===t&&(t="all"),!(e||t&&"all"!==t)&&(this._lazy=0,this.parent))return pt(this);if(this.timeline){var n=this.timeline.totalDuration();return this.timeline.killTweensOf(e,t,Vt&&!0!==Vt.vars.overwrite)._first||pt(this),this.parent&&n!==this.timeline.totalDuration()&&qe(this,this._dur*this.timeline._tDur/n),this}var r,i,a,o,s,l,c,u=this._targets,d=e?nt(e):u,h=this._ptLookup,p=this._pt;if((!t||"all"===t)&&function(e,t){for(var n=e.length,r=n===t.length;r&&n--&&e[n]===t[n];);return n<0}(u,d))return"all"===t&&(this._pt=0),pt(this);for(r=this._op=this._op||[],"all"!==t&&(V(t)&&(s={},be(t,(function(e){return s[e]=1})),t=s),t=function(e,t){var n,r,i,a,o=e[0]?ye(e[0]).harness:0,s=o&&o.aliases;if(!s)return t;for(r in n=ke({},t),s)if(r in n)for(i=(a=s[r].split(",")).length;i--;)n[a[i]]=n[r];return n}(u,t)),c=u.length;c--;)if(~d.indexOf(u[c]))for(s in i=h[c],"all"===t?(r[c]=t,o=i,a={}):(a=r[c]=r[c]||{},o=t),o)(l=i&&i[s])&&("kill"in l.d&&!0!==l.d.kill(s)||Me(this,l,"_pt"),delete i[s]),"all"!==a&&(a[s]=1);return this._initted&&!this._pt&&p&&pt(this),this},t.to=function(e,n){return new t(e,n,arguments[2])},t.from=function(e,n){return new t(e,we(arguments,1))},t.delayedCall=function(e,n,r,i){return new t(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:e,onComplete:n,onReverseComplete:n,onCompleteParams:r,onReverseCompleteParams:r,callbackScope:i})},t.fromTo=function(e,n,r){return new t(e,we(arguments,2))},t.set=function(e,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new t(e,n)},t.killTweensOf=function(e,t,n){return a.killTweensOf(e,t,n)},t}(Lt);Pe(Yt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0}),be("staggerTo,staggerFrom,staggerFromTo",(function(e){Yt[e]=function(){var t=new Ft,n=Je.call(arguments,0);return n.splice("staggerFromTo"===e?5:4,0,0),t[e].apply(t,n)}}));var Xt=function(e,t,n){return e[t]=n},$t=function(e,t,n){return e[t](n)},Kt=function(e,t,n,r){return e[t](r.fp,n)},Zt=function(e,t,n){return e.setAttribute(t,n)},Qt=function(e,t){return B(e[t])?$t:z(e[t])&&e.setAttribute?Zt:Xt},Jt=function(e,t){return t.set(t.t,t.p,Math.round(1e4*(t.s+t.c*e))/1e4,t)},en=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},tn=function(e,t){var n=t._pt,r="";if(!e&&t.b)r=t.b;else if(1===e&&t.e)r=t.e;else{for(;n;)r=n.p+(n.m?n.m(n.s+n.c*e):Math.round(1e4*(n.s+n.c*e))/1e4)+r,n=n._next;r+=t.c}t.set(t.t,t.p,r,t)},nn=function(e,t){for(var n=t._pt;n;)n.r(e,n.d),n=n._next},rn=function(e,t,n,r){for(var i,a=this._pt;a;)i=a._next,a.p===r&&a.modifier(e,t,n),a=i},an=function(e){for(var t,n,r=this._pt;r;)n=r._next,r.p===e&&!r.op||r.op===e?Me(this,r,"_pt"):r.dep||(t=1),r=n;return!t},on=function(e,t,n,r){r.mSet(e,t,r.m.call(r.tween,n,r.mt),r)},sn=function(e){for(var t,n,r,i,a=e._pt;a;){for(t=a._next,n=r;n&&n.pr>a.pr;)n=n._next;(a._prev=n?n._prev:i)?a._prev._next=a:r=a,(a._next=n)?n._prev=a:i=a,a=t}e._pt=r},ln=function(){function e(e,t,n,r,i,a,o,s,l){this.t=t,this.s=r,this.c=i,this.p=n,this.r=a||Jt,this.d=o||this,this.set=s||Xt,this.pr=l||0,this._next=e,e&&(e._prev=this)}return e.prototype.modifier=function(e,t,n){this.mSet=this.mSet||this.set,this.set=on,this.m=e,this.mt=n,this.tween=t},e}();be(me+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",(function(e){return le[e]=1})),te.TweenMax=te.TweenLite=Yt,te.TimelineLite=te.TimelineMax=Ft,a=new Ft({sortChildren:!1,defaults:j,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0}),A.stringFilter=wt;var cn={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),n=0;n1){var r=e.map((function(e){return hn.quickSetter(e,t,n)})),i=r.length;return function(e){for(var t=i;t--;)r[t](e)}}e=e[0]||{};var a=de[t],o=ye(e),s=o.harness&&(o.harness.aliases||{})[t]||t,l=a?function(t){var r=new a;d._pt=0,r.init(e,n?t+n:t,d,0,[e]),r.render(1,r),d._pt&&nn(1,d)}:o.set(e,s);return a?l:function(t){return l(e,s,n?t+n:t,o,1)}},isTweening:function(e){return a.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=jt(e.ease,j.ease)),Ae(j,e||{})},config:function(e){return Ae(A,e||{})},registerEffect:function(e){var t=e.name,n=e.effect,r=e.plugins,i=e.defaults,a=e.extendTimeline;(r||"").split(",").forEach((function(e){return e&&!de[e]&&!te[e]&&ae(t+" effect requires "+e+" plugin.")})),he[t]=function(e,t,r){return n(nt(e),Pe(t||{},i),r)},a&&(Ft.prototype[t]=function(e,n,r){return this.add(he[t](e,U(n)?n:(r=n)&&{},this),r)})},registerEase:function(e,t){Ot[e]=jt(t)},parseEase:function(e,t){return arguments.length?jt(e,t):Ot},getById:function(e){return a.getById(e)},exportRoot:function(e,t){void 0===e&&(e={});var n,r,i=new Ft(e);for(i.smoothChildTiming=W(e.smoothChildTiming),a.remove(i),i._dp=0,i._time=i._tTime=a._time,n=a._first;n;)r=n._next,!t&&!n._dur&&n instanceof Yt&&n.vars.onComplete===n._targets[0]||Ue(i,n,n._start-n._delay),n=r;return Ue(a,i,0),i},utils:{wrap:function e(t,n,r){var i=n-t;return Y(t)?lt(t,e(0,t.length),n):Ke(r,(function(e){return(i+(e-t)%i)%i+t}))},wrapYoyo:function e(t,n,r){var i=n-t,a=2*i;return Y(t)?lt(t,e(0,t.length-1),n):Ke(r,(function(e){return t+((e=(a+(e-t)%a)%a||0)>i?a-e:e)}))},distribute:it,random:st,snap:ot,normalize:function(e,t,n){return ut(e,t,0,1,n)},getUnit:Qe,clamp:function(e,t,n){return Ke(n,(function(n){return Ze(e,t,n)}))},splitColor:yt,toArray:nt,mapRange:ut,pipe:function(){for(var e=arguments.length,t=new Array(e),n=0;ne),s=e=>o.filter(e).map(({type:e})=>e),l=(()=>{const e={[a.b.VerticalBar]:!0,[a.b.HorizontalBar]:!0,[a.b.HorizontalReflectionBar]:!0,[a.b.VerticalBar3D]:!0,[a.b.HorizontalBar3D]:!0,[a.b.Tree]:!0},t={[a.b.Pie]:!0,[a.b.HalfOfPie]:!0,[a.b.Pie3D]:!0,[a.b.HalfOfPie3D]:!0},n={[a.b.Donut]:!0,[a.b.HalfOfDonut]:!0,[a.b.Donut3D]:!0,[a.b.HalfOfDonut3D]:!0},l={[a.b.HalfOfPie]:!0,[a.b.HalfOfPie3D]:!0,[a.b.HalfOfDonut]:!0,[a.b.HalfOfDonut3D]:!0},c={[a.b.Pie]:!0,[a.b.Pie3D]:!0,[a.b.Donut]:!0,[a.b.Donut3D]:!0},u={[a.b.Lines]:!0,[a.b.Dots]:!0},d={[a.b.Area]:!0,...u},h={[a.b.Lines]:!0,[a.b.Area]:!0,[a.b.RadarPolygon]:!0,[a.b.RadarTriangle]:!0};if(Object(r.a)({dev:!0})){const r=1;let i=Object.values(e).length!==a.d.bar.types.length+r;if(i)throw new Error("barsCharts length not equal expected length!");if(i=Object.values(t).length!==a.d.pie.types.length,i)throw new Error("pieTypes length not equal expected length!");if(i=Object.values(n).length!==a.d.donut.types.length,i)throw new Error("donutTypes length not equal expected length!");if(i=Object.values(l).length!==[...a.d.pie.types,...a.d.donut.types].filter(({type:e})=>e.toLowerCase().includes("half")).length,i)throw new Error("halfOfRoundChartsTypes length not equal expected length!");if(i=Object.values(c).length!==[...a.d.pie.types,...a.d.donut.types].filter(({type:e})=>!e.toLowerCase().includes("half")).length,i)throw new Error("roundTypes length not equal expected length!");if(i=Object.values(u).length!==a.d.linesAndDots.types.length,i)throw new Error("linesAndDotsCharts length not equal expected length!")}const p=o.reduce((e,t)=>(e[t.type]=t,e),{}),f=s(({am4chartType:e})=>"RadarChart"===e),m=s(({am4chartType:e})=>"SlicedChart"===e),g=[...s(({am4chartType:e})=>["XYChart","XYChart3D"].includes(e)),...f],y={...n,...t},v=a.e.filter(e=>e.toLowerCase().includes("horizontal")),b=a.e.filter(e=>e.toLowerCase().includes("3d")),x=[...Object.keys(y),...f,...m],_=Object.keys(i.a);return{allCharts:o,allChartsTypes:a.e,typesWithLegendsWhichContainsValues:x,barsCharts:e,chartsTypesWithAxes:g,chartsTypesWithLinesMarkers:h,donutTypes:n,halfOfRoundChartsTypes:l,linesAndDotsCharts:u,linesDotsAndAreaCharts:d,listOfTypesWithCustomMarkers:_,horizontalTypes:v,reducedAllChartsByType:p,roundTypes:c,typesWith3d:b}})();var c=n(996);const u=(e,t,{ratio:n=18}={})=>{let r=e;return e<=0&&(r=Object(c.a)(t,n)),r};var d=n(20),h=n(463);const p=(e,t)=>{const n=e.getHasAxes(d.A.some),r=e.getIsBarChart(d.A.some),i=!e.getIsBarChart(d.A.every),a=["labelText","itemValueText"],o=["dx","dy",...r?["align","valign"]:[],...i?["horizontalCenter","verticalCenter"]:[],...i&&n?["locationX","locationY"]:[]],s=r&&!e.isComboChart&&e.values.hasValueNearToEdgePosition?o:[],l=["text",...a],c={positions:o,showCallouts:["radius","inside","series[].ticks.template.disabled"],colors:["opacity","fill"],showValues:["disabled","series[].ticks.template.disabled"],areFilledAsPercents:l,showPercents:["text"],rotations:["rotation"],prefixes:l,suffixes:l,decimalPrecisions:l,decimalSeparator:["numberFormatter.language.locale._decimalSeparator","series[].legendSettings.labelText","series[].legendSettings.itemValueText",...l],fontSizes:["fontSize",...s],fontFamilies:["fontFamily",...s]};return(t in c?c[t]:[t]).flatMap(e=>{if(e.includes("."))return[e];if(a.includes(e))return["series[].legendSettings."+e];const t=[];return r&&t.push("series[].columns.template.children.1."+e),i&&n&&t.push("series[].bullets[type===LabelBullet]."+e,"series[].bullets[type===LabelBullet].label."+e),t.length||t.push("series[].labels.template."+e),t})},f=(e,t)=>Object(h.a)(e)(async()=>{const n=p(e,t);await e.updateChartInstance(n)}),m=(e,t=1/0)=>Math.min(e+1,t),g=(e,t=10,n="Others")=>{const r=e.sort((e,t)=>parseInt(e[1]){n{let t;return e in y.a?t=y.a[e]:(console.error(`not found sample with name: "${e}", set default: "${y.c.default1}"`),t=y.a[y.c.default1]),Object(v.getWritable)(t)};var x=n(41);const _=e=>{const t=Array.isArray(e);if(t&&e.length>1||a.b.Combo===e)return a.b.Combo;if(t&&1===e.length)return e[0];const n=e;return!t&&n in a.h?n:(console.error("@chartTypes.getChartType::Can't find chart type!"),x.a.chartTypes[0])},w=(e=x.a.chartTypes[0])=>Array.isArray(e)?e.length?e:(console.error("@prepareChartTypeForSet::Can't find chart type in chartTypes array!"),Object(v.getWritable)(x.a.chartTypes)):e===a.b.Combo?[a.h.VerticalBar,a.h.Lines]:e in a.h?[e]:(console.error(`@chartTypes.prepareChartTypes::Can't find supportable chart type in chartType: "${e}"!`),Object(v.getWritable)(x.a.chartTypes)),S=e=>{const t=l.reducedAllChartsByType[e];if(!t)throw new Error(`not found meta for chartType: "${e}"`);return t},T=(e=Object(v.getWritable)(x.a.chartTypes))=>Array.isArray(e)?e.join(a.c):e;var O=n(1),C=n(83),P=n.n(C),E=n(366),k=n.n(E),A=n(29),j=n.n(A),I=n(997),M=n.n(I),D=n(31),N=n.n(D);const R=e=>Boolean(e&&Object(O.isAlive)(e)&&"chart"===e.type),L=e=>R(e)?e:null;let F,V;!function(e){e.primary="primary",e.secondary="secondary"}(F||(F={})),function(e){e[e.primary=0]="primary",e[e.secondary=1]="secondary"}(V||(V={}));const B=e=>{if(!e.chart)return console.error("@setPropFromChart::Not found self.chart!"),Object(v.setProp)(e);const t=Object(O.getRelativePath)(e.chart,e).replace("/","").replace(/\//g,".");return(n,r,i)=>{const a=[t,n].filter(Boolean).join(".");return e.chart.setProp(a,r,i)}},H=(e,t,n)=>{const r=[...e],i=n?0:1;return r.splice(i,1,t),r},z=(e,t)=>{if(!("defaultValue"in t))throw new Error("@chart.helpers.getSubValue::defaultValue is required!");let{isPrimary:n,isSecondary:r}=t;const{defaultValue:i}=t;if(k()(n)&&j()(r)?r=!n:k()(r)&&j()(n)?n=!r:j()(r)&&j()(r)&&(n=!0,r=!1),n&&r||!n&&!r)throw new Error('@chart.helpers.getSubValue::Error in logic! Should not be at the same time "isPrimary" and "isSecondary" flags!');if(n){if(void 0===e[V.primary])throw new Error('@chart.helpers.getSubValue::Error in logic! Primary value always should exist. "undefined" here is not expected!');return e[V.primary]}return r&&void 0!==e[V.secondary]?e[V.secondary]:i},U=(e,t,n)=>M()(n,(n,r,i)=>{const a=N()(x.a,r+".0");if(void 0===a)throw new Error(`@chartHelpers.getSubValues::Not found defaultValue for: "${r}"`);const o=N()(e,r);if(!Array.isArray(o))throw new Error(`@chartHelpers.getSubValues::Not found valuesInChartModel for: "${r}"`);return{...n,[i]:z(o,{...t,defaultValue:a})}},{}),W=e=>P()(e)?e.toLowerCase().replace("axis",""):""},function(e,t,n){"use strict";n.r(t),n.d(t,"entries",(function(){return a})),n.d(t,"keys",(function(){return o})),n.d(t,"keysOrdered",(function(){return s})),n.d(t,"hasKey",(function(){return l})),n.d(t,"getKey",(function(){return c})),n.d(t,"eachContinue",(function(){return u})),n.d(t,"each",(function(){return d})),n.d(t,"eachOrdered",(function(){return h})),n.d(t,"copy",(function(){return p})),n.d(t,"merge",(function(){return f})),n.d(t,"clone",(function(){return m})),n.d(t,"copyProperties",(function(){return g})),n.d(t,"softCopyProperties",(function(){return y})),n.d(t,"forceCopyProperties",(function(){return v})),n.d(t,"copyAllProperties",(function(){return b}));var r=n(14),i=n(2);function a(e){return function(t){for(var n in e)if(l(e,n)&&!t([n,e[n]]))break}}function o(e){var t=[];for(var n in e)l(e,n)&&t.push(n);return t}function s(e,t){return o(e).sort(t)}function l(e,t){return{}.hasOwnProperty.call(e,t)}function c(e,t){return e[t]}function u(e,t){for(var n in e)if(l(e,n)&&!t(n,e[n]))break}function d(e,t){u(e,(function(e,n){return t(e,n),!0}))}function h(e,t,n){r.each(s(e,n),(function(n){t(n,e[n])}))}function p(e){return Object.assign({},e)}function f(e,t){return Object.assign({},e,t)}function m(e){return JSON.parse(JSON.stringify(e))}function g(e,t,n){r.each(n,(function(n){i.hasValue(e[n])&&(t[n]=e[n])}))}function y(e,t,n){r.each(n,(function(n){i.hasValue(e[n])&&!i.hasValue(t[n])&&(t[n]=e[n])}))}function v(e,t,n){r.each(n,(function(n){t[n]=e[n]}))}function b(e,t){g(e,t,o(e))}},function(e,t,n){var r=n(49)("isUndefined",n(169),n(94));r.placeholder=n(47),e.exports=r},function(e,t,n){var r=n(99),i=n(234).f,a=n(236),o=n(237),s=n(1151),l=n(1386),c=n(722);e.exports=function(e,t){var n,u,d,h,p,f=e.target,m=e.global,g=e.stat;if(n=m?r:g?r[f]||s(f,{}):(r[f]||{}).prototype)for(u in t){if(h=t[u],d=e.noTargetGet?(p=i(n,u))&&p.value:n[u],!c(m?u:f+(g?".":"#")+u,e.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(e.sham||d&&d.sham)&&a(h,"sham",!0),o(n,u,h,e)}}},function(e,t,n){var r=n(245);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return h})),n.d(t,"e",(function(){return p}));var r=n(7),i=n(35),a=n(193),o=n(14),s=n(18),l=function(){function e(e,t,n){this._array=e,this._start=t,this._end=n}return e.prototype.iterator=function(){var e=this;return function(t){if(e._start!==e._end)if(e._start=e._end&&t(e._array[n]);--n);}},e.prototype.backwards=function(){return new e(this._array,this._end,this._start)},e.prototype.range=function(t,n){if(t<=n){if(this._start===this._end)return this;if(this._start=0&&e=0&&e0);if(a>=o)return o;this.swap(a,o)}},e.prototype.sort=function(e){this._sortQuicksort(0,this._values.length-1,e)},e.prototype.swap=function(e,t){var n=this._values.length;if(d(e,n),d(t,n),e!==t){var r=this._values[e],i=this._values[t];this._values[e]=i,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:r,newValue:i}),this._values[t]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:t,oldValue:i,newValue:r})}},e.prototype.removeIndex=function(e){d(e,this._values.length);var t=this._values[e];return o.removeIndex(this._values,e),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:t}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}),t},e.prototype.moveValue=function(e,t){var n=this.indexOf(e);if(-1!==n){var r=this._values[n];o.removeIndex(this._values,n),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:n,oldValue:r})}null==t?(t=this._values.length,this._values.push(e)):o.insertIndex(this._values,t,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),-1===n&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},e.prototype.push=function(e){var t=this._values.push(e)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e}),e},e.prototype.unshift=function(e){this.insertIndex(0,e)},e.prototype.pushAll=function(e){var t=this;o.each(e,(function(e){t.push(e)}))},e.prototype.copyFrom=function(e){this.pushAll(e._values)},e.prototype.pop=function(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)},e.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},e.prototype.setAll=function(e){var t=this,n=o.copy(this._values);this._values.length=0,o.each(e,(function(e){t._values.push(e)})),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:n,newArray:this._values}),this.events.isEnabled("removed")&&o.each(n,(function(e){t.events.dispatchImmediately("removed",{type:"removed",target:t,oldValue:e})})),this.events.isEnabled("inserted")&&o.each(this._values,(function(e){t.events.dispatchImmediately("inserted",{type:"inserted",target:t,newValue:e})}))},e.prototype.clear=function(){this.setAll([])},e.prototype.iterator=function(){return s.fromArray(this._values)},e.prototype[Symbol.iterator]=function(){var e,t;return Object(r.d)(this,(function(n){switch(n.label){case 0:e=this._values.length,t=0,n.label=1;case 1:return t=0&&n.left>=0&&n.top<=o.top+o.height&&n.left<=o.left+o.width)return!0}return!1}return n.top>=0&&n.left>=0&&n.top<=(window.innerHeight||document.documentElement.clientHeight)&&n.left<=(window.innerWidth||document.documentElement.clientWidth)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c}));var r=n(7),i=n(14),a=n(2),o=function(){function e(e){this._disposed=!1,this._dispose=e}return e.prototype.isDisposed=function(){return this._disposed},e.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},e}(),s=function(e){function t(t){return e.call(this,(function(){i.each(t,(function(e){e.dispose()}))}))||this}return Object(r.c)(t,e),t}(o),l=function(e){function t(){var t=e.call(this,(function(){a.hasValue(t._disposer)&&(t._disposer.dispose(),t._disposer=void 0)}))||this;return t}return Object(r.c)(t,e),t.prototype.get=function(){return this._value},t.prototype.set=function(e,t){a.hasValue(this._disposer)&&this._disposer.dispose(),this._disposer=t,this._value=e},t.prototype.reset=function(){this.set(void 0,void 0)},t}(o),c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._counter=0,t}return Object(r.c)(t,e),t.prototype.increment=function(){var e=this;return++this._counter,new o((function(){--e._counter,0===e._counter&&e.dispose()}))},t}(o)},function(e,t,n){"use strict";var r=n(1),i=n(15),a=n(31),o=n.n(a),s=n(172),l=n(1053),c=n(1073),u=n(649),d=n(1e3),h=n(650),p=n(478),f=r.types.compose(h.a,p.a).named("PlayerBackgroundModel"),m=n(590),g=n(1924),y=n(27),v=n(999),b=n(38);var x=v.a.named("PlayerChartModel").volatile(e=>({uiStateStore:b.a,isEnabledInteractions:!e.appearance.showAnimation})).actions(e=>{const t=e._setVisibilityState;return{_setVisibilityState:Object(r.flow)((function*(n,r,i=(e.shouldDisableChartAnimation?0:e.animationDuration)){if(!Object(y.isAliveChart)(e))return;e.appearance.showAnimation&&e.isEnabledInteractions&&(e.setProp("isEnabledInteractions",!1),yield e.updateChartInstance("interactionsEnabled")),yield t(n,r,i);const{settings:a}=e.getAppStore();"show"!==r||!Object(y.isAliveChart)(e)||!e.appearance.showAnimation||!e.isPlacedOnSelectedSlide&&!a.isBlockInfographic||(e.setProp("isEnabledInteractions",!0),yield e.updateChartInstance("interactionsEnabled"))}))}}).views(e=>({get shouldDisableChartAnimation(){const{settings:t}=e.getAppStore();return Boolean(!e.animation.enter.isNoneType||!e.appearance.showAnimation||t.isStaticRender)},get shouldHideOnFirstInitialization(){var t;return e.shouldNotDisableChartAnimation||"onclick"===(null===(t=e.animation.enter)||void 0===t?void 0:t.triggerType)}}));var _=n(1077).a.named("PlayerTableModel").views(e=>({getClickedCellLink(t){const n=t.closest(".grid-table-cell");if(null===n)return null;const r=parseInt(n.getAttribute("data-col"),10),i=parseInt(n.getAttribute("data-row"),10);var a;return r&&i&&null!==(a=e.grid[i-1][r-1].link)&&void 0!==a?a:null},getLink(t){const n=e.getClickedCellLink(t),r=e.link;return n||r}})),w=n(648),S=n(1487),T=n.n(S);var O=r.types.model("PlayerObjectModelFields",{parentGroupId:r.types.optional(r.types.maybeNull(r.types.safeReference(r.types.late(()=>C))),null)}).volatile(()=>({objectLinkTargetEnterDelay:0})).views(e=>({getInViewport(){var t;const n=e.getAppStore(),r=e.parentSlide().slideRef.current.getBoundingClientRect(),i=r.width/n.slideStore.width,a=r.top+(e.height/2+e.y)*i;return a>0&&a<=window.innerHeight||(null===(t=e.objectRef)||void 0===t?void 0:t.current)&&T()(e.objectRef.current)}}));var C=r.types.compose("PlayerGroupModel",O,w.a.props({group:r.types.array(r.types.safeReference(r.types.late(()=>I)))})),P=n(326),E=r.types.compose(P.a,p.a).named("PlayerImageModel");const k=n(39).a.named("PlayerObjectModel"),A={...m.b,JotformModel:g.a,ChartModel:x,TableModel:_,GroupModel:C,ImageModel:E},j=Object.keys(A).reduce((e,t)=>{const n=A[t];return e[t]=r.types.compose(t,k,n,O),e},{});var I=r.types.union({dispatcher:Object(m.c)(j)},...Object.values(j));const M=d.a.named("PlayerSlideModel").props({objects:r.types.optional(r.types.array(I),[]),groups:r.types.optional(r.types.array(C),[]),background:r.types.optional(f,{})}).volatile(()=>({documentPageThumbRef:null,shouldRenderDocumentPageThumb:!1})).actions(e=>({setDocumentPageThumbRef(t){e.documentPageThumbRef=t},setShouldRenderDocumentPageThumb(t){e.shouldRenderDocumentPageThumb=t}})).views(e=>({shouldDoVideoTransition:()=>e.isSelected&&"video"===e.transition.type,getBoostedZIndex(){const t=e.objects.map(e=>{var t;return(null===(t=e.objectRef)||void 0===t?void 0:t.current)?Number(e.objectRef.current.style.zIndex):e.zIndex});return Math.max(...t)+1},get slideTimeLineOnClickToSlideHandler(){return e.slideTimeline?e.slideTimeline.onClickToSlideHandler.bind(e.slideTimeline):void 0}}));var D=n(20),N=n(3),R=n(65);const L=c.a.named("PlayerSlideStore").props({slides:r.types.array(Object(u.a)(M))}).volatile(()=>({isAllBlocksShown:!1,isTransitionInitiatedByPresenter:!1,preRenderedSlidesNum:2,maxRenderedSlidesNum:10,initialSelectedSlide:null})).extend(e=>{const t=i.observable.box([]),n=e.init;return{views:{get playerRenderedSlides(){return t.get()},get hasTransitions(){if(!s.a)return!1;return!Object(r.getParent)(e).settings.isEmbedMode&&e.slides.some(e=>e.hasTransition)},isSlideRendered:t=>e.playerRenderedSlides.includes(t),getObjectsInViewportWithTimelineAccordingToAnimation({animationGroups:t=D.e,animationTriggers:n=D.h}={}){if(!t.length||!n.length)return[];return e.slides.flatMap(e=>e.getObjectsAndGroups()).filter(e=>!(e.isObjectLinkTarget||!e.objectTimeline||!t.some(t=>n.some(n=>{const r=o()(e,`animation.${t}.triggerType`);return r===n&&("onclick"===r?!e.objectTimeline.getHasFiredAnimation(t):e.objectTimeline.getShouldFireTimerAnimation(t))})))&&e.getInViewport())},get renderedSlidesCount(){return e.playerRenderedSlides.length},get isAllSlidesRendered(){return e.slides.every(e=>e.isRendered)}},actions:{init(){n();const t=Object(r.getParent)(e);t.settings.isBlockInfographic?window.slidesCount=1:(e._setInitialSelectedSlide(),window.slidesCount=e.slidesCount),t.settings.isDocumentView&&e._setInitialRenderedPages()},changeInitialSelectedSlide(t){const n=Object(r.getParent)(e),{settings:i}=n;if(i.isDocumentView)return void e.slides[0].select();const a=Math.min(Math.max(t-1,0),e.slidesCount-1),o=e.slides[a];n.settings.isDynamicMode?(e.initialSelectedSlide=o,e.addRenderSlide(e.initialSelectedSlide)):o.select()},_setInitialSelectedSlide(){let t=Number(window.location.hash.replace("#s",""));isNaN(t)&&(t=1),e.changeInitialSelectedSlide(t)},_setInitialRenderedPages(){const t=Math.min(e.slidesCount,e.maxRenderedSlidesNum);e.slides.slice(0,t).forEach(t=>{e.addRenderSlide(t)})},setIsAllBlocksShown(t){e.isAllBlocksShown=t},setIsTransitionInitiatedByPresenter(t){e.isTransitionInitiatedByPresenter=t},selectSlide(t){const n=Object(r.getParent)(e);n.settings.isDocumentView||e.addRenderSlide(t),e.selectedSlide!==t&&(e.setProp("prevSelectedSlide",e.selectedSlide),e.setProp("selectedSlide",t),n.settings.isPresenterMode&&window.opener&&window.opener.postMessage(JSON.stringify({type:l.a.parentGoToSlide,index:t.indexInParent}),"*"),n.settings.isDocumentView||e.checkPreRenderSlides(),window.selectedSlideIndex=e.slideIndex(e.selectedSlide),window.postMessage({event:"slide-switch",slide:e.selectedSlide.indexInParent,slidesCount:e.slidesCount},"*"))},addRenderSlide(t){e.isSlideRendered(t)||e.playerRenderedSlides.push(t)},removeEarliestRenderedSlide(){const t=e.playerRenderedSlides.findIndex(t=>t!==e.selectedSlide);if(-1===t)return;const n=e.playerRenderedSlides[t];e.playerRenderedSlides.splice(t,1);for(const e of n.objects)e.setStatus("rendering")},prerenderSlide(t){e.renderedSlidesCount>e.maxRenderedSlidesNum&&e.removeEarliestRenderedSlide();const n=e.slides[t];e.addRenderSlide(n)},checkPreRenderSlides(){const t=e.slideIndex(e.prevSelectedSlide),n=e.slideIndex(e.selectedSlide);let r;r=n===t+1||0===n?[1]:n===t-1?[-1]:[1,-1];let i=e.preRenderedSlidesNum;for(;i;){const t=i-1;for(const a of r){if(!i)break;i--;const r=(n+(e.preRenderedSlidesNum-t)*a)%e.slidesCount;r<0||e.prerenderSlide(r)}if(!r.length)break}},applyBrandThemeIfNeeded(){if(!Object(R.a)({qa:!0,local:!0}))return;if(!s.l||!bootstrap.selectedBrandTheme)return;const t=Object(N.parseJson)({string:bootstrap.selectedBrandTheme,defaultValue:null});t&&e._setTemplatePalette(t)}}}});var F=L.create(),V=n(1226),B=n(1434),H=n(1933);const z=n(1072).a.named("AppPlayerSettings").props({logo:r.types.maybeNull(r.types.string),logoPosition:r.types.optional(r.types.string,"left"),projectCreatedAt:r.types.optional(r.types.string,""),isMobile:r.types.optional(r.types.boolean,!1),isTablet:r.types.optional(r.types.boolean,!1),isStudio:r.types.optional(r.types.boolean,!1),allowPlayerDownload:r.types.optional(r.types.boolean,!1),screenshot:r.types.maybeNull(r.types.string),hideVismeButtons:r.types.optional(r.types.boolean,!1),hideVismeHeader:r.types.optional(r.types.boolean,!1),Html5Download:r.types.optional(r.types.boolean,!1),accessPermission:r.types.enumeration(["root","view","comment","edit"]),hasLoggedIn:r.types.optional(r.types.boolean,!1),isPrivate:r.types.optional(r.types.boolean,!1),editorUrl:r.types.frozen(),isMyPresentation:r.types.optional(r.types.boolean,!1),cookiePopup:r.types.maybeNull(r.types.model({name:r.types.maybeNull(r.types.string),message:r.types.maybeNull(r.types.string),footer:r.types.maybeNull(r.types.string),styles:r.types.maybeNull(r.types.string)})),isReplay:r.types.optional(r.types.boolean,!1),playRec:r.types.optional(r.types.boolean,!1),replayData:r.types.optional(r.types.string,""),replayVideos:r.types.map(r.types.string)}).views(e=>({buildShareScriptSrc:()=>"//s7.addthis.com/js/300/addthis_widget.js#pubid="+e.shareParams.pubid,getSlideScreenshot:t=>e.screenshot.replace(/_f\.\w+$/,`/slides/${t}.jpg`),get isTouchDevice(){return e.isMobile||e.isTablet},get isInteractivePlayer(){return null!==e.mode&&["player","player.preview","player.embed"].includes(e.mode)},get needParallaxAnimation(){return!e.isMobile&&e.isBlockInfographic&&e.enableParallaxAnimation&&this.isInteractivePlayer},get needObjectTimeline(){return this.isInteractivePlayer},get needUrlHash(){return!e.isBlockInfographic&&!e.isDocumentView&&"editor"!==e.mode&&"player.embed"!==e.mode&&"player.render"!==e.mode},get needPlayerHeader(){return!e.hideVismeHeader&&""!==e.logo&&"player.preview"!==e.mode&&"player.embed"!==e.mode},get canShowComments(){return"player"===e.mode&&!e.mobile&&e.isPrivate},get hasCommentPermission(){return"view"!==e.accessPermission},get isCommentsVisible(){return e.canShowComments&&e.hasCommentPermission},get shouldForceShowMobileControlBar(){return"presentation"===e.projectType&&e.isMobile&&!e.isEmbedMode&&!e.Html5Download}})).actions(e=>({setIsLoggedIn:t=>{e.hasLoggedIn=t},forceReplay:()=>{e.isReplay=!0}}));var U=n(2218),W=n.n(U),G=n(191),q=n(1296);const Y=new W.a(window.navigator.userAgent),X=H.a.named("AppPlayerStore").props({settings:z,slideStore:r.types.maybe(L),hoveringObjects:r.types.array(r.types.safeReference(r.types.late(()=>I))),ownerInfo:r.types.maybe(Object(B.a)(V.a)),sessionUserInfo:r.types.maybeNull(Object(B.a)(V.a)),replayVideo:r.types.optional(r.types.string,""),replayEvents:r.types.optional(r.types.array(q.a),[]),replayAzimuth:r.types.optional(r.types.string,"se"),replayShape:r.types.optional(r.types.string,"frame_00"),replayFrame:r.types.optional(r.types.string,"none"),replaySize:r.types.optional(r.types.string,"small"),replayDuration:r.types.optional(r.types.number,0),replayMouse:r.types.optional(r.types.boolean,!1)}).volatile(()=>({uiStateStore:b.a,isStartedManually:!1,showPlayOverlay:!1,isManualRequired:!1,forceManualStart:!1,canvasRef:null,replayRef:null})).views(e=>({get needBeStartedManually(){var t,n;return!e.settings.isStudio&&(e.isManualRequired||!e.settings.isBlockInfographic&&!e.settings.isPresenterMode&&(!e.settings.autoplayAnimation||(null===(t=e.slideStore)||void 0===t||null===(n=t.initialSelectedSlide)||void 0===n?void 0:n.attachedAudio)))},get isStarted(){return!e.needBeStartedManually||e.isStartedManually}})).actions(e=>({start(){e.isStartedManually=!0},afterCreate(){var t;e.settings.handleBootstrap(bootstrap),null===(t=e.slideStore)||void 0===t||t.init()},forceManualStart(){e.isManualRequired=!0},setShowPlayOverlay(t){e.showPlayOverlay=t},showMessage({title:e,text:t,isPriceVisible:n,highlightedText:r,level:i}){b.a.userMessage.update({title:e,text:t,isPriceVisible:n,highlightedText:r,level:i})},setCanvasRef(t){e.canvasRef=t},setReplayRef(t){e.replayRef=t},setReplayVideo:t=>{e.replayVideo=t},setReplayAzimuth:t=>{e.replayAzimuth=t},setReplayShape:t=>{e.replayShape=t},setReplayFrame:t=>{e.replayFrame=t},setReplaySize:t=>{e.replaySize=t},setReplayEvents:t=>{e.replayEvents=t},setReplayDuration:t=>{e.replayDuration=t},setReplayMouse:t=>{e.replayMouse=t}}));bootstrap.Html5Download&&(bootstrap.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent));const $=null!==Y.tablet()||G.a,K=null!==Y.mobile()&&!$;bootstrap.isMobile=K,bootstrap.isTablet=$;const Z=X.create({settings:bootstrap,slideStore:F,ownerInfo:ownerInfo,sessionUserInfo:sessionUserInfo});if(window.__VISMEINTERNAL__&&(window.appPlayerStore=Z,window.parent))try{window.parent.appPlayerStore=Z}catch(e){}t.a=Z},function(e,t,n){"use strict";n.d(t,"b",(function(){return L})),n.d(t,"a",(function(){return F}));var r=n(7),i=n(583),a=n(736),o=n(82),s=n(119),l=n(70),c=n(32),u=n(35),d=n(132),h=n(239),p=n(42),f=n(345),m=n(176),g=n(271),y=n(33),v=n(66),b=n(126),x=n(68),_=n(8),w=n(638),S=n(374),T=n(639),O=n(223),C=n(222),P=n(980),E=n(13),k=n(4),A=n(91),j=n(14),I=n(28),M=n(2),D=n(18),N=n(76),R=n(19),L=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],F=function(e){function t(){var t=e.call(this)||this;return t.properties={},t._eventDispatcher=new a.a(t),t._bindings={},t._isTemplate=!1,t._isPath=!1,t._inited=!1,t._ready=!1,t.isHiding=!1,t._isHidden=!1,t.isShowing=!1,t.isStandaloneInstance=!1,t._isActive=!1,t._mask=new u.d,t._positionPrecision=3,t._language=new u.d,t._exporting=new u.d,t._exportable=!0,t._bbox={x:0,y:0,width:0,height:0},t.invalid=!1,t.positionInvalid=!1,t.propertyFields={},t.applyOnClones=!1,t._measuredWidthSelf=0,t._measuredHeightSelf=0,t.maxLeft=0,t.maxRight=0,t.maxTop=0,t.maxBottom=0,t.maxLeftSelf=0,t.maxRightSelf=0,t.maxTopSelf=0,t.maxBottomSelf=0,t._isDragged=!1,t._isResized=!1,t._disabled=!1,t._internalDisabled=!1,t._updateDisabled=!1,t._internalDefaultsApplied=!1,t.rollOutDelay=0,t.isBaseSprite=!1,t.shouldClone=!0,t.appeared=!1,t.ex=0,t.ey=0,t.dragWhileResize=!1,t.measureFailed=!1,t.preventShow=!1,t.cloneTooltip=!0,t.className="Sprite",t._disposers.push(t._eventDispatcher),E.used(t.uid),t.group=t.paper.addGroup("g"),t.setPropertyValue("scale",1),t.setPropertyValue("rotation",0),t.setPropertyValue("align","none"),t.setPropertyValue("valign","none"),t.setPropertyValue("pixelPerfect",!1),t.setPropertyValue("visible",!0),t.setPropertyValue("tooltipPosition","fixed"),t.setPropertyValue("verticalCenter","none"),t.setPropertyValue("horizontalCenter","none"),t.setPropertyValue("tooltipX",Object(R.c)(50)),t.setPropertyValue("tooltipX",Object(R.c)(50)),t.setPropertyValue("marginTop",0),t.setPropertyValue("marginBottom",0),t.setPropertyValue("marginLeft",0),t.setPropertyValue("marginRight",0),t.setPropertyValue("dx",0),t.setPropertyValue("dy",0),t.setPropertyValue("paddingTop",0),t.setPropertyValue("paddingBottom",0),t.setPropertyValue("paddingRight",0),t.setPropertyValue("paddingLeft",0),t.setPropertyValue("togglable",!1),t.setPropertyValue("hidden",!1),t.setPropertyValue("urlTarget","_self"),t.setPropertyValue("alwaysShowTooltip",!1),t.setPropertyValue("showTooltipOn","hover"),t._prevMeasuredWidth=0,t._prevMeasuredHeight=0,t._measuredWidth=0,t._measuredHeight=0,t._isMeasured=!0,t.invalidate(),t.applyTheme(),t._disposers.push(t.events),t._disposers.push(t.group),t._disposers.push(t._mask),t._disposers.push(t._language),t._disposers.push(t._exporting),t._disposers.push(new u.b((function(){I.each(t._bindings,(function(e,t){t.dispose()}))}))),t.setPropertyValue("interactionsEnabled",!0),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new s.a(this)),this._adapterO},enumerable:!0,configurable:!0}),t.prototype.applyTheme=function(){e.prototype.applyTheme.call(this),x.a.autoSetClassName&&this.setClassName()},t.prototype.getCurrentThemes=function(){var e=this._themes;if(e)return e;var t=this._parent;return t?t.getCurrentThemes():_.c.themes},t.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},t.prototype.invalidate=function(){this.disabled||this._isTemplate||this.__disabled||this.invalid||(this.invalid=!0,_.c.addToInvalidSprites(this),N.b.requestFrame())},t.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,_.c.removeFromInvalidSprites(this),this.afterDraw()},t.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,_.c.addToInvalidPositions(this),N.b.requestFrame())},t.prototype.validatePosition=function(){var e=this.pixelX,t=this.pixelY,n=this.dx,r=this.dy,i=e+n,a=t+r;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var o=this.measure(),s=this.group.transformString;this.group.moveTo({x:i,y:a}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(s!=this.group.transformString||o)&&(null==s?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),"hit"!=this.showTooltipOn&&"always"!=this.showTooltipOn||this.updateTooltipPosition()),e+n==i&&t+r==a&&(_.c.removeFromInvalidPositions(this),this.positionInvalid=!1);var l=this._maskRectangle;l&&this._clipElement.moveTo({x:l.x-e,y:l.y-t})},t.prototype.beforeDraw=function(){},t.prototype.draw=function(){},t.prototype.afterDraw=function(){var e,t;if((this.isMeasured||"none"!==this.horizontalCenter||"none"!==this.verticalCenter)&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var n=Object(r.g)(this._adapterO.keys()),i=n.next();!i.done;i=n.next()){var a=i.value;switch(a){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[a]=this[a]}}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}"always"==this.showTooltipOn&&(!this.visible||this.disabled||this.__disabled?this.hideTooltip(0):this.showTooltip())},t.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},t.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},t.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},t.prototype.updateFilterScale=function(){var e=this;D.each(this.filters.iterator(),(function(t){t.scale=e.globalScale}))},t.prototype.removeFromInvalids=function(){_.c.removeFromInvalidSprites(this),_.c.removeFromInvalidPositions(this)},t.prototype.copyFrom=function(t){var n=this;e.prototype.copyFrom.call(this,t),this.isMeasured=t.isMeasured,this.states.copyFrom(t.states),t.filters.length>0&&t.filters.each((function(e){n.filters.push(e.clone())})),t._adapterO&&this.adapter.copyFrom(t._adapterO),t._interaction&&this.interactions.copyFrom(t.interactions),t._plugins&&this.plugins.copyFrom(t.plugins),this.configField=t.configField,this.applyOnClones=t.applyOnClones,this.disabled=t.disabled,this.virtualParent=t.virtualParent,this.exportable=t.exportable,t._tooltip&&(this._tooltip?this._tooltip.copyFrom(t.tooltip):t.cloneTooltip?this.tooltip=t.tooltip.clone():this._tooltip=t.tooltip),this._showSystemTooltip=t.showSystemTooltip,E.copyProperties(t.propertyFields,this.propertyFields),E.copyProperties(t.properties,this),t.fillModifier&&(this.fillModifier=t.fillModifier.clone()),t.strokeModifier&&(this.strokeModifier=t.strokeModifier.clone())},t.prototype.dispose=function(){if(!this.isDisposed()){if("always"==this.showTooltipOn&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(e.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var t=this._clones.length-1;t>=0;t--){this._clones.getIndex(t).dispose()}this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var n=this.stroke;!n||n instanceof y.a||!n.dispose||this.clonedFrom&&this.clonedFrom.stroke==n||n.dispose();var r=this.fill;if(!r||r instanceof y.a||!r.dispose||this.clonedFrom&&this.clonedFrom.fill==r||r.dispose(),M.hasValue(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var i=this._filters.getIndex(0);i.dispose(),this._filters.removeValue(i)}this._alwaysShowDisposers=void 0}},Object.defineProperty(t.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(e){e=M.toBoolean(e),this._isTemplate!=e&&(this._isTemplate=e,this instanceof p.a&&D.each(this.children.iterator(),(function(t){t.isTemplate=e})),e?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"showSystemTooltip",{get:function(){return M.hasValue(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:!!this._parent&&this._parent.showSystemTooltip},set:function(e){e=M.toBoolean(e),this._showSystemTooltip!=e&&(this._showSystemTooltip=e,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"topParent",{get:function(){return this._topParent?this._topParent:this._parent?this._parent.topParent:void 0},set:function(e){this._topParent=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(e){if(!this._isTemplate){E.used(this.paper);var t=this._parent;t!=e&&(t&&t.children.removeValue(this),this._parent=e,e?(this.topParent=e.topParent,e.isTemplate&&(this.isTemplate=!0),this.baseId=e.baseId,e.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=e.tooltipContainer),this._dataItem||(this.dataItem=e.dataItem),this.handleAlwaysShowTooltip(),this.dataItem&&this.applyAccessibility(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),t.prototype.handleAlwaysShow=function(){this.showTooltip()},t.prototype.handleAlwaysShowTooltip=function(){var e=this,t=this._alwaysShowDisposers;if(t&&j.each(t,(function(e){e.dispose()})),this._alwaysShowDisposers=[],"always"==this.showTooltipOn)for(;null!=e;){var n=e.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(n),this._alwaysShowDisposers.push(n),e=e.parent}},Object.defineProperty(t.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(e){this._virtualParent=e,this.dataItem&&this.applyAccessibility()},enumerable:!0,configurable:!0}),t.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var e=this.fill;e&&e.element&&this.paper.appendDef(e.element);var t=this.stroke;if(t&&t.element&&this.paper.appendDef(t.element),this.fillModifier&&this.fill instanceof y.a){var n=this.fillModifier.modify(this.fill);n&&n.element&&this.paper.appendDef(n.element)}if(this.strokeModifier&&this.stroke instanceof y.a){var r=this.strokeModifier.modify(this.stroke);r&&r.element&&this.paper.appendDef(r.element)}this._clipPath&&this.paper.appendDef(this._clipPath),!1===this._exportable&&(this.exportable=!1)},Object.defineProperty(t.prototype,"map",{get:function(){var e=this.topParent;return e?e.map:(this._map||(this._map=new l.a),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"delayedMap",{get:function(){var e=this.topParent;return e?e.delayedMap:(this._delayedMap||(this._delayedMap=new l.a),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"id",{get:function(){return this._id},set:function(e){if(this._id!=e){if(this._id=e,this.map.hasKey(e))throw Error("Duplicate id ("+e+") used on multiple objects.");this.map.setKey(e,this),x.a.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paper",{get:function(){if(this._paper)return this._paper;var e=this._parent;return e?e.paper:Object(h.b)()},set:function(e){this.setPaper(e)},enumerable:!0,configurable:!0}),t.prototype.setPaper=function(e){return this._paper!=e&&(this._paper=e,this.appendDefs(),!0)},Object.defineProperty(t.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var e=this._parent;return e?e.htmlContainer:void 0},set:function(e){this._htmlContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"filters",{get:function(){return this._filters||(this._filters=new c.b,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new c.c(this._filters))),this._filters},enumerable:!0,configurable:!0}),t.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},t.prototype.setSVGAttribute=function(e){this.group.attr(e)},t.prototype.removeSVGAttribute=function(e){this.group.removeAttr(e)},t.prototype.setClassName=function(){var e=this.className,t=x.a.classNamePrefix;this.element&&this.element.addClass(t+e),this.group.addClass(t+e+"-group"),M.hasValue(this.id)&&this.group.addClass(t+this.id),this.userClassName&&this.group.addClass(this.userClassName)},t.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},t.prototype.updateClipPath=function(){var e=this._clipElement;e&&e.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},t.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var e=_.c.getUniqueId();this._clipPath.attr({id:e}),this.group.attr({"clip-path":'url("'+E.getBaseURI()+e+'")'})}},t.prototype.applyMask=function(){var e=this.mask;if(this._clipPath&&e)if(e instanceof p.a){this._clipElement.attr({width:k.max(0,e.pixelWidth),height:k.max(0,e.pixelHeight)});var t=E.spritePointToSprite({x:e.pixelX,y:e.pixelY},e.parent,this);this._clipPath.x=t.x,this._clipPath.y=t.y}else e.element&&e.element!=this._clipElement&&(this._clipElement=e.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=e.scale,this._clipPath.x=e.pixelX,this._clipPath.y=e.pixelY,this._clipPath.rotation=e.rotation},t.prototype.applyFilters=function(){var e=this;if(this._filters&&this._filters.length>0){var t=100,n=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var r="filter-"+this.uid;this.filterElement.attr({id:r}),D.each(this.filters.iterator(),(function(r){r.sprite=e,r.paper=e.paper,e.filterElement.attr({filterUnits:r.filterUnits}),r.appendPrimitives(e.filterElement),r.width>t&&(t=r.width),r.height>n&&(n=r.height),r.scale=e.globalScale}));var i=t+"%",a=n+"%";this.filterElement.attr({width:i,height:a,x:-(t-100)/2+"%",y:-(n-100)/2+"%"}),this.group.attr({filter:'url("'+E.getBaseURI()+r+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},t.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},t.prototype.setElement=function(e){this.element=e,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(t.prototype,"element",{get:function(){return this._element},set:function(e){this.removeElement(),this._element=e,this.group.add(e),e.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),x.a.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"svgContainer",{get:function(){return this._svgContainer?this._svgContainer:this._parent?this._parent.svgContainer:void 0},set:function(e){this._svgContainer=e},enumerable:!0,configurable:!0}),t.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var e=this.element.getBBox();this._bbox={x:e.x,y:e.y,width:e.width,height:e.height}}},t.prototype.updateCenter=function(){if(this.element){var e=this.element.transformString,t=this.bbox,n=0,r=0,i=t.x,a=t.y,o=t.width,s=t.height,l=this.pixelPaddingLeft,c=this.pixelPaddingRight,u=this.pixelPaddingTop,d=this.pixelPaddingBottom,h=k.max(o+l+c,this.pixelWidth),p=k.max(s+u+d,this.pixelHeight),f=t.x,m=t.x+h,g=t.y,y=t.y+p,v=this.horizontalCenter,b=this.verticalCenter;switch(v){case"none":n=i+l;break;case"left":n=l;break;case"middle":n=l-(o+c+l)/2;break;case"right":n=-c-o}switch(b){case"none":r=a+u;break;case"top":r=u;break;case"middle":r=u-(s+d+u)/2;break;case"bottom":r=-d-s}this._measuredHeight=p,this._measuredWidth=h;var _=k.round(n-i,this._positionPrecision,!0),w=k.round(r-a,this._positionPrecision,!0);this.ex=_-l,this.ey=w-u,this.maxLeft=f+_-l,this.maxRight=m+_-l,this.maxTop=g+w-u,this.maxBottom=y+w-u,this.pixelPerfect&&0==x.a.pixelPerfectPrecision&&(_-=.5,w-=.5),this.element.moveTo({x:_,y:w}),e!=this.element.transformString&&this.dispatchImmediately("transformed")}},t.prototype.measure=function(){this.updateCenter();var e=this._measuredWidth,t=this._measuredHeight,n=this.maxLeft,r=this.maxRight,i=this.maxTop,a=this.maxBottom;this._measuredWidthSelf=e,this._measuredHeightSelf=t;var o=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,0!==this.rotation||1!==this.scale||this.nonScaling){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var s=this.paper.svg,l=s.createSVGMatrix(),c=this.rotation,u=this.scale;this.nonScaling&&(u=this.scale/this.globalScale),l.a=k.cos(c)*u,l.c=-k.sin(c)*u,l.e=0,l.b=k.sin(c)*u,l.d=k.cos(c)*u,l.f=0;var d=s.createSVGPoint();d.x=n,d.y=i;var h=s.createSVGPoint();h.x=r,h.y=i;var p=s.createSVGPoint();p.x=r,p.y=a;var f=s.createSVGPoint();f.x=n,f.y=a;var m=d.matrixTransform(l),g=h.matrixTransform(l),y=p.matrixTransform(l),v=f.matrixTransform(l);n=Math.min(m.x,g.x,y.x,v.x),r=Math.max(m.x,g.x,y.x,v.x),i=Math.min(m.y,g.y,y.y,v.y),e=r-n,t=(a=Math.max(m.y,g.y,y.y,v.y))-i,this.maxLeft=k.round(n,o,!0),this.maxRight=k.round(r,o,!0),this.maxTop=k.round(i,o,!0),this.maxBottom=k.round(a,o,!0)}return this._measuredWidth=k.round(e,o,!0),this._measuredHeight=k.round(t,o,!0),(this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight)&&(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||"hit"==this.showTooltipOn||"always"==this.showTooltipOn)&&this.tooltip&&this.tooltip.visible&&(M.hasValue(this.tooltipText)||M.hasValue(this.tooltipHTML))&&this.updateTooltipPosition(),!0)},t.prototype.insertBefore=function(e){var t=this._parent;if(t){var n=t.children.indexOf(e);-1!==n&&(t.children.moveValue(this,n),t.sortChildren())}return this},t.prototype.insertAfter=function(e){var t=this._parent;if(t){var n=t.children.indexOf(e);-1!==n&&(t.children.moveValue(this,n+1),t.sortChildren())}return this},t.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},t.prototype.getRelativeX=function(e){return e instanceof R.a?e.value:this._parent?e/this._parent.innerWidth:0},t.prototype.getRelativeY=function(e){return e instanceof R.a?e.value:this._parent?e/this._parent.innerHeight:0},t.prototype.getPixelX=function(e){var t=0;if(M.isNumber(e))t=e;else if(e instanceof R.a){var n=e.value;this._parent&&(t=k.round(this._parent.innerWidth*n,this._positionPrecision,!0))}return t},t.prototype.getPixelY=function(e){var t=0;if(M.isNumber(e))t=e;else if(e instanceof R.a){var n=e.value;this._parent&&(t=k.round(this._parent.innerHeight*n,this._positionPrecision,!0))}return t},t.prototype.moveTo=function(e,t,n,r){this.isDragged&&!r||(e&&(M.isNumber(e.x)&&this.setPropertyValue("x",k.round(e.x,this._positionPrecision,!0)),M.isNumber(e.y)&&this.setPropertyValue("y",k.round(e.y,this._positionPrecision,!0))),M.isNumber(t)&&(this.rotation=t),M.isNumber(n)&&(this.scale=n),this.invalidatePosition())},Object.defineProperty(t.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(e){var t=this;this._mask.get()!==e&&(e?(this.createClipPath(),e instanceof p.a?this._clipElement=this.paper.add("rect"):(e.isMeasured=!1,e.element&&(this._clipElement=e.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(e,new u.c([e.events.on("maxsizechanged",(function(){t.inited&&t.applyMask()}),void 0,!1),e.events.on("validated",this.applyMask,this,!1),e.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(e){e?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:e.width,height:e.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(e){(e=M.toBoolean(e))||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=e&&(this._isMeasured=e,this.invalidatePosition())},enumerable:!0,configurable:!0}),t.prototype.hitTest=function(e){this.invalid&&this.validate(),e.invalid&&e.validate();var t=this.pixelX+this.maxLeft,n=this.pixelY+this.maxTop,r=t+this.maxRight,i=n+this.maxBottom,a=e.pixelX+e.maxLeft,o=e.pixelY+e.maxTop,s=a+e.maxRight,l=o+e.maxBottom;return!(a>r||si||l0&&((r=this.animate(a,t,n))&&!r.isFinished()?this._disposers.push(r.events.on("animationended",(function(){i.dispatchImmediately("transitionended")}))):this.dispatchImmediately("transitionended")),e.filters.length>0){var s=[];D.each(e.filters.iterator(),(function(e){var r=e.clone();s.push(r);var a=[];D.each(i.filters.iterator(),(function(e){e.className==r.className&&(D.contains(i.defaultState.filters.iterator(),(function(e){return e.className===r.className}))||i.defaultState.filters.push(e),I.each(r.properties,(function(t,n){var r=e.properties[t];r!=n&&a.push({property:t,from:r,to:n})})))})),r.animate(a,t,n)})),this.filters.clear(),this.filters.pushAll(s)}return r},t.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(t.prototype,"isHover",{get:function(){return!!this.isInteractive()&&this.interactions.isHover},set:function(e){(e=M.toBoolean(e))!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=e,e?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDown",{get:function(){return!!this.isInteractive()&&this.interactions.isDown},set:function(e){e=M.toBoolean(e),this.isInteractive()&&this.isDown!=e&&(this.interactions.isDown=e,e?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isFocused",{get:function(){return!!this.isInteractive()&&this.interactions.isFocused},set:function(e){e=M.toBoolean(e),this.focusable&&this.isFocused!=e&&this.isInteractive()&&(this.interactions.isFocused=e,!0===e?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActive",{get:function(){return this._isActive},set:function(e){this.setActive(e)},enumerable:!0,configurable:!0}),t.prototype.setActive=function(e){e=M.toBoolean(e),this._isActive!==e&&(this._isActive=e,e&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(t.prototype,"disabled",{get:function(){var e=this.getPropertyValue("disabled");return M.hasValue(e)?e:this.virtualParent?this.virtualParent.disabled:!!this._parent&&this._parent.disabled},set:function(e){this.setDisabled(e)},enumerable:!0,configurable:!0}),t.prototype.setDisabled=function(e){if(e=M.toBoolean(e),this.getPropertyValue("disabled")!=e){if(this.setPropertyValue("disabled",e,!0),e)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var t=this._parent.element;t.hasChild(this.group)||t.add(this.group)}this instanceof p.a?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),N.b.requestFrame(),!0}return!1},Object.defineProperty(t.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(e){this._internalDisabled!=e&&(this._internalDisabled=e,this._updateDisabled=!0,this.invalidatePosition(),e||this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new w.a,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(e){this._numberFormatter=e,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new S.a,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(e){this._dateFormatter=e,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new T.a,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(e){this._durationFormatter=e,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"language",{get:function(){var e=this._language.get();return e||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(e=new C.a,this.language=e,e))},set:function(e){var t=this;this._language.get()!==e&&this._language.set(e,e.events.on("localechanged",(function(e){if(t._numberFormatter&&(t._numberFormatter.language=t.language),t._dateFormatter&&(t._dateFormatter.language=t.language),t._durationFormatter&&(t._durationFormatter.language=t.language),t._exporting.get()){var n=t._exporting.get();n.numberFormatter.language=t.language,n.dateFormatter.language=t.language,n.durationFormatter.language=t.language,n.language=t.language}t instanceof p.a&&t.deepInvalidate()})))},enumerable:!0,configurable:!0}),t.prototype.populateString=function(e,t){if(M.hasValue(e)){e=M.castString(e);var n=(e=Object(O.b)().escape(e)).match(/\{([^}]+)\}/g),r=void 0;if(n)for(r=0;r-1||void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this._parent?this._parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(e){var t=this;e=M.toBoolean(e),this.setPropertyValue("draggable",e)&&(e||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.draggable=e,this.interactions.setEventDisposer("sprite-draggable",e,(function(){return new u.c([t.events.on("down",t.handleDown,t,!1),t.events.on("dragstart",t.handleDragStart,t,!1),t.events.on("drag",t.handleDragMove,t,!1),t.events.on("dragstop",t.handleDragStop,t,!1)])})))},enumerable:!0,configurable:!0}),t.prototype.handleDragStart=function(e){this.interactions.isTouchProtected&&e.touch||(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},t.prototype.dragStart=function(e){this._isDragged=!0,Object(v.b)().dragStart(this.interactions,e)},t.prototype.handleDragStop=function(e){this.interactions.isTouchProtected&&e.touch||(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},t.prototype.dragStop=function(e,t){this._isDragged=!1,Object(v.b)().dragStop(this.interactions,e,t)},t.prototype.handleDragMove=function(e){if(!this.interactions.isTouchProtected||!e.touch){var t=this.interactions.originalPosition;if(t&&this._isDragged){var n=this._parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:t.x+e.shift.x/n,y:t.y+e.shift.y/n},void 0,void 0,!0)}this.dispatchImmediately("dragged",e)}},Object.defineProperty(t.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(e){e=M.toBoolean(e),this.setPropertyValue("inert",e)&&(e||this.isInteractive())&&(this.interactions.inert=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this._parent)return this._parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(e){var t=this;e=M.toBoolean(e),this.setPropertyValue("hoverable",e)&&(e||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.hoverable=e,this.interactions.setEventDisposer("sprite-hoverable",e,(function(){return new u.c([t.events.on("over",t.handleOver,t,!1),t.events.on("out",t.handleOut,t,!1)])})))},enumerable:!0,configurable:!0}),t.prototype.handleOver=function(e){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var t=void 0;e&&e.pointer&&(t=E.documentPointToSvg(e.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),"hover"==this.showTooltipOn&&this.showTooltip(t)}else"hover"==this.showTooltipOn&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},t.prototype.handleOut=function(e){var t=this;this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover?this._outTimeout=this.setTimeout((function(){t.tooltip.isHover||(t.tooltip.targetSprite==t&&t.hideTooltip(),t._outTimeout=t.setTimeout(t.handleOutReal.bind(t),t.rollOutDelay))}),10):("hover"==this.showTooltipOn&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay))},t.prototype.handleOutReal=function(){this.isHidden||this.isHiding||!this.states.hasKey("hover")||this.applyCurrentState()},Object.defineProperty(t.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this._parent)return this._parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),t.prototype.handleDown=function(e){1===this.interactions.downPointers.length&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},t.prototype.handleUp=function(e){var t=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),"hit"==this.showTooltipOn&&(this.updateTooltipPosition(e.pointer?e.pointer.point:void 0),this._disposers.push(_.c.events.once("exitframe",(function(){t.showTooltip()}))),this._disposers.push(Object(v.b)().body.events.once("down",(function(e){t.hideTooltip()}))))},Object.defineProperty(t.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(e){var t=this;e=M.toBoolean(e),this.setPropertyValue("clickable",e)&&(e||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.clickable=e,this.interactions.setEventDisposer("sprite-clickable",e,(function(){return new u.c([t.events.on("down",t.handleDown,t,!1),t.events.on("up",t.handleUp,t,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(e){var t=this;e=M.toBoolean(e),this.setPropertyValue("togglable",e)&&(e||this.isInteractive())&&this.interactions.setEventDisposer("sprite-togglable",e,(function(){return t.events.on("hit",t.handleToggle,t,!1)}))},enumerable:!0,configurable:!0}),t.prototype.handleToggle=function(e){this.isActive=!this.isActive},Object.defineProperty(t.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(e){e=M.toBoolean(e),this.setPropertyValue("contextMenuDisabled",e)&&(this.interactions.contextMenuDisabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(e){this.setPropertyValue("url",e)&&(this._urlDisposer&&this._urlDisposer.dispose(),E.isNotEmpty(e)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=b.a.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseId",{get:function(){return!this._baseId&&this._parent&&(this.baseId=this._parent.baseId),this._baseId},set:function(e){this.setBaseId(e)},enumerable:!0,configurable:!0}),t.prototype.setBaseId=function(e){e!=this._baseId&&(this.invalid&&(this.invalid=!1,_.c.removeFromInvalidSprites(this),this.invalidate()),this._baseId=e)},Object.defineProperty(t.prototype,"baseSprite",{get:function(){return this.isBaseSprite?this:this._parent?this._parent.baseSprite:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(e){this.setPropertyValue("urlTarget",e)},enumerable:!0,configurable:!0}),t.prototype.urlHandler=function(e){if(E.isNotEmpty(this.url)){var t=this.populateString(this.url);"_self"===this.urlTarget?window.location.href=t:window.open(t,this.urlTarget)}},Object.defineProperty(t.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this._parent)return this._parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(e){e=M.toBoolean(e),this.setPropertyValue("swipeable",e)&&(this.applyCursorStyle(),(e||this.isInteractive())&&(this.interactions.swipeable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(e){e=M.toBoolean(e),this.setPropertyValue("trackable",e)&&(e||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.trackable=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(e){this.setPropertyValue("wheelable",e)&&(e||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.wheelable=e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(e){var t=this;e=M.toBoolean(e),this.setPropertyValue("resizable",e)&&(e||this.isInteractive())&&(this.applyCursorStyle(),this.interactions.resizable=e,this.interactions.setEventDisposer("sprite-resizable",e,(function(){return new u.c([t.events.on("down",t.handleDown,t,!1),t.events.on("resize",t.handleResize,t,!1)])})))},enumerable:!0,configurable:!0}),t.prototype.handleResize=function(e){if((!this.interactions.isTouchProtected||!e.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*e.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var t=E.documentPointToSvg(e.point1,this.htmlContainer,this.svgContainer.cssScale),n=E.documentPointToSvg(e.point2,this.htmlContainer,this.svgContainer.cssScale),r=k.getMidPoint(t,n),i=E.documentPointToSprite(e.startPoint1,this._parent),a=E.documentPointToSprite(e.startPoint2,this._parent),o=this.interactions.originalPosition,s=this.interactions.originalScale;if(o){var l={x:(i.x-o.x)/s,y:(i.y-o.y)/s},c={x:(a.x-o.x)/s,y:(a.y-o.y)/s},u=k.getMidPoint(l,c),d=E.svgPointToSprite(r,this._parent);this.moveTo({x:d.x-u.x*this.scale,y:d.y-u.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(t.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this._parent)return this._parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursorOverStyle",{set:function(e){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=e,Object(v.b)().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cursorDownStyle",{set:function(e){this.cursorOptions.downStyle=e},enumerable:!0,configurable:!0}),t.prototype.applyCursorStyle=function(){},Object.defineProperty(t.prototype,"interactionsEnabled",{get:function(){return!1!==this.getPropertyValue("interactionsEnabled")&&(this.virtualParent?this.virtualParent.interactionsEnabled:!this._parent||this._parent.interactionsEnabled)},set:function(e){if(e=M.toBoolean(e),this.setPropertyValue("interactionsEnabled",e)){var t=null;e?this.group.node.style.pointerEvents="":t="none",this.group.node.style.pointerEvents=t}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"exporting",{get:function(){return this.getExporting()},set:function(e){this._exporting.set(e,e)},enumerable:!0,configurable:!0}),t.prototype.getExporting=function(){var e=this._exporting.get();return e||(!this.isStandaloneInstance&&this._parent?this._parent.exporting:((e=new P.a(this.svgContainer.SVGContainer)).sprite=this,e.language=this.language,e.numberFormatter=this.numberFormatter,e.dateFormatter=this.dateFormatter,e.durationFormatter=this.durationFormatter,this._exporting.set(e,e),e))},Object.defineProperty(t.prototype,"exportable",{get:function(){return this._exportable},set:function(e){var t=this.svgContainer;this._exportable=e,t&&(e?j.remove(t.nonExportableSprites,this):-1==j.indexOf(t.nonExportableSprites,this)&&t.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),t.prototype.modalPrefix=function(e){return e=x.a.classNamePrefix+e},Object.defineProperty(t.prototype,"modal",{get:function(){var e=this.svgContainer;if(e){var t=e.modal;return t.adapter.has("classPrefix",this.modalPrefix)||t.adapter.add("classPrefix",this.modalPrefix),t}},enumerable:!0,configurable:!0}),t.prototype.openModal=function(e,t){var n=this.svgContainer;if(n)return n.openModal(e,t)},t.prototype.closeModal=function(){var e=this.svgContainer;e&&e.closeModal()},Object.defineProperty(t.prototype,"popups",{get:function(){var e=this.svgContainer;if(e){var t=e.popups;return t.template.sprite=this,t.template.adapter.has("classPrefix",this.modalPrefix)||t.template.adapter.add("classPrefix",this.modalPrefix),t}},enumerable:!0,configurable:!0}),t.prototype.openPopup=function(e,t){var n=this.svgContainer;if(n)return n.openPopup(e,t)},t.prototype.closeAllPopups=function(){var e=this.svgContainer;e&&e.closeAllPopups()},Object.defineProperty(t.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(e){this.isDragged||this.setPercentProperty("x",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelX",{get:function(){var e=k.fitToRange(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(e){M.isNumber(e)&&(e=k.round(e,this._positionPrecision,!0),this.setPropertyValue("minX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(e){M.isNumber(e)&&(e=k.round(e,this._positionPrecision,!0),this.setPropertyValue("maxX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(e){this.isDragged||this.setPercentProperty("y",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelY",{get:function(){var e=k.fitToRange(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(e){M.isNumber(e)&&(e=k.round(e,this._positionPrecision,!0),this.setPropertyValue("minY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(e){M.isNumber(e)&&(e=k.round(e,this._positionPrecision,!0),this.setPropertyValue("maxY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(e){M.isNumber(e)&&(e=k.round(e,this._positionPrecision,!0),this.setPropertyValue("dx",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(e){M.isNumber(e)&&(e=k.round(e,this._positionPrecision,!0),this.setPropertyValue("dy",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(e){e=M.toNumber(e),M.isNumber(e)||(e=0),this.setPropertyValue("rotation",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(e){e=M.toText(e),this.setPropertyValue("align",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(e){e=M.toText(e),this.setPropertyValue("valign",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(e){e=M.toText(e),this.setPropertyValue("horizontalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(e){e=M.toText(e),this.setPropertyValue("verticalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxWidth",{get:function(){var e=this.getPropertyValue("maxWidth");if(!M.isNumber(e)&&this._parent){var t=this._parent.maxWidth;return"absolute"!=this._parent.layout&&"none"!=this.align&&null!=this.align&&(t=t-this.pixelMarginLeft-this.pixelMarginRight),t}return e},set:function(e){this.setMaxWidth(e)},enumerable:!0,configurable:!0}),t.prototype.setMaxWidth=function(e){var t=this.maxWidth,n=this.maxHeight;if(this.setPropertyValue("maxWidth",e)){M.isNumber(this.relativeWidth)&&this.invalidate();var r={type:"maxsizechanged",target:this,previousWidth:t,previousHeight:n};this.dispatchImmediately("maxsizechanged",r)}},Object.defineProperty(t.prototype,"maxHeight",{get:function(){var e=this.getPropertyValue("maxHeight");if(!M.isNumber(e)&&this._parent){var t=this._parent.maxHeight;return"absolute"!=this._parent.layout&&"none"!=this.valign&&null!=this.valign&&(t=t-this.pixelMarginTop-this.pixelMarginBottom),t}return e},set:function(e){this.setMaxHeight(e)},enumerable:!0,configurable:!0}),t.prototype.setMaxHeight=function(e){var t=this.maxWidth,n=this.maxHeight;if(this.setPropertyValue("maxHeight",e)){M.isNumber(this.relativeHeight)&&this.invalidate();var r={type:"maxsizechanged",target:this,previousWidth:t,previousHeight:n};this.dispatchImmediately("maxsizechanged",r)}},Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(e){this.setPropertyValue("minHeight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){this.setPercentProperty("width",e,!0,!1,this._positionPrecision,!0)&&(this.percentWidth=void 0,this.relativeWidth=void 0,e instanceof R.a?(this.percentWidth=e.percent,M.isNumber(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(e),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){this.setPercentProperty("height",e,!0,!1,this._positionPrecision,!0)&&(this.percentHeight=void 0,this._relativeHeight=void 0,e instanceof R.a?(this.percentHeight=e.percent,M.isNumber(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(e),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelWidth",{get:function(){var e;e=M.isNumber(this.percentWidth)?this.maxWidth:M.isNumber(this._pixelWidth)?this._pixelWidth:0;var t=this.minWidth;null!=t&&e({slideTransitioningTo:null,playerContainerEl:null,useCanvasHeightTransition:!1,scrollToTarget:null,windowSize:{width:document.body.clientWidth,height:window.innerHeight},autoAdvanceTimer:null,autoAdvance:!0,skrollrInstance:null,timerHeaderHeight:75,bubbleAzimuth:"se",bubbleShape:"frame_00",bubbleFrame:"none",bubbleSize:"small",bubbleFlip:!1,isVideoReady:!1,replayTicks:0,replayMouse:!0,replayMouseX:0,replayMouseY:0,replayInterval:0,isReplayStarted:!1,isReplayFinished:!1,isReplayPaused:!1,isReplayVideo:!0})).views(e=>({playerHeaderHeight(){const t=i.a.settings;if(!t.needPlayerHeader)return 0;const n=t.logo,r=t.isMobile?60:50;return e.isFullscreen||t.isMobile&&e.windowSize.width>e.windowSize.height?0:null===n?r:""===n?0:70},get zoom(){const t=i.a.settings;return e.isStudio?e.studioCanvasZoom():e.isFullscreen?t.isMobile&&e.isExpanded?this.expandedCanvasZoom():this.fullScreenCanvasZoom():t.isEmbedMode?this.embedCanvasZoom():t.isResponsive||t.isMobile?this.responsiveCanvasZoom():1},get controlBarHeight(){const t=i.a.settings;if(!t.isControlsVisible&&!t.shouldForceShowMobileControlBar)return 0;if(t.isEmbedMode&&!e.isFullscreen){const e=t.isMobile?65:50;return this.isWithTimeline?e:38}if(t.isMobile){if(this.isLandscapeOrientation)return 0;return(this.isWithTimeline?112:60)+0}return 52},get canvasMinPadding(){return i.a.settings.isMobile?10:20},get commentsPanelWidth(){return!i.a.settings.isMobile&&e.isCommentsPopupShowed?320:0},get isLandscapeOrientation(){return e.windowSize.width>e.windowSize.height},get isWithTimeline(){var e;const t=null===(e=i.a.slideStore.selectedSlide)||void 0===e?void 0:e.slideTimeline;return!i.a.settings.isPresenterMode&&t&&t.totalDuration()>0},presenterCurrentSlideRatio(){const t=i.a.slideStore,n=(e.windowSize.height-e.timerHeaderHeight-this.controlBarHeight-e.presentationNotesHeight-80)/t.height;return n*t.width<.55*e.windowSize.width?n:.55*e.windowSize.width/t.width},canvasMaxSize(){let t=1;const{settings:n}=i.a;return n.isMobile||(t=n.isBlockInfographic?.6:.9),{maxWidth:(e.windowSize.width-this.commentsPanelWidth)*t,maxHeight:e.windowSize.height-e.playerHeaderHeight()-this.controlBarHeight-2*this.canvasMinPadding}},responsiveCanvasStyle(){const t=i.a.slideStore,{maxWidth:n}=this.canvasMaxSize();let r;return i.a.settings.isBlockInfographic?(r=t.height*n/t.width+2*this.canvasMinPadding,{width:"100%",height:r,overflowY:"hidden",minHeight:`calc(var(--vh, 1vh) * 100 - ${e.playerHeaderHeight()}px)`}):(r=`calc(${i.a.settings.isMobile?"100%":"var(--vh, 1vh) * 100"} - ${e.playerHeaderHeight()+this.controlBarHeight}px)`,{width:"100%",height:r})},responsiveCanvasZoom(){const e=i.a.slideStore,{maxWidth:t,maxHeight:n}=this.canvasMaxSize();return i.a.settings.isBlockInfographic?t/e.width:Math.min(n/e.height,t/e.width)},nonResponsiveCanvasStyle(){const t=i.a.slideStore,n=e.windowSize.width-this.commentsPanelWidth,r=t.width+2*this.canvasMinPadding;return{width:Math.max(n,r),height:Math.max(e.windowSize.height-e.playerHeaderHeight()-this.controlBarHeight,t.height+2*this.canvasMinPadding-10)}},embedCanvasStyle(){return i.a.settings.isResponsive?{width:Math.min(document.documentElement.clientWidth,e.windowSize.width),height:i.a.slideStore.height*this.zoom}:{width:i.a.slideStore.width,height:i.a.slideStore.height}},studioCanvasStyle(){const{slideStore:t}=i.a;if("blockinfographic"===i.a.settings.projectType)return i.a.settings.isResponsive?{width:Math.min(document.documentElement.clientWidth,e.windowSize.width),height:t.height*this.zoom,overflow:"hidden"}:{width:t.width,height:t.height,overflow:"hidden"};return{width:Math.min(document.documentElement.clientWidth,e.windowSize.width),height:document.documentElement.clientHeight,overflow:"hidden"}},embedCanvasZoom:()=>i.a.settings.isResponsive?Math.min(document.documentElement.clientWidth,e.windowSize.width)/i.a.slideStore.width:1,studioCanvasZoom(){const{settings:t,slideStore:n}=i.a;if(t.isResponsive){const r=Math.min(document.documentElement.clientWidth,e.windowSize.width)/n.width;if("blockinfographic"===t.projectType)return r;const i=Math.min(document.documentElement.clientHeight,e.windowSize.height)/n.height;return Math.min(r,i)}return 1},fullScreenCanvasStyle(){let t;const n=i.a.slideStore;t=i.a.settings.isBlockInfographic&&e.windowSize.width/n.width>e.windowSize.height/n.height?n.height*e.windowSize.width/n.width:"calc(var(--vh, 1vh) * 100)";const r={width:"100vw",height:t};return i.a.settings.isBlockInfographic&&(r.minHeight=`calc(var(--vh, 1vh) * 100 - ${this.playerHeaderHeight()}px)`),r},fullScreenCanvasZoom(){const t=i.a.slideStore;let n;return n=i.a.settings.isBlockInfographic?e.windowSize.width/t.width:Math.min(e.windowSize.width/t.width,e.windowSize.height/t.height),n},expandedCanvasZoom(){const{slideStore:t}=i.a;return e.windowSize.width/t.width},expandedCanvasStyle(){return{...this.fullScreenCanvasStyle(),overflowX:"hidden",overflowY:"hidden"}},documentSideMenuWidth:()=>i.a.settings.isMobile?0:e.isCommentsPopupShowed?320:220,documentCanvasStyle(){const{settings:t}=i.a,n=t.isMobile?0:15;if(t.isEmbedMode&&t.isMobile)return{width:"100%",height:e.windowSize.height};const r=t.isEmbedMode&&!e.isFullscreen?this.playerHeaderHeight()+14+20:this.playerHeaderHeight();return{width:`calc(100% - ${this.documentSideMenuWidth()+n}px)`,height:`calc(var(--vh, 1vh) * 100 - ${r}px)`}},documentViewCanvasZoom(){const{settings:t,slideStore:n}=i.a,r=t.isMobile?0:235;if(!t.isMobile&&bootstrap.defaultDocumentZoom)return bootstrap.defaultDocumentZoom/100;if(t.isEmbedMode&&!e.isFullscreen)return(e.windowSize.width-r-15)/n.width;const a=e.windowSize.width,o=e.windowSize.height;return Math.min((a-30)/n.width,(o-30)/n.height)}})).actions(e=>({setReplayVideo(t){e.isReplayVideo=t},setAutoAdvance(t){e.autoAdvance=t},setReplayPaused(t){e.isReplayPaused=t},setReplayFinished(t){e.isReplayFinished=t},setReplayStarted(t){e.isReplayStarted=t},setBubbleFlip(t){e.bubbleFlip=t},setReplayInterval(t){e.replayInterval=t},resetReplayEvents(){e.replayEvents=Object(d.cloneDeep)(i.a.replayEvents),e.replayTicks=0},resetBubbleSettings(){e.bubbleAzimuth=i.a.replayAzimuth,e.bubbleShape=i.a.replayShape,e.bubbleFrame=i.a.replayFrame,e.bubbleSize=i.a.replaySize,e.replayMouse=i.a.replayMouse},pollReplayEvents(t){const n=[];for(;e.replayEvents.length&&e.replayEvents[0].seconds<=t;)n.push(Object(d.cloneDeep)(e.replayEvents.shift()));return n},incrementReplayTimer:()=>(e.replayTicks++,e.replayTicks),setReplayTimer(t){e.replayTicks=t},setReplayCoordinates(t,n){e.replayMouseX=t,e.replayMouseY=n},setReplayMouse(t){e.replayMouse=t},setVideoReady(t){e.isVideoReady=t},setPlayerContainerRef(t){e.playerContainerEl=t},setCursorIsHidden:t=>{e.isCursorHidden=t},setCurrentPointer:t=>{e.currentPointer=t},setUseCanvasHeightTransition(t){e.useCanvasHeightTransition=t},setCommentsModalOpen(t){e.isCommentsPopupShowed=t,t&&e.isFullscreen&&Object(o.b)()},setShareToolVisibility:t=>{e.isShareToolShown=t},setGridModeState:t=>{e.isGridMode=t},setStudioState:t=>{e.isStudio=t},setBubbleAzimuth(t){e.bubbleAzimuth=t},setBubbleSize(t){e.bubbleSize=t},setBubbleShape(t){e.bubbleShape=t;const n=e.bubbleSize;e.bubbleSize="hidden";const r=e;window.setTimeout(()=>{r.setBubbleSize(n)},1)},setBubbleFrame(t){e.bubbleFrame=t},setFullscreenState:t=>{e.isFullscreen=t,e.isFullscreen&&e.isCommentsPopupShowed&&e.setCommentsModalOpen(!1)},setExpanded:t=>{e.isExpanded=t},setDocumentPageZoom:t=>{e.documentPageZoom=t},setScrollToTarget:t=>{e.scrollToTarget=t},setWindowSize:()=>{e.windowSize={width:document.body.clientWidth,height:window.innerHeight}},setPresentationNotesHeight(t){e.presentationNotesHeight=t},setAutoAdvanceTimer(t){e.autoAdvanceTimer=t},unsetAutoAdvanceTimer(){e.autoAdvanceTimer&&(clearTimeout(e.autoAdvanceTimer),e.autoAdvanceTimer=null)},setBgmNotificationVisibility(t){e.isBgmNotificationShown=t},setInfographicZoom(t){e.infographicZoom=t},setSkrollrInstance(t){e.skrollrInstance=t},setTransitionStatus(t){e.isInTransition=t},setTransitioningToSlode(t){e.slideTransitioningTo=t},setMobileNavigatorVisibility(t){e.isMobileNavigatorShown=t},setBgmEnabledStatus(t){e.isBgmEnabled=t}})).create();if(Object(c.a)({dev:!0})&&(window.playerUiState=h,window.parent))try{window.parent.playerUiState=h}catch(e){}t.a=h},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(1),i=n(648),a=n(144),o=n(754),s=n(227);const l=r.types.model({}).props({parentGroupId:r.types.maybeNull(r.types.late(()=>r.types.safeReference(i.a)))}).volatile(()=>({getDocument:o.a,parseSvg:o.b})).actions(e=>{if(!e.hasBareObjectModal)throw new Error('You are trying to use "PureObjectModel" on a tree that does not contain "BareObjectModel". Most likely \n you need to use "ObjectModel" instead of "PureObjectModel". Otherwise, make sure your model is inherited or composed from/with the "BareObjectModel"');return{}}).views(e=>({get isObjectLinkTarget(){var t;if(!Object(r.isAlive)(e))return!1;const n=e.parentSlide();return Boolean(null==n||null===(t=n.objects)||void 0===t?void 0:t.some(t=>{var n,r,i,a;return"object"===(null===(n=t.link)||void 0===n?void 0:n.type)&&((null===(r=t.link)||void 0===r?void 0:r.target)===e.id||Array.isArray(null===(i=t.link)||void 0===i?void 0:i.target)&&(null===(a=t.link)||void 0===a?void 0:a.target.includes(e.id)))}))}})),c=r.types.compose("ObjectModel",a.c,l),u=Object(s.m)(c)},function(e,t,n){(function(t){var r,i=void 0!==t?t:"undefined"!=typeof window?window:{},a=n(1494);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=r}).call(this,n(105))},function(e,t,n){"use strict";var r=n(55),i=n(23),a=n(12),o=n(69);const s={chartVersion:r.c.VISME_188,shouldOnChangeShowUpdateChartVersionModal:!0,source:"",paletteIndexes:[4,0,0,0,0],dynamicDataLink:"",proportionLock:!1,backgroundColor:"transparent",chartTypes:[i.b.VerticalBar],chartData:[["","Europe","America","Africa"],["series1",10.2,9.8,30.2]],seriesColors:["#A3586D","#5C4A72","#F3B05A","#F4874B","#F46A4E","#36688D","#F3CD05","#F49F05","#F18904","#BDA589","#A7414A","#282726","#6A8A82","#A37C27","#563838","#0444BF","#0584F2","#0AAFF1","#EDF259","#A79674","#6465A5","#6975A6","#F3E96B","#F28A30","#F05837","#ABA6BF","#595775","#583E2E","#F1E0D6","#BF988F","#192E5B","#1D65A6","#72A2C0","#00743F","#F2A104"],headings:{subtitle:"",subtitleColor:a.a.black,subtitleFontFamily:"Arial",subtitleFontSize:14,title:"Title",titleColor:a.a.black,titleFontFamily:"Arial",titleFontSize:18},axes:{isXYValueBasedMode:!1},values:{decimalPrecisions:[0],decimalSeparator:".",prefixes:[""],suffixes:[""],showValues:[!1],showCaptionsOnHover:[!0],areFilledAsPercents:[!1],showPercents:[!1],showCallouts:!1,colors:[a.a.darkerGray],fontFamilies:["Arial"],fontSizes:[16],rotations:[0],positions:[o.i.inside],thousandsSeparator:","},legend:{align:"center",autoFillColor:!0,color:a.a.darkerGray,fontFamily:"Arial",fontSize:14,position:"bottom",shouldShow:!0,showPercent:!1},appearance:{showGrid:!0,graphTypes:["smoothedLine"],startAngle:0,cellLocation:0,showAnimation:!0,showPoints:[!1],stackBars:!1,stackType:"regular",animationType:"bounceInOut"},analytics:{accountId:"",propertyId:"",dateRange:"",profileId:"",reportId:""},surveyMonkey:{surveyId:"",pageId:"",questionId:""},defaultColor:{colors:void 0,seriesColors:void 0,subtitleColor:void 0,textColor:void 0,titleColor:void 0}};t.a=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(7),i=n(37),a=n(583),o=n(32),s=n(35),l=n(70),c=n(66),u=n(473),d=n(19),h=n(8),p=n(57),f=n(18),m=n(14),g=n(4),y=n(2),v=n(34),b=n(76),x=n(68),_=function(e){function t(){var t=e.call(this)||this;return t._childrenByLayout=[],t._childrenDisposers=new l.a,t.hasFocused=!1,t.setStateOnSprites=[],t.layoutInvalid=!1,t._absoluteWidth=0,t._absoluteHeight=0,t._shouldBeReady=[],t._tapToActivate=!1,t.tapTimeout=3e3,t.className="Container",t._element=t.paper.addGroup("g"),t.group.add(t.element),t.setPropertyValue("pixelPerfect",!1),t.setPropertyValue("layout","absolute"),t.setPropertyValue("fixedWidthGrid",!1),t.setPropertyValue("verticalCenter","none"),t.setPropertyValue("horizontalCenter","none"),t._positionPrecision=4,t._disposers.push(new l.b(t._childrenDisposers)),t.children.events.on("inserted",t.handleChildAdded,t),t.children.events.on("removed",t.handleChildRemoved,t),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.handleChildAdded=function(e){this.processChild(e.newValue)},t.prototype.processChild=function(e){try{this._childrenDisposers.insertKey(e.uid,new s.c([e.events.on("transformed",this.handleChildTransform,this),e.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch(e){}this.element&&this.element.add(e.group);e.parent=this,e.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:e}),this.invalidate()},t.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},t.prototype.handleChildRemoved=function(e){var t=e.oldValue;(this._childrenDisposers.removeKey(t.uid),this.element)&&this.element.removeElement(t.group);t.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:t})},t.prototype.handleChildTransform=function(e){e.target.isMeasured&&this.invalidateLayout()},t.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||(this.layoutInvalid=!0,h.c.addToInvalidLayouts(this),b.b.requestFrame())},t.prototype.invalidate=function(){e.prototype.invalidate.call(this),this.invalidateLayout()},t.prototype.deepInvalidate=function(){e.prototype.invalidate.call(this),m.each(this._childrenByLayout,(function(e){e instanceof t?e.deepInvalidate():e.invalidate()})),this.invalidateLayout()},Object.defineProperty(t.prototype,"children",{get:function(){return this._children||(this._children=new o.b),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(e){this.setPropertyValue("minHeight",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),t.prototype.removeElement=function(){},t.prototype.sortChildren=function(){var e=this;if(this._childrenByLayout=[],"none"!=this.layout&&"absolute"!=this.layout&&this.layout){var t=[],n=[];f.each(this.children.iterator(),(function(r){"horizontal"==e.layout||"grid"==e.layout?y.isNumber(r.percentWidth)?n.push(r):t.push(r):"vertical"==e.layout&&y.isNumber(r.percentHeight)?n.push(r):t.push(r)})),this._childrenByLayout=t.concat(n)}else this._childrenByLayout=this.children.values;this.calculateRelativeSize()},t.prototype.calculateRelativeSize=function(){var e=this,t=0,n=0;m.each(this._childrenByLayout,(function(e){e.isMeasured&&(y.isNumber(e.percentWidth)&&(t+=e.percentWidth),y.isNumber(e.percentHeight)&&(n+=e.percentHeight))})),m.each(this._childrenByLayout,(function(r){r.isMeasured&&("horizontal"==e.layout&&(y.isNumber(r.percentWidth)&&(r.relativeWidth=r.percentWidth/t),y.isNumber(r.percentHeight)&&(r.relativeHeight=r.percentHeight/100)),"vertical"==e.layout&&(y.isNumber(r.percentHeight)&&(r.relativeHeight=r.percentHeight/n),y.isNumber(r.percentWidth)&&(r.relativeWidth=r.percentWidth/100)),"grid"==e.layout&&(y.isNumber(r.percentHeight)&&(r.relativeHeight=r.percentHeight/100),y.isNumber(r.percentWidth)&&(r.relativeWidth=r.percentWidth/100))),"absolute"!=e.layout&&r.isMeasured||(y.isNumber(r.percentWidth)&&(r.relativeWidth=r.percentWidth/100),y.isNumber(r.percentHeight)&&(r.relativeHeight=r.percentHeight/100))}))},t.prototype.addChildren=function(){if(this.element){var e=m.copy(this.children.values),t=e.map((function(e,t){return{idx:t,data:e}}));t.sort((function(e,t){var n=e.data.zIndex||0,r=t.data.zIndex||0;return nr?1:e.idx-t.idx})),e=t.map((function(e){return e.data}));var n=this.element,r=!0;if(n.node&&n.node.childNodes)for(var i=0,a=n.node.childNodes.length;i0;){var e=this.children.getIndex(0);e.parent=void 0,this.children.removeValue(e)}},t.prototype.disposeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.dispose(),this.children.removeValue(e)}},Object.defineProperty(t.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(e){this._background&&this.background!=e&&this.removeDispose(this._background),e&&(this._background=e,this._disposers.push(e),this.processBackground())},enumerable:!0,configurable:!0}),t.prototype.handleGlobalScale=function(){e.prototype.handleGlobalScale.call(this),this.children.each((function(e){e.handleGlobalScale()}))},t.prototype.createBackground=function(){return new u.a},t.prototype.processBackground=function(){var e=this._background;e&&(e.isMeasured=!1,this._background.fill=(new p.a).getFor("background"),e.parent=this,e.isMeasured=!1,this.children.removeValue(e),this._disposers.push(e),this.group.addToBack(this._background.group))},t.prototype.validateLayout=function(){var e=this;h.c.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var t=0,n=0,r=!0;this.children&&(this.sortChildren(),m.each(this._childrenByLayout,(function(i){var a,o;if(y.isNumber(i.relativeWidth)?(a=g.round(e._availableWidth*i.relativeWidth,2),"horizontal"==e.layout&&(a-=i.pixelMarginRight+i.pixelMarginLeft)):"horizontal"==e.layout&&i.invalid&&i.validate(),y.isNumber(i.relativeHeight)?(o=g.round(e._availableHeight*i.relativeHeight,2),"vertical"==e.layout&&(o-=i.pixelMarginTop+i.pixelMarginBottom)):"vertical"==e.layout&&i.invalid&&i.validate(),0==i.invalid){if(y.isNumber(i.relativeWidth)&&(i.maxWidth=a),y.isNumber(i.relativeHeight)&&(i.maxHeight=o),i.isMeasured){"horizontal"==e.layout&&(y.isNumber(i.percentWidth)||i.measuredWidth>0&&(e._availableWidth-=i.measuredWidth+i.pixelMarginLeft+i.pixelMarginRight)),"vertical"==e.layout&&(y.isNumber(i.percentHeight)||i.measuredHeight>0&&(e._availableHeight-=i.measuredHeight+i.pixelMarginTop+i.pixelMarginBottom));var s=i.measuredWidth,l=i.measuredHeight;"none"!=i.align&&(s+=i.pixelMarginLeft+i.pixelMarginRight),"none"!=i.valign&&(l+=i.pixelMarginTop+i.pixelMarginBottom),t=Math.max(t,s),n=Math.max(n,l)}}else i.isMeasured&&(y.isNumber(i.relativeWidth)&&i.maxWidth!=a&&(i.maxWidth=a,r=!1),y.isNumber(i.relativeHeight)&&i.maxHeight!=o&&(i.maxHeight=o,r=!1))}))),this._absoluteWidth=t,this._absoluteHeight=n,r&&this.arrange()},t.prototype.arrange=function(){var e,t,n,r,i,a,o,s,l,c,u,h=this,p=this.children,v=0,b=0,x=g.max(this.innerWidth,this._absoluteWidth),_=g.max(this.innerHeight,this._absoluteHeight),w=this.pixelPaddingLeft,S=this.pixelPaddingRight,T=this.pixelPaddingTop,O=this.pixelPaddingBottom,C=0,P=0,E=0,k=0,A=[],j=[],I=this.maxWidth,M=this.maxHeight,D=this.minWidth,N=this.minHeight,R=m.copy(p.values);if(this.reverseOrder&&R.reverse(),"grid"==this.layout){a=I,i=1;for(var L=0,F=R.length;Li&&(i=V)}}a=g.fitToRange(a,1,I),i=g.fitToRange(i,1,I),o=this.fixedWidthGrid?I/i:I/a,o=g.max(1,Math.floor(o)),o=g.min(this.maxColumns,o),A=this.getColumnWidth(R,o,i)}for(L=0,F=R.length;Lg.min(this.innerWidth,I)-J+1&&k=o&&(k=0,P+=j[E],E++,C=0)}"none"!==this.layout&&(B.moveTo({x:H,y:z}),$=H+B.maxLeft-U,K=H+B.maxRight+W,Z=z+B.maxTop-G,Q=z+B.maxBottom+q,(K>t||!y.isNumber(t))&&(t=K),($r||!y.isNumber(r))&&(r=Q),(K>l||!y.isNumber(l))&&(l=K),($u||!y.isNumber(u))&&(u=u))}}if("none"==this.layout){var ee=this.bbox;e=ee.x,t=ee.x+ee.width,n=ee.y,r=ee.y+ee.height}y.isNumber(e)||(e=0,s=0),y.isNumber(t)||(l=t=this._availableWidth),y.isNumber(n)||(n=0,c=0),y.isNumber(r)||(u=r=this._availableHeight),y.isNumber(c)||(c=0),y.isNumber(u)||(u=c),y.isNumber(s)||(s=0),y.isNumber(l)||(l=s),v=t-e,b=r-n,y.isNumber(this.relativeWidth)&&(e=0,t=v=I-w-S),y.isNumber(this.relativeHeight)&&(n=0,r=b=M-T-O),y.isNumber(this._pixelWidth)&&(e=0,v=this._pixelWidth-w-S),y.isNumber(D)&&v0){var re,ie,ae=v,oe=b;ae=-.5&&t<=this.pixelWidth+.5&&n>=-.5&&n<=this.pixelHeight+.5},t.prototype.copyFrom=function(t){var n=this;e.prototype.copyFrom.call(this,t),this.layout=t.layout,this.setStateOnChildren=t.setStateOnChildren,t._background&&(this.background=t._background.clone(),this.background.copyFrom(t._background)),f.each(t.children.iterator(),(function(e){e.shouldClone&&(e.clone().parent=n)}))},Object.defineProperty(t.prototype,"preloader",{get:function(){var e=this._preloader;return e||(this.parent?this.parent.preloader:void 0)},set:function(e){this._preloader&&this.removeDispose(this._preloader),this._preloader=e,e&&(e.parent=this.tooltipContainer,this._disposers.push(e))},enumerable:!0,configurable:!0}),t.prototype.setPaper=function(t){var n=this,r=e.prototype.setPaper.call(this,t);return r&&(this._background&&(this._background.paper=t,this._background.topParent=this.topParent),this.children.each((function(e){e.setPaper(t),e.topParent=n.topParent}))),r},t.prototype.removeFromInvalids=function(){e.prototype.removeFromInvalids.call(this),h.c.removeFromInvalidLayouts(this)},t.prototype.setDataItem=function(t){this._dataItem!=t&&(f.each(this.children.iterator(),(function(e){e.dataItem=t})),this._background&&(this._background.dataItem=t)),e.prototype.setDataItem.call(this,t)},t.prototype.measureElement=function(){this.disabled||this.isTemplate||"none"==this.layout||this.__disabled||this.validateLayout()},Object.defineProperty(t.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(e){this.setPropertyValue("fontFamily",e,!0)&&(this.setSVGAttribute({"font-family":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(e){this.setPropertyValue("fontSize",e,!0)&&(this.setSVGAttribute({"font-size":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),t.prototype.invalidateLabels=function(){this.children.each((function(e){e.hardInvalidate?(e.hardInvalidate(),e.events.once("validated",e.handleValidate,e,!1)):e instanceof t&&e.invalidateLabels()}))},Object.defineProperty(t.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(e){this.setPropertyValue("fontWeight",e),this.setSVGAttribute({"font-weight":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(e){this.setPropertyValue("textDecoration",e),this.setSVGAttribute({"text-decoration":e})},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),e.prototype.dispose.call(this)},t.prototype.setState=function(t,n,r){var i=t;return t instanceof a.a&&(i=t.name),this.setStateOnChildren&&f.each(this.children.iterator(),(function(e){e.setState(i,n,r),"active"!=i&&(e.isActive=!1)})),this._background&&this._background.setState(i),this.setStateOnSprites.length&&m.each(this.setStateOnSprites,(function(e){e.setState(i,n,r)})),e.prototype.setState.call(this,t,n,r)},t.prototype.setActive=function(t){e.prototype.setActive.call(this,t),this._background&&(this._background.isActive=t)},t.prototype.dispatchReady=function(){var t=this;if(!this.isReady()&&!this.isDisposed()){var n=!0;f.eachContinue(this.children.iterator(),(function(e){return!!(e.__disabled||e.disabled||e.isReady())||(n=!1,!1)})),m.eachContinue(this._shouldBeReady,(function(e){return!!(e.__disabled||e.disabled||e.isReady())||(n=!1,!1)})),n?e.prototype.dispatchReady.call(this):h.c.events.once("exitframe",(function(){t.dispatchReady(),b.b.requestFrame()}),void 0,!1)}},t.prototype._systemUpdate=function(t){this.children.each((function(e){e.invalid&&(e._systemCheckIfValidate()?e.dataItem&&e.dataItem.component&&e.dataItem.component.dataInvalid?t.push(e):e.validate():t.push(e))})),e.prototype._systemUpdate.call(this,t)},t.prototype._systemValidatePositions=function(){this.children.each((function(e){e.positionInvalid&&e.validatePosition()})),e.prototype._systemValidatePositions.call(this)},t.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(t.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(e){this._tapToActivate!=e&&this.setTapToActivate(e)},enumerable:!0,configurable:!0}),t.prototype.setTapToActivate=function(e){var t=this;this._tapToActivate=e,this.interactions.isTouchProtected=e,e&&this.interactions.setEventDisposer("container-tapToActivate",e,(function(){return new s.c([t.events.on("hit",t.handleTapToActivate,t,!1),t.events.on("down",t.initTapTimeout,t,!1),t.events.on("track",t.initTapTimeout,t,!1),Object(c.b)().body.events.on("down",(function(e){Object(c.b)().isLocalElement(e.pointer,t.paper.svg,t.uid)||t.handleTapToActivateDeactivation()}),t,!1)])})),Object(c.b)()},t.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},t.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},t.prototype.initTapTimeout=function(){var e=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout((function(){e.handleTapToActivateDeactivation()}),this.tapTimeout))},t.prototype.moveHtmlContainer=function(e){var t=v.q(e);if(t){this.htmlContainer=t;var n=this.svgContainer;n.htmlElement=t,n.htmlElement.appendChild(n.SVGContainer),n.initSensor(),n.measure()}else y.isString(e)&&""!=e&&b.b.log("html container '"+e+"' not found")},t.prototype.hasLicense=function(){if(x.a.commercialLicense)return!0;for(var e=0;e1)&&(e=1),e}function o(e){return e<=1?100*Number(e)+"%":e}function s(e){return 1===e.length?"0"+e:String(e)}n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s}))},function(e,t){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}},,,function(e,t){e.exports={}},function(e,t,n){var r=n(559);e.exports=function(e,t,n){return null==e?e:r(e,t,n)}},function(e,t,n){var r=n(793),i=n(813);e.exports=function(e,t,n){return r(i,e,t,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a}));const r=10,i=180,a=i/2},function(e,t,n){"use strict";function r(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.r(t),n.d(t,"timeUnitDurations",(function(){return i})),n.d(t,"getNextUnit",(function(){return a})),n.d(t,"getDuration",(function(){return o})),n.d(t,"now",(function(){return s})),n.d(t,"getTime",(function(){return l})),n.d(t,"copy",(function(){return c})),n.d(t,"checkChange",(function(){return u})),n.d(t,"add",(function(){return d})),n.d(t,"round",(function(){return h})),n.d(t,"setTimezone",(function(){return p})),n.d(t,"getTimezoneMinutes",(function(){return f}));var r=n(2),i={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function a(e){switch(e){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function o(e,t){return r.hasValue(t)||(t=1),i[e]*t}function s(){return new Date}function l(){return s().getTime()}function c(e){return new Date(e.getTime())}function u(e,t,n,r){e=new Date(e.getTime()),t=new Date(t.getTime());var i=0,o=0;r||"millisecond"==n||(i=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-i),o=t.getTimezoneOffset(),t.setUTCMinutes(t.getUTCMinutes()-o));var s=!1;switch(n){case"year":e.getUTCFullYear()!=t.getUTCFullYear()&&(s=!0);break;case"month":(e.getUTCFullYear()!=t.getUTCFullYear()||e.getUTCMonth()!=t.getUTCMonth())&&(s=!0);break;case"day":(e.getUTCMonth()!=t.getUTCMonth()||e.getUTCDate()!=t.getUTCDate())&&(s=!0);break;case"hour":e.getUTCHours()!=t.getUTCHours()&&(s=!0);break;case"minute":e.getUTCMinutes()!=t.getUTCMinutes()&&(s=!0);break;case"second":e.getUTCSeconds()!=t.getUTCSeconds()&&(s=!0);break;case"millisecond":e.getTime()!=t.getTime()&&(s=!0)}if(s)return!0;var l=a(n);return!!l&&(e.setUTCMinutes(e.getUTCMinutes()+i),t.setUTCMinutes(t.getUTCMinutes()+o),u(e,t,l,r))}function d(e,t,n,r){var i=0;switch(r||"millisecond"==t||(i=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-i)),t){case"day":var a=e.getUTCDate();e.setUTCDate(a+n);break;case"second":var o=e.getUTCSeconds();e.setUTCSeconds(o+n);break;case"millisecond":var s=e.getUTCMilliseconds();e.setUTCMilliseconds(s+n);break;case"hour":var l=e.getUTCHours();e.setUTCHours(l+n);break;case"minute":var c=e.getUTCMinutes();e.setUTCMinutes(c+n);break;case"year":var u=e.getUTCFullYear();e.setUTCFullYear(u+n);break;case"month":var d=e.getUTCMonth();e.setUTCMonth(d+n);break;case"week":var h=e.getUTCDate();e.setUTCDate(h+7*n)}if(!r&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+i),"day"==t||"week"==t||"month"==t||"year"==t)){var p=e.getTimezoneOffset();if(p!=i){var f=p-i;e.setUTCMinutes(e.getUTCMinutes()+f),e.getTimezoneOffset()!=p&&e.setUTCMinutes(e.getUTCMinutes()-f)}}return e}function h(e,t,n,i,a,s,l,c){void 0===l&&(l=0),r.isNumber(n)||(n=1);var u=0;switch(c&&-1!=["day","month","week","year"].indexOf(t)&&(e=p(e,c)),a||"millisecond"==t||(u=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-u)),t){case"day":var d=e.getUTCDate();if(n>1){if(s){s=h(s,"day",1);var f=e.getTime()-s.getTime(),m=Math.floor(f/o("day")/n),g=o("day",m*n);e.setTime(s.getTime()+g-u*o("minute"))}}else e.setUTCDate(d);e.setUTCHours(0,0,0,0);break;case"second":var y=e.getUTCSeconds();n>1&&(y=Math.floor(y/n)*n),e.setUTCSeconds(y,0);break;case"millisecond":if(1==n)return e;var v=e.getUTCMilliseconds();v=Math.floor(v/n)*n,e.setUTCMilliseconds(v);break;case"hour":var b=e.getUTCHours();n>1&&(b=Math.floor(b/n)*n),e.setUTCHours(b,l,0,0);break;case"minute":var x=e.getUTCMinutes();v=e.getUTCMilliseconds(),n>1&&(x=Math.floor(x/n)*n),e.setUTCMinutes(x,0,0);break;case"month":var _=e.getUTCMonth();n>1&&(_=Math.floor(_/n)*n),e.setUTCMonth(_,1),e.setUTCHours(0,l,0,0);break;case"year":var w=e.getUTCFullYear();n>1&&(w=Math.floor(w/n)*n),e.setUTCFullYear(w,0,1),e.setUTCHours(0,l,0,0);break;case"week":var S=e.getUTCDate(),T=e.getUTCDay();r.isNumber(i)||(i=1),S=T>=i?S-T+i:S-(7+T)+i,e.setUTCDate(S),e.setUTCHours(0,l,0,0)}if(!a&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+u),"day"==t||"week"==t||"month"==t||"year"==t)){var O=e.getTimezoneOffset();if(O!=u){var C=O-u;e.setUTCMinutes(e.getUTCMinutes()+C)}}return e}function p(e,t){return new Date(e.toLocaleString("en-US",{timeZone:t}))}function f(e){var t=new Date;return t.setHours(0,0,0,0),p(t,e).getMinutes()}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u}));var r=n(65),i=n(175),a=n.n(i),o=n(747),s=n.n(o);let l;!function(e){e.dispose="dispose",e.none="none",e.validateRawData="validateRawData",e.invalidateRawData="invalidateRawData",e.invalidateData="invalidateData",e.invalidateLabels="invalidateLabels",e.invalidateTitlesLabels="invalidateTitlesLabels",e.invalidateAxesLabels="invalidateAxesLabels",e.invalidateValuesLabels="invalidateValuesLabels",e.invalidateLegendData="invalidateLegendData",e.invalidateLegendLabels="invalidateLegendLabels",e.invalidateDataWithReRunAnimation="invalidateDataWithReRunAnimation",e.validateData="validateData",e.validateDataWithReRunAnimation="validateDataWithReRunAnimation",e.forceReInit="forceReInit"}(l||(l={}));const c={[l.none]:0,[l.validateRawData]:1,[l.invalidateRawData]:2,[l.invalidateData]:3,[l.invalidateLegendData]:3,[l.invalidateLegendLabels]:3,[l.invalidateLabels]:3,[l.invalidateTitlesLabels]:3,[l.invalidateAxesLabels]:3,[l.invalidateValuesLabels]:3,[l.invalidateDataWithReRunAnimation]:4,[l.validateData]:5,[l.validateDataWithReRunAnimation]:6,[l.forceReInit]:7},u={[l.dispose]:"dispose",[l.none]:"none",[l.validateRawData]:"validateRawData",[l.invalidateRawData]:"invalidateRawData",[l.invalidateData]:"invalidateData",[l.invalidateLabels]:"invalidateLabels",[l.invalidateTitlesLabels]:"titles.values[].invalidateLabels",[l.invalidateAxesLabels]:["yAxes.values[].invalidateLabels","xAxes.values[].invalidateLabels"],[l.invalidateValuesLabels]:"series.values[].invalidateLabels",[l.invalidateLegendData]:"legend.invalidateData",[l.invalidateLegendLabels]:"legend.invalidateLabels",[l.invalidateDataWithReRunAnimation]:"invalidateDataWithReRunAnimation",[l.validateData]:"validateData",[l.validateDataWithReRunAnimation]:"validateDataWithReRunAnimation",[l.forceReInit]:"forceReInit"};if(Object(r.a)({dev:!0,qa:!0})){const e=Object.keys(l),t=Object.keys(c),n=Object.keys(u),r=s()(n,e),i=s()(e,n);if(r.length)throw new Error(`@chartInstanceUpdateMethodsMeta::Not synchronized UPDATE_METHODS_NAMES with UPDATE_METHODS_PATHS! Need adding "[${r}]" in UPDATE_METHODS_NAMES `);if(i.length)throw new Error(`@chartInstanceUpdateMethodsMeta::Not synchronized UPDATE_METHODS_NAMES with UPDATE_METHODS_PATHS! Need adding "[${i}]" in UPDATE_METHODS_PATHS`);const o=a()(e,t);if(o.length)throw new Error(`@chartInstanceUpdateMethodsMeta::Every UPDATE_METHODS should be in UPDATE_METHODS_NAMES! Need adding "[${o}]" in UPDATE_METHODS_NAMES`)}},function(e,t,n){var r=n(49)("getOr",n(31));r.placeholder=n(47),e.exports=r},function(e,t,n){"use strict";n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"e",(function(){return c})),n.d(t,"a",(function(){return u}));var r=n(172);let i;!function(e){e[e.VISME_188=0]="VISME_188",e[e.VISME_1816=1]="VISME_1816",e[e.VISME_2400=2]="VISME_2400",e[e.VISME_2448=3]="VISME_2448",e[e.VISME_2914=4]="VISME_2914",e[e.VISME_1747=5]="VISME_1747",e[e.VISME_3020=6]="VISME_3020",e[e.VISME_3693=7]="VISME_3693"}(i||(i={}));const a=r.g?i.VISME_3693:i.VISME_3020,o="IS_CREATING_NEW_CHART",s=370,l=14,c=200;let u;!function(e){e.CategoryAxis="CategoryAxis",e.ValueAxis="ValueAxis",e.DateAxis="DateAxis"}(u||(u={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return M})),n.d(t,"b",(function(){return H})),n.d(t,"c",(function(){return B})),n.d(t,"d",(function(){return V})),n.d(t,"e",(function(){return w})),n.d(t,"f",(function(){return Le})),n.d(t,"g",(function(){return F})),n.d(t,"h",(function(){return C})),n.d(t,"i",(function(){return S})),n.d(t,"j",(function(){return j})),n.d(t,"k",(function(){return x})),n.d(t,"l",(function(){return O})),n.d(t,"m",(function(){return q})),n.d(t,"n",(function(){return v})),n.d(t,"o",(function(){return m})),n.d(t,"p",(function(){return fe})),n.d(t,"q",(function(){return Re})),n.d(t,"r",(function(){return ne})),n.d(t,"s",(function(){return xe})),n.d(t,"t",(function(){return pe})),n.d(t,"u",(function(){return we})),n.d(t,"v",(function(){return Se})),n.d(t,"w",(function(){return ie})),n.d(t,"x",(function(){return me})),n.d(t,"y",(function(){return Oe})),n.d(t,"z",(function(){return ye})),n.d(t,"A",(function(){return K})),n.d(t,"B",(function(){return W})),n.d(t,"C",(function(){return Y})),n.d(t,"D",(function(){return ee})),n.d(t,"E",(function(){return ke})),n.d(t,"F",(function(){return Ae})),n.d(t,"G",(function(){return L})),n.d(t,"H",(function(){return je})),n.d(t,"I",(function(){return $})),n.d(t,"J",(function(){return Me})),n.d(t,"K",(function(){return De})),n.d(t,"L",(function(){return Ne})),n.d(t,"M",(function(){return re})),n.d(t,"N",(function(){return I}));var r=n(84),i=n(75);var a=n(300);function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var s=n(580),l=n(581),c=n(582),u=n(333),d=n(0),h=n(72);function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t-1}function P(e){return C(e)?window.pageYOffset:e.scrollTop}function E(e,t){C(e)?window.scrollTo(0,t):e.scrollTop=t}function k(e,t,n,r){return n*((e=e/r-1)*e*e+1)+t}function A(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x,i=P(e),a=t-i,o=10,s=0;function l(){var t=k(s+=o,i,a,n);E(e,t),sn.bottom?E(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+i,e.scrollHeight)):r.top-i=p)return{placement:"bottom",maxHeight:t};if(S>=p&&!o)return a&&A(l,T,160),{placement:"bottom",maxHeight:t};if(!o&&S>=r||o&&_>=r)return a&&A(l,T,160),{placement:"bottom",maxHeight:o?_-v:S-v};if("auto"===i||o){var C=t,k=o?x:w;return k>=r&&(C=Math.min(k-v-s.controlHeight,t)),{placement:"top",maxHeight:C}}if("bottom"===i)return a&&E(l,T),{placement:"bottom",maxHeight:t};break;case"top":if(x>=p)return{placement:"top",maxHeight:t};if(w>=p&&!o)return a&&A(l,O,160),{placement:"top",maxHeight:t};if(!o&&w>=r||o&&x>=r){var j=t;return(!o&&w>=r||o&&x>=r)&&(j=o?x-b:w-b),a&&A(l,O,160),{placement:"top",maxHeight:j}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(i,'".'))}return c}var U=function(e){return"auto"===e?"bottom":e},W=function(e){var t,n=e.placement,r=e.theme,i=r.borderRadius,a=r.spacing,o=r.colors;return t={label:"menu"},Object(u.a)(t,function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),Object(u.a)(t,"backgroundColor",o.neutral0),Object(u.a)(t,"borderRadius",i),Object(u.a)(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),Object(u.a)(t,"marginBottom",a.menuGutter),Object(u.a)(t,"marginTop",a.menuGutter),Object(u.a)(t,"position","absolute"),Object(u.a)(t,"width","100%"),Object(u.a)(t,"zIndex",1),t},G=Object(d.createContext)({getPortalPlacement:null}),q=function(e){Object(c.a)(n,e);var t=v(n);function n(){var e;Object(s.a)(this,n);for(var r=arguments.length,i=new Array(r),a=0;a.5?c/(2-i-a):c/(i+a),i){case e:o=(t-n)/c+(t1&&(n-=1),n<1/6?e+6*n*(t-e):n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function s(e,t,n){var i,a,s;if(e=Object(r.a)(e,360),t=Object(r.a)(t,100),n=Object(r.a)(n,100),0===t)a=n,s=n,i=n;else{var l=n<.5?n*(1+t):n+t-n*t,c=2*n-l;i=o(c,l,e+1/3),a=o(c,l,e),s=o(c,l,e-1/3)}return{r:255*i,g:255*a,b:255*s}}function l(e,t,n){e=Object(r.a)(e,255),t=Object(r.a)(t,255),n=Object(r.a)(n,255);var i=Math.max(e,t,n),a=Math.min(e,t,n),o=0,s=i,l=i-a,c=0===i?0:l/i;if(i===a)o=0;else{switch(i){case e:o=(t-n)/l+(t{var i,a,o,s,l,c;let u=!1;return e&&["visme4","localhost","127.0.0.1"].includes(null===(i=window)||void 0===i||null===(a=i.location)||void 0===a?void 0:a.hostname)&&(u=!0),n&&["qa.visme.co","qa2.visme.co","qa3.visme.co"].includes(null===(o=window)||void 0===o||null===(s=o.location)||void 0===s?void 0:s.hostname)&&(u=!0),r&&["my.visme.co","release.visme.co"].includes(null===(l=window)||void 0===l||null===(c=l.location)||void 0===c?void 0:c.hostname)&&(u=!0),u};let i,a;r({dev:!0})&&(i=n(1288),a=n(1290));const o=async()=>{if(!r({dev:!0}))return;const[e,t,o,s,l,c,u,d,h,p]=await Promise.all([Promise.resolve().then(n.t.bind(null,24,7)),n.e(72).then(n.t.bind(null,511,7)),n.e(72).then(n.t.bind(null,1985,7)),n(229),Promise.resolve().then(n.bind(null,3)),n.e(51).then(n.bind(null,27)),Promise.resolve().then(n.bind(null,1)),Promise.resolve().then(n.bind(null,15)),Promise.resolve().then(n.bind(null,21)),n.e(65).then(n.bind(null,116))]);Object.assign(window,{axios:e,_:t,initTextMetrics:s.init,helpers:l,chartsHelpers:c,mst:u,mobx:d,gsap:h,tinycolor:p}),Object.assign(window._,{fp:o}),i&&Object.assign(window,{RecursiveIterator:i}),a&&Object.assign(window,{deepObjectDiff:a})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return w})),n.d(t,"b",(function(){return T}));var r=n(7),i=n(82),a=n(32),o=n(132),s=n(35),l=n(977),c=n(978),u=n(70),d=n(979),h=n(34),p=n(203),f=n(76),m=n(68),g=n(167),y=n(4),v=n(14),b=n(18),x=n(2),_=n(52),w=function(e){function t(){var n=e.call(this)||this;return n._globalEventsAdded=!1,n._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},n._usePointerEventsOnly=!1,n._useTouchEventsOnly=!1,n._addHoverEvents=!0,n._passiveSupported=!1,n._delayedEvents={out:[]},n.overObjects=new a.b,n.downObjects=new a.b,n.trackedObjects=new a.b,n.transformedObjects=new a.b,n.pointers=new u.a,n.inertiaOptions=new u.a,n.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},n.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},n.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},n.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},n.mouseOptions={sensitivity:1},n.className="Interaction",n.body=n.getInteraction(document.body),n._disposers.push(n.body),window.hasOwnProperty("PointerEvent")?(n._pointerEvents.pointerdown="pointerdown",n._pointerEvents.pointerup="pointerup",n._pointerEvents.pointermove="pointermove",n._pointerEvents.pointercancel="pointercancel",n._pointerEvents.pointerover="pointerover",n._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(n._pointerEvents.pointerdown="MSPointerDown",n._pointerEvents.pointerup="MSPointerUp",n._pointerEvents.pointermove="MSPointerMove",n._pointerEvents.pointercancel="MSPointerUp",n._pointerEvents.pointerover="MSPointerOver",n._pointerEvents.pointerout="MSPointerOut"):"undefined"!=typeof matchMedia&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(n._addHoverEvents=!1,n._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||n.fullFF()?n._usePointerEventsOnly=!0:n._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?n._pointerEvents.wheel="wheel":x.hasValue(document.onmousewheel)&&(n._pointerEvents.wheel="mousewheel"),n.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:g.polyOut3}),n.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:g.polyOut3}),n._passiveSupported=t.passiveSupported,n.applyTheme(),n}return Object(r.c)(t,e),t.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},t.prototype.debug=function(){},t.prototype.addGlobalEvents=function(){var e=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(Object(h.g)(document,this._pointerEvents.pointerdown,(function(t){e.handleGlobalPointerDown(t)}))),this._disposers.push(Object(h.g)(document,this._pointerEvents.pointermove,(function(t){e.handleGlobalPointerMove(t)}))),this._disposers.push(Object(h.g)(document,this._pointerEvents.pointerup,(function(t){e.handleGlobalPointerUp(t)}))),this._disposers.push(Object(h.g)(document,this._pointerEvents.pointercancel,(function(t){e.handleGlobalPointerUp(t,!0)}))),this._disposers.push(Object(h.g)(document,"mouseenter",(function(t){x.hasValue(t.relatedTarget)||0!=t.buttons&&0!=t.which||e.handleDocumentLeave(t)})))),this._usePointerEventsOnly||(this._disposers.push(Object(h.g)(document,"touchstart",(function(t){e.handleGlobalTouchStart(t)}))),this._disposers.push(Object(h.g)(document,"touchmove",(function(t){e.handleGlobalTouchMove(t)}))),this._disposers.push(Object(h.g)(document,"touchend",(function(t){e.handleGlobalTouchEnd(t)})))),this._disposers.push(Object(h.g)(document,"keydown",(function(t){e.handleGlobalKeyDown(t)}))),this._disposers.push(Object(h.g)(document,"keyup",(function(t){e.handleGlobalKeyUp(t)}))),this._globalEventsAdded=!0)},t.prototype.processClickable=function(e){this.processTouchable(e)},t.prototype.processContextMenu=function(e){e.contextMenuDisabled?e.eventDisposers.hasKey("contextMenuDisabled")||e.eventDisposers.setKey("contextMenuDisabled",Object(h.g)(e.element,"contextmenu",(function(e){e.preventDefault()}))):e.eventDisposers.hasKey("contextMenuDisabled")&&e.eventDisposers.getKey("contextMenuDisabled").dispose()},t.prototype.processHoverable=function(e){var t=this;if(e.hoverable||e.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(e),!e.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&e.eventDisposers.setKey("hoverable",new s.c([Object(h.g)(e.element,this._pointerEvents.pointerout,(function(n){return t.handlePointerOut(e,n)})),Object(h.g)(e.element,this._pointerEvents.pointerover,(function(n){return t.handlePointerOver(e,n)}))])),e.trackable;else{var n=e.eventDisposers.getKey("hoverable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("hoverable"))}this.processTouchable(e)},t.prototype.processMovable=function(e){(e.draggable||e.swipeable||e.trackable||e.resizable)&&(this.isGlobalElement(e)||e.isTouchProtected||this.prepElement(e),this.applyCursorOverStyle(e)),this.processTouchable(e)},t.prototype.processTrackable=function(e){this.processHoverable(e),this.processMovable(e),e.trackable?this.trackedObjects.moveValue(e):this.trackedObjects.removeValue(e)},t.prototype.processDraggable=function(e){this.processMovable(e)},t.prototype.processSwipeable=function(e){this.processMovable(e)},t.prototype.processResizable=function(e){this.processMovable(e)},t.prototype.processWheelable=function(e){var t=this;if(e.wheelable)e.eventDisposers.hasKey("wheelable")||e.eventDisposers.setKey("wheelable",new s.c([Object(h.g)(e.element,this._pointerEvents.wheel,(function(n){return t.handleMouseWheel(e,n)}),!!this._passiveSupported&&{passive:!1}),e.events.on("out",(function(n){e.wheelable&&t.unlockWheel()})),e.events.on("over",(function(n){e.wheelable&&t.lockWheel()}))]));else{var n=e.eventDisposers.getKey("wheelable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("wheelable"))}},t.prototype.processFocusable=function(e){var t=this;if(!0===e.focusable&&e.tabindex>-1&&!this._useTouchEventsOnly)e.eventDisposers.hasKey("focusable")||e.eventDisposers.setKey("focusable",new s.c([Object(h.g)(e.element,"focus",(function(n){return t.handleFocus(e,n)})),Object(h.g)(e.element,"blur",(function(n){return t.handleBlur(e,n)})),Object(h.g)(e.element,this._pointerEvents.pointerdown,(function(n){return t.handleFocusBlur(e,n)})),Object(h.g)(e.element,"touchstart",(function(n){return t.handleFocusBlur(e,n)}),!!this._passiveSupported&&{passive:!1})]));else{var n=e.eventDisposers.getKey("focusable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("focusable"))}},t.prototype.processTouchable=function(e){var t=this;if(e.clickable||e.hoverable||e.trackable||e.draggable||e.swipeable||e.resizable)this.addGlobalEvents(),e.eventDisposers.hasKey("touchable")||(this._useTouchEventsOnly||this._usePointerEventsOnly?this._useTouchEventsOnly?this._usePointerEventsOnly||e.eventDisposers.setKey("touchable",Object(h.g)(e.element,"touchstart",(function(n){return t.handleTouchDown(e,n)}),!!this._passiveSupported&&{passive:!1})):e.eventDisposers.setKey("touchable",Object(h.g)(e.element,this._pointerEvents.pointerdown,(function(n){return t.handlePointerDown(e,n)}))):e.eventDisposers.setKey("touchable",new s.c([Object(h.g)(e.element,this._pointerEvents.pointerdown,(function(n){return t.handlePointerDown(e,n)})),Object(h.g)(e.element,"touchstart",(function(n){return t.handleTouchDown(e,n)}),!!this._passiveSupported&&{passive:!1})])));else{var n=e.eventDisposers.getKey("touchable");null!=n&&(n.dispose(),e.eventDisposers.removeKey("touchable"))}},t.prototype.handleFocus=function(e,t){if(e.focusable){if(e.isFocused=!0,e.events.isEnabled("focus")&&!f.b.isPaused){var n={type:"focus",target:e,event:t};e.events.dispatchImmediately("focus",n)}}else t.preventDefault()},t.prototype.handleFocusBlur=function(e,t){!1!==e.focusable&&this.getHitOption(e,"noFocus")&&e.events.once("focus",(function(){e.events.disableType("blur"),h.h(),e.sprite&&e.sprite.handleBlur(),e.events.enableType("blur")}))},t.prototype.handleBlur=function(e,t){if(e.focusable){if(e.isFocused=!1,e.events.isEnabled("blur")&&!f.b.isPaused){var n={type:"blur",target:e,event:t};e.events.dispatchImmediately("blur",n)}}else t.preventDefault()},t.prototype.handleGlobalKeyDown=function(e){if(this.focusedObject)if(p.b.isKey(e,"esc"))h.h();else if(this.focusedObject.draggable&&p.b.isKey(e,["up","down","left","right"])){e.preventDefault();var t=this.focusedObject;if(t.eventDisposers.hasKey("interactionKeyboardObject"))return;var n=new c.a(t,e);switch(t.eventDisposers.setKey("interactionKeyboardObject",n),p.b.getEventKey(e)){case"up":n.directionY=-1;break;case"down":n.directionY=1;break;case"left":n.directionX=-1;break;case"right":n.directionX=1}}},t.prototype.handleGlobalKeyUp=function(e){if(this.focusedObject){var t=this.focusedObject.eventDisposers.getKey("interactionKeyboardObject");null!=t&&(e.preventDefault(),t.dispose(),this.focusedObject.eventDisposers.removeKey("interactionKeyboardObject")),p.b.isKey(e,"enter")&&this.focusedObject.sprite&&!this.focusedObject.sprite.events.isEnabled("toggled")&&(this.focusedObject.sprite.events.isEnabled("hit")?this.focusedObject.dispatchImmediately("hit"):"hit"==this.focusedObject.sprite.showTooltipOn&&this.focusedObject.dispatchImmediately("up"))}},t.prototype.handleGlobalPointerMove=function(e){var t=this.getPointer(e);if(t.point=this.getPointerPoint(e),this.events.isEnabled("track")&&!f.b.isPaused){var n={type:"track",target:this,event:e,pointer:t,touch:t.touch};this.events.dispatchImmediately("track",n)}this.addBreadCrumb(t,t.point),this.handleGlobalMove(t,e)},t.prototype.handleGlobalPointerDown=function(e){this.processDelayed();var t=this.getPointer(e);if(this.events.isEnabled("down")&&!f.b.isPaused){var n={type:"down",target:this,event:e,pointer:t,touch:t.touch};this.events.dispatchImmediately("down",n)}},t.prototype.preventTouchAction=function(e){e.defaultPrevented||e.preventDefault()},t.prototype.handleGlobalPointerUp=function(e,t){void 0===t&&(t=!1);var n=this.getPointer(e);if(this.events.isEnabled("up")&&!f.b.isPaused){var r={type:"up",target:this,event:e,pointer:n,touch:n.touch};this.events.dispatchImmediately("up",r)}this.handleGlobalUp(n,e,t)},t.prototype.handleGlobalTouchMove=function(e){for(var t=0;t=r-this.getHitOption(e,"doubleHitTime")){if(r-e.lastHit<100)return;if(e.lastHit=void 0,e.lastHitPointer=void 0,e.events.isEnabled("doublehit")&&!f.b.isPaused){var i={type:"doublehit",target:e,point:t.point,event:n,touch:t.touch};e.events.dispatchImmediately("doublehit",i)}}else if(e.lastHit=r,e.lastHitPointer=t,3===t.button){if(e.events.isEnabled("rightclick")&&!f.b.isPaused){i={type:"rightclick",target:e,event:n};e.events.dispatchImmediately("rightclick",i)}}else if(e.events.isEnabled("hit")&&!f.b.isPaused){i={type:"hit",target:e,event:n,point:t.point,touch:t.touch};e.events.dispatchImmediately("hit",i)}},t.prototype.handleOver=function(e,t,n,r){if(void 0===r&&(r=!1),e.hoverable){var i=!1;if(this.shouldCancelHovers(t)&&this.areTransformed()&&this.moved(t,this.getHitOption(e,"hitTolerance"))&&(i=!0,this.cancelAllHovers(n)),this.processDelayed(),e.overPointers.moveValue(t),!e.isRealHover&&(i||(e.isHover=!0,e.isRealHover=!0,this.overObjects.moveValue(e)),this.handleTrack(this.body,t,n,!0),e.events.isEnabled("over")&&!f.b.isPaused&&!i)){var a={type:"over",target:e,event:n,pointer:t,touch:t.touch};e.events.dispatchImmediately("over",a)}}},t.prototype.handleOut=function(e,t,n,r,i){var a=this;if(void 0===r&&(r=!1),void 0===i&&(i=!1),e.hoverable&&(e.overPointers.removeValue(t),e.isHover&&(!e.hasDelayedOut||i))){if(r&&e.overPointers.length)return;if(t.touch&&!i&&!this.old(t)){var o=this.getHoverOption(e,"touchOutBehavior");if("leave"==o)return this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:n,keepUntil:_.getTime()+500}),void(e.hasDelayedOut=!0);if("delay"==o&&this.getHoverOption(e,"touchOutDelay"))return void this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:n,keepUntil:_.getTime()+500,timeout:this.setTimeout((function(){a.handleOut(e,t,n,!0)}),this.getHoverOption(e,"touchOutDelay"))})}if(e.isHover=!1,this.overObjects.removeValue(e),!e.isDisposed()&&e.events.isEnabled("out")&&!f.b.isPaused){var s={type:"out",target:e,event:n,pointer:t,touch:t.touch};e.events.dispatchImmediately("out",s)}e.overPointers.clear(),e.hasDelayedOut=!1}},t.prototype.processDelayed=function(){for(var e;e=this._delayedEvents.out.pop();)e.timeout&&e.timeout.dispose(),this.handleOut(e.io,e.pointer,e.event,!1,!0)},t.prototype.handleDown=function(e,t,n){if(this.maybePreventDefault(e,n,t),e.inert&&this.stopInertia(e),this.handleOver(e,t,n,!0),e.downPointers.moveValue(t),this.applyCursorDownStyle(e,t),e.isDown||(!1!==e.focusable&&this.getHitOption(e,"noFocus")&&this.focusedObject&&h.h(),e.isDown=!0,this.downObjects.moveValue(e),e.draggable&&this.processDragStart(e,t,n),e.resizable&&this.processResizeStart(e,t,n)),e.events.isEnabled("down")&&!f.b.isPaused){var r={type:"down",target:e,event:n,pointer:t,touch:t.touch};e.events.dispatchImmediately("down",r)}},t.prototype.handleGlobalUp=function(e,t,n){var r=this;void 0===n&&(n=!1);var i=this.downObjects.values.slice();i.sort((function(e,t){if(e&&t){var n=e.element.compareDocumentPosition(t.element);return n&Node.DOCUMENT_POSITION_CONTAINED_BY?1:n&Node.DOCUMENT_POSITION_CONTAINS?-1:0}return 0})),v.each(i,(function(i){i&&i.downPointers.contains(e)&&r.handleUp(i,e,t,n)}))},t.prototype.handleDocumentLeave=function(e){var t=this;b.each(this.downObjects.backwards().iterator(),(function(n){n.downPointers.each((function(r){t.handleUp(n,r,e)}))}))},t.prototype.handleUp=function(e,t,n,r){if(void 0===r&&(r=!1),this.restoreCursorDownStyle(e,t),e.downPointers.removeValue(t),(t.touch||this._useTouchEventsOnly)&&this.handleOut(e,t,n,!0),e.isDown){if(0==e.downPointers.length&&(e.isDown=!1,this.downObjects.removeValue(e)),e.events.isEnabled("up")&&!f.b.isPaused){var i={type:"up",target:e,event:n,pointer:t,touch:t.touch};e.events.dispatchImmediately("up",i)}r||(e.swipeable&&this.swiped(e,t)?this.handleSwipe(e,t,n):(e.clickable&&!this.moved(t,this.getHitOption(e,"hitTolerance"))&&this.handleHit(e,t,n),e.inert&&this.moved(t,this.getHitOption(e,"hitTolerance"))?this.handleInertia(e,t):e.draggable&&this.processDragStop(e,t,n),e.resizable&&this.processResizeStop(e,t,n)))}},t.prototype.maybePreventDefault=function(e,t,n){!x.hasValue(t)||!(e.draggable||e.swipeable||e.trackable||e.resizable)||this.isGlobalElement(e)||!1===t.cancelable||e.isTouchProtected&&n&&n.touch||t.preventDefault()},t.prototype.cancelAllHovers=function(e){var t=this;b.each(this.overObjects.backwards().iterator(),(function(n){if(n){var r=n.overPointers.getIndex(0);t.handleOut(n,r,e,!0,!0)}}))},t.prototype.shouldCancelHovers=function(e){return"always"==m.a.disableHoverOnTransform||"touch"==m.a.disableHoverOnTransform&&e.touch},t.prototype.handleGlobalMove=function(e,t){var n=this;if(!e.touch){var r=h.k(e.lastEvent);b.each(this.overObjects.backwards().iterator(),(function(i){if(i&&i.overPointers.contains(e)&&i.hoverable){var a=!1;i.element&&e.lastEvent&&h.i(i.element,r)||(a=!0),a&&n.handleOut(i,e,t,!0)}}))}b.each(this.transformedObjects.backwards().iterator(),(function(r){!r.downPointers.contains(e)||r.swipeable&&n.swiping(r,e)||!r.draggable&&!r.resizable||n.handleTransform(r,t)})),b.each(this.trackedObjects.backwards().iterator(),(function(r){r.overPointers.contains(e)||n.handleTrack(r,e,t)}))},t.prototype.handleTrack=function(e,t,n,r){if(void 0===r&&(r=!1),(r||this.moved(t,0))&&e.events.isEnabled("track")&&!f.b.isPaused){var i={type:"track",target:e,event:n,point:t.point,pointer:t,touch:t.touch};e.events.dispatchImmediately("track",i)}},t.prototype.handleSwipe=function(e,t,n){if(e.events.isEnabled("swipe")&&!f.b.isPaused){var r={type:"swipe",target:e,event:n,touch:t.touch};e.events.dispatchImmediately("swipe",r)}if(t.startPoint.x0?e.events.isEnabled("swiperight")&&!f.b.isPaused&&e.events.dispatchImmediately("wheelright",{type:"wheelright",target:e,event:i,point:t.point,shift:a}):r<0?e.events.isEnabled("wheelup")&&!f.b.isPaused&&e.events.dispatchImmediately("wheelup",{type:"wheelup",target:e,event:i,point:t.point,shift:a}):r>0&&e.events.isEnabled("wheeldown")&&!f.b.isPaused&&e.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:e,event:i,point:t.point,shift:a})},t.prototype.handleInertia=function(e,t){e.draggable&&0===e.downPointers.length&&this.handleMoveInertia(e,t),e.resizable&&e.downPointers.length>1&&this.handleResizeInertia(e,t)},t.prototype.handleMoveInertia=function(e,t){var n=e,r={x:t.point.x,y:t.point.y},i={x:t.startPoint.x,y:t.startPoint.y},a=new d.a(n,"move",r,i),s=this.getTrailPoint(t,_.getTime()-this.getInertiaOption(e,"move","time"));if(void 0!==s){var l=this.getInertiaOption(e,"move","factor"),c=[{to:t.point.x+(t.point.x-s.point.x)*l,property:"x"},{to:t.point.y+(t.point.y-s.point.y)*l,property:"y"}],u=new o.a(a,c,this.getInertiaOption(e,"move","duration"),this.getInertiaOption(e,"move","easing")).start();this._disposers.push(u.events.on("animationended",(function(e){a.done()}))),e.inertias.setKey("move",a)}else this.processDragStop(e,t,t.lastUpEvent)},t.prototype.handleResizeInertia=function(e,t){},t.prototype.handleTransform=function(e,t){var n,r,i,a=e.downPointers.getIndex(0),o=null,s=null;a&&(o=a.point,s=a.startPoint),i=r={x:e.originalPosition.x,y:e.originalPosition.y};for(var l=!0,c=1;cn-this.getSwipeOption(e,"time"))},t.prototype.swiped=function(e,t){var n=_.getTime();return!t.swipeCanceled&&(Math.abs(t.startPoint.x-t.point.x)>this.getSwipeOption(e,"horizontalThreshold")&&Math.abs(t.startPoint.y-t.point.y)n-this.getSwipeOption(e,"time"))},t.prototype.applyCursorOverStyle=function(e){var t=e.cursorOptions;if(x.hasValue(t.overStyle))for(var n=0;nt||Math.abs(r.y)>t},t.prototype.old=function(e,t){return void 0===t&&(t=300),_.getTime()-e.startTime>t},t.prototype.getShift=function(e){return{x:e.startPoint.x-e.point.x,y:e.startPoint.y-e.point.y}},t.prototype.getTrailPoint=function(e,t){for(var n,r=0;r=t){n=e.track[r];break}return n},t.prototype.pointerExists=function(e,t){var n=!1;return e.each((function(e){e!=t&&(n=e.point.x==t.point.x&&e.point.y==t.point.y)})),n},t.prototype.getInteraction=function(e){return new l.a(e)},t.prototype.setTemporaryStyle=function(e,t,n){var r=e.element;x.hasValue(r.style[t])&&!e.replacedStyles.hasKey(t)&&e.replacedStyles.setKey(t,r.style[t]),h.y(r,t,n)},t.prototype.restoreStyle=function(e,t){e.replacedStyles.hasKey(t)?(e.element.style[t]=e.replacedStyles.getKey(t),e.replacedStyles.removeKey(t)):delete e.element.style[t]},t.prototype.restoreAllStyles=function(e){b.each(e.replacedStyles.iterator(),(function(t){var n=t[0],r=t[1];e.element.style[n]=r,e.replacedStyles.removeKey(n)}))},t.prototype.dispose=function(){this.isDisposed()||(e.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},t.prototype.log=function(e,t,n){if(t.changedTouches)for(var r=0;r0},t.prototype.logTouch=function(e,t,n){console.log(e+" "+t+" touch "+n.identifier)},Object.defineProperty(t,"passiveSupported",{get:function(){var e=this;if(null==this._passiveSupported)try{var t=Object.defineProperty({},"passive",{get:function(){e._passiveSupported=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch(e){this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),t}(i.b),S=null;function T(){return null==S&&(S=new w),S}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,autoDispose:!1,licenses:[],suppressErrors:!1,suppressWarnings:!1,animationsEnabled:!0,nonce:"",deferredDelay:100,disableHoverOnTransform:"never",pixelPerfectPrecision:0}},function(e,t,n){"use strict";n.d(t,"f",(function(){return d})),n.d(t,"i",(function(){return h})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return f})),n.d(t,"h",(function(){return m})),n.d(t,"a",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return b}));var r=n(65),i=n(96),a=n.n(i),o=n(90),s=n.n(o);const l=Object(r.a)({dev:!0});let c=!1;const u=e=>a()(e)?e:e.value,d=["left","right","top","bottom"];let h;!function(e){e.top="top",e.bottom="bottom",e.middle="middle",e.inside="inside",e.left="left",e.right="right"}(h||(h={}));const p=["left","center","right"],f=["regular",{label:"100%",value:"100%"}],m=["regular","100%"];if(c=l&&!s()(f.map(u),m),c)throw new Error("chartSchema.allowedValues::Something wrong with stackBars!");const g=["linear",{label:"Bounce",value:"bounceInOut"},{label:"Elastic",value:"elasticInOut"},{label:"Ease Out Sine",value:"sinOut"},{label:"Ease In Sine",value:"sinIn"}],y=["linear","bounceInOut","elasticInOut","sinOut","sinIn"];if(c=l&&!s()(g.map(u),y),c)throw new Error("chartSchema.allowedValues::Something wrong with animationTypes!");const v=[{label:"Smooth Line",value:"smoothedLine"},"line","step"],b=["smoothedLine","line","step"];if(c=l&&!s()(v.map(u),b),c)throw new Error("chartSchema.allowedValues::Something wrong with graphTypes!")},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return u})),n.d(t,"c",(function(){return d}));var r=n(7),i=n(35),a=n(193),o=n(28),s=n(18),l=n(327),c=function(e){function t(t){var n=t.events.on("removed",(function(e){e.oldValue.dispose()}),void 0,!1);return e.call(this,(function(){n.dispose(),s.each(t.iterator(),(function(e){e[1].dispose()}))}))||this}return Object(r.c)(t,e),t}(i.b),u=function(){function e(){this.events=new a.a,this._dictionary={}}return e.prototype.hasKey=function(e){return o.hasKey(this._dictionary,e)},e.prototype.getKey=function(e){return this._dictionary[e]},e.prototype.insertKey=function(e,t){if(o.hasKey(this._dictionary,e))throw new Error("Key "+e+" already exists in dictionary");this._dictionary[e]=t,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:e,newValue:t})},e.prototype.setKey=function(e,t){if(o.hasKey(this._dictionary,e)){var n=this._dictionary[e];n!==t&&(this._dictionary[e]=t,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:e,oldValue:n,newValue:t}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:n}))}else this._dictionary[e]=t,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:e,newValue:t})},e.prototype.updateKey=function(e,t){if(!o.hasKey(this._dictionary,e))throw new Error("Key "+e+" doesn't exist in dictionary");var n=this._dictionary[e],r=t(n);n!==r&&(this._dictionary[e]=r,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:e,oldValue:n,newValue:r}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:n}))},e.prototype.removeKey=function(e){if(o.hasKey(this._dictionary,e)){var t=this._dictionary[e];delete this._dictionary[e],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:e,oldValue:t}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t})}},e.prototype.insertKeyIfEmpty=function(e,t){return this.hasKey(e)||this.insertKey(e,t()),this.getKey(e)},e.prototype.clear=function(){var e=this;this.events.isEnabled("removed")&&o.each(this._dictionary,(function(t,n){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:n})})),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},e.prototype.copyFrom=function(e){var t=this;s.each(e.iterator(),(function(e){t.setKey(e[0],e[1])}))},e.prototype.iterator=function(){return o.entries(this._dictionary)},e.prototype[Symbol.iterator]=function(){var e,t,n,i;return Object(r.d)(this,(function(r){switch(r.label){case 0:for(t in e=[],this._dictionary)e.push(t);n=0,r.label=1;case 1:return n{const l=r=>{let i,a=[];e?i=e.current:"function"==typeof t&&(i=t()),"function"==typeof o&&(a=[...o()].filter(Boolean)),!i||i.contains(r.target)||a.some(e=>null==e?void 0:e.contains(r.target))||n(r)};Object(r.useEffect)(()=>{if(i){if(s){const e=Object(a.addEventListener)(document,"mousedown",l,!0),t=Object(a.addEventListener)(document,"touchstart",l,!0);return()=>{e(),t()}}return Object(a.addEventListener)(document,"mousedown",l,!0)}})};t.a=({children:e,elementRef:t,callBack:n,isListening:a=!0,useTouch:s=!1,getNotExternalElements:l})=>{const c=Object(r.useRef)(null);return o({elementRef:t||c,callBack:n,isListening:a,useTouch:s,getNotExternalElements:l}),i.a.createElement("div",{style:{display:"contents"},ref:c},e)}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}}(),e.exports=n(610)},function(e,t,n){"use strict";n.d(t,"b",(function(){return f})),n.d(t,"a",(function(){return m}));var r=n(7),i=n(346),a=n(240),o=n(35),s=n(8),l=n(646),c=n(4),u=n(18),d=n(28),h=n(2),p=n(13),f=function(e){function t(){var t=e.call(this)||this;return t.className="ValueAxisDataItem",t.values.value={},t.values.endValue={},t.applyTheme(),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(e){this.setValue("endValue",e)},enumerable:!0,configurable:!0}),t}(i.b),m=function(e){function t(){var t=e.call(this)||this;return t._stepDecimalPlaces=0,t._prevStepDecimalPlaces=0,t._adjustLabelPrecision=!0,t._baseValue=0,t._adjustedStart=0,t._adjustedEnd=1,t._extremesChanged=!1,t._deltaMinMax=1,t._dsc=!1,t.calculateTotals=!1,t.className="ValueAxis",t.axisFieldName="value",t.setPropertyValue("maxZoomFactor",1e3),t.setPropertyValue("extraMin",0),t.setPropertyValue("extraMax",0),t.setPropertyValue("strictMinMax",!1),t.setPropertyValue("maxPrecision",Number.MAX_VALUE),t.setPropertyValue("adjustLabelPrecision",!0),t.setPropertyValue("extraTooltipPrecision",0),t.keepSelection=!1,t.includeRangesInMinMax=!1,t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.fillRule=function(e){var t=e.value,n=e.component;e.axisFill.disabled||(c.round(t/n.step/2,5)==Math.round(t/n.step/2)?e.axisFill.__disabled=!0:e.axisFill.__disabled=!1)},t.prototype.createDataItem=function(){return new f},t.prototype.createAxisBreak=function(){return new l.a},t.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(0!=this._start&&this.dispatchImmediately("startchanged"),1!=this._end&&this.dispatchImmediately("endchanged"),0==this._start&&1==this._end||this.dispatchImmediately("startendchanged")):0==this._start&&1==this._end||(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},t.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var e=this.series.getIndex(0),t=e.startIndex;if(e.dataItems.length>0){t>0&&t--;var n=e.endIndex;n1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E):0==(t=Math.floor(this.minZoomed/this._step)*this._step)&&(t=this.minZoomed);else t=Math.floor(t/this._step)*this._step;var n=this._maxZoomed+this._step;this.resetIterators();var r=this._dataItemsIterator;if(0==this._step)return;this._step=this.fixSmallStep(this._step);var i=0,a=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;t<=n;){if(!this.isInBreak(t)){var o=r.find((function(e){return e.value===t}));o.__disabled&&(o.__disabled=!1),this.appendDataItem(o),o.axisBreak=void 0,(o.value!=t||a)&&(o.value=t,o.text=this.formatLabel(t),o.label&&o.label.invalid&&o.label.validate(),o.value>=this.min&&o.value<=this.max&&o.label&&("Y"==this.axisLetter&&o.label.measuredWidth>this.ghostLabel.measuredWidth||"X"==this.axisLetter&&o.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=o.label.currentText,this.ghostLabel.validate())),this.validateDataElement(o)}i++;var s=t;if(this.logarithmic)Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E>1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E+i):t+=this._step;else t+=this._step;var l=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(l<1){var d=Math.round(Math.abs(Math.log(Math.abs(l))*Math.LOG10E))+2;if(d=Math.min(13,d),s==(t=c.round(t,d))){t=n;break}}}var p=this._axisBreaks;if(p){var f=this.renderer;u.each(p.iterator(),(function(t){if(t.breakSize>0&&c.getDistance(t.startPoint,t.endPoint)>f.minGridDistance)for(var n=t.adjustedMin;n<=t.adjustedMax;){if(n>=t.adjustedStartValue&&n<=t.adjustedEndValue){var i=r.find((function(e){return e.value===n}));i.__disabled&&(i.__disabled=!1),e.appendDataItem(i),i.axisBreak=t,i.value!=n&&(i.value=n,i.text=e.formatLabel(n),i.label&&i.label.invalid&&i.label.validate()),e.validateDataElement(i)}n+=t.adjustedStep}}))}}},t.prototype.validateDataElement=function(t){e.prototype.validateDataElement.call(this,t),t.itemIndex=this._axisItemCount,this._axisItemCount++;var n=this.renderer,r=t.value,i=t.endValue,a=this.valueToPosition(r);t.position=a;var o=a,s=this.valueToPosition(r+this._step);h.isNumber(i)&&(s=o=this.valueToPosition(i)),t.point=n.positionToPoint(a);var l=t.tick;l&&!l.disabled&&n.updateTickElement(l,a,o);var c=t.grid;c&&!c.disabled&&n.updateGridElement(c,a,o);var u=t.label;u&&!u.disabled&&n.updateLabelElement(u,a,o);var d=t.axisFill;d&&!d.disabled&&(n.updateFillElement(d,a,s),t.isRange||this.fillRule(t)),t.bullet&&n.updateBullet(t.bullet,a,o);var p=t.mask;p&&n.updateFillElement(p,a,s)},t.prototype.formatLabel=function(e){return this.adjustLabelPrecision&&0!=e?this.numberFormatter.format(e,void 0,this._stepDecimalPlaces):this.numberFormatter.format(e)},Object.defineProperty(t.prototype,"basePoint",{get:function(){var e=this.baseValue,t=this.valueToPosition(e);return this.renderer.positionToPoint(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"baseValue",{get:function(){var e=this._baseValue;return this.logarithmic&&(e=this.min),this._adapterO?this._adapterO.apply("baseValue",e):e},set:function(e){this._baseValue=e,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),t.prototype.anyToPosition=function(e){return this.valueToPosition(e)},t.prototype.valueToPoint=function(e){var t=this.valueToPosition(e),n=this.renderer.positionToPoint(t),r=this.renderer.positionToAngle(t);return{x:n.x,y:n.y,angle:r}},t.prototype.anyToPoint=function(e){return this.valueToPoint(e)},t.prototype.valueToPosition=function(e){if(h.isNumber(e)){var t=this.min,n=this.max;if(h.isNumber(t)&&h.isNumber(n)){var r=this._difference,i=this._axisBreaks;i&&i.length>0&&u.eachContinue(i.iterator(),(function(r){var i=r.adjustedStartValue,a=r.adjustedEndValue;if(h.isNumber(i)&&h.isNumber(a)){if(ea?t+=(a-i)*(1-o):e0&&u.eachContinue(a.iterator(),(function(a){var o=a.startPosition,s=a.endPosition,l=a.adjustedStartValue,u=a.adjustedEndValue;if(h.isNumber(l)&&h.isNumber(u)){if(l>n)return!1;if(c.intersect({start:l,end:u},{start:t,end:n})){l=c.max(l,t),u=c.min(u,n);var d=a.breakSize;if(r-=(u-l)*(1-d),e>s)t+=(u-l)*(1-d);else if(!(en&&(n=a)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(e){if(!e.ignoreMinMax){var r=c.min(e.value,e.endValue),i=c.max(e.value,e.endValue);(rn||!h.isNumber(n))&&(n=i)}}))),this.logarithmic){var r=this.treatZeroAs;h.isNumber(r)&&t<=0&&(t=r),t<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(0==t&&0==n&&(n=.9,t=-.9),h.isNumber(this._minDefined)&&(t=this._minDefined),h.isNumber(this._maxDefined)&&(n=this._maxDefined),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(n=this._adapterO.apply("max",n)),h.isNumber(t)&&h.isNumber(n)){this._minReal=t,this._maxReal=n,t==Number.POSITIVE_INFINITY&&(t=void 0),n==Number.NEGATIVE_INFINITY&&(n=void 0);var i=this.adjustDifference(t,n);if(t=this.fixMin(t),(n=this.fixMax(n))-t<=1/Math.pow(10,15)){if(n-t!=0)this._deltaMinMax=(n-t)/2;else{var a=Math.log(Math.abs(n))*Math.LOG10E,o=Math.pow(10,Math.floor(a));o/=10,this._deltaMinMax=o}t-=this._deltaMinMax,n+=this._deltaMinMax}t-=(n-t)*this.extraMin,n+=(n-t)*this.extraMax;var s=this.strictMinMax;h.isNumber(this._maxDefined)&&(s=!0);var l=this.adjustMinMax(t,n,i,this._gridCount,s);if(t=l.min,i=(n=l.max)-t,l=this.adjustMinMax(t,n,n-t,this._gridCount,!0),t=l.min,n=l.max,this.strictMinMax&&(t=h.isNumber(this._minDefined)?this._minDefined:this._minReal,(n=h.isNumber(this._maxDefined)?this._maxDefined:this._maxReal)-t<=1e-8&&(t-=this._deltaMinMax,n+=this._deltaMinMax),t-=(n-t)*this.extraMin,n+=(n-t)*this.extraMax),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(n=this._adapterO.apply("max",n)),this._step=l.step,h.isNumber(t)||h.isNumber(n)||(this.start=0,this.end=1,this.renderer.labels.each((function(e){e.dataItem.text=""}))),(this._minAdjusted!=t||this._maxAdjusted!=n)&&h.isNumber(t)&&h.isNumber(n)){var u=this._minMaxAnimation;if(this._extremesChanged&&h.isNumber(this._minAdjusted)&&h.isNumber(this._maxAdjusted)&&this.inited){if(u&&!u.isFinished()&&this._finalMax==n&&this._finalMin==t)return;this._finalMin=t,this._finalMax=n,(u=this.animateMinMax(t,n))&&!u.isFinished()?(u.events.on("animationprogress",this.validateDataItems,this),u.events.on("animationended",(function(){e.series.each((function(e){e.validate()})),e.validateDataItems(),e.handleSelectionExtremesChange()})),this._minMaxAnimation=u):this.series.each((function(e){e.invalidate()})),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(u&&!u.isFinished()&&this._finalMax==n&&this._finalMin==t)return;this._minAdjusted=t,this._maxAdjusted=n,this._finalMin=t,this._finalMax=n,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged")}}this._extremesChanged=!1,this._difference=this.adjustDifference(t,n)}},t.prototype.fixMin=function(e){return e},t.prototype.fixMax=function(e){return e},t.prototype.adjustMinMax=function(e,t,n,r,i){r<=1&&(r=1),r=Math.round(r);var a=e,o=t;0===n&&(n=Math.abs(t));var s=Math.log(Math.abs(n))*Math.LOG10E,l=Math.pow(10,Math.floor(s)),u=l/=10;i&&(u=0),this.logarithmic?(e<=0&&(e=this.baseValue),e==1/0&&(e=1),t==-1/0&&(t=10),this.strictMinMax?(e=this._minDefined>0?this._minDefined:e,this._maxDefined>0&&(t=t)):(e=Math.pow(10,Math.floor(Math.log(Math.abs(e))*Math.LOG10E)),t=Math.pow(10,Math.ceil(Math.log(Math.abs(t))*Math.LOG10E)))):(i?(e=Math.floor(e/l)*l,t=Math.ceil(t/l)*l):(e=Math.ceil(e/l)*l-u,t=Math.floor(t/l)*l+u),e<0&&a>=0&&(e=0),t>0&&o<=0&&(t=0)),s=Math.log(Math.abs(n))*Math.LOG10E,l=Math.pow(10,Math.floor(s)),l/=10;var d=Math.ceil(n/r/l)*l,h=Math.pow(10,Math.floor(Math.log(Math.abs(d))*Math.LOG10E)),p=Math.ceil(d/h);p>5?p=10:p<=5&&p>2&&(p=5),d=Math.ceil(d/(h*p))*h*p,this.maxPrecisiona&&(e-=d)}return{min:e,max:t,step:d}},Object.defineProperty(t.prototype,"min",{get:function(){var e=this._minAdjusted;return h.isNumber(e)||(e=this._minDefined),e},set:function(e){this._minDefined!=e&&(this._minDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(e){this.setPropertyValue("extraMin",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(e){this.setPropertyValue("extraMax",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){var e=this._maxAdjusted;return h.isNumber(e)||(e=this._maxDefined),e},set:function(e){this._maxDefined!=e&&(this._maxDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(e){this.setPropertyValue("adjustLabelPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),t.prototype.registerSeries=function(t){return new o.c([e.prototype.registerSeries.call(this,t),t.events.on("extremeschanged",this.handleExtremesChange,this,!1),t.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",t.invalidate,t,!1)])},t.prototype.handleSelectionExtremesChange=function(){var e,t,n=this,r=!0;if(u.each(this.series.iterator(),(function(i){if(!i.ignoreMinMax&&!i.isHidden&&!i.outOfRange){i.visible&&!i.isHiding&&(r=!1);var a=i.selectionMin(n),o=i.selectionMax(n);h.isNumber(a)&&(!h.isNumber(e)||at)&&(t=o)}})),this.includeRangesInMinMax&&this.axisRanges.each((function(n){if(!n.ignoreMinMax){var r=c.min(n.value,n.endValue),i=c.max(n.value,n.endValue);rt&&(t=i)}})),h.isNumber(this._minDefined)?e=this.strictMinMax?this._minDefined:this.min:this.strictMinMax&&(e=this._minReal),h.isNumber(this._maxDefined)?t=this.strictMinMax?this._maxDefined:this.max:this.strictMinMax&&(t=this._maxReal),e==t){e-=this._deltaMinMax,t+=this._deltaMinMax;var i=this.adjustMinMax(e,t,0,this._gridCount,this.strictMinMax);e=i.min,t=i.max}var a=this.adjustDifference(e,t),o=this.adjustMinMax(e,t,a,this._gridCount);e=o.min,t=o.max,e-=(t-e)*this.extraMin,t+=(t-e)*this.extraMax,e=c.fitToRange(e,this.min,this.max),t=c.fitToRange(t,this.min,this.max),a=this.adjustDifference(e,t),o=this.adjustMinMax(e,t,a,this._gridCount,!0),e=o.min,t=o.max,this.strictMinMax&&(e=c.max(e,this._minDefined),t=c.min(t,this._maxDefined));var s=o.step;this.syncWithAxis&&(o=this.syncAxes(e,t,s),e=o.min,t=o.max,this.invalidate()),s=o.step,this._difference=this.adjustDifference(this.min,this.max);var l=this.valueToPosition(e),d=this.valueToPosition(t);r&&!this.syncWithAxis&&(l=0,d=1);var p=0;this.syncWithAxis?(p=5,this.setCache(e+"-"+t,s)):(this._step==s&&this._minZoomed==e&&this._maxZoomed==t||(this._dsc=!0),this._step=s,this._minZoomed=e,this._maxZoomed=t),this.keepSelection||this.zoom({start:l,end:d},!1,!1,p)},Object.defineProperty(t.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(e){this.setPropertyValue("strictMinMax",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(e){this.setPropertyValue("logarithmic",e)&&(this.invalidate(),this.series.each((function(e){e.invalidateDataItems()})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(e){this.setPropertyValue("keepSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(e){this.setPropertyValue("includeRangesInMinMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(e){this.setPropertyValue("maxPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(e){this.setPropertyValue("extraTooltipPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),t.prototype.handleExtremesChange=function(){var e=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){this.dataItems.each((function(t){t.label&&t.label.pixelWidth>0&&(e.ghostLabel.text=t.label.currentText)}))}},t.prototype.getX=function(e,t,n,r,i){return this.renderer.positionToPoint(this.getPositionX(e,t,n,r,i)).x},t.prototype.getPositionX=function(e,t,n,r,i){var a=e.getWorkingValue(t);h.hasValue(r)||(r="valueX");var o=e.getValue(r,"stack");h.isNumber(a)||(a=this.baseValue,this.logarithmic&&o>0&&(a=0));var s=this.valueToPosition(a+o);return i&&(s=c.fitToRange(s,i.start,i.end)),s},t.prototype.getY=function(e,t,n,r,i){return this.renderer.positionToPoint(this.getPositionY(e,t,n,r,i)).y},t.prototype.getPositionY=function(e,t,n,r,i){var a=e.getWorkingValue(t);h.hasValue(r)||(r="valueY");var o=e.getValue(r,"stack");h.isNumber(a)||(a=this.baseValue,this.logarithmic&&o>0&&(a=0));var s=this.valueToPosition(a+o);return i&&(s=c.fitToRange(s,i.start,i.end)),s},t.prototype.getAngle=function(e,t,n,r,i){var a=e.getWorkingValue(t),o=e.getValue(r,"stack");h.isNumber(a)||(a=this.baseValue);var s=this.valueToPosition(a+o);return i&&(s=c.fitToRange(s,i.start,i.end)),this.positionToAngle(s)},t.prototype.getAnyRangePath=function(e,t,n){var r=this.valueToPosition(e),i=this.valueToPosition(t);return this.getPositionRangePath(r,i)},t.prototype.getTooltipText=function(e){var t=c.round(this.positionToValue(e),this._stepDecimalPlaces+this.extraTooltipPrecision),n=this.tooltip.numberFormatter.format(t);return this._adapterO?this._adapterO.apply("getTooltipText",n):n},t.prototype.zoomToValues=function(e,t,n,r){var i=(e-this.min)/(this.max-this.min),a=(t-this.min)/(this.max-this.min);this.zoom({start:i,end:a},n,r)},Object.defineProperty(t.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:c.max(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:c.min(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),t.prototype.fixAxisBreaks=function(){var t=this;e.prototype.fixAxisBreaks.call(this);var n=this._axisBreaks;n&&n.length>0&&n.each((function(e){var n=e.adjustedStartValue,r=e.adjustedEndValue,i=r-n,a=Math.ceil(i*e.breakSize)*t._gridCount/(t.max-t.min),o=t.adjustMinMax(n,r,i,a,!0);e.adjustedStep=o.step,e.adjustedMin=o.min,e.adjustedMax=o.max})),this._difference=this.adjustDifference(this.min,this.max)},t.prototype.getPositionLabel=function(e){var t=this.positionToValue(e);return this.numberFormatter.format(t)},t.prototype.showTooltipAt=function(e){this.showTooltipAtPosition(this.valueToPosition(e))},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.min=t.min,this.max=t.max,this.calculateTotals=t.calculateTotals,this._baseValue=t.baseValue},Object.defineProperty(t.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(e){var t=this;this.setPropertyValue("syncWithAxis",e,!0)&&e&&(this._disposers.push(e.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("startendchanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",(function(){t.clearCache(),t._disposers.push(s.c.events.once("exitframe",(function(){t.handleSelectionExtremesChange()})))}),this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(e){this.setPropertyValue("treatZeroAs",e,!0)},enumerable:!0,configurable:!0}),t.prototype.syncAxes=function(e,t,n){var r=this.syncWithAxis;if(r){h.isNumber(e)||(e=this.min),h.isNumber(t)||(t=this.max),h.isNumber(n)||(n=this._step);var i=Math.round((r.maxZoomed-r.minZoomed)/r.step),a=Math.round((t-e)/n);if(h.isNumber(i)&&h.isNumber(a))for(var o=!1,s=0,l=.01*(t-e),c=e,u=t,d=n;1!=o;)if(o=this.checkSync(c,u,d,i),++s>1e3&&(o=!0),o)e=c,t=u,n=d;else{s/3==Math.round(s/3)?(c=e-l*s,e>=0&&c<0&&(c=0)):(u=t+l*s)<=0&&u>0&&(u=0);var p=this.adjustMinMax(c,u,u-c,this._gridCount,!0);c=p.min,u=p.max,d=p.step}}return{min:e,max:t,step:n}},t.prototype.checkSync=function(e,t,n,r){for(var i=(t-e)/n,a=1;ai.a.createElement(a.Provider,{value:t},e),s=()=>Object(r.useContext)(a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return h})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return s})),n.d(t,"d",(function(){return c}));var r=n(0),i=(n(735),n(220)),a=(n(1651),n(734),n(694),n(591)),o=n(657);var s=function(e,t){var n=arguments;if(null==t||!i.e.call(t,"css"))return r.createElement.apply(void 0,n);var a=n.length,o=new Array(a);o[0]=i.b,o[1]=Object(i.d)(e,t);for(var s=2;s0;){var l=(c=i[0]).dataProvider;if(c.isDisposed())o.remove(i,c);else if(l&&l.dataInvalid)try{if(l.validateData(),l.dataValidationProgress<1)break}catch(e){o.remove(i,l),l.raiseCriticalError(e)}else try{if(c.validateData(),c.dataValidationProgress<1)break}catch(e){o.remove(i,c),c.raiseCriticalError(e)}}if(Date.now()-t>this.updateStepDuration)break}for(;r.c.invalidRawDatas.length>0;){if((c=r.c.invalidRawDatas[0]).isDisposed())o.remove(r.c.invalidRawDatas,c);else try{c.validateRawData()}catch(e){o.remove(r.c.invalidRawDatas,c),c.raiseCriticalError(e)}}for(;r.c.invalidDataItems.length>0;){l=(c=r.c.invalidDataItems[0]).dataProvider;if(c.isDisposed()||c.dataInvalid||l&&l.dataInvalid);else try{c.validateDataItems()}catch(e){o.remove(r.c.invalidDataItems,c),c.raiseCriticalError(e)}o.remove(r.c.invalidDataItems,c)}for(;r.c.invalidDataRange.length>0;){var c;l=(c=r.c.invalidDataRange[0]).dataProvider;if(c.isDisposed()||c.dataInvalid||l&&l.dataInvalid);else try{c.validateDataRange(),c.skipRangeEvent||c.dispatchImmediately("datarangechanged"),c.skipRangeEvent=!1}catch(e){o.remove(r.c.invalidDataRange,c),c.raiseCriticalError(e)}o.remove(r.c.invalidDataRange,c)}var u=[];s.each(r.c.invalidLayouts,(function(t){e.validateLayouts(t)})),s.each(r.c.invalidPositions,(function(t){e.validatePositions(t)}));var d=!1;if(t=Date.now(),s.each(r.c.invalidSprites,(function(n,i){for(var a=0;i.length>0;){if(e.validateLayouts(n),e.validatePositions(n),5==++a){if(Date.now()-t>e.updateStepDuration)break;a=0}var s=i[i.length-1];if(s&&!s.isDisposed()){if(s._systemCheckIfValidate())if(e.checkIfValidate2(s))try{s._systemUpdate(u)}catch(e){s.invalid=!1,o.remove(i,s),s.raiseCriticalError(e)}else u.push(s);else u.push(s);s.invalid=!1}o.remove(i,s)}r.c.invalidSprites[n]=r.c.invalidSprites[n].concat(u)})),s.each(r.c.invalidSprites,(function(e,t){t.length>0&&(d=!0)})),s.each(r.c.invalidDatas,(function(e,t){t.length>0&&(d=!0)})),o.each(o.copy(this.animations),(function(e){e.update()})),s.each(r.c.invalidLayouts,(function(t){e.validateLayouts(t)})),s.each(r.c.invalidPositions,(function(t){e.validatePositions(t)})),Object(a.d)(),s.each(r.c.invalidLayouts,(function(t){e.validateLayouts(t)})),s.each(r.c.invalidPositions,(function(t){e.validatePositions(t)})),r.c.dispatchImmediately("exitframe"),(d||this.animations.length>0||[].length>0)&&this.requestFrame(),this.updateStepDuration<200){var h=!0;s.each(r.c.invalidDatas,(function(e,t){t.length>0&&(h=!1)})),s.each(r.c.invalidSprites,(function(e,t){t.length>0&&(h=!1)})),h&&(this.updateStepDuration=200)}}},e.prototype.checkIfValidate2=function(e){return!(e.dataItem&&e.dataItem.component&&e.dataItem.component.dataInvalid&&!e.dataItem.component.isTemplate)},e.prototype.requestFrame=function(){var e=this;this._frameRequested||(Object(a.b)((function(){e.update()})),this._frameRequested=!0)},e.prototype.softInvalidate=function(e){var t=this;e.children.each((function(e){e instanceof i.a&&t.softInvalidate(e),e.measureFailed&&(Object(r.b)(e,"Label")?e.hardInvalidate():e.invalidate(),e.measureFailed=!1)}))},e.prototype.validatePositions=function(e){for(var t=r.c.invalidPositions[e];t.length>0;){var n=t[t.length-1];if(n.isDisposed())o.remove(t,n);else try{n._systemValidatePositions()}catch(e){n.positionInvalid=!1,o.remove(t,n),n.raiseCriticalError(e)}}},e.prototype.validateLayouts=function(e){for(var t=r.c.invalidLayouts[e];t.length>0;){var n=t[t.length-1];if(n.isDisposed())o.remove(t,n);else try{n.children.each((function(e){e._systemValidateLayouts()})),n.validateLayout()}catch(e){n.layoutInvalid=!1,o.remove(t,n),n.raiseCriticalError(e)}}},e.prototype.log=function(e){l.a(e)},Object.defineProperty(e.prototype,"isPaused",{get:function(){return this._isPaused},set:function(e){this._isPaused=e,e||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),e.VERSION="4.10.22",e}(),u=new c},function(e,t){function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return o[e];var n,a=String(e);return(n=r[a.toLowerCase()])?n:(n=i[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=r[t.toLowerCase()])return a===n;if(a=i[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};var r=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},i=t.aliases={windows:91,"⇧":16,"⌥":18,"⌃":17,"⌘":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)r[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)r[a-48]=a;for(a=1;a<13;a++)r["f"+a]=a+111;for(a=0;a<10;a++)r["numpad "+a]=a+96;var o=t.names=t.title={};for(a in r)o[r[a]]=a;for(var s in i)r[s]=i[s]},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(49)("isFunction",n(279),n(94));r.placeholder=n(47),e.exports=r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return v}));var r=n(7),i=n(32),a=n(202),o=n(70),s=n(35),l=n(193),c=n(119),u=n(33),d=n(19),h=n(8),p=n(378),f=n(14),m=n(28),g=n(2),y=function(){function e(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return e.prototype.debug=function(){},Object.defineProperty(e.prototype,"uid",{get:function(){return this._uid||(this._uid=h.c.getUniqueId(),h.c.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(e){this._id=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"map",{get:function(){return this._map||(this._map=new o.a),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new o.a),this._delayedMap},enumerable:!0,configurable:!0}),e.prototype.addDelayedMap=function(e,t){var n=this.delayedMap;n.hasKey(t)||n.setKey(t,[]),n.getKey(t).push({property:e,target:this})},e.prototype.processDelayedMap=function(){var e=this;this.delayedMap.each((function(t,n){if(e.map.hasKey(t)){var r=e.map.getKey(t);f.each(n,(function(e){e.target[e.property]=r})),e.delayedMap.removeKey(t)}}))},e.prototype.applyTheme=function(){var e=this;if(h.c){var t=this.getCurrentThemes();t&&f.each(t,(function(t,n){t(e)}))}},Object.defineProperty(e.prototype,"themes",{get:function(){return this._themes},set:function(e){this._themes=e},enumerable:!0,configurable:!0}),e.prototype.getCurrentThemes=function(){return this.themes||h.c.themes},e.prototype.isDisposed=function(){return this._disposed},e.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var e=this._disposers;for(this._disposers=null;0!==e.length;){e.shift().dispose()}this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var t=this._uid;null!=t&&h.c.map.removeKey(t)}},e.prototype.addDisposer=function(e){this._disposers.push(e)},e.prototype.removeDispose=function(e){if(!this._disposed){var t=f.indexOf(this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()},e.prototype.clone=function(e){e||(e="clone-"+h.c.getUniqueId());var t=new this.constructor;return t.cloneId=e,t.copyFrom(this),t},Object.defineProperty(e.prototype,"clones",{get:function(){return this._clones||(this._clones=new i.b),this._clones},enumerable:!0,configurable:!0}),e.prototype.copyFrom=function(e){e.clones.push(this),this.clonedFrom=e},Object.defineProperty(e.prototype,"className",{get:function(){return this._className},set:function(e){this._className=e},enumerable:!0,configurable:!0}),e.prototype.setCache=function(e,t,n){p.b.set(this.uid,e,t,n)},e.prototype.getCache=function(e,t){return void 0===t&&(t=void 0),p.b.get(this.uid,e,t)},e.prototype.clearCache=function(){p.b.clear(this.uid)},e.prototype.setTimeout=function(e,t){var n=this,r=setTimeout((function(){n.removeDispose(i),e()}),t),i=new s.b((function(){clearTimeout(r)}));return this._disposers.push(i),i},e.prototype.setInterval=function(e,t){var n=this,r=setInterval((function(){n.removeDispose(i),e()}),t),i=new s.b((function(){clearTimeout(r)}));return this._disposers.push(i),i},Object.defineProperty(e.prototype,"config",{set:function(e){try{this.processConfig(e)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),e.prototype.processConfig=function(t){var n=this;if(t){var r=this;if(m.eachOrdered(t,(function(t,s){var p,f=s;if("callback"==t&&"function"==typeof s&&s.call(r),n.hasProperty(t))if(!g.isObject(f)||!g.hasValue(f.type)||g.isObject(r[t])&&g.hasValue(r[t].className)&&!f.forceCreate&&r[t].className==f.type||n.asIs(t)?p=r[t]:(p=n.createClassInstance(f.type))?r[t]=p:p=r[t],p instanceof c.a)n.processAdapters(p,f);else if(p instanceof l.a)n.processEvents(p,f);else if("locale"==t&&g.isString(f))window["am4lang_"+f]&&(r[t]=window["am4lang_"+f]);else if("parent"==t&&g.isString(f)){var y=n.map.getKey(f);y?r[t]=y:n.addDelayedMap("parent",f)}else if(n.asIs(t))r[t]=f;else if(n.asFunction(t)&&g.isString(f)){if(!g.hasValue(h.c.registeredClasses[f]))throw Error("Invalid easing function: "+f);r[t]=h.c.registeredClasses[f]}else if(f instanceof e)r[t]=f;else if(p instanceof e)p.config=f;else if(p instanceof i.e||p instanceof a.b||p instanceof a.d){if(g.isArray(f))p instanceof i.e?n.processListTemplate(f,p):n.processOrderedTemplate(f,p);else if(g.isObject(f))if(f instanceof e)p.template=f;else{var v=void 0;v=g.hasValue(f.template)?f.template:f,p.template instanceof e?p.template.config=v:m.each(v,(function(t,r){var a=p.template[t];a instanceof c.a?n.processAdapters(a,r):a instanceof l.a?n.processEvents(a,r):a instanceof o.c?n.processDictionaryTemplate(a,r):p.template[t]instanceof e?p.template[t].config=r:g.isObject(r)&&g.hasValue(r.type)?(a=n.createClassInstance(r.type))?(a instanceof e&&(a.config=r),p.template[t]=a):p.template[t]=r:a instanceof i.b?n.processList(r,a):p.template[t]=n.maybeColorOrPercent(r)})),g.hasValue(f.values)&&(p instanceof i.e?n.processListTemplate(f.values,p):n.processOrderedTemplate(f.values,p))}}else p instanceof i.b?"children"==t?n.processList(f,p,n):n.processList(f,p):p instanceof o.c?n.processDictionaryTemplate(p,f):p instanceof o.a?n.processDictionary(p,f):p instanceof u.a||p instanceof d.a?r[t]=n.maybeColorOrPercent(f):g.isObject(p)&&g.isObject(f)?m.copyAllProperties(f,p):(f=n.maybeColorOrPercent(f),r[t]=f);else n.isReserved(t)||(r[t]=f)}),this.configOrder),this.processingErrors.length){var s=this.processingErrors.join("\n");throw this._processingErrors=[],Error(s)}}},e.prototype.maybeColorOrPercent=function(e){if(g.isString(e)){if(e.match(/^[\-]?[0-9.]+\%$/))return Object(d.c)(g.toNumber(e));if(e.match(/^\#[0-9abcdef]{3,}$/i))return Object(u.c)(e)}return e},e.prototype.processAdapters=function(e,t){var n=this;g.isArray(t)?f.each(t,(function(t,r){e.add(t.key,t.callback,t.priority||0,n)})):g.isObject(t)&&m.each(t,(function(t,n){e.has(t,n)||e.add(t,n)}))},e.prototype.processEvents=function(e,t){var n=this;g.isArray(t)?f.each(t,(function(t,r){e.on(t.type,t.callback,n)})):g.isObject(t)&&m.each(t,(function(t,n){e.has(t,n)||e.on(t,n)}))},e.prototype.processDictionaryTemplate=function(t,n){g.isObject(n)&&m.each(n,(function(n,r){var i;(i="template"==n?t.template:t.hasKey(n)?t.getKey(n):t.create(n))instanceof e?i.config=r:g.isObject(i)&&g.isObject(r)?m.copyAllProperties(r,i):i.setKey(n,r)}))},e.prototype.processDictionary=function(e,t){g.isObject(t)&&m.each(t,(function(t,n){e.setKey(t,n)}))},e.prototype.processListTemplate=function(t,n){var r=this;for(f.each(t,(function(t,i){var a,o=r.getConfigEntryType(t);if(n.hasIndex(i)&&!t.forceCreate)a=n.getIndex(i);else{if(t instanceof e)return void n.push(t);a=o?n.create(o):n.create()}t===a||g.isObject(t)&&(a instanceof e?a.config=t:g.isObject(a)&&g.isObject(t)?m.copyAllProperties(t,a):n.setIndex(n.indexOf(a),t))}));t.length>n.length;)n.pop()},e.prototype.processOrderedTemplate=function(t,n){var r=this;f.each(t,(function(t,i){var a,o=r.getConfigEntryType(t);a=o?n.create(o):n.create(),g.isObject(t)&&(a instanceof e?a.config=t:g.isObject(a)&&g.isObject(t)?m.copyAllProperties(t,a):n.insert(t))}))},e.prototype.processList=function(t,n,r){var i=this;g.isArray(t)||(t=[t]);var a=n.length,o=0;for(f.each(t,(function(t,s){if(g.isObject(t)){var l=void 0;if(se.map(e=>e+"%").join(" ");function c(e,t){let n;const i={startDraw:[0,100-t],endDraw:[0,100]};switch(e){case"start":n=i;break;case"middle":{const e=50,i=Object(r.getXpercent)(e,100-t);n={startDraw:[e-i,e+i],endDraw:[0,100]};break}case"end":n={startDraw:[t,100],endDraw:[0,100]};break;default:console.error(`@getEnterDraw::Not handled case: "${e}"`),n=i}return{startDraw:l(n.startDraw),endDraw:l(n.endDraw)}}function u(e,t){let n;const i=[0,100-t];switch(e){case"start":n=i;break;case"middle":{const e=50,i=Object(r.getXpercent)(e,100-t);n=[e-i,e+i];break}case"end":n=[100,t];break;default:console.error(`@getExitDraw::Not handled case: "${e}"`),n=i}return l(n)}function d(e,t){const n=e.animation[t],r=n.scaleType;let i=n.scale;const a="both"===r;"enter"===t&&e.isWidget()&&i<3&&a&&(i=3);return{scaleX:a||"horizontal"===r?i/100:1,scaleY:a||"vertical"===r?i/100:1}}function h({object:e,isFade:t=!1,isNone:n=!1}){if(t&&n)throw new Error('@generateAnimationByGroup.getExitDelay::Error in logic! Can\'t be in one moment passing "isFade" and "isNone" options');const r=e.animation.exit;if("onclick"===r.triggerType)return i;const a="onclick"===(o=e.animation.enter).triggerType?i:(o.isYoyo?2*o.duration:o.duration)+o.delay;var o;let s=r.delay+a;if(n){s=a+.1+r.delay}else t&&(s+=(r.quickFade-1)*r.duration/r.quickFade);return("illustration"===e.type||e.isWidget()||"chart"===e.type&&!e.getAppStore().settings.isBlockInfographic)&&(s+=e.preparingDuration),s}function p(e){switch(e){case"enter":return 1;case"exit":return 0;default:throw new Error(`@getFinishAnimationProgressPosition::Not correct groupName: "${e}"!`)}}function f(e){switch(e){case"enter":return"exit";case"exit":return"enter";default:throw new Error(`@animation.helper.getOppositeGroupName::Not supported groupName: "${e}"!`)}}},function(e,t,n){"use strict";var r=n(50),i=n(194);n.d(t,"a",(function(){return i.a}));t.b=({currentValue:e,minRelativeValue:t,maxRelativeValue:n,mode:a,maxChangeableValue:o=1,changeableValueOffset:s=0,decimalPlace:l=2})=>{const c=(({currentValue:e,minRelativeValue:t,maxRelativeValue:n})=>{let i;if(Number.isNaN(e)||Number.isNaN(t)||Number.isNaN(n)||n=n)i=100;else{i=100*(e-t)/(n-t)}return i*r.b/100})({currentValue:e,minRelativeValue:t,maxRelativeValue:n});return Object(i.b)(c,o,a,l)+s}},function(e,t,n){"use strict";function r(e){if(null===e||!0===e||!1===e)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}n.d(t,"a",(function(){return r}))},function(e,t,n){var r=n(49)("isEqual",n(569));r.placeholder=n(47),e.exports=r},function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"g",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"e",(function(){return c}));var r="px",i="string",a="number",o="date",s="duration",l="__§§§__",c="__§§§§__"},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=({theme:e="light",children:t="",className:n="",style:r={}})=>i.a.createElement("div",{className:`spinner spinner--${e} ${n}`,style:r},i.a.createElement("div",{className:"spinner__wrapper"},"light"===e?i.a.createElement("div",{className:"spinner__circle"}):i.a.createElement(i.a.Fragment,null,i.a.createElement("div",{className:"spinner__circle spinner__circle-1"}),i.a.createElement("div",{className:"spinner__circle spinner__circle-2"}),i.a.createElement("div",{className:"spinner__circle spinner__circle-3"}),i.a.createElement("div",{className:"spinner__circle spinner__circle-4"}))),t)},function(e,t,n){"use strict";var r=n(17),i=n.n(r),a=n(0),o=n.n(a),s=n(6),l=n(106),c=n.n(l),u=n(145),d=n(749);function h(){return(h=Object.assign||function(e){for(var t=1;t-1}function W(e){return e instanceof Element}function G(e){return!(!e||!V(e,"isVirtual"))||W(e)}function q(e,t){return"function"==typeof e?e.apply(null,t):e}function Y(e,t){e.filter((function(e){return"flip"===e.name}))[0].enabled=t}function X(){return document.createElement("div")}function $(e,t){e.forEach((function(e){e&&(e.style.transitionDuration="".concat(t,"ms"))}))}function K(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function Z(e,t){var n=h({},t,{content:q(t.content,[e])},t.ignoreAttributes?{}:function(e){return L.reduce((function(t,n){var r=(e.getAttribute("data-tippy-".concat(n))||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e));return(n.arrow||g)&&(n.animateFill=!1),n}function Q(e,t){Object.keys(e).forEach((function(e){if(!V(t,e))throw new Error("[tippy]: `".concat(e,"` is not a valid option"))}))}function J(e,t){e.innerHTML=W(t)?t.innerHTML:t}function ee(e,t){if(W(t.content))J(e,""),e.appendChild(t.content);else if("function"!=typeof t.content){e[t.allowHTML?"innerHTML":"textContent"]=t.content}}function te(e){return{tooltip:e.querySelector(P),backdrop:e.querySelector(k),content:e.querySelector(E),arrow:e.querySelector(A)||e.querySelector(j)}}function ne(e){e.setAttribute("data-inertia","")}function re(e){var t=X();return"round"===e?(t.className="tippy-roundarrow",J(t,'')):t.className="tippy-arrow",t}function ie(){var e=X();return e.className="tippy-backdrop",e.setAttribute("data-state","hidden"),e}function ae(e,t){e.setAttribute("tabindex","-1"),t.setAttribute("data-interactive","")}function oe(e,t,n){var r=g&&void 0!==document.body.style.webkitTransition?"webkitTransitionEnd":"transitionend";e[t+"EventListener"](r,n)}function se(e){var t=e.getAttribute("x-placement");return t?t.split("-")[0]:""}function le(e,t,n){n.split(" ").forEach((function(n){e.classList[t](n+"-theme")}))}var ce=1,ue=[];function de(e,t){var n,r,i,a,o,s=Z(e,t);if(!s.multiple&&e._tippy)return null;var l,c,u,p,f,g=!1,y=!1,x=!1,P=!1,E=[],k=H(we,s.interactiveDebounce),A=ce++,j=function(e,t){var n=X();n.className="tippy-popper",n.id="tippy-".concat(e),n.style.zIndex=""+t.zIndex,n.style.position="absolute",n.style.top="0",n.style.left="0",t.role&&n.setAttribute("role",t.role);var r=X();r.className="tippy-tooltip",r.style.maxWidth=t.maxWidth+("number"==typeof t.maxWidth?"px":""),r.setAttribute("data-size",t.size),r.setAttribute("data-animation",t.animation),r.setAttribute("data-state","hidden"),le(r,"add",t.theme);var i=X();return i.className="tippy-content",i.setAttribute("data-state","hidden"),t.interactive&&ae(n,r),t.arrow&&r.appendChild(re(t.arrowType)),t.animateFill&&(r.appendChild(ie()),r.setAttribute("data-animatefill","")),t.inertia&&ne(r),ee(i,t),r.appendChild(i),n.appendChild(r),n}(A,s),M=te(j),D={id:A,reference:e,popper:j,popperChildren:M,popperInstance:null,props:s,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},clearDelayTimeouts:De,set:Ne,setContent:function(e){Ne({content:e})},show:Re,hide:Le,enable:function(){D.state.isEnabled=!0},disable:function(){D.state.isEnabled=!1},destroy:function(t){if(D.state.isDestroyed)return;y=!0,D.state.isMounted&&Le(0);be(),delete e._tippy;var n=D.props.target;n&&t&&W(e)&&w(e.querySelectorAll(n)).forEach((function(e){e._tippy&&e._tippy.destroy()}));D.popperInstance&&D.popperInstance.destroy();y=!1,D.state.isDestroyed=!0}};return e._tippy=D,j._tippy=D,ve(),s.lazy||ke(),s.showOnInit&&je(),!s.a11y||s.target||(!W(f=L())||_.call(f,"a[href],area[href],button,details,input,textarea,select,iframe,[tabindex]")&&!f.hasAttribute("disabled"))||L().setAttribute("tabindex","0"),j.addEventListener("mouseenter",(function(e){D.props.interactive&&D.state.isVisible&&"mouseenter"===n&&je(e,!0)})),j.addEventListener("mouseleave",(function(){D.props.interactive&&"mouseenter"===n&&document.addEventListener("mousemove",k)})),D;function N(){document.removeEventListener("mousemove",xe)}function R(){document.body.removeEventListener("mouseleave",Ie),document.removeEventListener("mousemove",k),ue=ue.filter((function(e){return e!==k}))}function L(){return D.props.triggerTarget||e}function F(){document.addEventListener("click",Me,!0)}function G(){document.removeEventListener("click",Me,!0)}function J(){return[D.popperChildren.tooltip,D.popperChildren.backdrop,D.popperChildren.content]}function he(){var e=D.props.followCursor;return e&&"focus"!==n||I&&"initial"===e}function pe(){$([j],m?0:D.props.updateDuration);var t=e.getBoundingClientRect();!function n(){var r=e.getBoundingClientRect();t.top===r.top&&t.right===r.right&&t.bottom===r.bottom&&t.left===r.left||D.popperInstance.scheduleUpdate(),t=r,D.state.isMounted&&requestAnimationFrame(n)}()}function fe(e,t){ge(e,(function(){!D.state.isVisible&&j.parentNode&&j.parentNode.contains(j)&&t()}))}function me(e,t){ge(e,t)}function ge(e,t){var n=D.popperChildren.tooltip;function r(e){e.target===n&&(oe(n,"remove",r),t())}if(0===e)return t();oe(n,"remove",u),oe(n,"add",r),u=r}function ye(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];L().addEventListener(e,t,n),E.push({eventType:e,handler:t,options:n})}function ve(){D.props.touchHold&&!D.props.target&&(ye("touchstart",_e,O),ye("touchend",Se,O)),D.props.trigger.trim().split(" ").forEach((function(e){if("manual"!==e)if(D.props.target)switch(e){case"mouseenter":ye("mouseover",Oe),ye("mouseout",Ce);break;case"focus":ye("focusin",Oe),ye("focusout",Ce);break;case"click":ye(e,Oe)}else switch(ye(e,_e),e){case"mouseenter":ye("mouseleave",Se);break;case"focus":ye(m?"focusout":"blur",Te)}}))}function be(){E.forEach((function(e){var t=e.eventType,n=e.handler,r=e.options;L().removeEventListener(t,n,r)})),E=[]}function xe(t){var n=r=t,i=n.clientX,a=n.clientY;if(p){var o=T(t.target,(function(t){return t===e})),s=e.getBoundingClientRect(),l=D.props.followCursor,c="horizontal"===l,u="vertical"===l,d=U(["top","bottom"],se(j)),f=j.getAttribute("x-placement"),m=!!f&&!!f.split("-")[1],g=d?j.offsetWidth:j.offsetHeight,y=g/2,v=d?0:m?g:y,b=d?m?g:y:0;!o&&D.props.interactive||(D.popperInstance.reference=h({},D.popperInstance.reference,{referenceNode:e,clientWidth:0,clientHeight:0,getBoundingClientRect:function(){return{width:d?g:0,height:d?0:g,top:(c?s.top:a)-v,bottom:(c?s.bottom:a)+v,left:(u?s.left:i)-b,right:(u?s.right:i)+b}}}),D.popperInstance.update()),"initial"===l&&D.state.isVisible&&N()}}function _e(e){D.state.isEnabled&&!Pe(e)&&(D.state.isVisible||(n=e.type,e instanceof MouseEvent&&(r=e,ue.forEach((function(t){return t(e)})))),"click"===e.type&&!1!==D.props.hideOnClick&&D.state.isVisible?Ie():je(e))}function we(t){var n=S(t.target,C)===j,r=T(t.target,(function(t){return t===e}));n||r||function(e,t,n,r){if(!e)return!0;var i=n.clientX,a=n.clientY,o=r.interactiveBorder,s=r.distance,l=t.top-a>("top"===e?o+s:o),c=a-t.bottom>("bottom"===e?o+s:o),u=t.left-i>("left"===e?o+s:o),d=i-t.right>("right"===e?o+s:o);return l||c||u||d}(se(j),j.getBoundingClientRect(),t,D.props)&&(R(),Ie())}function Se(e){if(!Pe(e))return D.props.interactive?(document.body.addEventListener("mouseleave",Ie),document.addEventListener("mousemove",k),void ue.push(k)):void Ie()}function Te(e){e.target===L()&&(D.props.interactive&&e.relatedTarget&&j.contains(e.relatedTarget)||Ie())}function Oe(e){S(e.target,D.props.target)&&je(e)}function Ce(e){S(e.target,D.props.target)&&Ie()}function Pe(e){var t="ontouchstart"in window,n=U(e.type,"touch"),r=D.props.touchHold;return t&&I&&r&&!n||I&&!r&&n}function Ee(){!P&&c&&(P=!0,function(e){e.offsetHeight}(j),c())}function ke(){var t=D.props.popperOptions,n=D.popperChildren,r=n.tooltip,i=n.arrow,a=z(t,"preventOverflow");function o(e){D.props.flip&&!D.props.flipOnUpdate&&(e.flipped&&(D.popperInstance.options.placement=e.placement),Y(D.popperInstance.modifiers,!1)),r.setAttribute("x-placement",e.placement),!1!==e.attributes["x-out-of-boundaries"]?r.setAttribute("x-out-of-boundaries",""):r.removeAttribute("x-out-of-boundaries"),l&&l!==e.placement&&x&&(r.style.transition="none",requestAnimationFrame((function(){r.style.transition=""}))),l=e.placement,x=D.state.isVisible;var t=se(j),n=r.style;n.top=n.bottom=n.left=n.right="",n[t]=-(D.props.distance-10)+"px";var i=a&&void 0!==a.padding?a.padding:4,o="number"==typeof i,s=h({top:o?i:i.top,bottom:o?i:i.bottom,left:o?i:i.left,right:o?i:i.right},!o&&i);s[t]=o?i+D.props.distance:(i[t]||0)+D.props.distance,D.popperInstance.modifiers.filter((function(e){return"preventOverflow"===e.name}))[0].padding=s,p=s}var s=h({eventsEnabled:!1,placement:D.props.placement},t,{modifiers:h({},t?t.modifiers:{},{preventOverflow:h({boundariesElement:D.props.boundary,padding:4},a),arrow:h({element:i,enabled:!!i},z(t,"arrow")),flip:h({enabled:D.props.flip,padding:D.props.distance+4,behavior:D.props.flipBehavior},z(t,"flip")),offset:h({offset:D.props.offset},z(t,"offset"))}),onCreate:function(e){o(e),Ee(),t&&t.onCreate&&t.onCreate(e)},onUpdate:function(e){o(e),Ee(),t&&t.onUpdate&&t.onUpdate(e)}});D.popperInstance=new d.a(e,j,s)}function Ae(){P=!1;var t=he();D.popperInstance?(Y(D.popperInstance.modifiers,D.props.flip),t||(D.popperInstance.reference=e,D.popperInstance.enableEventListeners()),D.popperInstance.scheduleUpdate()):(ke(),t||D.popperInstance.enableEventListeners());var n=D.props.appendTo,r="parent"===n?e.parentNode:q(n,[e]);r.contains(j)||(r.appendChild(j),D.props.onMount(D),D.state.isMounted=!0)}function je(e,n){if(De(),!D.state.isVisible){if(D.props.target)return function(e){if(e){var n=S(e.target,D.props.target);n&&!n._tippy&&de(n,h({},D.props,{content:q(t.content,[n]),appendTo:t.appendTo,target:"",showOnInit:!0}))}}(e);if(g=!0,e&&!n&&D.props.onTrigger(D,e),D.props.wait)return D.props.wait(D,e);he()&&!D.state.isMounted&&(D.popperInstance||ke(),document.addEventListener("mousemove",xe)),F();var r=B(D.props.delay,0,v.delay);r?i=setTimeout((function(){Re()}),r):Re()}}function Ie(){if(De(),!D.state.isVisible)return N(),void G();g=!1;var e=B(D.props.delay,1,v.delay);e?a=setTimeout((function(){D.state.isVisible&&Le()}),e):o=requestAnimationFrame((function(){Le()}))}function Me(e){if(!D.props.interactive||!j.contains(e.target)){if(L().contains(e.target)){if(I)return;if(D.state.isVisible&&U(D.props.trigger,"click"))return}!0===D.props.hideOnClick&&(De(),Le())}}function De(){clearTimeout(i),clearTimeout(a),cancelAnimationFrame(o)}function Ne(t){Q(t=t||{},v),be();var n=D.props,i=Z(e,h({},D.props,{},t,{ignoreAttributes:!0}));i.ignoreAttributes=V(t,"ignoreAttributes")?t.ignoreAttributes||!1:n.ignoreAttributes,D.props=i,ve(),R(),k=H(we,i.interactiveDebounce),function(e,t,n){var r=te(e),i=r.tooltip,a=r.content,o=r.backdrop,s=r.arrow;e.style.zIndex=""+n.zIndex,i.setAttribute("data-size",n.size),i.setAttribute("data-animation",n.animation),i.style.maxWidth=n.maxWidth+("number"==typeof n.maxWidth?"px":""),n.role?e.setAttribute("role",n.role):e.removeAttribute("role"),t.content!==n.content&&ee(a,n),!t.animateFill&&n.animateFill?(i.appendChild(ie()),i.setAttribute("data-animatefill","")):t.animateFill&&!n.animateFill&&(i.removeChild(o),i.removeAttribute("data-animatefill")),!t.arrow&&n.arrow?i.appendChild(re(n.arrowType)):t.arrow&&!n.arrow&&i.removeChild(s),t.arrow&&n.arrow&&t.arrowType!==n.arrowType&&i.replaceChild(re(n.arrowType),s),!t.interactive&&n.interactive?ae(e,i):t.interactive&&!n.interactive&&function(e,t){e.removeAttribute("tabindex"),t.removeAttribute("data-interactive")}(e,i),!t.inertia&&n.inertia?ne(i):t.inertia&&!n.inertia&&function(e){e.removeAttribute("data-inertia")}(i),t.theme!==n.theme&&(le(i,"remove",t.theme),le(i,"add",n.theme))}(j,n,i),D.popperChildren=te(j),D.popperInstance&&(b.some((function(e){return V(t,e)&&t[e]!==n[e]}))?(D.popperInstance.destroy(),ke(),D.state.isVisible&&D.popperInstance.enableEventListeners(),D.props.followCursor&&r&&xe(r)):D.popperInstance.update())}function Re(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B(D.props.duration,0,v.duration[1]);if(!D.state.isDestroyed&&D.state.isEnabled&&(!I||D.props.touch)&&!L().hasAttribute("disabled")&&!1!==D.props.onShow(D)){F(),j.style.visibility="visible",D.state.isVisible=!0,D.props.interactive&&L().classList.add("tippy-active");var t=J();$(t.concat(j),0),c=function(){if(D.state.isVisible){var n=he();n&&r?xe(r):n||D.popperInstance.update(),D.popperChildren.backdrop&&(D.popperChildren.content.style.transitionDelay=Math.round(e/12)+"ms"),D.props.sticky&&pe(),$([j],D.props.updateDuration),$(t,e),K(t,"visible"),me(e,(function(){D.props.aria&&L().setAttribute("aria-".concat(D.props.aria),j.id),D.props.onShown(D),D.state.isShown=!0}))}},Ae()}}function Le(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B(D.props.duration,1,v.duration[1]);if(!D.state.isDestroyed&&(D.state.isEnabled||y)&&(!1!==D.props.onHide(D)||y)){G(),j.style.visibility="hidden",D.state.isVisible=!1,D.state.isShown=!1,x=!1,D.props.interactive&&L().classList.remove("tippy-active");var t=J();$(t,e),K(t,"hidden"),fe(e,(function(){g||N(),D.props.aria&&L().removeAttribute("aria-".concat(D.props.aria)),D.popperInstance.disableEventListeners(),D.popperInstance.options.placement=D.props.placement,j.parentNode.removeChild(j),D.props.onHidden(D),D.state.isMounted=!1}))}}}var he=!1;function pe(e,t){Q(t||{},v),he||(document.addEventListener("touchstart",M,O),window.addEventListener("blur",R),he=!0);var n,r=h({},v,{},t);n=e,"[object Object]"!=={}.toString.call(n)||n.addEventListener||function(e){var t={isVirtual:!0,attributes:e.attributes||{},contains:function(){},setAttribute:function(t,n){e.attributes[t]=n},getAttribute:function(t){return e.attributes[t]},removeAttribute:function(t){delete e.attributes[t]},hasAttribute:function(t){return t in e.attributes},addEventListener:function(){},removeEventListener:function(){},classList:{classNames:{},add:function(t){e.classList.classNames[t]=!0},remove:function(t){delete e.classList.classNames[t]},contains:function(t){return t in e.classList.classNames}}};for(var n in t)e[n]=t[n]}(e);var i=function(e){if(G(e))return[e];if(e instanceof NodeList)return w(e);if(Array.isArray(e))return e;try{return w(document.querySelectorAll(e))}catch(e){return[]}}(e).reduce((function(e,t){var n=t&&de(t,r);return n&&e.push(n),e}),[]);return G(e)?i[0]:i}pe.version="4.3.5",pe.defaults=v,pe.setDefaults=function(e){Object.keys(e).forEach((function(t){v[t]=e[t]}))},pe.hideAll=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.exclude,n=e.duration;w(document.querySelectorAll(C)).forEach((function(e){var r=e._tippy;if(r){var i=!1;t&&(i=F(t)?r.reference===t:e===t.popper),i||r.hide(n)}}))},pe.group=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.delay,r=void 0===n?e[0].props.delay:n,i=t.duration,a=void 0===i?0:i,o=!1;function s(e){o=e,d()}function l(t){t._originalProps.onShow(t),e.forEach((function(e){e.set({duration:a}),e.state.isVisible&&e.hide()})),s(!0)}function c(e){e._originalProps.onHide(e),s(!1)}function u(e){e._originalProps.onShown(e),e.set({duration:e._originalProps.duration})}function d(){e.forEach((function(e){e.set({onShow:l,onShown:u,onHide:c,delay:o?[0,Array.isArray(r)?r[1]:r]:r,duration:o?a:e._originalProps.duration})}))}e.forEach((function(e){e._originalProps?e.set(e._originalProps):e._originalProps=h({},e.props)})),d()},p&&setTimeout((function(){w(document.querySelectorAll("[data-tippy]")).forEach((function(e){var t=e.getAttribute("data-tippy");t&&pe(e,{content:t})}))})),function(e){if(p){var t=document.createElement("style");t.type="text/css",t.textContent=e,t.setAttribute("data-tippy-stylesheet","");var n=document.head,r=n.querySelector("style,link");r?n.insertBefore(t,r):n.appendChild(t)}}('.tippy-iOS{cursor:pointer!important;-webkit-tap-highlight-color:transparent}.tippy-popper{transition-timing-function:cubic-bezier(.165,.84,.44,1);max-width:calc(100% - 8px);pointer-events:none;outline:0}.tippy-popper[x-placement^=top] .tippy-backdrop{border-radius:40% 40% 0 0}.tippy-popper[x-placement^=top] .tippy-roundarrow{bottom:-7px;bottom:-6.5px;-webkit-transform-origin:50% 0;transform-origin:50% 0;margin:0 3px}.tippy-popper[x-placement^=top] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(180deg);transform:rotate(180deg)}.tippy-popper[x-placement^=top] .tippy-arrow{border-top:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;bottom:-7px;margin:0 3px;-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=top] .tippy-backdrop{-webkit-transform-origin:0 25%;transform-origin:0 25%}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-55%);transform:scale(1) translate(-50%,-55%)}.tippy-popper[x-placement^=top] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%,-45%);transform:scale(.2) translate(-50%,-45%);opacity:0}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(-20px);transform:translateY(-20px)}.tippy-popper[x-placement^=top] [data-animation=perspective]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(-10px);transform:perspective(700px) translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateX(60deg);transform:perspective(700px) rotateX(60deg)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=top] [data-animation=scale]{-webkit-transform-origin:bottom;transform-origin:bottom}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(-10px);transform:translateY(-10px)}.tippy-popper[x-placement^=top] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(-10px) scale(.5);transform:translateY(-10px) scale(.5)}.tippy-popper[x-placement^=bottom] .tippy-backdrop{border-radius:0 0 30% 30%}.tippy-popper[x-placement^=bottom] .tippy-roundarrow{top:-7px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%;margin:0 3px}.tippy-popper[x-placement^=bottom] .tippy-roundarrow svg{position:absolute;left:0}.tippy-popper[x-placement^=bottom] .tippy-arrow{border-bottom:8px solid #333;border-right:8px solid transparent;border-left:8px solid transparent;top:-7px;margin:0 3px;-webkit-transform-origin:50% 100%;transform-origin:50% 100%}.tippy-popper[x-placement^=bottom] .tippy-backdrop{-webkit-transform-origin:0 -50%;transform-origin:0 -50%}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-45%);transform:scale(1) translate(-50%,-45%)}.tippy-popper[x-placement^=bottom] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-50%);transform:scale(.2) translate(-50%);opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateY(20px);transform:translateY(20px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateY(10px);transform:perspective(700px) translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateX(-60deg);transform:perspective(700px) rotateX(-60deg)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=bottom] [data-animation=scale]{-webkit-transform-origin:top;transform-origin:top}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=visible]{-webkit-transform:translateY(10px);transform:translateY(10px)}.tippy-popper[x-placement^=bottom] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateY(10px) scale(.5);transform:translateY(10px) scale(.5)}.tippy-popper[x-placement^=left] .tippy-backdrop{border-radius:50% 0 0 50%}.tippy-popper[x-placement^=left] .tippy-roundarrow{right:-12px;-webkit-transform-origin:33.33333333% 50%;transform-origin:33.33333333% 50%;margin:3px 0}.tippy-popper[x-placement^=left] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.tippy-popper[x-placement^=left] .tippy-arrow{border-left:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;right:-7px;margin:3px 0;-webkit-transform-origin:0 50%;transform-origin:0 50%}.tippy-popper[x-placement^=left] .tippy-backdrop{-webkit-transform-origin:50% 0;transform-origin:50% 0}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=left] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-75%,-50%);transform:scale(.2) translate(-75%,-50%);opacity:0}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(-20px);transform:translateX(-20px)}.tippy-popper[x-placement^=left] [data-animation=perspective]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateX(-10px);transform:perspective(700px) translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateY(-60deg);transform:perspective(700px) rotateY(-60deg)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=left] [data-animation=scale]{-webkit-transform-origin:right;transform-origin:right}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(-10px);transform:translateX(-10px)}.tippy-popper[x-placement^=left] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(-10px) scale(.5);transform:translateX(-10px) scale(.5)}.tippy-popper[x-placement^=right] .tippy-backdrop{border-radius:0 50% 50% 0}.tippy-popper[x-placement^=right] .tippy-roundarrow{left:-12px;-webkit-transform-origin:66.66666666% 50%;transform-origin:66.66666666% 50%;margin:3px 0}.tippy-popper[x-placement^=right] .tippy-roundarrow svg{position:absolute;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.tippy-popper[x-placement^=right] .tippy-arrow{border-right:8px solid #333;border-top:8px solid transparent;border-bottom:8px solid transparent;left:-7px;margin:3px 0;-webkit-transform-origin:100% 50%;transform-origin:100% 50%}.tippy-popper[x-placement^=right] .tippy-backdrop{-webkit-transform-origin:-50% 0;transform-origin:-50% 0}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=visible]{-webkit-transform:scale(1) translate(-50%,-50%);transform:scale(1) translate(-50%,-50%)}.tippy-popper[x-placement^=right] .tippy-backdrop[data-state=hidden]{-webkit-transform:scale(.2) translate(-25%,-50%);transform:scale(.2) translate(-25%,-50%);opacity:0}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-toward][data-state=hidden]{opacity:0;-webkit-transform:translateX(20px);transform:translateX(20px)}.tippy-popper[x-placement^=right] [data-animation=perspective]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=visible]{-webkit-transform:perspective(700px) translateX(10px);transform:perspective(700px) translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=perspective][data-state=hidden]{opacity:0;-webkit-transform:perspective(700px) rotateY(60deg);transform:perspective(700px) rotateY(60deg)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=fade][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=shift-away][data-state=hidden]{opacity:0}.tippy-popper[x-placement^=right] [data-animation=scale]{-webkit-transform-origin:left;transform-origin:left}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=visible]{-webkit-transform:translateX(10px);transform:translateX(10px)}.tippy-popper[x-placement^=right] [data-animation=scale][data-state=hidden]{opacity:0;-webkit-transform:translateX(10px) scale(.5);transform:translateX(10px) scale(.5)}.tippy-tooltip{position:relative;color:#fff;border-radius:.25rem;font-size:.875rem;padding:.3125rem .5625rem;line-height:1.4;text-align:center;background-color:#333}.tippy-tooltip[data-size=small]{padding:.1875rem .375rem;font-size:.75rem}.tippy-tooltip[data-size=large]{padding:.375rem .75rem;font-size:1rem}.tippy-tooltip[data-animatefill]{overflow:hidden;background-color:initial}.tippy-tooltip[data-interactive],.tippy-tooltip[data-interactive] .tippy-roundarrow path{pointer-events:auto}.tippy-tooltip[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-tooltip[data-inertia][data-state=hidden]{transition-timing-function:ease}.tippy-arrow,.tippy-roundarrow{position:absolute;width:0;height:0}.tippy-roundarrow{width:18px;height:7px;fill:#333;pointer-events:none}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 2rem);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}');var fe=pe,me=n(72);n(22);function ge(){return(ge=Object.assign||function(e){for(var t=1;t=0||(i[n]=e[n]);return i}var ve="undefined"!=typeof window&&"undefined"!=typeof document;function be(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function xe(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}function _e(e){void 0===e&&(e={});var t=Object(a.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}var we=ve?a.useLayoutEffect:a.useEffect;function Se(e){var t=e.children,n=e.content,r=e.className,i=e.onCreate,s=e.isVisible,l=e.isEnabled,c=e.visible,u=e.enabled,d=e.ignoreAttributes,h=void 0===d||d,p=e.multiple,f=void 0===p||p,m=ye(e,["children","content","className","onCreate","isVisible","isEnabled","visible","enabled","ignoreAttributes","multiple"]);u=void 0!==u?u:void 0===l||l;var g=void 0!==(c=void 0!==c?c:s),y=Object(a.useState)(!1),v=y[0],b=y[1],x=_e((function(){return{container:ve&&document.createElement("div"),renders:1}})),_=ge({ignoreAttributes:h,multiple:f},m,{content:x.container});return g&&(_.trigger="manual"),we((function(){var e=fe(x.ref,_);return x.instance=e,i&&i(e),u||e.disable(),c&&e.show(),b(!0),function(){e.destroy()}}),[t.type]),we((function(){if(1!==x.renders){var e=x.instance;e.set(_),u?e.enable():e.disable(),g&&(c?e.show():e.hide())}else x.renders++})),we((function(){if(r){var e=x.instance.popperChildren.tooltip;return xe(e,"add",r),function(){xe(e,"remove",r)}}}),[r]),o.a.createElement(o.a.Fragment,null,Object(a.cloneElement)(t,{ref:function(e){x.ref=e,be(t.ref,e)}}),v&&Object(me.createPortal)(n,x.container))}var Te=Object(a.forwardRef)((function(e,t){var n=e.children,r=ye(e,["children"]);return o.a.createElement(Se,r,Object(a.cloneElement)(n,{ref:function(e){be(t,e),be(n.ref,e)}}))})),Oe=n(74);const Ce=[u.a],Pe=({message:e,className:t,placement:n="top",text:r=" [?] ",theme:a="light",children:s,forceVisibility:l,hideOnClick:u=!0,arrowType:d="round",distance:h=10,boundary:p="viewport",delay:f=[500,0],interactive:m=!1,duration:g,...y})=>{let v=s||r;if(null===v||!1===v||""===v)return null;!c()(v)||Ce.includes(v.type)?v=o.a.createElement("span",null,v):Array.isArray(v)&&(v=o.a.createElement("div",null,v));return!1===l||!e&&0!==e?o.a.createElement(o.a.Fragment,null,v):o.a.createElement(Te,i()({a11y:!1,animateFill:!1,arrow:!0,arrowType:d,boundary:p,delay:f,theme:"visme-"+a,className:t,content:o.a.createElement(o.a.Fragment,null,e),placement:n,visible:l,hideOnClick:u,distance:h,interactive:m,duration:g,zIndex:1e4},y),v)};t.a=Object(s.a)(e=>{var t;const{appStore:n}=Object(Oe.b)(),r=("editor"!==(null==n||null===(t=n.settings)||void 0===t?void 0:t.mode)||!n.settings.isMobile)&&e.forceVisibility;return o.a.createElement(Pe,i()({},e,{forceVisibility:r}))})},function(e,t){e.exports={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(49)("isString",n(83),n(94));r.placeholder=n(47),e.exports=r},,,function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof t&&t)||function(){return this}()||Function("return this")()}).call(this,n(105))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={event:{CLICK:"CLICK",DRAG:"DRAG",ENTER:"ENTER",RELEASE:"RELEASE",SEARCH:"SEARCH"},category:{Actions:"Actions",Advanced:"Advanced",Animate:"Animate",Apps:"Apps",Basics:"Basics",Brand:"Brand",Charts:"Charts",Comments:"Comments",Data:"Data",Download:"Download",Graphics:"Graphics",Header:"Header",Media:"Media",MyFiles:"My Files",Photos:"Photos",Share:"Share",Slides:"Slides",ThemeColors:"Theme Colors",Timeline:"Timeline",Zoom:"Zoom"}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return E}));var r=n(17),i=n.n(r),a=n(0),o=n.n(a),s=n(96),l=n.n(s),c=n(54),u=n.n(c),d=n(95),h=n.n(d),p=n(12),f=n(93),m=n(29),g=n.n(m),y=n(3),v=n(1);var b=v.types.model("EditableFieldStore",{isEditing:v.types.optional(v.types.boolean,!1)}).volatile(e=>({setEditableOfAllCurrentEditedFields:[]})).actions(e=>({addSetEditOfAllCurrentEditedFields(t){e.setEditableOfAllCurrentEditedFields.push(t)},removeSetEditOfAllCurrentEditedFields(t){const n=e.setEditableOfAllCurrentEditedFields.findIndex(e=>e===t);-1!==n&&e.setEditableOfAllCurrentEditedFields.splice(n,1)},stopEditAllEditedFields(){for(const t of e.setEditableOfAllCurrentEditedFields)t(!1)},selectNextEditableField(t){let n=e.setEditableOfAllCurrentEditedFields.findIndex(e=>e===t)||0;return e.setEditableOfAllCurrentEditedFields[n](!1),n=e.setEditableOfAllCurrentEditedFields[n+1]?n+1:0,e.setEditableOfAllCurrentEditedFields[n](!0),!0},setIsEditing(t){e.isEditing=t}})).create(),x=n(71),_=n(229);const w={integer:e=>["-","0-",""].includes(e)?"tmp":Object(y.isNumeric)(e),number:e=>[""].includes(e)?"tmp":Object(y.isNumeric)(e),positiveNumber:e=>[""].includes(e)?"tmp":Object(y.isNumeric)(e)&&Number(e)>=0&&e%1==0,positiveFractionalNumber:e=>{if(["","0.","."].includes(e)||(""+e).match(/\d\.$/))return"tmp";const t=(""+e).match(/\.\d*/);return t?Object(y.isNumeric)(e)&&Number(e)>=0&&t[0].length<=3&&t[0].length>1:Object(y.isNumeric)(e)&&Number(e)>=0},rationalNumber:e=>{if(["-","0.","0-","","."].includes(e)||(""+e).match(/\d\.$/))return"tmp";const t=(""+e).match(/\.\d*/);return t?Object(y.isNumeric)(e)&&t[0].length<=3&&t[0].length>1:Object(y.isNumeric)(e)},string:e=>l()(e),hexCode:e=>e.match(/^#[A-Fa-f0-9]{6}$/),hex8Code:e=>e.match(/^#[A-Fa-f0-9]{6,8}$/)};function S(e,t,n,r,i){if(w[t]){let a=!0;void 0!==n&&(a=e.toString().length<=n);let o=!0;return"string"!==t&&(o=(void 0===r||Number(e)>=r)&&(void 0===i||Number(e)<=i)),"tmp"===w[t](e)?"tmp":w[t](e)&&a&&o}return!0}function T(e,t){return["number","integer","positiveNumber","rationalNumber","positiveFractionalNumber"].includes(t)?Number(e):e}function O(e,t){return n=>{e(!1),Object(y.isDefined)(t)&&t(n)}}function C(e,t=1){let n=0;Math.floor(Number(t))!==t&&(n=t.toString().split(".")[1].length||0);const r=Math.pow(10,n);return Math.round(e*r)/r}const P=o.a.forwardRef(({value:e,placeholder:t,onChange:n=h.a,onPaste:r,onEnterKey:s,onEscapeKey:l,validationType:c="string",minValue:d,maxValue:m,validate:v=S,additionalValidation:w=(()=>!0),size:P=3,step:E=1,maxSize:k,sizeValidation:A=((e,t)=>e>t),contClassName:j="",viewClassName:I="",id:M,unit:D="",moreSign:N="…",forceEditable:R=!1,align:L="right",autoToggle:F=!0,prefix:V="",affix:B="",toggleOnDoubleClick:H=!1,shouldShowFullTitle:z=!0,shouldShowFullTitleInTooltip:U=!1,titleTooltipSettings:W={},shouldSetCalculatedColorsForInput:G=!0,onBlur:q,onOutsideClick:Y,onFocus:X,onConfirm:$,onStartEditing:K,onFinishEditing:Z,inputEffects:Q=["dynamic-underline-mode"],inputName:J="",inputMode:ee="text",InputComponent:te="input",dontAddSpaceBetweenValueAndUnit:ne=!1,hideUnitDuringUpdating:re=!1,titleClass:ie="",inputClass:ae="",disabled:oe=!1,editIcon:se,confirmIcon:le,cancelIcon:ce,notEditIcon:ue,getNotExternalElements:de=(()=>[])},he)=>{const[pe,fe]=Object(a.useState)(e),[me,ge]=Object(a.useState)(!1),ye=()=>ge(!0),[ve,be]=Object(a.useState)({}),xe=Object(a.useRef)(!1),_e=Object(a.useRef)(null),we=Object(a.useRef)(null),Se=Q.includes("dynamic-underline-mode"),Te=((e,t,n)=>r=>{r instanceof HTMLInputElement&&(n.current=r),r instanceof HTMLSpanElement&&(t.current=r),e&&("function"==typeof e?e({viewRef:t,inputRef:n}):e.current={viewRef:t,inputRef:n})})(he,we,_e),Oe=(e,t)=>{t=u()(null,"target.value",e)||t;const r=v(t=void 0===t?"":t,c,k,d,m);if(!r)return!1;const i=function(e,t){let n=e;switch(t){case"integer":n="0-"===e?"-":e;break;case"positiveFractionalNumber":n="."===e?"0.":e;break;case"rationalNumber":"."===e&&(n="0."),"0-"===e&&(n="-");break;case"hexCode":case"hex8Code":e.length>=1&&"#"!==e.charAt(0)&&(n="#"+e);break;default:n=e}return n}(t,c);if(fe(i),"tmp"!==r&&r&&w(t)){const e=T(t,c);n(e)}},Ce=function({validationType:e,value:t,handleChange:n,setEditable:r,onEnterKey:i,onEscapeKey:a,minValue:o,maxValue:s,step:l}){const c=l?parseFloat(""+l):1,u=["number","positiveNumber","rationalNumber"];return Object(y.handlersByKeys)({[y.keys.ENTER]:O(r,i),[y.keys.ESC]:O(r,a),[y.keys.UP]:()=>{if(u.includes(e)){const e=s?Math.min(Number(t)+c,s):Number(t)+c;n(null,C(e,l))}},[y.keys.DOWN]:()=>{if(u.includes(e)){const e=o?Math.max(Number(t)-c,o):Number(t)-c;n(null,C(e,l))}},[y.keys.TAB]:O(r,e=>{e.preventDefault(),e.stopPropagation(),b.selectNextEditableField(r)})})}({validationType:c,value:pe,handleChange:Oe,setEditable:ge,onEnterKey:t=>{fe(e),Object(y.isDefined)(s)&&s(e,t)},onEscapeKey:l,minValue:d,maxValue:m,step:E});Object(a.useEffect)(()=>{[me,Q.includes("underline-mode")||Se,_e.current,G].every(Boolean)&&function(e,t){const n=[p.a.dashboardBlue,"#A5AABD"],r=Object(y.getReadableColor)({ref:e,listOfColors:n,originalColor:t.borderBottomColor}),i=Object(y.getReadableColor)({ref:e,listOfColors:n,originalColor:t.color});e.current.style.borderBottomColor=r,e.current.style.color=i}(_e,ve)},[me,Q,_e.current,G,ve]),Object(a.useEffect)(()=>{if(we.current){const e=Object(y.getElementColors)({ref:we,colorFields:["color","borderBottomColor"],shouldRiseToParentsIfNotFound:!1});be(e)}},[we.current]),Object(a.useEffect)(()=>{fe(e)},[e]),Object(a.useEffect)(()=>{ge(R)},[R]),Object(a.useEffect)(()=>{if(xe.current){if(me&&K&&K(),!me){const t=v(pe,c,k,d,m);if("tmp"===t||!t||!w(pe))return void fe(e);if(Object(y.isDefined)(Z)){const e=T(pe,c);Z(e)}}}else xe.current=!0},[me]);const Pe=`${V}${pe}${B}`,Ee=A(Pe.length,P);let ke="editable-field "+j,Ae="editable-field__input "+ae;if(["left","center"].includes(L)&&(ke+=" editable-field--"+L,Ae+=" editable-field__input--"+L),Q)for(const e of Q)Ae+=" editable-field__input--"+e;let je=" "+D;ne&&(je=D),re&&me&&(je="");const Ie=Object(a.useRef)({width:()=>{}}),Me=`${pe}${Object(y.getInvisibleSymbol)()}`,[De,Ne]=Object(a.useState)();Object(a.useLayoutEffect)(()=>{if(Se&&_e.current){Ie.current=Object(_.init)(_e.current);const e=Ie.current.width(Me);Ne({width:e})}},[me,Se,_e.current]),Object(a.useLayoutEffect)(()=>{const e=Ie.current.width(Me);if(!e||De&&De.width===e)return;Ne({width:e+10})},[pe]),Object(a.useEffect)(()=>{if(!M||!F)return;const e=document.querySelector(`[for="${M}"]`);if(!e)return;let t=()=>{};return t=H?Object(y.addEventListener)(e,"dblclick",ye):Object(y.addEventListener)(e,"click",ye),t},[M,H,F]),Object(a.useEffect)(()=>(b.addSetEditOfAllCurrentEditedFields(ge),()=>{b.removeSetEditOfAllCurrentEditedFields(ge)}),[]);let Re=o.a.createElement(o.a.Fragment,null,V,pe,B);(g()(pe)||""===pe)&&(Re=o.a.createElement("span",{className:"editable-field__placeholder"},t));const Le=Ee&&z&&U?pe:void 0;return o.a.createElement(f.a,i()({message:Le},W),o.a.createElement("div",{className:ke},me&&!oe?o.a.createElement(o.a.Fragment,null,o.a.createElement(x.a,{callBack:()=>{var e;F&&(null===(e=_e.current)||void 0===e||e.blur(),ge(!1),Object(y.isDefined)(Y)&&Y())},getNotExternalElements:de},o.a.createElement(te,{id:M,style:De,ref:Te,type:"text",autoFocus:!0,size:k,maxLength:k,placeholder:me?"":t,value:pe,className:Ae,onChange:Oe,onPaste:r,onFocus:e=>{Object(y.isDefined)(X)&&(e.target.select(),X(e))},onKeyDown:Ce,onBlur:q,name:J,inputMode:ee}),Boolean(se)&&o.a.createElement("span",null,se),Boolean(le)&&o.a.createElement("span",{onClick:t=>{ge(!1),fe(e),Object(y.isDefined)($)&&$(e,t)}},le),Boolean(ce)&&o.a.createElement("span",{onClick:()=>{ge(!1),fe(e)}},ce))):o.a.createElement(o.a.Fragment,null,o.a.createElement("span",{ref:Te,className:`editable-field__view ${I} ${oe?"editable-field__view--disabled":""}`,onFocus:F&&!H?ye:void 0,onClick:F&&!H?ye:void 0,onDoubleClick:F&&H?ye:void 0},Ee?o.a.createElement(o.a.Fragment,null,`${Pe.slice(0,P)}${N}`,z&&!U&&o.a.createElement("span",{className:"editable-field__title "+ie},V,pe,B)):Re),je,Boolean(ue)&&o.a.createElement("span",{onClick:ye},ue))))}),E=e=>Object(y.waitNextReRender)().then(e);t.a=P},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(529),i="object"==typeof self&&self&&self.Object===Object&&self,a=r||i||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(49)("isObject",n(104),n(94));r.placeholder=n(47),e.exports=r},function(e,t,n){"use strict";var r=n(17),i=n.n(r),a=n(0),o=n.n(a),s=n(92);t.a=({isConfirmation:e=!0,isSecondaryOnWhiteBackground:t=!1,isSecondaryOnNeatWhiteBackground:n=!1,isSecondaryOnLightBlueBackground:r=!1,isDanger:a=!1,isDark:l=!1,isUnderlinedWithoutBackground:c=!1,isSecondaryOnDarkBackground:u=!1,isSecondaryOnGrayBackground:d=!1,disabled:h=!1,contClass:p="",onClick:f,children:m,as:g="div",type:y,style:v,loading:b=!1,...x})=>{let _="";return e&&(_="visme-button--confirmation"),t&&(_="visme-button--secondary-on-white-background"),c&&(_="visme-button--underlined-without-background"),n&&(_="visme-button--secondary-on-neat-white-background"),r&&(_="visme-button--secondary-on-light-blue-background"),a&&(_="visme-button--danger"),l&&(_="visme-button--dark"),u&&(_="visme-button--secondary-on-dark-background"),d&&(_="visme-button--secondary-on-gray-background"),(h||b)&&(_+=" visme-button--disabled"),o.a.createElement(g,i()({type:y,className:`visme-button ${_} ${p}`,style:v,onClick:f},x),b?o.a.createElement(s.a,{className:"spinner--in-flow spinner--small"}):m)}},function(e,t,n){"use strict";var r=n(3),i=n(0);t.a=e=>{const[t]=Object(i.useState)(()=>Object(r.generateUniqueId)(e+"-instances",e+"-instance-"));return t}},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(0),i=n(15),a=n(80),o=n.n(a),s=n(676),l=n.n(s),c=n(3),u=n(117),d=n.n(u);function h(e,t,n={}){const a=n.asyncMode?c.asyncReaction:i.reaction,s=d()(["effectWatcher","asyncMode"],n),u=l()("effectWatcher",n)?n.effectWatcher:[];Object(r.useEffect)(()=>{let r;const i=()=>{o()(r)&&r()},l=[e,(...e)=>{i(),r=t(...e)},s];n.asyncMode&&l.unshift(n.asyncMode);const c=a(...l);return()=>{i(),c()}},u)}},function(e,t,n){"use strict";var r=n(518),i=Object.prototype.toString;function a(e){return"[object Array]"===i.call(e)}function o(e){return void 0===e}function s(e){return null!==e&&"object"==typeof e}function l(e){return"[object Function]"===i.call(e)}function c(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,r=e.length;n{let t=e.target;for(;[...t&&t.classList||[]].some(e=>e.startsWith("ScrollbarsCustom"));)t=t.parentElement;return t},i=n(568),a=n(17),o=n.n(a),s=n(0),l=n.n(s),c=n(365),u=n(1039);var d=n(210);const h={};var p=Object(s.forwardRef)(({allowedHeight:e="100vh",trackYBleedPaddingTop:t=20,trackYStyle:n=h,wrapperStyle:r=h,useContainerSizeUntilBottomScreenBleedPadding:a,children:p,...f},m)=>{const g=Object(s.useRef)(null),[y,v]=function(e=0){const{innerHeight:t}=Object(c.a)(),[n,{top:r}]=Object(u.a)({top:0});return[n,t-r-e]}(a);Object(s.useEffect)(()=>{var e;(null===(e=g.current)||void 0===e?void 0:e.wrapperElement)&&(y.current=g.current.wrapperElement)},[g.current]);const b="100vh"!==e&&e{g.current&&"100vh"!==b&&(g.current.holderElement.style.height=b+"px")},[b,g.current]);const x=Object(s.useMemo)(()=>({height:b-t,...n}),[b,t,Object.values(n)]),_=Object(d.c)("y",x),w=Object(s.useMemo)(()=>({height:b,...r}),[b,Object.values(r)]),S=Object(d.b)(w);return l.a.createElement(i.a,o()({ref:g,forwardedRefFromDecorator:m},f,{trackYProps:_,wrapperProps:S}),p)});n(668)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(114);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},,function(e,t,n){var r=n(49)("omit",n(373));r.placeholder=n(47),e.exports=r},function(e,t,n){var r=n(78);e.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"c",(function(){return d})),n.d(t,"a",(function(){return h}));var r=n(202),i=n(224),a=n(344),o=n(18),s=n(14),l=n(2),c=n(28),u=function(){function e(){this._callbackId=0,this._callbacks=new r.c((function(e,t){return a.a(i.order(e.priority,t.priority),i.order(e.id,t.id))}))}return e.prototype.addAll=function(e,t,n,r,i){void 0===r&&(r=0),this._callbacks.insert({id:++this._callbackId,key:t,callback:n,priority:r,scope:i,type:e})},e.prototype.isEnabled=function(e,t){return s.any(this._callbacks.values,(function(n){return n.key===t&&e instanceof n.type}))},e.prototype.applyAll=function(e,t,n){var r=this._callbacks.values,i=r.length;if(0==i)return n;for(var a=0;a0)for(var i=0;i({get type(){return a.a.CategoryAxis},get symbolName(){if(!Object(r.getParent)(e,2).shouldUseIsXYValueBasedMode)return e.chart.getIsHorizontalChart()||e.chart.getIsDateConcentricType()?"Y":"X"},get minGridDistance(){if(e.chart.getIsDateConcentricType())return 1;return e.chart.getIsHorizontalChart()?18.26:37.41},get visibleLocation(){return Math.round(100*(e.startLocation+l-s)/l)},getStartLocationFromVisible:e=>Object(i.getXpercent)(l,e)-(l-s),getEndLocationFromVisible:e=>Object(i.getXpercent)(-l,e)+l+s})),d=Object(i.wrapWithDefaultPostProcessedSnapshot)(u)},function(e,t,n){var r=n(49)("noop",n(95),n(94));r.placeholder=n(47),e.exports=r},function(e,t,n){var r=n(99),i=n(1154),a=n(166),o=n(718),s=n(1158),l=n(1388),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)||(s&&a(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(404)),a={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/},o=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):e},s=function(e){return e.map(o)},l=function(e){void 0===e&&(e="");var t=e.split(","),n={};return t.forEach((function(e){e=e.trim(),["video","audio"].forEach((function(t){var r=a[t].exec(e.toLowerCase());if(r&&!(r.length<=1)){var i=e.substring(0,r[1].length),o=e.replace(i,"");n[t]={type:i,details:o}}}))})),n},c=function(e){return void 0===e&&(e=""),a.audio.test(e.trim().toLowerCase())},u=function(e){if(e&&"string"==typeof e){var t=e.toLowerCase().split(",").map((function(e){return o(e.trim())})),n="video";1===t.length&&c(t[0])&&(n="audio");var r="mp4";return t.every((function(e){return a.mp4.test(e)}))?r="mp4":t.every((function(e){return a.webm.test(e)}))?r="webm":t.every((function(e){return a.ogg.test(e)}))&&(r="ogg"),n+"/"+r+';codecs="'+e+'"'}};t.DEFAULT_AUDIO_CODEC="mp4a.40.2",t.DEFAULT_VIDEO_CODEC="avc1.4d400d",t.browserSupportsCodec=function(e){return void 0===e&&(e=""),i.default.MediaSource&&i.default.MediaSource.isTypeSupported&&i.default.MediaSource.isTypeSupported(u(e))||!1},t.codecsFromDefault=function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var r in n){var i=n[r];if(i.default&&i.playlists)return l(i.playlists[0].attributes.CODECS)}return null},t.getMimeForCodec=u,t.isAudioCodec=c,t.isVideoCodec=function(e){return void 0===e&&(e=""),a.video.test(e.trim().toLowerCase())},t.mapLegacyAvcCodecs=function(e){return e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e){return s([e])[0]}))},t.muxerSupportsCodec=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){return e=e.trim(),a.muxerVideo.test(e)||a.muxerAudio.test(e)}))},t.parseCodecs=l,t.translateLegacyCodec=o,t.translateLegacyCodecs=s},function(e,t,n){"use strict";n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c}));var r=n(106),i=n.n(r);const a="Something went wrong :( Please try again later.";class o extends Error{constructor(e=""){var t,n;var r;super((r=e).message?r.message:"string"==typeof r?r:a),this.Component=void 0,this.techMessage=void 0,this.statusCode=void 0,this.Component=e.Component,this.techMessage=e.techMessage,this.statusCode=null===(t=e.error)||void 0===t||null===(n=t.response)||void 0===n?void 0:n.status}}class s extends o{constructor(e){super({...e,message:["Sorry, we could not upload this file.","Try saving it in a different format and upload again"].join(" ")}),this.objects=void 0,this.objects=e.objects}}class l extends o{constructor({email:e}){super({message:"Cannot share project with "+e})}}function c(e,t=a){if(e instanceof o)return e.message;if(e.isAxiosError){if(void 0===e.response)return"Network error. Check your connection.";if(i()(e.response)&&i()(e.response.data)&&"string"==typeof e.response.data.message)return e.response.data.message}return t}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],e.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],e.pointer=[{property:"cursor",value:"pointer"}],e.default=[{property:"cursor",value:"default"}],e.horizontalResize=[{property:"cursor",value:"ew-resize"}],e.verticalResize=[{property:"cursor",value:"ns-resize"}],e.notAllowed=[{property:"cursor",value:"not-allowed"}],e.text=[{property:"cursor",value:"text"}],e}()},function(e,t,n){"use strict";n.r(t),n.d(t,"System",(function(){return r.a})),n.d(t,"system",(function(){return r.b})),n.d(t,"BaseObject",(function(){return i.a})),n.d(t,"BaseObjectEvents",(function(){return i.b})),n.d(t,"Component",(function(){return a.a})),n.d(t,"Container",(function(){return o.a})),n.d(t,"DataItem",(function(){return s.a})),n.d(t,"Sprite",(function(){return l.a})),n.d(t,"SpriteEventDispatcher",(function(){return c.a})),n.d(t,"SpriteState",(function(){return u.a})),n.d(t,"registry",(function(){return d.c})),n.d(t,"Registry",(function(){return d.a})),n.d(t,"is",(function(){return d.b})),n.d(t,"options",(function(){return h.a})),n.d(t,"CSVParser",(function(){return p.a})),n.d(t,"DataLoader",(function(){return f.a})),n.d(t,"dataLoader",(function(){return f.b})),n.d(t,"DataParser",(function(){return m.a})),n.d(t,"DataSource",(function(){return g.a})),n.d(t,"JSONParser",(function(){return y.a})),n.d(t,"SVGDefaults",(function(){return v.a})),n.d(t,"Button",(function(){return b.a})),n.d(t,"Circle",(function(){return x.a})),n.d(t,"Ellipse",(function(){return _.a})),n.d(t,"Image",(function(){return O})),n.d(t,"Label",(function(){return C.a})),n.d(t,"Line",(function(){return P.a})),n.d(t,"Popup",(function(){return E.a})),n.d(t,"Modal",(function(){return k.a})),n.d(t,"PointedRectangle",(function(){return A.a})),n.d(t,"PointedShape",(function(){return j.a})),n.d(t,"Polyarc",(function(){return I.a})),n.d(t,"Polygon",(function(){return M.a})),n.d(t,"Polyline",(function(){return D.a})),n.d(t,"Polyspline",(function(){return N.a})),n.d(t,"Preloader",(function(){return V})),n.d(t,"Rectangle",(function(){return B.a})),n.d(t,"ResizeButton",(function(){return H.a})),n.d(t,"CloseButton",(function(){return W})),n.d(t,"SwitchButton",(function(){return G})),n.d(t,"RoundedRectangle",(function(){return q.a})),n.d(t,"Scrollbar",(function(){return Y.a})),n.d(t,"Slider",(function(){return X})),n.d(t,"Slice",(function(){return L.a})),n.d(t,"TextLink",(function(){return $.a})),n.d(t,"Tooltip",(function(){return K.a})),n.d(t,"Trapezoid",(function(){return Z.a})),n.d(t,"Triangle",(function(){return Q.a})),n.d(t,"WavedCircle",(function(){return J.a})),n.d(t,"WavedLine",(function(){return ee.a})),n.d(t,"WavedRectangle",(function(){return te.a})),n.d(t,"ZoomOutButton",(function(){return ne.a})),n.d(t,"PlayButton",(function(){return re})),n.d(t,"Cone",(function(){return ie.a})),n.d(t,"Rectangle3D",(function(){return ae.a})),n.d(t,"Slice3D",(function(){return oe.a})),n.d(t,"Export",(function(){return se.a})),n.d(t,"ExportMenu",(function(){return le.a})),n.d(t,"DateFormatter",(function(){return ce.a})),n.d(t,"DurationFormatter",(function(){return ue.a})),n.d(t,"NumberFormatter",(function(){return de.a})),n.d(t,"TextFormatter",(function(){return he.a})),n.d(t,"getTextFormatter",(function(){return he.b})),n.d(t,"Inertia",(function(){return pe.a})),n.d(t,"Interaction",(function(){return fe.a})),n.d(t,"getInteraction",(function(){return fe.b})),n.d(t,"InteractionKeyboardObject",(function(){return me.a})),n.d(t,"InteractionObject",(function(){return ge.a})),n.d(t,"InteractionObjectEventDispatcher",(function(){return ye.a})),n.d(t,"MouseCursorStyle",(function(){return U.a})),n.d(t,"AMElement",(function(){return ve.a})),n.d(t,"Group",(function(){return be.a})),n.d(t,"Paper",(function(){return xe.a})),n.d(t,"Tension",(function(){return _e.d})),n.d(t,"Basis",(function(){return _e.a})),n.d(t,"SVGContainer",(function(){return we.a})),n.d(t,"ColorModifier",(function(){return Se.a})),n.d(t,"LinearGradient",(function(){return Te.a})),n.d(t,"LinearGradientModifier",(function(){return Oe.a})),n.d(t,"RadialGradientModifier",(function(){return Pe})),n.d(t,"LinePattern",(function(){return ke})),n.d(t,"CirclePattern",(function(){return Ae})),n.d(t,"Pattern",(function(){return Ee.a})),n.d(t,"RadialGradient",(function(){return Ce.a})),n.d(t,"RectPattern",(function(){return je})),n.d(t,"ColorizeFilter",(function(){return Me})),n.d(t,"DesaturateFilter",(function(){return De.a})),n.d(t,"DropShadowFilter",(function(){return Ne.a})),n.d(t,"BlurFilter",(function(){return Re})),n.d(t,"Filter",(function(){return Ie.a})),n.d(t,"FocusFilter",(function(){return Le})),n.d(t,"LightenFilter",(function(){return Fe.a})),n.d(t,"GlobalAdapter",(function(){return Ve.b})),n.d(t,"globalAdapter",(function(){return Ve.c})),n.d(t,"Adapter",(function(){return Ve.a})),n.d(t,"Animation",(function(){return Be.a})),n.d(t,"animate",(function(){return Be.c})),n.d(t,"nextFrame",(function(){return He.a})),n.d(t,"readFrame",(function(){return He.c})),n.d(t,"writeFrame",(function(){return He.f})),n.d(t,"whenIdle",(function(){return He.e})),n.d(t,"triggerIdle",(function(){return He.d})),n.d(t,"Cache",(function(){return ze.a})),n.d(t,"cache",(function(){return ze.b})),n.d(t,"Color",(function(){return Ue.a})),n.d(t,"color",(function(){return Ue.c})),n.d(t,"isColor",(function(){return Ue.d})),n.d(t,"castColor",(function(){return Ue.b})),n.d(t,"ColorSet",(function(){return We.a})),n.d(t,"PatternSet",(function(){return Ge})),n.d(t,"InterfaceColorSet",(function(){return R.a})),n.d(t,"DictionaryDisposer",(function(){return qe.b})),n.d(t,"Dictionary",(function(){return qe.a})),n.d(t,"DictionaryTemplate",(function(){return qe.c})),n.d(t,"Disposer",(function(){return Ye.b})),n.d(t,"MultiDisposer",(function(){return Ye.c})),n.d(t,"MutableValueDisposer",(function(){return Ye.d})),n.d(t,"CounterDisposer",(function(){return Ye.a})),n.d(t,"StyleRule",(function(){return S.c})),n.d(t,"StyleClass",(function(){return S.b})),n.d(t,"getElement",(function(){return S.q})),n.d(t,"addClass",(function(){return S.f})),n.d(t,"removeClass",(function(){return S.x})),n.d(t,"blur",(function(){return S.h})),n.d(t,"focus",(function(){return S.o})),n.d(t,"outerHTML",(function(){return S.v})),n.d(t,"isElement",(function(){return S.t})),n.d(t,"copyAttributes",(function(){return S.j})),n.d(t,"fixPixelPerfect",(function(){return S.n})),n.d(t,"ready",(function(){return S.w})),n.d(t,"EventDispatcher",(function(){return Xe.a})),n.d(t,"TargetedEventDispatcher",(function(){return Xe.b})),n.d(t,"ListIterator",(function(){return $e.ListIterator})),n.d(t,"min",(function(){return $e.min})),n.d(t,"max",(function(){return $e.max})),n.d(t,"join",(function(){return $e.join})),n.d(t,"Keyboard",(function(){return Ke.a})),n.d(t,"keyboard",(function(){return Ke.b})),n.d(t,"Language",(function(){return Ze.a})),n.d(t,"IndexedIterable",(function(){return Qe.a})),n.d(t,"ListGrouper",(function(){return Qe.d})),n.d(t,"ListDisposer",(function(){return Qe.c})),n.d(t,"List",(function(){return Qe.b})),n.d(t,"ListTemplate",(function(){return Qe.e})),n.d(t,"Morpher",(function(){return Je.a})),n.d(t,"reverse",(function(){return et.b})),n.d(t,"or",(function(){return et.a})),n.d(t,"Percent",(function(){return F.a})),n.d(t,"percent",(function(){return F.c})),n.d(t,"isPercent",(function(){return F.b})),n.d(t,"Plugin",(function(){return tt})),n.d(t,"Responsive",(function(){return nt.a})),n.d(t,"ResponsiveBreakpoints",(function(){return nt.b})),n.d(t,"defaultRules",(function(){return nt.c})),n.d(t,"OrderedList",(function(){return rt.a})),n.d(t,"SortedList",(function(){return rt.c})),n.d(t,"OrderedListTemplate",(function(){return rt.b})),n.d(t,"SortedListTemplate",(function(){return rt.d})),n.d(t,"PX",(function(){return it.f})),n.d(t,"STRING",(function(){return it.g})),n.d(t,"NUMBER",(function(){return it.c})),n.d(t,"DATE",(function(){return it.a})),n.d(t,"DURATION",(function(){return it.b})),n.d(t,"PLACEHOLDER",(function(){return it.d})),n.d(t,"PLACEHOLDER2",(function(){return it.e})),n.d(t,"isNaN",(function(){return T.isNaN})),n.d(t,"checkString",(function(){return T.checkString})),n.d(t,"checkBoolean",(function(){return T.checkBoolean})),n.d(t,"checkNumber",(function(){return T.checkNumber})),n.d(t,"checkObject",(function(){return T.checkObject})),n.d(t,"castString",(function(){return T.castString})),n.d(t,"castNumber",(function(){return T.castNumber})),n.d(t,"isString",(function(){return T.isString})),n.d(t,"isNumber",(function(){return T.isNumber})),n.d(t,"isObject",(function(){return T.isObject})),n.d(t,"isArray",(function(){return T.isArray})),n.d(t,"Validatable",(function(){return at.a})),n.d(t,"path",(function(){return z})),n.d(t,"colors",(function(){return ot})),n.d(t,"ease",(function(){return st})),n.d(t,"math",(function(){return lt})),n.d(t,"array",(function(){return ct})),n.d(t,"number",(function(){return ut})),n.d(t,"object",(function(){return dt})),n.d(t,"string",(function(){return ht})),n.d(t,"time",(function(){return pt})),n.d(t,"utils",(function(){return ft})),n.d(t,"iter",(function(){return $e})),n.d(t,"type",(function(){return T})),n.d(t,"net",(function(){return mt})),n.d(t,"create",(function(){return Tt})),n.d(t,"createFromConfig",(function(){return Ot})),n.d(t,"createDeferred",(function(){return Ct})),n.d(t,"disposeAllCharts",(function(){return bt})),n.d(t,"viewPortHandler",(function(){return wt})),n.d(t,"useTheme",(function(){return Et})),n.d(t,"unuseTheme",(function(){return kt})),n.d(t,"unuseAllThemes",(function(){return At})),n.d(t,"addLicense",(function(){return jt}));var r=n(76),i=n(82),a=n(269),o=n(42),s=n(251),l=n(37),c=n(736),u=n(583),d=n(8),h=n(68),p=n(482),f=n(584),m=n(641),g=n(981),y=n(442),v=n(975),b=n(238),x=n(268),_=n(740),w=n(7),S=n(34),T=n(2),O=function(e){function t(){var t=e.call(this)||this;return t.className="Image",t.element=t.paper.add("image"),t.applyTheme(),t.width=50,t.height=50,t}return Object(w.c)(t,e),t.prototype.draw=function(){if(e.prototype.draw.call(this),this.href){var t=this.innerWidth,n=this.innerHeight;T.isNumber(this.widthRatio)&&(t=n*this.widthRatio,this.width=t),T.isNumber(this.heightRatio)&&(n=t*this.heightRatio,this.height=n),this.element.attr({width:t,height:n}),this.element.attrNS(S.d,"xlink:href",this.href)}},Object.defineProperty(t.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(e){this.setPropertyValue("href",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(e){this.setPropertyValue("widthRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(e){this.setPropertyValue("heightRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),t}(l.a);d.c.registeredClasses.Image=O;var C=n(134),P=n(205),E=n(647),k=n(637),A=n(982),j=n(983),I=n(1339),M=n(1340),D=n(436),N=n(579),R=n(57),L=n(299),F=n(19),V=function(e){function t(){var t=e.call(this)||this;t.className="Preloader",t.width=Object(F.c)(100),t.height=Object(F.c)(100);var n=new R.a,r=t.createChild(o.a);r.shouldClone=!1;var i=r.createChild(L.a);i.shouldClone=!1,i.radius=53,i.arc=360,i.fill=n.getFor("fill"),i.fillOpacity=.8,i.innerRadius=42,i.isMeasured=!1,t.backgroundSlice=i;var a=r.createChild(L.a);a.shouldClone=!1,a.radius=50,a.innerRadius=45,a.fill=n.getFor("alternativeBackground"),a.fillOpacity=.2,a.isMeasured=!1,t.progressSlice=a;var s=r.createChild(C.a);return s.shouldClone=!1,s.horizontalCenter="middle",s.verticalCenter="middle",s.isMeasured=!1,s.fill=n.getFor("text"),s.align="center",s.valign="middle",s.textAlign="middle",s.fillOpacity=.4,t.label=s,t.background.opacity=1,t.background.fill=n.getFor("background"),t.contentAlign="center",t.contentValign="middle",t.delay=300,t.states.create("hidden").properties.opacity=0,t.visible=!1,t.hide(0),t.__disabled=!0,t._disposers.push(t.backgroundSlice),t._disposers.push(t.progressSlice),t._disposers.push(t.label),t._disposers.push(r),t}return Object(w.c)(t,e),Object.defineProperty(t.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(e){var t=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",e),this.progressSlice.arc=360*e,this.label&&(this.label.text=Math.round(100*e)+"%"),e>=1?(this._started&&(this._started=void 0),d.c.events.once("enterframe",(function(){var e=t.hide();e&&!e.isFinished()?e.events.once("animationended",(function(){t.__disabled=!0})):t.__disabled=!0})),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):e>0&&(this.delay?this._started?this._started+this.delay<=(new Date).getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=(new Date).getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(e){this.setPropertyValue("delay",e)},enumerable:!0,configurable:!0}),t}(o.a);d.c.registeredClasses.Preloader=V;var B=n(473),H=n(741),z=n(11),U=n(126),W=function(e){function t(){var t=e.call(this)||this;t.className="CloseButton",t.padding(8,8,8,8),t.showSystemTooltip=!0,t.width=30,t.height=30;var n=new R.a;t.cursorOverStyle=U.a.pointer;var r=t.background;r.cornerRadius(20,20,20,20);var i=n.getFor("background");r.fill=i,r.stroke=n.getFor("primaryButton"),r.strokeOpacity=1,r.strokeWidth=1;var a=n.getFor("primaryButtonActive"),o=r.states.getKey("hover");o.properties.strokeWidth=3,o.properties.fill=i;var s=r.states.getKey("down");s.properties.stroke=a,s.properties.fill=i;var c=new l.a;return c.element=t.paper.add("path"),c.stroke=r.stroke,t.icon=c,t.applyTheme(),t}return Object(w.c)(t,e),t.prototype.validate=function(){e.prototype.validate.call(this);var t=this.pixelWidth/3,n=this.pixelHeight/3,r=z.moveTo({x:-t/2,y:-n/2});r+=z.lineTo({x:t/2,y:n/2}),r+=z.moveTo({x:t/2,y:-n/2}),r+=z.lineTo({x:-t/2,y:n/2}),this.icon.path=r,this.invalidateLayout()},t.prototype.applyInternalDefaults=function(){e.prototype.applyInternalDefaults.call(this),T.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},t}(b.a);d.c.registeredClasses.CloseButton=W;var G=function(e){function t(){var t=e.call(this)||this;t.className="SwitchButton",t.tooltipY=0,t.layout="horizontal",t.contentAlign="center",t.contentValign="middle",t.padding(8,16,8,16),t.setStateOnChildren=!0,t.states.create("active");var n=new R.a,r=new C.a;r.fillOpacity=.3,r.states.create("active").properties.fillOpacity=1,r.isActive=!0,t.leftLabel=r;var i=new b.a,a=new x.a;i.contentValign="none",i.padding(0,0,0,0),a.radius=10,i.icon=a,i.icon.valign="middle",i.label=void 0;var o=Object(F.c)(100);i.background.cornerRadius(o,o,o,o),i.width=3.5*a.radius,i.height=2.1*a.radius,i.marginLeft=8,i.marginRight=8,i.togglable=!0,a.dx=.7*-a.radius,a.fill=n.getFor("primaryButton"),a.states.create("hover").properties.fill=n.getFor("primaryButtonHover");var s=a.states.create("active");s.properties.fill=n.getFor("primaryButtonActive"),s.properties.dx=.7*a.radius,t.switchButton=i,t.events.on("toggled",(function(){t.leftLabel.isActive=!t.isActive,t.rightLabel.isActive=t.isActive}));var l=new C.a;return l.fillOpacity=.3,l.states.create("active").properties.fillOpacity=1,t.rightLabel=l,t.role="button",t.focusable=!0,l.valign="middle",r.valign="middle",i.valign="middle",t.applyTheme(),t}return Object(w.c)(t,e),Object.defineProperty(t.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(e){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(e){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"switchButton",{get:function(){return this._switchButton},set:function(e){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=e,e&&(e.parent=this,e.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),t.leftLabel&&this.leftLabel.copyFrom(t.leftLabel),t.rightLabel&&this.rightLabel.copyFrom(t.rightLabel),t.switchButton&&this.switchButton.copyFrom(t.switchButton)},t}(o.a);d.c.registeredClasses.SwitchButton=G;var q=n(184),Y=n(474),X=function(e){function t(){var t=e.call(this)||this;return t.className="Slider",t.thumb.opacity=0,t.thumb.interactionsEnabled=!1,t.endGrip.opacity=0,t.endGrip.interactionsEnabled=!1,t.startGrip.events.on("drag",(function(){t.endGrip.x=t.startGrip.x,t.endGrip.y=t.startGrip.y})),t.applyTheme(),t}return Object(w.c)(t,e),Object.defineProperty(t.prototype,"__end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._start},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),t}(Y.a);d.c.registeredClasses.Slider=X;var $=n(742),K=n(475),Z=n(986),Q=n(635),J=n(652),ee=n(331),te=n(642),ne=n(987),re=function(e){function t(){var t=e.call(this)||this;t.className="PlayButton",t.padding(12,12,12,12),t.showSystemTooltip=!0;var n=new R.a,r=t.background;r.cornerRadius(25,25,25,25),r.fill=n.getFor("primaryButton"),r.stroke=n.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=n.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=n.getFor("primaryButtonActive");var i=new Q.a;i.direction="right",i.width=9,i.height=11,i.marginLeft=1,i.marginRight=1,i.horizontalCenter="middle",i.verticalCenter="middle",i.stroke=n.getFor("primaryButtonText"),i.fill=i.stroke,t.icon=i;var a=new q.a;a.width=11,a.height=11,a.horizontalCenter="middle",a.verticalCenter="middle",a.cornerRadius(0,0,0,0),a.stroke=n.getFor("primaryButtonText"),a.fill=i.stroke,t.togglable=!0;var o=t.states.create("active");return o.transitionDuration=0,o.properties.icon=a,t.defaultState.transitionDuration=0,t.applyTheme(),t}return Object(w.c)(t,e),t.prototype.applyInternalDefaults=function(){e.prototype.applyInternalDefaults.call(this),T.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},t}(b.a);d.c.registeredClasses.PlayButton=re;var ie=n(988),ae=n(990),oe=n(991),se=n(980),le=n(995),ce=n(374),ue=n(639),de=n(638),he=n(223),pe=n(979),fe=n(66),me=n(978),ge=n(977),ye=n(737),ve=n(438),be=n(976),xe=n(239),_e=n(148),we=n(588),Se=n(989),Te=n(176),Oe=n(585),Ce=n(271),Pe=function(e){function t(){var t=e.call(this)||this;return t.className="RadialGradientModifier",t.gradient=new Ce.a,t.applyTheme(),t}return Object(w.c)(t,e),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.gradient=t.gradient.clone()},t}(n(1011).a);d.c.registeredClasses.RadialGradientModifier=Pe;var Ee=n(345),ke=function(e){function t(){var t=e.call(this)||this;return t.properties.gap=0,t._line=t.paper.add("path"),t.addElement(t._line),t}return Object(w.c)(t,e),t.prototype.draw=function(){if(e.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var t=this.width,n=this.height,r="";if(this.gap)for(var i=this.gap+this.strokeWidth,a=this.height/i,o=-a/2;o<1.5*a;o++)Math.round(this.rotation/90)!=this.rotation/90?(r+=z.moveTo({x:-t,y:(o+.5)*i})+z.lineTo({x:2*t,y:(o+.5)*i}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r+=z.moveTo({x:-t,y:o*i})+z.lineTo({x:2*t,y:o*i});else Math.round(this.rotation/90)!=this.rotation/90?(r=z.moveTo({x:-t,y:n/2})+z.lineTo({x:2*t,y:n/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r=z.moveTo({x:0,y:0})+z.lineTo({x:t,y:0});this._line.attr({d:r})}},Object.defineProperty(t.prototype,"gap",{get:function(){return this.properties.gap},set:function(e){this.properties.gap=e,this.draw()},enumerable:!0,configurable:!0}),t}(Ee.a);d.c.registeredClasses.LinePattern=ke;var Ae=function(e){function t(){var t=e.call(this)||this;return t.properties.radius=2,t._circle=t.paper.add("circle"),t.addElement(t._circle),t.shapeRendering="auto",t}return Object(w.c)(t,e),t.prototype.draw=function(){e.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(t.prototype,"radius",{get:function(){return this.properties.radius},set:function(e){this.properties.radius=e,this.draw()},enumerable:!0,configurable:!0}),t}(Ee.a);d.c.registeredClasses.CirclePattern=Ae;var je=function(e){function t(){var t=e.call(this)||this;return t.rectHeight=1,t.rectWidth=1,t._rect=t.paper.add("rect"),t.addElement(t._rect),t}return Object(w.c)(t,e),t.prototype.draw=function(){e.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(t.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(e){this.properties.rectWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(e){this.properties.rectHeight=e,this.draw()},enumerable:!0,configurable:!0}),t}(Ee.a);d.c.registeredClasses.RectPattern=je;var Ie=n(270),Me=function(e){function t(){var t=e.call(this)||this;return t.className="ColorizeFilter",t.feColorMatrix=t.paper.add("feColorMatrix"),t.feColorMatrix.attr({type:"matrix"}),t.filterPrimitives.push(t.feColorMatrix),t.intensity=1,t.applyTheme(),t}return Object(w.c)(t,e),t.prototype.applyFilter=function(){var e,t,n,r=this.intensity,i=1-r,a=this.color;a&&a.rgb?(e=a.rgb.r/255*r,t=a.rgb.g/255*r,n=a.rgb.b/255*r):(e=0,t=0,n=0),this.feColorMatrix.attr({values:i+" 0 0 0 "+e+" 0 "+i+" 0 0 "+t+" 0 0 "+i+" 0 "+n+" 0 0 0 1 0"})},Object.defineProperty(t.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(e){this.properties.intensity=e,this.applyFilter()},enumerable:!0,configurable:!0}),t}(Ie.a);d.c.registeredClasses.ColorizeFilter=Me;var De=n(586),Ne=n(985),Re=function(e){function t(){var t=e.call(this)||this;return t.className="BlurFilter",t.feGaussianBlur=t.paper.add("feGaussianBlur"),t.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),t.filterPrimitives.push(t.feGaussianBlur),t.width=200,t.height=200,t.blur=1.5,t.applyTheme(),t}return Object(w.c)(t,e),Object.defineProperty(t.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),t}(Ie.a);d.c.registeredClasses.BlurFilter=Re;var Le=function(e){function t(){var t=e.call(this)||this;return t.className="FocusFilter",t.feFlood=t.paper.add("feFlood"),t.feFlood.attr({"flood-color":(new R.a).getFor("primaryButtonHover"),result:"base"}),t.filterPrimitives.push(t.feFlood),t.feMorphology=t.paper.add("feMorphology"),t.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),t.filterPrimitives.push(t.feMorphology),t.feColorMatrix=t.paper.add("feColorMatrix"),t.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),t.filterPrimitives.push(t.feColorMatrix),t.feComposite=t.paper.add("feComposite"),t.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),t.filterPrimitives.push(t.feComposite),t.feBlend=t.paper.add("feBlend"),t.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),t.filterPrimitives.push(t.feBlend),t.width=130,t.height=130,t.applyTheme(),t}return Object(w.c)(t,e),Object.defineProperty(t.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.feMorphology.attr({radius:e})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+e+" 0"})},enumerable:!0,configurable:!0}),t.prototype.setSprite=function(t){this._sprite&&this._sprite!=t&&this._sprite.group.removeStyle("outline"),t.group.addStyle({outline:"none"}),e.prototype.setSprite.call(this,t)},t}(Ie.a),Fe=n(643),Ve=n(119),Be=n(132),He=n(192),ze=n(378),Ue=n(33),We=n(375),Ge=function(e){function t(){var t=e.call(this)||this;t._list=[],t._currentStep=0,t._startIndex=0,t._currentPass=0,t.baseColor=new Ue.a({r:103,g:183,b:220}),t.className="PatternSet";var n=new R.a;return t.list=[t.getLinePattern(1e3,45,1,6),t.getRectPattern(10,0,4),t.getLinePattern(1e3,-45,1,6),t.getCirclePattern(11,2,!0),t.getLinePattern(6,90,1),t.getRectPattern(12,45,6,!0),t.getLinePattern(6,0,1),t.getRectPattern(7,0,4),t.getLinePattern(1e3,45,2,3,"4,2"),t.getCirclePattern(9,3,!1),t.getLinePattern(1e3,-45,2,3,"4,2"),t.getRectPattern(10,45,Math.sqrt(50)),t.getLinePattern(1e3,-45,2,1),t.getRectPattern(10,0,9),t.getLinePattern(1e3,45,2,1),t.getLinePattern(1e3,0,3,1),t.getRectPattern(10,45,10),t.getLinePattern(1e3,90,3,1)],t.baseColor=n.getFor("stroke"),t.applyTheme(),t}return Object(w.c)(t,e),t.prototype.getLinePattern=function(e,t,n,r,i){var a=new ke;return a.width=e,a.height=e,a.stroke=this.baseColor,a.gap=r,a.strokeDasharray=i,a.strokeWidth=n,a.rotation=t,a},t.prototype.getRectPattern=function(e,t,n,r){var i=new je;return i.width=e,i.height=e,i.rectWidth=n,i.rectHeight=n,r?(i.stroke=this.baseColor,i.strokeWidth=1,i.fillOpacity=0):(i.fill=this.baseColor,i.strokeWidth=0),0!=t&&(i.shapeRendering="auto"),i.rotation=t,i},t.prototype.getCirclePattern=function(e,t,n){var r=new Ae;return r.width=e,r.height=e,r.shapeRendering="auto",r.radius=t,n?(r.stroke=this.baseColor,r.strokeWidth=1,r.fillOpacity=0):(r.fill=this.baseColor,r.strokeWidth=0),r},Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),t.prototype.next=function(){var e=this.getIndex(this.currentStep);return this._currentStep++,e},t.prototype.getIndex=function(e){for(;this.list.length<=e;)this.generatePatterns();return this.list[e].clone()},t.prototype.generatePatterns=function(){var e=this.list.length/(this._currentPass+1);this._currentPass++;for(var t=0;t=0){d.c.queue.splice(d.c.queue.indexOf(e),1);var n=d.c.queue[t];n&&St(n)}}function wt(e){e.__disabled&&S.u(e.htmlContainer,h.a.viewportTarget)&&(e.vpDisposer&&e.vpDisposer.dispose(),xt(e))}function St(e){e.__disabled=!1,e.tooltipContainer.__disabled=!1,e.events.enableType("appeared"),e.dispatch("removedfromqueue"),e.showOnInit&&e.events.on("appeared",(function(){_t(e)})),e.vpDisposer&&e.vpDisposer.dispose(),e instanceof o.a&&e.invalidateLabels(),e.tooltipContainer&&e.tooltipContainer.invalidateLayout(),e instanceof a.a?(e.invalidateData(),e.reinit(),e.events.once("datavalidated",(function(){e.showOnInit?e.appear():_t(e)}))):(e.reinit(),e.events.once("inited",(function(){_t(e)})),e.showOnInit&&e.appear())}function Tt(e,t){var n;T.isString(t)&&(T.hasValue(d.c.registeredClasses[t])?t=d.c.registeredClasses[t]:(t=d.c.registeredClasses.Container,n=new Error("Class ["+t+"] is not loaded.")));var r=vt(e,t);return n&&r.raiseCriticalError(n),r}function Ot(e,t,n){var r,i;T.hasValue(n)||(n=e.type,delete e.type),T.hasValue(t)||(t=e.container,delete e.container),T.isString(n)&&T.hasValue(d.c.registeredClasses[n])?r=d.c.registeredClasses[n]:"function"!=typeof n?(r=o.a,i=new Error("Class ["+n+"] is not loaded.")):r=n;var a=vt(t,r);return i?a.raiseCriticalError(i):a.config=e,a}function Ct(e,t){for(var n=[],r=2;r0?i(r(e),9007199254740991):0}},function(e,t,n){"use strict";var r,i=n(1174),a=n(118),o=n(99),s=n(114),l=n(166),c=n(726),u=n(236),d=n(237),h=n(143).f,p=n(324),f=n(468),m=n(122),g=n(718),y=o.Int8Array,v=y&&y.prototype,b=o.Uint8ClampedArray,x=b&&b.prototype,_=y&&p(y),w=v&&p(v),S=Object.prototype,T=S.isPrototypeOf,O=m("toStringTag"),C=g("TYPED_ARRAY_TAG"),P=i&&!!f&&"Opera"!==c(o.opera),E=!1,k={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},A=function(e){return s(e)&&l(k,c(e))};for(r in k)o[r]||(P=!1);if((!P||"function"!=typeof _||_===Function.prototype)&&(_=function(){throw TypeError("Incorrect invocation")},P))for(r in k)o[r]&&f(o[r],_);if((!P||!w||w===S)&&(w=_.prototype,P))for(r in k)o[r]&&f(o[r].prototype,w);if(P&&p(x)!==w&&f(x,w),a&&!l(w,O))for(r in E=!0,h(w,O,{get:function(){return s(this)?this[C]:void 0}}),k)o[r]&&u(o[r],C,r);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:P,TYPED_ARRAY_TAG:E&&C,aTypedArray:function(e){if(A(e))return e;throw TypeError("Target is not a typed array")},aTypedArrayConstructor:function(e){if(f){if(T.call(_,e))return e}else for(var t in k)if(l(k,r)){var n=o[t];if(n&&(e===n||T.call(n,e)))return e}throw TypeError("Target is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n){if(a){if(n)for(var r in k){var i=o[r];i&&l(i.prototype,e)&&delete i.prototype[e]}w[e]&&!n||d(w,e,n?t:P&&v[e]||t)}},exportTypedArrayStaticMethod:function(e,t,n){var r,i;if(a){if(f){if(n)for(r in k)(i=o[r])&&l(i,e)&&delete i[e];if(_[e]&&!n)return;try{return d(_,e,n?t:P&&y[e]||t)}catch(e){}}for(r in k)!(i=o[r])||i[e]&&!n||d(i,e,t)}},isView:function(e){var t=c(e);return"DataView"===t||l(k,t)},isTypedArray:A,TypedArray:_,TypedArrayPrototype:w}},,function(e,t,n){"use strict";n.d(t,"c",(function(){return y})),n.d(t,"b",(function(){return w})),n.d(t,"a",(function(){return S}));var r=n(7),i=n(82),a=n(975),o=n(35),s=n(33),l=n(19),c=n(192),u=n(167),d=n(168),h=n(4),p=n(14),f=n(2),m=n(76),g=n(68);function y(e,t){var n=!1,r=Date.now();return c.a((function i(a){if(!n){var o=a-r;o>=e?t(1):(c.a(i),t(o/e))}})),new o.b((function(){n=!0}))}function v(e,t,n){return t+(n-t)*e}function b(e,t,n){return new l.a(v(e,t.percent,n.percent))}function x(e,t,n){var r=new s.a(d.interpolate(t.rgb,n.rgb,e));return t.alpha!=n.alpha&&(r.alpha=t.alpha+(n.alpha-t.alpha)*e),r}function _(e,t){return t+e.charAt(0).toUpperCase()+e.substr(1)}var w=function(){function e(e){this._disposer=new o.b((function(){for(;0!==e.length;)e[0].dispose()}))}return e.prototype.isDisposed=function(){return this._disposer.isDisposed()},e.prototype.dispose=function(){this._disposer.dispose()},e}(),S=function(e){function t(t,n,r,i){var a=e.call(this)||this;return a.duration=0,a.easing=u.linear,a.progress=0,a._loop=0,a._pause=!1,a._delayTimeout=null,a._time=0,a._isFinished=!1,a.className="Animation",!1===g.a.animationsEnabled&&(r=0),a.object=t,a.animationOptions=p.toArray(n),a.duration=r,i&&(a.easing=i),a.applyTheme(),a}return Object(r.c)(t,e),t.prototype.debug=function(){},t.prototype.dispose=function(){e.prototype.dispose.call(this),this.pause()},t.prototype.delay=function(e){var t=this;if(e>0){this.pause(),p.move(this.object.animations,this);var n=setTimeout((function(){t._delayTimeout=null,t.start()}),e);this._delayTimeout=new o.b((function(){clearTimeout(n)}))}return this},t.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,p.move(m.b.animations,this),p.move(this.object.animations,this),m.b.requestFrame()},t.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var e=this.animationOptions.length-1;e>=0;e--){var t=this.animationOptions[e];if(f.hasValue(t.from)||(t.childObject?t.from=t.childObject[t.property]:(t.from=this.object[t.property],f.hasValue(t.from)||(t.from=a.a[t.property]))),t.from==t.to)p.remove(this.animationOptions,t);else if(!f.hasValue(t.from)||!(t.from instanceof l.a)&&t.to instanceof l.a||t.from instanceof l.a&&!(t.to instanceof l.a))this.staticOptions.push(t),p.remove(this.animationOptions,t);else if(f.isNumber(t.to))if(t.updateMethod=v,t.from instanceof l.a){var n=this.object[_(t.property,"pixel")];isNaN(n)?(this.staticOptions.push(t),p.remove(this.animationOptions,t)):t.from=n}else isNaN(t.from)&&(this.staticOptions.push(t),p.remove(this.animationOptions,t));else if(t.to instanceof s.a)t.from?t.updateMethod=x:(this.staticOptions.push(t),p.remove(this.animationOptions,t));else if(t.to instanceof l.a){if(t.updateMethod=b,!isNaN(t.from)){n=this.object[_(t.property,"relative")];isNaN(n)||(t.from=Object(l.c)(100*n))}}else this.staticOptions.push(t),p.remove(this.animationOptions,t)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var r={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",r)}return this.update(),0===this.duration&&this.end(),this},t.prototype.loop=function(e){return f.isNumber(e)||(e=1/0),this._loop=e,this},t.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),p.remove(m.b.animations,this),p.remove(this.object.animations,this),this},t.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},t.prototype.end=function(){if(0==this._loop&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var e={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",e)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},t.prototype.kill=function(){this.pause(),this._isFinished=!0},t.prototype.isFinished=function(){return this._isFinished},t.prototype.applyStaticOptions=function(){var e=this;p.each(this.staticOptions,(function(t){t.childObject?t.childObject[t.property]=1==e.progress?t.to:t.from:e.object[t.property]=1==e.progress?t.to:t.from}))},t.prototype.stop=function(e){if(this.pause(),!e&&this.events.isEnabled("animationstopped")){var t={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",t)}return this},t.prototype.setProgress=function(e){var t=this;if(this._time=this.duration*e,p.each(this.animationOptions,(function(n){if(n.updateMethod&&f.hasValue(n.from)){var r=n.updateMethod(e,n.from,n.to);n.childObject?n.childObject[n.property]=r:t.object[n.property]=r}})),this.progress=e,this.events.isEnabled("animationprogress")){var n={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",n)}m.b.requestFrame()},t.prototype.update=function(){if(!this._pause){var e=void 0;this._time=h.fitToRange(Date.now()-this._startTime,0,this.duration);var t=this._time/this.duration;e=this.easing(t),(0==this.duration||!f.isNumber(e)||t>=1)&&(e=1),this.setProgress(e),1==h.round(this._time/this.duration,6)&&this.end()}return this},Object.defineProperty(t.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),t.prototype.stopSameAnimations=function(){var e=this;p.each(p.copy(this.object.animations),(function(t){if(t!==e&&!t.delayed){var n=[];p.each(e.animationOptions,(function(e){p.each(t.animationOptions,(function(r){e.property==r.property&&e.childObject==r.childObject&&(n.push(r),0==t.animationOptions.length&&t.kill())}))})),p.each(n,(function(e){p.remove(t.animationOptions,e)}))}}))},t.prototype.asFunction=function(t){return"easing"==t||e.prototype.asIs.call(this,t)},t}(i.b)},function(e,t,n){var r=n(49)("cloneDeep",n(315),n(94));r.placeholder=n(47),e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(7),i=n(42),a=n(8),o=n(223),s=n(35),l=n(57),c=n(4),u=n(13),d=n(2),h=n(34),p=n(86),f=n(68),m=function(e){function t(){var t=e.call(this)||this;return t.isOversized=!1,t.className="Label",t.fill=(new l.a).getFor("text"),t.wrap=!1,t.truncate=!1,t.fullWords=!0,t.ellipsis="…",t.textAlign="start",t.textValign="top",t.layout="absolute",t.baseLineRatio=-.27,t._positionPrecision=1,t.events.on("maxsizechanged",(function(){t.inited&&t.handleMaxSize()}),t,!1),t.events.once("validated",t.handleValidate,t,!1),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.afterDraw=function(){e.prototype.afterDraw.call(this),this.validatePosition()},t.prototype.setPaper=function(t){var n=e.prototype.setPaper.call(this,t);return n&&this.hardInvalidate(),n},t.prototype.handleValidate=function(){!this.currentText&&!this.text||0!=this.bbox.width&&0!=this.bbox.height||a.c.events.once("exitframe",this.hardInvalidate,this)},t.prototype.handleMaxSize=function(){this.bbox.width>this.availableWidth||this.bbox.widththis.availableHeight||this.bbox.heighti){this.isOversized=!0;var P=T.element.textContent,E=T.bbox.width/P.length,k=c.min(Math.ceil((T.bbox.width-i)/E),P.length);if(this.truncate){var A=!1,j=T.element.node;if(j&&j.childNodes)for(var I=T.element.node.childNodes.length-1;I>=0;I--){var M=T.element.node.childNodes[I];if(A&&T.bbox.width<=i&&(M.textContent+=" "+this.ellipsis,T.bbox=T.element.getBBox(),T.bbox.width=Math.floor(T.bbox.width),T.bbox.width<=i))break;A=!1;var D=M.textContent;for(P=T.element.textContent,k=c.min(Math.ceil((T.bbox.width-i)/E),P.length);T.bbox.width>i&&k<=P.length&&k>0;){(L=c.max(P.length-k-this.ellipsis.length,1))<=1&&(k=0,I>0&&(A=!0,T.element.node.removeChild(M))),(D=u.truncateWithEllipsis(D,L,this.ellipsis,this.fullWords,this.rtl)).length>L&&this.fullWords&&(D=u.truncateWithEllipsis(D,L,this.ellipsis,!1,this.rtl)),M.textContent=D,T.bbox=T.element.getBBox(),T.bbox.width=Math.floor(T.bbox.width),k=Math.ceil(1.1*k)}S=!0}}else{if(T.element.node){for(var N=T.element.node.lastChild,R=void 0;T.bbox.width>i&&k<=P.length&&k>0;){var L=c.max(C.text.length-k,1);if(w?R=u.splitTextByCharCount(C.text,L,!0,this.rtl):((R=u.splitTextByCharCount(C.text,L,!0,this.rtl,!1))[0].length>L||1===L)&&(T.element.node.removeChild(N),k=0),k>0){var F=R.shift();w&&(F=u.trim(F)),N.textContent=Object(o.b)().cleanUp(F)}T.bbox=T.element.getBBox(),T.bbox.width=Math.floor(T.bbox.width),k++}if(R.length>0){var V="";d.hasValue(R)&&(this.rtl?V+=R.join("")+y:V+=y+R.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var B=O+1;B0&&(g+=U),m.removeElement(z);var W=this.getLineInfo(v);W&&(W.text="",W.element.textContent="")}}this.maybeHideOversized(),this.measureFailed=!1,0!=this.bbox.width&&0!=this.bbox.height||(this.measureFailed=!0),this._measuredWidth=c.round(c.max(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=c.round(c.max(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,n==this._measuredHeight&&t==this._measuredWidth||this.dispatch("transformed"),this.hideUnused(p.length)}else{this.element.removeAttr("display"),this.resetBBox(),(m=this.element).removeChildren();var G=this.paper.foreignObject();m.add(G),this.maxWidth&&G.attr({width:this.maxWidth-this.pixelPaddingLeft-this.pixelPaddingRight}),this.maxHeight&&G.attr({height:this.maxHeight-this.pixelPaddingTop-this.pixelPaddingBottom});var q=this.getHTMLLineElement(h);G.node.appendChild(q),q.style.display="inline-block";var Y=q.clientWidth,X=q.clientHeight;q.style.display="block",this._bbox={x:0,y:0,width:Y,height:X},G.attr({width:Y+1,height:X}),this.maybeHideOversized(),this._measuredWidth=c.max(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=c.max(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(q.style.overflow="hidden"),(Y>i||X>a)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),"none"==f&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}else this.element.attr({display:"none"})}}else r.events.once("maxsizechanged",this.hardInvalidate,this,!1)},t.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth=0;i--){var a=t[i];if(a.setAttribute("text-anchor",this.textAlign),this.textPathElement)a.removeAttribute("x"),a.removeAttribute("y");else{switch(this.textAlign){case"middle":a.setAttribute("x",(n/2).toString()+"px");break;case"end":this.rtl||a.setAttribute("x",n.toString());break;default:this.rtl?a.setAttribute("x",n.toString()):a.removeAttribute("text-anchor")}var o=d.toNumber(a.getAttribute("y"));switch(this.textValign){case"middle":a.setAttribute("y",((o||0)+(r-this.bbox.height)/2).toString());break;case"bottom":a.setAttribute("y",((o||0)+r-this.bbox.height).toString());break;default:a.setAttribute("y",(o||0).toString())}}}}},t.prototype.getSVGLineElement=function(e,t){var n=this.paper.addGroup("text");return n.textContent=e,n.attr({x:"0"}),d.hasValue(t)&&n.attr({y:t.toString()}),(this.truncate||this.wrap)&&n.attr({overflow:"hidden"}),n},Object.defineProperty(t.prototype,"rtl",{get:function(){return d.hasValue(this._rtl)?this._rtl:!!this._topParent&&this._topParent.rtl},set:function(e){e=d.toBoolean(e),this._rtl=e,this.element&&this.alignSVGText()},enumerable:!0,configurable:!0}),t.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},t.prototype.getHTMLLineElement=function(e){var t=document.createElement("div");switch(t.innerHTML=e,this.textAlign){case"middle":t.style.textAlign="center";break;case"end":t.style.textAlign="right"}return this.wrap?t.style.wordWrap="break-word":t.style.whiteSpace="nowrap",this.rtl&&(t.style.direction="rtl"),d.hasValue(this.fill)&&(t.style.color=this.fill.toString()),t},t.prototype.setStyles=function(){var e=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?e.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(e.removeStyle("webkitUserSelect"),e.removeStyle("msUserSelect"))},t.prototype.hideUnused=function(e){this.initLineCache();var t=this.getCache("lineInfo");if(t.length>=e)for(var n=e;ne?t[e]:void 0},t.prototype.addLineInfo=function(e,t){this.initLineCache(),this.getCache("lineInfo")[t]=e},t.prototype.initLineCache=function(){d.hasValue(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},t.prototype.setDataItem=function(t){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),t&&(this._sourceDataItemEvents=new s.c([t.events.on("valuechanged",this.invalidate,this,!1),t.events.on("workingvaluechanged",this.invalidate,this,!1),t.events.on("calculatedvaluechanged",this.invalidate,this,!1),t.events.on("propertychanged",this.invalidate,this,!1)])),e.prototype.setDataItem.call(this,t)},Object.defineProperty(t.prototype,"availableWidth",{get:function(){return d.hasValue(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"availableHeight",{get:function(){return d.hasValue(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),t.prototype.getSvgElement=function(e,t,n){var r=this.paper.add("tspan");if(r.textContent=e,t)if(f.a.nonce&&n){var i="amcharts_element_style_"+btoa(t).replace(/[^\w]*/g,"");r.node.setAttribute("class",i);var a=document.createElementNS(h.a,"defs");n.node.appendChild(a);var o=document.createElement("style");o.type="text/css",o.innerHTML="."+i+" { "+t+"}",o.setAttribute("nonce",f.a.nonce),a.appendChild(o)}else r.node.setAttribute("style",t);return n&&n.add(r),r},t.prototype.deepInvalidate=function(){e.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(t.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return e?this.dataItem&&(e=this.populateString(e)):e=this.populateString(u.plainText(u.isNotEmpty(this.html)?this.html:this.text)),e},set:function(e){e=d.toText(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),t}(i.a);a.c.registeredClasses.Label=m,p.c.push({relevant:p.b.heightXS,state:function(e,t){if(e instanceof m&&e.parent&&e.parent.isBaseSprite){var n=e.states.create(t);return n.properties.disabled=!0,n}return null}})},,,function(e,t,n){"use strict";const r=n(1283),i=n(1284),a=n(1285);function o(e){if("string"!=typeof e||1!==e.length)throw new TypeError("arrayFormatSeparator must be single character string")}function s(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function l(e,t){return t.decode?i(e):e}function c(e){const t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function u(e){const t=(e=c(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function d(e,t){return t.parseNumbers&&!Number.isNaN(Number(e))&&"string"==typeof e&&""!==e.trim()?e=Number(e):!t.parseBooleans||null===e||"true"!==e.toLowerCase()&&"false"!==e.toLowerCase()||(e="true"===e.toLowerCase()),e}function h(e,t){o((t=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},t)).arrayFormatSeparator);const n=function(e){let t;switch(e.arrayFormat){case"index":return(e,n,r)=>{t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return(e,n,r)=>{t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};case"comma":case"separator":return(t,n,r)=>{const i="string"==typeof n&&n.includes(e.arrayFormatSeparator),a="string"==typeof n&&!i&&l(n,e).includes(e.arrayFormatSeparator);n=a?l(n,e):n;const o=i||a?n.split(e.arrayFormatSeparator).map(t=>l(t,e)):null===n?n:l(n,e);r[t]=o};default:return(e,t,n)=>{void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}(t),r=Object.create(null);if("string"!=typeof e)return r;if(!(e=e.trim().replace(/^[?#&]/,"")))return r;for(const i of e.split("&")){let[e,o]=a(t.decode?i.replace(/\+/g," "):i,"=");o=void 0===o?null:["comma","separator"].includes(t.arrayFormat)?o:l(o,t),n(l(e,t),o,r)}for(const e of Object.keys(r)){const n=r[e];if("object"==typeof n&&null!==n)for(const e of Object.keys(n))n[e]=d(n[e],t);else r[e]=d(n,t)}return!1===t.sort?r:(!0===t.sort?Object.keys(r).sort():Object.keys(r).sort(t.sort)).reduce((e,t)=>{const n=r[t];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort((e,t)=>Number(e)-Number(t)).map(e=>t[e]):t}(n):e[t]=n,e},Object.create(null))}t.extract=u,t.parse=h,t.stringify=(e,t)=>{if(!e)return"";o((t=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},t)).arrayFormatSeparator);const n=n=>t.skipNull&&null==e[n]||t.skipEmptyString&&""===e[n],r=function(e){switch(e.arrayFormat){case"index":return t=>(n,r)=>{const i=n.length;return void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[",i,"]"].join("")]:[...n,[s(t,e),"[",s(i,e),"]=",s(r,e)].join("")]};case"bracket":return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,[s(t,e),"[]"].join("")]:[...n,[s(t,e),"[]=",s(r,e)].join("")];case"comma":case"separator":return t=>(n,r)=>null==r||0===r.length?n:0===n.length?[[s(t,e),"=",s(r,e)].join("")]:[[n,s(r,e)].join(e.arrayFormatSeparator)];default:return t=>(n,r)=>void 0===r||e.skipNull&&null===r||e.skipEmptyString&&""===r?n:null===r?[...n,s(t,e)]:[...n,[s(t,e),"=",s(r,e)].join("")]}}(t),i={};for(const t of Object.keys(e))n(t)||(i[t]=e[t]);const a=Object.keys(i);return!1!==t.sort&&a.sort(t.sort),a.map(n=>{const i=e[n];return void 0===i?"":null===i?s(n,t):Array.isArray(i)?i.reduce(r(n),[]).join("&"):s(n,t)+"="+s(i,t)}).filter(e=>e.length>0).join("&")},t.parseUrl=(e,t)=>{t=Object.assign({decode:!0},t);const[n,r]=a(e,"#");return Object.assign({url:n.split("?")[0]||"",query:h(u(e),t)},t&&t.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,t)}:{})},t.stringifyUrl=(e,n)=>{n=Object.assign({encode:!0,strict:!0},n);const r=c(e.url).split("?")[0]||"",i=t.extract(e.url),a=t.parse(i,{sort:!1}),o=Object.assign(a,e.query);let l=t.stringify(o,n);l&&(l="?"+l);let u=function(e){let t="";const n=e.indexOf("#");return-1!==n&&(t=e.slice(n)),t}(e.url);return e.fragmentIdentifier&&(u="#"+s(e.fragmentIdentifier,n)),`${r}${l}${u}`}},function(e,t,n){(function(t){var n;"undefined"!=typeof self&&self,n=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(17),i=n(18),a=n(19),o=n(45),s=n(46),l=n(47),c=n(48),u=n(49),d=n(12),h=n(32),p=n(33),f=n(31),m=n(1),g={Scope:m.Scope,create:m.create,find:m.find,query:m.query,register:m.register,Container:r.default,Format:i.default,Leaf:a.default,Embed:c.default,Scroll:o.default,Block:l.default,Inline:s.default,Text:u.default,Attributor:{Attribute:d.default,Class:h.default,Style:p.default,Store:f.default}};t.default=g},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return i(t,e),t}(Error);t.ParchmentError=a;var o,s={},l={},c={},u={};function d(e,t){var n;if(void 0===t&&(t=o.ANY),"string"==typeof e)n=u[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=u.text;else if("number"==typeof e)e&o.LEVEL&o.BLOCK?n=u.block:e&o.LEVEL&o.INLINE&&(n=u.inline);else if(e instanceof HTMLElement){var r=(e.getAttribute("class")||"").split(/\s+/);for(var i in r)if(n=l[r[i]])break;n=n||c[e.tagName]}return null==n?null:t&o.LEVEL&n.scope&&t&o.TYPE&n.scope?n:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(o=t.Scope||(t.Scope={})),t.create=function(e,t){var n=d(e);if(null==n)throw new a("Unable to create "+e+" blot");var r=n,i=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:r.create(t);return new r(i,t)},t.find=function e(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:r?e(n.parentNode,r):null},t.query=d,t.register=function e(){for(var t=[],n=0;n1)return t.map((function(t){return e(t)}));var r=t[0];if("string"!=typeof r.blotName&&"string"!=typeof r.attrName)throw new a("Invalid definition");if("abstract"===r.blotName)throw new a("Cannot register abstract class");if(u[r.blotName||r.attrName]=r,"string"==typeof r.keyName)s[r.keyName]=r;else if(null!=r.className&&(l[r.className]=r),null!=r.tagName){Array.isArray(r.tagName)?r.tagName=r.tagName.map((function(e){return e.toUpperCase()})):r.tagName=r.tagName.toUpperCase();var i=Array.isArray(r.tagName)?r.tagName:[r.tagName];i.forEach((function(e){null!=c[e]&&null!=r.className||(c[e]=r)}))}return r}},function(e,t,n){var r=n(51),i=n(11),a=n(3),o=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=a(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(i(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(r){(e(r)?t:n).push(r)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+o.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+o.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],r=o.iterator(this.ops),i=0;i0&&n.next(a.retain-s)}for(var c=new l(r);t.hasNext()||n.hasNext();)if("insert"===n.peekType())c.push(n.next());else if("delete"===t.peekType())c.push(t.next());else{var u=Math.min(t.peekLength(),n.peekLength()),d=t.next(u),h=n.next(u);if("number"==typeof h.retain){var p={};"number"==typeof d.retain?p.retain=u:p.insert=d.insert;var f=o.attributes.compose(d.attributes,h.attributes,"number"==typeof d.retain);if(f&&(p.attributes=f),c.push(p),!n.hasNext()&&i(c.ops[c.ops.length-1],p)){var m=new l(t.rest());return c.concat(m).chop()}}else"number"==typeof h.delete&&"number"==typeof d.retain&&c.push(h)}return c.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),a=new l,c=r(n[0],n[1],t),u=o.iterator(this.ops),d=o.iterator(e.ops);return c.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case r.INSERT:n=Math.min(d.peekLength(),t),a.push(d.next(n));break;case r.DELETE:n=Math.min(t,u.peekLength()),u.next(n),a.delete(n);break;case r.EQUAL:n=Math.min(u.peekLength(),d.peekLength(),t);var s=u.next(n),l=d.next(n);i(s.insert,l.insert)?a.retain(n,o.attributes.diff(s.attributes,l.attributes)):a.push(l).delete(n)}t-=n}})),a.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=o.iterator(this.ops),r=new l,i=0;n.hasNext();){if("insert"!==n.peekType())return;var a=n.peek(),s=o.length(a)-n.peekLength(),c="string"==typeof a.insert?a.insert.indexOf(t,s)-s:-1;if(c<0)r.push(n.next());else if(c>0)r.push(n.next(c));else{if(!1===e(r,n.next(1).attributes||{},i))return;i+=1,r=new l}}r.length()>0&&e(r,{},i)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=o.iterator(this.ops),r=o.iterator(e.ops),i=new l;n.hasNext()||r.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===r.peekType())if("insert"===r.peekType())i.push(r.next());else{var a=Math.min(n.peekLength(),r.peekLength()),s=n.next(a),c=r.next(a);if(s.delete)continue;c.delete?i.push(c):i.retain(a,o.attributes.transform(s.attributes,c.attributes,t))}else i.retain(o.length(n.next()));return i.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=o.iterator(this.ops),r=0;n.hasNext()&&r<=e;){var i=n.peekLength(),a=n.peekType();n.next(),"delete"!==a?("insert"===a&&(r0&&(e1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var r=this.clone();return 0===e?(this.parent.insertBefore(r,this),this):(this.parent.insertBefore(r,this.next),r)}var a=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},a}}]),t}(s.default.Block);function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,a.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:y(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[c.default,s.default.Embed,u.default],t.bubbleFormats=y,t.BlockEmbed=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{};if(v(this,e),this.options=_(t,r),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var i=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=u.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new h.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var r=n.selection.lastRange,i=r&&0===r.length?r.index:void 0;w.call(n,(function(){return n.editor.update(null,t,i)}),e)}));var a=this.clipboard.convert("
"+i+"


");this.setContents(a),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return a(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),f.default.level(e)}},{key:"find",value:function(e){return e.__quill||u.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var i=e.attrName||e.blotName;"string"==typeof i?this.register("formats/"+i,e,t):Object.keys(e).forEach((function(r){n.register(r,e[r],t)}))}else null==this.imports[e]||r||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?u.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),a(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var r=this,a=S(e,t,n),o=i(a,4);return e=o[0],t=o[1],n=o[3],w.call(this,(function(){return r.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return w.call(this,(function(){var r=n.getSelection(!0),i=new o.default;if(null==r)return i;if(u.default.query(e,u.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},e,t));else{if(0===r.length)return n.selection.format(e,t),i;i=n.editor.formatText(r.index,r.length,y({},e,t))}return n.setSelection(r,l.default.sources.SILENT),i}),r)}},{key:"formatLine",value:function(e,t,n,r,a){var o,s=this,l=S(e,t,n,r,a),c=i(l,4);return e=c[0],t=c[1],o=c[2],a=c[3],w.call(this,(function(){return s.editor.formatLine(e,t,o)}),a,e,0)}},{key:"formatText",value:function(e,t,n,r,a){var o,s=this,l=S(e,t,n,r,a),c=i(l,4);return e=c[0],t=c[1],o=c[2],a=c[3],w.call(this,(function(){return s.editor.formatText(e,t,o)}),a,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=S(e,t),r=i(n,2);return e=r[0],t=r[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,r){var i=this,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return w.call(this,(function(){return i.editor.insertEmbed(t,n,r)}),a,t)}},{key:"insertText",value:function(e,t,n,r,a){var o,s=this,l=S(e,0,n,r,a),c=i(l,4);return e=c[0],o=c[2],a=c[3],w.call(this,(function(){return s.editor.insertText(e,t,o)}),a,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var r=this,a=S(e,t,n),o=i(a,4);return e=o[0],t=o[1],n=o[3],w.call(this,(function(){return r.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){e=new o.default(e);var n=t.getLength(),r=t.editor.deleteText(0,n),i=t.editor.applyDelta(e),a=i.ops[i.ops.length-1];return null!=a&&"string"==typeof a.insert&&"\n"===a.insert[a.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:"setSelection",value:function(t,n,r){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var a=S(t,n,r),o=i(a,4);t=o[0],n=o[1],r=o[3],this.selection.setRange(new d.Range(t,n),r),r!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new o.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return w.call(this,(function(){return e=new o.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function _(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==x.DEFAULTS.theme){if(t.theme=x.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=m.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=x.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},x.DEFAULTS,{modules:r},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function w(e,t,n,r){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new o.default;var i=null==n?null:this.getSelection(),a=this.editor.delta,s=e();if(null!=i&&(!0===n&&(n=i.index),null==r?i=T(i,s,t):0!==r&&(i=T(i,n,r,t)),this.setSelection(i,l.default.sources.SILENT)),s.length()>0){var c,u,d=[l.default.events.TEXT_CHANGE,s,a,t];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(u=this.emitter).emit.apply(u,d)}return s}function S(e,t,n,i,a){var o={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(a=i,i=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(a=i,i=n,n=t,t=0),"object"===(void 0===n?"undefined":r(n))?(o=n,a=i):"string"==typeof n&&(null!=i?o[n]=i:a=n),[e,t,o,a=a||l.default.sources.API]}function T(e,t,n,r){if(null==e)return null;var a=void 0,s=void 0;if(t instanceof o.default){var c=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,r!==l.default.sources.USER)})),u=i(c,2);a=u[0],s=u[1]}else{var h=[e.index,e.index+e.length].map((function(e){return e=0?e+n:Math.max(t,e+n)})),p=i(h,2);a=p[0],s=p[1]}return new d.Range(a,s-a)}x.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},x.events=l.default.events,x.sources=l.default.sources,x.version="1.3.7",x.imports={delta:o.default,parchment:u.default,"core/module":c.default,"core/theme":m.default},t.expandConfig=_,t.overload=S,t.default=x},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var r=t.order.indexOf(e),i=t.order.indexOf(n);return r>=0||i>=0?r-i:e===n?0:e1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:{};r(this,e),this.quill=t,this.options=n};i.DEFAULTS={},t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=["error","warn","log","info"],i="warn";function a(e){if(r.indexOf(e)<=r.indexOf(i)){for(var t,n=arguments.length,a=Array(n>1?n-1:0),o=1;o=0;c--)if(d[c]!=h[c])return!1;for(c=d.length-1;c>=0;c--)if(u=d[c],!o(e[u],t[u],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var i=r.Scope.TYPE&r.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&r.Scope.LEVEL|i:this.scope=r.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=r.query(e,r.Scope.BLOT&(this.scope|r.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n=e+n)){var o=this.newlineIndex(e,!0)+1,l=a-o+1,c=this.isolate(o,l),u=c.next;c.format(r,i),u instanceof t&&u.formatAt(0,e-o+n-l,r,i)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var i=this.descendant(u.default,e),a=r(i,2),o=a[0],s=a[1];o.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB=" ",t.Code=m,t.default=g},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n=a&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var f=t.scroll.line(e),m=i(f,2),y=m[0],v=m[1],b=(0,g.default)({},(0,d.bubbleFormats)(y));if(y instanceof h.default){var x=y.descendant(l.default.Leaf,v),_=i(x,1)[0];b=(0,g.default)(b,(0,d.bubbleFormats)(_))}u=s.default.attributes.diff(b,u)||{}}else if("object"===r(o.insert)){var w=Object.keys(o.insert)[0];if(null==w)return e;t.scroll.insertAt(e,w,o.insert[w])}a+=c}return Object.keys(u).forEach((function(n){t.scroll.formatAt(e,c,n,u[n])})),e+c}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new o.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(r).forEach((function(i){if(null==n.scroll.whitelist||n.scroll.whitelist[i]){var a=n.scroll.lines(e,Math.max(t,1)),o=t;a.forEach((function(t){var a=t.length();if(t instanceof c.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+o)-s+1;t.formatAt(s,l,i,r[i])}else t.format(i,r[i]);o-=a}))}})),this.scroll.optimize(),this.update((new o.default).retain(e).retain(t,(0,f.default)(r)))}},{key:"formatText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t,i,r[i])})),this.update((new o.default).retain(e).retain(t,(0,f.default)(r)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new o.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],r=[];0===t?this.scroll.path(e).forEach((function(e){var t=i(e,1)[0];t instanceof h.default?n.push(t):t instanceof l.default.Leaf&&r.push(t)})):(n=this.scroll.lines(e,t),r=this.scroll.descendants(l.default.Leaf,e,t));var a=[n,r].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=x((0,d.bubbleFormats)(n),t)}return t}));return g.default.apply(g.default,a)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new o.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(r).forEach((function(i){n.scroll.formatAt(e,t.length,i,r[i])})),this.update((new o.default).retain(e).insert(t,(0,f.default)(r)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===h.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),r=this.scroll.line(e+t),a=i(r,2),s=a[0],l=a[1],u=0,d=new o.default;null!=s&&(u=s instanceof c.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+u-1).insert("\n"));var h=this.getContents(e,t+u).diff((new o.default).insert(n).concat(d)),p=(new o.default).retain(e).concat(h);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(v)&&l.default.find(t[0].target)){var i=l.default.find(t[0].target),a=(0,d.bubbleFormats)(i),s=i.offset(this.scroll),c=t[0].oldValue.replace(u.default.CONTENTS,""),h=(new o.default).insert(c),p=(new o.default).insert(i.value()),f=(new o.default).retain(s).concat(h.diff(p,n));e=f.reduce((function(e,t){return t.insert?e.insert(t.insert,a):e.push(t)}),new o.default),this.delta=r.compose(e)}else this.delta=this.getDelta(),e&&(0,m.default)(r.compose(e),this.delta)||(e=r.diff(this.delta,n));return e}}]),e}();function x(e,t){return Object.keys(t).reduce((function(n,r){return null==e[r]||(t[r]===e[r]?n[r]=t[r]:Array.isArray(t[r])?t[r].indexOf(e[r])<0&&(n[r]=t[r].concat([e[r]])):n[r]=[t[r],e[r]]),n}),{})}t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=n},f=function(){function e(t,n){var r=this;d(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=a.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){r.mouseDown||setTimeout(r.update.bind(r,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&r.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(r.hasFocus()){var e=r.getNativeRange();null!=e&&e.start.node!==r.cursor.textNode&&r.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{r.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,i=n.startNode,a=n.startOffset,o=n.endNode,s=n.endOffset;r.setNativeRange(i,a,o,s)}})),this.update(l.default.sources.SILENT)}return i(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!a.default.query(e,a.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var r=a.default.find(n.start.node,!1);if(null==r)return;if(r instanceof a.default.Leaf){var i=r.split(n.start.offset);r.parent.insertBefore(this.cursor,i)}else r.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var i=void 0,a=this.scroll.leaf(e),o=r(a,2),s=o[0],l=o[1];if(null==s)return null;var c=s.position(l,!0),u=r(c,2);i=u[0],l=u[1];var d=document.createRange();if(t>0){d.setStart(i,l);var h=this.scroll.leaf(e+t),p=r(h,2);if(s=p[0],l=p[1],null==s)return null;var f=s.position(l,!0),m=r(f,2);return i=m[0],l=m[1],d.setEnd(i,l),d.getBoundingClientRect()}var g="left",y=void 0;return i instanceof Text?(l0&&(g="right")),{bottom:y.top+y.height,height:y.height,left:y[g],right:y[g],top:y.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return h.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var i=n.map((function(e){var n=r(e,2),i=n[0],o=n[1],s=a.default.find(i,!0),l=s.offset(t.scroll);return 0===o?l:s instanceof a.default.Container?l+s.length():l+s.index(i,o)})),o=Math.min(Math.max.apply(Math,u(i)),this.scroll.length()-1),s=Math.min.apply(Math,[o].concat(u(i)));return new p(s,o-s)}},{key:"normalizeNative",value:function(e){if(!m(this.root,e.startContainer)||!e.collapsed&&!m(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],i=[],a=this.scroll.length();return n.forEach((function(e,n){e=Math.min(a-1,e);var o,s=t.scroll.leaf(e),l=r(s,2),c=l[0],u=l[1],d=c.position(u,0!==n),h=r(d,2);o=h[0],u=h[1],i.push(o,u)})),i.length<2&&(i=i.concat(i)),i}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var i=this.scroll.length()-1,a=this.scroll.line(Math.min(t.index,i)),o=r(a,1)[0],s=o;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,i));s=r(l,1)[0]}if(null!=o&&null!=s){var c=e.getBoundingClientRect();n.topc.bottom&&(e.scrollTop+=n.bottom-c.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,i=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(h.info("setNativeRange",e,t,n,r),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var a=document.getSelection();if(null!=a)if(null!=e){this.hasFocus()||this.root.focus();var o=(this.getNativeRange()||{}).native;if(null==o||i||e!==o.startContainer||t!==o.startOffset||n!==o.endContainer||r!==o.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(r=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,r),a.removeAllRanges(),a.addRange(s)}}else a.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),h.info("setRange",e),null!=e){var r=this.rangeToNative(e);this.setNativeRange.apply(this,u(r).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),i=r(n,2),a=i[0],c=i[1];if(this.lastRange=a,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var u;!this.composing&&null!=c&&c.native.collapsed&&c.start.node!==this.cursor.textNode&&this.cursor.restore();var d,h=[l.default.events.SELECTION_CHANGE,(0,o.default)(this.lastRange),(0,o.default)(t),e];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(h)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,h)}}}]),e}();function m(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=o.Scope.INLINE_BLOT,t}(a.default);t.default=s},function(e,t,n){var r=n(11),i=n(3),a={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=i(!0,{},t);for(var a in n||(r=Object.keys(r).reduce((function(e,t){return null!=r[t]&&(e[t]=r[t]),e}),{})),e)void 0!==e[a]&&void 0===t[a]&&(r[a]=e[a]);return Object.keys(r).length>0?r:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,i){return r(e[i],t[i])||(n[i]=void 0===t[i]?null:t[i]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var r=Object.keys(t).reduce((function(n,r){return void 0===e[r]&&(n[r]=t[r]),n}),{});return Object.keys(r).length>0?r:void 0}}},iterator:function(e){return new o(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function o(e){this.ops=e,this.index=0,this.offset=0}o.prototype.hasNext=function(){return this.peekLength()<1/0},o.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,r=a.length(t);if(e>=r-n?(e=r-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var i={};return t.attributes&&(i.attributes=t.attributes),"number"==typeof t.retain?i.retain=e:"string"==typeof t.insert?i.insert=t.insert.substr(n,e):i.insert=t.insert,i}return{retain:1/0}},o.prototype.peek=function(){return this.ops[this.index]},o.prototype.peekLength=function(){return this.ops[this.index]?a.length(this.ops[this.index])-this.offset:1/0},o.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},o.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),r=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(r)}return[]},e.exports=a},function(e,n){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var n,r,i;try{n=Map}catch(e){n=function(){}}try{r=Set}catch(e){r=function(){}}try{i=Promise}catch(e){i=function(){}}function a(o,l,c,u,d){"object"==typeof l&&(c=l.depth,u=l.prototype,d=l.includeNonEnumerable,l=l.circular);var h=[],p=[],f=void 0!==t;return void 0===l&&(l=!0),void 0===c&&(c=1/0),function o(c,m){if(null===c)return null;if(0===m)return c;var g,y;if("object"!=typeof c)return c;if(e(c,n))g=new n;else if(e(c,r))g=new r;else if(e(c,i))g=new i((function(e,t){c.then((function(t){e(o(t,m-1))}),(function(e){t(o(e,m-1))}))}));else if(a.__isArray(c))g=[];else if(a.__isRegExp(c))g=new RegExp(c.source,s(c)),c.lastIndex&&(g.lastIndex=c.lastIndex);else if(a.__isDate(c))g=new Date(c.getTime());else{if(f&&t.isBuffer(c))return g=t.allocUnsafe?t.allocUnsafe(c.length):new t(c.length),c.copy(g),g;e(c,Error)?g=Object.create(c):void 0===u?(y=Object.getPrototypeOf(c),g=Object.create(y)):(g=Object.create(u),y=u)}if(l){var v=h.indexOf(c);if(-1!=v)return p[v];h.push(c),p.push(g)}for(var b in e(c,n)&&c.forEach((function(e,t){var n=o(t,m-1),r=o(e,m-1);g.set(n,r)})),e(c,r)&&c.forEach((function(e){var t=o(e,m-1);g.add(t)})),c){var x;y&&(x=Object.getOwnPropertyDescriptor(y,b)),x&&null==x.set||(g[b]=o(c[b],m-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(c);for(b=0;b<_.length;b++){var w=_[b];(!(T=Object.getOwnPropertyDescriptor(c,w))||T.enumerable||d)&&(g[w]=o(c[w],m-1),T.enumerable||Object.defineProperty(g,w,{enumerable:!1}))}}if(d){var S=Object.getOwnPropertyNames(c);for(b=0;b0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var f=s.newlineIndex(s.length(),!0);if(f>-1&&(s=s.split(f+1))===p)return void this.optimize()}else if(p instanceof d.default){var m=p.newlineIndex(0);m>-1&&p.split(m+1)}var g=p.children.head instanceof u.default?null:p.children.head;s.moveChildren(p,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,r,i){(null==this.whitelist||this.whitelist[r])&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,r,i),this.optimize())}},{key:"insertAt",value:function(e,n,r){if(null==r||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==r||null==o.default.query(n,o.default.Scope.BLOCK)){var i=o.default.create(this.statics.defaultChild);this.appendChild(i),null==r&&n.endsWith("\n")&&(n=n.slice(0,-1)),i.insertAt(0,n,r)}else{var s=o.default.create(n,r);this.appendChild(s)}else a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,r);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===o.default.Scope.INLINE_BLOT){var r=o.default.create(this.statics.defaultChild);r.appendChild(e),e=r}a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(f,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,r){var i=[],a=r;return t.children.forEachAt(n,r,(function(t,n,r){f(t)?i.push(t):t instanceof o.default.Container&&(i=i.concat(e(t,n,a))),a-=r})),i};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(o.default.Scroll);m.blotName="scroll",m.className="ql-editor",m.tagName="DIV",m.defaultChild="block",m.allowedChildren=[c.default,l.BlockEmbed,h.default],t.default=m},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=P(e);if(null==r||null==r.key)return y.warn("Attempted to add invalid keyboard binding",r);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),r=(0,l.default)(r,t,n),this.bindings[r.key]=this.bindings[r.key]||[],this.bindings[r.key].push(r)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var a=n.which||n.keyCode,o=(e.bindings[a]||[]).filter((function(e){return t.match(n,e)}));if(0!==o.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var c=e.quill.getLine(l.index),u=i(c,2),h=u[0],p=u[1],f=e.quill.getLeaf(l.index),m=i(f,2),g=m[0],y=m[1],v=0===l.length?[g,y]:e.quill.getLeaf(l.index+l.length),b=i(v,2),x=b[0],_=b[1],w=g instanceof d.default.Text?g.value().slice(0,y):"",S=x instanceof d.default.Text?x.value().slice(_):"",T={collapsed:0===l.length,empty:0===l.length&&h.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:w,suffix:S};o.some((function(t){if(null!=t.collapsed&&t.collapsed!==T.collapsed)return!1;if(null!=t.empty&&t.empty!==T.empty)return!1;if(null!=t.offset&&t.offset!==T.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==T.format[e]})))return!1}else if("object"===r(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=T.format[e]:!1===t.format[e]?null==T.format[e]:(0,s.default)(t.format[e],T.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(T.prefix)||null!=t.suffix&&!t.suffix.test(T.suffix)||!0===t.handler.call(e,l,T))}))&&n.preventDefault()}}}}))}}]),t}(f.default);function x(e,t){var n,r=e===b.keys.LEFT?"prefix":"suffix";return g(n={key:e,shiftKey:t,altKey:null},r,/^$/),g(n,"handler",(function(n){var r=n.index;e===b.keys.RIGHT&&(r+=n.length+1);var a=this.quill.getLeaf(r);return!(i(a,1)[0]instanceof d.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index-1,h.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,h.default.sources.USER):this.quill.setSelection(n.index+n.length+1,h.default.sources.USER),1))})),n}function _(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),r=i(n,1)[0],a={};if(0===t.offset){var o=this.quill.getLine(e.index-1),s=i(o,1)[0];if(null!=s&&s.length()>1){var l=r.formats(),c=this.quill.getFormat(e.index-1,1);a=u.default.attributes.diff(l,c)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,h.default.sources.USER),Object.keys(a).length>0&&this.quill.formatLine(e.index-d,d,a,h.default.sources.USER),this.quill.focus()}}function w(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var r={},a=0,o=this.quill.getLine(e.index),s=i(o,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),c=i(l,1)[0];if(c){var d=s.formats(),p=this.quill.getFormat(e.index,1);r=u.default.attributes.diff(d,p)||{},a=c.length()}}this.quill.deleteText(e.index,n,h.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index+a-1,n,r,h.default.sources.USER)}}function S(e){var t=this.quill.getLines(e),n={};if(t.length>1){var r=t[0].formats(),i=t[t.length-1].formats();n=u.default.attributes.diff(i,r)||{}}this.quill.deleteText(e,h.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,h.default.sources.USER),this.quill.setSelection(e.index,h.default.sources.SILENT),this.quill.focus()}function T(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var r=Object.keys(t.format).reduce((function(e,n){return d.default.query(n,d.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",r,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==r[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],h.default.sources.USER))}))}function O(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=d.default.query("code-block"),r=t.index,a=t.length,o=this.quill.scroll.descendant(n,r),s=i(o,2),l=s[0],c=s[1];if(null!=l){var u=this.quill.getIndex(l),p=l.newlineIndex(c,!0)+1,f=l.newlineIndex(u+c+a),m=l.domNode.textContent.slice(p,f).split("\n");c=0,m.forEach((function(t,i){e?(l.insertAt(p+c,n.TAB),c+=n.TAB.length,0===i?r+=n.TAB.length:a+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(p+c,n.TAB.length),c-=n.TAB.length,0===i?r-=n.TAB.length:a-=n.TAB.length),c+=t.length+1})),this.quill.update(h.default.sources.USER),this.quill.setSelection(r,a,h.default.sources.SILENT)}}}}function C(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],h.default.sources.USER)}}}function P(e){if("string"==typeof e||"number"==typeof e)return P({key:e});if("object"===(void 0===e?"undefined":r(e))&&(e=(0,o.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[v]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:C("bold"),italic:C("italic"),underline:C("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",h.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",h.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",h.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,h.default.sources.USER)}},"indent code-block":O(!0),"outdent code-block":O(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,h.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new c.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,h.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,h.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,h.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],a=n[1],o=(0,l.default)({},r.formats(),{list:"checked"}),s=(new c.default).retain(e.index).insert("\n",o).retain(r.length()-a-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),r=i(n,2),a=r[0],o=r[1],s=(new c.default).retain(e.index).insert("\n",t.format).retain(a.length()-o-1).retain(1,{header:null});this.quill.updateContents(s,h.default.sources.USER),this.quill.setSelection(e.index+1,h.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,r=this.quill.getLine(e.index),a=i(r,2),o=a[0],s=a[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",h.default.sources.USER),this.quill.history.cutoff();var u=(new c.default).retain(e.index-s).delete(n+1).retain(o.length()-2-s).retain(1,{list:l});this.quill.updateContents(u,h.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,h.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=i(t,2),r=n[0],a=n[1],o=(new c.default).retain(e.index+r.length()-a-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(o,h.default.sources.USER)}},"embed left":x(b.keys.LEFT,!1),"embed left shift":x(b.keys.LEFT,!0),"embed right":x(b.keys.RIGHT,!1),"embed right shift":x(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=function(){function e(e,t){for(var n=0;n-1}c.blotName="link",c.tagName="A",c.SANITIZED_URL="about:blank",c.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=c,t.sanitize=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":r(Event))){var i=document.createEvent("Event");i.initEvent("change",!0,!0),this.select.dispatchEvent(i)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=y(n(0)),i=y(n(5)),a=n(4),o=y(a),s=y(n(16)),l=y(n(25)),c=y(n(24)),u=y(n(35)),d=y(n(6)),h=y(n(22)),p=y(n(7)),f=y(n(55)),m=y(n(42)),g=y(n(23));function y(e){return e&&e.__esModule?e:{default:e}}i.default.register({"blots/block":o.default,"blots/block/embed":a.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":c.default,"blots/embed":u.default,"blots/inline":d.default,"blots/scroll":h.default,"blots/text":p.default,"modules/clipboard":f.default,"modules/history":m.default,"modules/keyboard":g.default}),r.default.register(o.default,s.default,c.default,d.default,h.default,p.default),t.default=i.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.domNode=e,this.domNode[r.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new r.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return r.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[r.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,i){var a=this.isolate(e,t);if(null!=r.query(n,r.Scope.BLOT)&&i)a.wrap(n,i);else if(null!=r.query(n,r.Scope.ATTRIBUTE)){var o=r.create(this.statics.scope);a.wrap(o),o.format(n,i)}},e.prototype.insertAt=function(e,t,n){var i=null==n?r.create("text",t):r.create(t,n),a=this.split(e);this.parent.insertBefore(i,a)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[r.DATA_KEY]&&delete this.domNode[r.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?r.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?r.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(12),i=n(32),a=n(33),o=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=r.default.keys(this.domNode),n=i.default.keys(this.domNode),s=a.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=o.query(t,o.Scope.ATTRIBUTE);n instanceof r.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var r=t.attributes[n].value(t.domNode);e.format(n,r)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function a(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){a(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(a(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function a(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&("font-family"===this.keyName&&(/\d/.test(t)||/[.,!?]/.test(t))&&-1===t.indexOf('"')&&(t='"'+t+'"'),e.style[a(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[a(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t,n=e.style[a(this.keyName)];return"font-family"===this.keyName&&(n=(t=n).indexOf(",")>-1?t.split(",")[0]:t),n=n.replace(/""/g,'"'),this.canAdd(e,n)?n:""},t}(n(12).default);t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nr&&this.stack.undo.length>0){var i=this.stack.undo.pop();n=n.compose(i.undo),e=i.redo.compose(e)}else this.lastRecorded=r;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(o(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=i.default.query(e,i.default.Scope.BLOCK)})))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var r=function(){function e(e,t){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var r=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,o.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,o.default.sources.USER)),this.quill.root.scrollTop=r;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var i=this.quill.getSelection(!0);if(null!=i){var a=i.index+i.length;this.quill.insertEmbed(a,this.root.getAttribute("data-mode"),n,o.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(a+1," ",o.default.sources.USER),this.quill.setSelection(a+2,o.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(h.default);function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var r=document.createElement("option");t===n?r.setAttribute("selected","selected"):r.setAttribute("value",t),e.appendChild(r)}))}t.BaseTooltip=S,t.default=w},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,r=this.iterator();n=r();){var i=n.length();if(eo?n(r,e-o,Math.min(t,o+l-e)):n(r,0,Math.min(l,e+t-o)),o+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,r=this.iterator();n=r();)t=e(t,n);return t},e}();t.default=r},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(17),o=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,s),n.attach(),n}return i(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,r,i){this.update(),e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){this.update(),e.prototype.insertAt.call(this,t,n,r)},t.prototype.optimize=function(t,n){var r=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var i=[].slice.call(this.observer.takeRecords());i.length>0;)t.push(i.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==r&&null!=e.domNode.parentNode&&(null==e.domNode[o.DATA_KEY].mutations&&(e.domNode[o.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[o.DATA_KEY]&&null!=e.domNode[o.DATA_KEY].mutations&&(e instanceof a.default&&e.children.forEach(l),e.optimize(n))},c=t,u=0;c.length>0;u+=1){if(u>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(c.forEach((function(e){var t=o.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(o.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=o.find(e,!1);s(t,!1),t instanceof a.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),i=(c=[].slice.call(this.observer.takeRecords())).slice();i.length>0;)t.push(i.pop())}},t.prototype.update=function(t,n){var r=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=o.find(e.target,!0);return null==t?null:null==t.domNode[o.DATA_KEY].mutations?(t.domNode[o.DATA_KEY].mutations=[e],t):(t.domNode[o.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==r&&null!=e.domNode[o.DATA_KEY]&&e.update(e.domNode[o.DATA_KEY].mutations||[],n)})),null!=this.domNode[o.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[o.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="DIV",t}(a.default);t.default=l},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),o=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,r){var i=this;n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):(this.children.forEach((function(e){e instanceof a.default||(e=e.wrap(t.blotName,!0)),i.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,r,i){null!=this.formats()[r]||o.query(r,o.Scope.ATTRIBUTE)?this.isolate(t,n).format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var r=this.formats();if(0===Object.keys(r).length)return this.unwrap();var i=this.next;i instanceof t&&i.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(r,i.formats())&&(i.moveChildren(this),i.remove())},t.blotName="inline",t.scope=o.Scope.INLINE_BLOT,t.tagName="SPAN",t}(a.default);t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(18),o=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(n){var r=o.query(t.blotName).tagName;if(n.tagName!==r)return e.formats.call(this,n)},t.prototype.format=function(n,r){null!=o.query(n,o.Scope.BLOCK)&&(n!==this.statics.blotName||r?e.prototype.format.call(this,n,r):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,r,i){null!=o.query(r,o.Scope.BLOCK)?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.insertAt=function(t,n,r){if(null==r||null!=o.query(n,o.Scope.INLINE))e.prototype.insertAt.call(this,t,n,r);else{var i=this.split(t),a=o.create(n,r);i.parent.insertBefore(a,i)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=o.Scope.BLOCK_BLOT,t.tagName="P",t}(a.default);t.default=s},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return i(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,r,i){0===t&&n===this.length()?this.format(r,i):e.prototype.formatAt.call(this,t,n,r,i)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=a},function(e,t,n){"use strict";var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var a=n(19),o=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return i(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,r){null==r?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,r)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=o.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=o.Scope.INLINE_BLOT,t}(a.default);t.default=s},function(e,t,n){"use strict";var r=document.createElement("div");if(r.classList.toggle("test-class",!1),r.classList.contains("test-class")){var i=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:i.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var r=n.indexOf(e,t);return-1!==r&&r===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),r=n.length>>>0,i=arguments[1],a=0;at.length?e:t,l=e.length>t.length?t:e,c=s.indexOf(l);if(-1!=c)return o=[[1,s.substring(0,c)],[0,l],[1,s.substring(c+l.length)]],e.length>t.length&&(o[0][0]=o[2][0]=-1),o;if(1==l.length)return[[-1,e],[1,t]];var u=function(e,t){var n=e.length>t.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,s,l,d]:null}var s,l,c,u,d,h=o(n,r,Math.ceil(n.length/4)),p=o(n,r,Math.ceil(n.length/2));if(!h&&!p)return null;s=p?h&&h[4].length>p[4].length?h:p:h,e.length>t.length?(l=s[0],c=s[1],u=s[2],d=s[3]):(u=s[0],d=s[1],l=s[2],c=s[3]);var f=s[4];return[l,c,u,d,f]}(e,t);if(u){var d=u[0],h=u[1],p=u[2],f=u[3],m=u[4],g=n(d,p),y=n(h,f);return g.concat([[0,m]],y)}return function(e,t){for(var n=e.length,i=t.length,a=Math.ceil((n+i)/2),o=a,s=2*a,l=new Array(s),c=new Array(s),u=0;un)f+=2;else if(x>i)p+=2;else if(h&&(S=o+d-v)>=0&&S=_)return r(e,t,O,x)}}for(var w=-y+m;w<=y-g;w+=2){for(var S=o+w,T=(_=w==-y||w!=y&&c[S-1]n)g+=2;else if(T>i)m+=2;else if(!h&&(b=o+d-w)>=0&&b=(_=n-_))return r(e,t,O,x)}}}return[[-1,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-l),t=t.substring(0,t.length-l));return c&&d.unshift([0,c]),u&&d.push([0,u]),function e(t){t.push([0,""]);for(var n,r=0,o=0,s=0,l="",c="";r1?(0!==o&&0!==s&&(0!==(n=i(c,l))&&(r-o-s>0&&0==t[r-o-s-1][0]?t[r-o-s-1][1]+=c.substring(0,n):(t.splice(0,0,[0,c.substring(0,n)]),r++),c=c.substring(n),l=l.substring(n)),0!==(n=a(c,l))&&(t[r][1]=c.substring(c.length-n)+t[r][1],c=c.substring(0,c.length-n),l=l.substring(0,l.length-n))),0===o?t.splice(r-s,o+s,[1,c]):0===s?t.splice(r-o,o+s,[-1,l]):t.splice(r-o-s,o+s,[-1,l],[1,c]),r=r-o-s+(o?1:0)+(s?1:0)+1):0!==r&&0==t[r-1][0]?(t[r-1][1]+=t[r][1],t.splice(r,1)):r++,s=0,o=0,l="",c=""}""===t[t.length-1][1]&&t.pop();var u=!1;for(r=1;r0&&r.splice(i+2,0,[o[0],l]),s(r,i,3)}return e}(d,o)),d=function(e){for(var t=!1,n=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},r=2;r=55296&&i.charCodeAt(i.length-1)<=56319&&-1===e[r-1][0]&&n(e[r-1][1])&&1===e[r][0]&&n(e[r][1])&&(t=!0,e[r-1][1]=e[r-2][1].slice(-1)+e[r-1][1],e[r][1]=e[r-2][1].slice(-1)+e[r][1],e[r-2][1]=e[r-2][1].slice(0,-1));var i;if(!t)return e;var a=[];for(r=0;r0&&a.push(e[r]);return a}(d)}function r(e,t,r,i){var a=e.substring(0,r),o=t.substring(0,i),s=e.substring(r),l=t.substring(i),c=n(a,o),u=n(s,l);return c.concat(u)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,r=Math.min(e.length,t.length),i=r,a=0;n=0&&r>=t-1;r--)if(r+1=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=P(t,n)),parseFloat(r.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!k(t,"\n"))return t;for(var r=-1,i=e.parentNode;!i.classList.contains("ql-clipboard");)"list"===(l.default.query(i)||{}).blotName&&(r+=1),i=i.parentNode;return r<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:r}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new s.default}]],T=[h.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),O=[h.AlignStyle,p.BackgroundStyle,m.ColorStyle,g.DirectionStyle,y.FontStyle,v.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return r.quill.root.addEventListener("paste",r.onPaste.bind(r)),r.container=r.quill.addContainer("ql-clipboard"),r.container.setAttribute("contenteditable",!0),r.container.setAttribute("tabindex",-1),r.matchers=[],S.concat(r.options.matchers).forEach((function(e){var t=i(e,2),a=t[0],o=t[1];(n.matchVisual||o!==N)&&r.addMatcher(a,o)})),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\<"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[f.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,x({},f.default.blotName,t[f.default.blotName]))}var r=this.prepareMatching(),a=i(r,2),o=a[0],l=a[1],c=function e(t,n,r){return t.nodeType===t.TEXT_NODE?r.reduce((function(e,n){return n(t,e)}),new s.default):t.nodeType===t.ELEMENT_NODE?[].reduce.call(t.childNodes||[],(function(i,a){var o=e(a,n,r);return a.nodeType===t.ELEMENT_NODE&&(o=n.reduce((function(e,t){return t(a,e)}),o),o=(a[w]||[]).reduce((function(e,t){return t(a,e)}),o)),i.concat(o)}),new s.default):new s.default}(this.container,o,l);return k(c,"\n")&&null==c.ops[c.ops.length-1].attributes&&(c=c.compose((new s.default).retain(c.length()-1).delete(1))),_.log("convert",this.container.innerHTML,c),this.container.innerHTML="",c}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:c.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,c.default.sources.SILENT);else{var r=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(r),n),this.quill.setSelection(e+r.length(),c.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),r=(new s.default).retain(n.index),i=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(c.default.sources.SILENT),setTimeout((function(){r=r.concat(t.convert()).delete(n.length),t.quill.updateContents(r,c.default.sources.USER),t.quill.setSelection(r.length()-n.length,c.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=i,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(r){var a=i(r,2),o=a[0],s=a[1];switch(o){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(o),(function(e){e[w]=e[w]||[],e[w].push(s)}))}})),[t,n]}}]),t}(d.default);function P(e,t,n){return"object"===(void 0===t?"undefined":r(t))?Object.keys(t).reduce((function(e,n){return P(e,n,t[n])}),e):e.reduce((function(e,r){return r.attributes&&r.attributes[t]?e.push(r):e.insert(r.insert,(0,o.default)({},x({},t,n),r.attributes))}),new s.default)}function E(e){return e.nodeType!==Node.ELEMENT_NODE?{}:e["__ql-computed-style"]||(e["__ql-computed-style"]=window.getComputedStyle(e))}function k(e,t){for(var n="",r=e.ops.length-1;r>=0&&n.length-1}function j(e,t,n){return P(n,e,!0)}function I(e,t){var n=l.default.Attributor.Attribute.keys(e),r=l.default.Attributor.Class.keys(e),i=l.default.Attributor.Style.keys(e),a={};return n.concat(r).concat(i).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(a[n.attrName]=n.value(e),a[n.attrName])||(null==(n=T[t])||n.attrName!==t&&n.keyName!==t||(a[n.attrName]=n.value(e)||void 0),null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(n=O[t],a[n.attrName]=n.value(e)||void 0))})),Object.keys(a).length>0&&(t=P(t,a)),t}function M(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var r={},i=n.value(e);null!=i&&(r[n.blotName]=i,t=(new s.default).insert(r,n.formats(e)))}else"function"==typeof n.formats&&(t=P(t,n.blotName,n.formats(e)));return t}function D(e,t){return k(t,"\n")||(A(e)||t.length()>0&&e.nextSibling&&A(e.nextSibling))&&t.insert("\n"),t}function N(e,t){if(A(e)&&null!=e.nextElementSibling&&!k(t,"\n\n")){var n=e.offsetHeight+parseFloat(E(e).marginTop)+parseFloat(E(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function R(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!E(e.parentNode).whiteSpace.startsWith("pre")){var r=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,r.bind(r,!0)),(null==e.previousSibling&&A(e.parentNode)||null!=e.previousSibling&&A(e.previousSibling))&&(n=n.replace(/^\s+/,r.bind(r,!1))),(null==e.nextSibling&&A(e.parentNode)||null!=e.nextSibling&&A(e.nextSibling))&&(n=n.replace(/\s+$/,r.bind(r,!1)))}return t.insert(n)}C.DEFAULTS={matchers:[],matchVisual:!0},t.default=C,t.matchAttributor=I,t.matchBlot=M,t.matchNewline=D,t.matchSpacing=N,t.matchText=R},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;nr.right&&(a=r.right-i.right,this.root.style.left=t+a+"px"),i.leftr.bottom){var o=i.bottom-i.top,s=e.bottom-e.top+o;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return a}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{!r&&s.return&&s.return()}finally{if(i)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},a=function(){function e(e,t){for(var n=0;n','','',''].join(""),t.default=v},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=N(n(29)),i=n(36),a=n(38),o=n(64),s=N(n(65)),l=N(n(66)),c=n(67),u=N(c),d=n(37),h=n(26),p=n(39),f=n(40),m=N(n(56)),g=N(n(68)),y=N(n(27)),v=N(n(69)),b=N(n(70)),x=N(n(71)),_=N(n(72)),w=N(n(73)),S=n(13),T=N(S),O=N(n(74)),C=N(n(75)),P=N(n(57)),E=N(n(41)),k=N(n(28)),A=N(n(59)),j=N(n(60)),I=N(n(61)),M=N(n(108)),D=N(n(62));function N(e){return e&&e.__esModule?e:{default:e}}r.default.register({"attributors/attribute/direction":a.DirectionAttribute,"attributors/class/align":i.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":h.ColorClass,"attributors/class/direction":a.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":f.SizeClass,"attributors/style/align":i.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":h.ColorStyle,"attributors/style/direction":a.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":f.SizeStyle},!0),r.default.register({"formats/align":i.AlignClass,"formats/direction":a.DirectionClass,"formats/indent":o.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":h.ColorStyle,"formats/font":p.FontClass,"formats/size":f.SizeClass,"formats/blockquote":s.default,"formats/code-block":T.default,"formats/header":l.default,"formats/list":u.default,"formats/bold":m.default,"formats/code":S.Code,"formats/italic":g.default,"formats/link":y.default,"formats/script":v.default,"formats/strike":b.default,"formats/underline":x.default,"formats/image":_.default,"formats/video":w.default,"formats/list/item":c.ListItem,"modules/formula":O.default,"modules/syntax":C.default,"modules/toolbar":P.default,"themes/bubble":M.default,"themes/snow":D.default,"ui/icons":E.default,"ui/picker":k.default,"ui/icon-picker":j.default,"ui/color-picker":A.default,"ui/tooltip":I.default},!0),t.default=r.default},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var r,i=function(){function e(e,t){for(var n=0;n0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof h)i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var r=null==n?this.length():n.offset(this),a=this.split(r);a.parent.insertBefore(e,a)}}},{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=a.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);p.blotName="list",p.scope=a.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[h],t.ListItem=h,t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(56);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return a(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((r=i)&&r.__esModule?r:{default:r}).default);s.blotName="italic",s.tagName=["EM","I"],t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);h.blotName="image",h.tagName="IMG",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=function(){function e(e,t){for(var n=0;n-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=a(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return d.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(o.BlockEmbed);h.blotName="video",h.className="ql-video",h.tagName="IFRAME",t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var r=function(){function e(e,t){for(var n=0;n0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(s(n(13)).default);d.className="ql-syntax";var h=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),p=function(e){function t(e,n){l(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof r.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var i=null;return r.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(i),i=setTimeout((function(){r.highlight(),i=null}),r.options.interval)})),r.highlight(),r}return u(t,e),r(t,null,[{key:"register",value:function(){a.default.register(h,!0),a.default.register(d,!0)}}]),r(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(o.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=h,t.default=p},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t){e.exports=' '},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var r=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,r)}if("value"in i)return i.value;var o=i.get;return void 0!==o?o.call(r):void 0},i=function(){function e(e,t){for(var n=0;n0&&i===o.default.sources.USER){r.show(),r.root.style.left="0px",r.root.style.width="",r.root.style.width=r.root.offsetWidth+"px";var a=r.quill.getLines(t.index,t.length);if(1===a.length)r.position(r.quill.getBounds(t));else{var s=a[a.length-1],l=r.quill.getIndex(s),u=Math.min(s.length()-1,t.index+t.length-l),d=r.quill.getBounds(new c.Range(l,u));r.position(d)}}else document.activeElement!==r.textbox&&r.quill.hasFocus()&&r.hide()})),r}return f(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(o.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),i=this.root.querySelector(".ql-tooltip-arrow");if(i.style.marginLeft="",0===n)return n;i.style.marginLeft=-1*n-i.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);y.TEMPLATE=['','
','','',"
"].join(""),t.BubbleTooltip=y,t.default=g},function(e,t,n){e.exports=n(63)}]).default},e.exports=n()}).call(this,n(1037).Buffer)},function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var r=n(26),i=n(21),a=n(15),o=n(121),s=n.n(o),l=n(146),c=n(1444),u=n.n(c),d=n(1024),h=n(20),p=n(601),f=n.n(p),m=n(31),g=n.n(m),y=n(3),v=n(87),b=n(1019);class x{constructor(e){this.object=e,this.groupTweenTimeline=void 0,this.lottieAnimationWasPlayed=void 0,this.tweenTimeline=void 0,this.lottieAnimationWasPlayed=!1,this.tweenTimeline=new r.v({paused:!0,defaultEase:"Quad.easeOut"}),this.groupTweenTimeline={enter:null,exit:null}}async init(e){this.object.setObjectTimeline(this);(e.settings.isBlockInfographic||this.object.hasAnimationByGroupName("enter"))&&x.setInitialHiddenState(this.object)}static setInitialHiddenState(e,t=[]){if(e.group){for(const n of e.group)x.setInitialHiddenState(n,t);return t}const n=e.objectRef;if("chart"!==e.type&&n){const e=i.gsap.to(n.current,{duration:0,display:"none",opacity:0,immediateRender:!0});t.push(e)}return t}static setGroupTimelineForRepeatedOrYoyoAnimations(e,t,n={}){var i,a;if(!e.objectTimeline)return void console.error(`@BaseObjectTimeline.setGroupTimelineForRepeatedOrYoyoAnimations::Not found objectTimeline in object with id: "${e.id}"!`);const{repeat:o,srcRepeat:s}=x._getRepeatMeta(e,t);if(s===h.f.none)return;const l=s===h.f.yoyo,c=new r.v({paused:!1,defaultEase:"Quad.easeOut",repeat:o,yoyoEase:l,...n,onStart:(...r)=>{t===h.d.exit&&x.pauseOppositeGroupRepeatableAnimation(e,t),n.onStart&&n.onStart(...r)}});c.yoyo(l),c.destroy=()=>{e.objectTimeline.groupTweenTimeline[t].pause();const n=Object(v.f)(t);e.objectTimeline.groupTweenTimeline[t].progress(n),e.objectTimeline.groupTweenTimeline[t].kill(),e.objectTimeline.groupTweenTimeline[t]=null},null===(i=e.objectTimeline.groupTweenTimeline)||void 0===i||null===(a=i[t])||void 0===a||a.destroy(),e.objectTimeline.groupTweenTimeline[t]=c}static pauseOppositeGroupRepeatableAnimation(e,t){const n=Object(v.h)(t);x.pauseGroupRepeatableAnimation(e,n)}static pauseGroupRepeatableAnimation(e,t){var n,r;const i=null==e||null===(n=e.objectTimeline)||void 0===n||null===(r=n.groupTweenTimeline)||void 0===r?void 0:r[t];if(!i)return;const a=Object(v.f)(t),o=a===i.progress();i.paused()&&o||(i.pause(),o&&i.progress(a+v.a),i.progress(a))}static getSlideOnClickAnimationsMeta(e){const t=e=>(null==e?void 0:e.triggerType)===h.g.onclick,n=[];e.getObjectsAndGroups().filter(e=>e.isVisible&&!e.isObjectLinkTarget).forEach(e=>h.e.forEach(r=>{var i,a;if(!t(e.animation[r]))return;if(!t(null===(i=e.parentGroupId)||void 0===i||null===(a=i.animation)||void 0===a?void 0:a[r])&&e.animation[r].order!==h.u&&("group"!==e.type&&e.opacity||"group"===e.type&&e.group.some(e=>e.opacity))){const t=x.getOnClickMeta(e,r);n.push(t)}})),n.sort((e,t)=>e.order-t.order);const r=[],i=[];for(const e of n)i.length&&i[0].order!==e.order?(r.push([...i]),i.length=0,i.push(e)):i.push(e);return i.length&&r.push(i),r}static generateAnimation({appStore:e,object:t,groupName:n,triggerTypes:r=Object(y.getWritable)(h.h)}){if("group"===t.type){const i=t.group.filter(e=>r.includes(e.animation[n].triggerType)&&e.hasAnimationByGroupName(n));return u()(t=>x.generateAnimation({appStore:e,object:t,groupName:n,triggerTypes:r}),i)}return f()([Object(l.c)(e,t,n)])}static getOnClickMeta(e,t){return{object:e,groupName:t,order:e.animation[t].order}}static async _runSmartObjectAnimations(e,t){x._runWidgetAnimationIfWidget(e,t),x._runIllustrationAnimationsIfIllustration(e),await x._runLottieAnimationsIfLottie(e),await x._showVideoIfVideo(e,t)}static getGroupTriggerKey(e,t){return`${e}-${t}`}static async runSmartObjectAnimations(e,t){const n="group"===e.type?e.group:[e];await Promise.all(n.map(e=>x._runSmartObjectAnimations(e,t)))}static _runWidgetAnimationIfWidget(e,t){e.isWidget()&&x.runWidgetAnimation(e,t)}static runWidgetAnimation(e,t){const n=Object(d.a)({widget:e});t&&n.length>0&&t.add(n,0)}static async _showVideoIfVideo(e,t){"video"===e.type&&await x.showVideo(e,t)}static async showVideo(e,t){const n=await e.calcDuration();if(t){if(t.to(document.body,0,{},n),e.autoplay){const n=e.animation.enter.totalTime+e.preparingDuration;t.add(()=>e.play(),n)}}else e.play()}static runIllustrationAnimations(e,t){const n=e.getAppStore(),r=e.data.flatMap(e=>Object(l.b)(n,e)),i=Object(l.h)(r,{onStart:s.a});if(t&&i.length){const n=Object(l.d)(e,h.d.enter);t.add(i,n)}}static _runIllustrationAnimationsIfIllustration(e,t){"illustration"===e.type&&x.runIllustrationAnimations(e,t)}static async _runLottieAnimationsIfLottie(e,t){e.isLottieType&&await x.runLottieAnimations(e,t)}static async runLottieAnimations(e,t){await Object(a.when)(()=>e.lottieAnimation);(t||e.lottieAnimation.restart.bind(e.lottieAnimation))(),e.objectTimeline&&(e.objectTimeline.lottieAnimationWasPlayed=!0)}static _getRepeatMeta(e,t){const n=g()(e,"animation."+t,{repeat:h.f.none}),r={repeat:0,srcRepeat:n.repeat};if(n.repeat===h.f.none)r.repeat=0;else if(Object(y.isNumeric)(n.repeat))r.repeat=Number(n.repeat);else{if(![h.f.yoyo,h.f.infinite].includes(n.repeat))throw new Error(`@animation/types/helper.getRepeat::Not handled case: "${n.repeat}"!`);{const i=t===h.d.exit&&g()(e,"animation.enter.triggerType",h.g.timer)===h.g.onclick||n.triggerType===h.g.onclick||e.getAppStore().settings.isBlockInfographic;r.repeat=i?-1:n.isYoyo?1:0}}return r}static _addRepeatableTimerAnimation({slideTweenTimeline:e,groupTweens:t,groupName:n,object:r,groupDelay:i}){var a,o;x.setGroupTimelineForRepeatedOrYoyoAnimations(r,n);const s=null===(a=r.objectTimeline)||void 0===a||null===(o=a.groupTweenTimeline)||void 0===o?void 0:o[n];if(!s)return;const c=Object(l.h)(t,{delay:0}),u=c.findIndex(e=>e.vars.id===b.a);if(-1===u)return s.add(c,0),void(e&&e.add(s,i));const d=[...c],[h]=d.splice(u,1);s.add(d,0),e&&(e.add(h,0),e.add(s,i))}static addRepeatableTimerAnimation({slideTweenTimeline:e,groupTweens:t,groupName:n,object:r}){const{delay:i,firedTweens:a,onCompletePromise:o}=Object(l.a)(r,n);if(i===1/0)return;const s=()=>x._addRepeatableTimerAnimation({slideTweenTimeline:e,groupTweens:t,groupName:n,object:r,groupDelay:i});if(!e)return o.then(s);e.add(a,0),s()}}},function(e,t,n){var r=n(207),i=n(816),a=n(817),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?i(e):a(e)}},,function(e,t,n){"use strict";var r=n(12);const i={textVersion:n(285).b.BASE,width:0,lineHeight:1.2,letterSpacing:0,align:"left",font:{name:"Arial",size:16},padding:{horizontal:10,vertical:10},borderStyle:"none",borderWidth:1,borderColor:r.a.black,borderRadius:0,backgroundColor:r.a.transparent,proportionLock:!0,wasEditedName:!1,transform:"initial",alignVertical:"top",textColumns:1,defaultColor:{},paletteIndexes:[0,0,0,0,0,0],fontSizeIndex:0,scale:1,direction:"ltr"};t.a=i},function(e,t,n){var r=n(118),i=n(1384),a=n(115),o=n(339),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";n.d(t,"b",(function(){return U})),n.d(t,"a",(function(){return W})),n.d(t,"d",(function(){return G}));var r=n(3),i=n(20),a=n(257),o=n(1004),s=n(12),l=n(263),c=n(133),u=n.n(c),d=n(696),h=n.n(d),p=n(243),f=n.n(p),m=n(106),g=n.n(m),y=n(96),v=n.n(y),b=n(29),x=n.n(b),_=n(31),w=n.n(_),S=n(1),T=n(753),O=n(675),C=n(421);const P=S.types.model("shadowControlsModel",{isShadowOn:S.types.boolean,color:S.types.string,blur:S.types.number,X:S.types.number,Y:S.types.number}).views(e=>({get invertedY(){return-e.Y}}));var E=Object(r.wrapWithDefaultPostProcessedSnapshot)(P),k=S.types.model({x:S.types.number,y:S.types.number,color:S.types.string,blur:S.types.number}).actions(e=>({setColor(t){e.color=t},setBlur(t){e.blur=t},setXY(t,n){e.x=t,e.y=n}})),A=n(154),j=S.types.model({r:S.types.optional(S.types.number,0),g:S.types.optional(S.types.number,0),b:S.types.optional(S.types.number,0),x:S.types.number,y:S.types.number}).actions(e=>({setRGBFromHEX(t){const{r:n,g:r,b:i}=Object(A.b)(t);e.r=n,e.g=r,e.b=i},setXY(t,n){e.x=t,e.y=n}})).views(e=>({get hex(){const{r:t,g:n,b:r}=e;return Object(A.b)({r:t,g:n,b:r}).toHexString()}})),I=S.types.model({width:S.types.number}).actions(e=>({setWidth(t){e.width=t}})),M=S.types.model({color:S.types.string,x:S.types.number,y:S.types.number,width:S.types.number}).actions(e=>({setColor(t){e.color=t},setXY(t,n){e.x=t,e.y=n},setWidth(t){e.width=t}})),D=S.types.model({colorA:S.types.string,colorB:S.types.string,x:S.types.number,y:S.types.number}).actions(e=>({setColorA(t){e.colorA=t},setColorB(t){e.colorB=t},setXY(t,n){e.x=t,e.y=n}})),N=S.types.model({intensity:S.types.maybe(S.types.number)}).actions(e=>({setIntensity(t){e.intensity=t}})),R=S.types.model({intensity:S.types.maybe(S.types.number)}).actions(e=>({setIntensity(t){e.intensity=t}})),L=S.types.model({color:S.types.string,padding:S.types.number}).actions(e=>({setColor(t){e.color=t},setPadding(t){e.padding=t}})),F=S.types.model({colorA:S.types.string,colorB:S.types.string,x:S.types.number,y:S.types.number}).actions(e=>({setColorA(t){e.colorA=t},setColorB(t){e.colorB=t},setXY(t,n){e.x=t,e.y=n}})),V=S.types.model({color:S.types.string,padding:S.types.number}).actions(e=>({setColor(t){e.color=t},setPadding(t){e.padding=t}})),B=S.types.model({color:S.types.string,x:S.types.number,y:S.types.number}).actions(e=>({setColor(t){e.color=t},setXY(t,n){e.x=t,e.y=n}}));const H=S.types.model("textEffectsModel",{shadow:S.types.optional(k,{x:5,y:-5,color:s.a.shadowTransparent,blur:3}),reverb:S.types.optional(j,{r:64,g:0,b:128,x:5,y:-5}),outline:S.types.optional(I,{width:10}),gap:S.types.optional(M,{color:"#ccc",x:3,y:3,width:2}),cyber:S.types.optional(D,{colorA:"#ff00ff",colorB:"#00ffff",x:5,y:0}),neon:S.types.optional(N,{intensity:8}),glow:S.types.optional(R,{intensity:8}),mask:S.types.optional(L,{color:"#ccc",padding:2}),gradient:S.types.optional(F,{colorA:"pink",colorB:"cyan",x:3,y:3}),cut:S.types.optional(V,{color:"#3cabd7",padding:2}),clipping:S.types.optional(B,{color:"#ff768f",x:4,y:4}),enabledEffects:S.types.array(S.types.string)}).actions(e=>({addEffect(t){e.enabledEffects.replace("none"===t?[]:[t])},removeEffect(t){e.enabledEffects.remove(t)}}));var z=Object(r.wrapWithDefaultPostProcessedSnapshot)(H);const U=5,W=5,G=e=>({minWidthDuringStretching:U,objectRef:null,objectTimeline:null,isRotating:!1,isResizing:!1,forcedHoverOnObjectList:!1,dragEvent:null,getAppStore:()=>Object(S.getParent)(e,5),parentSlide:()=>Object(S.getParent)(e,2),status:"rendering",parseSvg:()=>null,getDocument:()=>null,isApplyingStyle:!1,contourConfig:[],isContourEnabled:!0,coloredBorderId:null}),q=S.types.model("BareObjectModel",{id:S.types.refinement(S.types.identifier,e=>0===e.indexOf("el")),type:S.types.string,name:S.types.string,x:S.types.optional(S.types.number,0),y:S.types.optional(S.types.number,0),width:S.types.optional(S.types.number,0),height:S.types.optional(S.types.number,0),rotation:S.types.optional(S.types.number,0),isLocked:S.types.optional(S.types.boolean,!1),isVisible:S.types.optional(S.types.boolean,!0),isPremium:S.types.optional(S.types.boolean,!1),proportionLock:S.types.optional(S.types.boolean,!0),order:S.types.number,link:S.types.maybe(C.b),opacity:S.types.optional(S.types.number,100),animation:S.types.optional(O.c,O.b),timelineColor:S.types.optional(S.types.string,T.a.grayBlue),shadowControls:S.types.optional(E,{isShadowOn:!1,color:s.a.shadowTransparent,blur:17,X:10,Y:10}),textEffects:S.types.optional(z,{}),parentGroupId:S.types.frozen(),colorTitles:S.types.optional(S.types.array(S.types.string),[]),colors:S.types.optional(S.types.array(S.types.string),[]),paletteIndexes:S.types.optional(S.types.array(S.types.number),[]),defaultColor:S.types.optional(S.types.model({colors:S.types.maybe(S.types.array(S.types.maybeNull(S.types.string))),textColor:S.types.maybe(S.types.string)}),{})}).preProcessSnapshot(e=>(e.name&&!v()(e.name)&&(e.name=e.name.toString()),x()(e.id)&&(e.id=Object(a.a)("objects","el",l.a)),Object(a.c)("objects",e.id),(!x()(e.x)&&null===e.x||!x()(e.y)&&null===e.y)&&(e.x=0,e.y=0),x()(e.colors)||null!==e.colors[0]||(e.colors=[]),(!x()(e.width)&&null===e.width||!x()(e.height)&&null===e.height)&&(e.width=10,e.height=10),e.visibility&&(e.isVisible="visible"===e.visibility),f()(e.opacity)&&(e.opacity=100),e.paletteIndexes&&e.paletteIndexes.forEach((e,t,n)=>{null==n[t]&&(n[t]=0)}),e)).volatile(G).views(e=>({get hasBareObjectModal(){return!0},get wrapperClass(){return""},get visibleName(){return e.name},get calculatedTimelineColor(){return Object(T.b)(e)},get isFullDimension(){return"background"===e.type&&("solid"===e.backgroundType||"gradient"===e.backgroundType)},get colorPropertiesAllowedToBulkChange(){return[]},get draggable(){return!e.isLocked},get resizable(){return!e.isLocked&&e.isVisible},get maxX(){return 2e4},get minX(){return-5e3},get maxY(){return 2e4},get minY(){return-5e3},get maxWidth(){return 5e3},get minWidth(){return U},get maxHeight(){return 5e3},get minHeight(){return W},get maxOpacity(){return 100},get minOpacity(){return 0},get zIndex(){return Object(S.isAlive)(e)?e.order:0},get cssOpacity(){return e.opacity/100},get oIndex(){return e.parentSlide().objects.findIndex(t=>t===e)},isObjectInTree:()=>Boolean(Object(S.getPath)(e)),getSlideStore:()=>e.getAppStore().slideStore,getIsVisibleOnCanvas:t=>Object(o.a)(w()(e,"objectRef.current"),t),_rotate(e,t,n,r,i){const a=Math.cos,o=Math.sin;return[(e-n)*a(i=i*Math.PI/180)-(t-r)*o(i)+n,(e-n)*o(i)+(t-r)*a(i)+r]},getRectPoints(){const{x:t,y:n,width:r,height:i}=e,a=t+r/2,o=n+i/2;return[[t,n],[t+r,n],[t,n+i],[t+r,n+i]].map(t=>{const n=t[0],r=t[1];return e._rotate(n,r,a,o,e.rotation)})},getBoundingClientRect(){const{x:t,y:n,width:r,height:i}=e,a=t+r/2,o=n+i/2;let s=Number.MAX_SAFE_INTEGER,l=Number.MAX_SAFE_INTEGER;return[[t,n],[t+r,n],[t,n+i],[t+r,n+i]].forEach(t=>{const n=t[0],r=t[1],i=e._rotate(n,r,a,o,e.rotation),c=i[0],u=i[1];c({width:Math.abs(e.height*Math.sin(e.rotation*(Math.PI/180)))+Math.abs(e.width*Math.cos(e.rotation*(Math.PI/180))),height:Math.abs(e.width*Math.sin(e.rotation*(Math.PI/180)))+Math.abs(e.height*Math.cos(e.rotation*(Math.PI/180)))}),get isSelected(){if(Object(S.isRoot)(e))return!1;return e.getAppStore().selectedObject===e},get isHovering(){var t,n;const r=e.getAppStore(),i=Boolean(e.parentGroupId)&&e.rootParentGroup.isSelected&&!["illustration"].includes(null===(t=e.parentGroupId)||void 0===t?void 0:t.type);return(null===(n=r.hoveringObjects)||void 0===n?void 0:n.includes(e))||i},get isSelecting(){const{selectingObjects:t}=e.getAppStore();return t.includes(e)||t.includes(e.parentGroupId)},get isHighlighted(){const t=e.getAppStore();return[t.highlightedObjectXId,t.highlightedObjectYId].includes(e.id)},get isGroup(){return!1},get isBackground(){return!1},get hasParentGroup(){return Boolean(e.parentGroupId)},getObjectClone:()=>u()(Object(S.getSnapshot)(e)),isLinkedToTargetObject:t=>e.link&&"object"===e.link.type&&(e.link.target===t.id||Array.isArray(e.link.target)&&e.link.target.includes(t.id)),isWidget:()=>!!Object(S.isAlive)(e)&&["counter","clock","array","container","cLines","progressBar","battery","ribbonArrow","ribbon","LED","verticalMeter","thermometer","linearBar","radial","semiCircle","pieceAPie","gauge","halfCircles","sandWatch","digitalDial"].some(t=>e.type.includes(t)),needToPlay(){return e.isObjectLinkTarget||e.isWidget()||this.hasAnimation()||["illustration","video"].includes(e.type)||e.isLottieType||"chart"===e.type&&!e.shouldDisableChartAnimation},get isFlowChart(){const t=({type:e})=>"container"===e||"cLines"===e;return"group"!==e.type?t(e):e.group.every(t)},hasNotAnimationByGroupName(t){let n=e,r=n.animation[t].isNone;for(;r&&n.parentGroupId;){const e=n;if(n=n.parentGroupId,r=n.animation[t].isNone,r){r=n.group.filter(t=>t!==e).every(e=>e.animation[t].isNone)}}return r},hasAnimationByGroupName(e){return!this.hasNotAnimationByGroupName(e)},needParallaxAnimation(){const t=e.parentSlide(),n=e.getAppStore();return!e.isWidget()&&!["background","character","gesture","specialEffect","lordIcon","animatedShape","animatedFace"].includes(e.type)&&this.hasNotAnimationByGroupName("enter")&&!(e.width>.8*n.settings.width||e.height>.5*((null==t?void 0:t.height)||0))},hasAnimation(){return i.e.some(e=>this.hasAnimationByGroupName(e))},get isTempGroup(){return"group"===e.type&&e.temp},get isPlacedOnSelectedSlide(){const t=e.getAppStore();return Object(S.getParent)(e,2)===t.slideStore.selectedSlide},get rootParentGroup(){return e.parentGroupId&&e.parentGroupId.id!==e.id?e.parentGroupId.rootParentGroup:e},get usingPaletteIndexes(){return e.parentGroupId&&e.rootParentGroup.isSelected&&["illustration"].includes(e.parentGroupId.type)?20:"svg"===e.type&&"none"===e.borderStyle?6:4},get bound(){let t,n;0!==e.rotation?(n=Math.abs(e.width*Math.sin(e.rotation*(Math.PI/180)))+Math.abs(e.height*Math.cos(e.rotation*(Math.PI/180))),t=Math.abs(e.height*Math.sin(e.rotation*(Math.PI/180)))+Math.abs(e.width*Math.cos(e.rotation*(Math.PI/180)))):(t=e.width,n=e.height);const r=e.y+(e.height-n)/2,i=e.x+(e.width-t)/2;return{top:r,left:i,bottom:r+n,right:i+t}},get visualDimensions(){return{x:e.bound.left,y:e.bound.top,width:e.bound.right-e.bound.left,height:e.bound.bottom-e.bound.top}},get isAlwaysLocked(){return["illustration","character","gesture","specialEffect","lordIcon","animatedShape","animatedFace","halfCircles","threeDGraphic"].some(t=>e.type.includes(t))},get isRendered(){return"rendered"===e.status},get needExtraRender(){return["svg","character","gesture","specialEffect","lordIcon","animatedShape","animatedFace","chart","text"].includes(e.type)},get preparingDuration(){return 0},get totalAnimationTime(){var t,n,r,i,a;return(null===(t=e.animation.exit)||void 0===t?void 0:t.isNone)?Math.max(null===(i=e.animation.enter)||void 0===i?void 0:i.totalTime,e.preparingDuration)+(null===(a=e.animation.exit)||void 0===a?void 0:a.totalTime):(null===(n=e.animation.enter)||void 0===n?void 0:n.totalTime)+e.preparingDuration+(null===(r=e.animation.exit)||void 0===r?void 0:r.totalTime)},get isIllustrationsChild(){const t=Object(S.getParent)(e,2);return t&&"illustration"===t.type},get parentIllustration(){return Object(S.getParent)(e,2)},get hasScalableText(){return!1},get transformStyle(){return`translate3d(${this.isFullDimension?0:e.x}px, ${this.isFullDimension?0:e.y}px, 0px) rotate(${e.rotation}deg)`}})).actions(e=>({setProp:Object(r.setProp)(e)})).actions(e=>{const t={ignorePropLock:!1,needFixHeight:!1,needRecalculateGroupSize:!1};function n(t,n){const i=n.isSaveProportions?e.minWidth:Math.max(e.minWidth,e.minWidthDuringStretching);e.width=Object(r.getValueOrEdgeOfAvailableValue)(i,e.maxWidth,t)}function i(t){e.height=Object(r.getValueOrEdgeOfAvailableValue)(e.minHeight,e.maxHeight,t)}function o({properties:t=[],arrays:n=[]}){t.forEach(t=>{t in e.defaultColor&&e.setProp(t,Object(S.cast)(e.defaultColor[t]))}),n.forEach(t=>{t in e.defaultColor&&e.setProp(t,Object(S.cast)(e.defaultColor[t].toJSON()))})}function l(t){const n={...t,id:Object(a.a)("contours","contour")};return e.contourConfig=[...e.contourConfig,n],n}function c(t){e.contourConfig=[...e.contourConfig].filter(e=>e.id!==t)}return{setCenterPosition:function({slidePos:t,zoom:n,shouldAlignPositionByDimensions:r=!0,xAdjustment:i=0,yAdjustment:a=0}){if(e.getAppStore().settings.isBlockInfographic){const t=e.parentSlide();return e.x+=t.width/2+i,e.y+=t.height/2+a,void(r&&(e.x-=e.width/2,e.y-=e.height/2))}const o=r?e.width:0,s=(window.innerWidth-o*n)/2,l=t.left+document.body.scrollLeft;e.x+=(s-l+i*n)/n;const c=r?e.height:0,u=(window.innerHeight-c*n)/2,d=t.top+document.body.scrollTop;e.y+=(u-d+a*n)/n},getRealSlidePosition:function(){return e.parentSlide().slideRef.current.getBoundingClientRect()},applyColorThemeToProperty:function(t,n,i=0,a=[]){if(a.includes(e[n]))return;!x()(e.defaultColor[n])&&e.defaultColor[n].length||(e.defaultColor[n]=e[n]);const o=Object(r.getThemeColor)(i,e.paletteIndexes,t);o&&(e[n]=o)},applyColorThemeToColors:function(t,n=4){!x()(e.defaultColor.colors)&&e.defaultColor.colors.length||(e.defaultColor.colors=e.colors.toJSON());const i=e.paletteIndexes.slice(0,n),a=e.colors.toJSON();i.forEach((n,i)=>{if(e.colors.length-1e===t?n:e))},replaceColor:function(t,n){e.colorPropertiesAllowedToBulkChange.forEach(i=>{Object(r.areColorsEqual)(e[i],t)&&(e[i]=n)}),e._replaceColorInColors(t,n)},setCoordinates:function(a,o=t){var s;const l=Object.keys(a).reduce((t,n)=>(t[n]=e[n],t),{}),c=e.proportionLock&&(Object(r.isDefined)(a.width)||Object(r.isDefined)(a.height))&&!o.ignorePropLock;if(c?function(t,a,o){const s=t||e.width,l=a||e.height,c=Object(r.changeDimensionsSavingProportions)(e.width,e.height,s,l);e.isApplyingStyle&&"text"===e.type||(e.hasScalableText&&o.isSaveProportions&&e.setScale(c.ratio*e.scale),n(c.width,o),i(c.height))}(a.width,a.height,{isSaveProportions:c,...o}):function(e,t,a){Object(r.isDefined)(e)&&n(e,a),Object(r.isDefined)(t)&&i(t)}(a.width,a.height,{isSaveProportions:c,...o}),Object(r.isDefined)(a.x)&&(e.x=Object(r.getValueOrEdgeOfAvailableValue)(e.minX,e.maxX,a.x)),Object(r.isDefined)(a.y)&&(e.y=Object(r.getValueOrEdgeOfAvailableValue)(e.minY,e.maxY,a.y)),e.canHaveWrongHeight&&o.needFixHeight&&e.fixHeight(),e.afterCoordinate(a,l),!o.needRecalculateGroupSize||!e.parentGroupId)return;const u=e.rootParentGroup;null==u||null===(s=u.recalculateGroupSize)||void 0===s||s.call(u)},afterCoordinate:function(){},setPosition:function(t,n,r=!0,i=!1,a=null){g()(t)?function(t,n,r,i){if(i)return e.x=t.x,void(e.y=t.y);const a=e.width*n,o=r?a/2:0,s=t.x-o,l=e.height*n,c=r?l/2:0,u=t.y-c,d=e.getRealSlidePosition();e.x+=(s-d.left)/n,e.y+=(u-d.top)/n}(t,n,r,i):function(t,n,r,i=null){const a=e.width/2,o=e.height/2;let s,l;switch(t){case"centerTop":l=-o;break;case"centerLeft":s=-a;break;case"centerRight":s=a;break;case"centerLeftTop":s=-a,l=-o;break;case"centerRightTop":s=a,l=-o;break;case"centerLeftBottom":s=-a,l=o;break;case"centerRightBottom":s=a,l=o;break;case"center":default:s=i?-i.x:0,l=i?-i.y:0}const c=e.getRealSlidePosition();e.setCenterPosition({slidePos:c,zoom:n,shouldAlignPositionByDimensions:r,xAdjustment:s,yAdjustment:l})}(t,n,r,a)},setRotation:function(t,n){var i;if(!Object(r.isDefined)(t))return;if(e.rotation=Object(r.getValueOrEdgeOfAvailableValue)(-360,360,t),!(null==n?void 0:n.needRecalculateGroupSize)||!e.parentGroupId)return;const a=e.rootParentGroup;null==a||null===(i=a.recalculateGroupSize)||void 0===i||i.call(a)},setName:function(t){e.name=t},setParentGroupId:function(t){e.parentGroupId=!1===t?null:t},setOrder:function(t){Object(S.isAlive)(e)&&(e.order=t)},select:function(){if(e.isSelected)return;e.getAppStore().selectObject(e)},deselect:function(){e.getAppStore().deselectObject()},remove:function(t){var n;if(!Object(S.isAlive)(e))return;const r=e.parentSlide();if(r.removeObject(e,t),null===(n=e.rootParentGroup)||void 0===n?void 0:n.isGroup){const t=e.rootParentGroup;t.group.length>1?t.recalculateGroupSize():(t.unGroup(),r.removeObject(t))}},_setFlag:function(t,n){if(e[t]!==n&&(e[t]=n),"group"===e.type)for(const r of e.group)r[t]!==n&&r._setFlag(t,n);e.parentGroupId&&e.parentGroupId[t]!==n&&e.parentGroupId._setFlag(t,n)},setRotating:function(t){e._setFlag("isRotating",t)},setResizing:function(t){e._setFlag("isResizing",t)},lock:function(){e._setFlag("isLocked",!0),e.isSelected&&e.deselect()},unlock:function(){e._setFlag("isLocked",!1)},visible:function(){e._setFlag("isVisible",!0)},hide:function(){e._setFlag("isVisible",!1)},setLink:function(t){e.link=t},unsetLink:function(){e.link&&Object(S.destroy)(e.link)},setObjectRef:function(t){e.objectRef=t},setAnimation:function(t){e.animation=t},setObjectTimeline:function(t){e.objectTimeline=t},toggleProportionLock:function(){e.proportionLock=!e.proportionLock},setGetAppStore:function(t){e.getAppStore=t},setParentSlide:function(t){e.parentSlide=t},setProportionLock:function(t=!0){e.proportionLock=t},selectInGroup:function(){e.getAppStore().selectObject(e)},setOpacity:function(t){h()(0,1,t)&&(t=Math.round(100*t)),e.opacity=Object(r.getValueOrEdgeOfAvailableValue)(e.minOpacity,e.maxOpacity,t)},toggleDropShadow:function(){e.shadowControls.isShadowOn=!e.shadowControls.isShadowOn},updateShadowBackground:function(t){e.shadowControls.color=t},updateShadowBlur:function(t){e.shadowControls.blur=t},updateShadowX:function(t){e.shadowControls.X=t},updateShadowY:function(t){e.shadowControls.Y=t},updateColors:function(t,n){e.colors[n]&&(e.colors[n]=t)},detachFromSlide:function(){e.parentSlide().detachObject(e,!0)},moveForward:function(){e.parentSlide().moveObjectForward(e)},sendBackward:function(){e.parentSlide().moveObjectBackward(e)},bringToFront:function(){e.parentSlide().moveObjectToFront(e)},sendToBack:function(){e.parentSlide().moveObjectToBack(e)},applyStyles:function(t){Object(r.applyStyleHelper)({sourceObject:t},e)},setDragEvent:function(t){t.persist(),e.dragEvent=t},clearDragEvent:function(){e.dragEvent=null},setStatus:function(t){e.status=t},updatePaletteIndexes:function(t,n){e.colors[n]&&"none"!==e.colors[n]&&(e.paletteIndexes[n]=t)},setBorderState:function(t){if(t){const{id:t}=l({borderColor:s.a.blueSky});e.coloredBorderId=t}else e.coloredBorderId&&c(e.coloredBorderId),e.coloredBorderId=null},setForcedHoverOnObjectList:function(t){e.forcedHoverOnObjectList=t},getLink:function(){return e.link},setTimelineColor:function(t){e.timelineColor=t},setContour:l,removeContour:c,disableContour:function(){e.isContourEnabled=!1},enableContour:function(){e.isContourEnabled=!0}}});t.c=q},function(e,t,n){"use strict";var r=n(0),i=n.n(r);t.a=({svgObj:e,...t})=>i.a.createElement(e,t)},function(e,t,n){"use strict";n.d(t,"g",(function(){return _})),n.d(t,"b",(function(){return P})),n.d(t,"c",(function(){return E})),n.d(t,"h",(function(){return k})),n.d(t,"f",(function(){return j})),n.d(t,"d",(function(){return I})),n.d(t,"a",(function(){return M})),n.d(t,"e",(function(){return D}));var r=n(21),i=n(601),a=n.n(i),o=n(175),s=n.n(o),l=n(676),c=n.n(l),u=n(20),d=n(3),h=n(87);function p({object:e,onStart:t,overrideSettings:n={},animationType:i}){const a=[];if(!e.objectRef)return a;const o=e.objectRef.current,s=e.animation.enter,l=s.timing&&"Bounce.easeOut"!==s.timing?s.timing:"Power0.easeNone",c="none"===i?.1:s.duration/s.quickFade;return a.push(r.gsap.to(o,{duration:0,visibility:"hidden",opacity:0,xPercent:0,yPercent:0,immediateRender:!0,force3D:!0})),a.push(r.gsap.to(o,{duration:c,display:"block",visibility:"visible",opacity:e.opacity/100,ease:l,delay:s.delay,force3D:!0,onStart:t,...n})),a}var f=n(1019),m=n(139);function g({object:e,animationType:t,onStart:n,overrideSettings:i={}}){const a=e.objectRef.current,o=e.animation.exit,s=o.timing&&"Bounce.easeIn"!==o.timing?o.timing:"Power2.easeIn",l="none"===t,c={duration:l?.1:o.duration/o.quickFade,display:"none",opacity:0,ease:s,delay:l?Object(h.d)({object:e,isNone:!0}):Object(h.d)({object:e,isFade:!0}),force3D:!0,onStart:n,...i};return l&&(c.onComplete=()=>{var t,n,r;i.onComplete&&i.onComplete(),m.a.pauseOppositeGroupRepeatableAnimation(e,"exit"),null===(t=e.objectTimeline)||void 0===t||null===(n=t.groupTweenTimeline)||void 0===n||null===(r=n.exit)||void 0===r||r.play()}),r.gsap.to(a,c)}var y={enter:{fadePlaceholder:function({overrideSettings:e,...t}){const n={duration:h.a},r=["delay","onStart","onComplete"];for(const t of r)void 0!==e[t]&&(n[t]=e[t]);return p({...t,overrideSettings:n})},none:p,fade:p,fly:function({object:e,onStart:t,overrideSettings:n={}}){const i=[];if(!e.objectRef)return i;const a=e.animation.enter,o=a.timing||"Power1.easeOut",s=Object(h.g)(e,"enter"),l=e.objectRef.current;return i.push(r.gsap.to(l,{duration:0,xPercent:0,yPercent:0,force3D:!0,...s||{}})),i.push(r.gsap.to(l,{duration:a.duration,x:e.x,y:e.y,ease:o,delay:a.delay,force3D:!0,onStart:t,...n})),i},zoom:function({object:e,onStart:t,overrideSettings:n={}}){if(!e||!e.objectRef)return console.log("Error: Tried to scaleFrom an undefined object"),[];const i=e.animation.enter,a=i.timing||"Power3.easeOut",o=e.objectRef.current,{scaleX:s,scaleY:l}=Object(h.i)(e,"enter"),c=Object(h.j)(i.pivotPoint),u=[];return u.push(r.gsap.to(o,{duration:0,transformOrigin:c,scaleX:s,scaleY:l,xPercent:0,yPercent:0,immediateRender:!0,force3D:!0})),u.push(r.gsap.to(o,{duration:i.duration,scaleX:1,scaleY:1,ease:a,delay:i.delay,force3D:!0,onStart:t,...n})),u},spin:function({object:e,onStart:t,overrideSettings:n={}}){const i=[];if(!e.objectRef)return i;const a=e.animation.enter,o=a.timing||"Power3.easeOut",s=e.objectRef.current,l=Object(h.j)(a.pivotPoint);return i.push(r.gsap.to(s,{duration:0,transformOrigin:l,rotation:e.rotation-a.rotation,immediateRender:!0,force3D:!0})),i.push(r.gsap.to(s,{duration:a.duration,rotation:e.rotation,ease:o,delay:a.delay,force3D:!0,onStart:t,...n})),i},stroke:function({object:e,onStart:t,overrideSettings:n={}}){const i=[];if(!e.objectRef)return i;const a=e.animation.enter,o=a.timing||"Power3.easeOut",s=e.objectRef.current?e.objectRef.current.querySelectorAll(h.b):[],{startDraw:l,endDraw:c}=Object(h.c)(a.draw,a.drawingPercentage);return i.push(r.gsap.to(s,{duration:0,drawSVG:l,immediateRender:!0,force3D:!0})),i.push(r.gsap.to(s,{duration:a.duration,drawSVG:c,ease:o,delay:a.delay,force3D:!0,onStart:t,...n})),i}},exit:{pauseRepeatableAnimation:f.b,none:g,fade:g,fly:function({object:e,onStart:t,overrideSettings:n={}}){const i=e.animation.exit,a=i.timing||"Power1.easeOut",o=Object(h.g)(e,"exit");o.ease=a;const s=e.objectRef.current,l=Object(h.d)({object:e});return r.gsap.to(s,{duration:i.duration,...o,delay:l,force3D:!0,onStart:t,...n})},zoom:function({object:e,onStart:t,overrideSettings:n={}}){const i=e.animation.exit,a=i.timing||"Power3.easeOut",o=e.objectRef.current,{scaleX:s,scaleY:l}=Object(h.i)(e,"exit"),c=Object(h.j)(i.pivotPoint),u=Object(h.d)({object:e});return r.gsap.to(o,{duration:i.duration,transformOrigin:c,scaleX:s,scaleY:l,ease:a,delay:u,force3D:!0,onStart:t,...n})},spin:function({object:e,onStart:t,overrideSettings:n={}}){const i=e.animation.exit,a=i.timing||"Power3.easeOut",o=e.objectRef.current,s=Object(h.j)(i.pivotPoint),l=Object(h.d)({object:e});return r.gsap.to(o,{duration:i.duration,transformOrigin:s,rotation:"+="+i.rotation,ease:a,delay:l,force3D:!0,onStart:t,...n})},stroke:function({object:e,onStart:t,overrideSettings:n={}}){const i=e.animation.exit,a=i.timing||"Power3.easeOut",o=e.objectRef.current?e.objectRef.current.querySelectorAll(h.b):[],s=Object(h.e)(i.draw,i.drawingPercentage),l=Object(h.d)({object:e});return r.gsap.to(o,{duration:i.duration,drawSVG:s,ease:a,delay:l,force3D:!0,onStart:t,...n})}}},v=n(15),b=n(1),x=n(65);var _=async(e,t)=>{var n,r;if(!!(null===(n=e.objectTimeline)||void 0===n?void 0:n.getHasFiredAnimation)&&e.objectTimeline.getHasFiredAnimation(t))return;if((null===(r=e.objectTimeline)||void 0===r?void 0:r.setHasFiredAnimation)&&e.objectTimeline.setHasFiredAnimation(t),!e.objectTimeline){const e=Object(d.wait)(0);await e}const i=!Object(d.getWithExecutionFns)(e,"parentSlide().slideTimeline");if(Object(x.a)({dev:!0})&&!e.objectTimeline&&i){if("editor"!==Object(d.getWithExecutionFns)(e,"getAppStore().settings.mode","editor"))throw new Error("@animation.onStartAnimation::Undefined behavior - check how work this case without error!")}switch(t){case"enter":"chart"===e.type&&Promise.race([Object(v.when)(()=>!Object(b.isAlive)(e)||e.chartInstance&&!e.chartInstance.isDisposed()),Object(d.wait)(6e4)]).then(()=>{Object(b.isAlive)(e)&&e.runAnimation([e.chartInstance],e.preparingDurationMs)});if(i||"onclick"===e.animation.enter.triggerType||e.isObjectLinkTarget){var a,o,s;const t=(null===(a=e.parentGroupId)||void 0===a||null===(o=a.objectTimeline)||void 0===o?void 0:o.tweenTimeline)||(null===(s=e.objectTimeline)||void 0===s?void 0:s.tweenTimeline);await m.a.runSmartObjectAnimations(e,t)}break;case"exit":"video"===e.type&&e.pause().catch(console.error);break;default:console.error(`@onStartAnimation::Not handled groupName case: "${t}"`)}},w=n(31),S=n.n(w);const T=(e,t)=>(n={})=>{const r={...(({object:e,animationType:t,groupName:n,index:r})=>{const i={object:e,animationType:t};return 0===r&&(i.onStart=()=>_(e,n)),i})(t),overrideSettings:n};return e(r)};var O=e=>{const t=S()(y,[e.groupName,e.animationType]);return t?T(t,e):(console.error("@generateAnimationByGroup.getStrategy::Not found strategy"),()=>[])};var C=(e,t,n)=>((e,t)=>{const n=e.animation[t],r=Object(h.h)(t);if(!n)return console.error(`@generateAnimationByGroup:: not found animation by name: "${t}" in object.id: "${e.id}"`),[];const i=Array.isArray(n.type)?[...n.type]:[];"enter"===t&&["fade","none"].every(e=>!n.type.includes(e))&&i.unshift("fadePlaceholder");const a=e.animation[r];return"exit"===t&&a&&"none"!==a.repeat&&!n.isNoneType&&i.unshift("pauseRepeatableAnimation"),i})(t,n).flatMap((r,i)=>O({appStore:e,object:t,groupName:n,animationType:r,index:i}));const P=(e,t)=>u.e.flatMap(n=>C(e,t,n)),E=C,k=(e,t={})=>{const n={...t};return 0===t.delay&&(t.delay=h.a),a()(e).flatMap(e=>e(n))},A=["fly"],j=e=>A.some(t=>e.includes(t));function I(e,t,n=0){switch(t){case"enter":return function(e,t=0){var n,r;let i=(null===(n=e.animation)||void 0===n||null===(r=n.enter)||void 0===r?void 0:r.delay)||0;return e.isObjectLinkTarget&&c()("objectLinkTargetEnterDelay",e)&&(i=e.objectLinkTargetEnterDelay),i+t}(e,n);case"exit":return function(e,t=0){const n=e.animation.exit,r=n.type?n.type:[],i=!r.length||1===r.length&&"none"===r[0],a=r.includes("fade"),o=Boolean(s()(["fade","none"],r).length),l=[i&&Object(h.d)({object:e,isNone:!0}),a&&Object(h.d)({object:e,isFade:!0}),o&&Object(h.d)({object:e})].filter(e=>!1!==e);let c=Math.min(...l)+t;return c=Math.max(c,0),c===1/0&&console.error("@animation.helper._getExitDelay::Delay is equal: Infinity!"),c}(e,n);default:throw new Error(`@animation.helper.getAnimationDelay::Not supported groupName: "${t}"!`)}}function M(e,t,n=0){var i;const a=I(e,t,n),o=[],s=Object(d.resolvePromiseAfterAsyncSetValue)(),l=null===(i=e.objectRef)||void 0===i?void 0:i.current;return a!==1/0&&l?o.push(r.gsap.to(l,{duration:0,delay:a,onComplete:s.set})):s.set(),{firedTweens:o,onCompletePromise:s,delay:a}}function D(e,t){const n=Object(h.g)(e,t),r=Object.entries(n);if(!r.length)return null;const[i,a]=r[0];return Math.abs(a-e[i])}},,function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"e",(function(){return u})),n.d(t,"b",(function(){return m})),n.d(t,"c",(function(){return g})),n.d(t,"a",(function(){return y}));var r=n(7),i=n(8),a=n(11),o=n(14),s=n(13),l=n(4),c=function(){function e(e,t){this._tensionX=e,this._tensionY=t}return e.prototype.smooth=function(e){for(var t=e.length-1;t>0;t--){var n=e[t],r=e[t-1];Math.abs(n.x-r.x)<.1&&Math.abs(n.y-r.y)<.1&&e.splice(t-1,1)}var i=this._tensionX,o=this._tensionY;if(e.length<3||i>=1&&o>=1)return a.polyline(e);var s=e[0],c=e[e.length-1],u=!1;l.round(s.x,3)==l.round(c.x)&&l.round(s.y)==l.round(c.y)&&(u=!0);for(var d="",h=(t=0,e.length-1);t0){var y=Math.atan2(f-h,p-d),v=Math.cos(y),b=Math.sin(y),x=n*v,_=n*b;if(n<=1||r<=1)g=a.lineTo(t);else{var w=Math.round(2*m/n),S=[],T=1;po.a.createElement("div",{className:x()(S.a.fieldEditIcon,S.a.fieldEditIconActive,e)}),C=({notEditIconClass:e})=>o.a.createElement("div",{className:x()(S.a.fieldEditIcon,e)});var P=({value:e,onChange:t,placeholder:n="",notEditIconClass:r,editIconClass:i,editableFieldViewSize:a=40})=>o.a.createElement(T.a,{validationType:"string",align:"left",size:a,value:e,onChange:t,placeholder:n,contClassName:S.a.field,titleClass:S.a.fieldTitle,viewClassName:S.a.fieldView,inputClass:S.a.fieldInput,editIcon:o.a.createElement(O,{editIconClass:i}),notEditIcon:o.a.createElement(C,{notEditIconClass:r})}),E=n(940),k=n.n(E);var A=({title:e="",titleExtra:t=null,hasCrossButton:n,onCrossBtnClick:r,className:i="",onChange:a=(()=>{}),editableFieldViewSize:s})=>o.a.createElement("div",{className:x()("modal__header",i)},o.a.createElement("span",{className:"modal__title modal__title_editable"},o.a.createElement(P,{value:e,onChange:a,editIconClass:k.a.icon,notEditIconClass:k.a.icon,editableFieldViewSize:s})),t&&o.a.createElement("div",null,t),n&&r&&o.a.createElement(_.a,{onClick:r,contClass:"modal__cross-btn"})),j=n(107);var I=function({callBack:e,applyText:t="OK",disabled:n=!1,shouldShowSpinnerOnButtons:r=!1,submitButtonTheme:i="",hasCancelButton:a=!1,cancelButtonCallBack:s=(()=>{}),className:l=""}){const c=a?{width:"48%"}:{},u=a?{justifyContent:"space-between"}:{};return o.a.createElement("div",{className:x()("modal__buttons",l),style:u},a&&o.a.createElement(j.a,{contClass:"modal__button",onClick:s,isSecondaryOnWhiteBackground:!0,style:c},"Cancel"),o.a.createElement(j.a,{contClass:"modal__button",onClick:()=>e(!0),disabled:n,loading:r,isDanger:"danger"===i,style:c},t))},M=n(72),D=n.n(M),N=n(22),R=n.n(N);class L extends a.Component{constructor(e){super(e),this.el=void 0,this.el=document.createElement("div")}componentDidMount(){document.body.appendChild(this.el)}componentWillUnmount(){document.body.removeChild(this.el)}render(){return D.a.createPortal(this.props.children,this.el)}}L.propTypes={children:R.a.node};var F=L;var V=function({progress:e}){return o.a.createElement("div",{className:"modal-progress-bar"},o.a.createElement("div",{className:"modal-progress-bar__pace "+(1===e?"modal-progress-bar__pace--full":""),style:{width:Math.round(100*e)+"%"}}))};var B=function({appearance:e,parentWidth:t,parentHeight:n,padding:r}){switch(e){case"top":return function({parentHeight:e,padding:t}){const n={};return n.bottom=e+t+"px",n.right=0,n}({parentWidth:t,parentHeight:n,padding:r});case"bottom":return function({parentHeight:e,padding:t}){const n={};return n.top=e+t+"px",n.left=0,n}({parentWidth:t,parentHeight:n,padding:r});default:throw new Error("unknown appearance "+e)}},H=n(80),z=n.n(H),U=n(325);var W=function(e,t,n,r,i){Object(U.a)({enabled:e,schema:[{commands:["esc"],action:e=>{if(z()(t))t(e);else if(z()(n))n(e);else if(i===I){r(!1,e)}},shouldPreventDefaultAndStopPropagationOnFire:!0}],scope:"modal"})};const G={right:4},q={display:"flex",justifyContent:"center",alignItems:"center"};t.a=({canBeSubmitted:e=!1,isShown:t=!1,title:n,isTitleEditable:r,editableFieldViewSize:s,onTitleChange:c,callBack:d=(()=>{}),children:p,onAfterOpen:b,titleExtra:x,applyText:_="OK",willBeAppendedToBody:w=!0,appearance:S,padding:T=5,onOutsideClick:O=(()=>d(!1)),withoutStyles:C=!1,wrapperClass:P="",contentClass:E="",modelContentStyle:k={},buttonsClass:j="",bodyClass:M="",Header:D=v.a,Buttons:N=(t=>o.a.createElement(I,i()({},t,{disabled:!e}))),AdditionalComponents:R=(()=>null),modalWrapperRef:L,bodyRef:H,parentRef:z,hasCrossButton:U=!1,crossButtonClick:Y=(()=>d(!1)),shouldModalHaveScrollInSmallHeightScreen:X=!1,shouldShowSpinnerOnButtons:$=!1,progress:K,submitButtonTheme:Z="",hasCancelButton:Q=!1,cancelButtonCallBack:J=(()=>{}),contentStyle:ee})=>{W(t,Y,O,d,N),Object(a.useEffect)(()=>{t&&b&&b()},[t]);const te=Object(a.useRef)(null),ne=f()(L,te);Object(a.useEffect)(()=>{if(!t)return;if(l()(S))return;const e=u()(0,"current.offsetWidth",z),n=u()(0,"current.offsetHeight",z),r=B({appearance:S,parentWidth:e,parentHeight:n,padding:T});h()(r,(e,t)=>{te.current.style[t]=e})},[S,z,te,T,t]);const re=t?"visible":"hidden",ie=X?"":"modal__content--absolute-centered";if(!t)return null;const ae=o.a.createElement("div",{tabIndex:"-1","data-type":"modal__content",className:`${C?"":"modal__content"} ${E} ${ie}`,style:k},D&&(r?o.a.createElement(A,{onChange:c,title:n,titleExtra:x,editableFieldViewSize:s,hasCrossButton:U,onCrossBtnClick:Y}):o.a.createElement(D,{title:n,titleExtra:x,hasCrossButton:U,onCrossBtnClick:Y})),o.a.createElement("div",{ref:H,className:`${C?"":"modal__body"} ${M}`},Object(g.isDefined)(K)&&o.a.createElement(V,{progress:K}),p),N&&o.a.createElement(N,{callBack:d,applyText:_,submitButtonTheme:Z,hasCancelButton:Q,cancelButtonCallBack:J,shouldShowSpinnerOnButtons:$,className:j}),o.a.createElement(R,null)),oe=o.a.createElement("div",{tabIndex:"-1","data-type":"modal__wrapper",className:`${C?"":"modal"} ${P} ${re}`,onClick:e=>{Object(m.c)(e)===te.current&&O(e)},ref:ne},X?o.a.createElement(m.a,{autoHide:!1,trackYStyle:G,contentStyle:{...q,...ee}},ae):ae);return w?o.a.createElement(F,null,oe):o.a.createElement(y.a,{isListening:t,callBack:O},oe)}},function(e,t,n){var r=n(104),i=n(1114),a=n(362),o=Math.max,s=Math.min;e.exports=function(e,t,n){var l,c,u,d,h,p,f=0,m=!1,g=!1,y=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function v(t){var n=l,r=c;return l=c=void 0,f=t,d=e.apply(r,n)}function b(e){return f=e,h=setTimeout(_,t),m?v(e):d}function x(e){var n=e-p;return void 0===p||n>=t||n<0||g&&e-f>=u}function _(){var e=i();if(x(e))return w(e);h=setTimeout(_,function(e){var n=t-(e-p);return g?s(n,u-(e-f)):n}(e))}function w(e){return h=void 0,y&&l?v(e):(l=c=void 0,d)}function S(){var e=i(),n=x(e);if(l=arguments,c=this,p=e,n){if(void 0===h)return b(p);if(g)return clearTimeout(h),h=setTimeout(_,t),v(p)}return void 0===h&&(h=setTimeout(_,t)),d}return t=a(t)||0,r(n)&&(m=!!n.leading,u=(g="maxWait"in n)?o(a(n.maxWait)||0,t):u,y="trailing"in n?!!n.trailing:y),S.cancel=function(){void 0!==h&&clearTimeout(h),f=0,l=p=c=h=void 0},S.flush=function(){return void 0===h?d:w(i())},S}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var r=n(64),i=n(201),a=n(499),o=n(43),s=function(){function e(t,n){var r;if(void 0===t&&(t=""),void 0===n&&(n={}),t instanceof e)return t;this.originalInput=t;var i=Object(a.a)(t);this.originalInput=t,this.r=i.r,this.g=i.g,this.b=i.b,this.a=i.a,this.roundA=Math.round(100*this.a)/100,this.format=null!==(r=n.format)&&void 0!==r?r:i.format,this.gradientType=n.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=i.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},e.prototype.getLuminance=function(){var e=this.toRgb(),t=e.r/255,n=e.g/255,r=e.b/255;return.2126*(t<=.03928?t/12.92:Math.pow((t+.055)/1.055,2.4))+.7152*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))+.0722*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(e){return this.a=Object(o.b)(e),this.roundA=Math.round(100*this.a)/100,this},e.prototype.toHsv=function(){var e=Object(r.g)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,v:e.v,a:this.a}},e.prototype.toHsvString=function(){var e=Object(r.g)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.v);return 1===this.a?"hsv("+t+", "+n+"%, "+i+"%)":"hsva("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHsl=function(){var e=Object(r.f)(this.r,this.g,this.b);return{h:360*e.h,s:e.s,l:e.l,a:this.a}},e.prototype.toHslString=function(){var e=Object(r.f)(this.r,this.g,this.b),t=Math.round(360*e.h),n=Math.round(100*e.s),i=Math.round(100*e.l);return 1===this.a?"hsl("+t+", "+n+"%, "+i+"%)":"hsla("+t+", "+n+"%, "+i+"%, "+this.roundA+")"},e.prototype.toHex=function(e){return void 0===e&&(e=!1),Object(r.e)(this.r,this.g,this.b,e)},e.prototype.toHexString=function(e){return void 0===e&&(e=!1),"#"+this.toHex(e)},e.prototype.toHex8=function(e){return void 0===e&&(e=!1),Object(r.j)(this.r,this.g,this.b,this.a,e)},e.prototype.toHex8String=function(e){return void 0===e&&(e=!1),"#"+this.toHex8(e)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var e=Math.round(this.r),t=Math.round(this.g),n=Math.round(this.b);return 1===this.a?"rgb("+e+", "+t+", "+n+")":"rgba("+e+", "+t+", "+n+", "+this.roundA+")"},e.prototype.toPercentageRgb=function(){var e=function(e){return Math.round(100*Object(o.a)(e,255))+"%"};return{r:e(this.r),g:e(this.g),b:e(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var e=function(e){return Math.round(100*Object(o.a)(e,255))};return 1===this.a?"rgb("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%)":"rgba("+e(this.r)+"%, "+e(this.g)+"%, "+e(this.b)+"%, "+this.roundA+")"},e.prototype.toName=function(){if(0===this.a)return"transparent";if(this.a<1)return!1;for(var e="#"+Object(r.e)(this.r,this.g,this.b,!1),t=0,n=Object.keys(i.a);t=0;return t||!r||!e.startsWith("hex")&&"name"!==e?("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString()):"name"===e&&0===this.a?this.toName():this.toRgbString()},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l+=t/100,n.l=Object(o.c)(n.l),new e(n)},e.prototype.brighten=function(t){void 0===t&&(t=10);var n=this.toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),new e(n)},e.prototype.darken=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.l-=t/100,n.l=Object(o.c)(n.l),new e(n)},e.prototype.tint=function(e){return void 0===e&&(e=10),this.mix("white",e)},e.prototype.shade=function(e){return void 0===e&&(e=10),this.mix("black",e)},e.prototype.desaturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s-=t/100,n.s=Object(o.c)(n.s),new e(n)},e.prototype.saturate=function(t){void 0===t&&(t=10);var n=this.toHsl();return n.s+=t/100,n.s=Object(o.c)(n.s),new e(n)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(t){var n=this.toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,new e(n)},e.prototype.mix=function(t,n){void 0===n&&(n=50);var r=this.toRgb(),i=new e(t).toRgb(),a=n/100;return new e({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},e.prototype.analogous=function(t,n){void 0===t&&(t=6),void 0===n&&(n=30);var r=this.toHsl(),i=360/n,a=[this];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(new e(r));return a},e.prototype.complement=function(){var t=this.toHsl();return t.h=(t.h+180)%360,new e(t)},e.prototype.monochromatic=function(t){void 0===t&&(t=6);for(var n=this.toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(new e({h:r,s:i,v:a})),a=(a+s)%1;return o},e.prototype.splitcomplement=function(){var t=this.toHsl(),n=t.h;return[this,new e({h:(n+72)%360,s:t.s,l:t.l}),new e({h:(n+216)%360,s:t.s,l:t.l})]},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(t){for(var n=this.toHsl(),r=n.h,i=[this],a=360/t,o=1;oObject(u.isDefined)(e.isStub),g=e=>{const t=e.getAppStore(),n=Object(a.useRef)({x:e.x,y:e.y}),r=Object(a.useRef)(null);return Object(a.useEffect)(()=>{if(r.current){const{x:e,y:t}=n.current;r.current.style.transform=`translate3d(${e}px, ${t}px, 0)`}},[]),Object(c.a)(()=>({x:e.x,y:e.y}),n=>{t.draggingObject!==e.id&&r.current&&(r.current.style.transform=`translate3d(${n.x}px, ${n.y}px, 0)`)}),r},y=(e,t,n)=>{const r=Object(a.useMemo)(()=>new d.a({spacing:e.gridSpacing,height:t.containerHeight,width:t.containerWidth,parentWidth:e.width,parentHeight:e.height}),[e.gridSpacing,t.containerWidth,t.containerHeight,e.width,e.height]),s=Object(a.useMemo)(()=>l()(t.clipPath)?"":"string"==typeof t.clipPath?r.parse(t.clipPath):t.clipPath.map(e=>r.parse(e)),[t.clipPath,r]),c=e=>"string"==typeof s?o.a.createElement("path",i()({d:s},e)):o.a.createElement(o.a.Fragment,null,s.map((t,n)=>o.a.createElement("path",i()({d:t,key:n},e)))),u=o.a.createElement("svg",{height:"100%",width:"100%",viewBox:`0 0 ${t.containerWidth} ${t.containerHeight}`},o.a.createElement("defs",null,o.a.createElement("clipPath",{id:v(t,n)},o.a.createElement(c,null)))),h={display:e.selectedPhoto===t?"block":"none"},f=o.a.createElement("svg",{height:"100%",width:"100%",viewBox:`0 0 ${t.containerWidth} ${t.containerHeight}`,className:"images-frame__highlighter",style:h},o.a.createElement(c,{fill:"transparent",stroke:p.a.blueSky,strokeWidth:"4",className:"images-frame__highlighter-path"}),m(t)&&t.highlighterPath&&o.a.createElement("path",{d:r.parse(t.highlighterPath),fill:"transparent",strokeWidth:"4",stroke:p.a.blueSky}));return{pathParser:r,clipPathSVG:u,highlighterPathSVG:f}};function v(e,t){return`clipPath-${e.id}-${t}`}function b(e,t){const n=m(e)&&e.isStub?{backgroundSize:"cover",backgroundPosition:"center"}:{backgroundColor:e.fillColor||void 0};return{clipPath:`url(#${v(e,t)})`,...n}}function x(e){return{width:100*e.gridWidth+"%",height:100*e.gridHeight+"%",top:100*e.gridY+"%",left:100*e.gridX+"%"}}function _(e){const t=e.shouldUseTextureFromBackground?{mixBlendMode:"multiply",opacity:.9}:{};return{...x(e),...t}}function w(e){return{width:e.width<=0?"100%":e.width,height:e.height<=0?"100%":e.height}}function S(e){Object(h.a)(e,()=>{e.setSelectedPhoto(void 0),e.setIsActive(!1)})}function T(e,t){const[n,r]=Object(a.useState)(!1);return Object(a.useEffect)(()=>Object(u.addEventListener)(window,"mousemove",e=>{const i=document.elementsFromPoint(e.x,e.y).some(e=>e.dataset.frameImageId===t.id);n!==i&&r(i)}),[t.id,n]),n&&!(e.selectedPhoto===t)&&"editor"===bootstrap.mode}},,function(e,t,n){var r=n(235);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";n.d(t,"j",(function(){return m})),n.d(t,"i",(function(){return g})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return v})),n.d(t,"a",(function(){return b})),n.d(t,"e",(function(){return _})),n.d(t,"k",(function(){return w})),n.d(t,"f",(function(){return S})),n.d(t,"h",(function(){return T})),n.d(t,"d",(function(){return O})),n.d(t,"g",(function(){return C}));var r=n(175),a=n.n(r),o=n(154),s=n(1280),l=n(12),c=n(314);if(!u)var u={map:function(e,t){var n={};return t?e.map((function(e,r){return n.index=r,t.call(n,e)})):e.slice()},naturalOrder:function(e,t){return et?1:0},sum:function(e,t){var n={};return e.reduce(t?function(e,r,i){return n.index=i,e+t.call(n,r)}:function(e,t){return e+t},0)},max:function(e,t){return Math.max.apply(null,t?u.map(e,t):e)}};var d=function(){function e(e,t,n){return(e<<10)+(t<<5)+n}function t(e){var t=[],n=!1;function r(){t.sort(e),n=!0}return{push:function(e){t.push(e),n=!1},peek:function(e){return n||r(),void 0===e&&(e=t.length-1),t[e]},pop:function(){return n||r(),t.pop()},size:function(){return t.length},map:function(e){return t.map(e)},debug:function(){return n||r(),t}}}function n(e,t,n,r,i,a,o){this.r1=e,this.r2=t,this.g1=n,this.g2=r,this.b1=i,this.b2=a,this.histo=o}function r(){this.vboxes=new t((function(e,t){return u.naturalOrder(e.vbox.count()*e.vbox.volume(),t.vbox.count()*t.vbox.volume())}))}function i(t,n){if(n.count()){var r=n.r2-n.r1+1,i=n.g2-n.g1+1,a=u.max([r,i,n.b2-n.b1+1]);if(1==n.count())return[n.copy()];var o,s,l,c,d=0,h=[],p=[];if(a==r)for(o=n.r1;o<=n.r2;o++){for(c=0,s=n.g1;s<=n.g2;s++)for(l=n.b1;l<=n.b2;l++)c+=t[e(o,s,l)]||0;h[o]=d+=c}else if(a==i)for(o=n.g1;o<=n.g2;o++){for(c=0,s=n.r1;s<=n.r2;s++)for(l=n.b1;l<=n.b2;l++)c+=t[e(s,o,l)]||0;h[o]=d+=c}else for(o=n.b1;o<=n.b2;o++){for(c=0,s=n.r1;s<=n.r2;s++)for(l=n.g1;l<=n.g2;l++)c+=t[e(s,l,o)]||0;h[o]=d+=c}return h.forEach((function(e,t){p[t]=d-e})),function(e){var t,r,i,a,s,l=e+"1",c=e+"2",u=0;for(o=n[l];o<=n[c];o++)if(h[o]>d/2){for(i=n.copy(),a=n.copy(),s=(t=o-n[l])<=(r=n[c]-o)?Math.min(n[c]-1,~~(o+r/2)):Math.max(n[l],~~(o-1-t/2));!h[s];)s++;for(u=p[s];!u&&h[s-1];)u=p[--s];return i[c]=s,a[l]=i[c]+1,[i,a]}}(a==r?"r":a==i?"g":"b")}}return n.prototype={volume:function(e){return this._volume&&!e||(this._volume=(this.r2-this.r1+1)*(this.g2-this.g1+1)*(this.b2-this.b1+1)),this._volume},count:function(t){var n=this.histo;if(!this._count_set||t){var r,i,a,o=0;for(r=this.r1;r<=this.r2;r++)for(i=this.g1;i<=this.g2;i++)for(a=this.b1;a<=this.b2;a++)o+=n[e(r,i,a)]||0;this._count=o,this._count_set=!0}return this._count},copy:function(){return new n(this.r1,this.r2,this.g1,this.g2,this.b1,this.b2,this.histo)},avg:function(t){var n=this.histo;if(!this._avg||t){var r,i,a,o,s=0,l=0,c=0,u=0;for(i=this.r1;i<=this.r2;i++)for(a=this.g1;a<=this.g2;a++)for(o=this.b1;o<=this.b2;o++)s+=r=n[e(i,a,o)]||0,l+=r*(i+.5)*8,c+=r*(a+.5)*8,u+=r*(o+.5)*8;this._avg=s?[~~(l/s),~~(c/s),~~(u/s)]:[~~(8*(this.r1+this.r2+1)/2),~~(8*(this.g1+this.g2+1)/2),~~(8*(this.b1+this.b2+1)/2)]}return this._avg},contains:function(e){var t=e[0]>>3;return gval=e[1]>>3,bval=e[2]>>3,t>=this.r1&&t<=this.r2&&gval>=this.g1&&gval<=this.g2&&bval>=this.b1&&bval<=this.b2}},r.prototype={push:function(e){this.vboxes.push({vbox:e,color:e.avg()})},palette:function(){return this.vboxes.map((function(e){return e.color}))},size:function(){return this.vboxes.size()},map:function(e){for(var t=this.vboxes,n=0;n251&&r[1]>251&&r[2]>251&&(e[n].color=[255,255,255])}},{quantize:function(a,o){if(!a.length||o<2||o>256)return!1;var s=function(t){var n,r=new Array(32768);return t.forEach((function(t){n=e(t[0]>>3,t[1]>>3,t[2]>>3),r[n]=(r[n]||0)+1})),r}(a);s.forEach((function(){}));var l=function(e,t){var r,i,a,o=1e6,s=0,l=1e6,c=0,u=1e6,d=0;return e.forEach((function(e){(r=e[0]>>3)s&&(s=r),(i=e[1]>>3)c&&(c=i),(a=e[2]>>3)d&&(d=a)})),new n(o,s,l,c,u,d,t)}(a,s),c=new t((function(e,t){return u.naturalOrder(e.count(),t.count())}));function d(e,t){for(var n,r=e.size(),a=0;a<1e3;){if(r>=t)return;if(a++>1e3)return;if((n=e.pop()).count()){var o=i(s,n),l=o[0],c=o[1];if(!l)return;e.push(l),c&&(e.push(c),r++)}else e.push(n),a++}}c.push(l),d(c,.75*o);for(var h=new t((function(e,t){return u.naturalOrder(e.count()*e.volume(),t.count()*t.volume())}));c.size();)h.push(c.pop());d(h,o);for(var p=new r;h.size();)p.push(h.pop());return p}}}().quantize,h=function(e){this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.width=this.canvas.width=e.naturalWidth,this.height=this.canvas.height=e.naturalHeight,this.context.drawImage(e,0,0,this.width,this.height)};h.prototype.getImageData=function(){return this.context.getImageData(0,0,this.width,this.height)};var p=function(){};p.prototype.getColor=function(e,t){return void 0===t&&(t=10),this.getPalette(e,5,t)[0]},p.prototype.getPalette=function(e,t,n){var r=function(e){var t=e.colorCount,n=e.quality;if(void 0!==t&&Number.isInteger(t)){if(1===t)throw new Error("colorCount should be between 2 and 20. To get one color, call getColor() instead of getPalette()");t=Math.max(t,2),t=Math.min(t,20)}else t=10;return(void 0===n||!Number.isInteger(n)||n<1)&&(n=10),{colorCount:t,quality:n}}({colorCount:t,quality:n}),i=new h(e),a=function(e,t,n){for(var r=e,i=[],a=0,o=void 0,s=void 0,l=void 0,c=void 0,u=void 0;a=125)&&(s>250&&l>250&&c>250||i.push([s,l,c]));return i}(i.getImageData().data,i.width*i.height,r.quality),o=d(a,r.colorCount);return o?o.palette():null},p.prototype.getColorFromUrl=function(e,t,n){var r=this,i=document.createElement("img");i.addEventListener("load",(function(){var a=r.getPalette(i,5,n);t(a[0],e)})),i.src=e},p.prototype.getImageData=function(e,t){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){if(200==this.status){var e=new Uint8Array(this.response);i=e.length;for(var n=new Array(i),r=0;r0===Object(o.b)(e).getAlpha(),g=e=>1===Object(o.b)(e).getAlpha(),y=(e,t)=>Object(o.b)(e).equals(t),v=(e,t)=>!y(e,t),b=(e="")=>m(e)?e:g(e)?Object(o.b)(e).toHexString():Object(o.b)(e).toHex8String(),x=(e,t,n=.5)=>{const r={...e};for(const i in r)r[i]=Math.round(r[i]+n*(t[i]-e[i]));return r},_=(e,t,n=5)=>{const r=Object(o.b)(e).toRgb(),i=Object(o.b)(t).toRgb(),a=[],s=1/(n-1);for(let e=0;e>16)+r,a=(n>>8&255)+r,o=(255&n)+r;return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(a<255?a<1?0:a:255)+(o<255?o<1?0:o:255)).toString(16).slice(1)}function S({ref:e,colorFields:t=[],shouldRiseToParentsIfNotFound:n=!0}){let r=[...t];const i=Object(c.a)(e),s={},l=e=>{if(!e)return s;const t=[];for(const n of r){const r=window.getComputedStyle(e)[n];Object(o.b)(r).getAlpha()>.3&&(s[n]=r,t.push(n))}return r=a()(t,r),r.length&&n?l(e.parentElement):s};return l(i)}function T({ref:e,originalColor:t,listOfColors:n=[],shouldRiseToParentsIfNotFound:r=!0}){const i=S({ref:e,colorFields:["backgroundColor"],shouldRiseToParentsIfNotFound:r}).backgroundColor||l.a.white;if(t&&Object(s.a)(i,t))return t;return Object(s.b)(i,n,{includeFallbackColors:!0}).toHexString()}function O({imageUrl:e,colorsCount:t,addHashToSrc:n=!0},r){const i=new Image;return i.crossOrigin="anonymous",i.src=`${e}${n?"?"+Math.random():""}`,new Promise(e=>{i.onload=function(){try{const n=new f,i=(n.getPalette(this,t)||[]).map(e=>{const[t,n,r]=e;return Object(o.b)({r:t,g:n,b:r}).toHexString()});return r&&r(i),e(i)}catch{return e([])}}})}function C(e){const t=Object(o.b)(e);let n=[];if(0===t.toHsv().s){const e=t.monochromatic().map(e=>e.toHexString());e.shift(),n=e}else{const e=t.tetrad().map(e=>e.toHexString());e.shift();const r=t.monochromatic().map(e=>e.toHexString());n=[...e,r[1],r[2]]}return n}},function(e,t,n){var r=n(49)("isNumber",n(267),n(94));r.placeholder=n(47),e.exports=r},function(e,t,n){var r=n(279),i=n(392);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t,n){var r=n(789);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!i;a--){var o=a>=0?arguments[a]:e.cwd();if("string"!=typeof o)throw new TypeError("Arguments to path.resolve must be strings");o&&(t=o+"/"+t,i="/"===o.charAt(0))}return(i?"/":"")+(t=n(r(t.split("/"),(function(e){return!!e})),!i).join("/"))||"."},t.normalize=function(e){var a=t.isAbsolute(e),o="/"===i(e,-1);return(e=n(r(e.split("/"),(function(e){return!!e})),!a).join("/"))||a||(e="."),e&&o&&(e+="/"),(a?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(r(e,(function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),a=r(n.split("/")),o=Math.min(i.length,a.length),s=o,l=0;l=1;--a)if(47===(t=e.charCodeAt(a))){if(!i){r=a;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=function(e){"string"!=typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!=typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,a=0,o=e.length-1;o>=0;--o){var s=e.charCodeAt(o);if(47!==s)-1===r&&(i=!1,r=o+1),46===s?-1===t?t=o:1!==a&&(a=1):-1!==t&&(a=-1);else if(!i){n=o+1;break}}return-1===t||-1===r||0===a||1===a&&t===r-1&&t===n+1?"":e.slice(t,r)};var i="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(186))},function(e,t,n){var r=n(882),i=n(891),a=n(213),o=n(79),s=n(894);e.exports=function(e){return"function"==typeof e?e:null==e?a:"object"==typeof e?o(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n0?255-e:e;return Math.round(n*t)}function g(e,t){if(e){var n=m(Math.min(Math.max(e.r,e.g,e.b),230),t);return{r:Math.max(0,Math.min(255,Math.round(e.r+n))),g:Math.max(0,Math.min(255,Math.round(e.g+n))),b:Math.max(0,Math.min(255,Math.round(e.b+n))),a:e.a}}return e}function y(e,t){return Math.round(255*t)}function v(e,t){if(null==e||1==t)return e;var n=x(e);return n.s=t,b(n)}function b(e){var t,n,r,i=e.h,a=e.s,o=e.l;if(0==a)t=n=r=o;else{var s=function(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e},l=o<.5?o*(1+a):o+a-o*a,c=2*o-l;t=s(c,l,i+1/3),n=s(c,l,i),r=s(c,l,i-1/3)}return{r:Math.round(255*t),g:Math.round(255*n),b:Math.round(255*r)}}function x(e){var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.max(t,n,r),a=Math.min(t,n,r),o=0,s=0,l=(i+a)/2;if(i===a)o=s=0;else{var c=i-a;switch(s=l>.5?c/(2-i-a):c/(i+a),i){case t:o=(n-r)/c+(n=128}},function(e,t){e.exports=function(e){return void 0===e}},,function(e,t,n){var r=n(1568)("round");e.exports=r},function(e,t,n){"use strict";n.d(t,"g",(function(){return s})),n.d(t,"b",(function(){return l})),n.d(t,"n",(function(){return c})),n.d(t,"k",(function(){return u})),n.d(t,"j",(function(){return d})),n.d(t,"a",(function(){return h})),n.d(t,"i",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"m",(function(){return m})),n.d(t,"e",(function(){return g})),n.d(t,"d",(function(){return y})),n.d(t,"h",(function(){return v})),n.d(t,"c",(function(){return b})),n.d(t,"l",(function(){return _}));var r,i,a,o=n(65);const s=!0,l=Object(o.a)({dev:!0,qa:!0,prod:!0}),c=Object(o.a)({dev:!0,qa:!0,prod:!0}),u=Object(o.a)({dev:!0,qa:!0,prod:!0}),d=Object(o.a)({dev:!0,qa:!0,prod:!0}),h=Object(o.a)({dev:!1,qa:!1,prod:!1}),p=Object(o.a)({local:!0,dev:!0,qa:!0}),f=Object(o.a)({dev:!0,qa:!0,prod:!0}),m=(Object(o.a)({dev:!1,qa:!0,prod:!0}),Object(o.a)({dev:!0,qa:!0,prod:!0})),g=Object(o.a)({dev:!0,qa:!0,prod:!0}),y=Object(o.a)({local:!0,qa:!0,prod:!0}),v=Object(o.a)({local:!0,qa:!0,prod:!1}),b=Object(o.a)({local:!0,dev:!0,qa:!0,prod:!1}),x=Object(o.a)({local:!0})?16:10486383,_=(Number(null===(r=bootstrap)||void 0===r?void 0:r.userId)===x||Number(null===(i=bootstrap)||void 0===i||null===(a=i.userInfo)||void 0===a?void 0:a.id)===x||Boolean(bootstrap.brandedTemplateStyleTheme)&&Boolean(bootstrap.isBrandedTemplateProject),!1)},,,function(e,t,n){var r=n(49)("without",n(916));r.placeholder=n(47),e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(7),i=n(82),a=n(32),o=n(239),s=n(8),l=n(18),c=n(4),u=n(2),d=function(e){function t(){var t=e.call(this)||this;return t._stops=new a.b,t._rotation=0,t.className="LinearGradient",t._stops.events.on("setIndex",t.validate,t),t._stops.events.on("inserted",t.validate,t),t.element=t.paper.addGroup("linearGradient"),t.id="gradient-"+s.c.getUniqueId(),t.element.attr({id:t.id}),t._disposers.push(t.element),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.validate=function(){var e=this,t=(this._rotation+90)*c.RADIANS,n=Math.round(50+50*Math.sin(t+Math.PI))+"%",r=Math.round(50+50*Math.cos(t))+"%",i=Math.round(50+50*Math.sin(t))+"%",a=Math.round(50+50*Math.cos(t+Math.PI))+"%",o=this.element;o.removeChildNodes(),o.attr({x1:n,x2:i,y1:r,y2:a}),l.each(l.indexed(this._stops.iterator()),(function(t){var n=t[0],r=t[1],i=r.offset;u.isNumber(i)||(i=n/(e._stops.length-1));var a=e.paper.add("stop");u.hasValue(r.color)&&a.attr({"stop-color":r.color.toString()}),u.isNumber(r.opacity)&&a.attr({"stop-opacity":r.opacity}),u.isNumber(i)&&a.attr({offset:i}),o.add(a)}))},t.prototype.clear=function(){this._stops.clear()},t.prototype.addColor=function(e,t,n){this._stops.push({color:e,opacity:t,offset:n})},Object.defineProperty(t.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paper",{get:function(){return this._paper?this._paper:Object(o.b)()},set:function(e){this._paper!=e&&(this._paper=e,this.validate(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation=e,this.validate()},enumerable:!0,configurable:!0}),t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),this.stops.copyFrom(t.stops),this._rotation=t.rotation},Object.defineProperty(t.prototype,"gradientUnits",{set:function(e){this.element.attr({gradientUnits:e})},enumerable:!0,configurable:!0}),t}(i.a);s.c.registeredClasses.LinearGradient=d},,function(e,t,n){var r=n(815),i=n(820);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(197);e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},function(e,t,n){"use strict";n.d(t,"g",(function(){return w})),n.d(t,"c",(function(){return T})),n.d(t,"a",(function(){return O})),n.d(t,"d",(function(){return C})),n.d(t,"e",(function(){return P})),n.d(t,"f",(function(){return E})),n.d(t,"b",(function(){return k}));var r=n(133),i=n.n(r);function a(e){let t;for(t=(window.HTMLElement?e instanceof HTMLElement:void 0===e.length)?e:e[0];t.childElementCount>0;)t=t.children[0];return t}function o(e,t){if(e===t)return t.outerHTML;const n=[e];for(;e.parentNode&&e.parentNode!==t&&e.parentNode.innerHTML!==t.innerHTML;)e=e.parentNode,n.push(e);n.push(t);const r=n.length-1;for(let e=0;e"P"===e.tagName?e:"UL"===e.tagName?Array.from(e.children):[])}function c(e,t,n,r=!1){const i=e.split(" ").length,a=t[n].containersUsedFromReceivedObject.wholeTextOfUsedContainers.length;return r?a/i:i/a}function u(e,t,n){let r=0;l(t).forEach(t=>{const i=(t=>{const i=[];return e[r].containersUsedFromReceivedObject.styledItems.reduce((l,u)=>{i.push(u.innerText);if(n&&i.join(" ").length{if(!t.innerText)return;const r=(t=>{var r;return null===(r=e[n].containersUsedFromReceivedObject)||void 0===r?void 0:r.styledItems.map(r=>{let i=r;i.childElementCount&&(i=a(r));const l=c(r.innerText,e,n,!0),[u,d]=s(e,n,l,t),h=r.innerText;i.innerText=u.join(" ");const p=o(i,r);return r.innerText=h,t+=d,p})})(0);t.innerHTML=(null==r?void 0:r.length)?r.join(" "):t.innerHTML,n+=1})}function h(e,t){let n=0;l(t).forEach(t=>{const r=(i=0,e[n].containersUsedFromReceivedObject.styledItems.map(t=>{let r=t;r.childElementCount&&(r=a(t));const l=c(t.innerText,e,n),[u,d]=s(e,n,l,i);return i+=d,r.innerText=u.join(" "),o(r,t)}));var i;t.innerHTML=r.length?r.join(" "):t.innerHTML,n+=1})}var p=function(e,t,n,r){1===n&&u(e,t,r),n>1&&d(e,t),n<1&&h(e,t)};var f=(e,t,n,r)=>{1===n&&((e,t,n=!0)=>{e.forEach((e,r)=>{const{text:i,children:a,tag:o,cssText:s}=t[r];e.containersUsedFromReceivedObject={wholeTextOfUsedContainers:[...i],styledItems:[...a],shouldBecome:n?o:e.tag,cssText:s}})})(e,t,r),n>1&&((e,t,n=!0)=>{const r=t.reduce((e,t)=>t.text.length+e,0);let i=0,a=0;t.forEach(t=>{const o=Math.ceil(t.text.length/r*e.length),s=i+o,l=e.slice(i,s),c=Math.ceil(l.length/t.children.length);l.forEach((r,o)=>{const s=Math.ceil((o+1)/c),l=t.children.length>1?t.children.slice(s-1,s):t.children;r.containersUsedFromReceivedObject={wholeTextOfUsedContainers:t.text,styledItems:l,shouldBecome:n?t.tag:r.tag,cssText:t.cssText},e.splice(a,1,r),a+=1,i+=1})})})(e,t,r),n<1&&((e,t)=>{const n=e.reduce((e,t)=>t.text.length+e,0);let r=0;e.forEach(e=>{const i=t.length*(e.text.length/n),a=[],o=[];let s=[],l=[];const c=r+i;t.slice(r,c).forEach(e=>{const{text:t,children:n,tag:r,cssText:i}=e;a.push(t),o.push(n),s.push(r),l.push(i)}),r=c,s=s.reduce((e,t,n,{length:r})=>{const i={...e};return i[t]+=1,r-1===n?i.li>=i.p?"li":"p":i},{li:0,p:0}),l=l.reduce((e,t,n,{length:r})=>{const i={...e};return i[t]?i[t]+=1:i[t]=1,r-1===n?Object.entries(i).sort(([e,t],[n,r])=>r-t)[0][0]:i},{}),e.containersUsedFromReceivedObject={wholeTextOfUsedContainers:a.flat(),styledItems:o.flat(),shouldBecome:s,cssText:l}})})(e,t)};function m(e,t){const n=t(),r=[],i=Array.from(e.children),a=(e,t)=>{let i=Array.from(e.children);if(!i.length){const t=n.createElement("span");t.innerText=e.innerText,i=[t]}r.push({tag:t,text:e.innerText.split(" ").filter(e=>""!==e),children:i.filter(e=>e.innerText&&" "!==e.innerText),cssText:e.style.cssText})};return i.forEach(e=>{if("P"===e.tagName&&a(e,"p"),"SPAN"===e.tagName){const t=n.createElement("p");t.innerHTML=e.outerHTML,a(t,"p")}if("UL"===e.tagName){Array.from(e.children).forEach(e=>{a(e,"li")})}}),r.filter(e=>e.children.length)}var g=n(298);function y(e,t,n,r,i){const o=r(),s=o.createElement("div"),l=o.createElement("div");s.innerHTML=t.text,l.innerHTML=e.text;const c=m(s,r),u=m(l,r),d=u.length/c.length;if(f(u,c,d,n),function(e,t,n){"container"===t.type&&n.forEach(t=>{t.containersUsedFromReceivedObject&&t.containersUsedFromReceivedObject.styledItems.forEach(t=>{let n=t;n.childElementCount&&(n=a(t));const r=parseFloat(n.style.fontSize),i=Object(g.a)(r,e.scale);n.style.fontSize=i+"px"})})}(t,e,u),p(u,l,d,i),function(e,t,n){const r=n(),i=[];let a=[];e.forEach((e,t,{length:n})=>{var r;"li"===(null===(r=e.containersUsedFromReceivedObject)||void 0===r?void 0:r.shouldBecome)?(e.tag="li",a.push(e),n-1===t&&i.push(a)):(a.length&&i.push(a),a=[],e.tag="p",i.push(e))});const o=Array.from(t.children).map(e=>{if("P"===e.tagName)return e;if("SPAN"===e.tagName){const t=r.createElement("p");return t.innerHTML=e.outerHTML,t}return"UL"===e.tagName?Array.from(e.children):void 0}).flat();let s=0;const l=i.map(e=>{if(o[s].innerText.length||(s+=1),Array.isArray(e)){const t=r.createElement("ul"),n=[];return e.map(e=>{const t=r.createElement("li");t.innerHTML=o[s].innerHTML,t.style.cssText=e.containersUsedFromReceivedObject.cssText,n.push(t.outerHTML),s+=1}),t.innerHTML=n.join(""),t.outerHTML}{var t;const n=r.createElement("p");return n.style.cssText=null==e||null===(t=e.containersUsedFromReceivedObject)||void 0===t?void 0:t.cssText,n.innerHTML=o[s].innerHTML,s+=1,n.outerHTML}});t.children.length!==l.length&&Array.from(t.children).forEach((e,t)=>{e.innerText||l.splice(t,0,e.outerHTML)}),t.innerHTML=l.join("")}(u,l,r),e.setText(l.innerHTML),e.setCoordinates({width:t.width}),e.fixHeight){setTimeout(()=>e.fixHeight(!0),100)}}var v=n(158),b=(e,t,n)=>{const r=n();let i=[];const a=r.createElement("div");a.innerHTML=t.text,Array.from(a.children).forEach(e=>{if("P"===e.tagName&&(i=[...i,...e.children]),"UL"===e.tagName){Array.from(e.children).forEach(e=>{i=[...i,...e.children]})}});return{colors:[...new Set(i.map(e=>Object(v.a)(e.style.color)))],type:e.type}};function x(e,t,n,r){if(O.includes(t.type)){const{received:i,shouldTransformLists:a}=function(e,t,n){if(O.includes(t.type))return{received:t,shouldTransformLists:!0};let r=t.colors;"illustration"===t.type&&(r=t.colorPickerThemeColors);const i=n(),a=r.map(e=>{const t=i.createElement("span");return t.style.cssText="color: "+e,t.innerText=".",t.outerHTML});return{received:{text:`

${a.join(" ")}

`},shouldTransformLists:!1}}(0,e,n);return y(t,i,a,n,r),{received:e,skipIllustrationHelper:!0}}return{received:b(t,e,n),skipIllustrationHelper:!1}}const _=(e,t,n)=>{const r=t=>t+1>e.length?t-e.length*Math.floor(t/e.length):t;"array"!==t.type?"illustration"!==t.type?"threeDGraphic"!==t.type?n||t.colors.forEach((n,i)=>{const a=r(i);t.colors.splice(i,1,e[a])}):t.setColors(Object.entries(t.colors.toJSON()).reduce((t,[n],i)=>({...t,[n]:e[r(i)]}),{})):t.colorPickerThemeColors.forEach((n,i)=>{t.updateColor(e[r(i)],i)}):t.colors.forEach((n,i)=>{t.setColorFor(i+1,e[r(i)])})},w=["opacity","colorPickerThemeColors","colorTitles","colors","shadowControls","colorOverlayColor","colorOverlay","contrast","saturate","hue","brightness","blur","filterName","thickness","borderStyle","borderColor","borderRadius","borderWidth","isSvgBorderAvailable","linePadding","lineHeight","letterSpacing","align","font","padding","backgroundColor","transform","alignVertical","textColumns","autoSize","backgroundShape","roundness","style","round","borderDisplay","showStroke","flipZones","direction","scale","textEffects"],S=["type","text"],T=["background","character","chart","cLines","chart","clock","gauge","gesture","lordIcon","specialEffect","animatedShape","animatedFace","group","iframe","map","pdf","table","video","typeform","jotform","loom","qrCode","surveyMonkey","photoGrid","mockup","customLine","brandLogo"],O=["text","container"];function C(e,t=!1){return!!e&&("svg"===e.type?t?e.colors.length>0:1===e.colors.length:"threeDGraphic"===e.type?t:!T.includes(e.type))}const P=e=>S.includes(e),E=e=>w.includes(e),k=(e,t)=>{let{sourceObject:n,selectedRangeOfCopiedText:r}=e;if(t.isApplyingStyle=!0,((e,t)=>!(e&&t&&C(e)&&C(t,!0)))(n,t))return;let a=!1;if(((e,t)=>O.includes(e.type)||O.includes(t.type))(n,t)){const e=x(n,t,n.getDocument,r);n=e.received,a=e.skipIllustrationHelper}let o=!1;!a&&((e,t)=>"illustration"===e.type||"illustration"===t.type)(n,t)&&(((e,t)=>{"illustration"!==e.type?_(e.colors,t,!1):_(e.colorPickerThemeColors,t,!1)})(n,t),o=!0),((e,t,n)=>{let r=!1;Object.keys(e).forEach(a=>{E(a)&&("colorTitles"!==a||n?"colors"!==a||n?"scale"===a&&"container"===t.type||"backgroundColor"===a&&[t.type,e.type].some(e=>"container"===e)||(t[a]=i()(e[a]),"font"===a&&"container"===t.type&&(t.font.size=Object(g.a)(e.font.size,e.scale))):_(e[a],t,r):r=((e,t)=>{if(t.colorTitles.length&&e.colorTitles.length&&"svg"!==t.type){const n=[...t.colorTitles],r=[...e.colorTitles],i=[...t.colors];return e.colorTitles.forEach((a,o)=>{const s=t.colorTitles.indexOf(a);-1!==s&&(r.splice(r.indexOf(a),1),n.splice(n.indexOf(a),1),i[s]=e.colors[o])}),n.length&&r.length&&n.forEach((e,n)=>{const a=t.colorTitles.indexOf(e);i.colors[a]=r[n]}),t.colors=i,!0}return!1})(e,t))})})(n,t,o),t.isApplyingStyle=!1}},,function(e,t,n){"use strict";n.d(t,"g",(function(){return i})),n.d(t,"h",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"f",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"b",(function(){return d}));var r=n(12);const i=6,a=4,o=4,s=4,l=38,c=[r.a.red,r.a.lightYellow,r.a.lightGreen,r.a.blue,r.a.black,r.a.white],u={ALL:"all",MY:"my",RESOLVED:"resolved"},d=[{label:"Open Comments",value:u.ALL},{label:"Just My Comments",value:u.MY},{label:"Resolved",value:u.RESOLVED}]},,function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(7),i=n(37),a=n(8),o=n(4),s=n(2),l=n(13),c=function(e){function t(){var t=e.call(this)||this;return t.className="RoundedRectangle",t.element=t.paper.add("path"),t.cornerRadius(3,3,3,3),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.draw=function(){e.prototype.draw.call(this);var t=this.innerWidth,n=this.innerHeight;if(s.isNumber(t)&&s.isNumber(n)){var r=o.min(t,n)/2,i=l.relativeToValue(this.cornerRadiusTopLeft,r),a=l.relativeToValue(this.cornerRadiusTopRight,r),c=l.relativeToValue(this.cornerRadiusBottomRight,r),u=l.relativeToValue(this.cornerRadiusBottomLeft,r),d=o.min(Math.abs(t/2),Math.abs(n/2)),h=o.fitToRange(i,0,d),p=o.fitToRange(a,0,d),f=o.fitToRange(c,0,d),m=o.fitToRange(u,0,d),g="M"+h+",0 L"+(t-p)+",0"+(" a"+p+","+p+" 0 0 1 "+p+","+p)+(" L"+t+","+(n-f))+(" a"+f+","+f+" 0 0 1 -"+f+","+f)+(" L"+m+","+n)+(" a"+m+","+m+" 0 0 1 -"+m+",-"+m)+(" L0,"+h)+(" a"+h+","+h+" 0 0 1 "+h+",-"+h)+" Z";this.path=g}},t.prototype.cornerRadius=function(e,t,n,r){this.cornerRadiusTopLeft=e,this.cornerRadiusTopRight=t,this.cornerRadiusBottomLeft=n,this.cornerRadiusBottomRight=r},Object.defineProperty(t.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(e){this.setPercentProperty("cornerRadiusTopLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(e){this.setPercentProperty("cornerRadiusTopRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(e){this.setPercentProperty("cornerRadiusBottomRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(e){this.setPercentProperty("cornerRadiusBottomLeft",e,!0)},enumerable:!0,configurable:!0}),t.prototype.measureElement=function(){},Object.defineProperty(t.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),t}(i.a);a.c.registeredClasses.RoundedRectangle=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(17),i=n.n(r),a=n(0),o=n.n(a),s="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),l=new Uint8Array(16);function c(){if(!s)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return s(l)}var u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;for(var d=function(e){return"string"==typeof e&&u.test(e)},h=[],p=0;p<256;++p)h.push((p+256).toString(16).substr(1));var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(h[e[t+0]]+h[e[t+1]]+h[e[t+2]]+h[e[t+3]]+"-"+h[e[t+4]]+h[e[t+5]]+"-"+h[e[t+6]]+h[e[t+7]]+"-"+h[e[t+8]]+h[e[t+9]]+"-"+h[e[t+10]]+h[e[t+11]]+h[e[t+12]]+h[e[t+13]]+h[e[t+14]]+h[e[t+15]]).toLowerCase();if(!d(n))throw TypeError("Stringified UUID is invalid");return n};var m=function(e,t,n){var r=(e=e||{}).random||(e.rng||c)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return f(r)},g=n(1195),y=n.n(g);const v=({filter:e,children:t,primitiveUnits:n="userSpaceOnUse",useOutsideSpace:r=!1})=>{const[a]=o.a.useState(m()),s=o.a.useRef(null);o.a.useEffect(()=>{var e;const t=null==s||null===(e=s.current)||void 0===e?void 0:e.querySelector("[data-text-filter-target]");t&&(t.style.filter=`url(#${a})`)},[a]);const l={x:r?"-20%":"0%",y:r?"-20%":"0%",width:r?"140%":"100%",height:r?"140%":"100%"};return o.a.createElement(o.a.Fragment,null,o.a.createElement("svg",{className:y.a.filterSource,xmlns:"http://www.w3.org/2000/svg",version:"1.1"},o.a.createElement("filter",i()({id:a,primitiveUnits:n},l),e)),o.a.createElement("span",{className:y.a.filter,ref:s},t))}},function(e,t){var n,r,i=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===a||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:a}catch(e){n=a}try{r="function"==typeof clearTimeout?clearTimeout:o}catch(e){r=o}}();var l,c=[],u=!1,d=-1;function h(){u&&l&&(u=!1,l.length?c=l.concat(c):d=-1,c.length&&p())}function p(){if(!u){var e=s(h);u=!0;for(var t=c.length;t;){for(l=c,c=[];++d1)for(var n=1;n0?f(O,--S):0,_--,10===T&&(_=1,x--),T}function k(){return T=S2||M(T)>3?"":" "}function F(e,t){for(;--t&&k()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return I(e,j()+(t<6&&32==A()&&32==k()))}function V(e,t){for(;k()&&e+T!==57&&(e+T!==84||47!==A()););return"/*"+I(t,S-1)+"*"+u(47===e?e:k())}function B(e){for(;!M(A());)k();return I(e,S)}function H(e){return N(function e(t,n,r,i,a,o,s,l,c){var d=0,p=0,f=s,m=0,y=0,b=0,x=1,_=1,w=1,S=0,T="",O=a,C=o,P=i,I=T;for(;_;)switch(b=S,S=k()){case 34:case 39:case 91:case 40:I+=R(S);break;case 9:case 10:case 13:case 32:I+=L(b);break;case 92:I+=F(j()-1,7);continue;case 47:switch(A()){case 42:case 47:v(U(V(k(),j()),n,r),c);break;default:I+="/"}break;case 123*x:l[d++]=g(I)*w;case 125*x:case 59:case 0:switch(S){case 0:case 125:_=0;case 59+p:y>0&&g(I)-f&&v(y>32?W(I+";",i,r,f-1):W(h(I," ","")+";",i,r,f-2),c);break;case 59:I+=";";default:if(v(P=z(I,n,r,d,p,a,l,T,O=[],C=[],f),o),123===S)if(0===p)e(I,n,P,P,O,o,f,l,C);else switch(m){case 100:case 109:case 115:e(t,P,P,i&&v(z(t,P,P,0,0,a,l,T,a,O=[],f),C),a,C,f,l,i?O:C);break;default:e(I,P,P,P,[""],C,f,l,C)}}d=p=y=0,x=w=1,T=I="",f=s;break;case 58:f=1+g(I),y=b;default:if(x<1)if(123==S)--x;else if(125==S&&0==x++&&125==E())continue;switch(I+=u(S),S*x){case 38:w=p>0?1:(I+="\f",-1);break;case 44:l[d++]=(g(I)-1)*w,w=1;break;case 64:45===A()&&(I+=R(k())),m=A(),p=g(T=I+=B(j())),S++;break;case 45:45===b&&2==g(I)&&(x=0)}}return o}("",null,null,null,[""],e=D(e),0,[0],e))}function z(e,t,n,r,i,a,o,l,u,p,f){for(var g=i-1,v=0===i?a:[""],b=y(v),x=0,_=0,w=0;x0?v[S]+" "+T:h(T,/&\f/g,v[S])))&&(u[w++]=O);return C(e,t,n,0===i?s:l,u,p,f)}function U(e,t,n){return C(e,t,n,o,u(T),m(e,2,-2),0)}function W(e,t,n,r){return C(e,t,n,l,m(e,0,r),m(e,r+1,-1),r)}function G(e,t){switch(function(e,t){return(((t<<2^f(e,0))<<2^f(e,1))<<2^f(e,2))<<2^f(e,3)}(e,t)){case 5103:return a+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return a+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return a+e+i+e+r+e+e;case 6828:case 4268:return a+e+r+e+e;case 6165:return a+e+r+"flex-"+e+e;case 5187:return a+e+h(e,/(\w+).+(:[^]+)/,a+"box-$1$2"+r+"flex-$1$2")+e;case 5443:return a+e+r+"flex-item-"+h(e,/flex-|-self/,"")+e;case 4675:return a+e+r+"flex-line-pack"+h(e,/align-content|flex-|-self/,"")+e;case 5548:return a+e+r+h(e,"shrink","negative")+e;case 5292:return a+e+r+h(e,"basis","preferred-size")+e;case 6060:return a+"box-"+h(e,"-grow","")+a+e+r+h(e,"grow","positive")+e;case 4554:return a+h(e,/([^-])(transform)/g,"$1"+a+"$2")+e;case 6187:return h(h(h(e,/(zoom-|grab)/,a+"$1"),/(image-set)/,a+"$1"),e,"")+e;case 5495:case 3959:return h(e,/(image-set\([^]*)/,a+"$1$`$1");case 4968:return h(h(e,/(.+:)(flex-)?(.*)/,a+"box-pack:$3"+r+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+a+e+e;case 4095:case 3583:case 4068:case 2532:return h(e,/(.+)-inline(.+)/,a+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(g(e)-1-t>6)switch(f(e,t+1)){case 109:if(45!==f(e,t+4))break;case 102:return h(e,/(.+:)(.+)-([^]+)/,"$1"+a+"$2-$3$1"+i+(108==f(e,t+3)?"$3":"$2-$3"))+e;case 115:return~p(e,"stretch")?G(h(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==f(e,t+1))break;case 6444:switch(f(e,g(e)-3-(~p(e,"!important")&&10))){case 107:return h(e,":",":"+a)+e;case 101:return h(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+a+(45===f(e,14)?"inline-":"")+"box$3$1"+a+"$2$3$1"+r+"$2box$3")+e}break;case 5936:switch(f(e,t+11)){case 114:return a+e+r+h(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return a+e+r+h(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return a+e+r+h(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return a+e+r+e+e}return e}function q(e,t){for(var n="",r=y(e),i=0;i{const e=c()(window,"navigator.onLine");return!d()(e)||e};class p{static getDefaultState(){return{isOnline:h(),isWatched:!1,onlineListenerDisposers:[]}}constructor(e){this.handleChangeStatus=void 0,this.isOnline=void 0,this.isWatched=void 0,this.onlineListenerDisposers=void 0;const t=p.getDefaultState();this.isOnline=t.isOnline,this.isWatched=t.isWatched,this.onlineListenerDisposers=t.onlineListenerDisposers,this.handleChangeStatus=e.bind(this)}watch(e){if(!e)throw new Error('you need pass "delay"');this.onlineListenerDisposers.length&&this.unwatch(),this.isWatched=!0,this.isOnline=h();const t=()=>this.handleChangeStatus(!0),n=()=>this.handleChangeStatus(!1);window.addEventListener("online",t),window.addEventListener("offline",n),this.onlineListenerDisposers=[()=>window.removeEventListener("online",t),()=>window.removeEventListener("offline",n)]}unwatch(){for(const e of this.onlineListenerDisposers)e();this.onlineListenerDisposers=[],this.isWatched=!1}}var f=n(1001),m=n(65),g=n(283);const y=Object(i.detect)(),v=o()("","name",y),b=o()("","os",y),x=o()("","version",y),{userAgent:_}=navigator,w=r.types.model("BrowserMeta",{browserName:r.types.string,browserVersion:r.types.string,osName:r.types.string,userAgent:r.types.string,shiftKey:r.types.optional(r.types.boolean,!1),altKey:r.types.optional(r.types.boolean,!1),ctrlKey:r.types.optional(r.types.boolean,!1),metaKey:r.types.optional(r.types.boolean,!1),isOnline:r.types.optional(r.types.boolean,p.getDefaultState().isOnline),isFocusedWindow:r.types.optional(r.types.boolean,!0),key:r.types.optional(r.types.string,"Meta"),innerHeight:r.types.optional(r.types.number,window.innerHeight),innerWidth:r.types.optional(r.types.number,window.innerWidth)}).volatile(()=>({onlineDetector:p.getDefaultState()})).actions(e=>({afterCreate(){const t=new p(this.handleChangeStatus);this.setProp("onlineDetector",t);e.onlineDetector.watch(3e3),Object(r.addDisposer)(e,Object(f.a)(window.document.body,()=>{this.setProps({innerHeight:window.innerHeight,innerWidth:window.innerWidth})})),Object(r.addDisposer)(e,Object(g.a)(window,"keydown",this.eventHandler)),Object(r.addDisposer)(e,Object(g.a)(window,"keyup",this.eventHandler)),Object(r.addDisposer)(e,Object(g.a)(window,"focus",()=>this.setProp("isFocusedWindow",!0))),Object(r.addDisposer)(e,Object(g.a)(window,"blur",()=>this.setProp("isFocusedWindow",!1)))},beforeDestroy(){e.onlineDetector.unwatch()},setProp:Object(s.j)(e),setProps:Object(s.k)(e),eventHandler(e){this.setProp("shiftKey",e.shiftKey),this.setProp("altKey",e.altKey),this.setProp("ctrlKey",e.ctrlKey),this.setProp("metaKey",e.metaKey),this.setProp("key",e.key)},handleChangeStatus(t){e.onlineDetector.isWatched?this.setProp("isOnline",t):this.setProp("isOnline",!0)}})).views(e=>({get isChrome(){return"chrome"===e.browserName},get isNotChrome(){return!this.isChrome},get isSafari(){return"safari"===e.browserName},get isFireFox(){return"firefox"===e.browserName},get isEdge(){return"edge"===e.browserName},get isEdgeChromium(){return"edge-chromium"===e.browserName},get isMac(){return"Mac OS"===e.osName},get isPressedCtrl(){return e.ctrlKey||this.isMac&&e.metaKey&&"Meta"===e.key},get isOldSafari(){return("safari"===e.browserName||"ios"===e.browserName)&&(e.browserVersion.startsWith("12.0")||e.browserVersion.startsWith("11"))},get isDesktopApp(){return e.userAgent.includes("Visme")}})).create({browserName:v,osName:b,browserVersion:x,userAgent:_}),S=((/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&window.MSStream,void 0===window.CredentialsContainer&&void 0!==window.DeviceMotionEvent&&void 0!==window.DeviceOrientationEvent&&5===navigator.maxTouchPoints&&0===navigator.plugins.length&&"iPhone"!==navigator.platform);Object(m.a)({dev:!0})&&Object.assign(window,{browserMeta:w})},function(e,t,n){"use strict";n.d(t,"b",(function(){return c})),n.d(t,"a",(function(){return h})),n.d(t,"c",(function(){return p})),n.d(t,"f",(function(){return f})),n.d(t,"e",(function(){return m})),n.d(t,"d",(function(){return g}));var r=n(14),i=!1,a=[],o=[],s=[],l=[],c="function"==typeof requestAnimationFrame?function(e){requestAnimationFrame(e)}:function(e){setTimeout(e,1e3/60)};function u(){for(var e=Date.now(),t=a.length,n=0;n0&&this.hasListenersByType(e)&&null==this._disabled[e]},e.prototype.has=function(e,t,n){return-1!==a.findIndex(this._listeners,(function(r){return!0!==r.once&&r.type===e&&(null==t||r.callback===t)&&r.context===n}))},e.prototype._shouldDispatch=function(e){if(this._disposed)throw new Error("EventDispatcher is disposed");var t=this._disabled[e];return s.isNumber(t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled},e.prototype._eachListener=function(e){var t=this;++this._iterating;try{a.each(this._listeners,e)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(a.each(this._killed,(function(e){t._removeListener(e)})),this._killed.length=0)}},e.prototype.dispatchImmediately=function(e,t){this._shouldDispatch(e)&&this._eachListener((function(n){n.killed||null!==n.type&&n.type!==e||n.dispatch(e,t)}))},e.prototype.dispatch=function(e,t){this._shouldDispatch(e)&&this._eachListener((function(n){n.killed||null!==n.type&&n.type!==e||o.e((function(){n.killed||n.dispatch(e,t)}))}))},e.prototype._on=function(e,t,n,r,a,o){var s=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,n,r);var l={type:t,callback:n,context:r,shouldClone:a,dispatch:o,killed:!1,once:e,disposer:new i.b((function(){l.killed=!0,s._removeListener(l)}))};return this._listeners.push(l),l},e.prototype.onAll=function(e,t,n){return void 0===n&&(n=!0),this._on(!1,null,e,t,n,(function(n,r){return e.call(t,n,r)})).disposer},e.prototype.on=function(e,t,n,r){return void 0===r&&(r=!0),this._on(!1,e,t,n,r,(function(e,r){return t.call(n,r)})).disposer},e.prototype.once=function(e,t,n,r){void 0===r&&(r=!0);var i=this._on(!0,e,t,n,r,(function(e,r){i.disposer.dispose(),t.call(n,r)}));return i.disposer},e.prototype.off=function(e,t,n){this._removeExistingListener(!1,e,t,n)},e.prototype.copyFrom=function(e){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");a.each(e._listeners,(function(e){!e.killed&&e.shouldClone&&(null===e.type?t.onAll(e.callback,e.context):e.once?t.once(e.type,e.callback,e.context):t.on(e.type,e.callback,e.context))}))},e}(),c=function(e){function t(t){var n=e.call(this)||this;return n.target=t,n}return Object(r.c)(t,e),t.prototype.copyFrom=function(e){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");a.each(e._listeners,(function(n){n.context!==e.target&&!n.killed&&n.shouldClone&&(null===n.type?t.onAll(n.callback,n.context):n.once?t.once(n.type,n.callback,n.context):t.on(n.type,n.callback,n.context))}))},t}(l)},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(20),i=n(3),a=n(50);let o;!function(e){e.fromZeroToMax="fromZeroToMax",e.fromMaxToZero="fromMaxToZero",e.maxValuesOfCombinationFromZeroToMaxAndFromMaxToZero="maxValuesOfCombinationFromZeroToMaxAndFromMaxToZero",e.minValuesOfCombinationFromZeroToMaxAndFromMaxToZero="minValuesOfCombinationFromZeroToMaxAndFromMaxToZero"}(o||(o={}));t.b=(e,t,n,s=0)=>{const l=a.b,c=Math.abs(e)%(a.c+r.b),u=c%(l+r.b);let d=(c>u?l-u:u)%(l+r.b)/l;const h=Object(i.roundToDecimalPlace)(d*t,s);switch(n){case o.fromZeroToMax:d=h;break;case o.fromMaxToZero:d=t-h;break;case o.maxValuesOfCombinationFromZeroToMaxAndFromMaxToZero:d=Math.max(h,t-h);break;case o.minValuesOfCombinationFromZeroToMaxAndFromMaxToZero:d=Math.min(h,t-h);break;default:throw new Error("Not implemented mode case: "+n)}return d}},function(e,t,n){"use strict";n(371),Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"track",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(t,"withTracking",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"trackEvent",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(t,"TrackingPropType",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(t,"useTracking",{enumerable:!0,get:function(){return s.default}});var r=l(n(1695)),i=l(n(1356)),a=l(n(1376)),o=l(n(1736)),s=l(n(1737));function l(e){return e&&e.__esModule?e:{default:e}}},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){var r=n(140),i=n(102);e.exports=function(e){return"symbol"==typeof e||i(e)&&"[object Symbol]"==r(e)}},,,function(e,t,n){var r=n(150),i=n(104);e.exports=function(e,t,n){var a=!0,o=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return i(n)&&(a="leading"in n?!!n.leading:a,o="trailing"in n?!!n.trailing:o),r(e,t,{leading:a,maxWait:t,trailing:o})}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return c})),n.d(t,"b",(function(){return u})),n.d(t,"d",(function(){return d}));var r=n(7),i=n(193),a=n(14),o=n(18),s=n(2),l=function(){function e(e){this._values=[],this.events=new i.a,null!=e&&this.setAll(e)}return Object.defineProperty(e.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),e.prototype._insert=function(e){return this._values.push(e),this._values.length-1},Object.defineProperty(e.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return a.indexOf(this._values,e)},e.prototype.contains=function(e){return-1!==this.indexOf(e)},e.prototype.getIndex=function(e){return this._values[e]},Object.defineProperty(e.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),e.prototype.insert=function(e){var t=this._insert(e);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:t,newValue:e})},e.prototype.remove=function(e){var t=this.indexOf(e);if(-1!==t){var n=this._values[t];a.removeIndex(this._values,t),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:t,oldValue:n})}},e.prototype.setAll=function(e){var t=this;a.eachReverse(this._values,(function(e,n){t._values.pop(),t.events.isEnabled("removed")&&t.events.dispatchImmediately("removed",{type:"removed",target:t,index:n,oldValue:e})})),a.each(e,(function(e){t.insert(e)}))},e.prototype.clear=function(){this.setAll([])},e.prototype.slice=function(t,n){var r=new e;return r._values=this._values.slice(t,n),r},e.prototype.findClosestIndex=function(e,t,n){void 0===n&&(n="any");var r,i,a=-1,l=0;return o.eachContinue(this.iterator(),(function(o){var c=t(o);if("any"===n){if(c===e)return a=l,!1;var u=Math.abs(e-c);(!s.hasValue(i)||i>u)&&(a=l,r=c,i=u)}else"left"===n&&c=e&&(!s.hasValue(r)||r>=c)&&(a=l,r=c);return++l,!0})),-1===a&&("left"===n?a=0:"right"===n&&(a=this.length-1)),a},e.prototype.iterator=function(){return o.fromArray(this._values)},e.prototype[Symbol.iterator]=function(){var e,t;return Object(r.d)(this,(function(n){switch(n.label){case 0:e=this._values.length,t=0,n.label=1;case 1:return t({renderer:n=>{const{elementRef:r,style:a,...s}=n,c={...l()(["background"],a),transition:"opacity 300ms",...t};return"y"===e&&void 0===t.width?c.width=8:"x"===e&&void 0===t.height&&(c.height=8),o.a.createElement("div",i()({},s,{ref:r,style:c}))}})),h=Object(c.a)((e,t={})=>({renderer:n=>{const{elementRef:r,style:a,...s}=n,l={...a,...t,...e};return o.a.createElement("div",i()({},s,{ref:r,style:l}))}}))},,function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t){e.exports=function(e){return e}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o}));var r=n(1);const i={BOTTOM_RIGHT:"bottom-right",BOTTOM_LEFT:"bottom-left",TOP_RIGHT:"top-right",TOP_LEFT:"top-left"},a={EXTRA_LARGE:"extra-large",LARGE:"large",MEDIUM:"medium",SMALL:"small"},o={ARABIC:"arabic",ROMAN:"roman"},s=r.types.model("PageNumbers",{enabled:r.types.optional(r.types.boolean,!1),fontFamily:r.types.optional(r.types.string,"Arial"),position:r.types.optional(r.types.enumeration(Object.values(i)),i.BOTTOM_RIGHT),size:r.types.optional(r.types.enumeration(Object.values(a)),a.MEDIUM),color:r.types.optional(r.types.string,"#8f8f8f"),startNumberingAt:r.types.optional(r.types.number,1),startAtPageNumber:r.types.optional(r.types.number,1),numeralType:r.types.optional(r.types.enumeration(Object.values(o)),o.ARABIC),leftMargin:r.types.optional(r.types.number,20),topMargin:r.types.optional(r.types.number,20),rightMargin:r.types.optional(r.types.number,20),bottomMargin:r.types.optional(r.types.number,20)}).actions(e=>({setEnabled(t){e.enabled=t},setSize(t){e.size=t},setPosition(t){e.position=t},setColor(t){e.color=t},setFontFamily(t){e.fontFamily=t},setBottomMargin(t){e.bottomMargin=t},setTopMargin(t){e.topMargin=t},setLeftMargin(t){e.leftMargin=t},setRightMargin(t){e.rightMargin=t},setStartNumberingAt(t){e.startNumberingAt=t},setStartAtPageNumber(t){e.startAtPageNumber=t},setNumeralType(t){e.numeralType=t}}));t.d=s},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(165),i=n(1121),a=n(290),o=n(955),s=n(1127),l=n(1357),c=i("wks"),u=r.Symbol,d=l?u:u&&u.withoutSetter||o;e.exports=function(e){return a(c,e)&&(s||"string"==typeof c[e])||(s&&a(u,e)?c[e]=u[e]:c[e]=d("Symbol."+e)),c[e]}},function(e,t,n){var r=n(466),i=n(717),a=n(157),o=n(129),s=n(724),l=[].push,c=function(e){var t=1==e,n=2==e,c=3==e,u=4==e,d=6==e,h=5==e||d;return function(p,f,m,g){for(var y,v,b=a(p),x=i(b),_=r(f,m,3),w=o(x.length),S=0,T=g||s,O=t?T(p,w):n?T(p,0):void 0;w>S;S++)if((h||S in x)&&(v=_(y=x[S],S,b),e))if(t)O[S]=v;else if(v)switch(e){case 3:return!0;case 5:return y;case 6:return S;case 2:l.call(O,y)}else if(u)return!1;return d?-1:c||u?u:O}};e.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"b",(function(){return f})),n.d(t,"c",(function(){return d})),n.d(t,"d",(function(){return p})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return u}));var r=n(0),i=n(735);n(734),n(1149);var a=n(591),o=n(657),s=Object.prototype.hasOwnProperty,l=Object(r.createContext)("undefined"!=typeof HTMLElement?Object(i.a)({key:"css"}):null);var c=l.Provider,u=function(e){return Object(r.forwardRef)((function(t,n){var i=Object(r.useContext)(l);return e(t,i,n)}))},d=Object(r.createContext)({});var h="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(e,t){var n={};for(var r in t)s.call(t,r)&&(n[r]=t[r]);return n[h]=e,n},f=u((function(e,t,n){var i=e.css;"string"==typeof i&&void 0!==t.registered[i]&&(i=t.registered[i]);var l=e[h],c=[i],u="";"string"==typeof e.className?u=Object(a.a)(t.registered,c,e.className):null!=e.className&&(u=e.className+" ");var p=Object(o.a)(c,void 0,Object(r.useContext)(d));Object(a.b)(t,p,"string"==typeof l);u+=t.key+"-"+p.name;var f={};for(var m in e)s.call(e,m)&&"css"!==m&&m!==h&&(f[m]=e[m]);return f.ref=n,f.className=u,Object(r.createElement)(l,f)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(7),i=n(42),a=n(8),o=n(86),s=function(e){function t(){var t=e.call(this)||this;return t.className="Bullet",t.isMeasured=!1,t.tooltipX=0,t.tooltipY=0,t.layout="none",t.applyOnClones=!0,t.copyToLegendMarker=!0,t.applyTheme(),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){if(this.setPropertyValue("locationX",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){if(this.setPropertyValue("locationY",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(e){this.setPropertyValue("xField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(e){this.setPropertyValue("yField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(e){this.setPropertyValue("isDynamic",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(e){this.setPropertyValue("copyToLegendMarker",e)},enumerable:!0,configurable:!0}),t}(i.a);a.c.registeredClasses.Bullet=s,o.c.push({relevant:o.b.isXS,state:function(e,t){if(e instanceof s){var n=e.states.create(t);return n.properties.disabled=!0,n}return null}})},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(7),i=n(82),a=n(119),o=n(14),s=n(2),l={_decimalSeparator:".",_thousandSeparator:",",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(e){var t="th";if(e<11||e>13)switch(e%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd"}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""},c=n(68),u=function(e){function t(){var t=e.call(this)||this;return t.adapter=new a.a(t),t._locale=l,t._defaultLocale=l,t.className="Language",s.hasValue(c.a.defaultLocale)&&(t.locale=c.a.defaultLocale),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.getLocale=function(e){return null==e&&(e=this._locale),this.adapter.apply("locale",{locale:e}).locale},t.prototype.translate=function(e,t){for(var n=[],i=2;i0&&(l=r[a-1].replace("[","").replace("]","")),n+=this.wrap(s,l,t)}}return n=this.unescape(n),this.cleanUp(n)},t.prototype.escape=function(e){return e.replace(/\[\[/g,l.c.getPlaceholder("1")).replace(/([^\/]{1})\]\]/g,"$1"+l.c.getPlaceholder("2")).replace(/\]\]/g,l.c.getPlaceholder("2")).replace(/\{\{/g,l.c.getPlaceholder("3")).replace(/\}\}/g,l.c.getPlaceholder("4")).replace(/\'\'/g,l.c.getPlaceholder("5"))},t.prototype.unescape=function(e){return e.replace(new RegExp(l.c.getPlaceholder("1"),"g"),"[[").replace(new RegExp(l.c.getPlaceholder("2"),"g"),"]]").replace(new RegExp(l.c.getPlaceholder("3"),"g"),"{{").replace(new RegExp(l.c.getPlaceholder("4"),"g"),"}}").replace(new RegExp(l.c.getPlaceholder("5"),"g"),"'")},t.prototype.cleanUp=function(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},t.prototype.wrap=function(e,t,n){switch(""!==t&&"/"!==t||(t=""),n){case"html":return this.wrapHtml(e,this.translateStyleShortcuts(t));default:return this.wrapSvg(e,this.translateStyleShortcuts(t))}},t.prototype.wrapSvg=function(e,t){return""===t?""+e+"":""+e+""},t.prototype.getSvgElement=function(e,t){var n=new o.a("tspan");return n.textContent=e,t&&n.node.setAttribute("style",t),n},t.prototype.wrapHtml=function(e,t){return""===t?""+e+"":""+e+""},t.prototype.getHtmlElement=function(e,t){var n=document.createElement("span");return n.innerHTML=e,t&&n.setAttribute("style",t),n},t.prototype.styleSvgToHtml=function(e){return e=e.replace(/fill:/,"color:")},t.prototype.translateStyleShortcuts=function(e){if(""==e||"[ ]"==e)return"";var t=l.c.getCache("translateStyleShortcuts_"+e);if(t)return t;var n=e.match(/('[^']*')|("[^"]*")/gi);if(n)for(var r=0;r{const r=[...n,...t];return void 0===e.propertyNames?(console.warn("MobxStateTreeModel.propertyNames is undefined, cant get model property names!"),[]):Array.isArray(e.propertyNames)?d()(e.properties)?p()(r,e.propertyNames):(console.warn("MobxStateTreeModel.properties is not obj, cant get model property names!"),[]):(console.warn("MobxStateTreeModel.propertyNames is not array, cant get model property names!"),[])},S=(e,t)=>b()(e,["properties",t,"_defaultValue"]),T=(e,t,n)=>{const r=w(e,n);if(!r.length)return t;const i=["width","height"],o=[];for(const n of r){const r=t[n],s=S(e,n);a()(r,s)&&!i.includes(n)&&o.push(n)}return m()(o,t)},O=e=>e.postProcessSnapshot(t=>T(e,t)),C=(e,t)=>e.postProcessSnapshot(t),P=(e,t,n,r)=>{const i=w(t,n,r);return null===i?{}:i.reduce((t,n)=>{const r=e(n);return void 0!==r&&(t[n]=r),t},{})},E=(e,t,n)=>{const i=Object(r.getType)(e);return P(t=>e[t],i,t,n)},k=(e,t=[],n=[])=>P(t=>S(e,t),e,t,n),A=(e,t,n=Object(r.getType)(e))=>{for(const r of t)e[r]=S(n,r)},j=(e,t)=>{const n=Object(r.getType)(e),i=w(n,t);return()=>A(e,i,n)},I=(e,t)=>{if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&Array.from({length:e.length}).every((n,r)=>I(e[r],t[r]));if(d()(e)&&d()(t)){const n=c()(Object.keys(e)),r=c()(Object.keys(t));return I(n,r)&&n.every(n=>I(e[n],t[n]))}return e==t};let M;!function(e){e.eq="eq",e.isEqual="isEqual",e.isEqualWithTypeConversion="isEqualWithTypeConversion"}(M||(M={}));const D={[M.eq]:y.a,[M.isEqual]:a.a,[M.isEqualWithTypeConversion]:(e,t)=>s()(I,e,t)},N=e=>(t,n,r=M.eq)=>{const i=b()(e,t),a=!D[r](i,n);return a&&_()(e,t,n),a},R=(e,t={})=>(n={},r={})=>{const i=Object.entries(n),a=e.setProp||N(e);let o=!1;for(const[e,n]of i){a(e,n,r[e]||t[e])&&(o=!0)}return o},L=(e,t)=>{e(t),requestAnimationFrame(()=>{e(!t)})},F=(e,t,n="name")=>{if(!t)return t;const r=t.match(/^(.*)\scopy\s\d+$/),i=r?r[1]:t,a=Math.max(...e.map(e=>{const t=e[n].match(new RegExp(`^${i}\\scopy\\s(\\d+)$`));return t?Number(t[1]):0}),0)+1;return 1===a&&e.every(e=>e[n]!==t)?t:`${i} copy ${a}`}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const r=new Map;function i(e,t=!0,n=!0,i={}){const a=r.get(e);if(a)return a;const o=new Promise((a,o)=>{let s=document.createElement("script");s.async=t,s.defer=n,s.type="text/javascript",s.onload=function(e){s.onload=null,s=void 0,a()},s.onerror=function(t){s.onerror=null,s=void 0,r.delete(e),o(new Error("fail"))},s.src=e;for(const e in i)Object.prototype.hasOwnProperty.call(i,e)&&s.setAttribute(e,i[e]);document.getElementsByTagName("head")[0].append(s)});return r.set(e,o),o}},function(e,t,n){!function(e){function t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var r=1;r(e.trim().replace(/\s+/gi," ").split(" ").length-1)*r+e.length*i}function h(e,t){const n=[],r=w(t,"font-weight",e.getPropertyValue("font-weight"))||"400";["normal","bold","bolder","lighter","100","200","300","400","500","600","700","800","900"].includes(r.toString())&&n.push(r);const i=w(t,"font-style",e.getPropertyValue("font-style"));["normal","italic","oblique"].includes(i)&&n.push(i);const a=w(t,"font-variant",e.getPropertyValue("font-variant"));["normal","small-caps"].includes(a)&&n.push(a);const o=u(w(t,"font-size",e.getPropertyValue("font-size"))||"16px");n.push(o+"px");const s=w(t,"font-family",e.getPropertyValue("font-family"))||"Helvetica, Arial, sans-serif";return n.push(s),n.join(" ")}function p(e){return e&&"function"==typeof e.getPropertyValue}function f(e){return m(e)&&e.style&&"undefined"!=typeof window&&"function"==typeof window.getComputedStyle}function m(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:Boolean(e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName)}function g(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function y(e,t){const n=r({},t||{}),{style:i}=n;return t||(t={}),p(i)?i:f(e)?window.getComputedStyle(e,w(t,"pseudoElt",null)):{getPropertyValue:e=>w(t,e)}}function v(e,t){switch(t){case"pre":case"pre-wrap":return e;case"pre-line":return(e||"").replace(/\s+/gm," ").trim();default:return(e||"").replace(/[\r\n]/gm," ").replace(/\s+/gm," ").trim()}}function b(e,t){switch(t.getPropertyValue("text-transform")){case"uppercase":return e.toUpperCase();case"lowercase":return e.toLowerCase();default:return e}}function x(e){return e=(e||"").replace(//gi,"​").replace(//gi,"\n").replace(/­/gi,"­").replace(/—/gi,"—"),/&#(\d+)(;?)|&#[xX]([a-fA-F\d]+)(;?)|&([\da-zA-Z]+);/g.test(e)&&console&&console.error("text-metrics: Found encoded htmlenties. You may want to use https://mths.be/he to decode your text first."),e}function _(e){return e&&(e.textContent||e.textContent)||""}function w(e,t,n){return e&&void 0!==e[t]&&e[t]||n}function S(e){const t={};for(const n of Object.keys(e||{}))t[n.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())]=e[n];return t}function T(e){try{const t=document.createElement("canvas").getContext("2d"),n=window.devicePixelRatio||1,r=t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return t.font=e,t.setTransform(n/r,0,0,n/r,0,0),t}catch(e){throw new Error("Canvas support required"+e.message)}}function O(e){return(i.has(e)?"B2":o.has(e)&&"BAI")||a.has(e)&&"SHY"||s.has(e)&&"BA"||l.has(e)&&"BB"||c.has(e)&&"BK"}function C({ctx:e,text:t,max:n,wordSpacing:r,letterSpacing:i}){const a=d(r,i),o=[],s=[],l=[];let c="",u="";if(!t)return[];for(const e of t){const t=O(e);""===u&&"BAI"===t||(t?(l.push({chr:e,type:t}),s.push(u),u=""):u+=e)}u&&s.push(u);for(const[t,r]of s.entries()){if(0===t){c=r;continue}const i=l[t-1],s="SHY"===i.type?"":i.chr;if("BK"===i.type){o.push(c),c=r;continue}const u=e.measureText(c+s+r).width+a(c+s+r);if(Math.round(u,10)<=n)c+=s+r;else switch(i.type){case"SHY":o.push(c+"-"),c=r;break;case"BA":o.push(c+s),c=r;break;case"BAI":o.push(c),c=r;break;case"BB":o.push(c),c=s+r;break;case"B2":Number.parseInt(e.measureText(c+s).width+a(c+s),10)<=n?(o.push(c+s),c=r):Number.parseInt(e.measureText(s+r).width+a(s+r),10)<=n?(o.push(c),c=s+r):(o.push(c,s),c=r);break;default:throw new Error("Undefoined break")}}return[...c].length>0&&o.push(c),o}function P({ctx:e,text:t,max:n,wordSpacing:r,letterSpacing:i}){const a=d(r,i),s=[];let l="",c=0;if(!t)return[];for(const r of t){const i=O(r);if("BK"===i){s.push(l),l="";continue}const u=l.length;if(o.has(r)&&(0===u||o.has(l[u-1])))continue;let d=e.measureText(l+r).width+a(l+r),h=Math.ceil(d);if("SHY"===i){const n=t[c+1]||"";d=e.measureText(l+r+n).width+a(l+r+n),h=Math.ceil(d)}if(h>n&&[...l].length>0)switch(i){case"SHY":s.push(l+"-"),l="";break;case"BA":s.push(l+r),l="";break;case"BAI":s.push(l),l="";break;default:s.push(l),l=r}else"­"!==r&&(l+=r);c++}return[...l].length>0&&s.push(l),s}var E={__proto__:null,addWordAndLetterSpacing:d,getFont:h,isCSSStyleDeclaration:p,canGetComputedStyle:f,isElement:m,isObject:g,getStyle:y,normalizeWhitespace:v,getStyledText:b,prepareText:x,getText:_,prop:w,normalizeOptions:S,getContext2d:T,computeLinesDefault:C,computeLinesBreakAll:P};class k{constructor(e,t={}){!m(e)&&g(e)?(this.el=void 0,this.overwrites=S(e)):(this.el=e,this.overwrites=S(t)),this.style=y(this.el,this.overwrites),this.font=w(t,"font",null)||h(this.style,this.overwrites)}padding(){return this.el?Number.parseInt(this.style.paddingLeft||0,10)+Number.parseInt(this.style.paddingRight||0,10):0}parseArgs(e,t={},n={}){"object"==typeof e&&e&&(n=t,t=e||{},e=void 0);const i=r(r({},this.overwrites),S(n)),a=w(i,"white-space")||this.style.getPropertyValue("white-space");return t||(t={}),n||(t={}),{text:e=!e&&this.el?v(_(this.el),a):x(v(e,a)),options:t,overwrites:n,styles:i}}width(){const{text:e,options:t,overwrites:n,styles:r}=this.parseArgs(...[].slice.call(arguments));if(!e)return 0;const i=h(this.style,r),a=w(r,"letter-spacing")||this.style.getPropertyValue("letter-spacing"),o=d(w(r,"word-spacing")||this.style.getPropertyValue("word-spacing"),a),s=T(i),l=b(e,this.style);return t.multiline?this.lines(l,t,n).reduce((e,t)=>{const n=s.measureText(t).width+o(t);return Math.max(e,n)},0):s.measureText(l).width+o(l)}height(){const{text:e,options:t,styles:n}=this.parseArgs(...[].slice.call(arguments)),r=Number.parseFloat(w(n,"line-height")||this.style.getPropertyValue("line-height"));return Math.ceil(this.lines(e,t,n).length*r||0)}lines(){const{text:e,options:t,overwrites:n,styles:r}=this.parseArgs(...[].slice.call(arguments)),i=h(this.style,r);let a=Number.parseInt(w(t,"width")||w(n,"width"),10)||w(this.el,"offsetWidth",0)||Number.parseInt(w(r,"width",0),10)||Number.parseInt(this.style.width,10);a-=this.padding();const o=w(r,"word-break")||this.style.getPropertyValue("word-break"),s=w(r,"letter-spacing")||this.style.getPropertyValue("letter-spacing"),l=w(r,"word-spacing")||this.style.getPropertyValue("word-spacing"),c=T(i),u=b(e,this.style);return"break-all"===o?P({ctx:c,text:u,max:a,wordSpacing:l,letterSpacing:s}):C({ctx:c,text:u,max:a,wordSpacing:l,letterSpacing:s})}maxFontSize(){const{text:e,options:t,overwrites:n,styles:i}=this.parseArgs(...[].slice.call(arguments)),a=n=>Math.ceil(this.width(e,t,r(r({},i),{},{"font-size":n+"px"})));let o=Number.parseInt(w(t,"width")||w(n,"width"),10)||w(this.el,"offsetWidth",0)||Number.parseInt(w(i,"width",0),10)||Number.parseInt(this.style.width,10);o-=this.padding();let s=Math.floor(o/2),l=a(s);if(s=Math.floor(s/l*o),l=a(s),Math.ceil(l)===o)return s?s+"px":void 0;const c=l>o&&s>0;for(;l>o&&s>0;)s-=1,l=a(s);if(!c)for(;lo)return s?s+"px":void 0;s+=1}return s?s+"px":void 0}}const A=r({},E);e.init=(e,t)=>new k(e,t),e.utils=A}(t)},,function(e,t,n){"use strict";n.d(t,"e",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return s}));const r=(e,t)=>t.settings.isDocumentView&&"documentPageZoom"in e,i=(e,t)=>r(e,t)?e.documentPageZoom:e.zoom,a=e=>{const t=e.slideStore.selectedSlide;return t?t.objects.length+4:1e4},o=e=>[...e.querySelectorAll(".mention")].map(e=>e.getAttribute("data-id")).filter(Boolean).map(Number),s=e=>"comment-filter-"+e},,,function(e,t,n){var r=n(118),i=n(957),a=n(426),o=n(293),s=n(339),l=n(166),c=n(1384),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),c)try{return u(e,t)}catch(e){}if(l(e,t))return a(!i.f.call(e,t),e[t])}},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(118),i=n(143),a=n(426);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(99),i=n(236),a=n(166),o=n(1151),s=n(1152),l=n(248),c=l.get,u=l.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var l,c=!!s&&!!s.unsafe,h=!!s&&!!s.enumerable,p=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||a(n,"name")||i(n,"name",t),(l=u(n)).source||(l.source=d.join("string"==typeof t?t:""))),e!==r?(c?!p&&e[t]&&(h=!0):delete e[t],h?e[t]=n:i(e,t,n)):h?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&c(this).source||s(this)}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(7),i=n(42),a=n(134),o=n(184),s=n(57),l=n(8),c=function(e){function t(){var t=e.call(this)||this;t.className="Button",t.tooltipY=0,t.iconPosition="left",t.layout="horizontal",t.contentAlign="center",t.contentValign="middle",t.padding(8,16,8,16),t.setStateOnChildren=!0;var n=new s.a,r=t.background;r.fill=n.getFor("secondaryButton"),r.stroke=n.getFor("secondaryButtonStroke"),r.fillOpacity=1,r.strokeOpacity=1,r.cornerRadius(3,3,3,3),t.label=new a.a,t.label.fill=n.getFor("secondaryButtonText"),t.label.shouldClone=!1;var i=r.states.create("hover");i.properties.fillOpacity=1,i.properties.fill=n.getFor("secondaryButtonHover");var o=r.states.create("down");return o.transitionDuration=100,o.properties.fill=n.getFor("secondaryButtonDown"),o.properties.fillOpacity=1,t.role="button",t.focusable=!0,t.applyTheme(),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"icon",{get:function(){return this._icon},set:function(e){var t=this._icon;t&&(t.parent=void 0),e&&(this._icon=e,e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(e){this.setPropertyValue("iconPosition",e),this.icon&&("left"==e?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"label",{get:function(){return this._label},set:function(e){this._label&&this.removeDispose(this._label),this._label=e,e&&(e.parent=this,e.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),t.prototype.createBackground=function(){return new o.a},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),t.label&&this.label.copyFrom(t.label),t.icon&&(this.icon=t.icon.clone())},t}(i.a);l.c.registeredClasses.Button=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return c}));var r=n(438),i=n(976),a=n(588),o=n(34),s=function(){function e(e,t){this.container=e,this.id=t;var n=document.createElementNS(o.a,"svg");n.setAttribute("version","1.1"),n.setAttributeNS(o.e,"xmlns",o.a),n.setAttributeNS(o.e,"xmlns:xlink",o.d),n.setAttribute("role","group"),this.container.appendChild(n),this.defs=document.createElementNS(o.a,"defs"),n.appendChild(this.defs),n.style.width="100%",n.style.height="100%",n.style.overflow="visible",this.svg=n}return e.prototype.add=function(e){return new r.a(e)},e.prototype.addGroup=function(e){return new i.a(e)},e.prototype.append=function(e){e&&this.svg.appendChild(e.node)},e.prototype.appendDef=function(e){e&&this.defs.appendChild(e.node)},e.prototype.foreignObject=function(){return new r.a("foreignObject")},e.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},e}(),l=null;function c(){if(null===l){var e=document.createElement("div");e.hidden=!0,e.style.width="1px",e.style.height="1px",e.style.position="absolute",e.style.zIndex="-1000000",document.body.appendChild(e);var t=new a.a(e,!0);l=new s(t.SVGContainer,"ghost")}return l}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(7),i=n(477),a=n(331),o=n(642),s=n(8),l=n(19),c=n(4),u=n(11),d=n(13),h=n(2),p=n(86),f=n(377),m=function(e){function t(){var t=e.call(this)||this;return t.className="AxisRendererY",t.minGridDistance=40,t.opposite=!1,t.height=Object(l.c)(100),t.labels.template.verticalCenter="middle",t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.setAxis=function(t){e.prototype.setAxis.call(this,t),t.layout="horizontal"},t.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.y=e.pixelY,t.height=e.axisLength}},t.prototype.toAxisPosition=function(e){var t=this.axis;if(t){var n=1-e,r=t.relativePositionSprite,i=t.pixelY;if(r?i=d.spritePointToSprite({x:0,y:this.pixelY},this.parent,r).y:r=t.parent,r)return 1-(n-i/r.innerHeight)/(t.axisLength/r.innerHeight)}return e},t.prototype.processRenderer=function(){e.prototype.processRenderer.call(this);var t=this.axis;if(t){var n=t.title;n.valign="middle",t.height instanceof l.a||(t.height=Object(l.c)(100)),this.opposite?(n.rotation=90,this.line.toBack(),n.toFront()):(n.rotation=-90,n.toBack(),this.line.toFront())}},t.prototype.updateTooltip=function(){if(this.axis){var e=0,t=2e3,n=this.axisLength;this.opposite?this.inside&&(e=-2e3,t=2e3):this.inside||(e=-2e3,t=2e3),this.axis.updateTooltip("horizontal",{x:e,y:0,width:t,height:n})}},Object.defineProperty(t.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredHeight-e.pixelPaddingTop-e.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e,t){return{x:0,y:this.positionToCoordinate(e)}},t.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.y,e.x)},t.prototype.coordinateToPosition=function(e,t){var n,r=this.axis,i=r.axisFullLength;return n=r.renderer.inversed?1-r.start-e/i:e/i+(1-r.end),c.round(n,5)},t.prototype.getPositionRangePath=function(e,t){var n=c.fitToRange(this.positionToCoordinate(e),0,this.axisLength),r=c.fitToRange(this.positionToCoordinate(t),0,this.axisLength),i=Math.abs(r-n),a=this.getWidth(),o=Math.min(n,r);return u.rectToPath({x:0,y:o,width:a,height:i},!0)},t.prototype.updateGridElement=function(e,t,n){t+=(n-t)*e.location;var r=this.positionToPoint(t);e.path=u.moveTo({x:0,y:0})+u.lineTo({x:this.getWidth(),y:0}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},t.prototype.updateTickElement=function(e,t,n){t+=(n-t)*e.location;var r=this.positionToPoint(t),i=e.length;try{d.used(this.axis.title.measuredWidth)}catch(e){}r.x=d.spritePointToSprite({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?i*=e.inside?-1:1:i*=e.inside?1:-1,e.path=u.moveTo({x:0,y:0})+u.lineTo({x:i,y:0}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},t.prototype.updateAxisLine=function(){this.line.path=u.moveTo({x:0,y:0})+u.lineTo({x:0,y:this.axisLength})},t.prototype.updateBaseGridElement=function(){e.prototype.updateBaseGridElement.call(this);var t=this.axis,n=this.getWidth(),r=this.axisLength,i=t.basePoint.y,a=this.baseGrid;if(i<-.2||i>r+.2)a.hide(0);else{var o=d.spritePointToSprite({x:0,y:0},this.gridContainer,a.parent).x;a.path=u.moveTo({x:0,y:0})+u.lineTo({x:n,y:0}),a.moveTo({x:o,y:i}),a.show(0)}},t.prototype.updateLabelElement=function(e,t,n,r){h.hasValue(r)||(r=e.location),t+=(n-t)*r,e.isMeasured=!e.inside;var i,a=this.positionToPoint(t),o=0,s=this.gridContainer.maxWidth;this.opposite?(e.inside?(i="right","left"==e.align&&(o=-s,i="left"),"center"==e.align&&(o=-s/2,i="middle")):i="left",a.x=0+o):(e.inside?(i="left","right"==e.align&&(o=s,i="right"),"center"==e.align&&(o=s/2,i="middle")):i="right",a.x=this.measuredWidth+o),0==e.rotation&&(e.horizontalCenter=i),this.positionItem(e,a),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},t.prototype.updateBreakElement=function(t){e.prototype.updateBreakElement.call(this,t);var n=t.startLine,r=t.endLine,i=t.fillShape,a=t.startPoint,o=t.endPoint,s=t.pixelMarginLeft,l=this.getWidth()-t.pixelMarginLeft-t.pixelMarginRight;a.y=c.fitToRange(a.y,-1,this.axisLength+1),o.y=c.fitToRange(o.y,-1,this.axisLength+1),a.y==o.y&&(a.y<0||a.y>this.axisLength)?t.fillShape.__disabled=!0:t.fillShape.__disabled=!1;var u=Math.abs(l-s);n.x=s,n.height=0,n.width=u,r.x=s,r.height=0,r.width=u,i.width=u,i.height=Math.abs(o.y-a.y),i.x=s,i.y=o.y},t.prototype.createBreakSprites=function(e){e.startLine=new a.a,e.endLine=new a.a;var t=new o.a;t.setWavedSides(!0,!1,!0,!1),e.fillShape=t},t.prototype.positionToCoordinate=function(e){var t=this.axis,n=t.axisFullLength;return t.renderer.inversed?(e-t.start)*n:(t.end-e)*n},t.prototype.updateBullet=function(e,t,n){var r=.5;e instanceof f.a&&(r=e.location),t+=(n-t)*r;var i=this.positionToPoint(t);i.x=d.spritePointToSprite({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(e,i),this.toggleVisibility(e,t,0,1)},t}(i.a);s.c.registeredClasses.AxisRendererY=m,p.c.push({relevant:p.b.widthS,state:function(e,t){if(e instanceof m){var n=e.states.create(t);return n.properties.inside=!0,n.properties.maxLabelPosition=.9,n.properties.minLabelPosition=.1,n}return null}}),p.c.push({relevant:p.b.widthXS,state:function(e,t){if(e instanceof m){var n=e.states.create(t);return n.properties.disabled=!0,n}return null}})},function(e,t){var n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&n.test(e))&&e>-1&&e%1==0&&e0&&r.delay(t))})),r},t.prototype.dispose=function(){e.prototype.dispose.call(this),l.each(this.sprites,(function(e){e.dispose()})),this.sprites=[]},t.prototype.hide=function(e,t,n,r){var i=this;if(this.isHiding=!0,l.each(this.sprites,(function(n){var r=n.hide(e);null==r||r.isFinished()||(i._disposers.push(r),null!=t&&t>0&&r.delay(t))})),c.isNumber(n)&&r){var a;if(l.each(r,(function(r){var o=i.setWorkingValue(r,n,e,t);o&&(a=o)})),a&&!a.isFinished())return this._hideDisposer=a.events.on("animationended",(function(){i.setVisibility(!1,!0),i.isHiding=!1})),this._disposers.push(this._hideDisposer),a;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},t.prototype.getDuration=function(e){if(!c.isNumber(e)){var t=this.component;t&&(e=t.interpolationDuration)}if(null!=e)return this._adapterO?this._adapterO.apply("duration",e):e},t.prototype.getValue=function(e,t){if(e&&this.component){t||(t=this.component.dataFields[e+"Show"])||(t="value");var n=this.values[e][t];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:n,field:e}).value:n}},t.prototype.getWorkingValue=function(e){if(e&&this.component){var t=this.component.dataFields[e+"Show"];return t||(t="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[e][t],field:e}).workingValue:this.values[e][t]}},t.prototype.getActualWorkingValue=function(e){return this.values[e].workingValue},t.prototype.setValue=function(e,t,n,r){var i=this.values[e].value,a=this.getDuration(n);if(i!==(t=c.toNumber(t))){if(this.values[e].value=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var o={type:"valuechanged",target:this,property:e};this.events.dispatchImmediately("valuechanged",o)}this.component&&this.component.handleDataItemValueChange(this,e)}this.setWorkingValue(e,t,a,r)},t.prototype.setCalculatedValue=function(e,t,n){if(this.values[e][n]!==t&&c.isNumber(t)){if(this.values[e][n]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var r={type:"calculatedvaluechanged",target:this,property:e};this.events.dispatchImmediately("calculatedvaluechanged",r)}this.component&&this.component.handleDataItemCalculatedValueChange(this,e)}},t.prototype.setWorkingValue=function(e,t,n,r){if(c.isNumber(this.values[e].value)){var i=this.getDuration(n),a=this.values[e].workingValue;if(null!=i&&i>0&&c.isNumber(a)&&this.component){if(a!=t){var o=this.animate({childObject:this.values[e],property:"workingValue",from:a,to:t,dummyData:e},i,this.component.interpolationEasing);return null!=r&&o.delay(r),o.events.on("animationstarted",this.handleInterpolationProgress,this),o.events.on("animationprogress",this.handleInterpolationProgress,this),o.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[e]=o,o}(s=this._valueAnimations[e])&&s.stop(),this.values[e].workingValue=t}else{var s;if((s=this._valueAnimations[e])&&s.stop(),this.values[e].workingValue=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var l={type:"workingvaluechanged",target:this,property:e};this.events.dispatchImmediately("workingvaluechanged",l)}this.component&&this.component.handleDataItemWorkingValueChange(this,e)}}},t.prototype.setLocation=function(e,t,n,r){if(this.locations[e]!==t){if(this.locations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var i={type:"locationchanged",target:this,property:e};this.events.dispatchImmediately("locationchanged",i)}this.component&&this.component.handleDataItemValueChange(this,e),this.setWorkingLocation(e,t,n,r)}},t.prototype.setWorkingLocation=function(e,t,n,r){var i=this.getDuration(n),a=this.workingLocations[e];if(null!=i&&i>0&&c.isNumber(a)&&this.component){if(a!=t){var o=this.animate({childObject:this.workingLocations,property:e,from:a,to:t,dummyData:e},i,this.component.interpolationEasing);return null!=r&&o.delay(r),o.events.on("animationstarted",this.handleInterpolationProgress,this),o.events.on("animationprogress",this.handleInterpolationProgress,this),o.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[e]=o,o}(s=this._locationAnimations[e])&&s.stop(),this.workingLocations[e]=t}else{var s;if((s=this._locationAnimations[e])&&s.stop(),this.workingLocations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var l={type:"workinglocationchanged",target:this,property:e};this.events.dispatchImmediately("workinglocationchanged",l)}this.component&&this.component.handleDataItemWorkingLocationChange(this,e)}},t.prototype.setDate=function(e,t,n){!c.isDate(t)&&this.component&&(t=this.component.dateFormatter.parse(t)),this.dates[e]!==t&&(this.dates[e]=t,this.setValue(e,t.getTime(),n))},t.prototype.getDate=function(e){return this._adapterO?this._adapterO.apply("date",{date:this.dates[e],field:e}).date:this.dates[e]},t.prototype.setProperty=function(e,t){if(this.properties[e]!==t){if(this.hasProperties=!0,this.properties[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var n={type:"propertychanged",target:this,property:e,value:t};this.events.dispatchImmediately("propertychanged",n)}this.component&&this.component.handleDataItemPropertyChange(this,e)}},t.prototype.setCategory=function(e,t){c.isString(t)||(t=c.castString(t)),this.categories[e]!==t&&(this.categories[e]=t)},t.prototype.copyFrom=function(t){e.prototype.copyFrom.call(this,t),t.dataContext&&(this.dataContext=s.copy(t.dataContext,{})),s.copyProperties(t.locations,this.locations),t._adapterO&&this.adapter.copyFrom(t._adapterO),this.component=t.component},Object.defineProperty(t.prototype,"opacity",{set:function(e){l.each(this.sprites,(function(t){t.opacity=e}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){if(this._ignoreMinMax=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var t={type:"propertychanged",target:this,property:"ignoreMinMax",value:e};this.events.dispatchImmediately("propertychanged",t)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),t.prototype.animate=function(e,t,n){return new o.a(this,e,t,n).start()},t.prototype.handleInterpolationProgress=function(e){var t=e.target.animationOptions[0];if(t){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var n={type:"workingvaluechanged",target:this,property:t.dummyData};this.events.dispatchImmediately("workingvaluechanged",n)}this.component&&this.component.handleDataItemWorkingValueChange(this,t.dummyData)}},t.prototype.hasValue=function(e){for(var t=0,n=e.length;t{var t;return(null===(t=e.href.match(/\?family=([^:]*)/))||void 0===t?void 0:t[1].replace(/\+/g," "))||""}),...[...document.head.querySelectorAll("link[href^=https\\:\\/\\/s3\\.amazonaws\\.com\\/assets\\.visme\\.co\\/fonts\\/css\\/]")].map(e=>{var t;return(null===(t=e.href.match(/visme\.co\/fonts\/css\/(.*)\.css$/))||void 0===t?void 0:t[1])||""})].filter(Boolean),h=[],p=Math.ceil(4500);function f(e){const t=document.createElement("link");t.href=e,t.rel="stylesheet",t.type="text/css",document.getElementsByTagName("head")[0].appendChild(t)}function m(e){d.push(e);f("https://fonts.googleapis.com/css2?family="+e.replace(/\s/g,"+"))}function g(e){d.push(e),f(`${u.a}fonts/css/${e}.css`)}function y(e){const t=document.createElement("canvas").getContext("2d");t.font="72px monospace";const n="abcdefghijklmnopqrstuvwxyz0123456789",r=t.measureText(n).width;t.font=`72px '${e}', monospace`;return t.measureText(n).width!==r}function v(e){if(!e)return;if(e.isGoogleFont)return void m(e.fontName);if(e.isVismeFont)return void g(e.fontName);const t=function(e){var t,n,r;return(null===(t=e.fontPostscriptName)||void 0===t?void 0:t.includes("Italic"))||(null===(n=e.fontSubfamily)||void 0===n?void 0:n.includes("Italic"))||(null===(r=e.fontSubfamilyID)||void 0===r?void 0:r.includes("Italic"))}(e)?"italic":"normal",n=e.url.indexOf("http")>-1?e.url:u.e+e.url;let r=400;e.fontWeight>400&&(r=700);const i=n.split(".").pop();let a;switch(i){case"woff":case"woff2":case"svg":a=i;break;case"otf":a="opentype";break;case"ttf":a="truetype"}!function(e){const t=document.createElement("style");t.type="text/css",t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e)),document.getElementsByTagName("head")[0].appendChild(t)}(`@font-face {\n font-family: "${e.fontName}";\n src: local("☺"),\n url("${n}") format("${a}");\n font-weight: ${r};\n font-style: ${t};\n }\n .${e.fontPostscriptName} {\n font-family: "${e.fontName}";\n font-weight: ${r};\n font-style: ${t};\n }\n .${e.fontPostscriptName} span{\n font-family: "${e.fontName}";\n font-weight: ${r};\n font-style: ${t};\n }`)}async function b(e,t={}){let n=s()(e)?e.fontName:e;if(n=n.replace(/["']/g,""),!n)return;const{successHandler:r=(()=>{}),errorHandler:o=((e,t)=>console.log(`'Font: "${t}" is not available Error: `,e))}=t;if(Object(a.a)(n))return void r(n);const u=l.find(e=>e.fontName===n);if(u&&!d.includes(n)&&("visme"===u.source?g(n):m(n)),!h.includes(n)&&!d.includes(n)&&c.a){h.push(n);c.a.filter(e=>e.fontName===n).forEach(v)}try{await(async e=>{const t=new i.a(e);let n=null;for(let e=0;e<10;e++)if(null!==n||0===e)try{await t.load(null,p)}catch(e){n=e}if(n)throw new Error(n)})(n),r(n)}catch(e){o(e,n)}}},function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return h}));var r=n(55),i=n(443),a=n(88),o=n(50);const s=e=>{const t=Math.abs(e),n=t%o.c;let r=t%o.b;n&&!r&&(r=o.b);return n>o.b?o.b-r:r},l=(e,t)=>{const{isHorizontalAxis:n,isVerticalAxis:r,isFirst:i,isLast:a}=t;return!!(e%o.b)&&(a&&n||i&&r?e<-o.b||e>0&&eo.b||e>-o.b&&e<0))},c=(e,t)=>Object(a.b)({minRelativeValue:0,maxRelativeValue:o.b,mode:t?a.a.fromZeroToMax:a.a.fromMaxToZero,currentValue:s(e)}),u=(e,t)=>1-c(e,t),d=(e,t)=>{const n=t.parent.parent,r=Object(i.a)(n,"renderer.labels.values",{includesTransparent:!1}),a="X"===n.axisLetter,o=c(t.rotation,a),s=u(t.rotation,a),d={isHorizontalAxis:a,isVerticalAxis:!a,isFirst:r[0]===t,isLast:r[r.length-1]===t},h=l(t.rotation,d);return{...d,isNearToEdgeBecauseOfRotation:h,axisModel:e,axis:n,visibleLabels:r,perpendicularLabelToAxisCoefficient:o,parallelLabelToAxisCoefficient:s}},h=(e,t=Object(i.b)(e,"renderer.labels.values"))=>{const n=e.className===r.a.ValueAxis?1:5,a=e["X"===e.axisLetter?"pixelWidth":"pixelHeight"]/t.length-n;return Math.round(a)}},,function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++na[e]&&(a[e]=r)}function c(e=""){return e+Math.floor(1e6*Math.random()+1)}function u(e){let t="";const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",r=n.length;for(let i=0;i{if(null==e?void 0:e.target){const n=e.target;n.onerror=null,t&&n.src!==t&&(n.src=t)}},l=Object(a.forwardRef)(({onError:e,defaultSrc:t,alt:n,src:r,...a},l)=>{const c=((e,t)=>{if(e||t)return!e&&t?e=>s(e,t):e&&!t?e:n=>{let r;return e&&(r=e(n)),s(n,t),r}})(e,t),u=r||t;return o.a.createElement("img",i()({},a,{ref:l,onError:c,alt:n,src:u}))});t.a=l},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=.01;var i;!function(e){e.presentMode="presentMode",e.renderingGif="renderingGif"}(i||(i={}));t.b=e=>{const t=(e=>{if(!e)return"none";const{isPresenterMode:t,renderFormat:n}=e.getAppStore().settings;return t?i.presentMode:"gif"===n&&"none"!==e.transition.effect?i.renderingGif:e.transition.effect})(e);let n,a=(null==e?void 0:e.transition.effect)||"none";switch(t){case"scrollhorizontal":n=1.6;break;case"scrolltop":case"scrollbottom":n=1.2;break;case"scale":n=.8;break;case i.presentMode:case"none":a="show",n=r;break;case i.renderingGif:n=.5;break;default:n=1}return{type:a,duration:n}}},function(e,t,n){var r=n(913)("toUpperCase");e.exports=r},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(96),i=n.n(r),a=n(20);const o=["mailto:","slide:","object:","tel:","ftp:"],s={successHyperlink:{status:"success",isLinkBroken:!1,isLinkAllowEmbed:!0},successNotWebLink:{status:"success",isLinkBroken:!1,isLinkAllowEmbed:!1}},l=new RegExp("^\\w+:"),c=/((([A-Za-z]{3,9}:(?:\/\/)?)(?:[-;:&=+$,\w]+@)?[A-Za-z0-9.-]+|(?:www\.|[-;:&=+$,\w]+@)[A-Za-z0-9.-]+)((?:\/[+~%/.\w\-_]*)?\??(?:[-+=&;%@.\w_]*)#?(?:[.!/\\\w]*))?)/gm,u={check(e){const t=this.prepareParsedUrl(e);return this.isNotWebLink(t)?s.successNotWebLink:s.successHyperlink},prepareParsedUrl(e){const t=this.getParsedUrl(e);let n=t;if(this.isSafeUrl(t)){const e=t.href.replace(/^.*\/utils\/goto\/\d+\?url=/,"");n=this.getParsedUrl(e)}return n},isSafeUrl(e){const t=this.getParsedUrl(e);return this.isOurDomain(t)&&t.pathname.startsWith("/utils/goto/")},isOurDomain(e){const t=this.getParsedUrl(e);return a.a.some(e=>e===t.origin)},isNotWebLink(e){const t=this.getProtocol(e);return o.includes(t)},getParsedUrl(e){return i()(e)?new URL(this.prepareValidUrl(e)):e},getProtocol(e){const t=(e.href||e).match(l);return t&&t[0]},prepareValidUrl(e){if(-1===e.indexOf("https://my.visme.co/utils/goto"))try{e=decodeURIComponent(e)}catch(e){console.error(e)}let t=e;if(t.startsWith("//")&&(t=`${window.location.protocol}${t}`),!this.getProtocol(t)){t=`${"http:"}//${t}`}const n=new RegExp("^\\w+:\\/\\/[^\\?\\/]+");return t=t.replace(n,e=>e.toLowerCase()),t},isIntranetLink:e=>new RegExp(c).test(e)}},function(e,t,n){"use strict";const r="_"+Math.random().toString(36).substr(2,9);t.a=r},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return i}));const r=(e,t,n)=>e&&t?(n||(n=1),`${n}px ${e} ${t}`):"",i=42},function(e,t,n){var r=n(720),i=n(166),a=n(1391),o=n(143).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},function(e,t,n){var r=n(118),i=n(78),a=n(166),o=Object.defineProperty,s={},l=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],c=!!a(t,"ACCESSORS")&&t.ACCESSORS,u=a(t,0)?t[0]:l,d=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i((function(){if(c&&!r)return!0;var e={length:-1};c?o(e,1,{enumerable:!0,get:l}):e[1]=1,n.call(e,u,d)}))}},function(e,t,n){var r=n(140),i=n(102);e.exports=function(e){return"number"==typeof e||i(e)&&"[object Number]"==r(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(7),i=n(37),a=n(19),o=n(8),s=n(13),l=n(4),c=function(e){function t(){var t=e.call(this)||this;return t.className="Circle",t.element=t.paper.add("circle"),t.setPercentProperty("radius",Object(a.c)(100)),t.setPropertyValue("horizontalCenter","middle"),t.setPropertyValue("verticalCenter","middle"),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.draw=function(){e.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(t.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelRadius",{get:function(){return s.relativeToValue(this.radius,l.min(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),t.prototype.measureElement=function(){var e=this.pixelRadius;this._bbox={x:-e,y:-e,width:2*e,height:2*e}},t}(i.a);o.c.registeredClasses.Circle=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return _}));var r=n(7),i=n(42),a=n(32),o=n(202),s=n(70),l=n(35),c=n(981),u=n(86),d=n(76),h=n(251),p=n(8),f=n(4),m=n(14),g=n(167),y=n(13),v=n(18),b=n(28),x=n(2),_=function(e){function t(){var t=e.call(this)||this;return t.dataFields={},t._dataSources={},t._parseDataFrom=0,t._dataDisposers=[],t._currentDataSetId="",t._start=0,t._end=1,t.skipRangeEvent=!1,t.rangeChangeDuration=0,t.rangeChangeEasing=g.cubicOut,t.parsingStepDuration=50,t.dataInvalid=!1,t.rawDataInvalid=!1,t.dataRangeInvalid=!1,t.dataItemsInvalid=!1,t.interpolationDuration=0,t.interpolationEasing=g.cubicOut,t.sequencedInterpolation=!0,t.sequencedInterpolationDelay=0,t.dataValidationProgress=0,t._addAllDataItems=!0,t._usesData=!0,t.className="Component",t.minZoomCount=1,t.maxZoomCount=0,t._dataItems=new o.b(t.createDataItem()),t._dataItems.events.on("inserted",t.handleDataItemAdded,t,!1),t._dataItems.events.on("removed",t.handleDataItemRemoved,t,!1),t._disposers.push(new a.c(t._dataItems)),t._disposers.push(t._dataItems.template),t.invalidateData(),t.dataUsers.events.on("inserted",t.handleDataUserAdded,t,!1),t._disposers.push(new l.c(t._dataDisposers)),t._start=0,t._end=1,t.maxZoomDeclination=1,t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.createDataItem=function(){return new h.a},t.prototype.handleDataUserAdded=function(e){e.newValue.dataProvider=this},t.prototype.handleDataItemValueChange=function(e,t){this.dataItemsInvalid||this.invalidateDataItems()},t.prototype.handleDataItemWorkingValueChange=function(e,t){},t.prototype.handleDataItemWorkingLocationChange=function(e,t){},t.prototype.handleDataItemCalculatedValueChange=function(e,t){},t.prototype.handleDataItemPropertyChange=function(e,t){},t.prototype.processDataItem=function(e,t){var n=this;if(e){t||(t={}),e.dataContext=t;var r=!1;b.each(this.dataFields,(function(i,s){var l=i,c=t[s];if(n._adapterO&&n._adapterO.isEnabled("dataContextValue")&&(c=n._adapterO.apply("dataContextValue",{field:l,value:c,dataItem:e}).value),x.hasValue(c))if(r=!0,e.hasChildren[l]){var u=n.createDataItem();u.copyFrom(n.mainDataSet.template);var d=new o.b(u);d.events.on("inserted",n.handleDataItemAdded,n,!1),d.events.on("removed",n.handleDataItemRemoved,n,!1),n._dataDisposers.push(new a.c(d));for(var h=c.length,p=0;p0;)this.data.shift(),t--;this.invalidateData()},t.prototype.removeData=function(e,t){if(x.isNumber(e)&&e>0){for(;e>0;){var n=this.mainDataSet.getIndex(0);n&&this.mainDataSet.remove(n),this.dataUsers.each((function(e){if(!e.data||0==e.data.length){var t=e.mainDataSet.getIndex(0);t&&e.mainDataSet.remove(t)}})),t||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,e--}this.invalidateDataItems()}},t.prototype.invalidateData=function(){this.disabled||this.isTemplate||(p.c.addToInvalidComponents(this),d.b.requestFrame(),this.dataInvalid=!0,v.each(this.dataUsers.iterator(),(function(e){e.invalidateDataItems()})))},t.prototype.invalidateDataUsers=function(){v.each(this.dataUsers.iterator(),(function(e){e.invalidate()}))},t.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(m.move(p.c.invalidDataItems,this),d.b.requestFrame(),this.dataItemsInvalid=!0,v.each(this.dataUsers.iterator(),(function(e){e.invalidateDataItems()})))},t.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,m.move(p.c.invalidDataRange,this),d.b.requestFrame())},t.prototype.validateDataRange=function(){m.remove(p.c.invalidDataRange,this),this.dataRangeInvalid=!1,this.startIndex==this._prevStartIndex&&this.endIndex==this._prevEndIndex||(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},t.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},t.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},t.prototype.appendDataItems=function(){for(var e=this.endIndex,t=this.startIndex;t0&&this.disposeData(),this.data.length>0){var t=this.preloader;v.each(this.dataUsers.iterator(),(function(e){e._startIndex=void 0,e._endIndex=void 0}));for(var n=0,r=Date.now(),i=this._parseDataFrom,a=this.data.length,o=function(){var e=s.data[i];if(s._usesData){var a=s.getDataItem(e);s.processDataItem(a,e)}if((s.dataUsers.each((function(t){if(0==t.data.length){var n=t.getDataItem(e);t.processDataItem(n,e)}})),100==++n)&&(n=0,Date.now()-r>s.parsingStepDuration&&i.5&&!t.visible||(t.progress=i/s.data.length)),s.dataValidationProgress=i/s.data.length,i=s.data.length,s.invalidateData(),{value:void 0}},s=this;i0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated")))},t.prototype.getDataSource=function(e){var t=this;return x.hasValue(this._dataSources[e])||(this._dataSources[e]=new c.a,this._dataSources[e].component=this,this.setDataSourceEvents(this._dataSources[e],e),this._dataSources[e].adapter.add("dateFields",(function(e){return t.dataSourceDateFields(e)})),this._dataSources[e].adapter.add("numberFields",(function(e){return t.dataSourceNumberFields(e)})),this.events.on("inited",(function(){t.loadData(e)}),this,!1)),this._dataSources[e]},Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(e){var t=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=e,this._dataSources.data.component=this,this.events.on("inited",(function(){t.loadData("data")}),this,!1),this.setDataSourceEvents(e,"data")},enumerable:!0,configurable:!0}),t.prototype.loadData=function(e){this._dataSources[e].load()},t.prototype.dataSourceDateFields=function(e){return e},t.prototype.dataSourceNumberFields=function(e){return e},t.prototype.populateDataSourceFields=function(e,t,n){return m.each(n,(function(n){t[n]&&-1===m.indexOf(e,t[n])&&e.push(t[n])})),e},t.prototype.setDataSourceEvents=function(e,t){var n=this;e.events.on("started",(function(e){var t=n.preloader;t&&(t.progress=0)}),void 0,!1),e.events.on("loadstarted",(function(e){var t=n.preloader;t&&(t.progress=.25)}),void 0,!1),e.events.on("loadended",(function(e){var t=n.preloader;t&&(t.progress=.5)}),void 0,!1),e.events.on("parseended",(function(e){var t=n.preloader;t&&(t.progress=.75)}),void 0,!1),e.events.on("ended",(function(e){var t=n.preloader;t&&(t.progress=1)}),void 0,!1),e.events.on("error",(function(e){var t=n.preloader;t&&(t.progress=1),n.openModal(e.message)}),void 0,!1),t&&e.events.on("done",(function(r){var i=n.preloader;i&&(i.progress=1),"data"!=t||x.isArray(r.data)||(r.data=[r.data]),e.incremental&&"data"==t&&n.data.length?n.addData(r.data,e.keepCount?r.data.length:0):e.updateCurrentData&&"data"==t&&n.data.length?(m.each(n.data,(function(e,t){x.hasValue(r.data[t])&&b.each(e,(function(n,i){x.hasValue(r.data[t][n])&&(e[n]=r.data[t][n])}))})),n.invalidateRawData()):n[t]=r.data}))},Object.defineProperty(t.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new u.a,this._responsive.component=this),this._responsive},set:function(e){this._responsive=e,this._responsive.component=this},enumerable:!0,configurable:!0}),t.prototype.zoom=function(e,t,n,r){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!1);var a=e.start,o=e.end,s=e.priority;if(e.start==e.end&&(e.start=e.start-.5/this.maxZoomFactor,e.end=e.end+.5/this.maxZoomFactor),"end"==s&&1==o&&0!=a&&athis.end&&(s="end"),x.isNumber(r)||(r=this.maxZoomDeclination),!x.isNumber(a)||!x.isNumber(o))return{start:this.start,end:this.end};if(this._finalStart!=a||this._finalEnd!=o){var l=this.maxZoomFactor/this.minZoomCount,c=this.maxZoomFactor/this.maxZoomCount;if("start"==s?(this.maxZoomCount>0&&1/(o-a)l&&(o=a+1/l),o>1&&o-a<1/l&&(a=o-1/l)):(this.maxZoomCount>0&&1/(o-a)l&&(a=o-1/l),a<0&&o-a<1/l&&(o=a+1/l)),a<-r&&(a=-r),1/(o-a)>l&&(o=a+1/l),o>1+r&&(o=1+r),1/(o-a)>l&&(a=o-1/l),this._finalEnd=o,this._finalStart=a,this.skipRangeEvent=t,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!n){var u=this.rangeChangeAnimation;if(u&&u.progress<1){var d=u.animationOptions;if(d.length>1){if(d[0].to==a&&d[1].to==o)return{start:a,end:o};u.isDisposed()||u.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),u=this.animate([{property:"start",to:a},{property:"end",to:o}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=u,u&&!u.isFinished()?u.events.on("animationended",(function(){i.dispatchImmediately("rangechangeended")})):this.dispatchImmediately("rangechangeended")}else this.start=a,this.end=o,this.dispatch("rangechangeended")}return{start:a,end:o}},t.prototype.zoomToIndexes=function(e,t,n,r){if(x.isNumber(e)&&x.isNumber(t)){var i=e/this.dataItems.length,a=t/this.dataItems.length;this.zoom({start:i,end:a},n,r)}},Object.defineProperty(t.prototype,"zoomFactor",{get:function(){return f.fitToRange(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(e){this.setPropertyValue("maxZoomFactor",e)&&(1==e&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(e){this.setPropertyValue("maxZoomDeclination",e)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startIndex",{get:function(){return x.isNumber(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(e){this._startIndex=f.fitToRange(Math.round(e),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),t.prototype.indexToPosition=function(e){return e/this.dataItems.length},Object.defineProperty(t.prototype,"endIndex",{get:function(){var e=this.dataItems.length;return(!x.isNumber(this._endIndex)||this._endIndex>e)&&(this._endIndex=e),this._endIndex},set:function(e){this._endIndex=f.fitToRange(Math.round(e),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(e){if(this._start!=e){this._start=e;var t=Math.max(0,Math.floor(this.dataItems.length*e)||0);this._startIndex=Math.min(t,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(e){this._end!=e&&(this._end=e,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*e)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),t.prototype.removeFromInvalids=function(){e.prototype.removeFromInvalids.call(this),p.c.removeFromInvalidComponents(this),m.remove(p.c.invalidDataItems,this),m.remove(p.c.invalidDataRange,this),m.remove(p.c.invalidRawDatas,this)},Object.defineProperty(t.prototype,"dataItems",{get:function(){if(""!=this._currentDataSetId){var e=this.dataSets.getKey(this._currentDataSetId);if(e)return e}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new s.a),this._dataSets},enumerable:!0,configurable:!0}),t.prototype.setDataSet=function(e){if(this._currentDataSetId!=e){if(this.dataSets.getKey(e))return this.dataItems.each((function(e){e.__disabled=!0})),this._currentDataSetId=e,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(e){e.__disabled=!1})),!0;if(""!=this._currentDataSetId)return this.dataItems.each((function(e){e.__disabled=!0})),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each((function(e){e.__disabled=!1})),!0}return!1},Object.defineProperty(t.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),t.prototype._updateDataItemIndexes=function(e){for(var t=this.mainDataSet.values,n=t.length,r=e;r0&&a(u)?n>1?e(u,n-1,a,o,s):r(s,u):o||(s[s.length]=u)}return s}},function(e,t,n){"use strict";n.d(t,"o",(function(){return b})),n.d(t,"u",(function(){return x})),n.d(t,"p",(function(){return _})),n.d(t,"v",(function(){return w})),n.d(t,"q",(function(){return S})),n.d(t,"b",(function(){return T})),n.d(t,"i",(function(){return O})),n.d(t,"g",(function(){return C})),n.d(t,"a",(function(){return P})),n.d(t,"s",(function(){return E})),n.d(t,"t",(function(){return k})),n.d(t,"j",(function(){return j})),n.d(t,"r",(function(){return I})),n.d(t,"x",(function(){return M})),n.d(t,"k",(function(){return D})),n.d(t,"l",(function(){return N})),n.d(t,"f",(function(){return R})),n.d(t,"m",(function(){return L})),n.d(t,"n",(function(){return F})),n.d(t,"w",(function(){return V})),n.d(t,"d",(function(){return B})),n.d(t,"e",(function(){return H})),n.d(t,"h",(function(){return W})),n.d(t,"c",(function(){return G}));var r=n(154),i=n(318),a=n.n(i),o=n(573),s=n.n(o),l=n(80),c=n.n(l),u=n(83),d=n.n(u),h=n(112),p=n.n(h),f=n(90),m=n.n(f),g=n(158),y=n(3);const v=e=>(t,...n)=>{if(!t)return t;let r=t;const i=!d()(t);if(!i){r=(new DOMParser).parseFromString(t,"text/html").body}const a=e(r,...n);return i?a:a.innerHTML},b=v((e,t,n=0)=>{const r=e?Array.from(e.children):[];if(r.length)for(const e of r)b(e,t,n+1);return t(e,n),e}),x=(e,t)=>b(e,e=>{e.matches(t)&&(e.outerHTML=e.innerHTML)}),_=(e,t)=>b(e,e=>{e.matches(t)&&e.remove()}),w=(e,t=[])=>b(e,e=>{if(t.includes(e.tagName)){const n=/(\sclass="")|(\sstyle="")/g,r=e.outerHTML.slice(0,e.outerHTML.indexOf(">")+1).replace(n,"");t.some(e=>r.startsWith(`<${e.toLowerCase()}>`))&&(e.outerHTML=e.innerHTML)}}),S=(e,t,n="")=>{const r=Array.isArray(t)?t:[t];if(!new RegExp(r.map(e=>`<\\/${e}>`).join("|")).test(e))return e;return e.replace(new RegExp(`(<\\/?)(${r.join("|")})([^>]*>)`,"g"),(e,t,r,i)=>{const a={a:["href","download","target","rel"]}[r];let o=i;if(a){const e=new RegExp(a.map(e=>`\\s${e}(?:=['"].*?['"])?`).join("|"),"g");o=o.replace(e,"")}return n?`${t}${n}${o}`:""})};function T(e){if(!e)return"";e=e.replace(/(<([^>]+)>)/gi,"");const t=document.createElement("span");return t.innerHTML=e,t.innerText||t.textContent||""}const O=e=>/^\s*<.{1,}?>(.*\/.*?>)?\s*$/.test(e),C=e=>Boolean(e)&&e!==T(e);function P(e,t){const n=(Array.isArray(e)?e:[e]).filter(Boolean);for(const e of n)e.style.cssText=E(e.style.cssText,t)}const E=(e,t)=>{const n=(Array.isArray(t)?t:[t]).map(a.a),r=[";","; "," "],i=n.map(e=>r.map(t=>`${t}${e}:\\s?[^;]+;\\s?`).join("|")).join("|"),o=new RegExp(i,"g");let s=e.replace(o,e=>e.slice(0,2).replace(/[^; ]/g,""));for(const e of n)s.startsWith(e)&&(s=s.replace(/^[^;]*; ?/,""));return s},k=(e,t)=>{if(!e||!e.includes(' style="'))return e;const n=Array.isArray(t)?t:[t];return e.replace(/(<[^>]*style=")([^"]+)("*[^>]+>)/g,(e,t,r,i)=>`${t}${E(r,n)}${i}`)},A=["height","width","font-size"];function j(e={}){return Object.entries(e).reduce((e,[t,n])=>{const r=t.replace(/([A-Z])/g,([e])=>"-"+e.toLowerCase());if(!(Boolean(n)||0===n))return e;return A.includes(r)&&Object(y.isNumeric)(n)&&(n+="px"),`${e}${r}:${n};`},"")}function I(e){if(!e)return{};return e.split(";").filter(Boolean).reduce((e,t)=>{const[n,r]=t.split(":").map(e=>e.trim());return e[s()(n)]=r,e},{})}function M(e,t,n){const r={className:"class"},i=Object.entries(n);let a="";for(const[e,t]of i){if(void 0===t)continue;const n=r[e]||e,i=e=>d()(e)?`'${e.replace(/'/g,'"')}'`:e;switch(n){case"style":a+=` ${n}=${i(j(t))}`;break;default:a+=` ${n}=${i(t)}`}}return`<${t}${a}>${e}`}function D(...e){return e.reduce((e,t)=>({...e,...t}),{})}function N(...e){return j(D(...e.map(e=>I(e))))}function R(e="",t){const n=new RegExp(a()(t)+":\\s?([^;]+);"),r=e.match(n);return null!==r?r[1]:void 0}const L=v((e,t)=>{const n=e.querySelectorAll(t.join(", "));for(const e of n)e.classList.remove(...t);return e});function F(e,t={}){const n=Object.entries(t).map(([e,t])=>({styleName:e,kebabStyleName:a()(e),defaultValue:t})),r={color:!0,backgroundColor:!0},i=(e,t,n)=>{let i=t;i&&(i.startsWith('"')||i.startsWith("'"))&&(i.endsWith('"')||i.endsWith("'"))&&(i=i.slice(1,-1));return r[e]?Object(g.b)(i,n):i===n};return b(e,(e,t=0)=>{for(const{styleName:r,kebabStyleName:a,defaultValue:o}of n){const n=c()(o)?o(e):o;if(i(r,e.style[r],n)&&void 0!==e.style[r]){let o=!1,s=e;for(;t&&!o;)s=s.parentNode,o=s.style[r]&&!i(r,s.style[r],n),t--;o||e.style.removeProperty(a)}}const r=["class","style"];for(const t of r)""===e.getAttribute(t)&&e.removeAttribute(t)})}function V({htmlString:e,styles:t={},selector:n="*",applyIfPropertyNotExists:i=!1,unchangeableValuesByProp:a={},replacedStyleValue:o=null},s=null){var l;if(p()(t))return e;const u=(!(null===(l=window)||void 0===l?void 0:l.document)&&c()(s)?s():window.document).createElement("div");return u.innerHTML=e,u.querySelectorAll(n).forEach(e=>{Object.keys(t).forEach(n=>{const s=t[n],l=a[n]||[];let c=e.style[n]||e.getAttribute(n);if(c&&Object(r.b)(c).isValid&&(c=Object(r.b)(c).toHexString()),l.includes(c))return;if(Boolean(e.style[n])){const t=["color","backgroundColor"].includes(n);if(o&&e.style[n]!==o&&(!t||!Object(g.b)(e.style[n],o)))return;return void(e.style[n]=s)}e.hasAttribute(n)?e.setAttribute(n,s):i&&(e.style[n]=s)})}),u.innerHTML}function B({htmlString:e,properties:t,selector:n="*",fallbackToAttr:r=!1,useIndex:i="last"},a=null){var o;const s=(!(null===(o=window)||void 0===o?void 0:o.document)&&c()(a)?a():window.document).createElement("div");s.innerHTML=e;const l=s.querySelectorAll(n);if(p()(l))return null;const u=l["last"===i?l.length-1:i];if(!u)return null;const d={};return t.forEach(e=>{const t=H({el:u,property:e,fallbackToAttr:r});null!==t&&(d[e]=t)}),p()(d)?null:d}function H({el:e,property:t,fallbackToAttr:n=!1,fallbackValue:r}){return Boolean(e.style[t])?e.style[t]:n&&e.hasAttribute(t)?e.getAttribute(t):void 0!==r?r:null}function z(e){return(new DOMParser).parseFromString(e,"text/html").body}function U(e){const t=[],n=e.attributes;for(let e=0;e{null!==e&&n(e)},[])]}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(74);const i=()=>Object(r.b)().commentsStore},function(e,t,n){"use strict";n.d(t,"e",(function(){return L})),n.d(t,"a",(function(){return F})),n.d(t,"d",(function(){return V})),n.d(t,"c",(function(){return B}));var r=n(72),i=n(0),a=n.n(i),o=n(200),s=n.n(o),l=n(1317),c=n.n(l),u=n(138),d=n.n(u);function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){for(var n=0;n0&&void 0!==arguments[0])||arguments[0],t=0;ta-n&&(this.mentionContainer.scrollTop+=r-a+n)}}},{key:"getItemData",value:function(){var e=this.mentionList.childNodes[this.itemIndex].dataset.link,t=void 0!==e,n=this.mentionList.childNodes[this.itemIndex].dataset.target;return t&&(this.mentionList.childNodes[this.itemIndex].dataset.value='"+o+""}},function(e,t,n){var r=n(78);e.exports=function(e){return r((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return ae})),n.d(t,"b",(function(){return z})),n.d(t,"c",(function(){return U}));var r=n(84),i=n(56),a=n(580),o=n(581),s=n(582),l=n(592),c=n(0),u=n.n(c),d=n(75),h=n(364),p=n(300);for(var f={name:"7pg0cj-a11yText",styles:"label:a11yText;z-index:9999;border:0;clip:rect(1px, 1px, 1px, 1px);height:1px;width:1px;position:absolute;overflow:hidden;padding:0;white-space:nowrap"},m=function(e){return Object(d.c)("span",Object(r.a)({css:f},e))},g={guidance:function(e){var t=e.isSearchable,n=e.isMulti,r=e.isDisabled,i=e.tabSelectsValue;switch(e.context){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu").concat(i?", press Tab to select the option and exit the menu":"",".");case"input":return"".concat(e["aria-label"]||"Select"," is focused ").concat(t?",type to refine list":"",", press Down to open the menu, ").concat(n?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value";default:return""}},onChange:function(e){var t=e.action,n=e.label,r=void 0===n?"":n,i=e.labels,a=e.isDisabled;switch(t){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(r,", deselected.");case"clear":return"All selected options have been cleared.";case"initial-input-focus":return"option".concat(i.length>1?"s":""," ").concat(i.join(","),", selected.");case"select-option":return"option ".concat(r,a?" is disabled. Select another option.":", selected.");default:return""}},onFocus:function(e){var t=e.context,n=e.focused,r=e.options,i=e.label,a=void 0===i?"":i,o=e.selectValue,s=e.isDisabled,l=e.isSelected,c=function(e,t){return e&&e.length?"".concat(e.indexOf(t)+1," of ").concat(e.length):""};if("value"===t&&o)return"value ".concat(a," focused, ").concat(c(o,n),".");if("menu"===t){var u=s?" disabled":"",d="".concat(l?"selected":"focused").concat(u);return"option ".concat(a," ").concat(d,", ").concat(c(r,n),".")}return""},onFilter:function(e){var t=e.inputValue,n=e.resultsMessage;return"".concat(n).concat(t?" for search term "+t:"",".")}},y=function(e){var t=e.ariaSelection,n=e.focusedOption,r=e.focusedValue,a=e.focusableOptions,o=e.isFocused,s=e.selectValue,l=e.selectProps,h=e.id,p=l.ariaLiveMessages,f=l.getOptionLabel,y=l.inputValue,v=l.isMulti,b=l.isOptionDisabled,x=l.isSearchable,_=l.menuIsOpen,w=l.options,S=l.screenReaderStatus,T=l.tabSelectsValue,O=l["aria-label"],C=l["aria-live"],P=Object(c.useMemo)((function(){return Object(i.o)(Object(i.o)({},g),p||{})}),[p]),E=Object(c.useMemo)((function(){var e,n="";if(t&&P.onChange){var r=t.option,a=t.options,o=t.removedValue,l=t.removedValues,c=t.value,u=o||r||(e=c,Array.isArray(e)?null:e),d=u?f(u):"",h=a||l||void 0,p=h?h.map(f):[],m=Object(i.o)({isDisabled:u&&b(u,s),label:d,labels:p},t);n=P.onChange(m)}return n}),[t,P,b,s,f]),k=Object(c.useMemo)((function(){var e="",t=n||r,i=!!(n&&s&&s.includes(n));if(t&&P.onFocus){var a={focused:t,label:f(t),isDisabled:b(t,s),isSelected:i,options:w,context:t===n?"menu":"value",selectValue:s};e=P.onFocus(a)}return e}),[n,r,f,b,P,w,s]),A=Object(c.useMemo)((function(){var e="";if(_&&w.length&&P.onFilter){var t=S({count:a.length});e=P.onFilter({inputValue:y,resultsMessage:t})}return e}),[a,y,_,P,w,S]),j=Object(c.useMemo)((function(){var e="";if(P.guidance){var t=r?"value":_?"menu":"input";e=P.guidance({"aria-label":O,context:t,isDisabled:n&&b(n,s),isMulti:v,isSearchable:x,tabSelectsValue:T})}return e}),[O,n,r,v,b,x,_,P,s,T]),I="".concat(k," ").concat(A," ").concat(j),M=Object(d.c)(u.a.Fragment,null,Object(d.c)("span",{id:"aria-selection"},E),Object(d.c)("span",{id:"aria-context"},I)),D="initial-input-focus"===(null==t?void 0:t.action);return Object(d.c)(u.a.Fragment,null,Object(d.c)(m,{id:h},D&&M),Object(d.c)(m,{"aria-live":C,"aria-atomic":"false","aria-relevant":"additions text"},o&&!D&&M))},v=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],b=new RegExp("["+v.map((function(e){return e.letters})).join("")+"]","g"),x={},_=0;_0,m=u-h-c,g=!1;m>t&&s.current&&(r&&r(e),s.current=!1),f&&l.current&&(o&&o(e),l.current=!1),f&&t>m?(n&&!s.current&&n(e),p.scrollTop=u,g=!0,s.current=!0):!f&&-t>c&&(a&&!l.current&&a(e),p.scrollTop=0,g=!0,l.current=!0),g&&function(e){e.preventDefault(),e.stopPropagation()}(e)}}),[n,r,a,o]),p=Object(c.useCallback)((function(e){h(e,e.deltaY)}),[h]),f=Object(c.useCallback)((function(e){u.current=e.changedTouches[0].clientY}),[]),m=Object(c.useCallback)((function(e){var t=u.current-e.changedTouches[0].clientY;h(e,t)}),[h]),g=Object(c.useCallback)((function(e){if(e){var t=!!i.G&&{passive:!1};e.addEventListener("wheel",p,t),e.addEventListener("touchstart",f,t),e.addEventListener("touchmove",m,t)}}),[m,f,p]),y=Object(c.useCallback)((function(e){e&&(e.removeEventListener("wheel",p,!1),e.removeEventListener("touchstart",f,!1),e.removeEventListener("touchmove",m,!1))}),[m,f,p]);return Object(c.useEffect)((function(){if(t){var e=d.current;return g(e),function(){y(e)}}}),[t,g,y]),function(e){d.current=e}}({isEnabled:void 0===r||r,onBottomArrive:e.onBottomArrive,onBottomLeave:e.onBottomLeave,onTopArrive:e.onTopArrive,onTopLeave:e.onTopLeave}),o=function(e){var t=e.isEnabled,n=e.accountForScrollbars,r=void 0===n||n,i=Object(c.useRef)({}),a=Object(c.useRef)(null),o=Object(c.useCallback)((function(e){if(R){var t=document.body,n=t&&t.style;if(r&&A.forEach((function(e){var t=n&&n[e];i.current[e]=t})),r&&L<1){var a=parseInt(i.current.paddingRight,10)||0,o=document.body?document.body.clientWidth:0,s=window.innerWidth-o+a||0;Object.keys(j).forEach((function(e){var t=j[e];n&&(n[e]=t)})),n&&(n.paddingRight="".concat(s,"px"))}t&&N()&&(t.addEventListener("touchmove",I,F),e&&(e.addEventListener("touchstart",D,F),e.addEventListener("touchmove",M,F))),L+=1}}),[r]),s=Object(c.useCallback)((function(e){if(R){var t=document.body,n=t&&t.style;L=Math.max(L-1,0),r&&L<1&&A.forEach((function(e){var t=i.current[e];n&&(n[e]=t)})),t&&N()&&(t.removeEventListener("touchmove",I,F),e&&(e.removeEventListener("touchstart",D,F),e.removeEventListener("touchmove",M,F)))}}),[r]);return Object(c.useEffect)((function(){if(t){var e=a.current;return o(e),function(){s(e)}}}),[t,o,s]),function(e){a.current=e}}({isEnabled:n});return Object(d.c)(u.a.Fragment,null,n&&Object(d.c)("div",{onClick:V,css:B}),t((function(e){a(e),o(e)})))}var z=function(e){return e.label},U=function(e){return e.value},W={clearIndicator:i.p,container:i.r,control:i.s,dropdownIndicator:i.t,group:i.u,groupHeading:i.v,indicatorsContainer:i.w,indicatorSeparator:i.x,input:i.y,loadingIndicator:i.z,loadingMessage:i.A,menu:i.B,menuList:i.C,menuPortal:i.D,multiValue:i.E,multiValueLabel:i.F,multiValueRemove:i.H,noOptionsMessage:i.I,option:i.J,placeholder:i.K,singleValue:i.L,valueContainer:i.M};var G,q={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},Y={"aria-live":"polite",backspaceRemovesValue:!0,blurInputOnSelect:Object(i.N)(),captureMenuScroll:!Object(i.N)(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){if(e.data.__isNew__)return!0;var n=Object(i.o)({ignoreCase:!0,ignoreAccents:!0,stringify:P,trim:!0,matchFrom:"any"},G),r=n.ignoreCase,a=n.ignoreAccents,o=n.stringify,s=n.trim,l=n.matchFrom,c=s?C(t):t,u=s?C(o(e)):o(e);return r&&(c=c.toLowerCase(),u=u.toLowerCase()),a&&(c=O(c),u=T(u)),"start"===l?u.substr(0,c.length)===c:u.indexOf(c)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:z,getOptionValue:U,isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:function(e){return!!e.isDisabled},loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(i.a)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:0,tabSelectsValue:!0};function X(e,t,n,r){return{type:"option",data:t,isDisabled:ee(e,t,n),isSelected:te(e,t,n),label:Q(e,t),value:J(e,t),index:r}}function $(e,t){return e.options.map((function(n,r){if("options"in n){var i=n.options.map((function(n,r){return X(e,n,t,r)})).filter((function(t){return Z(e,t)}));return i.length>0?{type:"group",data:n,options:i,index:r}:void 0}var a=X(e,n,t,r);return Z(e,a)?a:void 0})).filter(i.g)}function K(e){return e.reduce((function(e,t){return"group"===t.type?e.push.apply(e,Object(l.a)(t.options.map((function(e){return e.data})))):e.push(t.data),e}),[])}function Z(e,t){var n=e.inputValue,r=void 0===n?"":n,i=t.data,a=t.isSelected,o=t.label,s=t.value;return(!re(e)||!a)&&ne(e,{label:o,value:s,data:i},r)}var Q=function(e,t){return e.getOptionLabel(t)},J=function(e,t){return e.getOptionValue(t)};function ee(e,t,n){return"function"==typeof e.isOptionDisabled&&e.isOptionDisabled(t,n)}function te(e,t,n){if(n.indexOf(t)>-1)return!0;if("function"==typeof e.isOptionSelected)return e.isOptionSelected(t,n);var r=J(e,t);return n.some((function(t){return J(e,t)===r}))}function ne(e,t,n){return!e.filterOption||e.filterOption(t,n)}var re=function(e){var t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},ie=1,ae=function(e){Object(s.a)(n,e);var t=Object(i.n)(n);function n(e){var r;return Object(a.a)(this,n),(r=t.call(this,e)).state={ariaSelection:null,focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,selectValue:[],clearFocusValueOnUpdate:!1,prevWasFocused:!1,inputIsHiddenAfterUpdate:void 0,prevProps:void 0},r.blockOptionHover=!1,r.isComposing=!1,r.commonProps=void 0,r.initialTouchX=0,r.initialTouchY=0,r.instancePrefix="",r.openAfterFocus=!1,r.scrollToFocusedOptionOnUpdate=!1,r.userIsDragging=void 0,r.controlRef=null,r.getControlRef=function(e){r.controlRef=e},r.focusedOptionRef=null,r.getFocusedOptionRef=function(e){r.focusedOptionRef=e},r.menuListRef=null,r.getMenuListRef=function(e){r.menuListRef=e},r.inputRef=null,r.getInputRef=function(e){r.inputRef=e},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props,i=n.onChange,a=n.name;t.name=a,r.ariaOnChange(e,t),i(e,t)},r.setValue=function(e,t,n){var i=r.props,a=i.closeMenuOnSelect,o=i.isMulti;r.onInputChange("",{action:"set-value"}),a&&(r.setState({inputIsHiddenAfterUpdate:!o}),r.onMenuClose()),r.setState({clearFocusValueOnUpdate:!0}),r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,a=t.isMulti,o=t.name,s=r.state.selectValue,c=a&&r.isOptionSelected(e,s),u=r.isOptionDisabled(e,s);if(c){var d=r.getOptionValue(e);r.setValue(Object(i.b)(s.filter((function(e){return r.getOptionValue(e)!==d}))),"deselect-option",e)}else{if(u)return void r.ariaOnChange(Object(i.c)(e),{action:"select-option",option:e,name:o});a?r.setValue(Object(i.b)([].concat(Object(l.a)(s),[e])),"select-option",e):r.setValue(Object(i.c)(e),"select-option")}n&&r.blurInput()},r.removeValue=function(e){var t=r.props.isMulti,n=r.state.selectValue,a=r.getOptionValue(e),o=n.filter((function(e){return r.getOptionValue(e)!==a})),s=Object(i.d)(t,o,o[0]||null);r.onChange(s,{action:"remove-value",removedValue:e}),r.focusInput()},r.clearValue=function(){var e=r.state.selectValue;r.onChange(Object(i.d)(r.props.isMulti,[],null),{action:"clear",removedValues:e})},r.popValue=function(){var e=r.props.isMulti,t=r.state.selectValue,n=t[t.length-1],a=t.slice(0,t.length-1),o=Object(i.d)(e,a,a[0]||null);r.onChange(o,{action:"pop-value",removedValue:n})},r.getValue=function(){return r.state.selectValue},r.cx=function(){for(var e=arguments.length,t=new Array(e),n=0;n5||a>5}},r.onTouchEnd=function(e){r.userIsDragging||(r.controlRef&&!r.controlRef.contains(e.target)&&r.menuListRef&&!r.menuListRef.contains(e.target)&&r.blurInput(),r.initialTouchX=0,r.initialTouchY=0)},r.onControlTouchEnd=function(e){r.userIsDragging||r.onControlMouseDown(e)},r.onClearIndicatorTouchEnd=function(e){r.userIsDragging||r.onClearIndicatorMouseDown(e)},r.onDropdownIndicatorTouchEnd=function(e){r.userIsDragging||r.onDropdownIndicatorMouseDown(e)},r.handleInputChange=function(e){var t=e.currentTarget.value;r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange(t,{action:"input-change"}),r.props.menuIsOpen||r.onMenuOpen()},r.onInputFocus=function(e){r.props.onFocus&&r.props.onFocus(e),r.setState({inputIsHiddenAfterUpdate:!1,isFocused:!0}),(r.openAfterFocus||r.props.openMenuOnFocus)&&r.openMenu("first"),r.openAfterFocus=!1},r.onInputBlur=function(e){r.menuListRef&&r.menuListRef.contains(document.activeElement)?r.inputRef.focus():(r.props.onBlur&&r.props.onBlur(e),r.onInputChange("",{action:"input-blur"}),r.onMenuClose(),r.setState({focusedValue:null,isFocused:!1}))},r.onOptionHover=function(e){r.blockOptionHover||r.state.focusedOption===e||r.setState({focusedOption:e})},r.shouldHideSelectedOptions=function(){return re(r.props)},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,i=t.backspaceRemovesValue,a=t.escapeClearsValue,o=t.inputValue,s=t.isClearable,l=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,h=t.openMenuOnFocus,p=r.state,f=p.focusedOption,m=p.focusedValue,g=p.selectValue;if(!(l||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||o)return;r.focusValue("previous");break;case"ArrowRight":if(!n||o)return;r.focusValue("next");break;case"Delete":case"Backspace":if(o)return;if(m)r.removeValue(m);else{if(!i)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!c||!d||!f||h&&r.isOptionSelected(f,g))return;r.selectOption(f);break;case"Enter":if(229===e.keyCode)break;if(c){if(!f)return;if(r.isComposing)return;r.selectOption(f);break}return;case"Escape":c?(r.setState({inputIsHiddenAfterUpdate:!1}),r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&a&&r.clearValue();break;case" ":if(o)return;if(!c){r.openMenu("first");break}if(!f)return;r.selectOption(f);break;case"ArrowUp":c?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":c?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!c)return;r.focusOption("pageup");break;case"PageDown":if(!c)return;r.focusOption("pagedown");break;case"Home":if(!c)return;r.focusOption("first");break;case"End":if(!c)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.instancePrefix="react-select-"+(r.props.instanceId||++ie),r.state.selectValue=Object(i.i)(e.value),r}return Object(o.a)(n,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.isDisabled,r=t.menuIsOpen,a=this.state.isFocused;(a&&!n&&e.isDisabled||a&&r&&!e.menuIsOpen)&&this.focusInput(),a&&n&&!e.isDisabled&&this.setState({isFocused:!1},this.onMenuClose),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(i.j)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this,n=this.state,r=n.selectValue,i=n.isFocused,a=this.buildFocusableOptions(),o="first"===e?0:a.length-1;if(!this.props.isMulti){var s=a.indexOf(r[0]);s>-1&&(o=s)}this.scrollToFocusedOptionOnUpdate=!(i&&this.menuListRef),this.setState({inputIsHiddenAfterUpdate:!1,focusedValue:null,focusedOption:a[o]},(function(){return t.onMenuOpen()}))}},{key:"focusValue",value:function(e){var t=this.state,n=t.selectValue,r=t.focusedValue;if(this.props.isMulti){this.setState({focusedOption:null});var i=n.indexOf(r);r||(i=-1);var a=n.length-1,o=-1;if(n.length){switch(e){case"previous":o=0===i?0:-1===i?a:i-1;break;case"next":i>-1&&i0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state.focusedOption,r=this.getFocusableOptions();if(r.length){var i=0,a=r.indexOf(n);n||(a=-1),"up"===e?i=a>0?a-1:r.length-1:"down"===e?i=(a+1)%r.length:"pageup"===e?(i=a-t)<0&&(i=0):"pagedown"===e?(i=a+t)>r.length-1&&(i=r.length-1):"last"===e&&(i=r.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:r[i],focusedValue:null})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(q):Object(i.o)(Object(i.o)({},q),this.props.theme):q}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.cx,n=this.getStyles,r=this.getValue,i=this.selectOption,a=this.setValue,o=this.props,s=o.isMulti,l=o.isRtl,c=o.options;return{clearValue:e,cx:t,getStyles:n,getValue:r,hasValue:this.hasValue(),isMulti:s,isRtl:l,options:c,selectOption:i,selectProps:o,setValue:a,theme:this.getTheme()}}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.getFocusableOptions().length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return ee(this.props,e,t)}},{key:"isOptionSelected",value:function(e,t){return te(this.props,e,t)}},{key:"filterOption",value:function(e,t){return ne(this.props,e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,r=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:r})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,a=e.inputId,o=e.inputValue,s=e.tabIndex,l=e.form,c=e.menuIsOpen,d=this.getComponents().Input,h=this.state,p=h.inputIsHidden,f=h.ariaSelection,m=this.commonProps,g=a||this.getElementId("input"),y=Object(i.o)(Object(i.o)({"aria-autocomplete":"list","aria-expanded":c,"aria-haspopup":!0,"aria-controls":this.getElementId("listbox"),"aria-owns":this.getElementId("listbox"),"aria-errormessage":this.props["aria-errormessage"],"aria-invalid":this.props["aria-invalid"],"aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"],role:"combobox"},!n&&{"aria-readonly":!0}),this.hasValue()?"initial-input-focus"===(null==f?void 0:f.action)&&{"aria-describedby":this.getElementId("live-region")}:{"aria-describedby":this.getElementId("placeholder")});return n?u.a.createElement(d,Object(r.a)({},m,{autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",id:g,innerRef:this.getInputRef,isDisabled:t,isHidden:p,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,spellCheck:"false",tabIndex:s,form:l,type:"text",value:o},y)):u.a.createElement(k,Object(r.a)({id:g,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:i.k,onFocus:this.onInputFocus,disabled:t,tabIndex:s,inputMode:"none",form:l,value:""},y))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.getComponents(),n=t.MultiValue,i=t.MultiValueContainer,a=t.MultiValueLabel,o=t.MultiValueRemove,s=t.SingleValue,l=t.Placeholder,c=this.commonProps,d=this.props,h=d.controlShouldRenderValue,p=d.isDisabled,f=d.isMulti,m=d.inputValue,g=d.placeholder,y=this.state,v=y.selectValue,b=y.focusedValue,x=y.isFocused;if(!this.hasValue()||!h)return m?null:u.a.createElement(l,Object(r.a)({},c,{key:"placeholder",isDisabled:p,isFocused:x,innerProps:{id:this.getElementId("placeholder")}}),g);if(f)return v.map((function(t,s){var l=t===b;return u.a.createElement(n,Object(r.a)({},c,{components:{Container:i,Label:a,Remove:o},isFocused:l,isDisabled:p,key:"".concat(e.getOptionValue(t),"-").concat(s),index:s,removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(m)return null;var _=v[0];return u.a.createElement(s,Object(r.a)({},c,{data:_,isDisabled:p}),this.formatOptionLabel(_,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.getComponents().ClearIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!this.isClearable()||!e||i||!this.hasValue()||a)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return u.a.createElement(e,Object(r.a)({},t,{innerProps:s,isFocused:o}))}},{key:"renderLoadingIndicator",value:function(){var e=this.getComponents().LoadingIndicator,t=this.commonProps,n=this.props,i=n.isDisabled,a=n.isLoading,o=this.state.isFocused;if(!e||!a)return null;return u.a.createElement(e,Object(r.a)({},t,{innerProps:{"aria-hidden":"true"},isDisabled:i,isFocused:o}))}},{key:"renderIndicatorSeparator",value:function(){var e=this.getComponents(),t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var i=this.commonProps,a=this.props.isDisabled,o=this.state.isFocused;return u.a.createElement(n,Object(r.a)({},i,{isDisabled:a,isFocused:o}))}},{key:"renderDropdownIndicator",value:function(){var e=this.getComponents().DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,i=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return u.a.createElement(e,Object(r.a)({},t,{innerProps:a,isDisabled:n,isFocused:i}))}},{key:"renderMenu",value:function(){var e=this,t=this.getComponents(),n=t.Group,a=t.GroupHeading,o=t.Menu,s=t.MenuList,l=t.MenuPortal,c=t.LoadingMessage,d=t.NoOptionsMessage,h=t.Option,p=this.commonProps,f=this.state.focusedOption,m=this.props,g=m.captureMenuScroll,y=m.inputValue,v=m.isLoading,b=m.loadingMessage,x=m.minMenuHeight,_=m.maxMenuHeight,w=m.menuIsOpen,S=m.menuPlacement,T=m.menuPosition,O=m.menuPortalTarget,C=m.menuShouldBlockScroll,P=m.menuShouldScrollIntoView,E=m.noOptionsMessage,k=m.onMenuScrollToTop,A=m.onMenuScrollToBottom;if(!w)return null;var j,I=function(t,n){var i=t.type,a=t.data,o=t.isDisabled,s=t.isSelected,l=t.label,c=t.value,d=f===a,m=o?void 0:function(){return e.onOptionHover(a)},g=o?void 0:function(){return e.selectOption(a)},y="".concat(e.getElementId("option"),"-").concat(n),v={id:y,onClick:g,onMouseMove:m,onMouseOver:m,tabIndex:-1};return u.a.createElement(h,Object(r.a)({},p,{innerProps:v,data:a,isDisabled:o,isSelected:s,key:y,label:l,type:i,value:c,isFocused:d,innerRef:d?e.getFocusedOptionRef:void 0}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=this.getCategorizedOptions().map((function(t){if("group"===t.type){var i=t.data,o=t.options,s=t.index,l="".concat(e.getElementId("group"),"-").concat(s),c="".concat(l,"-heading");return u.a.createElement(n,Object(r.a)({},p,{key:l,data:i,options:o,Heading:a,headingProps:{id:c,data:t.data},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return I(e,"".concat(s,"-").concat(e.index))})))}if("option"===t.type)return I(t,"".concat(t.index))}));else if(v){var M=b({inputValue:y});if(null===M)return null;j=u.a.createElement(c,p,M)}else{var D=E({inputValue:y});if(null===D)return null;j=u.a.createElement(d,p,D)}var N={minMenuHeight:x,maxMenuHeight:_,menuPlacement:S,menuPosition:T,menuShouldScrollIntoView:P},R=u.a.createElement(i.m,Object(r.a)({},p,N),(function(t){var n=t.ref,i=t.placerProps,a=i.placement,l=i.maxHeight;return u.a.createElement(o,Object(r.a)({},p,N,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove,id:e.getElementId("listbox")},isLoading:v,placement:a}),u.a.createElement(H,{captureEnabled:g,onTopArrive:k,onBottomArrive:A,lockEnabled:C},(function(t){return u.a.createElement(s,Object(r.a)({},p,{innerRef:function(n){e.getMenuListRef(n),t(n)},isLoading:v,maxHeight:l,focusedOption:f}),j)})))}));return O||"fixed"===T?u.a.createElement(l,Object(r.a)({},p,{appendTo:O,controlElement:this.controlRef,menuPlacement:S,menuPosition:T}),R):R}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,r=t.isDisabled,i=t.isMulti,a=t.name,o=this.state.selectValue;if(a&&!r){if(i){if(n){var s=o.map((function(t){return e.getOptionValue(t)})).join(n);return u.a.createElement("input",{name:a,type:"hidden",value:s})}var l=o.length>0?o.map((function(t,n){return u.a.createElement("input",{key:"i-".concat(n),name:a,type:"hidden",value:e.getOptionValue(t)})})):u.a.createElement("input",{name:a,type:"hidden"});return u.a.createElement("div",null,l)}var c=o[0]?this.getOptionValue(o[0]):"";return u.a.createElement("input",{name:a,type:"hidden",value:c})}}},{key:"renderLiveRegion",value:function(){var e=this.commonProps,t=this.state,n=t.ariaSelection,i=t.focusedOption,a=t.focusedValue,o=t.isFocused,s=t.selectValue,l=this.getFocusableOptions();return u.a.createElement(y,Object(r.a)({},e,{id:this.getElementId("live-region"),ariaSelection:n,focusedOption:i,focusedValue:a,isFocused:o,selectValue:s,focusableOptions:l}))}},{key:"render",value:function(){var e=this.getComponents(),t=e.Control,n=e.IndicatorsContainer,i=e.SelectContainer,a=e.ValueContainer,o=this.props,s=o.className,l=o.id,c=o.isDisabled,d=o.menuIsOpen,h=this.state.isFocused,p=this.commonProps=this.getCommonProps();return u.a.createElement(i,Object(r.a)({},p,{className:s,innerProps:{id:l,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:h}),this.renderLiveRegion(),u.a.createElement(t,Object(r.a)({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:h,menuIsOpen:d}),u.a.createElement(a,Object(r.a)({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),u.a.createElement(n,Object(r.a)({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t.clearFocusValueOnUpdate,a=t.inputIsHiddenAfterUpdate,o=t.ariaSelection,s=t.isFocused,l=t.prevWasFocused,c=e.options,u=e.value,d=e.menuIsOpen,h=e.inputValue,p=e.isMulti,f=Object(i.i)(u),m={};if(n&&(u!==n.value||c!==n.options||d!==n.menuIsOpen||h!==n.inputValue)){var g=d?function(e,t){return K($(e,t))}(e,f):[],y=r?function(e,t){var n=e.focusedValue,r=e.selectValue.indexOf(n);if(r>-1){if(t.indexOf(n)>-1)return n;if(r-1?n:t[0]}(t,g),focusedValue:y,clearFocusValueOnUpdate:!1}}var v=null!=a&&e!==n?{inputIsHidden:a,inputIsHiddenAfterUpdate:void 0}:{},b=o,x=s&&l;return s&&!x&&(b={value:Object(i.d)(p,f,f[0]||null),options:f,action:"initial-input-focus"},x=!l),"initial-input-focus"===(null==o?void 0:o.action)&&(b=null),Object(i.o)(Object(i.o)(Object(i.o)({},m),v),{},{prevProps:e,ariaSelection:b,prevWasFocused:x})}}]),n}(c.Component);ae.defaultProps=Y},function(e,t,n){"use strict";function r(e,t){return Math.round(e*t)}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(7),i=n(42),a=n(37),o=n(8),s=n(4),l=n(11),c=n(2),u=n(13),d=n(19),h=n(271),p=function(e){function t(){var t=e.call(this)||this;return t.className="Slice",t.setPropertyValue("cornerRadius",0),t.setPropertyValue("startAngle",0),t.setPercentProperty("innerRadius",0),t.setPercentProperty("radius",0),t.setPropertyValue("arc",0),t.setPropertyValue("shiftRadius",0),t.strokeOpacity=1,t.setPropertyValue("layout","none"),t.slice=t.createChild(a.a),t.slice.isMeasured=!1,t._disposers.push(t.slice),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.draw=function(){e.prototype.draw.call(this);var t=this.radiusY;this.radius>0&&0==t&&(t=.01),this.slice.path=l.arc(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,t,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof h.a&&this.updateGradient(this.realFill),this.realStroke instanceof h.a&&this.updateGradient(this.realStroke)},t.prototype.updateGradient=function(e){e.element.attr({gradientUnits:"userSpaceOnUse"}),e.element.attr({r:this.radius}),e.cx=0,e.cy=0,e.element.attr({radius:this.radius})},Object.defineProperty(t.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;if(this.isMeasured){var e=s.getArcRect(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),t=s.getArcRect(this.startAngle,this.startAngle+this.arc,this.radius);return s.getCommonRectangle([e,t])}return{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",s.normalizeAngle(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){c.isNumber(e)||(e=0),this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radius",{get:function(){var e=this.getPropertyValue("radius");return c.isNumber(e)||(e=0),e},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return c.isNumber(e)||(e=this.radius),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pixelInnerRadius",{get:function(){return u.relativeToValue(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(e){this.setPropertyValue("innerCornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(e){this.setPropertyValue("shiftRadius",e),e=this.getPropertyValue("shiftRadius"),this.dx=e*this.radius*this.ix,this.dy=e*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ix",{get:function(){return s.cos(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"iy",{get:function(){return s.sin(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),t.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");if(c.isNumber(e))return e;var t=.5;e instanceof d.a&&(t=e.value);var n=u.relativeToValue(this.innerRadius,this.radius);return this.ix*(n+(this.radius-n)*t)},t.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");if(c.isNumber(e))return e;var t=.5;e instanceof d.a&&(t=e.value);var n=u.relativeToValue(this.innerRadius,this.radius);return this.iy*(n+(this.radius-n)*t)+this.slice.dy},t}(i.a);o.c.registeredClasses.Slice=p},function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"g",(function(){return m})),n.d(t,"b",(function(){return g})),n.d(t,"f",(function(){return y})),n.d(t,"e",(function(){return v})),n.d(t,"c",(function(){return x})),n.d(t,"d",(function(){return _}));var r=n(17),i=n.n(r),a=n(0),o=n.n(a),s=n(6),l=n(60),c=n(1936),u=n.n(c),d=n(9),h=n.n(d),p=n(277);const f=750,m=({height:e=16,rows:t=1,gap:n=4,className:r})=>o.a.createElement("div",{style:{top:e/2},className:h()("comment__placeholder","comment__rect-placeholder",r)},u()(t).map(t=>o.a.createElement("div",{key:t,className:"comment__rect-placeholder-row",style:{height:e,marginBottom:n}}))),g=({size:e})=>o.a.createElement("div",{className:"comment__circle-placeholder",style:{width:e,height:e}}),y=({className:e,children:t,...n})=>o.a.createElement("div",i()({},n,{className:h()("comment__placeholder-container",e)}),t),v=Object(s.a)(({commentId:e,children:t})=>{const n=Object(p.a)();return o.a.createElement(l.CSSTransition,{in:n.isCommentHiding(e),classNames:"comment__placeholder",timeout:f,mountOnEnter:!0},t)}),b=e=>Object(s.a)(({commentId:t,children:n,className:r,...a})=>{const s=Object(p.a)();return o.a.createElement(l.CSSTransition,i()({in:!s.isCommentHiding(t),classNames:e,timeout:f},a),o.a.createElement("div",{className:h()(e,r)},n))}),x=b("comment__content-to-fade"),_=b("comment__content-to-hide")},function(e,t,n){e.exports={titleIcon:"titleIcon--1zxThm8",menuContainer:"menuContainer--1-I9q5i",linksContainer:"linksContainer--3N1EZkZ",linkItem:"linkItem--ZbY6Jjs",linkIcon:"linkIcon--30sIP1q","linkIcon--blog":"linkIcon--blog--3P_kjX8","linkIcon--templates":"linkIcon--templates--2pVMvjT","linkIcon--pricing":"linkIcon--pricing--2lMEVz2","linkIcon--gallery":"linkIcon--gallery--3LFDNmo",linkTitle:"linkTitle--1AhPJxd",linkArrow:"linkArrow--2-ExSRC",buttonsContainer:"buttonsContainer--3uWVyk1",logInBtn:"logInBtn--PtJpL7e",createVismeBtn:"createVismeBtn--YCrCgJy"}},function(e,t,n){var r=n(543),i=n(864),a=n(160);e.exports=function(e){return a(e)?r(e,!0):i(e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],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}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(307),i=n(104);e.exports=function(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=r(e.prototype),a=e.apply(n,t);return i(a)?a:n}}},function(e,t,n){var r=n(104),i=Object.create,a=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=a},function(e,t,n){var r=n(353),i=n(338),a=n(363),o=n(542),s=n(863),l=n(687),c=n(255),u=n(866),d=n(867),h=n(547),p=n(549),f=n(208),m=n(870),g=n(871),y=n(689),v=n(79),b=n(281),x=n(875),_=n(104),w=n(877),S=n(187),T=n(304),O={};O["[object Arguments]"]=O["[object Array]"]=O["[object ArrayBuffer]"]=O["[object DataView]"]=O["[object Boolean]"]=O["[object Date]"]=O["[object Float32Array]"]=O["[object Float64Array]"]=O["[object Int8Array]"]=O["[object Int16Array]"]=O["[object Int32Array]"]=O["[object Map]"]=O["[object Number]"]=O["[object Object]"]=O["[object RegExp]"]=O["[object Set]"]=O["[object String]"]=O["[object Symbol]"]=O["[object Uint8Array]"]=O["[object Uint8ClampedArray]"]=O["[object Uint16Array]"]=O["[object Uint32Array]"]=!0,O["[object Error]"]=O["[object Function]"]=O["[object WeakMap]"]=!1,e.exports=function e(t,n,C,P,E,k){var A,j=1&n,I=2&n,M=4&n;if(C&&(A=E?C(t,P,E,k):C(t)),void 0!==A)return A;if(!_(t))return t;var D=v(t);if(D){if(A=m(t),!j)return c(t,A)}else{var N=f(t),R="[object Function]"==N||"[object GeneratorFunction]"==N;if(b(t))return l(t,j);if("[object Object]"==N||"[object Arguments]"==N||R&&!E){if(A=I||R?{}:y(t),!j)return I?d(t,s(A,t)):u(t,o(A,t))}else{if(!O[N])return E?t:{};A=g(t,N,j)}}k||(k=new r);var L=k.get(t);if(L)return L;k.set(t,A),w(t)?t.forEach((function(r){A.add(e(r,n,C,r,t,k))})):x(t)&&t.forEach((function(r,i){A.set(i,e(r,n,C,i,t,k))}));var F=D?void 0:(M?I?p:h:I?T:S)(t);return i(F||t,(function(r,i){F&&(r=t[i=r]),a(A,i,e(r,n,C,i,t,k))})),A}},function(e,t,n){var r=n(841),i=n(842),a=n(843),o=n(844),s=n(845);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t{let a=t;const o=Array.isArray(e)?e:[e];if(n){const e=`${o[o.length-1].key}-separator-${i.key}`;a=Object(r.cloneElement)(t,{key:e})}return[...o,a,i]}):null}function s(e,t,n){if(!e)return n;if(a()(e)){return(t||document).querySelector(e)}return e.current?e.current:e}const l=e=>{e&&e.current&&(e.current.focus(),e.current.select())}},function(e,t,n){var r=n(308);e.exports=function(e){return r(e,5)}},function(e,t,n){"use strict";var r=n(0),i=n.n(r),a=n(9),o=n.n(a);t.a=({id:e,checked:t,onChange:n,contClassName:r="",dark:a=!1,disabled:s=!1,options:l=["On","Off"]})=>{const[c,u]=l,d=o()("on-off-slider "+r,{"on-off-slider--dark":a,"on-off-slider--disabled":s});return i.a.createElement("div",{className:d},i.a.createElement("input",{id:e,type:"checkbox",checked:t,onChange:n,className:"on-off-slider__input"}),i.a.createElement("label",{htmlFor:e,className:"on-off-slider__label"},i.a.createElement("div",{className:"on-off-slider__toggle on-off-slider__toggle--on"},c),i.a.createElement("div",{className:"on-off-slider__toggle on-off-slider__toggle--off"},u)))}},,function(e,t,n){var r=n(49)("kebabCase",n(732),n(94));r.placeholder=n(47),e.exports=r},,function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=Array.isArray,i=function(e){if(!e)return"";if("string"==typeof e)return e;if("object"!=typeof e)return"";var t,n,a="";if(r(e)){if(0===(n=e.length))return"";if(1===n)return i(e[0]);for(var o=0;o({get ready(){return Boolean(e.transform&&e.d&&e.d.length>1)}})),o=r.types.model("RectShape",{type:"rect",transform:r.types.maybeNull(i),fromPoint:r.types.maybeNull(i),toPoint:r.types.maybeNull(i)}).views(e=>({get ready(){return Boolean(e.transform&&e.fromPoint&&e.toPoint)},get x(){return e.ready?Math.min(e.fromPoint.x,e.toPoint.x):null},get y(){return e.ready?Math.min(e.fromPoint.y,e.toPoint.y):null},get width(){const t=e.x;if("number"==typeof t){return Math.max(e.fromPoint.x,e.toPoint.x)-t}return 0},get height(){const t=e.y;if("number"==typeof t){return Math.max(e.toPoint.y,e.fromPoint.y)-t}return 0}})),s=r.types.model("EllipseShape",{type:"ellipse",transform:r.types.maybeNull(i),fromPoint:r.types.maybeNull(i),toPoint:r.types.maybeNull(i)}).views(e=>({get ready(){return Boolean(e.transform&&e.fromPoint&&e.toPoint)},get minX(){return e.ready?Math.min(e.fromPoint.x,e.toPoint.x):null},get maxX(){return e.ready?Math.max(e.fromPoint.x,e.toPoint.x):null},get minY(){return e.ready?Math.min(e.fromPoint.y,e.toPoint.y):null},get maxY(){return e.ready?Math.max(e.fromPoint.y,e.toPoint.y):null},get rx(){return e.ready?(e.maxX-e.minX)/2:null},get ry(){return e.ready?(e.maxY-e.minY)/2:null},get cx(){return e.ready?e.minX+e.rx:null},get cy(){return e.ready?e.minY+e.ry:null}})),l=r.types.model("LineShape",{type:"line",transform:r.types.maybeNull(i),fromPoint:r.types.maybeNull(i),toPoint:r.types.maybeNull(i)}).views(e=>({get ready(){return Boolean(e.transform&&e.fromPoint&&e.toPoint)}})),c=r.types.model("ArrowShape",{type:"arrow",transform:r.types.maybeNull(i),fromPoint:r.types.maybeNull(i),toPoint:r.types.maybeNull(i)}).views(e=>({get ready(){return Boolean(e.transform&&e.fromPoint&&e.toPoint)}})),u=r.types.model("PinShape",{type:"pin",transform:r.types.maybeNull(i)}).views(e=>({get ready(){return Boolean(e.transform)}})),d=r.types.union(o,a,s,l,c,u)},function(e,t){e.exports=!1},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t,n){var r=n(166),i=n(157),a=n(958),o=n(1162),s=a("IE_PROTO"),l=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?l:null}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d}));var r=n(0),i=n(3),a=n(31),o=n.n(a),s=n(1187),l=n.n(s);class c{static _addIgnoredToWhen(e,t,n){return r=>!t.includes(r.target.tagName)&&!n.some(e=>r.target.classList.contains(e))&&e(r)}constructor(e){this._globalHotkeysVariableName=void 0,this._instance=void 0,this._lastFireTimeHistory=void 0,this._parentHotkeys=void 0,this._scopesWithConditions=void 0,this._globalHotkeysVariableName=e,this._scopesWithConditions=new Map,this._lastFireTimeHistory=new Map,this._instance=this._createInstance(),this._parentHotkeys=this._getParentHotkeys(),this._setCurrentGlobalHotkeys()}get _hasParentHotkeys(){return Boolean(this._parentHotkeys)}_createInstance(){const e=l.a.noConflict();return e.setMultiScopeDivider("|"),e.filter=()=>{const t=[];for(const[e,n]of this._scopesWithConditions)n&&t.push(e);const n=t.join("|")||"disableHotkeys";return e.setScope(n),!0},e}_getParentHotkeys(){let e=null;try{window.parent[this._globalHotkeysVariableName]&&(e=window.parent[this._globalHotkeysVariableName])}catch(e){console.log("Parent access denied")}return e}_setCurrentGlobalHotkeys(){window[this._globalHotkeysVariableName]=this._parentHotkeys||this}_applyToInstances(e,...t){if(void 0===e)return this._hasParentHotkeys&&this._parentHotkeys._instance(...t),void this._instance(...t);const n=e.slice(0,e.indexOf("."));if(["_lastFireTimeHistory","_scopesWithConditions"].includes(n)){const r=[];if(this._hasParentHotkeys){const i=o()(this._parentHotkeys,e);r.push(i.apply(this._parentHotkeys[n],t))}const i=o()(this,e);return r.push(i.apply(this[n],t)),r}if(this._hasParentHotkeys){o()(this._parentHotkeys,"_instance."+e)(...t)}o()(this,"_instance."+e)(...t)}_checkTimeAfterPrevFire(e,t){const n=Date.now();return!(n-Math.max(...this._applyToInstances("_lastFireTimeHistory.get",e).filter(Boolean),0)>=t)||(this._applyToInstances("_lastFireTimeHistory.set",e,n),!1)}bindHotkey({commands:e,action:t,when:n=(()=>!0),ignoredTags:r=["INPUT","SELECT","TEXTAREA"],ignoredClasses:i=[],shouldPreventDefaultAndStopPropagationOnFire:a=!1,shouldAlwaysPreventDefaultAndStopPropagation:o=!1,minDelayMs:s=16,needToFocusSelector:l=!1},u="all"){const d=c._addIgnoredToWhen(n,r,i);e.forEach(e=>{this._applyToInstances(void 0,e,u,e=>{o&&(e.preventDefault(),e.stopImmediatePropagation());if(!this._checkTimeAfterPrevFire(u,s)&&d(e)){if(l){const e=document.querySelector(l);null!==e&&e.focus()}a&&(e.preventDefault(),e.stopImmediatePropagation()),t(e)}})})}unbindHotkey(e,t){e.forEach(e=>this._applyToInstances("unbind",e,t))}setScopeCondition(e,t){t&&this._applyToInstances("_scopesWithConditions.set",e,t)}unsetScopeCondition(e){this._applyToInstances("_scopesWithConditions.delete",e)}unsetMatchedScopesConditions(e){const t=Array.from(this._scopesWithConditions.keys()),n=e.map(e=>new RegExp(`^${e}_\\d{6}$`));let r=!0;for(const e of n){const n=t.filter(t=>e.test(t));for(const e of n)this._scopesWithConditions.delete(e),r=!1}r&&console.warn("@unsetMatchedScopesConditions::Not matched any scopesToUnset in hotkeys.scopesWithConditions!")}}const u=new c("@common/hooks/useHotkeys");const d=u.unsetMatchedScopesConditions.bind(u);t.a=function({enabled:e=!0,schema:t,scope:n="all",dependencies:a=[]}){const[o,s]=Object(r.useState)(n);Object(r.useEffect)(()=>{const e="all"===n?"all":`${n}_${Object(i.randomId)()}`;s(e)},[n]),Object(r.useEffect)(()=>(o&&u.setScopeCondition(o,e),()=>u.unsetScopeCondition(o)),[o,e]),Object(r.useEffect)(()=>(o&&t.forEach(e=>u.bindHotkey(e,o)),()=>{t.forEach(e=>u.unbindHotkey(e.commands,o))}),[o,...a])}},function(e,t,n){"use strict";n.d(t,"a",(function(){return T}));var r=n(1),i=n(128),a=n.n(i),o=n(162),s=n.n(o),l=n(39),c=n(58),u=n(12),d=n(29),h=n.n(d),p=n(700),f=n.n(p),m=n(3),g=n(1012),y=n(1436),v=n.n(y),b=n(696),x=n.n(b);const _={vertical:0,horizontal:0,aspect:0,rotate:0,depth:0},w=r.types.model("BareImageModel",{src:"image",previewUrl:r.types.maybe(r.types.string),assetId:r.types.maybe(r.types.union(r.types.string,r.types.null,r.types.number)),ext:r.types.optional(r.types.string,""),colorOverlayColor:r.types.optional(r.types.string,u.a.white),colorOverlay:r.types.optional(r.types.number,0),contrast:r.types.optional(r.types.number,0),saturate:r.types.optional(r.types.number,0),hue:r.types.optional(r.types.number,0),brightness:r.types.optional(r.types.number,0),blur:r.types.optional(r.types.number,0),flipX:r.types.optional(r.types.boolean,!1),flipY:r.types.optional(r.types.boolean,!1),scale:r.types.optional(r.types.number,100),filterName:r.types.optional(r.types.string,"No Filter"),reflection:r.types.optional(r.types.model("ReflectionModel",{isEnabled:r.types.maybe(r.types.boolean),opacity:r.types.maybe(r.types.number)}),{isEnabled:!1,opacity:100}),isCropped:r.types.optional(r.types.boolean,!1),appliedFrame:r.types.optional(r.types.string,"none"),diffWidth:r.types.optional(r.types.number,1),diffHeight:r.types.optional(r.types.number,1),adjustmentX:r.types.optional(r.types.number,0),adjustmentY:r.types.optional(r.types.number,0),loaded:r.types.optional(r.types.boolean,!1),paletteIndexes:r.types.optional(r.types.array(r.types.number),[0,0]),geometryEffects:r.types.optional(r.types.model("GeometryEffectsModel",{vertical:r.types.optional(r.types.number,_.vertical),horizontal:r.types.optional(r.types.number,_.horizontal),aspect:r.types.optional(r.types.number,_.aspect),rotate:r.types.optional(r.types.number,_.rotate),depth:r.types.optional(r.types.number,_.depth)}),_),activePresetId:r.types.optional(r.types.maybeNull(r.types.number),0)}).volatile(()=>({filterSnapshot:null,isCropWindowShown:!1,activeFrame:"none",isReplacingInProcess:!1,defaultGeometryEffects:_})).preProcessSnapshot(({src:e,adjustmentX:t,adjustmentY:n,appliedFrame:r,diffWidth:i,diffHeight:a,colorOverlayColor:o,...s})=>({adjustmentX:t||0,adjustmentY:n||0,diffWidth:i||1,diffHeight:a||1,colorOverlayColor:o||u.a.white,appliedFrame:r||"none",src:e||"",...s})).views(e=>({get isFrameImage(){return!1},get isBackground(){return!1},get fullUrl(){return e.loaded?e.realUrl:e.previewUrl},get svgImageWidth(){return e.isCropped&&!e.isCropWindowShown?100*e.diffWidth+"%":"100%"},get svgImageHeight(){return e.isCropped&&!e.isCropWindowShown?100*e.diffHeight+"%":"100%"},get svgImageX(){const t=e.width*e.diffWidth*e.adjustmentX;return e.isCropped&&!e.isCropWindowShown?-1*t:0},get svgImageY(){const t=e.height*e.diffHeight*e.adjustmentY;return e.isCropped&&!e.isCropWindowShown?-1*t:0},get minScale(){return 100},get maxScale(){return 500},get isReflectionEnabled(){return"image"===e.type&&e.reflection.isEnabled},isFilterChanged:()=>v()(e.filterSnapshot).some(t=>e.filterSnapshot[t]!==e[t]),get isFlipped(){return e.flipX||e.flipY},get hasFilter(){return"No Filter"!==e.filterName},get hasFrame(){return"none"!==e.appliedFrame},get scaleGeometryStyle(){return`scale(${e.geometryEffects.aspect>0?1-e.geometryEffects.aspect:1}, ${e.geometryEffects.aspect<0?1-Math.abs(e.geometryEffects.aspect):1})`}})).actions(e=>({setScale(t){x()(e.minScale,e.maxScale+1,t)&&(e.scale=t)},updateSrc(t){for(const n in t)e[n]=t[n];if(!e.load)throw new Error("imageModel.load is not defined");e.load()},setPreviewUrl(t,n=!1){e.loaded=n,e.previewUrl=t},toggleFlipX(){e.flipX=!e.flipX},toggleFlipY(){e.flipY=!e.flipY},applyGeometryEffects(t,n){e.activePresetId="number"==typeof n?n:null,t&&(e.geometryEffects={...e.geometryEffects,...t})},resetGeometryEffects(){e.geometryEffects={...e.defaultGeometryEffects}},startReplacing(){e.isReplacingInProcess=!0},stopReplacing(){e.isReplacingInProcess=!1}})),S=Object(m.wrapWithDefaultPostProcessedSnapshot)(w),T=r.types.compose(l.a,S).named("ImageModel").views(e=>({get realUrl(){const t=new a.a(c.d);return t.pathname=s.a.join(t.pathname,Object(m.ensureExtension)(e.src,e.ext)),t}})).actions(e=>({toggleReflection(){e.reflection.isEnabled=!e.reflection.isEnabled},setReflectionOpacity(t){const n=t>100?100:t;e.reflection.opacity=n},setColorOverlay(t){e.colorOverlayColor=t},updatePaletteIndexes(t,n){0===e.paletteIndexes.length&&1===n&&(e.paletteIndexes[0]=0),e.paletteIndexes[n]=t},resetDefaultColors(){e.defaultColor=Object(r.cast)({})},applyColorTheme(t){e.colorOverlayColor&&h()(e.defaultColor.colorOverlayColor)&&(e.defaultColor.colorOverlayColor=e.colorOverlayColor);const n=Object(m.getThemeColor)(0,e.paletteIndexes,t);n&&(e.colorOverlayColor=n),(h()(e.defaultColor.shadowControls)||h()(e.defaultColor.shadowControls.color))&&(e.defaultColor.shadowControls={color:e.shadowControls.color});const r=Object(m.getThemeColor)(1,e.paletteIndexes,t);r&&(e.shadowControls.color=r)},revertDefaultColors(){var t;h()(e.defaultColor.colorOverlayColor)||(e.colorOverlayColor=e.defaultColor.colorOverlayColor),(null===(t=e.defaultColor.shadowControls)||void 0===t?void 0:t.color)&&(e.shadowControls.color=e.defaultColor.shadowControls.color)},optionsControl(t,n){e[t]=Number(n)},replaceColor(t,n){Object(m.areColorsEqual)(e.colorOverlayColor,t)&&this.setColorOverlay(n)},setPredefinedFilters({name:t,filters:n}){e.filterName=t,e.colorOverlayColor=n.colors[0],e.colorOverlay=n.colorOverlay,e.contrast=n.contrast,e.saturate=n.saturate,e.hue=n.hue,e.brightness=n.brightness,e.blur=n.blur},resetImage(){e.colorOverlayColor=u.a.white,e.colorOverlay=0,e.contrast=0,e.saturate=0,e.hue=0,e.brightness=0,e.blur=0,e.opacity=100,e.filterName="No Filter",e.flipX=!1,e.flipY=!1,e.scale=100,e.forceFilters=!0,e.filterVersion=1},setIsCropWindowShown(t){e.isCropWindowShown=t},cropImage(t,n,r,i){e.isCropped=!0,e.diffWidth=t,e.diffHeight=n,e.adjustmentX=r,e.adjustmentY=i,e.appliedFrame=e.activeFrame},resetImageToOriginalSize(){if(!e.isCropped)return;const t=e.width*e.diffWidth,n=e.height*e.diffHeight,r=e.x-t*e.adjustmentX,i=e.y-n*e.adjustmentY;e.setCoordinates({width:t,height:n,x:r,y:i},{ignorePropLock:!0})},resetCrop(){e.appliedFrame="none",this.resetImageToOriginalSize(),e.isCropped=!1,e.diffWidth=1,e.diffHeight=1,e.adjustmentX=0,e.adjustmentY=0},setActiveFrame(t){e.activeFrame=t,this.setIsCropWindowShown(!0)},updateImage(t){e.src=t.src,e.assetId=t.assetId,e.ext=t.ext,e.name=t.name,e.type=t.type,e.diffWidth=1,e.diffHeight=1,e.isCropped&&(e.adjustmentX=0,e.adjustmentY=0)},setPreviewUrlFromBlob:Object(r.flow)((function*(t){const n=yield Object(m.loadFileOrBlob)(t);e.setPreviewUrl(n.src)})),load:Object(r.flow)((function*(){try{yield Object(m.loadImage)(e.realUrl),e.setPreviewUrl(void 0,!0)}catch(t){const n=e.getAppStore();n.showMessage({text:"Sorry, we could not upload this file. Try saving it in a different format and upload again",level:"error",error:t}),e.remove(),n.deselectObject()}})),saveFilterSnapshot(){e.filterSnapshot=f()(["colorOverlayColor","colorOverlay","contrast","saturate","hue","brightness","blur","opacity"],e)},resetFilterSnapshot(){e.filterSnapshot=null},createBackgroundLessImage:Object(r.flow)((function*(){let t;e.setPreviewUrl(e.fullUrl.toString());try{t=(yield g.b(e)).image_url}catch(e){throw new Error("Cannot remove background from this image")}finally{e.loaded=!0}return t}))}))},function(e,t,n){"use strict";function r(e,t){return e===t?0:e{if(!Object(r.isAlive)(e)||!c()(t)&&!s()(t))return t;const{prefix:n="",suffix:i=""}=e;return`${n}${t}${i}`},h=(e,t)=>{var n,r;const i=null===(n=e.chart)||void 0===n||null===(r=n.chartInstance)||void 0===r?void 0:r.numberFormatter,a=i?i.format(t||0,i.numberFormat).trim():String(t).trim();return d(e,a).trim().length},p=e=>{const t=e.chart;let n=(e.minValue?Number(e.minValue):t.minDataValue)||0,r=(e.maxValue?Number(e.maxValue):t.maxDataValue)||0;!n&&r?n=r:n&&!r&&(r=n);const i=h(e,Object(u.roundToDecimalPlace)(n,2)),a=h(e,Object(u.roundToDecimalPlace)(r,2));return Math.ceil((i+a)/2)},f=(e,t,n,o)=>{if(!t)return"";const{chartType:s,decimalPrecision:l,areFilledAsPercents:c}=Object(a.getSubValues)(e,{isPrimary:o},{chartType:"chartTypes",decimalPrecision:"values.decimalPrecisions",areFilledAsPercents:"values.areFilledAsPercents"});let u=t;if(!c&&n){u+=s===i.b.Polar||e.shouldTransposedData&&e.getIsBarAndNotReflection(s)&&e.getValidChartDataRows(e.notTransposedDataJSON).length>2?".totalPercent":".percent"}const d=(({value:e,object:t,shouldShowPercent:n,decimalPrecision:r,chartType:i})=>{const a=t.values.decimalSeparator;let o;o=n&&!a?0:r>0?r:0;let s="#,###."+"0".repeat(o);t.getIsHorizontalReflectionBar(i)&&(s+="s");return`{${e}.formatNumber('${s}')}${n?"%":""}`})({object:e,chartType:s,decimalPrecision:l,value:u,shouldShowPercent:n});if(!Object(r.isAlive)(e.values))return d;const{prefix:h,suffix:p}=Object(a.getSubValues)(e,{isPrimary:o},{prefix:"values.prefixes",suffix:"values.suffixes"});return`${h}${d}${p}`}},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(7),i=n(477),a=n(377),o=n(331),s=n(642),l=n(8),c=n(19),u=n(4),d=n(11),h=n(13),p=n(2),f=n(86),m=function(e){function t(){var t=e.call(this)||this;return t.className="AxisRendererX",t.minGridDistance=120,t.opposite=!1,t.rotation=0,t.width=Object(c.c)(100),t.labels.template.horizontalCenter="middle",t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.setAxis=function(t){e.prototype.setAxis.call(this,t),t.layout="vertical"},t.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.x=e.pixelX,t.width=e.axisLength}},t.prototype.processRenderer=function(){e.prototype.processRenderer.call(this);var t=this.axis;if(t){t.width instanceof c.a||(t.width=Object(c.c)(100)),h.used(this.line);var n=t.title;n.rotation=0,n.align="center",this.opposite?(this.line.toFront(),n.toBack()):(n.toFront(),this.toBack(),this.line.toBack())}},t.prototype.updateTooltip=function(){if(this.axis){var e=this.line.pixelX,t=this.line.pixelY,n=this.axisLength,r=1e3;this.opposite?this.inside||(t=-1e3,r=1e3):this.inside&&(t=-1e3,r=1e3),this.axis.updateTooltip("vertical",{x:e,y:t,width:n,height:r})}},t.prototype.updateLabelElement=function(e,t,n,r){p.hasValue(r)||(r=e.location),t+=(n-t)*r;var i=this.positionToPoint(t);e.isMeasured=!e.inside;var a,o=0,s=this.gridContainer.maxHeight;this.opposite?(e.inside?(a="top","bottom"==e.valign&&(o=s,a="bottom"),"middle"==e.valign&&(o=s/2,a="middle")):a="bottom",i.y=o):(e.inside?(a="bottom","top"==e.valign&&(o=-s,a="top"),"middle"==e.valign&&(o=-s/2,a="middle")):a="top",i.y+=o),0==e.rotation&&(e.verticalCenter=a),this.positionItem(e,i),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(t.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredWidth-e.pixelPaddingRight-e.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),t.prototype.positionToPoint=function(e,t){return{x:this.positionToCoordinate(e),y:0}},t.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.x,e.y)},t.prototype.getPositionRangePath=function(e,t){var n=u.fitToRange(this.positionToCoordinate(e),0,this.axisLength),r=u.fitToRange(this.positionToCoordinate(t),0,this.axisLength),i=Math.abs(r-n),a=this.getHeight(),o=Math.min(n,r);return d.rectToPath({x:o,y:0,width:i,height:a},!0)},t.prototype.updateBreakElement=function(t){e.prototype.updateBreakElement.call(this,t);var n=t.startLine,r=t.endLine,i=t.fillShape,a=t.startPoint,o=t.endPoint,s=t.pixelMarginLeft,l=this.getHeight()-t.pixelMarginTop-t.pixelMarginBottom;a.x=u.fitToRange(a.x,-1,this.axisLength+1),o.x=u.fitToRange(o.x,-1,this.axisLength+1),a.x==o.x&&(a.x<0||a.x>this.axisLength)?t.fillShape.__disabled=!0:t.fillShape.__disabled=!1,n.y=s,n.width=0,n.height=l,r.y=s,r.width=0,r.height=l,i.height=l,i.width=Math.abs(o.x-a.x),i.y=s,i.x=a.x},t.prototype.updateGridElement=function(e,t,n){t+=(n-t)*e.location;var r=this.positionToPoint(t);e.path=d.moveTo({x:0,y:0})+d.lineTo({x:0,y:this.getHeight()}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},t.prototype.updateTickElement=function(e,t,n){t+=(n-t)*e.location;var r=this.positionToPoint(t),i=e.length;r.y=h.spritePointToSprite({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?i*=e.inside?1:-1:i*=e.inside?-1:1,e.path=d.moveTo({x:0,y:0})+d.lineTo({x:0,y:i}),this.positionItem(e,r),this.toggleVisibility(e,t,0,1)},t.prototype.updateAxisLine=function(){this.line.path=d.moveTo({x:0,y:0})+d.lineTo({x:this.axisLength,y:0})},t.prototype.updateBaseGridElement=function(){e.prototype.updateBaseGridElement.call(this);var t=this.axis,n=this.getHeight(),r=this.axisLength,i=this.baseGrid,a=t.basePoint.x;if(a<-.2||a>r+.2)i.hide(0);else{var o=h.spritePointToSprite({x:0,y:0},this.gridContainer,i.parent).y;i.path=d.moveTo({x:0,y:0})+d.lineTo({x:0,y:n}),i.moveTo({x:a,y:o}),i.show(0)}},t.prototype.createBreakSprites=function(e){e.startLine=new o.a,e.endLine=new o.a;var t=new s.a;t.setWavedSides(!1,!0,!1,!0),e.fillShape=t},t.prototype.toAxisPosition=function(e){var t=e,n=this.axis;if(n){var r=n.relativePositionSprite,i=n.pixelX;if(r?i=h.spritePointToSprite({x:this.pixelX,y:0},this.parent,r).x:r=n.parent,r)return(t-i/r.innerWidth)/(n.axisLength/r.innerWidth)}return e},t.prototype.updateBullet=function(e,t,n){var r=.5;e instanceof a.a&&(r=e.location),t+=(n-t)*r;var i=this.positionToPoint(t);i.y=h.spritePointToSprite({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(e,i),this.toggleVisibility(e,t,0,1)},t}(i.a);l.c.registeredClasses.AxisRendererX=m,f.c.push({relevant:f.b.heightXS,state:function(e,t){if(e instanceof m){var n=e.states.create(t);return n.properties.inside=!0,n.properties.maxLabelPosition=.9,n.properties.minLabelPosition=.1,n}return null}}),f.c.push({relevant:f.b.heightXXS,state:function(e,t){if(e instanceof m){var n=e.states.create(t);return n.properties.disabled=!0,n}return null}})},,function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(7),i=n(205),a=n(33),o=n(148),s=n(11),l=function(e){function t(){var t=e.call(this)||this;return t.className="WavedLine",t.element=t.paper.add("path"),t.waveLength=16,t.waveHeight=4,t.tension=.8,t.pixelPerfect=!1,t.fill=Object(a.c)(),t.applyTheme(),t}return Object(r.c)(t,e),t.prototype.draw=function(){var e={x:this.x1,y:this.y1},t={x:this.x2,y:this.y2};this.path=s.moveTo(e)+Object(o.e)(e,t,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(t.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),t}(i.a)},,function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(0),i=n.n(r),a=n(6),o=n(92),s=n(770),l=n(660),c=n(1021);t.a=Object(a.a)(({object:e,isThumb:t,autoPlay:n=!1})=>{const a=Object(r.useRef)(null),u=()=>{a.current&&(e.poses.forEach((t,n)=>{var r;const i=null===(r=a.current)||void 0===r?void 0:r.querySelector(`.${l.a}${n}`);if(!i)return;const o=i.querySelectorAll("svg").length;o>1&&i.querySelectorAll("svg").forEach((e,t)=>{t+1{e.setContainerRef(a,t)},[]),Object(r.useEffect)(()=>{let r;if(e.isLoading)e.loadAll();else{const{settings:i}=e.getAppStore(),o=()=>{i.needObjectTimeline||e.setStatus("rendered")};setTimeout(()=>{a.current&&(r=new l.b({object:e,autoPlay:n,container:a.current,DOMLoadedCallBack:u,onCompleteLoading:o,isStatic:i.isStaticRender||t}),t||e.setLottieAnimation(r))},100)}return()=>{r&&r.destroy()}},[e.isLoading,e.name]),e.isLoading?i.a.createElement(o.a,{style:{width:e.width||"220px",height:e.height||"220px"}}):i.a.createElement(s.a,{onError:()=>i.a.createElement("p",null,"Something went wrong. Animation data is not correct!!!")},i.a.createElement("div",{className:"lottie-container",ref:a},e.poses.map((t,n)=>i.a.createElement("div",{key:`${e.id}-${n}`,className:`${l.a}${n}`}))),i.a.createElement(c.a,{object:e}),e.isWaitingToPlay&&i.a.createElement(o.a,{style:{width:e.width,height:e.height}}))})},,function(e,t,n){var r=n(49)("filter",n(1281));r.placeholder=n(47),e.exports=r},function(e,t,n){var r=n(598);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n{if("host"===e){const e=n.host.split(".").reverse(),t=n.host.split(".").reverse();return e.every((e,n)=>p(e,t[n]))}return p(n[e],r[e])})}},,function(e,t,n){"use strict";n.d(t,"b",(function(){return T})),n.d(t,"a",(function(){return O}));var r=n(7),i=n(269),a=n(37),o=n(32),s=n(70),l=n(251),c=n(42),u=n(475),d=n(221),h=n(471),p=n(68),f=n(33),m=n(8),g=n(18),y=n(4),v=n(167),b=n(13),x=n(28),_=n(2),w=n(14),S=n(168),T=function(e){function t(){var t=e.call(this)||this;return t.className="SeriesDataItem",t.values.value={},t.values.value={},t.applyTheme(),t}return Object(r.c)(t,e),Object.defineProperty(t.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new s.a,this._disposers.push(new s.b(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),t.prototype.dispose=function(){this.bullets.clear(),e.prototype.dispose.call(this)},Object.defineProperty(t.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),t}(l.a),O=function(e){function t(){var n=e.call(this)||this;if(n._ignoreMinMax=!1,n._showBullets=!0,n.legendSettings=new h.c,n._tmin=new s.a,n._tmax=new s.a,n._smin=new s.a,n._smax=new s.a,n.dataItemsByAxis=new s.a,n.skipFocusThreshold=20,n._itemReaderTextChanged=!1,n.calculatePercent=!1,n.usePercentHack=!0,n.autoDispose=!0,n.simplifiedProcessing=!1,n.constructor===t)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");n.className="Series",n.isMeasured=!1,n.layout="none",n.shouldClone=!1,n.setPropertyValue("hidden",!1),n.axisRanges=new o.b,n.axisRanges.events.on("inserted",n.processAxisRange,n,!1),n.minBulletDistance=0,n.mainContainer=n.createChild(c.a),n.mainContainer.shouldClone=!1,n.mainContainer.mask=n.createChild(a.a),n._disposers.push(n.mainContainer);var r=n.mainContainer.createChild(c.a);return n._shouldBeReady.push(r),r.shouldClone=!1,r.layout="none",r.virtualParent=n,n._disposers.push(r),n.bulletsContainer=r,n.tooltip=new u.a,n.tooltip.virtualParent=n,n._disposers.push(n.tooltip),n.hiddenState.transitionEasing=v.cubicIn,n.dataItem=n.createDataItem(),n._disposers.push(n.dataItem),n.dataItem.component=n,n.role="group",n.applyTheme(),n}return Object(r.c)(t,e),t.prototype.applyTheme=function(){e.prototype.applyTheme.call(this),p.a.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},t.prototype.applyInternalDefaults=function(){e.prototype.applyInternalDefaults.call(this),_.hasValue(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},t.prototype.createDataItem=function(){return new T},Object.defineProperty(t.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),t.prototype.positionBullet=function(e){},t.prototype.processBullet=function(e){var t=this,n=e.newValue;n.isTemplate=!0,this.events.once("datavalidated",(function(e){t.itemsFocusable()&&(n.focusable=!0)})),this.invalidate()},t.prototype.removeBullet=function(e){var t=e.oldValue;this.dataItems.each((function(e){var n=e.bullets.getKey(t.uid);n&&n.dispose()})),this.invalidate()},t.prototype.validateDataItems=function(){e.prototype.validateDataItems.call(this),this.processValues(!1)},t.prototype.getFirstValue=function(e,t){for(var n=t;n>=0;n--){var r=this.dataItems.getIndex(n).getActualWorkingValue(e);if(_.isNumber(r))return r}return null},t.prototype.getAbsoluteFirstValue=function(e){for(var t=0;t0){var m=n.getIndex(p-1);x.each(m.values,(function(e,t){var n=m.getActualWorkingValue(e);_.isNumber(n)&&(u[e]=n)}))}for(var g=function(e){var f=n.getIndex(e);x.each(f.values,(function(e,n){var m=f.getActualWorkingValue(e);if(_.isNumber(m)){_.isNumber(r[e])||(r[e]=0),r[e]++,_.isNumber(i[e])||(i[e]=0),i[e]+=m,_.isNumber(a[e])||(a[e]=0),a[e]+=Math.abs(m),_.isNumber(l[e])||(l[e]=m),c[e]=m,_.isNumber(o[e])?o[e]>m&&(o[e]=m):o[e]=m,_.isNumber(s[e])?s[e]0){t.usePercentHack&&i==n&&(n=r.values[e].value);var o=i/n*100;r.setCalculatedValue(e,o,"percent")}else r.setCalculatedValue(e,0,"percent")}))};for(v=p;v0){var w=n.getIndex(p-1);x.each(w.values,(function(e){var t=w.values[e].value;w.setCalculatedValue(e,t-l[e],"change"),w.setCalculatedValue(e,(t-l[e])/l[e]*100,"changePercent")}))}var S=this.dataItem;x.each(S.values,(function(e){S.setCalculatedValue(e,i[e],"sum"),S.setCalculatedValue(e,a[e],"absoluteSum"),S.setCalculatedValue(e,i[e]/r[e],"average"),S.setCalculatedValue(e,l[e],"open"),S.setCalculatedValue(e,c[e],"close"),S.setCalculatedValue(e,o[e],"low"),S.setCalculatedValue(e,s[e],"high"),S.setCalculatedValue(e,r[e],"count")}))}},t.prototype.validate=function(){b.isIE()&&this.filters.clear(),g.each(this.axisRanges.iterator(),(function(e){e.validate()})),e.prototype.validate.call(this);var t=this.bulletsContainer;if(t.fill=this.fill,t.stroke=this.stroke,t.x=this.pixelX,t.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var n=0;nthis.endIndex;n--){var r;(r=this.dataItems.getIndex(n))&&r.bullets.each((function(e,t){t.__disabled=!0}))}}else this.bulletsContainer.children.each((function(e){e.__disabled=!0}));this.updateTooltipBounds()},t.prototype.updateTooltipBounds=function(){if(this.topParent){var e={x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight};this.tooltip.setBounds(e)}},t.prototype.shouldCreateBullet=function(e,t){return!0},t.prototype.validateDataElement=function(t){var n=this;e.prototype.validateDataElement.call(this,t),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each((function(e){var r=t.bullets.getKey(e.uid);if(n.shouldCreateBullet(t,e)){if(!r){var i=e.propertyFields.disabled,a=t.dataContext;i&&a&&!1===a[i]?(e.applyOnClones=!1,e.disabled=!1,r=e.clone(),e.disabled=!0,e.applyOnClones=!0):r=e.clone(),r.shouldClone=!1,t.addSprite(r),n.visible&&!n.isHiding||r.hide(0)}var o=r.dataItem;if(o!=t){o&&o.bullets.setKey(e.uid,void 0);var s=n.itemReaderText;r instanceof d.a&&(s||(s="{"+r.xField+"}: {"+r.yField+"}"),r.isDynamic&&(t.events.on("workingvaluechanged",r.deepInvalidate,r,!1),n.dataItem.events.on("workingvaluechanged",r.deepInvalidate,r,!1)),r.deepInvalidate()),r.focusable&&(r.events.on("focus",(function(e){r.readerTitle=n.populateString(s,r.dataItem)}),void 0,!1),r.events.on("blur",(function(e){r.readerTitle=""}),void 0,!1)),r.hoverable&&(r.events.on("over",(function(e){r.readerTitle=n.populateString(s,r.dataItem)}),void 0,!1),r.events.on("out",(function(e){r.readerTitle=""}),void 0,!1))}r.parent=n.bulletsContainer,t.bullets.setKey(e.uid,r),r.maxWidth=t.itemWidth,r.maxHeight=t.itemHeight,r.__disabled=!1,n.positionBullet(r)}else r&&(r.__disabled=!0)}))):this.bulletsContainer.visible=!1},t.prototype.handleDataItemWorkingValueChange=function(e,t){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(t.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){this._ignoreMinMax=e,this.invalidateDataItems()},enumerable:!0,configurable:!0}),t.prototype.createMask=function(){},t.prototype.processAxisRange=function(e){this.rangesContainer||(this.rangesContainer=this.createChild(c.a),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var t=e.newValue;t&&(t.contents.parent=this.rangesContainer,t.isRange=!0,t.events.on("valuechanged",this.invalidateDataItems,this,!1))},t.prototype.getAxisField=function(e){},t.prototype.showTooltipAtPosition=function(e,t){},Object.defineProperty(t.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(e){this.setPropertyValue("minBulletDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new o.e(new d.a),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new o.c(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),t.prototype.createLegendMarker=function(e){},Object.defineProperty(t.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(e){this.setPropertyValue("hiddenInLegend",e)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e);var t=this.legendDataItem;t&&(t.component.invalidate(),t.component.invalidateRawData()),this.readerTitle=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"itemReaderText",{get:function(){var e=this._itemReaderText;return e||(this.tooltipText?e=b.plainText(this.tooltipText):this.tooltipHTML&&(e=b.plainText(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",e):e},set:function(e){this._itemReaderText=e,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),t.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(t.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),t.prototype.updateLegendValue=function(e,t){if(this.legendDataItem){var n=this.legendSettings,r=this.legendDataItem,i=r.label,a=r.valueLabel;e&&!e.isDisposed()||t?(a&&(n.itemValueText&&(a.text=n.itemValueText),a.dataItem=e),i&&(n.itemLabelText&&(i.text=n.itemLabelText),i.dataItem=e)):(i&&((n.labelText||null!=n.itemLabelText)&&(i.text=n.labelText),i.dataItem=this.dataItem),a&&((n.valueText||null!=n.itemValueText)&&(a.text=n.valueText),a.dataItem=this.dataItem))}},t.prototype.copyFrom=function(t){this.bullets.copyFrom(t.bullets),this.bulletsContainer.copyFrom(t.bulletsContainer),this.calculatePercent=t.calculatePercent,this.usePercentHack=t.usePercentHack,this.simplifiedProcessing=t.simplifiedProcessing,e.prototype.copyFrom.call(this,t)},t.prototype.raiseCriticalError=function(e){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",e).message,this._chart.modal.closable=!1,p.a.suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),p.a.verbose&&console.log(e)},t.prototype.applyFilters=function(){var t=this;e.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),g.each(this.filters.iterator(),(function(e){t.bulletsContainer.filters.push(e.clone())}))},Object.defineProperty(t.prototype,"heatRules",{get:function(){var e=this;return this._heatRules||(this._heatRules=new o.b,this._heatRules.events.on("inserted",(function(t){var n=t.newValue,r=n.target;if(r){var i=n.dataField;_.hasValue(i)||(i="value");var o=e.dataItem,s=n.property,l=_.toNumber(n.minValue),u=_.toNumber(n.maxValue);_.isNumber(l)||_.isNumber(u)||e.dataItem.events.on("calculatedvaluechanged",(function(t){t.property==i&&g.each(e.dataItems.iterator(),(function(e){var t=!1;w.each(e.sprites,(function(e){if(e.clonedFrom==r){var n=e;n[s]=n[s],t=!0}})),t||w.each(e.sprites,(function(e){e instanceof c.a&&g.each(e.children.iterator(),(function(e){if(e.className==r.className){var t=e;t[s]=t[s]}else e instanceof c.a&&e.deepInvalidate()}))}))}))})),e.dataItems.template.events.on("workingvaluechanged",(function(e){if(e.property==i){var t=e.target,n=!1;w.each(t.sprites,(function(e){if(e.clonedFrom==r){var t=e;t[s]=t[s],n=!0}})),n||w.each(t.sprites,(function(e){e instanceof c.a&&g.each(e.children.iterator(),(function(e){if(e.className==r.className){var t=e;t[s]=t[s]}else e instanceof c.a&&e.deepInvalidate()}))}))}})),r.adapter.add(s,(function(e,t,r){var s=_.toNumber(n.minValue),l=_.toNumber(n.maxValue),c=n.min,u=n.max;if(t instanceof a.a){var d=t.propertyFields[r];if(d&&t.dataItem){var h=t.dataItem.dataContext;if(h&&_.hasValue(h[d]))return e}}var p=t.dataItem;if((_.isNumber(s)||(s=o.values[i].low),_.isNumber(l)||(l=o.values[i].high),p)&&p.values[i]){var m=p.getActualWorkingValue(i);if(_.hasValue(c)&&_.hasValue(u)&&_.isNumber(s)&&_.isNumber(l)&&_.isNumber(m)){var g=void 0;if(g=n.logarithmic?(Math.log(m)*Math.LOG10E-Math.log(s)*Math.LOG10E)/(Math.log(l)*Math.LOG10E-Math.log(s)*Math.LOG10E):(m-s)/(l-s),!_.isNumber(m)||_.isNumber(g)&&Math.abs(g)!=1/0||(g=.5),_.isNumber(c))return c+(u-c)*g;if(c instanceof f.a)return new f.a(S.interpolate(c.rgb,u.rgb,g))}}return e}))}}))),this._heatRules},enumerable:!0,configurable:!0}),t.prototype.processConfig=function(t){var n;if(t){if(_.hasValue(t.bullets)&&_.isArray(t.bullets))for(var r=0,i=t.bullets.length;rthis.end)return n.hide(0),void(this._tooltipPosition=void 0);var r=this.renderer;n.parent||(n.parent=this.tooltipContainer);var i=r.tooltipLocation,a=this.getCellStartPosition(e),o=this.getCellEndPosition(e);if("fixed"==this.tooltipPosition&&(e=a+(o-a)*i),e=y.fitToRange(e,this.start,this.end),this._tooltipPosition!=e){this._tooltipPosition=e;var s=r.tooltipLocation2,l=r.positionToPoint(a,s),c=r.positionToPoint(o,s);this.currentItemStartPoint=l,this.currentItemEndPoint=c,r.fullWidthTooltip&&(n.width=c.x-l.x,n.height=c.y-l.y);var u=r.positionToPoint(e,s),d=v.spritePointToSvg(u,this.renderer.line);n.text=this.getTooltipText(e),n.text&&(n.delayedPointTo(d),n.show())}this.cursorTooltipEnabled&&!this.tooltip.disabled||n.hide(0)}},t.prototype.toAxisPosition=function(e){if(null!=(e=this.renderer.toAxisPosition(e)))return e*=this.end-this.start,e=this.renderer.inversed?this.end-e:this.start+e},t.prototype.toGlobalPosition=function(e){return this.renderer.inversed?e=this.end-e:e-=this.start,e/(this.end-this.start)},t.prototype.getTooltipText=function(e){},t.prototype.updateTooltip=function(e,t){var n=this._tooltip;n&&(n.fixDoc=!1,n.pointerOrientation=e,n.setBounds(v.spriteRectToSvg(t,this.renderer.line)))},t.prototype.roundPosition=function(e,t,n){return e},t.prototype.getCellStartPosition=function(e){return e},t.prototype.getCellEndPosition=function(e){return e},Object.defineProperty(t.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var e=this.createDataItem();e.isRange=!0,e.axisFill=this.renderer.axisFills.template.clone(),e.grid=this.renderer.grid.template.clone(),e.tick=this.renderer.ticks.template.clone(),e.label=this.renderer.labels.template.clone(),e.isTemplate=!0,e.component=this,e.axisFill.disabled=!1,e.tick.disabled=!1,e.grid.disabled=!1,e.label.disabled=!1,this._axisRanges=new h.e(e),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new h.c(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),t.prototype.processAxisRange=function(e){var t=e.newValue;t.component=this,t.isRange=!0},Object.defineProperty(t.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new d.d(this.createAxisBreak(),(function(e,t){return b.order(e.adjustedStartValue,t.adjustedStartValue)})),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new h.c(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),t.prototype.createAxisBreak=function(){return new l.a},Object.defineProperty(t.prototype,"series",{get:function(){return this._series||(this._series=new h.b),this._series},enumerable:!0,configurable:!0}),t.prototype.processSeriesDataItems=function(){},t.prototype.processSeriesDataItem=function(e,t){},t.prototype.postProcessSeriesDataItems=function(e){},t.prototype.postProcessSeriesDataItem=function(e){},t.prototype.updateAxisBySeries=function(){},t.prototype.hideUnusedDataItems=function(){var e=this,t=this._dataItemsIterator;t.createNewItems=!1,g.each(t.iterator(),(function(t){e.validateDataElement(t),t.__disabled=!0})),t.clear(),t.createNewItems=!0},t.prototype.getSeriesDataItem=function(e,t,n){},t.prototype.getAngle=function(e,t,n,r,i){},t.prototype.getX=function(e,t,n,r,i){},t.prototype.getPositionX=function(e,t,n,r,i){},t.prototype.getY=function(e,t,n,r,i){},t.prototype.getPositionY=function(e,t,n,r,i){},Object.defineProperty(t.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),t.prototype.dataChangeUpdate=function(){},t.prototype.seriesDataChangeUpdate=function(e){},t.prototype.adjustDifference=function(e,t){var n=t-e;if(_.isNumber(n))return this._axisBreaks&&g.eachContinue(this._axisBreaks.iterator(),(function(r){var i=r.adjustedStartValue,a=r.adjustedEndValue;if(_.isNumber(i)&&_.isNumber(a)){if(i>t)return!1;if(a>=e&&_.isNumber(i)&&_.isNumber(a)){var o=r.breakSize,s=y.intersection({start:i,end:a},{start:e,end:t});s&&(n-=(s.end-s.start)*(1-o))}return!0}})),n},t.prototype.isInBreak=function(e){if(this._axisBreaks)return g.find(this._axisBreaks.iterator(),(function(t){return e>=t.adjustedStartValue&&e<=t.adjustedEndValue}))},t.prototype.fixAxisBreaks=function(){var e=this;if(this._axisBreaks){var t=this._axisBreaks;if(t.length>0){x.each(g.toArray(t.iterator()),(function(t){var n=y.min(t.startValue,t.endValue),r=y.max(t.startValue,t.endValue);t.adjustedStartValue=n,t.adjustedEndValue=r,e._axisBreaks.update(t)}));var n=t.first,r=Math.min(n.startValue,n.endValue);g.each(t.iterator(),(function(e){var t=e.adjustedStartValue,n=e.adjustedEndValue;t1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])}));e.exports=s},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(89),i=n(63),a=n(51);function o(e,t){Object(a.a)(1,arguments);var n=t||{},o=n.locale,s=o&&o.options&&o.options.weekStartsOn,l=null==s?0:Object(r.a)(s),c=null==n.weekStartsOn?l:Object(r.a)(n.weekStartsOn);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var u=Object(i.default)(e),d=u.getUTCDay(),h=(d{n()},[]),Object(r.useEffect)(()=>(window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}),[]),e}},function(e,t,n){var r=n(49)("isBoolean",n(1641),n(94));r.placeholder=n(47),e.exports=r},,function(e,t,n){var r=n(49)("minBy",n(1177));r.placeholder=n(47),e.exports=r},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"a",(function(){return d}));var r=n(1),i=n(489),a=n(29),o=n.n(a),s=n(3);let l;!function(e){e.normal="normal",e.zigzag="zigzag",e.wave="wave",e.double="double"}(l||(l={}));const c=[{id:"dash-0",strokeDasharray:"0 0"},{id:"dash-1",strokeDasharray:"10 4"},{id:"dash-2",strokeDasharray:"7 6"},{id:"dash-3",strokeDasharray:"3 6"},{id:"dash-4",strokeDasharray:"2 4"}];let u;!function(e){e.square="square",e.round="round"}(u||(u={}));const d=r.types.model("BareCustomLineModel",{type:"customLine",name:"customLine",color:r.types.string,thickness:4,height:40,linePadding:2,style:r.types.optional(r.types.maybeNull(r.types.enumeration([...Object.values(l)])),l.normal),dash:r.types.optional(r.types.maybeNull(r.types.model({id:r.types.string,strokeDasharray:r.types.string})),c[0]),linecap:r.types.optional(r.types.enumeration(Object.values(u)),u.square),endPointLeft:r.types.optional(r.types.enumeration(Object.values(i.b)),i.b.default),endPointRight:r.types.optional(r.types.enumeration(Object.values(i.b)),i.b.default),paletteIndexes:r.types.optional(r.types.array(r.types.number),[0]),defaultColor:r.types.optional(r.types.model({color:r.types.maybe(r.types.string)}),{})}).views(e=>({get isDisableDash(){return Boolean(e.style&&[l.wave,l.zigzag].includes(e.style))},get lineHeight(){return e.thickness+2*e.linePadding},get minHeight(){return Math.max(this.lineHeight,20)},get resizeHandles(){return["ee-handle","ww-handle"]}})).actions(e=>({afterCreate(){if(e.height>e.minHeight){const t=e.height-e.minHeight;e.y=e.y+t/2,e.height=e.minHeight}},updatePaletteIndexes(t,n){e.paletteIndexes.length<=n?e.paletteIndexes=Array(n+1).fill(0).map((r,i)=>o()(e.paletteIndexes[i])?i===n?t:r:e.paletteIndexes[i]):e.paletteIndexes[n]=t},applyColorThemeBySpecificRules(t){if(o()(e.defaultColor.color)&&(e.defaultColor.color=e.color),e.paletteIndexes[0]){const n=Object(s.getThemeColor)(0,e.paletteIndexes,t);if(!n)return;this.setColor(n)}},revertDefaultColors(){e.revertDefaultColorsBySpecificRules&&e.revertDefaultColorsBySpecificRules()},revertDefaultColorsBySpecificRules(){e.defaultColor.color&&this.setColor(e.defaultColor.color)},setColor(t){e.color=t},setThickness(t){e.thickness=t,e.height=Math.max(e.lineHeight,e.minHeight)},setDash(t){e.dash=t},setStyle(t){e.style=t},setLinecap(t){e.linecap=t},setEndpointLeft(t){e.endPointLeft=t},setEndpointRight(t){e.endPointRight=t}}))},,function(e,t,n){var r=n(246),i=n(289);r({target:"Object",stat:!0,forced:!i,sham:!i},{defineProperty:n(291).f})},function(e,t,n){var r,i=n(115),a=n(1159),o=n(1156),s=n(719),l=n(1389),c=n(1150),u=n(958),d=u("IE_PROTO"),h=function(){},p=function(e){return"