!function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=649)}([function(e,t,r){"use strict";e.exports=r(853)},function(e,t,r){e.exports=r(1347)()},function(e,t,r){var n=r(10),o=r(62),i=r(48),a=r(49),s=r(63),c=function(e,t,r){var u,l,f,p,d=e&c.F,h=e&c.G,y=e&c.S,m=e&c.P,b=e&c.B,g=h?n:y?n[t]||(n[t]={}):(n[t]||{}).prototype,v=h?o:o[t]||(o[t]={}),w=v.prototype||(v.prototype={});for(u in h&&(r=t),r)f=((l=!d&&g&&void 0!==g[u])?g:r)[u],p=b&&l?s(f,n):m&&"function"==typeof f?s(Function.call,f):f,g&&a(g,u,f,e&c.U),v[u]!=f&&i(v,u,p),m&&w[u]!=f&&(w[u]=f)};n.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,r){"use strict";var n=r(157);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 i=function(e){return e&&"object"===o(e)?Object.keys(e).map((function(t){return t+"="+encodeURIComponent(e[t])})).join("&"):""},a=function(e,t,r){return function(o,a){return"POST"===r?Object(n.b)(o||!1,"POST","/api/".concat(e,".").concat(t),a):"GET"===r?Object(n.b)(o||!1,"GET","/api/".concat(e,".").concat(t,"?").concat(i(a))):void 0}},s=new Proxy({},{get:function(e,t){if("get"===t)return new Proxy({},{get:function(e,t){return new Proxy({},{get:function(e,r){return a(t,r,"GET")}})}});if("post"===t)return new Proxy({},{get:function(e,t){return new Proxy({},{get:function(e,r){return a(t,r,"POST")}})}});throw new Error("API calls must use explicit method prefix: api.get.".concat(t,"... or api.post.").concat(t,"..."))}});t.a=s},function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return d}));var o=r(508),i=r(509),a=r.n(i);function s(e){return(s="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)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(o,t);var r,n=(r=o,function(){var e,t=p(r);if(f()){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return l(this,e)});function o(){var t;c(this,o);for(var r=arguments.length,i=new Array(r),u=0;u=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["replace","to","innerRef"]);c()(this.context.router,"You should not use outside a "),c()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,a="string"==typeof t?Object(u.b)(t,null,null,i.location):t,s=i.createHref(a);return o.a.createElement("a",l({},n,{onClick:this.handleClick,href:s,ref:r}))},t}(o.a.Component);h.propTypes={onClick:a.a.func,target:a.a.string,replace:a.a.bool,to:a.a.oneOfType([a.a.string,a.a.object]).isRequired,innerRef:a.a.oneOfType([a.a.string,a.a.func])},h.defaultProps={replace:!1},h.contextTypes={router:a.a.shape({history:a.a.shape({push:a.a.func.isRequired,replace:a.a.func.isRequired,createHref:a.a.func.isRequired}).isRequired}).isRequired},t.a=h},function(e,t,r){var n=r(17);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";r.d(t,"b",(function(){return i}));var n=r(1),o=r.n(n),i=function(e){return o.a.oneOfType([o.a.oneOf([!1]),e])};t.a=i},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var s=e[i](a),c=s.value}catch(e){return void r(e)}s.done?t(c):Promise.resolve(c).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function s(e){n(a,o,i,s,c,"next",e)}function c(e){n(a,o,i,s,c,"throw",e)}s(void 0)}))}}function i(e,t){for(var r=0;r1&&void 0!==c[1]&&c[1],n=c.length>2&&void 0!==c[2]?c[2]:"TTS",e.next=4,this.init();case 4:if(o=this.prepareTextForTts(t)){e.next=7;break}return e.abrupt("return",{fromCache:!0});case 7:return e.next=9,this.getFromDB(o);case 9:if(!(i=e.sent)){e.next=18;break}return console.log("🔊 ".concat(n,' CACHE HIT: "').concat(o,'"')),e.next=14,this.updateLastUsed(o);case 14:if(!r){e.next=17;break}return e.next=17,this.playAudioBlob(i.blob);case 17:return e.abrupt("return",{fromCache:!0,blob:i.blob});case 18:return console.log("🔊 ".concat(n,' CACHE MISS: "').concat(o,'"')),e.next=21,fetch("/api/TtsApi.generateSpeech",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({text:o,voice:"shimmer"})});case 21:if((a=e.sent).ok){e.next=24;break}throw new Error("TTS request failed");case 24:return e.next=26,a.blob();case 26:return s=e.sent,e.next=29,this.cacheAudio(o,s);case 29:if(!r){e.next=32;break}return e.next=32,this.playAudioBlob(s);case 32:return e.abrupt("return",{fromCache:!1,blob:s});case 33:case"end":return e.stop()}}),e,this)}))),function(e){return _.apply(this,arguments)})},{key:"speakText",value:(w=o(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCachedOrFetch(t,!0,"TTS");case 2:return r=e.sent,e.abrupt("return",{fromCache:r.fromCache});case 4:case"end":return e.stop()}}),e,this)}))),function(e){return w.apply(this,arguments)})},{key:"cacheAudio",value:(v=o(regeneratorRuntime.mark((function e(t,r){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=r.size;case 1:if(!(this.currentCacheSize+n>this.MAX_CACHE_STORAGE)){e.next=6;break}return e.next=4,this.pruneOldestItem();case 4:e.next=1;break;case 6:return e.next=8,this.saveToDB(t,r,n);case 8:this.currentCacheSize+=n;case 9:case"end":return e.stop()}}),e,this)}))),function(e,t){return v.apply(this,arguments)})},{key:"pruneOldestItem",value:(g=o(regeneratorRuntime.mark((function e(){var t,r,n,o,i=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.db.transaction([this.STORE_NAME],"readwrite"),r=t.objectStore(this.STORE_NAME),n=r.index("lastUsed"),o=n.openCursor(),e.abrupt("return",new Promise((function(e){o.onsuccess=function(t){var r=t.target.result;if(r){var n=r.value;i.currentCacheSize-=n.size,r.delete()}e()},o.onerror=function(){return e()}})));case 5:case"end":return e.stop()}}),e,this)}))),function(){return g.apply(this,arguments)})},{key:"saveToDB",value:(b=o(regeneratorRuntime.mark((function e(t,r,n){var o,i,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:o=this.db.transaction([this.STORE_NAME],"readwrite"),i=o.objectStore(this.STORE_NAME),a={key:t,blob:r,size:n,lastUsed:Date.now()},i.put(a);case 4:case"end":return e.stop()}}),e,this)}))),function(e,t,r){return b.apply(this,arguments)})},{key:"getFromDB",value:(m=o(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=this.db.transaction([this.STORE_NAME],"readonly"),n=r.objectStore(this.STORE_NAME),e.abrupt("return",new Promise((function(e){var r=n.get(t);r.onsuccess=function(){return e(r.result||null)},r.onerror=function(){return e(null)}})));case 3:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"updateLastUsed",value:(y=o(regeneratorRuntime.mark((function e(t){var r,n,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=this.db.transaction([this.STORE_NAME],"readwrite"),n=r.objectStore(this.STORE_NAME),(o=n.get(t)).onsuccess=function(){var e=o.result;e&&(e.lastUsed=Date.now(),n.put(e))};case 4:case"end":return e.stop()}}),e,this)}))),function(e){return y.apply(this,arguments)})},{key:"isCached",value:(h=o(regeneratorRuntime.mark((function e(t){var r,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.init();case 2:if(r=this.prepareTextForTts(t)){e.next=5;break}return e.abrupt("return",!0);case 5:return e.next=7,this.getFromDB(r);case 7:return n=e.sent,e.abrupt("return",!!n);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"clearCache",value:(d=o(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.currentCacheSize=0,this.db&&this.db.transaction([this.STORE_NAME],"readwrite").objectStore(this.STORE_NAME).clear();case 2:case"end":return e.stop()}}),e,this)}))),function(){return d.apply(this,arguments)})},{key:"getCacheStats",value:function(){return{storageSizeMB:(this.currentCacheSize/1024/1024).toFixed(1),maxStorageMB:(this.MAX_CACHE_STORAGE/1024/1024).toFixed(1),storagePercent:(this.currentCacheSize/this.MAX_CACHE_STORAGE*100).toFixed(1)}}},{key:"stripHtml",value:function(e){if(!e)return"";var t=document.createElement("div");return t.innerHTML=e,t.textContent||t.innerText||""}},{key:"hasLetters",value:function(e){return/[a-zA-Z]/.test(e)}},{key:"prepareTextForTts",value:function(e){if(!e)return null;var t=this.stripHtml(e).trim();return this.hasLetters(t)?t:null}},{key:"playAudioBlob",value:(p=o(regeneratorRuntime.mark((function e(t){var r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return r=new Audio(URL.createObjectURL(t)),e.abrupt("return",new Promise((function(e){var t=function(){URL.revokeObjectURL(r.src),r.removeEventListener("ended",n),r.removeEventListener("error",o)},n=function(){t(),e()},o=function(r){console.warn("Audio playback error:",r),t(),e()};r.addEventListener("ended",n),r.addEventListener("error",o),r.play().catch(o)})));case 4:case"end":return e.stop()}}),e)}))),function(e){return p.apply(this,arguments)})},{key:"isVolumeEnabled",value:function(){return"yes"===localStorage.getItem("volume")}},{key:"getAnswerTexts",value:function(e){var t=e.match(this.CLOZE_ANSWER_REGEX);return t?t.map((function(e){var t=e.match(/(.*?)<\/mark>/);return t?t[1]:""})).filter((function(e){return e.length>0})):[]}},{key:"countAnswerBlanks",value:function(e){var t=e.match(this.CLOZE_ANSWER_FULL_REGEX);return t?t.length:0}},{key:"hideUnsolvedAnswers",value:function(e,t){var r=this;if(!t||0===t.length)return e.replace(this.CLOZE_ANSWER_FULL_REGEX,this.CLOZE_PLACEHOLDER);var n=0;return e.replace(this.CLOZE_ANSWER_REGEX,(function(e,o){if(nn){var i=e.slice(n,t.index);i&&r.push(i)}r.push(t[1]),n=t.index+t[0].length}if(n0}))}},{key:"loadNoiseAudio",value:(f=o(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.noiseLoaded){e.next=2;break}return e.abrupt("return");case 2:try{t=r(1356),this.noiseAudio=new Audio(t),this.noiseAudio.preload="auto",this.noiseLoaded=!0}catch(e){console.warn("Could not load noise audio, falling back to TTS placeholders:",e),this.noiseLoaded=!1}case 3:case"end":return e.stop()}}),e,this)}))),function(){return f.apply(this,arguments)})},{key:"playNoise",value:(l=o(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.noiseAudio){e.next=4;break}return e.next=3,this.speakText("...");case 3:return e.abrupt("return");case 4:return e.abrupt("return",new Promise((function(e){t.noiseAudio.currentTime=0;var r=t.noiseAudio.duration||2,n=Math.min(.15,.2*r),o=Math.min(.15,.2*r),i=null,a=function(){i&&clearInterval(i),t.noiseAudio.removeEventListener("ended",s),t.noiseAudio.removeEventListener("error",c)},s=function(){a(),e()},c=function(t){console.error("Noise audio error:",t),a(),e()};t.noiseAudio.addEventListener("ended",s),t.noiseAudio.addEventListener("error",c),t.noiseAudio.volume=0,t.noiseAudio.play().then((function(){var e=0,a=!1;i=setInterval((function(){if((e+=.03)>=.3){e=.3,clearInterval(i);var s=Math.max(n+.05,r-o),c=setInterval((function(){t.noiseAudio.currentTime>=s&&!a&&(a=!0,clearInterval(c),i=setInterval((function(){(e-=.03)<=0&&(e=0,clearInterval(i)),t.noiseAudio.volume=Math.max(0,e)}),1e3*o/10))}),10)}t.noiseAudio.volume=Math.min(.3,e)}),1e3*n/10)})).catch((function(t){console.error("Noise audio play() failed:",t),a(),e()}))})));case 5:case"end":return e.stop()}}),e,this)}))),function(){return l.apply(this,arguments)})},{key:"playSequence",value:(u=o(regeneratorRuntime.mark((function e(t){var r,n,o,i,a,s,c,u,l,f,p=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=p.length>1&&void 0!==p[1]?p[1]:null,e.next=3,this.loadNoiseAudio();case 3:n=this.splitIntoTextParts(t),o=this.getAnswerTexts(t),i=0,a=0;case 7:if(!(a0)){e.next=10;break}if(!((o=r.map((function(e){return s.prepareTextForTts(e)})).filter(Boolean)).length>0)){e.next=10;break}return i=o.map((function(e){return"".concat(e,". ").concat(e,"??? ").concat(e,"!!!")})).join(" "),a="".concat(i," ").concat(n),e.next=9,this.speakText(a);case 9:return e.abrupt("return");case 10:return e.next=12,this.speakText(n);case 12:case"end":return e.stop()}}),e,this)}))),function(e){return c.apply(this,arguments)})},{key:"precacheUpcoming",value:(s=o(regeneratorRuntime.mark((function e(t,r){var n,o,i,a,s,c,u,l,f,p,d,h,y,m,b,g,v,w=this,_=arguments;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=_.length>2&&void 0!==_[2]?_[2]:3,t&&Array.isArray(t)&&this.isVolumeEnabled()){e.next=3;break}return e.abrupt("return");case 3:for(o=[],r>=0&&r0&&(s=o.map((function(e){return e.index+1})).join(", "),console.log("🚀 PRECACHE START: Flashcards ".concat(s))),c=0,u=o;case 8:if(!(c0&&(b=this.stripHtml(p.content.content),(g=m.map((function(e){return w.prepareTextForTts(e)})).filter(Boolean)).length>0&&(v=g.map((function(e){return"".concat(e,". ").concat(e,"??? ").concat(e,"!!!")})).join(" "),y="".concat(v," ").concat(b))):"separateAnswer"===p.type&&(y=this.stripHtml(p.content.content)),!y){e.next=23;break}return e.next=22,this.getCachedOrFetch(y,!1,"TTS PRECACHE");case 22:e.sent;case 23:e.next=28;break;case 25:e.prev=25,e.t0=e.catch(16),console.warn("Failed to precache problem ".concat(d,":"),e.t0);case 28:return e.prev=28,this.precachingSet.delete(h),e.finish(28);case 31:c++,e.next=8;break;case 34:case"end":return e.stop()}}),e,this,[[16,25,28,31]])}))),function(e,t){return s.apply(this,arguments)})}],n&&i(t.prototype,n),a&&i(t,a),e}();a.MAX_CACHE_STORAGE=0,a.currentCacheSize=0,a.DB_NAME="MemcodeTTSCache",a.STORE_NAME="audioCache",a.db=null,a.initialized=!1,a.CLOZE_ANSWER_REGEX=/(.*?)<\/mark>/g,a.CLOZE_ANSWER_FULL_REGEX=/[^<]*<\/mark>/g,a.CLOZE_PLACEHOLDER="... ffffffffff... ",a.noiseAudio=null,a.noiseLoaded=!1,a.precachingSet=new Set,"undefined"!=typeof window&&(window.TtsService=a),t.a=a},function(e,t,r){"use strict";function n(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}r.r(t),r.d(t,"Provider",(function(){return l})),r.d(t,"connectAdvanced",(function(){return g})),r.d(t,"ReactReduxContext",(function(){return c})),r.d(t,"connect",(function(){return $}));var o=r(0),i=r.n(o),a=r(1),s=r.n(a),c=i.a.createContext(null),u=function(e){function t(t){var r;r=e.call(this,t)||this;var n=t.store;return r.state={storeState:n.getState(),store:n},r}n(t,e);var r=t.prototype;return r.componentDidMount=function(){this._isMounted=!0,this.subscribe()},r.componentWillUnmount=function(){this.unsubscribe&&this.unsubscribe(),this._isMounted=!1},r.componentDidUpdate=function(e){this.props.store!==e.store&&(this.unsubscribe&&this.unsubscribe(),this.subscribe())},r.subscribe=function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe((function(){var r=t.getState();e._isMounted&&e.setState((function(e){return e.storeState===r?null:{storeState:r}}))}));var r=t.getState();r!==this.state.storeState&&this.setState({storeState:r})},r.render=function(){var e=this.props.context||c;return i.a.createElement(e.Provider,{value:this.state},this.props.children)},t}(o.Component);u.propTypes={store:s.a.shape({subscribe:s.a.func.isRequired,dispatch:s.a.func.isRequired,getState:s.a.func.isRequired}),context:s.a.object,children:s.a.any};var l=u;function f(){return(f=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}var d=r(135),h=r.n(d),y=r(137),m=r.n(y),b=r(305);function g(e,t){void 0===t&&(t={});var r=t,a=r.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,u=r.methodName,l=void 0===u?"connectAdvanced":u,d=r.renderCountProp,y=void 0===d?void 0:d,g=r.shouldHandleStateChanges,v=void 0===g||g,w=r.storeKey,_=void 0===w?"store":w,E=r.withRef,S=void 0!==E&&E,x=r.forwardRef,O=void 0!==x&&x,A=r.context,k=void 0===A?c:A,C=p(r,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"]);m()(void 0===y,"renderCountProp is removed. render counting is built into the latest React dev tools profiling extension"),m()(!S,"withRef is removed. To access the wrapped instance, use a ref on the connected component");var P="To use a custom Redux store for specific components, create a custom React context with React.createContext(), and pass the context object to React Redux's Provider and specific components like: . You may also pass a {context : MyContext} option to connect";m()("store"===_,"storeKey has been removed and does not do anything. "+P);var T=k;return function(t){var r=t.displayName||t.name||"Component",a=s(r),c=f({},C,{getDisplayName:s,methodName:l,renderCountProp:y,shouldHandleStateChanges:v,storeKey:_,displayName:a,wrappedComponentName:r,WrappedComponent:t}),u=C.pure,p=o.Component;u&&(p=o.PureComponent);var d=function(r){function o(t){var n,o,a,s,c,l,p,d,h,y,b;return n=r.call(this,t)||this,m()(O?!t.wrapperProps[_]:!t[_],"Passing redux store in props has been removed and does not do anything. "+P),n.selectDerivedProps=function(t,r,n,i){if(u&&o===r&&a===t)return s;n===c&&l===i||(c=n,l=i,p=e(n.dispatch,i)),o=r,a=t;var f=p(t,r);return s=f},n.selectChildElement=function(e,t,r){return t===d&&r===h&&b===e||(d=t,h=r,b=e,y=i.a.createElement(e,f({},t,{ref:r}))),y},n.indirectRenderWrappedComponent=n.indirectRenderWrappedComponent.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n(o,r);var s=o.prototype;return s.indirectRenderWrappedComponent=function(e){return this.renderWrappedComponent(e)},s.renderWrappedComponent=function(e){m()(e,'Could not find "store" in the context of "'+a+'". Either wrap the root component in a , or pass a custom React context provider to and the corresponding React context consumer to '+a+" in connect options.");var r,n=e.storeState,o=e.store,i=this.props;O&&(i=this.props.wrapperProps,r=this.props.forwardedRef);var s=this.selectDerivedProps(n,i,o,c);return this.selectChildElement(t,s,r)},s.render=function(){var e=this.props.context&&this.props.context.Consumer&&Object(b.isContextConsumer)(i.a.createElement(this.props.context.Consumer,null))?this.props.context:T;return i.a.createElement(e.Consumer,null,this.indirectRenderWrappedComponent)},o}(p);if(d.WrappedComponent=t,d.displayName=a,O){var g=i.a.forwardRef((function(e,t){return i.a.createElement(d,{wrapperProps:e,forwardedRef:t})}));return g.displayName=a,g.WrappedComponent=t,h()(g,t)}return h()(d,t)}}var v=Object.prototype.hasOwnProperty;function w(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function _(e,t){if(w(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var o=0;o=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function N(e,t){return e===t}var M,D,B,F,L,U,z,W,V,q,H,G,$=(B=(D=void 0===M?{}:M).connectHOC,F=void 0===B?g:B,L=D.mapStateToPropsFactories,U=void 0===L?k:L,z=D.mapDispatchToPropsFactories,W=void 0===z?A:z,V=D.mergePropsFactories,q=void 0===V?P:V,H=D.selectorFactory,G=void 0===H?R:H,function(e,t,r,n){void 0===n&&(n={});var o=n,i=o.pure,a=void 0===i||i,s=o.areStatesEqual,c=void 0===s?N:s,u=o.areOwnPropsEqual,l=void 0===u?_:u,d=o.areStatePropsEqual,h=void 0===d?_:d,y=o.areMergedPropsEqual,m=void 0===y?_:y,b=p(o,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),g=j(e,U,"mapStateToProps"),v=j(t,W,"mapDispatchToProps"),w=j(r,q,"mergeProps");return F(G,f({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:g,initMapDispatchToProps:v,initMergeProps:w,pure:a,areStatesEqual:c,areOwnPropsEqual:l,areStatePropsEqual:h,areMergedPropsEqual:m},b))})},function(e,t,r){"use strict";var n=r(52),o=r.n(n);function i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{n||null==s.return||s.return()}finally{if(o)throw i}}return r}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);re.nextDueDate&&(t=e):t=e)})),t};t.a={isProblemToReview:u,isProblemToLearn:l,getDtosToLearn:function(e){return e.filter((function(e){return e.problems.find(l)}))},countAllProblemsToLearn:function(e){return e.reduce((function(e,t){return e+t.problems.filter(l).length}),0)},getDtosToReview:function(e){return e.filter((function(e){return e.problems.find(u)}))},countAllProblemsToReview:function(e){return e.reduce((function(e,t){return e+t.problems.filter(u).length}),0)},sortByHowMuchToDo:function(e){return e.sort((function(e,t){return e.amountOfProblemsToReview>t.amountOfProblemsToReview?-1:e.amountOfProblemsToReviewt.amountOfProblemsToLearn?-1:e.amountOfProblemsToLearnt.nextDueDate?1:0:e.nextDueDate&&!t.nextDueDate?-1:!e.nextDueDate&&t.nextDueDate?1:0})),e},getNextDueProblem:f,getNextDueDateIn:function(e){var t=f(e);if(!t)return null;if(u(t))return"now";var r=o()(t.nextDueDate).from(o()(),!0),n=s(r.split(" "),2),i=n[0],a=n[1];return"a few seconds"===r?{amount:"",measure:"a few seconds"}:{amount:"a"===i||"an"===i?1:i,measure:a}},nextDueDateInToString:function(e){return null===e?null:"now"===e?"Now":"In ".concat(e.amount," ").concat(e.measure)},dtoToCourseCardProps:function(e){var t=f(e),r=e.problems.filter(l),n=e.problems.filter(u);return function(e){for(var t=1;t=h)return{placement:"bottom",maxHeight:t};if(x>=h&&!a)return i&&Object(c.c)(u,O,160),{placement:"bottom",maxHeight:t};if(!a&&x>=n||a&&E>=n)return i&&Object(c.c)(u,O,160),{placement:"bottom",maxHeight:a?E-v:x-v};if("auto"===o||a){var k=t,C=a?_:S;return C>=n&&(k=Math.min(C-v-s.controlHeight,t)),{placement:"top",maxHeight:k}}if("bottom"===o)return Object(c.m)(u,O),{placement:"bottom",maxHeight:t};break;case"top":if(_>=h)return{placement:"top",maxHeight:t};if(S>=h&&!a)return i&&Object(c.c)(u,A,160),{placement:"top",maxHeight:t};if(!a&&S>=n||a&&_>=n){var P=t;return(!a&&S>=n||a&&_>=n)&&(P=a?_-w:S-w),i&&Object(c.c)(u,A,160),{placement:"top",maxHeight:P}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'+o+'".')}return l}var y=function(e){return"auto"===e?"bottom":e},m=function(e){var t,r=e.placement,n=e.theme,o=n.borderRadius,i=n.spacing,a=n.colors;return(t={label:"menu"})[function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(r)]="100%",t.backgroundColor=a.neutral0,t.borderRadius=o,t.boxShadow="0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)",t.marginBottom=i.menuGutter,t.marginTop=i.menuGutter,t.position="absolute",t.width="100%",t.zIndex=1,t},b=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o=0||(o[r]=e[r]);return o}(e,["size"]);return Object(o.c)("svg",M({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",css:D},r))},F=function(e){return Object(o.c)(B,M({size:20},e),Object(o.c)("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},L=function(e){return Object(o.c)(B,M({size:20},e),Object(o.c)("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},U=function(e){var t=e.isFocused,r=e.theme,n=r.spacing.baseUnit,o=r.colors;return{label:"indicatorContainer",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*n,transition:"color 150ms",":hover":{color:t?o.neutral80:o.neutral40}}},z=U,W=U,V=function(e){var t=e.isDisabled,r=e.theme,n=r.spacing.baseUnit,o=r.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?o.neutral10:o.neutral20,marginBottom:2*n,marginTop:2*n,width:1}},q=Object(o.d)(N()),H=function(e){var t=e.isFocused,r=e.size,n=e.theme,o=n.colors,i=n.spacing.baseUnit;return{label:"loadingIndicator",color:t?o.neutral60:o.neutral20,display:"flex",padding:2*i,transition:"color 150ms",alignSelf:"center",fontSize:r,lineHeight:1,marginRight:r,textAlign:"center",verticalAlign:"middle"}},G=function(e){var t=e.delay,r=e.offset;return Object(o.c)("span",{css:Object(u.a)({animation:q+" 1s ease-in-out "+t+"ms infinite;",backgroundColor:"currentColor",borderRadius:"1em",display:"inline-block",marginLeft:r?"1em":null,height:"1em",verticalAlign:"top",width:"1em"},"")})},$=function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps,a=e.isRtl;return Object(o.c)("div",M({},i,{css:n("loadingIndicator",e),className:r({indicator:!0,"loading-indicator":!0},t)}),Object(o.c)(G,{delay:0,offset:a}),Object(o.c)(G,{delay:160,offset:!0}),Object(o.c)(G,{delay:320,offset:!a}))};function Y(){return(Y=Object.assign||function(e){for(var t=1;t=0||(o[r]=e[r]);return o}(e,["className","cx","getStyles","theme","selectProps"]));return Object(o.c)("div",K({css:n("groupHeading",K({theme:i},a)),className:r({"group-heading":!0},t)},a))},IndicatorsContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles;return Object(o.c)("div",{css:i("indicatorsContainer",e),className:n({indicators:!0},r)},t)},IndicatorSeparator:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerProps;return Object(o.c)("span",M({},i,{css:n("indicatorSeparator",e),className:r({"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,r=e.cx,n=e.getStyles,i=e.innerRef,a=e.isHidden,s=e.isDisabled,c=e.theme,u=(e.selectProps,function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return Object(o.c)("div",{css:n("input",J({theme:c},u))},Object(o.c)(f.a,J({className:r({input:!0},t),inputRef:i,inputStyle:te(a),disabled:s},u)))},LoadingIndicator:$,Menu:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,a=e.innerRef,s=e.innerProps;return Object(o.c)("div",p({css:i("menu",e),className:n({menu:!0},r)},s,{ref:a}),t)},MenuList:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,a=e.isMulti,s=e.innerRef;return Object(o.c)("div",{css:i("menuList",e),className:n({"menu-list":!0,"menu-list--is-multi":a},r),ref:s},t)},MenuPortal:O,LoadingMessage:S,NoOptionsMessage:E,MultiValue:ue,MultiValueContainer:se,MultiValueLabel:ce,MultiValueRemove:function(e){var t=e.children,r=e.innerProps;return Object(o.c)("div",r,t||Object(o.c)(F,{size:14}))},Option:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,a=e.isDisabled,s=e.isFocused,c=e.isSelected,u=e.innerRef,l=e.innerProps;return Object(o.c)("div",le({css:i("option",e),className:n({option:!0,"option--is-disabled":a,"option--is-focused":s,"option--is-selected":c},r),ref:u},l),t)},Placeholder:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,a=e.innerProps;return Object(o.c)("div",pe({css:i("placeholder",e),className:n({placeholder:!0},r)},a),t)},SelectContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,a=e.innerProps,s=e.isDisabled,c=e.isRtl;return Object(o.c)("div",T({css:i("container",e),className:n({"--is-disabled":s,"--is-rtl":c},r)},a),t)},SingleValue:function(e){var t=e.children,r=e.className,n=e.cx,i=e.getStyles,a=e.isDisabled,s=e.innerProps;return Object(o.c)("div",he({css:i("singleValue",e),className:n({"single-value":!0,"single-value--is-disabled":a},r)},s),t)},ValueContainer:function(e){var t=e.children,r=e.className,n=e.cx,i=e.isMulti,a=e.getStyles,s=e.hasValue;return Object(o.c)("div",{css:a("valueContainer",e),className:n({"value-container":!0,"value-container--is-multi":i,"value-container--has-value":s},r)},t)}},ge=function(e){return me({},be,e.components)}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new n},a=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,s=r(21)(),c=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":n,"%TypeErrorPrototype%":n.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=r(6).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return p(e,d,(function(e,r,n,o){t[t.length]=n?p(o,h,"$1"):r||e})),t},m=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){"use strict";var n=r(52),o=r.n(n),i=function(e){return e>=4},a=function(e){return Math.max(e,1.3)},s=function(e){return Math.min(e,300)},c=function(e,t,r){var n=a(e+-.8+.28*r+-.02*Math.pow(r,2)),o=i(r)?t+1:0;return{easiness:n,consecutiveCorrectAnswers:o,msToNextReview:864e5*s(i(r)?.2+Math.pow(n,2.2)*Math.pow(o-1,2.2)*.2:.2)}},u=function(){return{easiness:2.5,consecutiveCorrectAnswers:0}},l=r(3);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:g,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case m:return p({},e,{speCategories:t.spe});case"".concat(h,".SET"):return t.payload;case"SET_SPE_GET_COURSE":return p({},e,{speCourseForActions:t.payload});case"RESET_SPE_COURSES":return p({},e,{speCourses:{}});case y:return"success"===t.spe.status?p({},e,{speCourses:{status:"success"},courses:t.spe.payload,coursesAlreadyFetched:!0}):p({},e,{speCourses:{status:"request"}});case"".concat(h,".START_LEARNING_COURSE"):var r=JSON.parse(JSON.stringify(e)),n=t.payload.currentUser,i=t.payload.courseUserIsLearning;return r.speCourseForActions.payload.learners.push(n),r.speCourseForActions.payload.courseUserIsLearning=i,r;case"".concat(h,".STOP_LEARNING_COURSE"):var a=JSON.parse(JSON.stringify(e)),s=t.payload.courseUserIsLearning,l=t.payload.currentUser,f=e.courses.findIndex((function(e){return e.course.id===s.courseId}));return a.courses.splice(f,1),a.speCourseForActions.payload.courseUserIsLearning=s,a.speCourseForActions.payload.learners=a.speCourseForActions.payload.learners.filter((function(e){return e.id!==l.id})),a;case"".concat(h,".RESUME_LEARNING_COURSE"):var d=JSON.parse(JSON.stringify(e)),v=t.payload.courseUserIsLearning,w=t.payload.currentUser;return d.speCourseForActions.payload.courseUserIsLearning=v,d.speCourseForActions.payload.learners.push(w),d;case"".concat(h,".CREATE_PROBLEM"):var _=JSON.parse(JSON.stringify(e)),E=t.payload.courseId,S=t.payload.problemId,x=_.courses.findIndex((function(e){return e.course.id===E}));if(_.speCourseForActions.payload.amountOfProblems+=1,-1===x)return _;var O={id:S,_learned:!1};return _.courses[x].problems.push(O),_;case"".concat(h,".DELETE_PROBLEM"):var A=JSON.parse(JSON.stringify(e)),k=t.payload.courseId,C=t.payload.problemId;A.speCourseForActions.payload.amountOfProblems-=1;var P=e.courses.findIndex((function(e){return e.course.id===k}));if(-1===P)return A;var T=A.courses[P].problems,I=T.filter((function(e){return e.id!==C}));return A.courses[P].problems=I,A;case"".concat(h,".LEARN_PROBLEM"):var R=t.payload.courseId,j=t.payload.problemId,N=b(e,R,j,(function(e){return{id:e.id,_learned:!0,ifIgnored:!1,nextDueDate:o()().format(),easiness:u().easiness,consecutiveCorrectAnswers:u().consecutiveCorrectAnswers}}));return N;case"".concat(h,".IGNORE_PROBLEM"):var M=t.payload.courseId,D=t.payload.problemId,B=b(e,M,D,(function(e){return{id:e.id,_learned:!0,ifIgnored:!0,nextDueDate:o()().format(),easiness:u().easiness,consecutiveCorrectAnswers:u().consecutiveCorrectAnswers}}));return B;case"".concat(h,".UNLEARN_UNIGNORE_PROBLEM"):var F=t.payload.courseId,L=t.payload.problemId,U=b(e,F,L,(function(e){return{id:e.id,_learned:!1}}));return U;case"".concat(h,".REVIEW_PROBLEM"):var z=t.payload.courseId,W=t.payload.problemId,V=t.payload.score,q=b(e,z,W,(function(e){var t=c(e.easiness,e.consecutiveCorrectAnswers,V);return{id:e.id,_learned:!0,ifIgnored:!1,nextDueDate:o()().add(t.msToNextReview,"ms").format(),easiness:t.easiness,consecutiveCorrectAnswers:t.consecutiveCorrectAnswers}}));return q;default:return e}},getActions:function(e,t){return{apiGetCourses:function(){l.a.get.CourseApi.getMyEverything((function(t){return e({type:y,spe:t})}),{}).then((function(){setTimeout((function(){e({type:"RESET_SPE_COURSES"})}),200)}))},apiGetCategories:function(){l.a.get.CourseCategoryApi.getAll((function(t){return e({type:m,spe:t})}),{})},apiGetCourseForActions:function(r){var n=t().global.My.speCourseForActions;"success"===n.status&&n.payload.course.id===r||l.a.get.PageApi.getForCourseActions((function(t){return e({type:"SET_SPE_GET_COURSE",payload:t})}),{courseId:r})},startLearningCourse:function(t,r){e({type:"".concat(h,".START_LEARNING_COURSE"),payload:{courseUserIsLearning:t,currentUser:r}})},stopLearningCourse:function(t,r){e({type:"".concat(h,".STOP_LEARNING_COURSE"),payload:{courseUserIsLearning:t,currentUser:r}})},resumeLearningCourse:function(t,r){e({type:"".concat(h,".RESUME_LEARNING_COURSE"),payload:{courseUserIsLearning:t,currentUser:r}})},setSpeCourseForActions:function(t){e({type:"SET_SPE_GET_COURSE",payload:t})},reviewProblem:function(t,r,n){e({type:"".concat(h,".REVIEW_PROBLEM"),payload:{courseId:t,problemId:r,score:n}})},createProblem:function(t,r){e({type:"".concat(h,".CREATE_PROBLEM"),payload:{courseId:t,problemId:r}})},deleteProblem:function(t,r){e({type:"".concat(h,".DELETE_PROBLEM"),payload:{courseId:t,problemId:r}})},learnProblem:function(t,r){e({type:"".concat(h,".LEARN_PROBLEM"),payload:{courseId:t,problemId:r}})},ignoreProblem:function(t,r){e({type:"".concat(h,".IGNORE_PROBLEM"),payload:{courseId:t,problemId:r}})},unlearnUnignoreProblem:function(t,r){e({type:"".concat(h,".UNLEARN_UNIGNORE_PROBLEM"),payload:{courseId:t,problemId:r}})}}},selectors:{}}},function(e,t,r){"use strict";(function(e,n,o){var i,a,s,c=r(9),u=r(18),l=r(116),f=r(494);r(1370);function p(e){return(p="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)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var r=0;re.length)&&(t=e.length);for(var r=0,n=new Array(t);r0&&void 0!==arguments[0]?arguments[0]:f,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:var r=t.payload,n=r.key,o=r.value;return a({},e,s({},n,o));default:return e}},getActions:function e(t){return{updateSetting:function(e,r){var n=r;"pinnedCourseIds"===e&&(n=JSON.stringify(r)),localStorage.setItem(e,n),l[e]&&l[e](r),t({type:u,payload:{key:e,value:r}})},toggleSetting:function(r,n){e(t).updateSetting(r,!n)},addPinnedCourse:function(e,r){var o=Array.isArray(r)?r:[],i=[].concat(n(o),[e]);localStorage.setItem("pinnedCourseIds",JSON.stringify(i)),t({type:u,payload:{key:"pinnedCourseIds",value:i}})},removePinnedCourse:function(e,r){var n=(Array.isArray(r)?r:[]).filter((function(t){return t!==e}));localStorage.setItem("pinnedCourseIds",JSON.stringify(n)),t({type:u,payload:{key:"pinnedCourseIds",value:n}})}}},selectors:{},initializeSideEffects:function(e){Object.keys(l).forEach((function(t){void 0!==e[t]&&l[t](e[t])}))}}},function(e,t,r){"use strict";function n(e,t){if(e.length!==t.length)return!1;for(var r=0;r or withRouter() outside a ");var u=t.route,l=(n||u.location).pathname;return Object(f.a)(l,{path:o,strict:i,exact:s,sensitive:c},u.match)},t.prototype.componentWillMount=function(){o()(!(this.props.component&&this.props.render),"You should not use and in the same route; will be ignored"),o()(!(this.props.component&&this.props.children&&!y(this.props.children)),"You should not use and in the same route; will be ignored"),o()(!(this.props.render&&this.props.children&&!y(this.props.children)),"You should not use and in the same route; will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){o()(!(e.location&&!this.props.location),' elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),o()(!(!e.location&&this.props.location),' elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,r=t.children,n=t.component,o=t.render,i=this.context.router,a=i.history,s=i.route,u=i.staticContext,l={match:e,location:this.props.location||s.location,history:a,staticContext:u};return n?e?c.a.createElement(n,l):null:o?e?o(l):null:"function"==typeof r?r(l):r&&!y(r)?c.a.Children.only(r):null},t}(c.a.Component);m.propTypes={computedMatch:l.a.object,path:l.a.string,exact:l.a.bool,strict:l.a.bool,sensitive:l.a.bool,component:l.a.func,render:l.a.func,children:l.a.oneOfType([l.a.func,l.a.node]),location:l.a.object},m.contextTypes={router:l.a.shape({history:l.a.object.isRequired,route:l.a.object.isRequired,staticContext:l.a.object})},m.childContextTypes={router:l.a.object.isRequired},t.a=m},function(e,t,r){var n=r(140)("wks"),o=r(103),i=r(10).Symbol,a="function"==typeof i;(e.exports=function(e){return n[e]||(n[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=n},function(e,t,r){"use strict";var n=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new n},a=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,s=r(21)(),c=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":n,"%TypeErrorPrototype%":n.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=r(6).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return p(e,d,(function(e,r,n,o){t[t.length]=n?p(o,h,"$1"):r||e})),t},m=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t,r){"use strict";var n=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new n},a=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,s=r(21)(),c=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":n,"%TypeErrorPrototype%":n.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=r(6).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return p(e,d,(function(e,r,n,o){t[t.length]=n?p(o,h,"$1"):r||e})),t},m=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t,r){var n=r(65),o=Math.min;e.exports=function(e){return e>0?o(n(e),9007199254740991):0}},,function(e,t,r){"use strict";var n=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new n},a=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,s=r(21)(),c=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":n,"%TypeErrorPrototype%":n.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=r(6).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return p(e,d,(function(e,r,n,o){t[t.length]=n?p(o,h,"$1"):r||e})),t},m=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t,r){"use strict";var n=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new n},a=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,s=r(21)(),c=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":n,"%TypeErrorPrototype%":n.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=r(6).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return p(e,d,(function(e,r,n,o){t[t.length]=n?p(o,h,"$1"):r||e})),t},m=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t,r){"use strict";var n=r(0),o=r.n(n),i=r(1),a=r.n(i),s=r(306),c=r(513),u=r.n(c);function l(e){return(l="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)}function f(){return(f=Object.assign||function(e){for(var t=1;t-1}function u(e){return c(e)?window.pageYOffset:e.scrollTop}function l(e,t){c(e)?window.scrollTo(0,t):e.scrollTop=t}function f(e){var t=getComputedStyle(e),r="absolute"===t.position,n=/(auto|scroll)/,o=document.documentElement;if("fixed"===t.position)return o;for(var i=e;i=i.parentElement;)if(t=getComputedStyle(i),(!r||"static"!==t.position)&&n.test(t.overflow+t.overflowY+t.overflowX))return i;return o}function p(e,t,r,o){void 0===r&&(r=200),void 0===o&&(o=n);var i=u(e),a=t-i,s=0;!function t(){var n,c=a*((n=(n=s+=10)/r-1)*n*n+1)+i;l(e,c),sr.bottom?l(e,Math.min(t.offsetTop+t.clientHeight-e.offsetHeight+o,e.scrollHeight)):n.top-oArray.prototype.slice.call(e));let i=!1,a=[];return function(...r){a=o(r),i||(i=!0,n.call(window,()=>{i=!1,e.apply(t,a)}))}}const i=e=>"start"===e?"left":"end"===e?"right":"center",a=(e,t,r)=>"start"===e?t:"end"===e?r:(t+r)/2;function s(){}const c=function(){let e=0;return function(){return e++}}();function u(e){return null==e}function l(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function f(e){return null!==e&&"[object Object]"===Object.prototype.toString.call(e)}const p=e=>("number"==typeof e||e instanceof Number)&&isFinite(+e);function d(e,t){return p(e)?e:t}function h(e,t){return void 0===e?t:e}const y=(e,t)=>"string"==typeof e&&e.endsWith("%")?parseFloat(e)/100*t:+e;function m(e,t,r){if(e&&"function"==typeof e.call)return e.apply(r,t)}function b(e,t,r,n){let o,i,a;if(l(e))if(i=e.length,n)for(o=i-1;o>=0;o--)t.call(r,e[o],o);else for(o=0;or;)e=e[t.slice(r,n)],r=n+1,n=O(t,r);return e}function k(e){return e.charAt(0).toUpperCase()+e.slice(1)}const C=e=>void 0!==e,P=e=>"function"==typeof e,T=(e,t)=>{if(e.size!==t.size)return!1;for(const r of e)if(!t.has(r))return!1;return!0};const I=Math.PI,R=2*I,j=R+I,N=Number.POSITIVE_INFINITY,M=I/180,D=I/2,B=I/4,F=2*I/3,L=Math.log10,U=Math.sign;function z(e){const t=Math.round(e);e=V(e,t,e/1e3)?t:e;const r=Math.pow(10,Math.floor(L(e))),n=e/r;return(n<=1?1:n<=2?2:n<=5?5:10)*r}function W(e){return!isNaN(parseFloat(e))&&isFinite(e)}function V(e,t,r){return Math.abs(e-t)c&&u=Math.min(t,r)-n&&e<=Math.max(t,r)+n}const te=e=>0===e||1===e,re=(e,t,r)=>-Math.pow(2,10*(e-=1))*Math.sin((e-t)*R/r),ne=(e,t,r)=>Math.pow(2,-10*e)*Math.sin((e-t)*R/r)+1,oe={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>1-Math.cos(e*D),easeOutSine:e=>Math.sin(e*D),easeInOutSine:e=>-.5*(Math.cos(I*e)-1),easeInExpo:e=>0===e?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>te(e)?e:e<.5?.5*Math.pow(2,10*(2*e-1)):.5*(2-Math.pow(2,-10*(2*e-1))),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>te(e)?e:re(e,.075,.3),easeOutElastic:e=>te(e)?e:ne(e,.075,.3),easeInOutElastic(e){const t=.1125;return te(e)?e:e<.5?.5*re(2*e,t,.45):.5+.5*ne(2*e-1,t,.45)},easeInBack(e){const t=1.70158;return e*e*((t+1)*e-t)},easeOutBack(e){const t=1.70158;return(e-=1)*e*((t+1)*e+t)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?e*e*((1+(t*=1.525))*e-t)*.5:.5*((e-=2)*e*((1+(t*=1.525))*e+t)+2)},easeInBounce:e=>1-oe.easeOutBounce(1-e),easeOutBounce(e){const t=7.5625,r=2.75;return e<1/r?t*e*e:e<2/r?t*(e-=1.5/r)*e+.75:e<2.5/r?t*(e-=2.25/r)*e+.9375:t*(e-=2.625/r)*e+.984375},easeInOutBounce:e=>e<.5?.5*oe.easeInBounce(2*e):.5*oe.easeOutBounce(2*e-1)+.5}; /*! * @kurkle/color v0.2.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License */ function ie(e){return e+.5|0}const ae=(e,t,r)=>Math.max(Math.min(e,r),t);function se(e){return ae(ie(2.55*e),0,255)}function ce(e){return ae(ie(255*e),0,255)}function ue(e){return ae(ie(e/2.55)/100,0,1)}function le(e){return ae(ie(100*e),0,100)}const fe={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},pe=[..."0123456789ABCDEF"],de=e=>pe[15&e],he=e=>pe[(240&e)>>4]+pe[15&e],ye=e=>(240&e)>>4==(15&e);function me(e){var t=(e=>ye(e.r)&&ye(e.g)&&ye(e.b)&&ye(e.a))(e)?de:he;return e?"#"+t(e.r)+t(e.g)+t(e.b)+((e,t)=>e<255?t(e):"")(e.a,t):void 0}const be=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function ge(e,t,r){const n=t*Math.min(r,1-r),o=(t,o=(t+e/30)%12)=>r-n*Math.max(Math.min(o-3,9-o,1),-1);return[o(0),o(8),o(4)]}function ve(e,t,r){const n=(n,o=(n+e/60)%6)=>r-r*t*Math.max(Math.min(o,4-o,1),0);return[n(5),n(3),n(1)]}function we(e,t,r){const n=ge(e,1,.5);let o;for(t+r>1&&(o=1/(t+r),t*=o,r*=o),o=0;o<3;o++)n[o]*=1-t-r,n[o]+=t;return n}function _e(e){const t=e.r/255,r=e.g/255,n=e.b/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=(o+i)/2;let s,c,u;return o!==i&&(u=o-i,c=a>.5?u/(2-o-i):u/(o+i),s=function(e,t,r,n,o){return e===o?(t-r)/n+(t>16&255,i>>8&255,255&i]}return e}(),Ce.transparent=[0,0,0,0]);const t=Ce[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}const Te=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;const Ie=e=>e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055,Re=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function je(e,t,r){if(e){let n=_e(e);n[t]=Math.max(0,Math.min(n[t]+n[t]*r,0===t?360:1)),n=Se(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function Ne(e,t){return e?Object.assign(t||{},e):e}function Me(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=ce(e[3]))):(t=Ne(e,{r:0,g:0,b:0,a:1})).a=ce(t.a),t}function De(e){return"r"===e.charAt(0)?function(e){const t=Te.exec(e);let r,n,o,i=255;if(t){if(t[7]!==r){const e=+t[7];i=t[8]?se(e):ae(255*e,0,255)}return r=+t[1],n=+t[3],o=+t[5],r=255&(t[2]?se(r):ae(r,0,255)),n=255&(t[4]?se(n):ae(n,0,255)),o=255&(t[6]?se(o):ae(o,0,255)),{r:r,g:n,b:o,a:i}}}(e):Oe(e)}class Be{constructor(e){if(e instanceof Be)return e;const t=typeof e;let r;var n,o,i;"object"===t?r=Me(e):"string"===t&&(i=(n=e).length,"#"===n[0]&&(4===i||5===i?o={r:255&17*fe[n[1]],g:255&17*fe[n[2]],b:255&17*fe[n[3]],a:5===i?17*fe[n[4]]:255}:7!==i&&9!==i||(o={r:fe[n[1]]<<4|fe[n[2]],g:fe[n[3]]<<4|fe[n[4]],b:fe[n[5]]<<4|fe[n[6]],a:9===i?fe[n[7]]<<4|fe[n[8]]:255})),r=o||Pe(e)||De(e)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var e=Ne(this._rgb);return e&&(e.a=ue(e.a)),e}set rgb(e){this._rgb=Me(e)}rgbString(){return this._valid?(e=this._rgb)&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${ue(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`):void 0;var e}hexString(){return this._valid?me(this._rgb):void 0}hslString(){return this._valid?function(e){if(!e)return;const t=_e(e),r=t[0],n=le(t[1]),o=le(t[2]);return e.a<255?`hsla(${r}, ${n}%, ${o}%, ${ue(e.a)})`:`hsl(${r}, ${n}%, ${o}%)`}(this._rgb):void 0}mix(e,t){if(e){const r=this.rgb,n=e.rgb;let o;const i=t===o?.5:t,a=2*i-1,s=r.a-n.a,c=((a*s==-1?a:(a+s)/(1+a*s))+1)/2;o=1-c,r.r=255&c*r.r+o*n.r+.5,r.g=255&c*r.g+o*n.g+.5,r.b=255&c*r.b+o*n.b+.5,r.a=i*r.a+(1-i)*n.a,this.rgb=r}return this}interpolate(e,t){return e&&(this._rgb=function(e,t,r){const n=Re(ue(e.r)),o=Re(ue(e.g)),i=Re(ue(e.b));return{r:ce(Ie(n+r*(Re(ue(t.r))-n))),g:ce(Ie(o+r*(Re(ue(t.g))-o))),b:ce(Ie(i+r*(Re(ue(t.b))-i))),a:e.a+r*(t.a-e.a)}}(this._rgb,e._rgb,t)),this}clone(){return new Be(this.rgb)}alpha(e){return this._rgb.a=ce(e),this}clearer(e){return this._rgb.a*=1-e,this}greyscale(){const e=this._rgb,t=ie(.3*e.r+.59*e.g+.11*e.b);return e.r=e.g=e.b=t,this}opaquer(e){return this._rgb.a*=1+e,this}negate(){const e=this._rgb;return e.r=255-e.r,e.g=255-e.g,e.b=255-e.b,this}lighten(e){return je(this._rgb,2,e),this}darken(e){return je(this._rgb,2,-e),this}saturate(e){return je(this._rgb,1,e),this}desaturate(e){return je(this._rgb,1,-e),this}rotate(e){return function(e,t){var r=_e(e);r[0]=xe(r[0]+t),r=Se(r),e.r=r[0],e.g=r[1],e.b=r[2]}(this._rgb,e),this}}function Fe(e){return new Be(e)}function Le(e){if(e&&"object"==typeof e){const t=e.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function Ue(e){return Le(e)?e:Fe(e)}function ze(e){return Le(e)?e:Fe(e).saturate(.5).darken(.1).hexString()}const We=Object.create(null),Ve=Object.create(null);function qe(e,t){if(!t)return e;const r=t.split(".");for(let t=0,n=r.length;te.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(e,t)=>ze(t.backgroundColor),this.hoverBorderColor=(e,t)=>ze(t.borderColor),this.hoverColor=(e,t)=>ze(t.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(e)}set(e,t){return He(this,e,t)}get(e){return qe(this,e)}describe(e,t){return He(Ve,e,t)}override(e,t){return He(We,e,t)}route(e,t,r,n){const o=qe(this,e),i=qe(this,r),a="_"+t;Object.defineProperties(o,{[a]:{value:o[t],writable:!0},[t]:{enumerable:!0,get(){const e=this[a],t=i[n];return f(e)?Object.assign({},t,e):h(e,t)},set(e){this[a]=e}}})}}({_scriptable:e=>!e.startsWith("on"),_indexable:e=>"events"!==e,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function $e(e,t,r,n,o){let i=t[o];return i||(i=t[o]=e.measureText(o).width,r.push(o)),i>n&&(n=i),n}function Ye(e,t,r,n){let o=(n=n||{}).data=n.data||{},i=n.garbageCollect=n.garbageCollect||[];n.font!==t&&(o=n.data={},i=n.garbageCollect=[],n.font=t),e.save(),e.font=t;let a=0;const s=r.length;let c,u,f,p,d;for(c=0;cr.length){for(c=0;c0&&e.stroke()}}function Qe(e,t,r){return r=r||.5,!t||e&&e.x>t.left-r&&e.xt.top-r&&e.y0&&""!==i.strokeColor;let c,f;for(e.save(),e.font=o.string,function(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]);u(t.rotation)||e.rotate(t.rotation);t.color&&(e.fillStyle=t.color);t.textAlign&&(e.textAlign=t.textAlign);t.textBaseline&&(e.textBaseline=t.textBaseline)}(e,i),c=0;ch(e[r],e[t[r]]):t=>e[t]:()=>e;for(const e of o)r[e]=+i(e)||0;return r}function lt(e){return ut(e,{top:"y",right:"x",bottom:"y",left:"x"})}function ft(e){return ut(e,["topLeft","topRight","bottomLeft","bottomRight"])}function pt(e){const t=lt(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function dt(e,t){e=e||{},t=t||Ge.font;let r=h(e.size,t.size);"string"==typeof r&&(r=parseInt(r,10));let n=h(e.style,t.style);n&&!(""+n).match(st)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const o={family:h(e.family,t.family),lineHeight:ct(h(e.lineHeight,t.lineHeight),r),size:r,style:n,weight:h(e.weight,t.weight),string:""};return o.string=function(e){return!e||u(e.size)||u(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}(o),o}function ht(e,t,r,n){let o,i,a,s=!0;for(o=0,i=e.length;oe[r]1;)n=i+o>>1,r(n)?i=n:o=n;return{lo:i,hi:o}}const bt=(e,t,r)=>mt(e,r,n=>e[n][t]mt(e,r,n=>e[n][t]>=r);const vt=["push","pop","shift","splice","unshift"];function wt(e,t){const r=e._chartjs;if(!r)return;const n=r.listeners,o=n.indexOf(t);-1!==o&&n.splice(o,1),n.length>0||(vt.forEach(t=>{delete e[t]}),delete e._chartjs)}function _t(e){const t=new Set;let r,n;for(r=0,n=e.length;re[0])){C(n)||(n=jt("_fallback",e));const i={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:n,_getTarget:o,override:o=>Et([o,...e],t,r,n)};return new Proxy(i,{deleteProperty:(t,r)=>(delete t[r],delete t._keys,delete e[0][r],!0),get:(r,n)=>kt(r,n,()=>function(e,t,r,n){let o;for(const i of t)if(o=jt(Ot(i,e),r),C(o))return At(e,o)?It(r,n,e,o):o}(n,t,e,r)),getOwnPropertyDescriptor:(e,t)=>Reflect.getOwnPropertyDescriptor(e._scopes[0],t),getPrototypeOf:()=>Reflect.getPrototypeOf(e[0]),has:(e,t)=>Nt(e).includes(t),ownKeys:e=>Nt(e),set(e,t,r){const n=e._storage||(e._storage=o());return e[t]=n[t]=r,delete e._keys,!0}})}function St(e,t,r,n){const o={_cacheable:!1,_proxy:e,_context:t,_subProxy:r,_stack:new Set,_descriptors:xt(e,n),setContext:t=>St(e,t,r,n),override:o=>St(e.override(o),t,r,n)};return new Proxy(o,{deleteProperty:(t,r)=>(delete t[r],delete e[r],!0),get:(e,t,r)=>kt(e,t,()=>function(e,t,r){const{_proxy:n,_context:o,_subProxy:i,_descriptors:a}=e;let s=n[t];P(s)&&a.isScriptable(t)&&(s=function(e,t,r,n){const{_proxy:o,_context:i,_subProxy:a,_stack:s}=r;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e),t=t(i,a||n),s.delete(e),At(e,t)&&(t=It(o._scopes,o,e,t));return t}(t,s,e,r));l(s)&&s.length&&(s=function(e,t,r,n){const{_proxy:o,_context:i,_subProxy:a,_descriptors:s}=r;if(C(i.index)&&n(e))t=t[i.index%t.length];else if(f(t[0])){const r=t,n=o._scopes.filter(e=>e!==r);t=[];for(const c of r){const r=It(n,o,e,c);t.push(St(r,i,a&&a[e],s))}}return t}(t,s,e,a.isIndexable));At(t,s)&&(s=St(s,o,i&&i[t],a));return s}(e,t,r)),getOwnPropertyDescriptor:(t,r)=>t._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r),getPrototypeOf:()=>Reflect.getPrototypeOf(e),has:(t,r)=>Reflect.has(e,r),ownKeys:()=>Reflect.ownKeys(e),set:(t,r,n)=>(e[r]=n,delete t[r],!0)})}function xt(e,t={scriptable:!0,indexable:!0}){const{_scriptable:r=t.scriptable,_indexable:n=t.indexable,_allKeys:o=t.allKeys}=e;return{allKeys:o,scriptable:r,indexable:n,isScriptable:P(r)?r:()=>r,isIndexable:P(n)?n:()=>n}}const Ot=(e,t)=>e?e+k(t):t,At=(e,t)=>f(t)&&"adapters"!==e&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function kt(e,t,r){if(Object.prototype.hasOwnProperty.call(e,t))return e[t];const n=r();return e[t]=n,n}function Ct(e,t,r){return P(e)?e(t,r):e}const Pt=(e,t)=>!0===e?t:"string"==typeof e?A(t,e):void 0;function Tt(e,t,r,n,o){for(const i of t){const t=Pt(r,i);if(t){e.add(t);const i=Ct(t._fallback,r,o);if(C(i)&&i!==r&&i!==n)return i}else if(!1===t&&C(n)&&r!==n)return null}return!1}function It(e,t,r,n){const o=t._rootScopes,i=Ct(t._fallback,r,n),a=[...e,...o],s=new Set;s.add(n);let c=Rt(s,a,r,i||r,n);return null!==c&&((!C(i)||i===r||(c=Rt(s,a,i,c,n),null!==c))&&Et(Array.from(s),[""],o,i,()=>function(e,t,r){const n=e._getTarget();t in n||(n[t]={});const o=n[t];if(l(o)&&f(r))return r;return o}(t,r,n)))}function Rt(e,t,r,n,o){for(;r;)r=Tt(e,t,r,n,o);return r}function jt(e,t){for(const r of t){if(!r)continue;const t=r[e];if(C(t))return t}}function Nt(e){let t=e._keys;return t||(t=e._keys=function(e){const t=new Set;for(const r of e)for(const e of Object.keys(r).filter(e=>!e.startsWith("_")))t.add(e);return Array.from(t)}(e._scopes)),t}function Mt(e,t,r,n){const{iScale:o}=e,{key:i="r"}=this._parsing,a=new Array(n);let s,c,u,l;for(s=0,c=n;st"x"===e?"y":"x";function Lt(e,t,r,n){const o=e.skip?t:e,i=t,a=r.skip?t:r,s=X(i,o),c=X(a,i);let u=s/(s+c),l=c/(s+c);u=isNaN(u)?0:u,l=isNaN(l)?0:l;const f=n*u,p=n*l;return{previous:{x:i.x-f*(a.x-o.x),y:i.y-f*(a.y-o.y)},next:{x:i.x+p*(a.x-o.x),y:i.y+p*(a.y-o.y)}}}function Ut(e,t="x"){const r=Ft(t),n=e.length,o=Array(n).fill(0),i=Array(n);let a,s,c,u=Bt(e,0);for(a=0;a!e.skip)),"monotone"===t.cubicInterpolationMode)Ut(e,o);else{let r=n?e[e.length-1]:e[0];for(i=0,a=e.length;iwindow.getComputedStyle(e,null);const $t=["top","right","bottom","left"];function Yt(e,t,r){const n={};r=r?"-"+r:"";for(let o=0;o<4;o++){const i=$t[o];n[i]=parseFloat(e[t+"-"+i+r])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}function Xt(e,t){if("native"in e)return e;const{canvas:r,currentDevicePixelRatio:n}=t,o=Gt(r),i="border-box"===o.boxSizing,a=Yt(o,"padding"),s=Yt(o,"border","width"),{x:c,y:u,box:l}=function(e,t){const r=e.touches,n=r&&r.length?r[0]:e,{offsetX:o,offsetY:i}=n;let a,s,c=!1;if(((e,t,r)=>(e>0||t>0)&&(!r||!r.shadowRoot))(o,i,e.target))a=o,s=i;else{const e=t.getBoundingClientRect();a=n.clientX-e.left,s=n.clientY-e.top,c=!0}return{x:a,y:s,box:c}}(e,r),f=a.left+(l&&s.left),p=a.top+(l&&s.top);let{width:d,height:h}=t;return i&&(d-=a.width+s.width,h-=a.height+s.height),{x:Math.round((c-f)/d*r.width/n),y:Math.round((u-p)/h*r.height/n)}}const Kt=e=>Math.round(10*e)/10;function Zt(e,t,r,n){const o=Gt(e),i=Yt(o,"margin"),a=Ht(o.maxWidth,e,"clientWidth")||N,s=Ht(o.maxHeight,e,"clientHeight")||N,c=function(e,t,r){let n,o;if(void 0===t||void 0===r){const i=qt(e);if(i){const e=i.getBoundingClientRect(),a=Gt(i),s=Yt(a,"border","width"),c=Yt(a,"padding");t=e.width-c.width-s.width,r=e.height-c.height-s.height,n=Ht(a.maxWidth,i,"clientWidth"),o=Ht(a.maxHeight,i,"clientHeight")}else t=e.clientWidth,r=e.clientHeight}return{width:t,height:r,maxWidth:n||N,maxHeight:o||N}}(e,t,r);let{width:u,height:l}=c;if("content-box"===o.boxSizing){const e=Yt(o,"border","width"),t=Yt(o,"padding");u-=t.width+e.width,l-=t.height+e.height}return u=Math.max(0,u-i.width),l=Math.max(0,n?Math.floor(u/n):l-i.height),u=Kt(Math.min(u,a,c.maxWidth)),l=Kt(Math.min(l,s,c.maxHeight)),u&&!l&&(l=Kt(u/2)),{width:u,height:l}}function Qt(e,t,r){const n=t||1,o=Math.floor(e.height*n),i=Math.floor(e.width*n);e.height=o/n,e.width=i/n;const a=e.canvas;return a.style&&(r||!a.style.height&&!a.style.width)&&(a.style.height=e.height+"px",a.style.width=e.width+"px"),(e.currentDevicePixelRatio!==n||a.height!==o||a.width!==i)&&(e.currentDevicePixelRatio=n,a.height=o,a.width=i,e.ctx.setTransform(n,0,0,n,0,0),!0)}const Jt=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(e){}return e}();function er(e,t){const r=function(e,t){return Gt(e).getPropertyValue(t)}(e,t),n=r&&r.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function tr(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:e.y+r*(t.y-e.y)}}function rr(e,t,r,n){return{x:e.x+r*(t.x-e.x),y:"middle"===n?r<.5?e.y:t.y:"after"===n?r<1?e.y:t.y:r>0?t.y:e.y}}function nr(e,t,r,n){const o={x:e.cp2x,y:e.cp2y},i={x:t.cp1x,y:t.cp1y},a=tr(e,o,r),s=tr(o,i,r),c=tr(i,t,r),u=tr(a,s,r),l=tr(s,c,r);return tr(u,l,r)}const or=new Map;function ir(e,t,r){return function(e,t){t=t||{};const r=e+JSON.stringify(t);let n=or.get(r);return n||(n=new Intl.NumberFormat(e,t),or.set(r,n)),n}(t,r).format(e)}function ar(e,t,r){return e?function(e,t){return{x:r=>e+e+t-r,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,t)=>e-t,leftForLtr:(e,t)=>e-t}}(t,r):{x:e=>e,setWidth(e){},textAlign:e=>e,xPlus:(e,t)=>e+t,leftForLtr:(e,t)=>e}}function sr(e,t){let r,n;"ltr"!==t&&"rtl"!==t||(r=e.canvas.style,n=[r.getPropertyValue("direction"),r.getPropertyPriority("direction")],r.setProperty("direction",t,"important"),e.prevTextDirection=n)}function cr(e,t){void 0!==t&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function ur(e){return"angle"===e?{between:Q,compare:K,normalize:Z}:{between:ee,compare:(e,t)=>e-t,normalize:e=>e}}function lr({start:e,end:t,count:r,loop:n,style:o}){return{start:e%r,end:t%r,loop:n&&(t-e+1)%r==0,style:o}}function fr(e,t,r){if(!r)return[e];const{property:n,start:o,end:i}=r,a=t.length,{compare:s,between:c,normalize:u}=ur(n),{start:l,end:f,loop:p,style:d}=function(e,t,r){const{property:n,start:o,end:i}=r,{between:a,normalize:s}=ur(n),c=t.length;let u,l,{start:f,end:p,loop:d}=e;if(d){for(f+=c,p+=c,u=0,l=c;ug||c(o,b,y)&&0!==s(o,b),_=()=>!g||0===s(i,y)||c(i,b,y);for(let e=l,r=l;e<=f;++e)m=t[e%a],m.skip||(y=u(m[n]),y!==b&&(g=c(y,o,i),null===v&&w()&&(v=0===s(y,o)?e:r),null!==v&&_()&&(h.push(lr({start:v,end:e,loop:p,count:a,style:d})),v=null),r=e,b=y));return null!==v&&h.push(lr({start:v,end:f,loop:p,count:a,style:d})),h}function pr(e,t){const r=[],n=e.segments;for(let o=0;on({chart:e,initial:t.initial,numSteps:i,currentStep:Math.min(r-t.start,i)}))}_refresh(){this._request||(this._running=!0,this._request=n.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(e=Date.now()){let t=0;this._charts.forEach((r,n)=>{if(!r.running||!r.items.length)return;const o=r.items;let i,a=o.length-1,s=!1;for(;a>=0;--a)i=o[a],i._active?(i._total>r.duration&&(r.duration=i._total),i.tick(e),s=!0):(o[a]=o[o.length-1],o.pop());s&&(n.draw(),this._notify(n,r,e,"progress")),o.length||(r.running=!1,this._notify(n,r,e,"complete"),r.initial=!1),t+=o.length}),this._lastDate=e,0===t&&(this._running=!1)}_getAnims(e){const t=this._charts;let r=t.get(e);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(e,r)),r}listen(e,t,r){this._getAnims(e).listeners[t].push(r)}add(e,t){t&&t.length&&this._getAnims(e).items.push(...t)}has(e){return this._getAnims(e).items.length>0}start(e){const t=this._charts.get(e);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((e,t)=>Math.max(e,t._duration),0),this._refresh())}running(e){if(!this._running)return!1;const t=this._charts.get(e);return!!(t&&t.running&&t.items.length)}stop(e){const t=this._charts.get(e);if(!t||!t.items.length)return;const r=t.items;let n=r.length-1;for(;n>=0;--n)r[n].cancel();t.items=[],this._notify(e,t,Date.now(),"complete")}remove(e){return this._charts.delete(e)}};const br={boolean:(e,t,r)=>r>.5?t:e,color(e,t,r){const n=Ue(e||"transparent"),o=n.valid&&Ue(t||"transparent");return o&&o.valid?o.mix(n,r).hexString():t},number:(e,t,r)=>e+(t-e)*r};class gr{constructor(e,t,r,n){const o=t[r];n=ht([e.to,n,o,e.from]);const i=ht([e.from,o,n]);this._active=!0,this._fn=e.fn||br[e.type||typeof i],this._easing=oe[e.easing]||oe.linear,this._start=Math.floor(Date.now()+(e.delay||0)),this._duration=this._total=Math.floor(e.duration),this._loop=!!e.loop,this._target=t,this._prop=r,this._from=i,this._to=n,this._promises=void 0}active(){return this._active}update(e,t,r){if(this._active){this._notify(!1);const n=this._target[this._prop],o=r-this._start,i=this._duration-o;this._start=r,this._duration=Math.floor(Math.max(i,e.duration)),this._total+=o,this._loop=!!e.loop,this._to=ht([e.to,t,n,e.from]),this._from=ht([e.from,n,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(e){const t=e-this._start,r=this._duration,n=this._prop,o=this._from,i=this._loop,a=this._to;let s;if(this._active=o!==a&&(i||t1?2-s:s,s=this._easing(Math.min(1,Math.max(0,s))),this._target[n]=this._fn(o,a,s))}wait(){const e=this._promises||(this._promises=[]);return new Promise((t,r)=>{e.push({res:t,rej:r})})}_notify(e){const t=e?"res":"rej",r=this._promises||[];for(let e=0;e"onProgress"!==e&&"onComplete"!==e&&"fn"!==e}),Ge.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Ge.describe("animations",{_fallback:"animation"}),Ge.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:e=>0|e}}}});class wr{constructor(e,t){this._chart=e,this._properties=new Map,this.configure(t)}configure(e){if(!f(e))return;const t=this._properties;Object.getOwnPropertyNames(e).forEach(r=>{const n=e[r];if(!f(n))return;const o={};for(const e of vr)o[e]=n[e];(l(n.properties)&&n.properties||[r]).forEach(e=>{e!==r&&t.has(e)||t.set(e,o)})})}_animateOptions(e,t){const r=t.options,n=function(e,t){if(!t)return;let r=e.options;if(!r)return void(e.options=t);r.$shared&&(e.options=r=Object.assign({},r,{$shared:!1,$animations:{}}));return r}(e,r);if(!n)return[];const o=this._createAnimations(n,r);return r.$shared&&function(e,t){const r=[],n=Object.keys(t);for(let t=0;t{e.options=r},()=>{}),o}_createAnimations(e,t){const r=this._properties,n=[],o=e.$animations||(e.$animations={}),i=Object.keys(t),a=Date.now();let s;for(s=i.length-1;s>=0;--s){const c=i[s];if("$"===c.charAt(0))continue;if("options"===c){n.push(...this._animateOptions(e,t));continue}const u=t[c];let l=o[c];const f=r.get(c);if(l){if(f&&l.active()){l.update(f,u,a);continue}l.cancel()}f&&f.duration?(o[c]=l=new gr(f,e,c,u),n.push(l)):e[c]=u}return n}update(e,t){if(0===this._properties.size)return void Object.assign(e,t);const r=this._createAnimations(e,t);return r.length?(mr.add(this._chart,r),!0):void 0}}function _r(e,t){const r=e&&e.options||{},n=r.reverse,o=void 0===r.min?t:0,i=void 0===r.max?t:0;return{start:n?i:o,end:n?o:i}}function Er(e,t){const r=[],n=e._getSortedDatasetMetas(t);let o,i;for(o=0,i=n.length;o0||!r&&t<0)return o.index}return null}function kr(e,t){const{chart:r,_cachedMeta:n}=e,o=r._stacks||(r._stacks={}),{iScale:i,vScale:a,index:s}=n,c=i.axis,u=a.axis,l=function(e,t,r){return`${e.id}.${t.id}.${r.stack||r.type}`}(i,a,n),f=t.length;let p;for(let e=0;er[e].axis===t).shift()}function Pr(e,t){const r=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){t=t||e._parsed;for(const e of t){const t=e._stacks;if(!t||void 0===t[n]||void 0===t[n][r])return;delete t[n][r]}}}const Tr=e=>"reset"===e||"none"===e,Ir=(e,t)=>t?e:Object.assign({},e);class Rr{constructor(e,t){this.chart=e,this._ctx=e.ctx,this.index=t,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const e=this._cachedMeta;this.configure(),this.linkScales(),e._stacked=xr(e.vScale,e),this.addElements()}updateIndex(e){this.index!==e&&Pr(this._cachedMeta),this.index=e}linkScales(){const e=this.chart,t=this._cachedMeta,r=this.getDataset(),n=(e,t,r,n)=>"x"===e?t:"r"===e?n:r,o=t.xAxisID=h(r.xAxisID,Cr(e,"x")),i=t.yAxisID=h(r.yAxisID,Cr(e,"y")),a=t.rAxisID=h(r.rAxisID,Cr(e,"r")),s=t.indexAxis,c=t.iAxisID=n(s,o,i,a),u=t.vAxisID=n(s,i,o,a);t.xScale=this.getScaleForId(o),t.yScale=this.getScaleForId(i),t.rScale=this.getScaleForId(a),t.iScale=this.getScaleForId(c),t.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(e){return this.chart.scales[e]}_getOtherScale(e){const t=this._cachedMeta;return e===t.iScale?t.vScale:t.iScale}reset(){this._update("reset")}_destroy(){const e=this._cachedMeta;this._data&&wt(this._data,this),e._stacked&&Pr(e)}_dataCheck(){const e=this.getDataset(),t=e.data||(e.data=[]),r=this._data;if(f(t))this._data=function(e){const t=Object.keys(e),r=new Array(t.length);let n,o,i;for(n=0,o=t.length;n{const t="_onData"+k(e),r=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...e){const o=r.apply(this,e);return n._chartjs.listeners.forEach(r=>{"function"==typeof r[t]&&r[t](...e)}),o}})}))),this._syncList=[],this._data=t}var n,o}addElements(){const e=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(e.dataset=new this.datasetElementType)}buildOrUpdateElements(e){const t=this._cachedMeta,r=this.getDataset();let n=!1;this._dataCheck();const o=t._stacked;t._stacked=xr(t.vScale,t),t.stack!==r.stack&&(n=!0,Pr(t),t.stack=r.stack),this._resyncElements(e),(n||o!==t._stacked)&&kr(this,t._parsed)}configure(){const e=this.chart.config,t=e.datasetScopeKeys(this._type),r=e.getOptionScopes(this.getDataset(),t,!0);this.options=e.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(e,t){const{_cachedMeta:r,_data:n}=this,{iScale:o,_stacked:i}=r,a=o.axis;let s,c,u,p=0===e&&t===n.length||r._sorted,d=e>0&&r._parsed[e-1];if(!1===this._parsing)r._parsed=n,r._sorted=!0,u=n;else{u=l(n[e])?this.parseArrayData(r,n,e,t):f(n[e])?this.parseObjectData(r,n,e,t):this.parsePrimitiveData(r,n,e,t);const o=()=>null===c[a]||d&&c[a]e&&!t.hidden&&t._stacked&&{keys:Er(r,!0),values:null})(t,r,this.chart),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:l}=function(e){const{min:t,max:r,minDefined:n,maxDefined:o}=e.getUserBounds();return{min:n?t:Number.NEGATIVE_INFINITY,max:o?r:Number.POSITIVE_INFINITY}}(a);let f,d;function h(){d=n[f];const t=d[a.axis];return!p(d[e.axis])||u>t||l=0;--f)if(!h()){this.updateRangeFromParsed(c,e,d,s);break}return c}getAllParsedValues(e){const t=this._cachedMeta._parsed,r=[];let n,o,i;for(n=0,o=t.length;n=0&&ethis.getContext(r,n),l);return d.$shared&&(d.$shared=s,o[i]=Object.freeze(Ir(d,s))),d}_resolveAnimations(e,t,r){const n=this.chart,o=this._cachedDataOpts,i="animation-"+t,a=o[i];if(a)return a;let s;if(!1!==n.options.animation){const n=this.chart.config,o=n.datasetAnimationScopeKeys(this._type,t),i=n.getOptionScopes(this.getDataset(),o);s=n.createResolver(i,this.getContext(e,r,t))}const c=new wr(n,s&&s.animations);return s&&s._cacheable&&(o[i]=Object.freeze(c)),c}getSharedOptions(e){if(e.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},e))}includeOptions(e,t){return!t||Tr(e)||this.chart._animationsDisabled}updateElement(e,t,r,n){Tr(n)?Object.assign(e,r):this._resolveAnimations(t,n).update(e,r)}updateSharedOptions(e,t,r){e&&!Tr(t)&&this._resolveAnimations(void 0,t).update(e,r)}_setStyle(e,t,r,n){e.active=n;const o=this.getStyle(t,n);this._resolveAnimations(t,r,n).update(e,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(e,t,r){this._setStyle(e,r,"active",!1)}setHoverStyle(e,t,r){this._setStyle(e,r,"active",!0)}_removeDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!1)}_setDatasetHoverStyle(){const e=this._cachedMeta.dataset;e&&this._setStyle(e,void 0,"active",!0)}_resyncElements(e){const t=this._data,r=this._cachedMeta.data;for(const[e,t,r]of this._syncList)this[e](t,r);this._syncList=[];const n=r.length,o=t.length,i=Math.min(o,n);i&&this.parse(0,i),o>n?this._insertElements(n,o-n,e):o{for(e.length+=t,a=e.length-1;a>=i;a--)e[a]=e[a-t]};for(s(o),a=e;ae-t))}return e._cache.$bar}(t,e.type);let n,o,i,a,s=t._length;const c=()=>{32767!==i&&-32768!==i&&(C(a)&&(s=Math.min(s,Math.abs(i-a)||s)),a=i)};for(n=0,o=r.length;nMath.abs(s)&&(c=s,u=a),t[r.axis]=u,t._custom={barStart:c,barEnd:u,start:o,end:i,min:a,max:s}}(e,t,r,n):t[r.axis]=r.parse(e,n),t}function Mr(e,t,r,n){const o=e.iScale,i=e.vScale,a=o.getLabels(),s=o===i,c=[];let u,l,f,p;for(u=r,l=r+n;ue.x,r="left",n="right"):(t=e.base=r?1:-1)}(f,t,i)*o,p===i&&(m-=f/2);const e=t.getPixelForDecimal(0),r=t.getPixelForDecimal(1),n=Math.min(e,r),a=Math.max(e,r);m=Math.max(Math.min(m,a),n),l=m+f}if(m===t.getPixelForValue(i)){const e=U(f)*t.getLineWidthForValue(i)/2;m+=e,f-=e}return{size:f,base:m,head:l,center:l+f/2}}_calculateBarIndexPixels(e,t){const r=t.scale,n=this.options,o=n.skipNull,i=h(n.maxBarThickness,1/0);let a,s;if(t.grouped){const r=o?this._getStackCount(e):t.stackCount,c="flex"===n.barThickness?function(e,t,r,n){const o=t.pixels,i=o[e];let a=e>0?o[e-1]:null,s=e=0;--r)t=Math.max(t,e[r].size(this.resolveDataElementOptions(r))/2);return t>0&&t}getLabelAndValue(e){const t=this._cachedMeta,{xScale:r,yScale:n}=t,o=this.getParsed(e),i=r.getLabelForValue(o.x),a=n.getLabelForValue(o.y),s=o._custom;return{label:t.label,value:"("+i+", "+a+(s?", "+s:"")+")"}}update(e){const t=this._cachedMeta.data;this.updateElements(t,0,t.length,e)}updateElements(e,t,r,n){const o="reset"===n,{iScale:i,vScale:a}=this._cachedMeta,s=this.resolveDataElementOptions(t,n),c=this.getSharedOptions(s),u=this.includeOptions(n,c),l=i.axis,f=a.axis;for(let s=t;s""}}}};class Vr extends Rr{constructor(e,t){super(e,t),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(e,t){const r=this.getDataset().data,n=this._cachedMeta;if(!1===this._parsing)n._parsed=r;else{let o,i,a=e=>+r[e];if(f(r[e])){const{key:e="value"}=this._parsing;a=t=>+A(r[t],e)}for(o=e,i=e+t;oQ(e,s,c,!0)?1:Math.max(t,t*r,n,n*r),h=(e,t,n)=>Q(e,s,c,!0)?-1:Math.min(t,t*r,n,n*r),y=d(0,u,f),m=d(D,l,p),b=h(I,u,f),g=h(I+D,l,p);n=(y-b)/2,o=(m-g)/2,i=-(y+b)/2,a=-(m+g)/2}return{ratioX:n,ratioY:o,offsetX:i,offsetY:a}}(p,f,s),g=(r.width-i)/d,v=(r.height-i)/h,w=Math.max(Math.min(g,v)/2,0),_=y(this.options.radius,w),E=(_-Math.max(_*s,0))/this._getVisibleDatasetWeightTotal();this.offsetX=m*_,this.offsetY=b*_,n.total=this.calculateTotal(),this.outerRadius=_-E*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-E*l,0),this.updateElements(o,0,o.length,e)}_circumference(e,t){const r=this.options,n=this._cachedMeta,o=this._getCircumference();return t&&r.animation.animateRotate||!this.chart.getDataVisibility(e)||null===n._parsed[e]||n.data[e].hidden?0:this.calculateCircumference(n._parsed[e]*o/R)}updateElements(e,t,r,n){const o="reset"===n,i=this.chart,a=i.chartArea,s=i.options.animation,c=(a.left+a.right)/2,u=(a.top+a.bottom)/2,l=o&&s.animateScale,f=l?0:this.innerRadius,p=l?0:this.outerRadius,d=this.resolveDataElementOptions(t,n),h=this.getSharedOptions(d),y=this.includeOptions(n,h);let m,b=this._getRotation();for(m=0;m0&&!isNaN(e)?R*(Math.abs(e)/t):0}getLabelAndValue(e){const t=this._cachedMeta,r=this.chart,n=r.data.labels||[],o=ir(t._parsed[e],r.options.locale);return{label:n[e]||"",value:o}}getMaxBorderWidth(e){let t=0;const r=this.chart;let n,o,i,a,s;if(!e)for(n=0,o=r.data.datasets.length;n"spacing"!==e,_indexable:e=>"spacing"!==e},Vr.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:r}}=e.legend.options;return t.labels.map((t,n)=>{const o=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(n),index:n}})}return[]}},onClick(e,t,r){r.chart.toggleDataVisibility(t.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label(e){let t=e.label;const r=": "+e.formattedValue;return l(t)?(t=t.slice(),t[0]+=r):t+=r,t}}}}};class qr extends Rr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(e){const t=this._cachedMeta,{dataset:r,data:n=[],_dataset:o}=t,i=this.chart._animationsDisabled;let{start:a,count:s}=function(e,t,r){const n=t.length;let o=0,i=n;if(e._sorted){const{iScale:a,_parsed:s}=e,c=a.axis,{min:u,max:l,minDefined:f,maxDefined:p}=a.getUserBounds();f&&(o=J(Math.min(bt(s,a.axis,u).lo,r?n:bt(t,c,a.getPixelForValue(u)).lo),0,n-1)),i=p?J(Math.max(bt(s,a.axis,l).hi+1,r?0:bt(t,c,a.getPixelForValue(l)).hi+1),o,n)-o:n-o}return{start:o,count:i}}(t,n,i);this._drawStart=a,this._drawCount=s,function(e){const{xScale:t,yScale:r,_scaleRanges:n}=e,o={xmin:t.min,xmax:t.max,ymin:r.min,ymax:r.max};if(!n)return e._scaleRanges=o,!0;const i=n.xmin!==t.min||n.xmax!==t.max||n.ymin!==r.min||n.ymax!==r.max;return Object.assign(n,o),i}(t)&&(a=0,s=n.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!o._decimated,r.points=n;const c=this.resolveDatasetElementOptions(e);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!i,options:c},e),this.updateElements(n,a,s,e)}updateElements(e,t,r,n){const o="reset"===n,{iScale:i,vScale:a,_stacked:s,_dataset:c}=this._cachedMeta,l=this.resolveDataElementOptions(t,n),f=this.getSharedOptions(l),p=this.includeOptions(n,f),d=i.axis,h=a.axis,{spanGaps:y,segment:m}=this.options,b=W(y)?y:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||o||"none"===n;let v=t>0&&this.getParsed(t-1);for(let l=t;l0&&Math.abs(r[d]-v[d])>b,m&&(y.parsed=r,y.raw=c.data[l]),p&&(y.options=f||this.resolveDataElementOptions(l,t.active?"active":n)),g||this.updateElement(t,l,y,n),v=r}this.updateSharedOptions(f,n,l)}getMaxOverflow(){const e=this._cachedMeta,t=e.dataset,r=t.options&&t.options.borderWidth||0,n=e.data||[];if(!n.length)return r;const o=n[0].size(this.resolveDataElementOptions(0)),i=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(r,o,i)/2}draw(){const e=this._cachedMeta;e.dataset.updateControlPoints(this.chart.chartArea,e.iScale.axis),super.draw()}}qr.id="line",qr.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},qr.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Hr extends Rr{constructor(e,t){super(e,t),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(e){const t=this._cachedMeta,r=this.chart,n=r.data.labels||[],o=ir(t._parsed[e].r,r.options.locale);return{label:n[e]||"",value:o}}parseObjectData(e,t,r,n){return Mt.bind(this)(e,t,r,n)}update(e){const t=this._cachedMeta.data;this._updateRadius(),this.updateElements(t,0,t.length,e)}getMinMax(){const e=this._cachedMeta,t={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return e.data.forEach((e,r)=>{const n=this.getParsed(r).r;!isNaN(n)&&this.chart.getDataVisibility(r)&&(nt.max&&(t.max=n))}),t}_updateRadius(){const e=this.chart,t=e.chartArea,r=e.options,n=Math.min(t.right-t.left,t.bottom-t.top),o=Math.max(n/2,0),i=(o-Math.max(r.cutoutPercentage?o/100*r.cutoutPercentage:1,0))/e.getVisibleDatasetCount();this.outerRadius=o-i*this.index,this.innerRadius=this.outerRadius-i}updateElements(e,t,r,n){const o="reset"===n,i=this.chart,a=i.options.animation,s=this._cachedMeta.rScale,c=s.xCenter,u=s.yCenter,l=s.getIndexAngle(0)-.5*I;let f,p=l;const d=360/this.countVisibleElements();for(f=0;f{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&t++}),t}_computeAngle(e,t,r){return this.chart.getDataVisibility(e)?H(this.resolveDataElementOptions(e,t).angle||r):0}}Hr.id="polarArea",Hr.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},Hr.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:r}}=e.legend.options;return t.labels.map((t,n)=>{const o=e.getDatasetMeta(0).controller.getStyle(n);return{text:t,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,lineWidth:o.borderWidth,pointStyle:r,hidden:!e.getDataVisibility(n),index:n}})}return[]}},onClick(e,t,r){r.chart.toggleDataVisibility(t.index),r.chart.update()}},tooltip:{callbacks:{title:()=>"",label:e=>e.chart.data.labels[e.dataIndex]+": "+e.formattedValue}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Gr extends Vr{}Gr.id="pie",Gr.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class $r extends Rr{getLabelAndValue(e){const t=this._cachedMeta.vScale,r=this.getParsed(e);return{label:t.getLabels()[e],value:""+t.getLabelForValue(r[t.axis])}}parseObjectData(e,t,r,n){return Mt.bind(this)(e,t,r,n)}update(e){const t=this._cachedMeta,r=t.dataset,n=t.data||[],o=t.iScale.getLabels();if(r.points=n,"resize"!==e){const t=this.resolveDatasetElementOptions(e);this.options.showLine||(t.borderWidth=0);const i={_loop:!0,_fullLoop:o.length===n.length,options:t};this.updateElement(r,void 0,i,e)}this.updateElements(n,0,n.length,e)}updateElements(e,t,r,n){const o=this._cachedMeta.rScale,i="reset"===n;for(let a=t;a"",label:e=>"("+e.label+", "+e.formattedValue+")"}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function Xr(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Kr{constructor(e){this.options=e||{}}formats(){return Xr()}parse(e,t){return Xr()}format(e,t){return Xr()}add(e,t,r){return Xr()}diff(e,t,r){return Xr()}startOf(e,t,r){return Xr()}endOf(e,t){return Xr()}}Kr.override=function(e){Object.assign(Kr.prototype,e)};var Zr={_date:Kr};function Qr(e,t,r,n){const{controller:o,data:i,_sorted:a}=e,s=o._cachedMeta.iScale;if(s&&t===s.axis&&"r"!==t&&a&&i.length){const e=s._reversePixels?gt:bt;if(!n)return e(i,t,r);if(o._sharedOptions){const n=i[0],o="function"==typeof n.getRange&&n.getRange(t);if(o){const n=e(i,t,r-o),a=e(i,t,r+o);return{lo:n.lo,hi:a.hi}}}}return{lo:0,hi:i.length-1}}function Jr(e,t,r,n,o){const i=e.getSortedVisibleDatasetMetas(),a=r[t];for(let e=0,r=i.length;e{e[a](t[r],o)&&(i.push({element:e,datasetIndex:n,index:c}),s=s||e.inRange(t.x,t.y,o))}),n&&!s?[]:i}var on={evaluateInteractionItems:Jr,modes:{index(e,t,r,n){const o=Xt(t,e),i=r.axis||"x",a=r.includeInvisible||!1,s=r.intersect?en(e,o,i,n,a):rn(e,o,i,!1,n,a),c=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(e=>{const t=s[0].index,r=e.data[t];r&&!r.skip&&c.push({element:r,datasetIndex:e.index,index:t})}),c):[]},dataset(e,t,r,n){const o=Xt(t,e),i=r.axis||"xy",a=r.includeInvisible||!1;let s=r.intersect?en(e,o,i,n,a):rn(e,o,i,!1,n,a);if(s.length>0){const t=s[0].datasetIndex,r=e.getDatasetMeta(t).data;s=[];for(let e=0;een(e,Xt(t,e),r.axis||"xy",n,r.includeInvisible||!1),nearest(e,t,r,n){const o=Xt(t,e),i=r.axis||"xy",a=r.includeInvisible||!1;return rn(e,o,i,r.intersect,n,a)},x:(e,t,r,n)=>nn(e,Xt(t,e),"x",r.intersect,n),y:(e,t,r,n)=>nn(e,Xt(t,e),"y",r.intersect,n)}};const an=["left","top","right","bottom"];function sn(e,t){return e.filter(e=>e.pos===t)}function cn(e,t){return e.filter(e=>-1===an.indexOf(e.pos)&&e.box.axis===t)}function un(e,t){return e.sort((e,r)=>{const n=t?r:e,o=t?e:r;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function ln(e,t){const r=function(e){const t={};for(const r of e){const{stack:e,pos:n,stackWeight:o}=r;if(!e||!an.includes(n))continue;const i=t[e]||(t[e]={count:0,placed:0,weight:0,size:0});i.count++,i.weight+=o}return t}(e),{vBoxMaxWidth:n,hBoxMaxHeight:o}=t;let i,a,s;for(i=0,a=e.length;i{n[e]=Math.max(t[e],r[e])}),n}return n(e?["left","right"]:["top","bottom"])}function yn(e,t,r,n){const o=[];let i,a,s,c,u,l;for(i=0,a=e.length,u=0;ie.box.fullSize),!0),n=un(sn(t,"left"),!0),o=un(sn(t,"right")),i=un(sn(t,"top"),!0),a=un(sn(t,"bottom")),s=cn(t,"x"),c=cn(t,"y");return{fullSize:r,leftAndTop:n.concat(i),rightAndBottom:o.concat(c).concat(a).concat(s),chartArea:sn(t,"chartArea"),vertical:n.concat(o).concat(c),horizontal:i.concat(a).concat(s)}}(e.boxes),c=s.vertical,u=s.horizontal;b(e.boxes,e=>{"function"==typeof e.beforeLayout&&e.beforeLayout()});const l=c.reduce((e,t)=>t.box.options&&!1===t.box.options.display?e:e+1,0)||1,f=Object.freeze({outerWidth:t,outerHeight:r,padding:o,availableWidth:i,availableHeight:a,vBoxMaxWidth:i/2/l,hBoxMaxHeight:a/2}),p=Object.assign({},o);pn(p,pt(n));const d=Object.assign({maxPadding:p,w:i,h:a,x:o.left,y:o.top},o),h=ln(c.concat(u),f);yn(s.fullSize,d,f,h),yn(c,d,f,h),yn(u,d,f,h)&&yn(c,d,f,h),function(e){const t=e.maxPadding;function r(r){const n=Math.max(t[r]-e[r],0);return e[r]+=n,n}e.y+=r("top"),e.x+=r("left"),r("right"),r("bottom")}(d),bn(s.leftAndTop,d,f,h),d.x+=d.w,d.y+=d.h,bn(s.rightAndBottom,d,f,h),e.chartArea={left:d.left,top:d.top,right:d.left+d.w,bottom:d.top+d.h,height:d.h,width:d.w},b(s.chartArea,t=>{const r=t.box;Object.assign(r,e.chartArea),r.update(d.w,d.h,{left:0,top:0,right:0,bottom:0})})}};class vn{acquireContext(e,t){}releaseContext(e){return!1}addEventListener(e,t,r){}removeEventListener(e,t,r){}getDevicePixelRatio(){return 1}getMaximumSize(e,t,r,n){return t=Math.max(0,t||e.width),r=r||e.height,{width:t,height:Math.max(0,n?Math.floor(t/n):r)}}isAttached(e){return!0}updateConfig(e){}}class wn extends vn{acquireContext(e){return e&&e.getContext&&e.getContext("2d")||null}updateConfig(e){e.options.animation=!1}}const _n={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},En=e=>null===e||""===e;const Sn=!!Jt&&{passive:!0};function xn(e,t,r){e.canvas.removeEventListener(t,r,Sn)}function On(e,t){for(const r of e)if(r===t||r.contains(t))return!0}function An(e,t,r){const n=e.canvas,o=new MutationObserver(e=>{let t=!1;for(const r of e)t=t||On(r.addedNodes,n),t=t&&!On(r.removedNodes,n);t&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}function kn(e,t,r){const n=e.canvas,o=new MutationObserver(e=>{let t=!1;for(const r of e)t=t||On(r.removedNodes,n),t=t&&!On(r.addedNodes,n);t&&r()});return o.observe(document,{childList:!0,subtree:!0}),o}const Cn=new Map;let Pn=0;function Tn(){const e=window.devicePixelRatio;e!==Pn&&(Pn=e,Cn.forEach((t,r)=>{r.currentDevicePixelRatio!==e&&t()}))}function In(e,t,r){const n=e.canvas,i=n&&qt(n);if(!i)return;const a=o((e,t)=>{const n=i.clientWidth;r(e,t),n{const t=e[0],r=t.contentRect.width,n=t.contentRect.height;0===r&&0===n||a(r,n)});return s.observe(i),function(e,t){Cn.size||window.addEventListener("resize",Tn),Cn.set(e,t)}(e,a),s}function Rn(e,t,r){r&&r.disconnect(),"resize"===t&&function(e){Cn.delete(e),Cn.size||window.removeEventListener("resize",Tn)}(e)}function jn(e,t,r){const n=e.canvas,i=o(t=>{null!==e.ctx&&r(function(e,t){const r=_n[e.type]||e.type,{x:n,y:o}=Xt(e,t);return{type:r,chart:t,native:e,x:void 0!==n?n:null,y:void 0!==o?o:null}}(t,e))},e,e=>{const t=e[0];return[t,t.offsetX,t.offsetY]});return function(e,t,r){e.addEventListener(t,r,Sn)}(n,t,i),i}class Nn extends vn{acquireContext(e,t){const r=e&&e.getContext&&e.getContext("2d");return r&&r.canvas===e?(function(e,t){const r=e.style,n=e.getAttribute("height"),o=e.getAttribute("width");if(e.$chartjs={initial:{height:n,width:o,style:{display:r.display,height:r.height,width:r.width}}},r.display=r.display||"block",r.boxSizing=r.boxSizing||"border-box",En(o)){const t=er(e,"width");void 0!==t&&(e.width=t)}if(En(n))if(""===e.style.height)e.height=e.width/(t||2);else{const t=er(e,"height");void 0!==t&&(e.height=t)}}(e,t),r):null}releaseContext(e){const t=e.canvas;if(!t.$chartjs)return!1;const r=t.$chartjs.initial;["height","width"].forEach(e=>{const n=r[e];u(n)?t.removeAttribute(e):t.setAttribute(e,n)});const n=r.style||{};return Object.keys(n).forEach(e=>{t.style[e]=n[e]}),t.width=t.width,delete t.$chartjs,!0}addEventListener(e,t,r){this.removeEventListener(e,t);const n=e.$proxies||(e.$proxies={}),o={attach:An,detach:kn,resize:In}[t]||jn;n[t]=o(e,t,r)}removeEventListener(e,t){const r=e.$proxies||(e.$proxies={}),n=r[t];n&&(({attach:Rn,detach:Rn,resize:Rn}[t]||xn)(e,t,n),r[t]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(e,t,r,n){return Zt(e,t,r,n)}isAttached(e){const t=qt(e);return!(!t||!t.isConnected)}}class Mn{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(e){const{x:t,y:r}=this.getProps(["x","y"],e);return{x:t,y:r}}hasValue(){return W(this.x)&&W(this.y)}getProps(e,t){const r=this.$animations;if(!t||!r)return this;const n={};return e.forEach(e=>{n[e]=r[e]&&r[e].active()?r[e]._to:this[e]}),n}}Mn.defaults={},Mn.defaultRoutes=void 0;const Dn={values:e=>l(e)?e:""+e,numeric(e,t,r){if(0===e)return"0";const n=this.chart.options.locale;let o,i=e;if(r.length>1){const t=Math.max(Math.abs(r[0].value),Math.abs(r[r.length-1].value));(t<1e-4||t>1e15)&&(o="scientific"),i=function(e,t){let r=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;Math.abs(r)>=1&&e!==Math.floor(e)&&(r=e-Math.floor(e));return r}(e,r)}const a=L(Math.abs(i)),s=Math.max(Math.min(-1*Math.floor(a),20),0),c={notation:o,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(c,this.options.ticks.format),ir(e,n,c)},logarithmic(e,t,r){if(0===e)return"0";const n=e/Math.pow(10,Math.floor(L(e)));return 1===n||2===n||5===n?Dn.numeric.call(this,e,t,r):""}};var Bn={formatters:Dn};function Fn(e,t){const r=e.options.ticks,n=r.maxTicksLimit||function(e){const t=e.options.offset,r=e._tickSize(),n=e._length/r+(t?0:1),o=e._maxLength/r;return Math.floor(Math.min(n,o))}(e),o=r.major.enabled?function(e){const t=[];let r,n;for(r=0,n=e.length;rn)return function(e,t,r,n){let o,i=0,a=r[0];for(n=Math.ceil(n),o=0;oe-t).pop(),t}(n);for(let e=0,t=i.length-1;eo)return t}return Math.max(o,1)}(o,t,n);if(i>0){let e,r;const n=i>1?Math.round((s-a)/(i-1)):null;for(Ln(t,c,l,u(n)?0:a-n,a),e=0,r=i-1;et.lineWidth,tickColor:(e,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Bn.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Ge.route("scale.ticks","color","","color"),Ge.route("scale.grid","color","","borderColor"),Ge.route("scale.grid","borderColor","","borderColor"),Ge.route("scale.title","color","","color"),Ge.describe("scale",{_fallback:!1,_scriptable:e=>!e.startsWith("before")&&!e.startsWith("after")&&"callback"!==e&&"parser"!==e,_indexable:e=>"borderDash"!==e&&"tickBorderDash"!==e}),Ge.describe("scales",{_fallback:"scale"}),Ge.describe("scale.ticks",{_scriptable:e=>"backdropPadding"!==e&&"callback"!==e,_indexable:e=>"backdropPadding"!==e});const Un=(e,t,r)=>"top"===t||"left"===t?e[t]+r:e[t]-r;function zn(e,t){const r=[],n=e.length/t,o=e.length;let i=0;for(;ia+1e-6)))return c}function Vn(e){return e.drawTicks?e.tickLength:0}function qn(e,t){if(!e.display)return 0;const r=dt(e.font,t),n=pt(e.padding);return(l(e.text)?e.text.length:1)*r.lineHeight+n.height}function Hn(e,t,r){let n=i(e);return(r&&"right"!==t||!r&&"right"===t)&&(n=(e=>"left"===e?"right":"right"===e?"left":e)(n)),n}class Gn extends Mn{constructor(e){super(),this.id=e.id,this.type=e.type,this.options=void 0,this.ctx=e.ctx,this.chart=e.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(e){this.options=e.setContext(this.getContext()),this.axis=e.axis,this._userMin=this.parse(e.min),this._userMax=this.parse(e.max),this._suggestedMin=this.parse(e.suggestedMin),this._suggestedMax=this.parse(e.suggestedMax)}parse(e,t){return e}getUserBounds(){let{_userMin:e,_userMax:t,_suggestedMin:r,_suggestedMax:n}=this;return e=d(e,Number.POSITIVE_INFINITY),t=d(t,Number.NEGATIVE_INFINITY),r=d(r,Number.POSITIVE_INFINITY),n=d(n,Number.NEGATIVE_INFINITY),{min:d(e,r),max:d(t,n),minDefined:p(e),maxDefined:p(t)}}getMinMax(e){let t,{min:r,max:n,minDefined:o,maxDefined:i}=this.getUserBounds();if(o&&i)return{min:r,max:n};const a=this.getMatchingVisibleMetas();for(let s=0,c=a.length;sn?n:r,n=o&&r>n?r:n,{min:d(r,d(n,r)),max:d(n,d(r,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const e=this.chart.data;return this.options.labels||(this.isHorizontal()?e.xLabels:e.yLabels)||e.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){m(this.options.beforeUpdate,[this])}update(e,t,r){const{beginAtZero:n,grace:o,ticks:i}=this.options,a=i.sampleSize;this.beforeUpdate(),this.maxWidth=e,this.maxHeight=t,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function(e,t,r){const{min:n,max:o}=e,i=y(t,(o-n)/2),a=(e,t)=>r&&0===e?0:e+t;return{min:a(n,-Math.abs(i)),max:a(o,i)}}(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const s=a=o||r<=1||!this.isHorizontal())return void(this.labelRotation=n);const u=this._getLabelSizes(),l=u.widest.width,f=u.highest.height,p=J(this.chart.width-l,0,this.maxWidth);i=e.offset?this.maxWidth/r:p/(r-1),l+6>i&&(i=p/(r-(e.offset?.5:1)),a=this.maxHeight-Vn(e.grid)-t.padding-qn(e.title,this.chart.options.font),s=Math.sqrt(l*l+f*f),c=G(Math.min(Math.asin(J((u.highest.height+6)/i,-1,1)),Math.asin(J(a/s,-1,1))-Math.asin(J(f/s,-1,1)))),c=Math.max(n,Math.min(o,c))),this.labelRotation=c}afterCalculateLabelRotation(){m(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){m(this.options.beforeFit,[this])}fit(){const e={width:0,height:0},{chart:t,options:{ticks:r,title:n,grid:o}}=this,i=this._isVisible(),a=this.isHorizontal();if(i){const i=qn(n,t.options.font);if(a?(e.width=this.maxWidth,e.height=Vn(o)+i):(e.height=this.maxHeight,e.width=Vn(o)+i),r.display&&this.ticks.length){const{first:t,last:n,widest:o,highest:i}=this._getLabelSizes(),s=2*r.padding,c=H(this.labelRotation),u=Math.cos(c),l=Math.sin(c);if(a){const t=r.mirror?0:l*o.width+u*i.height;e.height=Math.min(this.maxHeight,e.height+t+s)}else{const t=r.mirror?0:u*o.width+l*i.height;e.width=Math.min(this.maxWidth,e.width+t+s)}this._calculatePadding(t,n,l,u)}}this._handleMargins(),a?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=e.height):(this.width=e.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(e,t,r,n){const{ticks:{align:o,padding:i},position:a}=this.options,s=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const a=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1);let l=0,f=0;s?c?(l=n*e.width,f=r*t.height):(l=r*e.height,f=n*t.width):"start"===o?f=t.width:"end"===o?l=e.width:"inner"!==o&&(l=e.width/2,f=t.width/2),this.paddingLeft=Math.max((l-a+i)*this.width/(this.width-a),0),this.paddingRight=Math.max((f-u+i)*this.width/(this.width-u),0)}else{let r=t.height/2,n=e.height/2;"start"===o?(r=0,n=e.height):"end"===o&&(r=t.height,n=0),this.paddingTop=r+i,this.paddingBottom=n+i}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){m(this.options.afterFit,[this])}isHorizontal(){const{axis:e,position:t}=this.options;return"top"===t||"bottom"===t||"x"===e}isFullSize(){return this.options.fullSize}_convertTicksToLabels(e){let t,r;for(this.beforeTickToLabelConversion(),this.generateTickLabels(e),t=0,r=e.length;t{const r=e.gc,n=r.length/2;let o;if(n>t){for(o=0;o({width:o[e]||0,height:i[e]||0});return{first:x(0),last:x(t-1),widest:x(E),highest:x(S),widths:o,heights:i}}getLabelForValue(e){return e}getPixelForValue(e,t){return NaN}getValueForPixel(e){}getPixelForTick(e){const t=this.ticks;return e<0||e>t.length-1?null:this.getPixelForValue(t[e].value)}getPixelForDecimal(e){this._reversePixels&&(e=1-e);const t=this._startPixel+e*this._length;return J(this._alignToPixels?Xe(this.chart,t,0):t,-32768,32767)}getDecimalForPixel(e){const t=(e-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:e,max:t}=this;return e<0&&t<0?t:e>0&&t>0?e:0}getContext(e){const t=this.ticks||[];if(e>=0&&ea*n?a/r:s/n:s*n0}_computeGridLineItems(e){const t=this.axis,r=this.chart,n=this.options,{grid:o,position:i}=n,a=o.offset,s=this.isHorizontal(),c=this.ticks.length+(a?1:0),u=Vn(o),l=[],p=o.setContext(this.getContext()),d=p.drawBorder?p.borderWidth:0,y=d/2,m=function(e){return Xe(r,e,d)};let b,g,v,w,_,E,S,x,O,A,k,C;if("top"===i)b=m(this.bottom),E=this.bottom-u,x=b-y,A=m(e.top)+y,C=e.bottom;else if("bottom"===i)b=m(this.top),A=e.top,C=m(e.bottom)-y,E=b+y,x=this.top+u;else if("left"===i)b=m(this.right),_=this.right-u,S=b-y,O=m(e.left)+y,k=e.right;else if("right"===i)b=m(this.left),O=e.left,k=m(e.right)-y,_=b+y,S=this.left+u;else if("x"===t){if("center"===i)b=m((e.top+e.bottom)/2+.5);else if(f(i)){const e=Object.keys(i)[0],t=i[e];b=m(this.chart.scales[e].getPixelForValue(t))}A=e.top,C=e.bottom,E=b+y,x=E+u}else if("y"===t){if("center"===i)b=m((e.left+e.right)/2);else if(f(i)){const e=Object.keys(i)[0],t=i[e];b=m(this.chart.scales[e].getPixelForValue(t))}_=b-y,S=_-u,O=e.left,k=e.right}const P=h(n.ticks.maxTicksLimit,c),T=Math.max(1,Math.ceil(c/P));for(g=0;gt.value===e);if(r>=0){return t.setContext(this.getContext(r)).lineWidth}return 0}drawGrid(e){const t=this.options.grid,r=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(e));let o,i;const a=(e,t,n)=>{n.width&&n.color&&(r.save(),r.lineWidth=n.width,r.strokeStyle=n.color,r.setLineDash(n.borderDash||[]),r.lineDashOffset=n.borderDashOffset,r.beginPath(),r.moveTo(e.x,e.y),r.lineTo(t.x,t.y),r.stroke(),r.restore())};if(t.display)for(o=0,i=n.length;o{this.drawBackground(),this.drawGrid(e),this.drawTitle()}},{z:r+1,draw:()=>{this.drawBorder()}},{z:t,draw:e=>{this.drawLabels(e)}}]:[{z:t,draw:e=>{this.draw(e)}}]}getMatchingVisibleMetas(e){const t=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",n=[];let o,i;for(o=0,i=t.length;o{const n=r.split("."),o=n.pop(),i=[e].concat(n).join("."),a=t[r].split("."),s=a.pop(),c=a.join(".");Ge.route(i,o,c,s)})}(t,e.defaultRoutes);e.descriptors&&Ge.describe(t,e.descriptors)}(e,i,r),this.override&&Ge.override(e.id,e.overrides)),i}get(e){return this.items[e]}unregister(e){const t=this.items,r=e.id,n=this.scope;r in t&&delete t[r],n&&r in Ge[n]&&(delete Ge[n][r],this.override&&delete We[r])}}var Yn=new class{constructor(){this.controllers=new $n(Rr,"datasets",!0),this.elements=new $n(Mn,"elements"),this.plugins=new $n(Object,"plugins"),this.scales=new $n(Gn,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...e){this._each("register",e)}remove(...e){this._each("unregister",e)}addControllers(...e){this._each("register",e,this.controllers)}addElements(...e){this._each("register",e,this.elements)}addPlugins(...e){this._each("register",e,this.plugins)}addScales(...e){this._each("register",e,this.scales)}getController(e){return this._get(e,this.controllers,"controller")}getElement(e){return this._get(e,this.elements,"element")}getPlugin(e){return this._get(e,this.plugins,"plugin")}getScale(e){return this._get(e,this.scales,"scale")}removeControllers(...e){this._each("unregister",e,this.controllers)}removeElements(...e){this._each("unregister",e,this.elements)}removePlugins(...e){this._each("unregister",e,this.plugins)}removeScales(...e){this._each("unregister",e,this.scales)}_each(e,t,r){[...t].forEach(t=>{const n=r||this._getRegistryForType(t);r||n.isForType(t)||n===this.plugins&&t.id?this._exec(e,n,t):b(t,t=>{const n=r||this._getRegistryForType(t);this._exec(e,n,t)})})}_exec(e,t,r){const n=k(e);m(r["before"+n],[],r),t[e](r),m(r["after"+n],[],r)}_getRegistryForType(e){for(let t=0;te.filter(e=>!t.some(t=>e.plugin.id===t.plugin.id));this._notify(n(t,r),e,"stop"),this._notify(n(r,t),e,"start")}}function Kn(e,t){return t||!1!==e?!0===e?{}:e:null}function Zn(e,t,r,n){const o=e.pluginScopeKeys(t),i=e.getOptionScopes(r,o);return e.createResolver(i,n,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Qn(e,t){const r=Ge.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||r.indexAxis||"x"}function Jn(e,t){return"x"===e||"y"===e?e:t.axis||("top"===(r=t.position)||"bottom"===r?"x":"left"===r||"right"===r?"y":void 0)||e.charAt(0).toLowerCase();var r}function eo(e){const t=e.options||(e.options={});t.plugins=h(t.plugins,{}),t.scales=function(e,t){const r=We[e.type]||{scales:{}},n=t.scales||{},o=Qn(e.type,t),i=Object.create(null),a=Object.create(null);return Object.keys(n).forEach(e=>{const t=n[e];if(!f(t))return console.error("Invalid scale configuration for scale: "+e);if(t._proxy)return console.warn("Ignoring resolver passed as options for scale: "+e);const s=Jn(e,t),c=function(e,t){return e===t?"_index_":"_value_"}(s,o),u=r.scales||{};i[s]=i[s]||e,a[e]=S(Object.create(null),[{axis:s},t,u[s],u[c]])}),e.data.datasets.forEach(r=>{const o=r.type||e.type,s=r.indexAxis||Qn(o,t),c=(We[o]||{}).scales||{};Object.keys(c).forEach(e=>{const t=function(e,t){let r=e;return"_index_"===e?r=t:"_value_"===e&&(r="x"===t?"y":"x"),r}(e,s),o=r[t+"AxisID"]||i[t]||t;a[o]=a[o]||Object.create(null),S(a[o],[{axis:t},n[o],c[e]])})}),Object.keys(a).forEach(e=>{const t=a[e];S(t,[Ge.scales[t.type],Ge.scale])}),a}(e,t)}function to(e){return(e=e||{}).datasets=e.datasets||[],e.labels=e.labels||[],e}const ro=new Map,no=new Set;function oo(e,t){let r=ro.get(e);return r||(r=t(),ro.set(e,r),no.add(r)),r}const io=(e,t,r)=>{const n=A(t,r);void 0!==n&&e.add(n)};class ao{constructor(e){this._config=function(e){return(e=e||{}).data=to(e.data),eo(e),e}(e),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(e){this._config.type=e}get data(){return this._config.data}set data(e){this._config.data=to(e)}get options(){return this._config.options}set options(e){this._config.options=e}get plugins(){return this._config.plugins}update(){const e=this._config;this.clearCache(),eo(e)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(e){return oo(e,()=>[["datasets."+e,""]])}datasetAnimationScopeKeys(e,t){return oo(`${e}.transition.${t}`,()=>[[`datasets.${e}.transitions.${t}`,"transitions."+t],["datasets."+e,""]])}datasetElementScopeKeys(e,t){return oo(`${e}-${t}`,()=>[[`datasets.${e}.elements.${t}`,"datasets."+e,"elements."+t,""]])}pluginScopeKeys(e){const t=e.id;return oo(`${this.type}-plugin-${t}`,()=>[["plugins."+t,...e.additionalOptionScopes||[]]])}_cachedScopes(e,t){const r=this._scopeCache;let n=r.get(e);return n&&!t||(n=new Map,r.set(e,n)),n}getOptionScopes(e,t,r){const{options:n,type:o}=this,i=this._cachedScopes(e,r),a=i.get(t);if(a)return a;const s=new Set;t.forEach(t=>{e&&(s.add(e),t.forEach(t=>io(s,e,t))),t.forEach(e=>io(s,n,e)),t.forEach(e=>io(s,We[o]||{},e)),t.forEach(e=>io(s,Ge,e)),t.forEach(e=>io(s,Ve,e))});const c=Array.from(s);return 0===c.length&&c.push(Object.create(null)),no.has(t)&&i.set(t,c),c}chartOptionScopes(){const{options:e,type:t}=this;return[e,We[t]||{},Ge.datasets[t]||{},{type:t},Ge,Ve]}resolveNamedOptions(e,t,r,n=[""]){const o={$shared:!0},{resolver:i,subPrefixes:a}=so(this._resolverCache,e,n);let s=i;if(function(e,t){const{isScriptable:r,isIndexable:n}=xt(e);for(const o of t){const t=r(o),i=n(o),a=(i||t)&&e[o];if(t&&(P(a)||co(a))||i&&l(a))return!0}return!1}(i,t)){o.$shared=!1,s=St(i,r=P(r)?r():r,this.createResolver(e,r,a))}for(const e of t)o[e]=s[e];return o}createResolver(e,t,r=[""],n){const{resolver:o}=so(this._resolverCache,e,r);return f(t)?St(o,t,void 0,n):o}}function so(e,t,r){let n=e.get(t);n||(n=new Map,e.set(t,n));const o=r.join();let i=n.get(o);if(!i){i={resolver:Et(t,r),subPrefixes:r.filter(e=>!e.toLowerCase().includes("hover"))},n.set(o,i)}return i}const co=e=>f(e)&&Object.getOwnPropertyNames(e).reduce((t,r)=>t||P(e[r]),!1);const uo=["top","bottom","left","right","chartArea"];function lo(e,t){return"top"===e||"bottom"===e||-1===uo.indexOf(e)&&"x"===t}function fo(e,t){return function(r,n){return r[e]===n[e]?r[t]-n[t]:r[e]-n[e]}}function po(e){const t=e.chart,r=t.options.animation;t.notifyPlugins("afterRender"),m(r&&r.onComplete,[e],t)}function ho(e){const t=e.chart,r=t.options.animation;m(r&&r.onProgress,[e],t)}function yo(e){return Vt()&&"string"==typeof e?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const mo={},bo=e=>{const t=yo(e);return Object.values(mo).filter(e=>e.canvas===t).pop()};function go(e,t,r){const n=Object.keys(e);for(const o of n){const n=+o;if(n>=t){const i=e[o];delete e[o],(r>0||n>t)&&(e[n+r]=i)}}}class vo{constructor(e,t){const r=this.config=new ao(t),n=yo(e),o=bo(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas can be reused.");const i=r.createResolver(r.chartOptionScopes(),this.getContext());this.platform=new(r.platform||function(e){return!Vt()||"undefined"!=typeof OffscreenCanvas&&e instanceof OffscreenCanvas?wn:Nn}(n)),this.platform.updateConfig(r);const a=this.platform.acquireContext(n,i.aspectRatio),s=a&&a.canvas,u=s&&s.height,l=s&&s.width;this.id=c(),this.ctx=a,this.canvas=s,this.width=l,this.height=u,this._options=i,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new Xn,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function(e,t){let r;return function(...n){return t?(clearTimeout(r),r=setTimeout(e,t,n)):e.apply(this,n),t}}(e=>this.update(e),i.resizeDelay||0),this._dataChanges=[],mo[this.id]=this,a&&s?(mr.listen(this,"complete",po),mr.listen(this,"progress",ho),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:r,height:n,_aspectRatio:o}=this;return u(e)?t&&o?o:n?r/n:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():Qt(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Ke(this.canvas,this.ctx),this}stop(){return mr.stop(this),this}resize(e,t){mr.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const r=this.options,n=this.canvas,o=r.maintainAspectRatio&&this.aspectRatio,i=this.platform.getMaximumSize(n,e,t,o),a=r.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=i.width,this.height=i.height,this._aspectRatio=this.aspectRatio,Qt(this,a,!0)&&(this.notifyPlugins("resize",{size:i}),m(r.onResize,[this,i],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){b(this.options.scales||{},(e,t)=>{e.id=t})}buildOrUpdateScales(){const e=this.options,t=e.scales,r=this.scales,n=Object.keys(r).reduce((e,t)=>(e[t]=!1,e),{});let o=[];t&&(o=o.concat(Object.keys(t).map(e=>{const r=t[e],n=Jn(e,r),o="r"===n,i="x"===n;return{options:r,dposition:o?"chartArea":i?"bottom":"left",dtype:o?"radialLinear":i?"category":"linear"}}))),b(o,t=>{const o=t.options,i=o.id,a=Jn(i,o),s=h(o.type,t.dtype);void 0!==o.position&&lo(o.position,a)===lo(t.dposition)||(o.position=t.dposition),n[i]=!0;let c=null;if(i in r&&r[i].type===s)c=r[i];else{c=new(Yn.getScale(s))({id:i,type:s,ctx:this.ctx,chart:this}),r[c.id]=c}c.init(o,e)}),b(n,(e,t)=>{e||delete r[t]}),b(r,e=>{gn.configure(this,e,e.options),gn.addBox(this,e)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,r=e.length;if(e.sort((e,t)=>e.index-t.index),r>t){for(let e=t;et.length&&delete this._stacks,e.forEach((e,r)=>{0===t.filter(t=>t===e._dataset).length&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let r,n;for(this._removeUnreferencedMetasets(),r=0,n=t.length;r{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const r=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!r.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0}))return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let i=0;for(let e=0,t=this.data.datasets.length;e{e.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(fo("z","_idx"));const{_active:a,_lastEvent:s}=this;s?this._eventHandler(s,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){b(this.scales,e=>{gn.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),r=new Set(e.events);T(t,r)&&!!this._responsiveListeners===e.responsive||(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:r,start:n,count:o}of t){go(e,n,"_removeElements"===r?-o:o)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,r=t=>new Set(e.filter(e=>e[0]===t).map((e,t)=>t+","+e.splice(1).join(","))),n=r(0);for(let e=1;ee.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(e){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;gn.update(this,this.width,this.height,e);const t=this.chartArea,r=t.width<=0||t.height<=0;this._layers=[],b(this.boxes,e=>{r&&"chartArea"===e.position||(e.configure&&e.configure(),this._layers.push(...e._layers()))},this),this._layers.forEach((e,t)=>{e._idx=t}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})){for(let e=0,t=this.data.datasets.length;e=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,r=e._clip,n=!r.disabled,o=this.chartArea,i={meta:e,index:e.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",i)&&(n&&Je(t,{left:!1===r.left?0:o.left-r.left,right:!1===r.right?this.width:o.right+r.right,top:!1===r.top?0:o.top-r.top,bottom:!1===r.bottom?this.height:o.bottom+r.bottom}),e.controller.draw(),n&&et(t),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(e){return Qe(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,r,n){const o=on.modes[t];return"function"==typeof o?o(this,e,r,n):[]}getDatasetMeta(e){const t=this.data.datasets[e],r=this._metasets;let n=r.filter(e=>e&&e._dataset===t).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},r.push(n)),n}getContext(){return this.$context||(this.$context=yt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const r=this.getDatasetMeta(e);return"boolean"==typeof r.hidden?!r.hidden:!t.hidden}setDatasetVisibility(e,t){this.getDatasetMeta(e).hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,r){const n=r?"show":"hide",o=this.getDatasetMeta(e),i=o.controller._resolveAnimations(void 0,n);C(t)?(o.data[t].hidden=!r,this.update()):(this.setDatasetVisibility(e,r),i.update(o,{visible:r}),this.update(t=>t.datasetIndex===e?n:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),mr.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,r,n),e[r]=n},n=(e,t,r)=>{e.offsetX=t,e.offsetY=r,this._eventHandler(e)};b(this.options.events,e=>r(e,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,r=(r,n)=>{t.addEventListener(this,r,n),e[r]=n},n=(r,n)=>{e[r]&&(t.removeEventListener(this,r,n),delete e[r])},o=(e,t)=>{this.canvas&&this.resize(e,t)};let i;const a=()=>{n("attach",a),this.attached=!0,this.resize(),r("resize",o),r("detach",i)};i=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),r("attach",a)},t.isAttached(this.canvas)?a():i()}unbindEvents(){b(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},b(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,r){const n=r?"set":"remove";let o,i,a,s;for("dataset"===t&&(o=this.getDatasetMeta(e[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),a=0,s=e.length;a{const r=this.getDatasetMeta(e);if(!r)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:r.data[t],index:t}});!g(r,t)&&(this._active=r,this._lastEvent=null,this._updateHoverStyles(r,t))}notifyPlugins(e,t,r){return this._plugins.notify(this,e,t,r)}_updateHoverStyles(e,t,r){const n=this.options.hover,o=(e,t)=>e.filter(e=>!t.some(t=>e.datasetIndex===t.datasetIndex&&e.index===t.index)),i=o(t,e),a=r?e:o(e,t);i.length&&this.updateHoverStyle(i,n.mode,!1),a.length&&n.mode&&this.updateHoverStyle(a,n.mode,!0)}_eventHandler(e,t){const r={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},n=t=>(t.options.events||this.options.events).includes(e.native.type);if(!1===this.notifyPlugins("beforeEvent",r,n))return;const o=this._handleEvent(e,t,r.inChartArea);return r.cancelable=!1,this.notifyPlugins("afterEvent",r,n),(o||r.changed)&&this.render(),this}_handleEvent(e,t,r){const{_active:n=[],options:o}=this,i=t,a=this._getActiveElements(e,n,r,i),s=function(e){return"mouseup"===e.type||"click"===e.type||"contextmenu"===e.type}(e),c=function(e,t,r,n){return r&&"mouseout"!==e.type?n?t:e:null}(e,this._lastEvent,r,s);r&&(this._lastEvent=null,m(o.onHover,[e,a,this],this),s&&m(o.onClick,[e,a,this],this));const u=!g(a,n);return(u||t)&&(this._active=a,this._updateHoverStyles(a,n,t)),this._lastEvent=c,u}_getActiveElements(e,t,r,n){if("mouseout"===e.type)return[];if(!r)return t;const o=this.options.hover;return this.getElementsAtEventForMode(e,o.mode,o,n)}}const wo=()=>b(vo.instances,e=>e._plugins.invalidate());function _o(e,t,r){const{startAngle:n,pixelMargin:o,x:i,y:a,outerRadius:s,innerRadius:c}=t;let u=o/s;e.beginPath(),e.arc(i,a,s,n-u,r+u),c>o?(u=o/c,e.arc(i,a,c,r+u,n-u,!0)):e.arc(i,a,o,r+D,n-D),e.closePath(),e.clip()}function Eo(e,t,r,n){const o=ut(e.options.borderRadius,["outerStart","outerEnd","innerStart","innerEnd"]);const i=(r-t)/2,a=Math.min(i,n*t/2),s=e=>{const t=(r-Math.min(i,e))*n/2;return J(e,0,Math.min(i,t))};return{outerStart:s(o.outerStart),outerEnd:s(o.outerEnd),innerStart:J(o.innerStart,0,a),innerEnd:J(o.innerEnd,0,a)}}function So(e,t,r,n){return{x:r+e*Math.cos(t),y:n+e*Math.sin(t)}}function xo(e,t,r,n,o){const{x:i,y:a,startAngle:s,pixelMargin:c,innerRadius:u}=t,l=Math.max(t.outerRadius+n+r-c,0),f=u>0?u+n+r+c:0;let p=0;const d=o-s;if(n){const e=((u>0?u-n:0)+(l>0?l-n:0))/2;p=(d-(0!==e?d*e/(e+n):d))/2}const h=(d-Math.max(.001,d*l-r/I)/l)/2,y=s+h+p,m=o-h-p,{outerStart:b,outerEnd:g,innerStart:v,innerEnd:w}=Eo(t,f,l,m-y),_=l-b,E=l-g,S=y+b/_,x=m-g/E,O=f+v,A=f+w,k=y+v/O,C=m-w/A;if(e.beginPath(),e.arc(i,a,l,S,x),g>0){const t=So(E,x,i,a);e.arc(t.x,t.y,g,x,m+D)}const P=So(A,m,i,a);if(e.lineTo(P.x,P.y),w>0){const t=So(A,C,i,a);e.arc(t.x,t.y,w,m+D,C+Math.PI)}if(e.arc(i,a,f,m-w/f,y+v/f,!0),v>0){const t=So(O,k,i,a);e.arc(t.x,t.y,v,k+Math.PI,y-D)}const T=So(_,y,i,a);if(e.lineTo(T.x,T.y),b>0){const t=So(_,S,i,a);e.arc(t.x,t.y,b,y-D,S)}e.closePath()}function Oo(e,t,r,n,o){const{options:i}=t,{borderWidth:a,borderJoinStyle:s}=i,c="inner"===i.borderAlign;a&&(c?(e.lineWidth=2*a,e.lineJoin=s||"round"):(e.lineWidth=a,e.lineJoin=s||"bevel"),t.fullCircles&&function(e,t,r){const{x:n,y:o,startAngle:i,pixelMargin:a,fullCircles:s}=t,c=Math.max(t.outerRadius-a,0),u=t.innerRadius+a;let l;for(r&&_o(e,t,i+R),e.beginPath(),e.arc(n,o,u,i+R,i,!0),l=0;l{Yn.add(...e),wo()}},unregister:{enumerable:!0,value:(...e)=>{Yn.remove(...e),wo()}}});class Ao extends Mn{constructor(e){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,t,r){const n=this.getProps(["x","y"],r),{angle:o,distance:i}=Y(n,{x:e,y:t}),{startAngle:a,endAngle:s,innerRadius:c,outerRadius:u,circumference:l}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],r),f=this.options.spacing/2,p=h(l,s-a)>=R||Q(o,a,s),d=ee(i,c+f,u+f);return p&&d}getCenterPoint(e){const{x:t,y:r,startAngle:n,endAngle:o,innerRadius:i,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],e),{offset:s,spacing:c}=this.options,u=(n+o)/2,l=(i+a+c+s)/2;return{x:t+Math.cos(u)*l,y:r+Math.sin(u)*l}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:t,circumference:r}=this,n=(t.offset||0)/2,o=(t.spacing||0)/2;if(this.pixelMargin="inner"===t.borderAlign?.33:0,this.fullCircles=r>R?Math.floor(r/R):0,0===r||this.innerRadius<0||this.outerRadius<0)return;e.save();let i=0;if(n){i=n/2;const t=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(t)*i,Math.sin(t)*i),this.circumference>=I&&(i=n)}e.fillStyle=t.backgroundColor,e.strokeStyle=t.borderColor;const a=function(e,t,r,n){const{fullCircles:o,startAngle:i,circumference:a}=t;let s=t.endAngle;if(o){xo(e,t,r,n,i+R);for(let t=0;ts&&i>s;return{count:n,start:c,loop:t.loop,ilen:u(a+(u?s-e:e))%i,v=()=>{d!==h&&(e.lineTo(m,h),e.lineTo(m,d),e.lineTo(m,y))};for(c&&(f=o[g(0)],e.moveTo(f.x,f.y)),l=0;l<=s;++l){if(f=o[g(l)],f.skip)continue;const t=f.x,r=f.y,n=0|t;n===p?(rh&&(h=r),m=(b*m+t)/++b):(v(),e.lineTo(t,r),p=n,b=0,d=h=r),y=r}v()}function Ro(e){const t=e.options,r=t.borderDash&&t.borderDash.length;return!(e._decimated||e._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||r)?Io:To}Ao.id="arc",Ao.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0},Ao.defaultRoutes={backgroundColor:"backgroundColor"};const jo="function"==typeof Path2D;function No(e,t,r,n){jo&&!t.options.segment?function(e,t,r,n){let o=t._path;o||(o=t._path=new Path2D,t.path(o,r,n)&&o.closePath()),ko(e,t.options),e.stroke(o)}(e,t,r,n):function(e,t,r,n){const{segments:o,options:i}=t,a=Ro(t);for(const s of o)ko(e,i,s.style),e.beginPath(),a(e,t,s,{start:r,end:r+n-1})&&e.closePath(),e.stroke()}(e,t,r,n)}class Mo extends Mn{constructor(e){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,e&&Object.assign(this,e)}updateControlPoints(e,t){const r=this.options;if((r.tension||"monotone"===r.cubicInterpolationMode)&&!r.stepped&&!this._pointsUpdated){const n=r.spanGaps?this._loop:this._fullLoop;Wt(this._points,r,e,n,t),this._pointsUpdated=!0}}set points(e){this._points=e,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function(e,t){const r=e.points,n=e.options.spanGaps,o=r.length;if(!o)return[];const i=!!e._loop,{start:a,end:s}=function(e,t,r,n){let o=0,i=t-1;if(r&&!n)for(;oo&&e[i%t].skip;)i--;return i%=t,{start:o,end:i}}(r,o,i,n);return dr(e,!0===n?[{start:a,end:s,loop:i}]:function(e,t,r,n){const o=e.length,i=[];let a,s=t,c=e[t];for(a=t+1;a<=r;++a){const r=e[a%o];r.skip||r.stop?c.skip||(n=!1,i.push({start:t%o,end:(a-1)%o,loop:n}),t=s=r.stop?a:null):(s=a,c.skip&&(t=a)),c=r}return null!==s&&i.push({start:t%o,end:s%o,loop:n}),i}(r,a,s"borderDash"!==e&&"fill"!==e};class Bo extends Mn{constructor(e){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,e&&Object.assign(this,e)}inRange(e,t,r){const n=this.options,{x:o,y:i}=this.getProps(["x","y"],r);return Math.pow(e-o,2)+Math.pow(t-i,2)-1?e.split("\n"):e}function Yo(e,t){const{element:r,datasetIndex:n,index:o}=t,i=e.getDatasetMeta(n).controller,{label:a,value:s}=i.getLabelAndValue(o);return{chart:e,label:a,parsed:i.getParsed(o),raw:e.data.datasets[n].data[o],formattedValue:s,dataset:i.getDataset(),dataIndex:o,datasetIndex:n,element:r}}function Xo(e,t){const r=e.chart.ctx,{body:n,footer:o,title:i}=e,{boxWidth:a,boxHeight:s}=t,c=dt(t.bodyFont),u=dt(t.titleFont),l=dt(t.footerFont),f=i.length,p=o.length,d=n.length,h=pt(t.padding);let y=h.height,m=0,g=n.reduce((e,t)=>e+t.before.length+t.lines.length+t.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,f&&(y+=f*u.lineHeight+(f-1)*t.titleSpacing+t.titleMarginBottom),g){y+=d*(t.displayColors?Math.max(s,c.lineHeight):c.lineHeight)+(g-d)*c.lineHeight+(g-1)*t.bodySpacing}p&&(y+=t.footerMarginTop+p*l.lineHeight+(p-1)*t.footerSpacing);let v=0;const w=function(e){m=Math.max(m,r.measureText(e).width+v)};return r.save(),r.font=u.string,b(e.title,w),r.font=c.string,b(e.beforeBody.concat(e.afterBody),w),v=t.displayColors?a+2+t.boxPadding:0,b(n,e=>{b(e.before,w),b(e.lines,w),b(e.after,w)}),v=0,r.font=l.string,b(e.footer,w),r.restore(),m+=h.width,{width:m,height:y}}function Ko(e,t,r,n){const{x:o,width:i}=r,{width:a,chartArea:{left:s,right:c}}=e;let u="center";return"center"===n?u=o<=(s+c)/2?"left":"right":o<=i/2?u="left":o>=a-i/2&&(u="right"),function(e,t,r,n){const{x:o,width:i}=n,a=r.caretSize+r.caretPadding;return"left"===e&&o+i+a>t.width||("right"===e&&o-i-a<0||void 0)}(u,e,t,r)&&(u="center"),u}function Zo(e,t,r){const n=r.yAlign||t.yAlign||function(e,t){const{y:r,height:n}=t;return re.height-n/2?"bottom":"center"}(e,r);return{xAlign:r.xAlign||t.xAlign||Ko(e,t,r,n),yAlign:n}}function Qo(e,t,r,n){const{caretSize:o,caretPadding:i,cornerRadius:a}=e,{xAlign:s,yAlign:c}=r,u=o+i,{topLeft:l,topRight:f,bottomLeft:p,bottomRight:d}=ft(a);let h=function(e,t){let{x:r,width:n}=e;return"right"===t?r-=n:"center"===t&&(r-=n/2),r}(t,s);const y=function(e,t,r){let{y:n,height:o}=e;return"top"===t?n+=r:n-="bottom"===t?o+r:o/2,n}(t,c,u);return"center"===c?"left"===s?h+=u:"right"===s&&(h-=u):"left"===s?h-=Math.max(l,p)+o:"right"===s&&(h+=Math.max(f,d)+o),{x:J(h,0,n.width-t.width),y:J(y,0,n.height-t.height)}}function Jo(e,t,r){const n=pt(r.padding);return"center"===t?e.x+e.width/2:"right"===t?e.x+e.width-n.right:e.x+n.left}function ei(e){return Go([],$o(e))}function ti(e,t){const r=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return r?e.override(r):e}class ri extends Mn{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart||e._chart,this._chart=this.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const t=this.chart,r=this.options.setContext(this.getContext()),n=r.enabled&&t.options.animation&&r.animations,o=new wr(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=(e=this.chart.getContext(),t=this,r=this._tooltipItems,yt(e,{tooltip:t,tooltipItems:r,type:"tooltip"})));var e,t,r}getTitle(e,t){const{callbacks:r}=t,n=r.beforeTitle.apply(this,[e]),o=r.title.apply(this,[e]),i=r.afterTitle.apply(this,[e]);let a=[];return a=Go(a,$o(n)),a=Go(a,$o(o)),a=Go(a,$o(i)),a}getBeforeBody(e,t){return ei(t.callbacks.beforeBody.apply(this,[e]))}getBody(e,t){const{callbacks:r}=t,n=[];return b(e,e=>{const t={before:[],lines:[],after:[]},o=ti(r,e);Go(t.before,$o(o.beforeLabel.call(this,e))),Go(t.lines,o.label.call(this,e)),Go(t.after,$o(o.afterLabel.call(this,e))),n.push(t)}),n}getAfterBody(e,t){return ei(t.callbacks.afterBody.apply(this,[e]))}getFooter(e,t){const{callbacks:r}=t,n=r.beforeFooter.apply(this,[e]),o=r.footer.apply(this,[e]),i=r.afterFooter.apply(this,[e]);let a=[];return a=Go(a,$o(n)),a=Go(a,$o(o)),a=Go(a,$o(i)),a}_createItems(e){const t=this._active,r=this.chart.data,n=[],o=[],i=[];let a,s,c=[];for(a=0,s=t.length;ae.filter(t,n,o,r))),e.itemSort&&(c=c.sort((t,n)=>e.itemSort(t,n,r))),b(c,t=>{const r=ti(e.callbacks,t);n.push(r.labelColor.call(this,t)),o.push(r.labelPointStyle.call(this,t)),i.push(r.labelTextColor.call(this,t))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=i,this.dataPoints=c,c}update(e,t){const r=this.options.setContext(this.getContext()),n=this._active;let o,i=[];if(n.length){const e=Ho[r.position].call(this,n,this._eventPosition);i=this._createItems(r),this.title=this.getTitle(i,r),this.beforeBody=this.getBeforeBody(i,r),this.body=this.getBody(i,r),this.afterBody=this.getAfterBody(i,r),this.footer=this.getFooter(i,r);const t=this._size=Xo(this,r),a=Object.assign({},e,t),s=Zo(this.chart,r,a),c=Qo(r,a,s,this.chart);this.xAlign=s.xAlign,this.yAlign=s.yAlign,o={opacity:1,x:c.x,y:c.y,width:t.width,height:t.height,caretX:e.x,caretY:e.y}}else 0!==this.opacity&&(o={opacity:0});this._tooltipItems=i,this.$context=void 0,o&&this._resolveAnimations().update(this,o),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:t})}drawCaret(e,t,r,n){const o=this.getCaretPosition(e,r,n);t.lineTo(o.x1,o.y1),t.lineTo(o.x2,o.y2),t.lineTo(o.x3,o.y3)}getCaretPosition(e,t,r){const{xAlign:n,yAlign:o}=this,{caretSize:i,cornerRadius:a}=r,{topLeft:s,topRight:c,bottomLeft:u,bottomRight:l}=ft(a),{x:f,y:p}=e,{width:d,height:h}=t;let y,m,b,g,v,w;return"center"===o?(v=p+h/2,"left"===n?(y=f,m=y-i,g=v+i,w=v-i):(y=f+d,m=y+i,g=v-i,w=v+i),b=y):(m="left"===n?f+Math.max(s,u)+i:"right"===n?f+d-Math.max(c,l)-i:this.caretX,"top"===o?(g=p,v=g-i,y=m-i,b=m+i):(g=p+h,v=g+i,y=m+i,b=m-i),w=g),{x1:y,x2:m,x3:b,y1:g,y2:v,y3:w}}drawTitle(e,t,r){const n=this.title,o=n.length;let i,a,s;if(o){const c=ar(r.rtl,this.x,this.width);for(e.x=Jo(this,r.titleAlign,r),t.textAlign=c.textAlign(r.titleAlign),t.textBaseline="middle",i=dt(r.titleFont),a=r.titleSpacing,t.fillStyle=r.titleColor,t.font=i.string,s=0;s0!==e)?(e.beginPath(),e.fillStyle=o.multiKeyBackground,it(e,{x:t,y:h,w:c,h:s,radius:a}),e.fill(),e.stroke(),e.fillStyle=i.backgroundColor,e.beginPath(),it(e,{x:r,y:h+1,w:c-2,h:s-2,radius:a}),e.fill()):(e.fillStyle=o.multiKeyBackground,e.fillRect(t,h,c,s),e.strokeRect(t,h,c,s),e.fillStyle=i.backgroundColor,e.fillRect(r,h+1,c-2,s-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,t,r){const{body:n}=this,{bodySpacing:o,bodyAlign:i,displayColors:a,boxHeight:s,boxWidth:c,boxPadding:u}=r,l=dt(r.bodyFont);let f=l.lineHeight,p=0;const d=ar(r.rtl,this.x,this.width),h=function(r){t.fillText(r,d.x(e.x+p),e.y+f/2),e.y+=f+o},y=d.textAlign(i);let m,g,v,w,_,E,S;for(t.textAlign=i,t.textBaseline="middle",t.font=l.string,e.x=Jo(this,y,r),t.fillStyle=r.bodyColor,b(this.beforeBody,h),p=a&&"right"!==y?"center"===i?c/2+u:c+2+u:0,w=0,E=n.length;w0&&t.stroke()}_updateAnimationTarget(e){const t=this.chart,r=this.$animations,n=r&&r.x,o=r&&r.y;if(n||o){const r=Ho[e.position].call(this,this._active,this._eventPosition);if(!r)return;const i=this._size=Xo(this,e),a=Object.assign({},r,this._size),s=Zo(t,e,a),c=Qo(e,a,s,t);n._to===c.x&&o._to===c.y||(this.xAlign=s.xAlign,this.yAlign=s.yAlign,this.width=i.width,this.height=i.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,c))}}_willRender(){return!!this.opacity}draw(e){const t=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(t);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const i=pt(t.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;t.enabled&&a&&(e.save(),e.globalAlpha=r,this.drawBackground(o,e,n,t),sr(e,t.textDirection),o.y+=i.top,this.drawTitle(o,e,t),this.drawBody(o,e,t),this.drawFooter(o,e,t),cr(e,t.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,t){const r=this._active,n=e.map(({datasetIndex:e,index:t})=>{const r=this.chart.getDatasetMeta(e);if(!r)throw new Error("Cannot find a dataset at index "+e);return{datasetIndex:e,element:r.data[t],index:t}}),o=!g(r,n),i=this._positionChanged(n,t);(o||i)&&(this._active=n,this._eventPosition=t,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,t,r=!0){if(t&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],i=this._getActiveElements(e,o,t,r),a=this._positionChanged(i,e),s=t||!g(i,o)||a;return s&&(this._active=i,(n.enabled||n.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,t))),s}_getActiveElements(e,t,r,n){const o=this.options;if("mouseout"===e.type)return[];if(!n)return t;const i=this.chart.getElementsAtEventForMode(e,o.mode,o,r);return o.reverse&&i.reverse(),i}_positionChanged(e,t){const{caretX:r,caretY:n,options:o}=this,i=Ho[o.position].call(this,e,t);return!1!==i&&(r!==i.x||n!==i.y)}}ri.positioners=Ho;var ni={id:"tooltip",_element:ri,positioners:Ho,afterInit(e,t,r){r&&(e.tooltip=new ri({chart:e,options:r}))},beforeUpdate(e,t,r){e.tooltip&&e.tooltip.initialize(r)},reset(e,t,r){e.tooltip&&e.tooltip.initialize(r)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const r={tooltip:t};if(!1===e.notifyPlugins("beforeTooltipDraw",r))return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",r)}},afterEvent(e,t){if(e.tooltip){const r=t.replay;e.tooltip.handleEvent(t.event,r,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:s,title(e){if(e.length>0){const t=e[0],r=t.chart.data.labels,n=r?r.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(n>0&&t.dataIndex"filter"!==e&&"itemSort"!==e&&"external"!==e,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function oi(e,t,r,n){const o=e.indexOf(t);return-1===o?((e,t,r,n)=>("string"==typeof t?(r=e.push(t)-1,n.unshift({index:r,label:t})):isNaN(t)&&(r=null),r))(e,t,r,n):o!==e.lastIndexOf(t)?r:o}class ii extends Gn{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const t=this._addedLabels;if(t.length){const e=this.getLabels();for(const{index:r,label:n}of t)e[r]===n&&e.splice(r,1);this._addedLabels=[]}super.init(e)}parse(e,t){if(u(e))return null;const r=this.getLabels();return((e,t)=>null===e?null:J(Math.round(e),0,t))(t=isFinite(t)&&r[t]===e?t:oi(r,e,h(t,e),this._addedLabels),r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let{min:r,max:n}=this.getMinMax(!0);"ticks"===this.options.bounds&&(e||(r=0),t||(n=this.getLabels().length-1)),this.min=r,this.max=n}buildTicks(){const e=this.min,t=this.max,r=this.options.offset,n=[];let o=this.getLabels();o=0===e&&t===o.length-1?o:o.slice(e,t+1),this._valueRange=Math.max(o.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let r=e;r<=t;r++)n.push({value:r});return n}getLabelForValue(e){const t=this.getLabels();return e>=0&&et.length-1?null:this.getPixelForValue(t[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}function ai(e,t){const r=[],{bounds:n,step:o,min:i,max:a,precision:s,count:c,maxTicks:l,maxDigits:f,includeBounds:p}=e,d=o||1,h=l-1,{min:y,max:m}=t,b=!u(i),g=!u(a),v=!u(c),w=(m-y)/(f+1);let _,E,S,x,O=z((m-y)/h/d)*d;if(O<1e-14&&!b&&!g)return[{value:y},{value:m}];x=Math.ceil(m/O)-Math.floor(y/O),x>h&&(O=z(x*O/h/d)*d),u(s)||(_=Math.pow(10,s),O=Math.ceil(O*_)/_),"ticks"===n?(E=Math.floor(y/O)*O,S=Math.ceil(m/O)*O):(E=y,S=m),b&&g&&o&&function(e,t){const r=Math.round(e);return r-t<=e&&r+t>=e}((a-i)/o,O/1e3)?(x=Math.round(Math.min((a-i)/O,l)),O=(a-i)/x,E=i,S=a):v?(E=b?i:E,S=g?a:S,x=c-1,O=(S-E)/x):(x=(S-E)/O,x=V(x,Math.round(x),O/1e3)?Math.round(x):Math.ceil(x));const A=Math.max($(O),$(E));_=Math.pow(10,u(s)?A:s),E=Math.round(E*_)/_,S=Math.round(S*_)/_;let k=0;for(b&&(p&&E!==i?(r.push({value:i}),En=t?n:e,a=e=>o=r?o:e;if(e){const e=U(n),t=U(o);e<0&&t<0?a(0):e>0&&t>0&&i(0)}if(n===o){let t=1;(o>=Number.MAX_SAFE_INTEGER||n<=Number.MIN_SAFE_INTEGER)&&(t=Math.abs(.05*o)),a(o+t),e||i(n-t)}this.min=n,this.max=o}getTickLimit(){const e=this.options.ticks;let t,{maxTicksLimit:r,stepSize:n}=e;return n?(t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),r=r||11),r&&(t=Math.min(r,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,t=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const n=ai({maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:!1!==t.includeBounds},this._range||this);return"ticks"===e.bounds&&q(n,this,"value"),e.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}configure(){const e=this.ticks;let t=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const n=(r-t)/Math.max(e.length-1,1)/2;t-=n,r+=n}this._startValue=t,this._endValue=r,this._valueRange=r-t}getLabelForValue(e){return ir(e,this.chart.options.locale,this.options.ticks.format)}}class ui extends ci{determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=p(e)?e:0,this.max=p(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),t=e?this.width:this.height,r=H(this.options.ticks.minRotation),n=(e?Math.sin(r):Math.cos(r))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,o.lineHeight/n))}getPixelForValue(e){return null===e?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}function li(e){return 1===e/Math.pow(10,Math.floor(L(e)))}ui.id="linear",ui.defaults={ticks:{callback:Bn.formatters.numeric}};class fi extends Gn{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,t){const r=ci.prototype.parse.apply(this,[e,t]);if(0!==r)return p(r)&&r>0?r:null;this._zero=!0}determineDataLimits(){const{min:e,max:t}=this.getMinMax(!0);this.min=p(e)?Math.max(0,e):null,this.max=p(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:t}=this.getUserBounds();let r=this.min,n=this.max;const o=t=>r=e?r:t,i=e=>n=t?n:e,a=(e,t)=>Math.pow(10,Math.floor(L(e))+t);r===n&&(r<=0?(o(1),i(10)):(o(a(r,-1)),i(a(n,1)))),r<=0&&o(a(n,-1)),n<=0&&i(a(r,1)),this._zero&&this.min!==this._suggestedMin&&r===a(this.min,0)&&o(a(r,-1)),this.min=r,this.max=n}buildTicks(){const e=this.options,t=function(e,t){const r=Math.floor(L(t.max)),n=Math.ceil(t.max/Math.pow(10,r)),o=[];let i=d(e.min,Math.pow(10,Math.floor(L(t.min)))),a=Math.floor(L(i)),s=Math.floor(i/Math.pow(10,a)),c=a<0?Math.pow(10,Math.abs(a)):1;do{o.push({value:i,major:li(i)}),++s,10===s&&(s=1,++a,c=a>=0?1:c),i=Math.round(s*Math.pow(10,a)*c)/c}while(ao?{start:t-r,end:t}:{start:t,end:t+r}}function hi(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},r=Object.assign({},t),n=[],o=[],i=e._pointLabels.length,a=e.options.pointLabels,s=a.centerPointLabels?I/i:0;for(let p=0;pt.r&&(s=(n.end-t.r)/i,e.r=Math.max(e.r,t.r+s)),o.startt.b&&(c=(o.end-t.b)/a,e.b=Math.max(e.b,t.b+c))}function mi(e){return 0===e||180===e?"center":e<180?"left":"right"}function bi(e,t,r){return"right"===r?e-=t:"center"===r&&(e-=t/2),e}function gi(e,t,r){return 90===r||270===r?e-=t/2:(r>270||r<90)&&(e-=t),e}function vi(e,t,r,n){const{ctx:o}=e;if(r)o.arc(e.xCenter,e.yCenter,t,0,R);else{let r=e.getPointPosition(0,t);o.moveTo(r.x,r.y);for(let i=1;i{const r=m(this.options.pointLabels.callback,[e,t],this);return r||0===r?r:""}).filter((e,t)=>this.chart.getDataVisibility(t))}fit(){const e=this.options;e.display&&e.pointLabels.display?hi(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,t,r,n){this.xCenter+=Math.floor((e-t)/2),this.yCenter+=Math.floor((r-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,t,r,n))}getIndexAngle(e){return Z(e*(R/(this._pointLabels.length||1))+H(this.options.startAngle||0))}getDistanceFromCenterForValue(e){if(u(e))return NaN;const t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*t:(e-this.min)*t}getValueForDistanceFromCenter(e){if(u(e))return NaN;const t=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(e){const t=this._pointLabels||[];if(e>=0&&e=0;o--){const t=n.setContext(e.getPointLabelContext(o)),i=dt(t.font),{x:a,y:s,textAlign:c,left:l,top:f,right:p,bottom:d}=e._pointLabelItems[o],{backdropColor:h}=t;if(!u(h)){const e=ft(t.borderRadius),n=pt(t.backdropPadding);r.fillStyle=h;const o=l-n.left,i=f-n.top,a=p-l+n.width,s=d-f+n.height;Object.values(e).some(e=>0!==e)?(r.beginPath(),it(r,{x:o,y:i,w:a,h:s,radius:e}),r.fill()):r.fillRect(o,i,a,s)}nt(r,e._pointLabels[o],a,s+i.lineHeight/2,i,{color:t.color,textAlign:c,textBaseline:"middle"})}}(this,o),n.display&&this.ticks.forEach((e,t)=>{if(0!==t){a=this.getDistanceFromCenterForValue(e.value),function(e,t,r,n){const o=e.ctx,i=t.circular,{color:a,lineWidth:s}=t;!i&&!n||!a||!s||r<0||(o.save(),o.strokeStyle=a,o.lineWidth=s,o.setLineDash(t.borderDash),o.lineDashOffset=t.borderDashOffset,o.beginPath(),vi(e,r,i,n),o.closePath(),o.stroke(),o.restore())}(this,n.setContext(this.getContext(t-1)),a,o)}}),r.display){for(e.save(),i=o-1;i>=0;i--){const n=r.setContext(this.getPointLabelContext(i)),{color:o,lineWidth:c}=n;c&&o&&(e.lineWidth=c,e.strokeStyle=o,e.setLineDash(n.borderDash),e.lineDashOffset=n.borderDashOffset,a=this.getDistanceFromCenterForValue(t.ticks.reverse?this.min:this.max),s=this.getPointPosition(i,a),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(s.x,s.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,t=this.options,r=t.ticks;if(!r.display)return;const n=this.getIndexAngle(0);let o,i;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(n),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((n,a)=>{if(0===a&&!t.reverse)return;const s=r.setContext(this.getContext(a)),c=dt(s.font);if(o=this.getDistanceFromCenterForValue(this.ticks[a].value),s.showLabelBackdrop){e.font=c.string,i=e.measureText(n.label).width,e.fillStyle=s.backdropColor;const t=pt(s.backdropPadding);e.fillRect(-i/2-t.left,-o-c.size/2-t.top,i+t.width,c.size+t.height)}nt(e,n.label,0,-o,c,{color:s.color})}),e.restore()}drawTitle(){}}wi.id="radialLinear",wi.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Bn.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:e=>e,padding:5,centerPointLabels:!1}},wi.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},wi.descriptors={angleLines:{_fallback:"grid"}};const _i={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Ei=Object.keys(_i);function Si(e,t){return e-t}function xi(e,t){if(u(t))return null;const r=e._adapter,{parser:n,round:o,isoWeekday:i}=e._parseOpts;let a=t;return"function"==typeof n&&(a=n(a)),p(a)||(a="string"==typeof n?r.parse(a,n):r.parse(a)),null===a?null:(o&&(a="week"!==o||!W(i)&&!0!==i?r.startOf(a,o):r.startOf(a,"isoWeek",i)),+a)}function Oi(e,t,r,n){const o=Ei.length;for(let i=Ei.indexOf(e);i=t?r[n]:r[o]]=!0}}else e[t]=!0}function ki(e,t,r){const n=[],o={},i=t.length;let a,s;for(a=0;a=0&&(t[c].major=!0);return t}(e,n,o,r):n}class Ci extends Gn{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,t){const r=e.time||(e.time={}),n=this._adapter=new Zr._date(e.adapters.date);S(r.displayFormats,n.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=t.normalized}parse(e,t){return void 0===e?null:xi(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,t=this._adapter,r=e.time.unit||"day";let{min:n,max:o,minDefined:i,maxDefined:a}=this.getUserBounds();function s(e){i||isNaN(e.min)||(n=Math.min(n,e.min)),a||isNaN(e.max)||(o=Math.max(o,e.max))}i&&a||(s(this._getLabelBounds()),"ticks"===e.bounds&&"labels"===e.ticks.source||s(this.getMinMax(!1))),n=p(n)&&!isNaN(n)?n:+t.startOf(Date.now(),r),o=p(o)&&!isNaN(o)?o:+t.endOf(Date.now(),r)+1,this.min=Math.min(n,o-1),this.max=Math.max(n+1,o)}_getLabelBounds(){const e=this.getLabelTimestamps();let t=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(t=e[0],r=e[e.length-1]),{min:t,max:r}}buildTicks(){const e=this.options,t=e.time,r=e.ticks,n="labels"===r.source?this.getLabelTimestamps():this._generate();"ticks"===e.bounds&&n.length&&(this.min=this._userMin||n[0],this.max=this._userMax||n[n.length-1]);const o=this.min,i=function(e,t,r){let n=0,o=e.length;for(;nn&&e[o-1]>r;)o--;return n>0||o=Ei.indexOf(r);i--){const r=Ei[i];if(_i[r].common&&e._adapter.diff(o,n,r)>=t-1)return r}return Ei[r?Ei.indexOf(r):0]}(this,i.length,t.minUnit,this.min,this.max)),this._majorUnit=r.major.enabled&&"year"!==this._unit?function(e){for(let t=Ei.indexOf(e)+1,r=Ei.length;t+e.value))}initOffsets(e){let t,r,n=0,o=0;this.options.offset&&e.length&&(t=this.getDecimalForValue(e[0]),n=1===e.length?1-t:(this.getDecimalForValue(e[1])-t)/2,r=this.getDecimalForValue(e[e.length-1]),o=1===e.length?r:(r-this.getDecimalForValue(e[e.length-2]))/2);const i=e.length<3?.5:.25;n=J(n,0,i),o=J(o,0,i),this._offsets={start:n,end:o,factor:1/(n+1+o)}}_generate(){const e=this._adapter,t=this.min,r=this.max,n=this.options,o=n.time,i=o.unit||Oi(o.minUnit,t,r,this._getLabelCapacity(t)),a=h(o.stepSize,1),s="week"===i&&o.isoWeekday,c=W(s)||!0===s,u={};let l,f,p=t;if(c&&(p=+e.startOf(p,"isoWeek",s)),p=+e.startOf(p,c?"day":i),e.diff(r,t,i)>1e5*a)throw new Error(t+" and "+r+" are too far apart with stepSize of "+a+" "+i);const d="data"===n.ticks.source&&this.getDataTimestamps();for(l=p,f=0;le-t).map(e=>+e)}getLabelForValue(e){const t=this._adapter,r=this.options.time;return r.tooltipFormat?t.format(e,r.tooltipFormat):t.format(e,r.displayFormats.datetime)}_tickFormatFunction(e,t,r,n){const o=this.options,i=o.time.displayFormats,a=this._unit,s=this._majorUnit,c=a&&i[a],u=s&&i[s],l=r[t],f=s&&u&&l&&l.major,p=this._adapter.format(e,n||(f?u:c)),d=o.ticks.callback;return d?m(d,[p,t,r],this):p}generateTickLabels(e){let t,r,n;for(t=0,r=e.length;t0?a:1}getDataTimestamps(){let e,t,r=this._cache.data||[];if(r.length)return r;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,t=n.length;e=e[s].pos&&t<=e[c].pos&&({lo:s,hi:c}=bt(e,"pos",t)),({pos:n,time:i}=e[s]),({pos:o,time:a}=e[c])):(t>=e[s].time&&t<=e[c].time&&({lo:s,hi:c}=bt(e,"time",t)),({time:n,pos:i}=e[s]),({time:o,pos:a}=e[c]));const u=o-n;return u?i+(a-i)*(t-n)/u:i}Ci.id="time",Ci.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};class Ti extends Ci{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(e);this._minPos=Pi(t,this.min),this._tableRange=Pi(t,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:t,max:r}=this,n=[],o=[];let i,a,s,c,u;for(i=0,a=e.length;i=t&&c<=r&&n.push(c);if(n.length<2)return[{time:t,pos:0},{time:r,pos:1}];for(i=0,a=n.length;i"+o+""};e.exports=function(e,t){var r={};r[e]=t(s),n(n.P+n.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",r)}},function(e,t,r){"use strict";var n=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new n},a=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,s=r(21)(),c=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":n,"%TypeErrorPrototype%":n.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=r(6).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return p(e,d,(function(e,r,n,o){t[t.length]=n?p(o,h,"$1"):r||e})),t},m=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t,r){e.exports=function(){"use strict";var e="millisecond",t="second",r="minute",n="hour",o="day",i="week",a="month",s="quarter",c="year",u="date",l=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d+)?$/,f=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p=function(e,t,r){var n=String(e);return!n||n.length>=t?e:""+Array(t+1-n.length).join(r)+e},d={s:p,z:function(e){var t=-e.utcOffset(),r=Math.abs(t),n=Math.floor(r/60),o=r%60;return(t<=0?"+":"-")+p(n,2,"0")+":"+p(o,2,"0")},m:function e(t,r){if(t.date()e.length)&&(t=e.length);for(var r=0,n=new Array(t);r0?"0":"-0":String(t);if("bigint"==typeof t)return String(t)+"n";var c=void 0===s.depth?5:s.depth;if(void 0===n&&(n=0),n>=c&&c>0&&"object"==typeof t)return"[Object]";if(void 0===o)o=[];else if(function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r=0)return"[Circular]";function h(t,r){return r&&(o=o.slice()).push(r),e(t,s,n+1,o)}if("function"==typeof t){var b=function(e){if(e.name)return e.name;var t=y.call(e,/^function\s*([\w$]+)/);if(t)return t[1];return null}(t);return"[Function"+(b?": "+b:"")+"]"}if(E(t)){var S=Symbol.prototype.toString.call(t);return"object"==typeof t?k(S):S}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var I="<"+String(t.nodeName).toLowerCase(),R=t.attributes||[],j=0;j"}if(_(t))return 0===t.length?"[]":"[ "+T(t,h).join(", ")+" ]";if(function(e){return"[object Error]"===O(e)}(t)){var N=T(t,h);return 0===N.length?"["+String(t)+"]":"{ ["+String(t)+"] "+N.join(", ")+" }"}if("object"==typeof t){if(g&&"function"==typeof t[g])return t[g]();if("function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{u.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var M=[];return a.call(t,(function(e,r){M.push(h(r,t)+" => "+h(e,t))})),P("Map",i.call(t),M)}if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{u.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var D=[];return l.call(t,(function(e){D.push(h(e,t))})),P("Set",u.call(t),D)}if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return C("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return C("WeakSet");if(function(e){return"[object Number]"===O(e)}(t))return k(h(Number(t)));if(function(e){return"[object BigInt]"===O(e)}(t))return k(h(m.call(t)));if(function(e){return"[object Boolean]"===O(e)}(t))return k(d.call(t));if(function(e){return"[object String]"===O(e)}(t))return k(h(String(t)));if(!function(e){return"[object Date]"===O(e)}(t)&&!function(e){return"[object RegExp]"===O(e)}(t)){var B=T(t,h);return 0===B.length?"{}":"{ "+B.join(", ")+" }"}return String(t)};var S=Object.prototype.hasOwnProperty||function(e){return e in this};function x(e,t){return S.call(e,t)}function O(e){return h.call(e)}function A(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+t.toString(16)}function k(e){return"Object("+e+")"}function C(e){return e+" { ? }"}function P(e,t,r){return e+" ("+t+") {"+r.join(", ")+"}"}function T(e,t){var r=_(e),n=[];if(r){n.length=e.length;for(var o=0;o=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r},H=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},G=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return!1===t?String(e):String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},$=function(e){var t=Q(e,w.TITLE),r=Q(e,B);if(r&&t)return r.replace(/%s/g,(function(){return Array.isArray(t)?t.join(""):t}));var n=Q(e,j);return t||n||void 0},Y=function(e){return Q(e,D)||function(){}},X=function(e,t){return t.filter((function(t){return void 0!==t[e]})).map((function(t){return t[e]})).reduce((function(e,t){return V({},e,t)}),{})},K=function(e,t){return t.filter((function(e){return void 0!==e[w.BASE]})).map((function(e){return e[w.BASE]})).reverse().reduce((function(t,r){if(!t.length)for(var n=Object.keys(r),o=0;o=0;r--){var n=e[r];if(n.hasOwnProperty(t))return n[t]}return null},J=(n=Date.now(),function(e){var t=Date.now();t-n>16?(n=t,e(t)):setTimeout((function(){J(e)}),0)}),ee=function(e){return clearTimeout(e)},te="undefined"!=typeof window?window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||J:e.requestAnimationFrame||J,re="undefined"!=typeof window?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||ee:e.cancelAnimationFrame||ee,ne=function(e){return console&&"function"==typeof console.warn&&console.warn(e)},oe=null,ie=function(e,t){var r=e.baseTag,n=e.bodyAttributes,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.onChangeClientState,u=e.scriptTags,l=e.styleTags,f=e.title,p=e.titleAttributes;ce(w.BODY,n),ce(w.HTML,o),se(f,p);var d={baseTag:ue(w.BASE,r),linkTags:ue(w.LINK,i),metaTags:ue(w.META,a),noscriptTags:ue(w.NOSCRIPT,s),scriptTags:ue(w.SCRIPT,u),styleTags:ue(w.STYLE,l)},h={},y={};Object.keys(d).forEach((function(e){var t=d[e],r=t.newTags,n=t.oldTags;r.length&&(h[e]=r),n.length&&(y[e]=d[e].oldTags)})),t&&t(),c(e,h,y)},ae=function(e){return Array.isArray(e)?e.join(""):e},se=function(e,t){void 0!==e&&document.title!==e&&(document.title=ae(e)),ce(w.TITLE,t)},ce=function(e,t){var r=document.getElementsByTagName(e)[0];if(r){for(var n=r.getAttribute("data-react-helmet"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(t),s=0;s=0;f--)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-react-helmet"):r.getAttribute("data-react-helmet")!==a.join(",")&&r.setAttribute("data-react-helmet",a.join(","))}},ue=function(e,t){var r=document.head||document.querySelector(w.HEAD),n=r.querySelectorAll(e+"[data-react-helmet]"),o=Array.prototype.slice.call(n),i=[],a=void 0;return t&&t.length&&t.forEach((function(t){var r=document.createElement(e);for(var n in t)if(t.hasOwnProperty(n))if(n===O)r.innerHTML=t.innerHTML;else if(n===E)r.styleSheet?r.styleSheet.cssText=t.cssText:r.appendChild(document.createTextNode(t.cssText));else{var s=void 0===t[n]?"":t[n];r.setAttribute(n,s)}r.setAttribute("data-react-helmet","true"),o.some((function(e,t){return a=t,r.isEqualNode(e)}))?o.splice(a,1):i.push(r)})),o.forEach((function(e){return e.parentNode.removeChild(e)})),i.forEach((function(e){return r.appendChild(e)})),{oldTags:o,newTags:i}},le=function(e){return Object.keys(e).reduce((function(t,r){var n=void 0!==e[r]?r+'="'+e[r]+'"':""+r;return t?t+" "+n:n}),"")},fe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[R[r]||r]=e[r],t}),t)},pe=function(e,t,r){switch(e){case w.TITLE:return{toComponent:function(){return e=t.title,r=t.titleAttributes,(n={key:e})["data-react-helmet"]=!0,o=fe(r,n),[h.a.createElement(w.TITLE,o,e)];var e,r,n,o},toString:function(){return function(e,t,r,n){var o=le(r),i=ae(t);return o?"<"+e+' data-react-helmet="true" '+o+">"+G(i,n)+"":"<"+e+' data-react-helmet="true">'+G(i,n)+""}(e,t.title,t.titleAttributes,r)}};case b:case g:return{toComponent:function(){return fe(t)},toString:function(){return le(t)}};default:return{toComponent:function(){return function(e,t){return t.map((function(t,r){var n,o=((n={key:r})["data-react-helmet"]=!0,n);return Object.keys(t).forEach((function(e){var r=R[e]||e;if(r===O||r===E){var n=t.innerHTML||t.cssText;o.dangerouslySetInnerHTML={__html:n}}else o[r]=t[e]})),h.a.createElement(e,o)}))}(e,t)},toString:function(){return function(e,t,r){return t.reduce((function(t,n){var o=Object.keys(n).filter((function(e){return!(e===O||e===E)})).reduce((function(e,t){var o=void 0===n[t]?t:t+'="'+G(n[t],r)+'"';return e?e+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===L.indexOf(e);return t+"<"+e+' data-react-helmet="true" '+o+(a?"/>":">"+i+"")}),"")}(e,t,r)}}}},de=function(e){var t=e.baseTag,r=e.bodyAttributes,n=e.encode,o=e.htmlAttributes,i=e.linkTags,a=e.metaTags,s=e.noscriptTags,c=e.scriptTags,u=e.styleTags,l=e.title,f=void 0===l?"":l,p=e.titleAttributes;return{base:pe(w.BASE,t,n),bodyAttributes:pe(b,r,n),htmlAttributes:pe(g,o,n),link:pe(w.LINK,i,n),meta:pe(w.META,a,n),noscript:pe(w.NOSCRIPT,s,n),script:pe(w.SCRIPT,c,n),style:pe(w.STYLE,u,n),title:pe(w.TITLE,{title:f,titleAttributes:p},n)}},he=l()((function(e){return{baseTag:K([S,I],e),bodyAttributes:X(b,e),defer:Q(e,N),encode:Q(e,M),htmlAttributes:X(g,e),linkTags:Z(w.LINK,[P,S],e),metaTags:Z(w.META,[k,_,x,C,A],e),noscriptTags:Z(w.NOSCRIPT,[O],e),onChangeClientState:Y(e),scriptTags:Z(w.SCRIPT,[T,O],e),styleTags:Z(w.STYLE,[E],e),title:$(e),titleAttributes:X(v,e)}}),(function(e){oe&&re(oe),e.defer?oe=te((function(){ie(e,(function(){oe=null}))})):(ie(e),oe=null)}),de)((function(){return null})),ye=(o=he,a=i=function(e){function t(){return z(this,t),H(this,e.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.prototype.shouldComponentUpdate=function(e){return!p()(this.props,e)},t.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case w.SCRIPT:case w.NOSCRIPT:return{innerHTML:t};case w.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},t.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,n=e.arrayTypeChildren,o=e.newChildProps,i=e.nestedChildren;return V({},n,((t={})[r.type]=[].concat(n[r.type]||[],[V({},o,this.mapNestedChildrenToProps(r,i))]),t))},t.prototype.mapObjectTypeChildren=function(e){var t,r,n=e.child,o=e.newProps,i=e.newChildProps,a=e.nestedChildren;switch(n.type){case w.TITLE:return V({},o,((t={})[n.type]=a,t.titleAttributes=V({},i),t));case w.BODY:return V({},o,{bodyAttributes:V({},i)});case w.HTML:return V({},o,{htmlAttributes:V({},i)})}return V({},o,((r={})[n.type]=V({},i),r))},t.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=V({},t);return Object.keys(e).forEach((function(t){var n;r=V({},r,((n={})[t]=e[t],n))})),r},t.prototype.warnOnInvalidChildren=function(e,t){return!0},t.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return h.a.Children.forEach(e,(function(e){if(e&&e.props){var o=e.props,i=o.children,a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(e).reduce((function(t,r){return t[F[r]||r]=e[r],t}),t)}(q(o,["children"]));switch(r.warnOnInvalidChildren(e,i),e.type){case w.LINK:case w.META:case w.NOSCRIPT:case w.SCRIPT:case w.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:a,nestedChildren:i});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:a,nestedChildren:i})}}})),t=this.mapArrayTypeChildrenToProps(n,t)},t.prototype.render=function(){var e=this.props,t=e.children,r=q(e,["children"]),n=V({},r);return t&&(n=this.mapChildrenToProps(t,n)),h.a.createElement(o,n)},W(t,null,[{key:"canUseDOM",set:function(e){o.canUseDOM=e}}]),t}(h.a.Component),i.propTypes={base:c.a.object,bodyAttributes:c.a.object,children:c.a.oneOfType([c.a.arrayOf(c.a.node),c.a.node]),defaultTitle:c.a.string,defer:c.a.bool,encodeSpecialCharacters:c.a.bool,htmlAttributes:c.a.object,link:c.a.arrayOf(c.a.object),meta:c.a.arrayOf(c.a.object),noscript:c.a.arrayOf(c.a.object),onChangeClientState:c.a.func,script:c.a.arrayOf(c.a.object),style:c.a.arrayOf(c.a.object),title:c.a.string,titleAttributes:c.a.object,titleTemplate:c.a.string},i.defaultProps={defer:!0,encodeSpecialCharacters:!0},i.peek=o.peek,i.rewind=function(){var e=o.rewind();return e||(e=de({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),e},a);ye.renderStatic=ye.rewind}).call(this,r(38))},function(e,t,r){var n=r(293),o=r(1248);e.exports=o,e.exports.default=o,e.exports.Quill=n,e.exports.Mixin=r(447),e.exports.Toolbar=r(1349)},function(e,t){var r=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(44);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t){var r=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:r)(e)}},function(e,t,r){"use strict";var n=r(15);e.exports=function(e,t){return!!e&&n((function(){t?e.call(null,(function(){}),1):e.call(null)}))}},function(e,t,r){(function(e,n){var o; /** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors */(function(){var i="Expected a function",a="__lodash_placeholder__",s=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],c="[object Arguments]",u="[object Array]",l="[object Boolean]",f="[object Date]",p="[object Error]",d="[object Function]",h="[object GeneratorFunction]",y="[object Map]",m="[object Number]",b="[object Object]",g="[object RegExp]",v="[object Set]",w="[object String]",_="[object Symbol]",E="[object WeakMap]",S="[object ArrayBuffer]",x="[object DataView]",O="[object Float32Array]",A="[object Float64Array]",k="[object Int8Array]",C="[object Int16Array]",P="[object Int32Array]",T="[object Uint8Array]",I="[object Uint16Array]",R="[object Uint32Array]",j=/\b__p \+= '';/g,N=/\b(__p \+=) '' \+/g,M=/(__e\(.*?\)|\b__t\)) \+\n'';/g,D=/&(?:amp|lt|gt|quot|#39);/g,B=/[&<>"']/g,F=RegExp(D.source),L=RegExp(B.source),U=/<%-([\s\S]+?)%>/g,z=/<%([\s\S]+?)%>/g,W=/<%=([\s\S]+?)%>/g,V=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,q=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,G=/[\\^$.*+?()[\]{}|]/g,$=RegExp(G.source),Y=/^\s+|\s+$/g,X=/^\s+/,K=/\s+$/,Z=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Q=/\{\n\/\* \[wrapped with (.+)\] \*/,J=/,? & /,ee=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,te=/\\(\\)?/g,re=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ne=/\w*$/,oe=/^[-+]0x[0-9a-f]+$/i,ie=/^0b[01]+$/i,ae=/^\[object .+?Constructor\]$/,se=/^0o[0-7]+$/i,ce=/^(?:0|[1-9]\d*)$/,ue=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,le=/($^)/,fe=/['\n\r\u2028\u2029\\]/g,pe="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",de="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",he="[\\ud800-\\udfff]",ye="["+de+"]",me="["+pe+"]",be="\\d+",ge="[\\u2700-\\u27bf]",ve="[a-z\\xdf-\\xf6\\xf8-\\xff]",we="[^\\ud800-\\udfff"+de+be+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",_e="\\ud83c[\\udffb-\\udfff]",Ee="[^\\ud800-\\udfff]",Se="(?:\\ud83c[\\udde6-\\uddff]){2}",xe="[\\ud800-\\udbff][\\udc00-\\udfff]",Oe="[A-Z\\xc0-\\xd6\\xd8-\\xde]",Ae="(?:"+ve+"|"+we+")",ke="(?:"+Oe+"|"+we+")",Ce="(?:"+me+"|"+_e+")"+"?",Pe="[\\ufe0e\\ufe0f]?"+Ce+("(?:\\u200d(?:"+[Ee,Se,xe].join("|")+")[\\ufe0e\\ufe0f]?"+Ce+")*"),Te="(?:"+[ge,Se,xe].join("|")+")"+Pe,Ie="(?:"+[Ee+me+"?",me,Se,xe,he].join("|")+")",Re=RegExp("['’]","g"),je=RegExp(me,"g"),Ne=RegExp(_e+"(?="+_e+")|"+Ie+Pe,"g"),Me=RegExp([Oe+"?"+ve+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[ye,Oe,"$"].join("|")+")",ke+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[ye,Oe+Ae,"$"].join("|")+")",Oe+"?"+Ae+"+(?:['’](?:d|ll|m|re|s|t|ve))?",Oe+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",be,Te].join("|"),"g"),De=RegExp("[\\u200d\\ud800-\\udfff"+pe+"\\ufe0e\\ufe0f]"),Be=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Fe=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Le=-1,Ue={};Ue[O]=Ue[A]=Ue[k]=Ue[C]=Ue[P]=Ue[T]=Ue["[object Uint8ClampedArray]"]=Ue[I]=Ue[R]=!0,Ue[c]=Ue[u]=Ue[S]=Ue[l]=Ue[x]=Ue[f]=Ue[p]=Ue[d]=Ue[y]=Ue[m]=Ue[b]=Ue[g]=Ue[v]=Ue[w]=Ue[E]=!1;var ze={};ze[c]=ze[u]=ze[S]=ze[x]=ze[l]=ze[f]=ze[O]=ze[A]=ze[k]=ze[C]=ze[P]=ze[y]=ze[m]=ze[b]=ze[g]=ze[v]=ze[w]=ze[_]=ze[T]=ze["[object Uint8ClampedArray]"]=ze[I]=ze[R]=!0,ze[p]=ze[d]=ze[E]=!1;var We={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Ve=parseFloat,qe=parseInt,He="object"==typeof e&&e&&e.Object===Object&&e,Ge="object"==typeof self&&self&&self.Object===Object&&self,$e=He||Ge||Function("return this")(),Ye=t&&!t.nodeType&&t,Xe=Ye&&"object"==typeof n&&n&&!n.nodeType&&n,Ke=Xe&&Xe.exports===Ye,Ze=Ke&&He.process,Qe=function(){try{var e=Xe&&Xe.require&&Xe.require("util").types;return e||Ze&&Ze.binding&&Ze.binding("util")}catch(e){}}(),Je=Qe&&Qe.isArrayBuffer,et=Qe&&Qe.isDate,tt=Qe&&Qe.isMap,rt=Qe&&Qe.isRegExp,nt=Qe&&Qe.isSet,ot=Qe&&Qe.isTypedArray;function it(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function at(e,t,r,n){for(var o=-1,i=null==e?0:e.length;++o-1}function pt(e,t,r){for(var n=-1,o=null==e?0:e.length;++n-1;);return r}function Nt(e,t){for(var r=e.length;r--&&_t(t,e[r],0)>-1;);return r}function Mt(e,t){for(var r=e.length,n=0;r--;)e[r]===t&&++n;return n}var Dt=At({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),Bt=At({"&":"&","<":"<",">":">",'"':""","'":"'"});function Ft(e){return"\\"+We[e]}function Lt(e){return De.test(e)}function Ut(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}function zt(e,t){return function(r){return e(t(r))}}function Wt(e,t){for(var r=-1,n=e.length,o=0,i=[];++r",""":'"',"'":"'"});var Yt=function e(t){var r,n=(t=null==t?$e:Yt.defaults($e.Object(),t,Yt.pick($e,Fe))).Array,o=t.Date,pe=t.Error,de=t.Function,he=t.Math,ye=t.Object,me=t.RegExp,be=t.String,ge=t.TypeError,ve=n.prototype,we=de.prototype,_e=ye.prototype,Ee=t["__core-js_shared__"],Se=we.toString,xe=_e.hasOwnProperty,Oe=0,Ae=(r=/[^.]+$/.exec(Ee&&Ee.keys&&Ee.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",ke=_e.toString,Ce=Se.call(ye),Pe=$e._,Te=me("^"+Se.call(xe).replace(G,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ie=Ke?t.Buffer:void 0,Ne=t.Symbol,De=t.Uint8Array,We=Ie?Ie.allocUnsafe:void 0,He=zt(ye.getPrototypeOf,ye),Ge=ye.create,Ye=_e.propertyIsEnumerable,Xe=ve.splice,Ze=Ne?Ne.isConcatSpreadable:void 0,Qe=Ne?Ne.iterator:void 0,gt=Ne?Ne.toStringTag:void 0,At=function(){try{var e=ei(ye,"defineProperty");return e({},"",{}),e}catch(e){}}(),Xt=t.clearTimeout!==$e.clearTimeout&&t.clearTimeout,Kt=o&&o.now!==$e.Date.now&&o.now,Zt=t.setTimeout!==$e.setTimeout&&t.setTimeout,Qt=he.ceil,Jt=he.floor,er=ye.getOwnPropertySymbols,tr=Ie?Ie.isBuffer:void 0,rr=t.isFinite,nr=ve.join,or=zt(ye.keys,ye),ir=he.max,ar=he.min,sr=o.now,cr=t.parseInt,ur=he.random,lr=ve.reverse,fr=ei(t,"DataView"),pr=ei(t,"Map"),dr=ei(t,"Promise"),hr=ei(t,"Set"),yr=ei(t,"WeakMap"),mr=ei(ye,"create"),br=yr&&new yr,gr={},vr=ki(fr),wr=ki(pr),_r=ki(dr),Er=ki(hr),Sr=ki(yr),xr=Ne?Ne.prototype:void 0,Or=xr?xr.valueOf:void 0,Ar=xr?xr.toString:void 0;function kr(e){if(qa(e)&&!ja(e)&&!(e instanceof Ir)){if(e instanceof Tr)return e;if(xe.call(e,"__wrapped__"))return Ci(e)}return new Tr(e)}var Cr=function(){function e(){}return function(t){if(!Va(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();function Pr(){}function Tr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}function Ir(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}function Rr(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t=t?e:t)),e}function Xr(e,t,r,n,o,i){var a,s=1&t,u=2&t,p=4&t;if(r&&(a=o?r(e,n,o,i):r(e)),void 0!==a)return a;if(!Va(e))return e;var E=ja(e);if(E){if(a=function(e){var t=e.length,r=new e.constructor(t);t&&"string"==typeof e[0]&&xe.call(e,"index")&&(r.index=e.index,r.input=e.input);return r}(e),!s)return go(e,a)}else{var j=ni(e),N=j==d||j==h;if(Ba(e))return fo(e,s);if(j==b||j==c||N&&!o){if(a=u||N?{}:ii(e),!s)return u?function(e,t){return vo(e,ri(e),t)}(e,function(e,t){return e&&vo(t,_s(t),e)}(a,e)):function(e,t){return vo(e,ti(e),t)}(e,Hr(a,e))}else{if(!ze[j])return o?e:{};a=function(e,t,r){var n=e.constructor;switch(t){case S:return po(e);case l:case f:return new n(+e);case x:return function(e,t){var r=t?po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}(e,r);case O:case A:case k:case C:case P:case T:case"[object Uint8ClampedArray]":case I:case R:return ho(e,r);case y:return new n;case m:case w:return new n(e);case g:return function(e){var t=new e.constructor(e.source,ne.exec(e));return t.lastIndex=e.lastIndex,t}(e);case v:return new n;case _:return o=e,Or?ye(Or.call(o)):{}}var o}(e,j,s)}}i||(i=new Dr);var M=i.get(e);if(M)return M;i.set(e,a),Xa(e)?e.forEach((function(n){a.add(Xr(n,t,r,n,e,i))})):Ha(e)&&e.forEach((function(n,o){a.set(o,Xr(n,t,r,o,e,i))}));var D=E?void 0:(p?u?$o:Go:u?_s:ws)(e);return st(D||e,(function(n,o){D&&(n=e[o=n]),Wr(a,o,Xr(n,t,r,o,e,i))})),a}function Kr(e,t,r){var n=r.length;if(null==e)return!n;for(e=ye(e);n--;){var o=r[n],i=t[o],a=e[o];if(void 0===a&&!(o in e)||!i(a))return!1}return!0}function Zr(e,t,r){if("function"!=typeof e)throw new ge(i);return wi((function(){e.apply(void 0,r)}),t)}function Qr(e,t,r,n){var o=-1,i=ft,a=!0,s=e.length,c=[],u=t.length;if(!s)return c;r&&(t=dt(t,Tt(r))),n?(i=pt,a=!1):t.length>=200&&(i=Rt,a=!1,t=new Mr(t));e:for(;++o-1},jr.prototype.set=function(e,t){var r=this.__data__,n=Vr(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},Nr.prototype.clear=function(){this.size=0,this.__data__={hash:new Rr,map:new(pr||jr),string:new Rr}},Nr.prototype.delete=function(e){var t=Qo(this,e).delete(e);return this.size-=t?1:0,t},Nr.prototype.get=function(e){return Qo(this,e).get(e)},Nr.prototype.has=function(e){return Qo(this,e).has(e)},Nr.prototype.set=function(e,t){var r=Qo(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},Mr.prototype.add=Mr.prototype.push=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},Mr.prototype.has=function(e){return this.__data__.has(e)},Dr.prototype.clear=function(){this.__data__=new jr,this.size=0},Dr.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Dr.prototype.get=function(e){return this.__data__.get(e)},Dr.prototype.has=function(e){return this.__data__.has(e)},Dr.prototype.set=function(e,t){var r=this.__data__;if(r instanceof jr){var n=r.__data__;if(!pr||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new Nr(n)}return r.set(e,t),this.size=r.size,this};var Jr=Eo(cn),en=Eo(un,!0);function tn(e,t){var r=!0;return Jr(e,(function(e,n,o){return r=!!t(e,n,o)})),r}function rn(e,t,r){for(var n=-1,o=e.length;++n0&&r(s)?t>1?on(s,t-1,r,n,o):ht(o,s):n||(o[o.length]=s)}return o}var an=So(),sn=So(!0);function cn(e,t){return e&&an(e,t,ws)}function un(e,t){return e&&sn(e,t,ws)}function ln(e,t){return lt(t,(function(t){return Ua(e[t])}))}function fn(e,t){for(var r=0,n=(t=so(t,e)).length;null!=e&&rt}function yn(e,t){return null!=e&&xe.call(e,t)}function mn(e,t){return null!=e&&t in ye(e)}function bn(e,t,r){for(var o=r?pt:ft,i=e[0].length,a=e.length,s=a,c=n(a),u=1/0,l=[];s--;){var f=e[s];s&&t&&(f=dt(f,Tt(t))),u=ar(f.length,u),c[s]=!r&&(t||i>=120&&f.length>=120)?new Mr(s&&f):void 0}f=e[0];var p=-1,d=c[0];e:for(;++p=s)return c;var u=r[n];return c*("desc"==u?-1:1)}}return e.index-t.index}(e,t,r)}))}function jn(e,t,r){for(var n=-1,o=t.length,i={};++n-1;)s!==e&&Xe.call(s,c,1),Xe.call(e,c,1);return e}function Mn(e,t){for(var r=e?t.length:0,n=r-1;r--;){var o=t[r];if(r==n||o!==i){var i=o;si(o)?Xe.call(e,o,1):Jn(e,o)}}return e}function Dn(e,t){return e+Jt(ur()*(t-e+1))}function Bn(e,t){var r="";if(!e||t<1||t>9007199254740991)return r;do{t%2&&(r+=e),(t=Jt(t/2))&&(e+=e)}while(t);return r}function Fn(e,t){return _i(yi(e,t,Gs),e+"")}function Ln(e){return Fr(Ps(e))}function Un(e,t){var r=Ps(e);return xi(r,Yr(t,0,r.length))}function zn(e,t,r,n){if(!Va(e))return e;for(var o=-1,i=(t=so(t,e)).length,a=i-1,s=e;null!=s&&++oi?0:i+t),(r=r>i?i:r)<0&&(r+=i),i=t>r?0:r-t>>>0,t>>>=0;for(var a=n(i);++o>>1,a=e[i];null!==a&&!Za(a)&&(r?a<=t:a=200){var u=t?null:Fo(e);if(u)return Vt(u);a=!1,o=Rt,c=new Mr}else c=t?[]:s;e:for(;++n=n?e:Hn(e,t,r)}var lo=Xt||function(e){return $e.clearTimeout(e)};function fo(e,t){if(t)return e.slice();var r=e.length,n=We?We(r):new e.constructor(r);return e.copy(n),n}function po(e){var t=new e.constructor(e.byteLength);return new De(t).set(new De(e)),t}function ho(e,t){var r=t?po(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}function yo(e,t){if(e!==t){var r=void 0!==e,n=null===e,o=e==e,i=Za(e),a=void 0!==t,s=null===t,c=t==t,u=Za(t);if(!s&&!u&&!i&&e>t||i&&a&&c&&!s&&!u||n&&a&&c||!r&&c||!o)return 1;if(!n&&!i&&!u&&e1?r[o-1]:void 0,a=o>2?r[2]:void 0;for(i=e.length>3&&"function"==typeof i?(o--,i):void 0,a&&ci(r[0],r[1],a)&&(i=o<3?void 0:i,o=1),t=ye(t);++n-1?o[i?t[a]:a]:void 0}}function Co(e){return Ho((function(t){var r=t.length,n=r,o=Tr.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if("function"!=typeof a)throw new ge(i);if(o&&!s&&"wrapper"==Xo(a))var s=new Tr([],!0)}for(n=s?n:r;++n1&&v.reverse(),f&&us))return!1;var u=i.get(e);if(u&&i.get(t))return u==t;var l=-1,f=!0,p=2&r?new Mr:void 0;for(i.set(e,t),i.set(t,e);++l-1&&e%1==0&&e1?"& ":"")+t[n],t=t.join(r>2?", ":" "),e.replace(Z,"{\n/* [wrapped with "+t+"] */\n")}(n,function(e,t){return st(s,(function(r){var n="_."+r[0];t&r[1]&&!ft(e,n)&&e.push(n)})),e.sort()}(function(e){var t=e.match(Q);return t?t[1].split(J):[]}(n),r)))}function Si(e){var t=0,r=0;return function(){var n=sr(),o=16-(n-r);if(r=n,o>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function xi(e,t){var r=-1,n=e.length,o=n-1;for(t=void 0===t?n:t;++r1?e[t-1]:void 0;return r="function"==typeof r?(e.pop(),r):void 0,Yi(e,r)}));function ta(e){var t=kr(e);return t.__chain__=!0,t}function ra(e,t){return t(e)}var na=Ho((function(e){var t=e.length,r=t?e[0]:0,n=this.__wrapped__,o=function(t){return $r(t,e)};return!(t>1||this.__actions__.length)&&n instanceof Ir&&si(r)?((n=n.slice(r,+r+(t?1:0))).__actions__.push({func:ra,args:[o],thisArg:void 0}),new Tr(n,this.__chain__).thru((function(e){return t&&!e.length&&e.push(void 0),e}))):this.thru(o)}));var oa=wo((function(e,t,r){xe.call(e,r)?++e[r]:Gr(e,r,1)}));var ia=ko(Ri),aa=ko(ji);function sa(e,t){return(ja(e)?st:Jr)(e,Zo(t,3))}function ca(e,t){return(ja(e)?ct:en)(e,Zo(t,3))}var ua=wo((function(e,t,r){xe.call(e,r)?e[r].push(t):Gr(e,r,[t])}));var la=Fn((function(e,t,r){var o=-1,i="function"==typeof t,a=Ma(e)?n(e.length):[];return Jr(e,(function(e){a[++o]=i?it(t,e,r):gn(e,t,r)})),a})),fa=wo((function(e,t,r){Gr(e,r,t)}));function pa(e,t){return(ja(e)?dt:kn)(e,Zo(t,3))}var da=wo((function(e,t,r){e[r?0:1].push(t)}),(function(){return[[],[]]}));var ha=Fn((function(e,t){if(null==e)return[];var r=t.length;return r>1&&ci(e,t[0],t[1])?t=[]:r>2&&ci(t[0],t[1],t[2])&&(t=[t[0]]),Rn(e,on(t,1),[])})),ya=Kt||function(){return $e.Date.now()};function ma(e,t,r){return t=r?void 0:t,Uo(e,128,void 0,void 0,void 0,void 0,t=e&&null==t?e.length:t)}function ba(e,t){var r;if("function"!=typeof t)throw new ge(i);return e=ns(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=void 0),r}}var ga=Fn((function(e,t,r){var n=1;if(r.length){var o=Wt(r,Ko(ga));n|=32}return Uo(e,n,t,r,o)})),va=Fn((function(e,t,r){var n=3;if(r.length){var o=Wt(r,Ko(va));n|=32}return Uo(t,n,e,r,o)}));function wa(e,t,r){var n,o,a,s,c,u,l=0,f=!1,p=!1,d=!0;if("function"!=typeof e)throw new ge(i);function h(t){var r=n,i=o;return n=o=void 0,l=t,s=e.apply(i,r)}function y(e){return l=e,c=wi(b,t),f?h(e):s}function m(e){var r=e-u;return void 0===u||r>=t||r<0||p&&e-l>=a}function b(){var e=ya();if(m(e))return g(e);c=wi(b,function(e){var r=t-(e-u);return p?ar(r,a-(e-l)):r}(e))}function g(e){return c=void 0,d&&n?h(e):(n=o=void 0,s)}function v(){var e=ya(),r=m(e);if(n=arguments,o=this,u=e,r){if(void 0===c)return y(u);if(p)return lo(c),c=wi(b,t),h(u)}return void 0===c&&(c=wi(b,t)),s}return t=is(t)||0,Va(r)&&(f=!!r.leading,a=(p="maxWait"in r)?ir(is(r.maxWait)||0,t):a,d="trailing"in r?!!r.trailing:d),v.cancel=function(){void 0!==c&&lo(c),l=0,n=u=o=c=void 0},v.flush=function(){return void 0===c?s:g(ya())},v}var _a=Fn((function(e,t){return Zr(e,1,t)})),Ea=Fn((function(e,t,r){return Zr(e,is(t)||0,r)}));function Sa(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new ge(i);var r=function(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a)||i,a};return r.cache=new(Sa.Cache||Nr),r}function xa(e){if("function"!=typeof e)throw new ge(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Sa.Cache=Nr;var Oa=co((function(e,t){var r=(t=1==t.length&&ja(t[0])?dt(t[0],Tt(Zo())):dt(on(t,1),Tt(Zo()))).length;return Fn((function(n){for(var o=-1,i=ar(n.length,r);++o=t})),Ra=vn(function(){return arguments}())?vn:function(e){return qa(e)&&xe.call(e,"callee")&&!Ye.call(e,"callee")},ja=n.isArray,Na=Je?Tt(Je):function(e){return qa(e)&&dn(e)==S};function Ma(e){return null!=e&&Wa(e.length)&&!Ua(e)}function Da(e){return qa(e)&&Ma(e)}var Ba=tr||ic,Fa=et?Tt(et):function(e){return qa(e)&&dn(e)==f};function La(e){if(!qa(e))return!1;var t=dn(e);return t==p||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!$a(e)}function Ua(e){if(!Va(e))return!1;var t=dn(e);return t==d||t==h||"[object AsyncFunction]"==t||"[object Proxy]"==t}function za(e){return"number"==typeof e&&e==ns(e)}function Wa(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}function Va(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qa(e){return null!=e&&"object"==typeof e}var Ha=tt?Tt(tt):function(e){return qa(e)&&ni(e)==y};function Ga(e){return"number"==typeof e||qa(e)&&dn(e)==m}function $a(e){if(!qa(e)||dn(e)!=b)return!1;var t=He(e);if(null===t)return!0;var r=xe.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&Se.call(r)==Ce}var Ya=rt?Tt(rt):function(e){return qa(e)&&dn(e)==g};var Xa=nt?Tt(nt):function(e){return qa(e)&&ni(e)==v};function Ka(e){return"string"==typeof e||!ja(e)&&qa(e)&&dn(e)==w}function Za(e){return"symbol"==typeof e||qa(e)&&dn(e)==_}var Qa=ot?Tt(ot):function(e){return qa(e)&&Wa(e.length)&&!!Ue[dn(e)]};var Ja=Mo(An),es=Mo((function(e,t){return e<=t}));function ts(e){if(!e)return[];if(Ma(e))return Ka(e)?Gt(e):go(e);if(Qe&&e[Qe])return function(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}(e[Qe]());var t=ni(e);return(t==y?Ut:t==v?Vt:Ps)(e)}function rs(e){return e?(e=is(e))===1/0||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ns(e){var t=rs(e),r=t%1;return t==t?r?t-r:t:0}function os(e){return e?Yr(ns(e),0,4294967295):0}function is(e){if("number"==typeof e)return e;if(Za(e))return NaN;if(Va(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Va(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(Y,"");var r=ie.test(e);return r||se.test(e)?qe(e.slice(2),r?2:8):oe.test(e)?NaN:+e}function as(e){return vo(e,_s(e))}function ss(e){return null==e?"":Zn(e)}var cs=_o((function(e,t){if(pi(t)||Ma(t))vo(t,ws(t),e);else for(var r in t)xe.call(t,r)&&Wr(e,r,t[r])})),us=_o((function(e,t){vo(t,_s(t),e)})),ls=_o((function(e,t,r,n){vo(t,_s(t),e,n)})),fs=_o((function(e,t,r,n){vo(t,ws(t),e,n)})),ps=Ho($r);var ds=Fn((function(e,t){e=ye(e);var r=-1,n=t.length,o=n>2?t[2]:void 0;for(o&&ci(t[0],t[1],o)&&(n=1);++r1),t})),vo(e,$o(e),r),n&&(r=Xr(r,7,Vo));for(var o=t.length;o--;)Jn(r,t[o]);return r}));var Os=Ho((function(e,t){return null==e?{}:function(e,t){return jn(e,t,(function(t,r){return ms(e,r)}))}(e,t)}));function As(e,t){if(null==e)return{};var r=dt($o(e),(function(e){return[e]}));return t=Zo(t),jn(e,r,(function(e,r){return t(e,r[0])}))}var ks=Lo(ws),Cs=Lo(_s);function Ps(e){return null==e?[]:It(e,ws(e))}var Ts=Oo((function(e,t,r){return t=t.toLowerCase(),e+(r?Is(t):t)}));function Is(e){return Ls(ss(e).toLowerCase())}function Rs(e){return(e=ss(e))&&e.replace(ue,Dt).replace(je,"")}var js=Oo((function(e,t,r){return e+(r?"-":"")+t.toLowerCase()})),Ns=Oo((function(e,t,r){return e+(r?" ":"")+t.toLowerCase()})),Ms=xo("toLowerCase");var Ds=Oo((function(e,t,r){return e+(r?"_":"")+t.toLowerCase()}));var Bs=Oo((function(e,t,r){return e+(r?" ":"")+Ls(t)}));var Fs=Oo((function(e,t,r){return e+(r?" ":"")+t.toUpperCase()})),Ls=xo("toUpperCase");function Us(e,t,r){return e=ss(e),void 0===(t=r?void 0:t)?function(e){return Be.test(e)}(e)?function(e){return e.match(Me)||[]}(e):function(e){return e.match(ee)||[]}(e):e.match(t)||[]}var zs=Fn((function(e,t){try{return it(e,void 0,t)}catch(e){return La(e)?e:new pe(e)}})),Ws=Ho((function(e,t){return st(t,(function(t){t=Ai(t),Gr(e,t,ga(e[t],e))})),e}));function Vs(e){return function(){return e}}var qs=Co(),Hs=Co(!0);function Gs(e){return e}function $s(e){return Sn("function"==typeof e?e:Xr(e,1))}var Ys=Fn((function(e,t){return function(r){return gn(r,e,t)}})),Xs=Fn((function(e,t){return function(r){return gn(e,r,t)}}));function Ks(e,t,r){var n=ws(t),o=ln(t,n);null!=r||Va(t)&&(o.length||!n.length)||(r=t,t=e,e=this,o=ln(t,ws(t)));var i=!(Va(r)&&"chain"in r&&!r.chain),a=Ua(e);return st(o,(function(r){var n=t[r];e[r]=n,a&&(e.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=e(this.__wrapped__),o=r.__actions__=go(this.__actions__);return o.push({func:n,args:arguments,thisArg:e}),r.__chain__=t,r}return n.apply(e,ht([this.value()],arguments))})})),e}function Zs(){}var Qs=Ro(dt),Js=Ro(ut),ec=Ro(bt);function tc(e){return ui(e)?Ot(Ai(e)):function(e){return function(t){return fn(t,e)}}(e)}var rc=No(),nc=No(!0);function oc(){return[]}function ic(){return!1}var ac=Io((function(e,t){return e+t}),0),sc=Bo("ceil"),cc=Io((function(e,t){return e/t}),1),uc=Bo("floor");var lc,fc=Io((function(e,t){return e*t}),1),pc=Bo("round"),dc=Io((function(e,t){return e-t}),0);return kr.after=function(e,t){if("function"!=typeof t)throw new ge(i);return e=ns(e),function(){if(--e<1)return t.apply(this,arguments)}},kr.ary=ma,kr.assign=cs,kr.assignIn=us,kr.assignInWith=ls,kr.assignWith=fs,kr.at=ps,kr.before=ba,kr.bind=ga,kr.bindAll=Ws,kr.bindKey=va,kr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ja(e)?e:[e]},kr.chain=ta,kr.chunk=function(e,t,r){t=(r?ci(e,t,r):void 0===t)?1:ir(ns(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,a=0,s=n(Qt(o/t));io?0:o+r),(n=void 0===n||n>o?o:ns(n))<0&&(n+=o),n=r>n?0:os(n);r>>0)?(e=ss(e))&&("string"==typeof t||null!=t&&!Ya(t))&&!(t=Zn(t))&&Lt(e)?uo(Gt(e),0,r):e.split(t,r):[]},kr.spread=function(e,t){if("function"!=typeof e)throw new ge(i);return t=null==t?0:ir(ns(t),0),Fn((function(r){var n=r[t],o=uo(r,0,t);return n&&ht(o,n),it(e,this,o)}))},kr.tail=function(e){var t=null==e?0:e.length;return t?Hn(e,1,t):[]},kr.take=function(e,t,r){return e&&e.length?Hn(e,0,(t=r||void 0===t?1:ns(t))<0?0:t):[]},kr.takeRight=function(e,t,r){var n=null==e?0:e.length;return n?Hn(e,(t=n-(t=r||void 0===t?1:ns(t)))<0?0:t,n):[]},kr.takeRightWhile=function(e,t){return e&&e.length?to(e,Zo(t,3),!1,!0):[]},kr.takeWhile=function(e,t){return e&&e.length?to(e,Zo(t,3)):[]},kr.tap=function(e,t){return t(e),e},kr.throttle=function(e,t,r){var n=!0,o=!0;if("function"!=typeof e)throw new ge(i);return Va(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),wa(e,t,{leading:n,maxWait:t,trailing:o})},kr.thru=ra,kr.toArray=ts,kr.toPairs=ks,kr.toPairsIn=Cs,kr.toPath=function(e){return ja(e)?dt(e,Ai):Za(e)?[e]:go(Oi(ss(e)))},kr.toPlainObject=as,kr.transform=function(e,t,r){var n=ja(e),o=n||Ba(e)||Qa(e);if(t=Zo(t,4),null==r){var i=e&&e.constructor;r=o?n?new i:[]:Va(e)&&Ua(i)?Cr(He(e)):{}}return(o?st:cn)(e,(function(e,n,o){return t(r,e,n,o)})),r},kr.unary=function(e){return ma(e,1)},kr.union=qi,kr.unionBy=Hi,kr.unionWith=Gi,kr.uniq=function(e){return e&&e.length?Qn(e):[]},kr.uniqBy=function(e,t){return e&&e.length?Qn(e,Zo(t,2)):[]},kr.uniqWith=function(e,t){return t="function"==typeof t?t:void 0,e&&e.length?Qn(e,void 0,t):[]},kr.unset=function(e,t){return null==e||Jn(e,t)},kr.unzip=$i,kr.unzipWith=Yi,kr.update=function(e,t,r){return null==e?e:eo(e,t,ao(r))},kr.updateWith=function(e,t,r,n){return n="function"==typeof n?n:void 0,null==e?e:eo(e,t,ao(r),n)},kr.values=Ps,kr.valuesIn=function(e){return null==e?[]:It(e,_s(e))},kr.without=Xi,kr.words=Us,kr.wrap=function(e,t){return Aa(ao(t),e)},kr.xor=Ki,kr.xorBy=Zi,kr.xorWith=Qi,kr.zip=Ji,kr.zipObject=function(e,t){return oo(e||[],t||[],Wr)},kr.zipObjectDeep=function(e,t){return oo(e||[],t||[],zn)},kr.zipWith=ea,kr.entries=ks,kr.entriesIn=Cs,kr.extend=us,kr.extendWith=ls,Ks(kr,kr),kr.add=ac,kr.attempt=zs,kr.camelCase=Ts,kr.capitalize=Is,kr.ceil=sc,kr.clamp=function(e,t,r){return void 0===r&&(r=t,t=void 0),void 0!==r&&(r=(r=is(r))==r?r:0),void 0!==t&&(t=(t=is(t))==t?t:0),Yr(is(e),t,r)},kr.clone=function(e){return Xr(e,4)},kr.cloneDeep=function(e){return Xr(e,5)},kr.cloneDeepWith=function(e,t){return Xr(e,5,t="function"==typeof t?t:void 0)},kr.cloneWith=function(e,t){return Xr(e,4,t="function"==typeof t?t:void 0)},kr.conformsTo=function(e,t){return null==t||Kr(e,t,ws(t))},kr.deburr=Rs,kr.defaultTo=function(e,t){return null==e||e!=e?t:e},kr.divide=cc,kr.endsWith=function(e,t,r){e=ss(e),t=Zn(t);var n=e.length,o=r=void 0===r?n:Yr(ns(r),0,n);return(r-=t.length)>=0&&e.slice(r,o)==t},kr.eq=Pa,kr.escape=function(e){return(e=ss(e))&&L.test(e)?e.replace(B,Bt):e},kr.escapeRegExp=function(e){return(e=ss(e))&&$.test(e)?e.replace(G,"\\$&"):e},kr.every=function(e,t,r){var n=ja(e)?ut:tn;return r&&ci(e,t,r)&&(t=void 0),n(e,Zo(t,3))},kr.find=ia,kr.findIndex=Ri,kr.findKey=function(e,t){return vt(e,Zo(t,3),cn)},kr.findLast=aa,kr.findLastIndex=ji,kr.findLastKey=function(e,t){return vt(e,Zo(t,3),un)},kr.floor=uc,kr.forEach=sa,kr.forEachRight=ca,kr.forIn=function(e,t){return null==e?e:an(e,Zo(t,3),_s)},kr.forInRight=function(e,t){return null==e?e:sn(e,Zo(t,3),_s)},kr.forOwn=function(e,t){return e&&cn(e,Zo(t,3))},kr.forOwnRight=function(e,t){return e&&un(e,Zo(t,3))},kr.get=ys,kr.gt=Ta,kr.gte=Ia,kr.has=function(e,t){return null!=e&&oi(e,t,yn)},kr.hasIn=ms,kr.head=Mi,kr.identity=Gs,kr.includes=function(e,t,r,n){e=Ma(e)?e:Ps(e),r=r&&!n?ns(r):0;var o=e.length;return r<0&&(r=ir(o+r,0)),Ka(e)?r<=o&&e.indexOf(t,r)>-1:!!o&&_t(e,t,r)>-1},kr.indexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=null==r?0:ns(r);return o<0&&(o=ir(n+o,0)),_t(e,t,o)},kr.inRange=function(e,t,r){return t=rs(t),void 0===r?(r=t,t=0):r=rs(r),function(e,t,r){return e>=ar(t,r)&&e=-9007199254740991&&e<=9007199254740991},kr.isSet=Xa,kr.isString=Ka,kr.isSymbol=Za,kr.isTypedArray=Qa,kr.isUndefined=function(e){return void 0===e},kr.isWeakMap=function(e){return qa(e)&&ni(e)==E},kr.isWeakSet=function(e){return qa(e)&&"[object WeakSet]"==dn(e)},kr.join=function(e,t){return null==e?"":nr.call(e,t)},kr.kebabCase=js,kr.last=Li,kr.lastIndexOf=function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var o=n;return void 0!==r&&(o=(o=ns(r))<0?ir(n+o,0):ar(o,n-1)),t==t?function(e,t,r){for(var n=r+1;n--;)if(e[n]===t)return n;return n}(e,t,o):wt(e,St,o,!0)},kr.lowerCase=Ns,kr.lowerFirst=Ms,kr.lt=Ja,kr.lte=es,kr.max=function(e){return e&&e.length?rn(e,Gs,hn):void 0},kr.maxBy=function(e,t){return e&&e.length?rn(e,Zo(t,2),hn):void 0},kr.mean=function(e){return xt(e,Gs)},kr.meanBy=function(e,t){return xt(e,Zo(t,2))},kr.min=function(e){return e&&e.length?rn(e,Gs,An):void 0},kr.minBy=function(e,t){return e&&e.length?rn(e,Zo(t,2),An):void 0},kr.stubArray=oc,kr.stubFalse=ic,kr.stubObject=function(){return{}},kr.stubString=function(){return""},kr.stubTrue=function(){return!0},kr.multiply=fc,kr.nth=function(e,t){return e&&e.length?In(e,ns(t)):void 0},kr.noConflict=function(){return $e._===this&&($e._=Pe),this},kr.noop=Zs,kr.now=ya,kr.pad=function(e,t,r){e=ss(e);var n=(t=ns(t))?Ht(e):0;if(!t||n>=t)return e;var o=(t-n)/2;return jo(Jt(o),r)+e+jo(Qt(o),r)},kr.padEnd=function(e,t,r){e=ss(e);var n=(t=ns(t))?Ht(e):0;return t&&nt){var n=e;e=t,t=n}if(r||e%1||t%1){var o=ur();return ar(e+o*(t-e+Ve("1e-"+((o+"").length-1))),t)}return Dn(e,t)},kr.reduce=function(e,t,r){var n=ja(e)?yt:kt,o=arguments.length<3;return n(e,Zo(t,4),r,o,Jr)},kr.reduceRight=function(e,t,r){var n=ja(e)?mt:kt,o=arguments.length<3;return n(e,Zo(t,4),r,o,en)},kr.repeat=function(e,t,r){return t=(r?ci(e,t,r):void 0===t)?1:ns(t),Bn(ss(e),t)},kr.replace=function(){var e=arguments,t=ss(e[0]);return e.length<3?t:t.replace(e[1],e[2])},kr.result=function(e,t,r){var n=-1,o=(t=so(t,e)).length;for(o||(o=1,e=void 0);++n9007199254740991)return[];var r=4294967295,n=ar(e,4294967295);e-=4294967295;for(var o=Pt(n,t=Zo(t));++r=i)return e;var s=r-Ht(n);if(s<1)return n;var c=a?uo(a,0,s).join(""):e.slice(0,s);if(void 0===o)return c+n;if(a&&(s+=c.length-s),Ya(o)){if(e.slice(s).search(o)){var u,l=c;for(o.global||(o=me(o.source,ss(ne.exec(o))+"g")),o.lastIndex=0;u=o.exec(l);)var f=u.index;c=c.slice(0,void 0===f?s:f)}}else if(e.indexOf(Zn(o),s)!=s){var p=c.lastIndexOf(o);p>-1&&(c=c.slice(0,p))}return c+n},kr.unescape=function(e){return(e=ss(e))&&F.test(e)?e.replace(D,$t):e},kr.uniqueId=function(e){var t=++Oe;return ss(e)+t},kr.upperCase=Fs,kr.upperFirst=Ls,kr.each=sa,kr.eachRight=ca,kr.first=Mi,Ks(kr,(lc={},cn(kr,(function(e,t){xe.call(kr.prototype,t)||(lc[t]=e)})),lc),{chain:!1}),kr.VERSION="4.17.15",st(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){kr[e].placeholder=kr})),st(["drop","take"],(function(e,t){Ir.prototype[e]=function(r){r=void 0===r?1:ir(ns(r),0);var n=this.__filtered__&&!t?new Ir(this):this.clone();return n.__filtered__?n.__takeCount__=ar(r,n.__takeCount__):n.__views__.push({size:ar(r,4294967295),type:e+(n.__dir__<0?"Right":"")}),n},Ir.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),st(["filter","map","takeWhile"],(function(e,t){var r=t+1,n=1==r||3==r;Ir.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:Zo(e,3),type:r}),t.__filtered__=t.__filtered__||n,t}})),st(["head","last"],(function(e,t){var r="take"+(t?"Right":"");Ir.prototype[e]=function(){return this[r](1).value()[0]}})),st(["initial","tail"],(function(e,t){var r="drop"+(t?"":"Right");Ir.prototype[e]=function(){return this.__filtered__?new Ir(this):this[r](1)}})),Ir.prototype.compact=function(){return this.filter(Gs)},Ir.prototype.find=function(e){return this.filter(e).head()},Ir.prototype.findLast=function(e){return this.reverse().find(e)},Ir.prototype.invokeMap=Fn((function(e,t){return"function"==typeof e?new Ir(this):this.map((function(r){return gn(r,e,t)}))})),Ir.prototype.reject=function(e){return this.filter(xa(Zo(e)))},Ir.prototype.slice=function(e,t){e=ns(e);var r=this;return r.__filtered__&&(e>0||t<0)?new Ir(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),void 0!==t&&(r=(t=ns(t))<0?r.dropRight(-t):r.take(t-e)),r)},Ir.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Ir.prototype.toArray=function(){return this.take(4294967295)},cn(Ir.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),n=/^(?:head|last)$/.test(t),o=kr[n?"take"+("last"==t?"Right":""):t],i=n||/^find/.test(t);o&&(kr.prototype[t]=function(){var t=this.__wrapped__,a=n?[1]:arguments,s=t instanceof Ir,c=a[0],u=s||ja(t),l=function(e){var t=o.apply(kr,ht([e],a));return n&&f?t[0]:t};u&&r&&"function"==typeof c&&1!=c.length&&(s=u=!1);var f=this.__chain__,p=!!this.__actions__.length,d=i&&!f,h=s&&!p;if(!i&&u){t=h?t:new Ir(this);var y=e.apply(t,a);return y.__actions__.push({func:ra,args:[l],thisArg:void 0}),new Tr(y,f)}return d&&h?e.apply(this,a):(y=this.thru(l),d?n?y.value()[0]:y.value():y)})})),st(["pop","push","shift","sort","splice","unshift"],(function(e){var t=ve[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",n=/^(?:pop|shift)$/.test(e);kr.prototype[e]=function(){var e=arguments;if(n&&!this.__chain__){var o=this.value();return t.apply(ja(o)?o:[],e)}return this[r]((function(r){return t.apply(ja(r)?r:[],e)}))}})),cn(Ir.prototype,(function(e,t){var r=kr[t];if(r){var n=r.name+"";xe.call(gr,n)||(gr[n]=[]),gr[n].push({name:t,func:r})}})),gr[Po(void 0,2).name]=[{name:"wrapper",func:void 0}],Ir.prototype.clone=function(){var e=new Ir(this.__wrapped__);return e.__actions__=go(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=go(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=go(this.__views__),e},Ir.prototype.reverse=function(){if(this.__filtered__){var e=new Ir(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Ir.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,r=ja(e),n=t<0,o=r?e.length:0,i=function(e,t,r){var n=-1,o=r.length;for(;++n=this.__values__.length;return{done:e,value:e?void 0:this.__values__[this.__index__++]}},kr.prototype.plant=function(e){for(var t,r=this;r instanceof Pr;){var n=Ci(r);n.__index__=0,n.__values__=void 0,t?o.__wrapped__=n:t=n;var o=n;r=r.__wrapped__}return o.__wrapped__=e,t},kr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Ir){var t=e;return this.__actions__.length&&(t=new Ir(this)),(t=t.reverse()).__actions__.push({func:ra,args:[Vi],thisArg:void 0}),new Tr(t,this.__chain__)}return this.thru(Vi)},kr.prototype.toJSON=kr.prototype.valueOf=kr.prototype.value=function(){return ro(this.__wrapped__,this.__actions__)},kr.prototype.first=kr.prototype.head,Qe&&(kr.prototype[Qe]=function(){return this}),kr}();$e._=Yt,void 0===(o=function(){return Yt}.call(t,r,t,n))||(n.exports=o)}).call(this)}).call(this,r(38),r(153)(e))},function(e,t,r){"use strict";t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.opacity,n=void 0===r?.1:r;return"request"===e.status?{opacity:n,cursor:"not-allowed",pointerEvents:"none"}:{}}},function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return f}));var o=r(155);function i(e){return(i="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)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(i,t);var r,n=(r=i,function(){var e,t=l(r);if(u()){var n=l(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function i(){var t;a(this,i);for(var r=arguments.length,s=new Array(r),c=0;c_;_++)if((p||_ in g)&&(m=v(y=g[_],_,b),e))if(r)E[_]=m;else if(m)switch(e){case 3:return!0;case 5:return y;case 6:return _;case 2:E.push(y)}else if(l)return!1;return f?-1:u||l?l:E}}},function(e,t,r){"use strict";var n=r(117);t.a=function(){for(var e=arguments.length,t=new Array(e),r=0;rr;)o[r]=t[r++];return o},Pe=function(e,t,r){z(e,t,{get:function(){return this._d[r]}})},Te=function(e){var t,r,n,o,i,a,s=E(e),c=arguments.length,l=c>1?arguments[1]:void 0,f=void 0!==l,p=k(s);if(null!=p&&!S(p)){for(a=p.call(s),n=[],t=0;!(i=a.next()).done;t++)n.push(i.value);s=n}for(f&&c>2&&(l=u(l,arguments[2],2)),t=0,r=y(s.length),o=Ae(this,r);r>t;t++)o[t]=f?l(s[t],t):s[t];return o},Ie=function(){for(var e=0,t=arguments.length,r=Ae(this,t);t>e;)r[e]=arguments[e++];return r},Re=!!H&&i((function(){de.call(new H(1))})),je=function(){return de.apply(Re?fe.call(Oe(this)):Oe(this),arguments)},Ne={copyWithin:function(e,t){return F.call(Oe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return Q(Oe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return B.apply(Oe(this),arguments)},filter:function(e){return ke(this,K(Oe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(Oe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Oe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){X(Oe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return re(Oe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Oe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Oe(this),arguments)},lastIndexOf:function(e){return ae.apply(Oe(this),arguments)},map:function(e){return _e(Oe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Oe(this),arguments)},reduceRight:function(e){return ce.apply(Oe(this),arguments)},reverse:function(){for(var e,t=Oe(this).length,r=Math.floor(t/2),n=0;n1?arguments[1]:void 0)},sort:function(e){return le.call(Oe(this),e)},subarray:function(e,t){var r=Oe(this),n=r.length,o=b(e,n);return new(R(r,r[be]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,y((void 0===t?n:b(t,n))-o))}},Me=function(e,t){return ke(this,fe.call(Oe(this),e,t))},De=function(e){Oe(this);var t=xe(arguments[1],1),r=this.length,n=E(e),o=y(n.length),i=0;if(o+t>r)throw V("Wrong length!");for(;i255?255:255&n),o.v[d](r*t+o.o,n,Ee)}(this,r,e)},enumerable:!0})};v?(h=r((function(e,r,n,o){l(e,h,u,"_d");var i,a,s,c,f=0,d=0;if(_(r)){if(!(r instanceof $||"ArrayBuffer"==(c=w(r))||"SharedArrayBuffer"==c))return ve in r?Ce(h,r):Te.call(h,r);i=r,d=xe(n,t);var b=r.byteLength;if(void 0===o){if(b%t)throw V("Wrong length!");if((a=b-d)<0)throw V("Wrong length!")}else if((a=y(o)*t)+d>b)throw V("Wrong length!");s=a/t}else s=m(r),i=new $(a=s*t);for(p(e,"_d",{b:i,o:d,l:a,e:s,v:new Y(i)});f1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t,r){"use strict";var n=r(1002);e.exports=function(e){return"symbol"==typeof e?"Symbol":n(e)}},function(e,t,r){"use strict";var n=r(1038);e.exports=function(e){return"symbol"==typeof e?"Symbol":n(e)}},function(e,t,r){"use strict";var n=r(1122);e.exports=function(e){return"symbol"==typeof e?"Symbol":n(e)}},function(e,t,r){"use strict";var n=r(1187);e.exports=function(e){return"symbol"==typeof e?"Symbol":n(e)}},function(e,t,r){var n=r(451),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},function(e,t){var r=Array.isArray;e.exports=r},function(e,t){var r=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=r)},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t){e.exports=!1},function(e,t,r){var n=r(103)("meta"),o=r(17),i=r(55),a=r(37).f,s=0,c=Object.isExtensible||function(){return!0},u=!r(15)((function(){return c(Object.preventExtensions({}))})),l=function(e){a(e,n,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,n)){if(!c(e))return"F";if(!t)return"E";l(e)}return e[n].i},getWeak:function(e,t){if(!i(e,n)){if(!c(e))return!0;if(!t)return!1;l(e)}return e[n].w},onFreeze:function(e){return u&&f.NEED&&c(e)&&!i(e,n)&&l(e),e}}},function(e,t,r){var n=r(25)("unscopables"),o=Array.prototype;null==o[n]&&r(48)(o,n,{}),e.exports=function(e){o[n][e]=!0}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=r(369),i=r(370),a=r(887),s=r(888),c=function(e,t){if(null==e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,a,s="string"===t?["toString","valueOf"]:["valueOf","toString"];for(a=0;a1&&(arguments[1]===String?r="string":arguments[1]===Number&&(r="number")),n&&(Symbol.toPrimitive?t=u(e,Symbol.toPrimitive):s(e)&&(t=Symbol.prototype.valueOf)),void 0!==t){var i=t.call(e,r);if(o(i))return i;throw new TypeError("unable to convert exotic object to primitive")}return"default"===r&&(a(e)||s(e))&&(r="string"),c(e,"default"===r?"number":r)}},function(e,t,r){"use strict";var n=TypeError,o=Object.getOwnPropertyDescriptor;if(o)try{o({},"")}catch(e){o=null}var i=function(){throw new n},a=o?function(){try{return arguments.callee,i}catch(e){try{return o(arguments,"callee").get}catch(e){return i}}}():i,s=r(21)(),c=Object.getPrototypeOf||function(e){return e.__proto__},u=void 0,l="undefined"==typeof Uint8Array?void 0:c(Uint8Array),f={"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayBufferPrototype%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer.prototype,"%ArrayIteratorPrototype%":s?c([][Symbol.iterator]()):void 0,"%ArrayPrototype%":Array.prototype,"%ArrayProto_entries%":Array.prototype.entries,"%ArrayProto_forEach%":Array.prototype.forEach,"%ArrayProto_keys%":Array.prototype.keys,"%ArrayProto_values%":Array.prototype.values,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":void 0,"%AsyncFunctionPrototype%":void 0,"%AsyncGenerator%":void 0,"%AsyncGeneratorFunction%":void 0,"%AsyncGeneratorPrototype%":void 0,"%AsyncIteratorPrototype%":u&&s&&Symbol.asyncIterator?u[Symbol.asyncIterator]():void 0,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%Boolean%":Boolean,"%BooleanPrototype%":Boolean.prototype,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%DataViewPrototype%":"undefined"==typeof DataView?void 0:DataView.prototype,"%Date%":Date,"%DatePrototype%":Date.prototype,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%ErrorPrototype%":Error.prototype,"%eval%":eval,"%EvalError%":EvalError,"%EvalErrorPrototype%":EvalError.prototype,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float32ArrayPrototype%":"undefined"==typeof Float32Array?void 0:Float32Array.prototype,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%Float64ArrayPrototype%":"undefined"==typeof Float64Array?void 0:Float64Array.prototype,"%Function%":Function,"%FunctionPrototype%":Function.prototype,"%Generator%":void 0,"%GeneratorFunction%":void 0,"%GeneratorPrototype%":void 0,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int8ArrayPrototype%":"undefined"==typeof Int8Array?void 0:Int8Array.prototype,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int16ArrayPrototype%":"undefined"==typeof Int16Array?void 0:Int8Array.prototype,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%Int32ArrayPrototype%":"undefined"==typeof Int32Array?void 0:Int32Array.prototype,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":s?c(c([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%JSONParse%":"object"==typeof JSON?JSON.parse:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&s?c((new Map)[Symbol.iterator]()):void 0,"%MapPrototype%":"undefined"==typeof Map?void 0:Map.prototype,"%Math%":Math,"%Number%":Number,"%NumberPrototype%":Number.prototype,"%Object%":Object,"%ObjectPrototype%":Object.prototype,"%ObjProto_toString%":Object.prototype.toString,"%ObjProto_valueOf%":Object.prototype.valueOf,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%PromisePrototype%":"undefined"==typeof Promise?void 0:Promise.prototype,"%PromiseProto_then%":"undefined"==typeof Promise?void 0:Promise.prototype.then,"%Promise_all%":"undefined"==typeof Promise?void 0:Promise.all,"%Promise_reject%":"undefined"==typeof Promise?void 0:Promise.reject,"%Promise_resolve%":"undefined"==typeof Promise?void 0:Promise.resolve,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%RangeErrorPrototype%":RangeError.prototype,"%ReferenceError%":ReferenceError,"%ReferenceErrorPrototype%":ReferenceError.prototype,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%RegExpPrototype%":RegExp.prototype,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&s?c((new Set)[Symbol.iterator]()):void 0,"%SetPrototype%":"undefined"==typeof Set?void 0:Set.prototype,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%SharedArrayBufferPrototype%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer.prototype,"%String%":String,"%StringIteratorPrototype%":s?c(""[Symbol.iterator]()):void 0,"%StringPrototype%":String.prototype,"%Symbol%":s?Symbol:void 0,"%SymbolPrototype%":s?Symbol.prototype:void 0,"%SyntaxError%":SyntaxError,"%SyntaxErrorPrototype%":SyntaxError.prototype,"%ThrowTypeError%":a,"%TypedArray%":l,"%TypedArrayPrototype%":l?l.prototype:void 0,"%TypeError%":n,"%TypeErrorPrototype%":n.prototype,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ArrayPrototype%":"undefined"==typeof Uint8Array?void 0:Uint8Array.prototype,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint8ClampedArrayPrototype%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray.prototype,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint16ArrayPrototype%":"undefined"==typeof Uint16Array?void 0:Uint16Array.prototype,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%Uint32ArrayPrototype%":"undefined"==typeof Uint32Array?void 0:Uint32Array.prototype,"%URIError%":URIError,"%URIErrorPrototype%":URIError.prototype,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakMapPrototype%":"undefined"==typeof WeakMap?void 0:WeakMap.prototype,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet,"%WeakSetPrototype%":"undefined"==typeof WeakSet?void 0:WeakSet.prototype},p=r(6).call(Function.call,String.prototype.replace),d=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,h=/\\(\\)?/g,y=function(e){var t=[];return p(e,d,(function(e,r,n,o){t[t.length]=n?p(o,h,"$1"):r||e})),t},m=function(e,t){if(!(e in f))throw new SyntaxError("intrinsic "+e+" does not exist!");if(void 0===f[e]&&!t)throw new n("intrinsic "+e+" exists, but is not available. Please file an issue!");return f[e]};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new TypeError("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new TypeError('"allowMissing" argument must be a boolean');for(var r=y(e),i=m("%"+(r.length>0?r[0]:"")+"%",t),a=1;a=r.length){var s=o(i,r[a]);if(!t&&!(r[a]in i))throw new n("base intrinsic for "+e+" exists, but the property is not available.");i=s?s.get||s.value:i[r[a]]}else i=i[r[a]];return i}},function(e,t,r){"use strict";r.d(t,"a",(function(){return H}));var n=r(0),o=r.n(n),i=r(23),a=r(5),s=r(43),c=r(35),u=r(14),l=r(75),f=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],p=function(e){for(var t=0;t=0||(o[r]=e[r]);return o}(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return Object(a.c)("input",v({ref:t},r,{css:Object(l.a)({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"},"")}))}var _=function(e){var t,r;function n(){return e.apply(this,arguments)||this}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var o=n.prototype;return o.componentDidMount=function(){this.props.innerRef(Object(s.findDOMNode)(this))},o.componentWillUnmount=function(){this.props.innerRef(null)},o.render=function(){return this.props.children},n}(n.Component),E=["boxSizing","height","overflow","paddingRight","position"],S={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function x(e){e.preventDefault()}function O(e){e.stopPropagation()}function A(){var e=this.scrollTop,t=this.scrollHeight,r=e+this.offsetHeight;0===e?this.scrollTop=1:r===t&&(this.scrollTop=e-1)}function k(){return"ontouchstart"in window||navigator.maxTouchPoints}var C=!(!window.document||!window.document.createElement),P=0,T=function(e){var t,r;function n(){for(var t,r=arguments.length,n=new Array(r),o=0;o0,h=l-f-u,y=!1;h>r&&t.isBottom&&(i&&i(e),t.isBottom=!1),d&&t.isTop&&(s&&s(e),t.isTop=!1),d&&r>h?(o&&!t.isBottom&&o(e),p.scrollTop=l,y=!0,t.isBottom=!0):!d&&-r>u&&(a&&!t.isTop&&a(e),p.scrollTop=0,y=!0,t.isTop=!0),y&&t.cancelScroll(e)},t.onWheel=function(e){t.handleEventDelta(e,e.deltaY)},t.onTouchStart=function(e){t.touchStart=e.changedTouches[0].clientY},t.onTouchMove=function(e){var r=t.touchStart-e.changedTouches[0].clientY;t.handleEventDelta(e,r)},t.getScrollTarget=function(e){t.scrollTarget=e},t}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var i=n.prototype;return i.componentDidMount=function(){this.startListening(this.scrollTarget)},i.componentWillUnmount=function(){this.stopListening(this.scrollTarget)},i.startListening=function(e){e&&("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1))},i.stopListening=function(e){"function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1)},i.render=function(){return o.a.createElement(_,{innerRef:this.getScrollTarget},this.props.children)},n}(n.Component);function N(e){var t=e.isEnabled,r=void 0===t||t,n=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(e,["isEnabled"]);return r?o.a.createElement(j,n):n.children}var M=function(e,t){void 0===t&&(t={});var r=t,n=r.isSearchable,o=r.isMulti,i=r.label,a=r.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options"+(a?"":", press Enter to select the currently focused option")+", press Escape to exit the menu, press Tab to select the option and exit the menu.";case"input":return(i||"Select")+" is focused "+(n?",type to refine list":"")+", press Down to open the menu, "+(o?" 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"}},D=function(e,t){var r=t.value,n=t.isDisabled;if(r)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option "+r+", deselected.";case"select-option":return n?"option "+r+" is disabled. Select another option.":"option "+r+", selected."}},B=function(e){return!!e.isDisabled};var F={clearIndicator:u.d,container:u.b,control:u.c,dropdownIndicator:u.e,group:u.h,groupHeading:u.f,indicatorsContainer:u.j,indicatorSeparator:u.g,input:u.i,loadingIndicator:u.m,loadingMessage:u.k,menu:u.n,menuList:u.l,menuPortal:u.o,multiValue:u.p,multiValueLabel:u.q,multiValueRemove:u.r,noOptionsMessage:u.s,option:u.t,placeholder:u.u,singleValue:u.v,valueContainer:u.w};var L={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}};function U(){return(U=Object.assign||function(e){for(var t=1;t-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:B,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!Object(c.d)(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return t+" result"+(1!==t?"s":"")+" available"},styles:{},tabIndex:"0",tabSelectsValue:!0},q=1,H=function(e){var t,r;function n(t){var r;(r=e.call(this,t)||this).state={ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]},r.blockOptionHover=!1,r.isComposing=!1,r.clearFocusValueOnUpdate=!1,r.commonProps=void 0,r.components=void 0,r.hasGroups=!1,r.initialTouchX=0,r.initialTouchY=0,r.inputIsHiddenAfterUpdate=void 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.cacheComponents=function(e){r.components=Object(u.x)({components:e})},r.focus=r.focusInput,r.blur=r.blurInput,r.onChange=function(e,t){var n=r.props;(0,n.onChange)(e,U({},t,{name:n.name}))},r.setValue=function(e,t,n){void 0===t&&(t="set-value");var o=r.props,i=o.closeMenuOnSelect,a=o.isMulti;r.onInputChange("",{action:"set-value"}),i&&(r.inputIsHiddenAfterUpdate=!a,r.onMenuClose()),r.clearFocusValueOnUpdate=!0,r.onChange(e,{action:t,option:n})},r.selectOption=function(e){var t=r.props,n=t.blurInputOnSelect,o=t.isMulti,i=r.state.selectValue;if(o)if(r.isOptionSelected(e,i)){var a=r.getOptionValue(e);r.setValue(i.filter((function(e){return r.getOptionValue(e)!==a})),"deselect-option",e),r.announceAriaLiveSelection({event:"deselect-option",context:{value:r.getOptionLabel(e)}})}else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue([].concat(i,[e]),"select-option",e),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));else r.isOptionDisabled(e,i)?r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e),isDisabled:!0}}):(r.setValue(e,"select-option"),r.announceAriaLiveSelection({event:"select-option",context:{value:r.getOptionLabel(e)}}));n&&r.blurInput()},r.removeValue=function(e){var t=r.state.selectValue,n=r.getOptionValue(e),o=t.filter((function(e){return r.getOptionValue(e)!==n}));r.onChange(o.length?o:null,{action:"remove-value",removedValue:e}),r.announceAriaLiveSelection({event:"remove-value",context:{value:e?r.getOptionLabel(e):""}}),r.focusInput()},r.clearValue=function(){var e=r.props.isMulti;r.onChange(e?[]:null,{action:"clear"})},r.popValue=function(){var e=r.state.selectValue,t=e[e.length-1],n=e.slice(0,e.length-1);r.announceAriaLiveSelection({event:"pop-value",context:{value:t?r.getOptionLabel(t):""}}),r.onChange(n.length?n:null,{action:"pop-value",removedValue:t})},r.getOptionLabel=function(e){return r.props.getOptionLabel(e)},r.getOptionValue=function(e){return r.props.getOptionValue(e)},r.getStyles=function(e,t){var n=F[e](t);n.boxSizing="border-box";var o=r.props.styles[e];return o?o(n,t):n},r.getElementId=function(e){return r.instancePrefix+"-"+e},r.getActiveDescendentId=function(){var e=r.props.menuIsOpen,t=r.state,n=t.menuOptions,o=t.focusedOption;if(o&&e){var i=n.focusable.indexOf(o),a=n.render[i];return a&&a.key}},r.announceAriaLiveSelection=function(e){var t=e.event,n=e.context;r.setState({ariaLiveSelection:D(t,n)})},r.announceAriaLiveContext=function(e){var t=e.event,n=e.context;r.setState({ariaLiveContext:M(t,U({},n,{label:r.props["aria-label"]}))})},r.onMenuMouseDown=function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),r.focusInput())},r.onMenuMouseMove=function(e){r.blockOptionHover=!1},r.onControlMouseDown=function(e){var t=r.props.openMenuOnClick;r.state.isFocused?r.props.menuIsOpen?"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&r.onMenuClose():t&&r.openMenu("first"):(t&&(r.openAfterFocus=!0),r.focusInput()),"INPUT"!==e.target.tagName&&"TEXTAREA"!==e.target.tagName&&e.preventDefault()},r.onDropdownIndicatorMouseDown=function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||r.props.isDisabled)){var t=r.props,n=t.isMulti,o=t.menuIsOpen;r.focusInput(),o?(r.inputIsHiddenAfterUpdate=!n,r.onMenuClose()):r.openMenu("first"),e.preventDefault(),e.stopPropagation()}},r.onClearIndicatorMouseDown=function(e){e&&"mousedown"===e.type&&0!==e.button||(r.clearValue(),e.stopPropagation(),r.openAfterFocus=!1,"touchend"===e.type?r.focusInput():setTimeout((function(){return r.focusInput()})))},r.onScroll=function(e){"boolean"==typeof r.props.closeMenuOnScroll?e.target instanceof HTMLElement&&Object(c.j)(e.target)&&r.props.onMenuClose():"function"==typeof r.props.closeMenuOnScroll&&r.props.closeMenuOnScroll(e)&&r.props.onMenuClose()},r.onCompositionStart=function(){r.isComposing=!0},r.onCompositionEnd=function(){r.isComposing=!1},r.onTouchStart=function(e){var t=e.touches.item(0);t&&(r.initialTouchX=t.clientX,r.initialTouchY=t.clientY,r.userIsDragging=!1)},r.onTouchMove=function(e){var t=e.touches.item(0);if(t){var n=Math.abs(t.clientX-r.initialTouchX),o=Math.abs(t.clientY-r.initialTouchY);r.userIsDragging=n>5||o>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.inputIsHiddenAfterUpdate=!1,r.onInputChange(t,{action:"input-change"}),r.onMenuOpen()},r.onInputFocus=function(e){var t=r.props,n=t.isSearchable,o=t.isMulti;r.props.onFocus&&r.props.onFocus(e),r.inputIsHiddenAfterUpdate=!1,r.announceAriaLiveContext({event:"input",context:{isSearchable:n,isMulti:o}}),r.setState({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(){var e=r.props,t=e.hideSelectedOptions,n=e.isMulti;return void 0===t?n:t},r.onKeyDown=function(e){var t=r.props,n=t.isMulti,o=t.backspaceRemovesValue,i=t.escapeClearsValue,a=t.inputValue,s=t.isClearable,c=t.isDisabled,u=t.menuIsOpen,l=t.onKeyDown,f=t.tabSelectsValue,p=t.openMenuOnFocus,d=r.state,h=d.focusedOption,y=d.focusedValue,m=d.selectValue;if(!(c||"function"==typeof l&&(l(e),e.defaultPrevented))){switch(r.blockOptionHover=!0,e.key){case"ArrowLeft":if(!n||a)return;r.focusValue("previous");break;case"ArrowRight":if(!n||a)return;r.focusValue("next");break;case"Delete":case"Backspace":if(a)return;if(y)r.removeValue(y);else{if(!o)return;n?r.popValue():s&&r.clearValue()}break;case"Tab":if(r.isComposing)return;if(e.shiftKey||!u||!f||!h||p&&r.isOptionSelected(h,m))return;r.selectOption(h);break;case"Enter":if(229===e.keyCode)break;if(u){if(!h)return;if(r.isComposing)return;r.selectOption(h);break}return;case"Escape":u?(r.inputIsHiddenAfterUpdate=!1,r.onInputChange("",{action:"menu-close"}),r.onMenuClose()):s&&i&&r.clearValue();break;case" ":if(a)return;if(!u){r.openMenu("first");break}if(!h)return;r.selectOption(h);break;case"ArrowUp":u?r.focusOption("up"):r.openMenu("last");break;case"ArrowDown":u?r.focusOption("down"):r.openMenu("first");break;case"PageUp":if(!u)return;r.focusOption("pageup");break;case"PageDown":if(!u)return;r.focusOption("pagedown");break;case"Home":if(!u)return;r.focusOption("first");break;case"End":if(!u)return;r.focusOption("last");break;default:return}e.preventDefault()}},r.buildMenuOptions=function(e,t){var n=e.inputValue,o=void 0===n?"":n,i=e.options,a=function(e,n){var i=r.isOptionDisabled(e,t),a=r.isOptionSelected(e,t),s=r.getOptionLabel(e),c=r.getOptionValue(e);if(!(r.shouldHideSelectedOptions()&&a||!r.filterOption({label:s,value:c,data:e},o))){var u=i?void 0:function(){return r.onOptionHover(e)},l=i?void 0:function(){return r.selectOption(e)},f=r.getElementId("option")+"-"+n;return{innerProps:{id:f,onClick:l,onMouseMove:u,onMouseOver:u,tabIndex:-1},data:e,isDisabled:i,isSelected:a,key:f,label:s,type:"option",value:c}}};return i.reduce((function(e,t,n){if(t.options){r.hasGroups||(r.hasGroups=!0);var o=t.options.map((function(t,r){var o=a(t,n+"-"+r);return o&&e.focusable.push(t),o})).filter(Boolean);if(o.length){var i=r.getElementId("group")+"-"+n;e.render.push({type:"group",key:i,data:t,options:o})}}else{var s=a(t,""+n);s&&(e.render.push(s),e.focusable.push(t))}return e}),{render:[],focusable:[]})};var n=t.value;r.cacheComponents=Object(i.a)(r.cacheComponents,u.y).bind(z(z(r))),r.cacheComponents(t.components),r.instancePrefix="react-select-"+(r.props.instanceId||++q);var o=Object(c.e)(n);r.buildMenuOptions=Object(i.a)(r.buildMenuOptions,(function(e,t){var r=e,n=r[0],o=r[1],i=t,a=i[0],s=i[1];return Object(u.y)(o,s)&&Object(u.y)(n.inputValue,a.inputValue)&&Object(u.y)(n.options,a.options)})).bind(z(z(r)));var a=t.menuIsOpen?r.buildMenuOptions(t,o):{render:[],focusable:[]};return r.state.menuOptions=a,r.state.selectValue=o,r}r=e,(t=n).prototype=Object.create(r.prototype),t.prototype.constructor=t,t.__proto__=r;var a=n.prototype;return a.componentDidMount=function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()},a.UNSAFE_componentWillReceiveProps=function(e){var t=this.props,r=t.options,n=t.value,o=t.menuIsOpen,i=t.inputValue;if(this.cacheComponents(e.components),e.value!==n||e.options!==r||e.menuIsOpen!==o||e.inputValue!==i){var a=Object(c.e)(e.value),s=e.menuIsOpen?this.buildMenuOptions(e,a):{render:[],focusable:[]},u=this.getNextFocusedValue(a),l=this.getNextFocusedOption(s.focusable);this.setState({menuOptions:s,selectValue:a,focusedOption:l,focusedValue:u})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)},a.componentDidUpdate=function(e){var t=this.props,r=t.isDisabled,n=t.menuIsOpen,o=this.state.isFocused;(o&&!r&&e.isDisabled||o&&n&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(Object(c.f)(this.menuListRef,this.focusedOptionRef),this.scrollToFocusedOptionOnUpdate=!1)},a.componentWillUnmount=function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)},a.onMenuOpen=function(){this.props.onMenuOpen()},a.onMenuClose=function(){var e=this.props,t=e.isSearchable,r=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:r}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()},a.onInputChange=function(e,t){this.props.onInputChange(e,t)},a.focusInput=function(){this.inputRef&&this.inputRef.focus()},a.blurInput=function(){this.inputRef&&this.inputRef.blur()},a.openMenu=function(e){var t=this,r=this.state,n=r.selectValue,o=r.isFocused,i=this.buildMenuOptions(this.props,n),a=this.props.isMulti,s="first"===e?0:i.focusable.length-1;if(!a){var c=i.focusable.indexOf(n[0]);c>-1&&(s=c)}this.scrollToFocusedOptionOnUpdate=!(o&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.setState({menuOptions:i,focusedValue:null,focusedOption:i.focusable[s]},(function(){t.onMenuOpen(),t.announceAriaLiveContext({event:"menu"})}))},a.focusValue=function(e){var t=this.props,r=t.isMulti,n=t.isSearchable,o=this.state,i=o.selectValue,a=o.focusedValue;if(r){this.setState({focusedOption:null});var s=i.indexOf(a);a||(s=-1,this.announceAriaLiveContext({event:"value"}));var c=i.length-1,u=-1;if(i.length){switch(e){case"previous":u=0===s?0:-1===s?c:s-1;break;case"next":s>-1&&s0?a-1:o.length-1:"down"===e?i=(a+1)%o.length:"pageup"===e?(i=a-t)<0&&(i=0):"pagedown"===e?(i=a+t)>o.length-1&&(i=o.length-1):"last"===e&&(i=o.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:o[i],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:B(o[i])}})}},a.getTheme=function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(L):U({},L,this.props.theme):L},a.getCommonProps=function(){var e=this.clearValue,t=this.getStyles,r=this.setValue,n=this.selectOption,o=this.props,i=o.classNamePrefix,a=o.isMulti,s=o.isRtl,u=o.options,l=this.state.selectValue,f=this.hasValue();return{cx:c.h.bind(null,i),clearValue:e,getStyles:t,getValue:function(){return l},hasValue:f,isMulti:a,isRtl:s,options:u,selectOption:n,setValue:r,selectProps:o,theme:this.getTheme()}},a.getNextFocusedValue=function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,r=t.focusedValue,n=t.selectValue.indexOf(r);if(n>-1){if(e.indexOf(r)>-1)return r;if(n-1?t:e[0]},a.hasValue=function(){return this.state.selectValue.length>0},a.hasOptions=function(){return!!this.state.menuOptions.render.length},a.countOptions=function(){return this.state.menuOptions.focusable.length},a.isClearable=function(){var e=this.props,t=e.isClearable,r=e.isMulti;return void 0===t?r:t},a.isOptionDisabled=function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)},a.isOptionSelected=function(e,t){var r=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var n=this.getOptionValue(e);return t.some((function(e){return r.getOptionValue(e)===n}))},a.filterOption=function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)},a.formatOptionLabel=function(e,t){if("function"==typeof this.props.formatOptionLabel){var r=this.props.inputValue,n=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:r,selectValue:n})}return this.getOptionLabel(e)},a.formatGroupLabel=function(e){return this.props.formatGroupLabel(e)},a.startListeningComposition=function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))},a.stopListeningComposition=function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))},a.startListeningToTouch=function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))},a.stopListeningToTouch=function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))},a.constructAriaLiveMessage=function(){var e=this.state,t=e.ariaLiveContext,r=e.selectValue,n=e.focusedValue,o=e.focusedOption,i=this.props,a=i.options,s=i.menuIsOpen,c=i.inputValue,u=i.screenReaderStatus;return(n?function(e){var t=e.focusedValue,r=e.getOptionLabel,n=e.selectValue;return"value "+r(t)+" focused, "+(n.indexOf(t)+1)+" of "+n.length+"."}({focusedValue:n,getOptionLabel:this.getOptionLabel,selectValue:r}):"")+" "+(o&&s?function(e){var t=e.focusedOption,r=e.getOptionLabel,n=e.options;return"option "+r(t)+" focused"+(t.isDisabled?" disabled":"")+", "+(n.indexOf(t)+1)+" of "+n.length+"."}({focusedOption:o,getOptionLabel:this.getOptionLabel,options:a}):"")+" "+function(e){var t=e.inputValue;return e.screenReaderMessage+(t?" for search term "+t:"")+"."}({inputValue:c,screenReaderMessage:u({count:this.countOptions()})})+" "+t},a.renderInput=function(){var e=this.props,t=e.isDisabled,r=e.isSearchable,n=e.inputId,i=e.inputValue,a=e.tabIndex,s=this.components.Input,u=this.state.inputIsHidden,l=n||this.getElementId("input"),f={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]};if(!r)return o.a.createElement(w,U({id:l,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:c.l,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:a,value:""},f));var p=this.commonProps,d=p.cx,h=p.theme,y=p.selectProps;return o.a.createElement(s,U({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:d,getStyles:this.getStyles,id:l,innerRef:this.getInputRef,isDisabled:t,isHidden:u,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:y,spellCheck:"false",tabIndex:a,theme:h,type:"text",value:i},f))},a.renderPlaceholderOrValue=function(){var e=this,t=this.components,r=t.MultiValue,n=t.MultiValueContainer,i=t.MultiValueLabel,a=t.MultiValueRemove,s=t.SingleValue,c=t.Placeholder,u=this.commonProps,l=this.props,f=l.controlShouldRenderValue,p=l.isDisabled,d=l.isMulti,h=l.inputValue,y=l.placeholder,m=this.state,b=m.selectValue,g=m.focusedValue,v=m.isFocused;if(!this.hasValue()||!f)return h?null:o.a.createElement(c,U({},u,{key:"placeholder",isDisabled:p,isFocused:v}),y);if(d)return b.map((function(t,s){var c=t===g;return o.a.createElement(r,U({},u,{components:{Container:n,Label:i,Remove:a},isFocused:c,isDisabled:p,key:e.getOptionValue(t),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(h)return null;var w=b[0];return o.a.createElement(s,U({},u,{data:w,isDisabled:p}),this.formatOptionLabel(w,"value"))},a.renderClearIndicator=function(){var e=this.components.ClearIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!this.isClearable()||!e||n||!this.hasValue()||i)return null;var s={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,U({},t,{innerProps:s,isFocused:a}))},a.renderLoadingIndicator=function(){var e=this.components.LoadingIndicator,t=this.commonProps,r=this.props,n=r.isDisabled,i=r.isLoading,a=this.state.isFocused;if(!e||!i)return null;return o.a.createElement(e,U({},t,{innerProps:{"aria-hidden":"true"},isDisabled:n,isFocused:a}))},a.renderIndicatorSeparator=function(){var e=this.components,t=e.DropdownIndicator,r=e.IndicatorSeparator;if(!t||!r)return null;var n=this.commonProps,i=this.props.isDisabled,a=this.state.isFocused;return o.a.createElement(r,U({},n,{isDisabled:i,isFocused:a}))},a.renderDropdownIndicator=function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,r=this.props.isDisabled,n=this.state.isFocused,i={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return o.a.createElement(e,U({},t,{innerProps:i,isDisabled:r,isFocused:n}))},a.renderMenu=function(){var e=this,t=this.components,r=t.Group,n=t.GroupHeading,i=t.Menu,a=t.MenuList,s=t.MenuPortal,c=t.LoadingMessage,l=t.NoOptionsMessage,f=t.Option,p=this.commonProps,d=this.state,h=d.focusedOption,y=d.menuOptions,m=this.props,b=m.captureMenuScroll,g=m.inputValue,v=m.isLoading,w=m.loadingMessage,_=m.minMenuHeight,E=m.maxMenuHeight,S=m.menuIsOpen,x=m.menuPlacement,O=m.menuPosition,A=m.menuPortalTarget,k=m.menuShouldBlockScroll,C=m.menuShouldScrollIntoView,P=m.noOptionsMessage,T=m.onMenuScrollToTop,I=m.onMenuScrollToBottom;if(!S)return null;var j,M=function(t){var r=h===t.data;return t.innerRef=r?e.getFocusedOptionRef:void 0,o.a.createElement(f,U({},p,t,{isFocused:r}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())j=y.render.map((function(t){if("group"===t.type){t.type;var i=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n=0||(o[r]=e[r]);return o}(t,["type"]),a=t.key+"-heading";return o.a.createElement(r,U({},p,i,{Heading:n,headingProps:{id:a},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return M(e)})))}if("option"===t.type)return M(t)}));else if(v){var D=w({inputValue:g});if(null===D)return null;j=o.a.createElement(c,p,D)}else{var B=P({inputValue:g});if(null===B)return null;j=o.a.createElement(l,p,B)}var F={minMenuHeight:_,maxMenuHeight:E,menuPlacement:x,menuPosition:O,menuShouldScrollIntoView:C},L=o.a.createElement(u.a,U({},p,F),(function(t){var r=t.ref,n=t.placerProps,s=n.placement,c=n.maxHeight;return o.a.createElement(i,U({},p,F,{innerRef:r,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:s}),o.a.createElement(N,{isEnabled:b,onTopArrive:T,onBottomArrive:I},o.a.createElement(R,{isEnabled:k},o.a.createElement(a,U({},p,{innerRef:e.getMenuListRef,isLoading:v,maxHeight:c}),j))))}));return A||"fixed"===O?o.a.createElement(s,U({},p,{appendTo:A,controlElement:this.controlRef,menuPlacement:x,menuPosition:O}),L):L},a.renderFormField=function(){var e=this,t=this.props,r=t.delimiter,n=t.isDisabled,i=t.isMulti,a=t.name,s=this.state.selectValue;if(a&&!n){if(i){if(r){var c=s.map((function(t){return e.getOptionValue(t)})).join(r);return o.a.createElement("input",{name:a,type:"hidden",value:c})}var u=s.length>0?s.map((function(t,r){return o.a.createElement("input",{key:"i-"+r,name:a,type:"hidden",value:e.getOptionValue(t)})})):o.a.createElement("input",{name:a,type:"hidden"});return o.a.createElement("div",null,u)}var l=s[0]?this.getOptionValue(s[0]):"";return o.a.createElement("input",{name:a,type:"hidden",value:l})}},a.renderLiveRegion=function(){return this.state.isFocused?o.a.createElement(g,{"aria-live":"polite"},o.a.createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),o.a.createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null},a.render=function(){var e=this.components,t=e.Control,r=e.IndicatorsContainer,n=e.SelectContainer,i=e.ValueContainer,a=this.props,s=a.className,c=a.id,u=a.isDisabled,l=a.menuIsOpen,f=this.state.isFocused,p=this.commonProps=this.getCommonProps();return o.a.createElement(n,U({},p,{className:s,innerProps:{id:c,onKeyDown:this.onKeyDown},isDisabled:u,isFocused:f}),this.renderLiveRegion(),o.a.createElement(t,U({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:u,isFocused:f,menuIsOpen:l}),o.a.createElement(i,U({},p,{isDisabled:u}),this.renderPlaceholderOrValue(),this.renderInput()),o.a.createElement(r,U({},p,{isDisabled:u}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())},n}(n.Component);H.defaultProps=V},function(e,t,r){"use strict";e.exports=function(e,t,r,n,o,i,a,s){if(!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(t.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,r){"use strict";(function(e,n){var o,i,a,s=r(496),c=r.n(s),u=r(243),l=r(497);function f(e){return(f="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)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=Object(u.a)((a=i=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(o,t);var r,n=(r=o,function(){var e,t=m(r);if(y()){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function o(){var t;p(this,o);for(var r=arguments.length,i=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:i,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case"SET_CURRENT_USER":return{currentUser:t.payload};default:return e}},s={signIn:function(e,t){localStorage.setItem("jwt",t),e({type:"SET_CURRENT_USER",payload:o(t)})},signOut:function(){localStorage.removeItem("jwt"),location.reload()},updateCurrentUser:function(e,t){e({type:"SET_CURRENT_USER",payload:t})}}},function(e,t,r){"use strict";(function(e,n){r.d(t,"a",(function(){return P}));var o=r(210),i=r(498),a=r(499),s=r(500),c=r(211),u=r(501),l=r(502),f=r(503),p=r(504),d=r(505),h=r(506),y=r(61),m=r.n(y),b=r(134);function g(e){return(g="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)}function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function w(e){for(var t=1;t"),i=r?'
'.concat(r,"
"):"",a=n?'
'.concat(n,"
"):"";Object(b.b)(e,{content:'
'.concat(o," ").concat(i," ").concat(a,"
"),allowHTML:!0,theme:"-dark"})},P=function(t){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(o,t);var r,n=(r=o,function(){var e,t=A(r);if(O()){var n=A(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function o(t){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(r=n.call(this,t)).state={focusedAtLeastOnce:!1,pendingUploads:new Set},r.componentDidMount=function(){r.uiMakeToolbarButtonsUnfocusable()},r.addPendingUpload=function(e){r.setState((function(t){var r=new Set(t.pendingUploads);return r.add(e),{pendingUploads:r}}),(function(){r.props.onUploadStateChange&&r.props.onUploadStateChange(r.state.pendingUploads.size>0)}))},r.removePendingUpload=function(e){r.setState((function(t){var r=new Set(t.pendingUploads);return r.delete(e),{pendingUploads:r}}),(function(){r.props.onUploadStateChange&&r.props.onUploadStateChange(r.state.pendingUploads.size>0)}))},r.hasPendingUploads=function(){return r.state.pendingUploads.size>0},r.uiMakeToolbarButtonsUnfocusable=function(){var e=r.quillRef.current.editor.container.parentElement.querySelectorAll(".ql-toolbar button");e.forEach((function(e){return e.setAttribute("tabindex","-1")})),e.forEach((function(e){switch(e.className){case"ql-bold":C(e,"Bold","⌘ B");break;case"ql-italic":C(e,"Italic","⌘ I");break;case"ql-underline":C(e,"Underline","⌘ U");break;case"ql-code":C(e,"Inline code","⌘ Shift M");break;case"ql-blockquote":C(e,"Quote","⌘ Shift K");break;case"ql-code-block":C(e,"Block of code","⌘ Shift C");break;case"ql-link":C(e,"Link",null,"Select some text and click here");break;case"ql-image":C(e,"Image","⌘ v",null);break;case"ql-clean":C(e,"Clear formatting");break;case"ql-formula":C(e,"Insert KaTeX formula","⌘ Shift F");break;case"ql-answer":C(e,"Answer","⌘ Shift ENTER","Select some text, and mark it as an answer.
Use | to provide alternative answers.");break;case"ql-list":"ordered"===e.value?C(e,"Ordered List",null,"Type '1.'"):"bullet"===e.value&&C(e,"Unordered List",null,"Type '-'");break;case"ql-script":"sub"===e.value?C(e,"Subscript","⌘ Shift ,"):"super"===e.value&&C(e,"Superscript","⌘ Shift .")}}))},r.onBlur=function(){r.props.onFocusChange(!1)},r.onFocus=function(){r.setState({focusedAtLeastOnce:!0}),r.props.onFocusChange(!0)},r.onChange=function(e){(r.state.focusedAtLeastOnce||r.props.editorState.includes("placeholder-for-loading-image"))&&r.props.updateEditorState(e)},r.modules={toolbar:{container:r.props.toolbarContainer,handlers:w({},r.props.toolbarHandlers,{image:function(){Object(s.a)(this.quillRef.current.getEditor(),{onSuccess:this.onBlur,editorComponent:this})}.bind(x(r))})},keyboard:{bindings:k},clipboard:{matchVisual:!1,matchers:a.a},imageResize:{modules:["Resize"]},moduleDropOrPasteImage:{handler:function(e,t){Object(i.a)(e,t,{onSuccess:r.onBlur,editorComponent:x(r)})}}},r.render=function(){return e.createElement(m.a,{className:r.props.className,value:r.props.editorState,onChange:r.onChange,readOnly:r.props.readOnly,ref:r.quillRef,modules:r.modules,onBlur:r.onBlur,onFocus:r.onFocus,placeholder:r.props.placeholder})},r.quillRef=e.createRef(),r}return o}(e.Component);P.propTypes={editorState:n.string.isRequired,updateEditorState:n.func,readOnly:n.bool,placeholder:n.oneOfType([n.string,n.element]),onFocusChange:n.func,toolbarContainer:n.array,toolbarHandlers:n.object,className:n.string,onUploadStateChange:n.func},P.defaultProps={readOnly:!1,placeholder:"",updateEditorState:function(e){return e},onFocusChange:function(){},toolbarContainer:o.a,toolbarHandlers:{},className:""},t.b=P}).call(this,r(0),r(1))},function(e,t,r){"use strict";r.d(t,"a",(function(){return I})),r.d(t,"b",(function(){return g})),r.d(t,"c",(function(){return v}));var n=r(41),o=r.n(n),i=r(207),a=r.n(i);function s(e){return"/"===e.charAt(0)}function c(e,t){for(var r=t,n=r+1,o=e.length;n1&&void 0!==arguments[1]?arguments[1]:"",r=e&&e.split("/")||[],n=t&&t.split("/")||[],o=e&&s(e),i=t&&s(t),a=o||i;if(e&&s(e)?n=r:r.length&&(n.pop(),n=n.concat(r)),!n.length)return"/";var u=void 0;if(n.length){var l=n[n.length-1];u="."===l||".."===l||""===l}else u=!1;for(var f=0,p=n.length;p>=0;p--){var d=n[p];"."===d?c(n,p):".."===d?(c(n,p),f++):f&&(c(n,p),f--)}if(!a)for(;f--;f)n.unshift("..");!a||""===n[0]||n[0]&&s(n[0])||n.unshift("");var h=n.join("/");return u&&"/"!==h.substr(-1)&&(h+="/"),h},l="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};var f=function e(t,r){if(t===r)return!0;if(null==t||null==r)return!1;if(Array.isArray(t))return Array.isArray(r)&&t.length===r.length&&t.every((function(t,n){return e(t,r[n])}));var n=void 0===t?"undefined":l(t);if(n!==(void 0===r?"undefined":l(r)))return!1;if("object"===n){var o=t.valueOf(),i=r.valueOf();if(o!==t||i!==r)return e(o,i);var a=Object.keys(t),s=Object.keys(r);return a.length===s.length&&a.every((function(n){return e(t[n],r[n])}))}return!1},p=function(e){return"/"===e.charAt(0)?e:"/"+e},d=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},h=function(e,t){return d(e,t)?e.substr(t.length):e},y=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},m=function(e){var t=e.pathname,r=e.search,n=e.hash,o=t||"/";return r&&"?"!==r&&(o+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(o+="#"===n.charAt(0)?n:"#"+n),o},b=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(_,"Browser history needs a DOM");var t=window.history,r=O(),n=!A(),i=e.forceRefresh,s=void 0!==i&&i,c=e.getUserConfirmation,u=void 0===c?x:c,l=e.keyLength,f=void 0===l?6:l,b=e.basename?y(p(e.basename)):"",v=function(e){var t=e||{},r=t.key,n=t.state,i=window.location,a=i.pathname+i.search+i.hash;return o()(!b||d(a,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+a+'" to begin with "'+b+'".'),b&&(a=h(a,b)),g(a,n,r)},I=function(){return Math.random().toString(36).substr(2,f)},R=w(),j=function(e){P(Q,e),Q.length=t.length,R.notifyListeners(Q.location,Q.action)},N=function(e){k(e)||B(v(e.state))},M=function(){B(v(T()))},D=!1,B=function(e){if(D)D=!1,j();else{R.confirmTransitionTo(e,"POP",u,(function(t){t?j({action:"POP",location:e}):F(e)}))}},F=function(e){var t=Q.location,r=U.indexOf(t.key);-1===r&&(r=0);var n=U.indexOf(e.key);-1===n&&(n=0);var o=r-n;o&&(D=!0,q(o))},L=v(T()),U=[L.key],z=function(e){return b+m(e)},W=function(e,n){o()(!("object"===(void 0===e?"undefined":C(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=g(e,n,I(),Q.location);R.confirmTransitionTo(i,"PUSH",u,(function(e){if(e){var n=z(i),a=i.key,c=i.state;if(r)if(t.pushState({key:a,state:c},null,n),s)window.location.href=n;else{var u=U.indexOf(Q.location.key),l=U.slice(0,-1===u?0:u+1);l.push(i.key),U=l,j({action:"PUSH",location:i})}else o()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=n}}))},V=function(e,n){o()(!("object"===(void 0===e?"undefined":C(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=g(e,n,I(),Q.location);R.confirmTransitionTo(i,"REPLACE",u,(function(e){if(e){var n=z(i),a=i.key,c=i.state;if(r)if(t.replaceState({key:a,state:c},null,n),s)window.location.replace(n);else{var u=U.indexOf(Q.location.key);-1!==u&&(U[u]=i.key),j({action:"REPLACE",location:i})}else o()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(n)}}))},q=function(e){t.go(e)},H=function(){return q(-1)},G=function(){return q(1)},$=0,Y=function(e){1===($+=e)?(E(window,"popstate",N),n&&E(window,"hashchange",M)):0===$&&(S(window,"popstate",N),n&&S(window,"hashchange",M))},X=!1,K=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=R.setPrompt(e);return X||(Y(1),X=!0),function(){return X&&(X=!1,Y(-1)),t()}},Z=function(e){var t=R.appendListener(e);return Y(1),function(){Y(-1),t()}},Q={length:t.length,action:"POP",location:L,createHref:z,push:W,replace:V,go:q,goBack:H,goForward:G,block:K,listen:Z};return Q};Object.assign,"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var r=0,n=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++r+n).toString(36))}},function(e,t,r){var n=r(326),o=r(247);e.exports=Object.keys||function(e){return n(e,o)}},function(e,t,r){var n=r(65),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=n(e))<0?o(e+t,0):i(e,t)}},function(e,t,r){var n=r(8),o=r(327),i=r(247),a=r(246)("IE_PROTO"),s=function(){},c=function(){var e,t=r(244)("iframe"),n=i.length;for(t.style.display="none",r(248).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("