UNPKG

airdcpp-webui

Version:
3 lines 907 kB
/*! For license information please see home.759e86dc641515d465d4.chunk.js.LICENSE.txt */
(self.webpackChunkairdcpp_webui=self.webpackChunkairdcpp_webui||[]).push([[962],{1076:(e,t,i)=>{"use strict";i.d(t,{A:()=>d});var r=i(74848),a=i(96540),s=i(32728),n=i(32389),o=i(42695),l=i(67749),c=i(48249);const d=function(e,t,i,d=0){return h=>{const{t:u}=(0,n.Bd)(),[g,p]=a.useState(null),f=(0,c.F)(),b=e=>{p(e)},m=()=>{f.get(t).then(b).catch(e=>console.error("Failed to fetch stats",e.message))};return a.useEffect(()=>{m();const e=window.setInterval(m,1e3*d);return()=>{window.clearTimeout(e)}},[]),null===g?null:void 0===g?(0,r.jsx)(s.A,{title:(0,o.Tl)("Statistics not available",u,l.KV.COMMON),description:i?i(u,h):void 0}):(0,r.jsx)(e,Object.assign({},h,{stats:g}))}}},2141:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});const r="extensions",a="https://registry.npmjs.org/",s={MODULE_URL:r,EXTENSIONS_URL:r,DOWNLOAD_URL:r+"/download",ENGINES_URL:r+"/engines",ENGINES_STATUS_URL:r+"/engines/status",DEFAULT_ENGINE:"node",STARTED:"extension_started",STOPPED:"extension_stopped",ADDED:"extension_added",REMOVED:"extension_removed",UPDATED:"extension_updated",INSTALLATION_STARTED:"extension_installation_started",INSTALLATION_SUCCEEDED:"extension_installation_succeeded",INSTALLATION_FAILED:"extension_installation_failed",NPM_PACKAGES_URL:a+"-/v1/search?text=keywords:airdcpp-extensions-public&size=100",NPM_PACKAGE_URL:a,NPM_HOMEPAGE_URL:"https://www.npmjs.com/package/"}},3108:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findOrGenerateResponsiveLayout=function(e,t,i,s,n,o){if(e[i])return(0,r.cloneLayout)(e[i]);let l=e[s];const c=a(t),d=c.slice(c.indexOf(i));for(let t=0,i=d.length;t<i;t++){const i=d[t];if(e[i]){l=e[i];break}}return l=(0,r.cloneLayout)(l||[]),(0,r.compact)((0,r.correctBounds)(l,{cols:n}),o,n)},t.getBreakpointFromWidth=function(e,t){const i=a(e);let r=i[0];for(let a=1,s=i.length;a<s;a++){const s=i[a];t>e[s]&&(r=s)}return r},t.getColsFromBreakpoint=function(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]},t.sortBreakpoints=a;var r=i(38426);function a(e){return Object.keys(e).sort(function(t,i){return e[t]-e[i]})}},6888:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var i,r,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t){if(i.has(e))return i.get(e);i.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(a,t,r):a[t]=e[t]);return a}(e)}(i(96540)),a=d(i(5556)),s=d(i(40961)),n=i(71089),o=i(81726),l=i(77056),c=d(i(18696));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const u={start:"touchstart",move:"touchmove",stop:"touchend"},g={start:"mousedown",move:"mousemove",stop:"mouseup"};let p=g;class f extends r.Component{constructor(){super(...arguments),h(this,"dragging",!1),h(this,"lastX",NaN),h(this,"lastY",NaN),h(this,"touchIdentifier",null),h(this,"mounted",!1),h(this,"handleDragStart",e=>{if(this.props.onMouseDown(e),!this.props.allowAnyClick&&"number"==typeof e.button&&0!==e.button)return!1;const t=this.findDOMNode();if(!t||!t.ownerDocument||!t.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:i}=t;if(this.props.disabled||!(e.target instanceof i.defaultView.Node)||this.props.handle&&!(0,n.matchesSelectorAndParentsTo)(e.target,this.props.handle,t)||this.props.cancel&&(0,n.matchesSelectorAndParentsTo)(e.target,this.props.cancel,t))return;"touchstart"!==e.type||this.props.allowMobileScroll||e.preventDefault();const r=(0,n.getTouchIdentifier)(e);this.touchIdentifier=r;const a=(0,o.getControlPosition)(e,r,this);if(null==a)return;const{x:s,y:l}=a,d=(0,o.createCoreData)(this,s,l);(0,c.default)("DraggableCore: handleDragStart: %j",d),(0,c.default)("calling",this.props.onStart),!1!==this.props.onStart(e,d)&&!1!==this.mounted&&(this.props.enableUserSelectHack&&(0,n.addUserSelectStyles)(i),this.dragging=!0,this.lastX=s,this.lastY=l,(0,n.addEvent)(i,p.move,this.handleDrag),(0,n.addEvent)(i,p.stop,this.handleDragStop))}),h(this,"handleDrag",e=>{const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:i,y:r}=t;if(Array.isArray(this.props.grid)){let e=i-this.lastX,t=r-this.lastY;if([e,t]=(0,o.snapToGrid)(this.props.grid,e,t),!e&&!t)return;i=this.lastX+e,r=this.lastY+t}const a=(0,o.createCoreData)(this,i,r);if((0,c.default)("DraggableCore: handleDrag: %j",a),!1!==this.props.onDrag(e,a)&&!1!==this.mounted)this.lastX=i,this.lastY=r;else try{this.handleDragStop(new MouseEvent("mouseup"))}catch(e){const t=document.createEvent("MouseEvents");t.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(t)}}),h(this,"handleDragStop",e=>{if(!this.dragging)return;const t=(0,o.getControlPosition)(e,this.touchIdentifier,this);if(null==t)return;let{x:i,y:r}=t;if(Array.isArray(this.props.grid)){let e=i-this.lastX||0,t=r-this.lastY||0;[e,t]=(0,o.snapToGrid)(this.props.grid,e,t),i=this.lastX+e,r=this.lastY+t}const a=(0,o.createCoreData)(this,i,r);if(!1===this.props.onStop(e,a)||!1===this.mounted)return!1;const s=this.findDOMNode();s&&this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(s.ownerDocument),(0,c.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,s&&((0,c.default)("DraggableCore: Removing handlers"),(0,n.removeEvent)(s.ownerDocument,p.move,this.handleDrag),(0,n.removeEvent)(s.ownerDocument,p.stop,this.handleDragStop))}),h(this,"onMouseDown",e=>(p=g,this.handleDragStart(e))),h(this,"onMouseUp",e=>(p=g,this.handleDragStop(e))),h(this,"onTouchStart",e=>(p=u,this.handleDragStart(e))),h(this,"onTouchEnd",e=>(p=u,this.handleDragStop(e)))}componentDidMount(){this.mounted=!0;const e=this.findDOMNode();e&&(0,n.addEvent)(e,u.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const e=this.findDOMNode();if(e){const{ownerDocument:t}=e;(0,n.removeEvent)(t,g.move,this.handleDrag),(0,n.removeEvent)(t,u.move,this.handleDrag),(0,n.removeEvent)(t,g.stop,this.handleDragStop),(0,n.removeEvent)(t,u.stop,this.handleDragStop),(0,n.removeEvent)(e,u.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,n.scheduleRemoveUserSelectStyles)(t)}}findDOMNode(){return this.props?.nodeRef?this.props?.nodeRef?.current:s.default.findDOMNode(this)}render(){return r.cloneElement(r.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}t.default=f,h(f,"displayName","DraggableCore"),h(f,"propTypes",{allowAnyClick:a.default.bool,allowMobileScroll:a.default.bool,children:a.default.node.isRequired,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:function(e,t){if(e[t]&&1!==e[t].nodeType)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:a.default.arrayOf(a.default.number),handle:a.default.string,cancel:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number,className:l.dontSetMe,style:l.dontSetMe,transform:l.dontSetMe}),h(f,"defaultProps",{allowAnyClick:!1,allowMobileScroll:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1})},11837:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,'/*!\n * # Fomantic-UI 2.9.4 - Card\n * https://github.com/fomantic/Fomantic-UI/\n *\n *\n * Released under the MIT license\n * https://opensource.org/licenses/MIT\n *\n */.ui.card,.ui.cards>.card{max-width:100%;position:relative;display:flex;flex-direction:column;width:290px;min-height:0;background:#fff;padding:0;border:none;border-radius:.28571429rem;box-shadow:0 1px 3px 0 #d4d4d5,0 0 0 1px #d4d4d5;transition:box-shadow .1s ease,transform .1s ease;z-index:"";word-wrap:break-word}.ui.card{margin:1em 0}.ui.card a,.ui.cards>.card a{cursor:pointer}.ui.card:first-child{margin-top:0}.ui.card:last-child{margin-bottom:0}.ui.cards{display:flex;margin:-.875em -.5em;flex-wrap:wrap}.ui.cards>.card{display:flex;margin:.875em .5em;float:none}.ui.card::after,.ui.cards::after{display:block;content:" ";height:0;clear:both;overflow:hidden;visibility:hidden}.ui.cards~.ui.cards{margin-top:.875em}.ui.card>:first-child,.ui.cards>.card>:first-child{border-radius:.28571429rem .28571429rem 0 0!important;border-top:none!important}.ui.card>:last-child,.ui.cards>.card>:last-child{border-radius:0 0 .28571429rem .28571429rem!important}.ui.card>:only-child,.ui.cards>.card>:only-child{border-radius:.28571429rem!important}.ui.card>.image,.ui.cards>.card>.image{position:relative;display:block;flex:0 0 auto;padding:0;background:rgba(0,0,0,.05)}.ui.card>.image>img,.ui.cards>.card>.image>img{display:block;width:100%;height:auto;border-radius:inherit}.ui.card>.image:not(.ui)>img,.ui.cards>.card>.image:not(.ui)>img{border:none}.ui.card>.content,.ui.cards>.card>.content{flex-grow:1;border:none;border-top:1px solid rgba(34,36,38,.1);background:0 0;margin:0;padding:1em;box-shadow:none;font-size:1em;border-radius:0}.ui.card>.content::after,.ui.cards>.card>.content::after{display:block;content:" ";height:0;clear:both;overflow:hidden;visibility:hidden}.ui.card>.content>.header,.ui.cards>.card>.content>.header{display:block;margin:"";font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:rgba(0,0,0,.85)}.ui.card>.content>.header:not(.ui),.ui.cards>.card>.content>.header:not(.ui){font-weight:700;font-size:1.28571429em;margin-top:-.21425em;line-height:1.28571429em}.ui.card>.content>.header+.description,.ui.card>.content>.meta+.description,.ui.cards>.card>.content>.header+.description,.ui.cards>.card>.content>.meta+.description{margin-top:.5em}.ui.card [class*="left floated"],.ui.cards>.card [class*="left floated"]{float:left}.ui.card [class*="right floated"],.ui.cards>.card [class*="right floated"]{float:right}.ui.card [class*="left aligned"],.ui.cards>.card [class*="left aligned"]{text-align:left}.ui.card [class*="center aligned"],.ui.cards>.card [class*="center aligned"]{text-align:center}.ui.card [class*="right aligned"],.ui.cards>.card [class*="right aligned"]{text-align:right}.ui.card .content img,.ui.cards>.card .content img{display:inline-block;vertical-align:middle;width:""}.ui.card .avatar img,.ui.card img.avatar,.ui.cards>.card .avatar img,.ui.cards>.card img.avatar{width:2em;height:2em;border-radius:500rem}.ui.card>.content>.description,.ui.cards>.card>.content>.description{clear:both;color:rgba(0,0,0,.68)}.ui.card>.content p,.ui.cards>.card>.content p{margin:0 0 .5em}.ui.card>.content p:last-child,.ui.cards>.card>.content p:last-child{margin-bottom:0}.ui.card .meta,.ui.cards>.card .meta{font-size:1em;color:rgba(0,0,0,.4)}.ui.card .meta *,.ui.cards>.card .meta *{margin-right:.3em}.ui.card .meta :last-child,.ui.cards>.card .meta :last-child{margin-right:0}.ui.card .meta [class*="right floated"],.ui.cards>.card .meta [class*="right floated"]{margin-right:0;margin-left:.3em}.ui.card>.content a:not(.ui),.ui.cards>.card>.content a:not(.ui){color:"";transition:color .1s ease}.ui.card>.content a:not(.ui):hover,.ui.cards>.card>.content a:not(.ui):hover{color:""}.ui.card>.content>a.header,.ui.cards>.card>.content>a.header{color:rgba(0,0,0,.85)}.ui.card>.content>a.header:hover,.ui.cards>.card>.content>a.header:hover{color:#1e70bf}.ui.card .meta>a:not(.ui),.ui.cards>.card .meta>a:not(.ui){color:rgba(0,0,0,.4)}.ui.card .meta>a:not(.ui):hover,.ui.cards>.card .meta>a:not(.ui):hover{color:rgba(0,0,0,.87)}.ui.card>.button,.ui.card>.buttons,.ui.cards>.card>.button,.ui.cards>.card>.buttons{margin:0 -1px;width:calc(100% + 2px)}.ui.card>.button:last-child,.ui.card>.buttons:last-child,.ui.cards>.card>.button:last-child,.ui.cards>.card>.buttons:last-child{margin-bottom:-1px}.ui.cards:not(.raised)>.basic.card:not(.raised),.ui.ui.ui.basic.card:not(.raised),.ui.ui.ui.basic.cards:not(.raised)>.card:not(.raised){box-shadow:none}.ui.cards:not(.raised)>.basic.card:not(.raised)>.button,.ui.cards:not(.raised)>.basic.card:not(.raised)>.buttons,.ui.ui.ui.basic.card:not(.raised)>.button,.ui.ui.ui.basic.card:not(.raised)>.buttons,.ui.ui.ui.basic.cards:not(.raised)>.card:not(.raised)>.button,.ui.ui.ui.basic.cards:not(.raised)>.card:not(.raised)>.buttons{margin:0;width:100%}.ui.ui.ui.ui.ui.basic.card:not(.raised):hover,.ui.ui.ui.ui.ui.basic.cards:not(.raised) .card:not(.raised):hover{box-shadow:none}.ui.card .dimmer,.ui.cards>.card .dimmer{background:"";z-index:10}.ui.card>.content .star.icon,.ui.cards>.card>.content .star.icon{cursor:pointer;opacity:.75;transition:color .1s ease}.ui.card>.content .star.icon:hover,.ui.cards>.card>.content .star.icon:hover{opacity:1;color:#ffb70a}.ui.card>.content .active.star.icon,.ui.cards>.card>.content .active.star.icon{color:#ffe623}.ui.card>.content .like.icon,.ui.cards>.card>.content .like.icon{cursor:pointer;opacity:.75;transition:color .1s ease}.ui.card>.content .like.icon:hover,.ui.cards>.card>.content .like.icon:hover{opacity:1;color:#ff2733}.ui.card>.content .active.like.icon,.ui.cards>.card>.content .active.like.icon{color:#ff2733}.ui.card>.extra,.ui.cards>.card>.extra{max-width:100%;min-height:0!important;flex-grow:0;border-top:1px solid rgba(0,0,0,.05)!important;position:static;background:0 0;width:auto;margin:0;padding:.75em 1em;top:0;left:0;color:rgba(0,0,0,.4);box-shadow:none;transition:color .1s ease}.ui.card>.extra a:not(.ui),.ui.cards>.card>.extra a:not(.ui){color:rgba(0,0,0,.4)}.ui.card>.extra a:not(.ui):hover,.ui.cards>.card>.extra a:not(.ui):hover{color:#1e70bf}.ui.disabled.card{opacity:.45;color:rgba(40,40,40,.3);pointer-events:none}.ui.loading.card{position:relative;cursor:default;pointer-events:none;transition:all 0s linear}.ui.loading.card::before{position:absolute;content:"";top:0;left:0;background:rgba(255,255,255,.8);width:100%;height:100%;border-radius:.28571429rem;z-index:100}.ui.loading.card::after{position:absolute;content:"";top:50%;left:50%;margin:-1.5em 0 0 -1.5em;width:3em;height:3em;animation:loader .6s infinite linear;border:.2em solid #767676;border-radius:500rem;box-shadow:0 0 0 1px transparent;visibility:visible;z-index:101}.ui.card.horizontal,.ui.horizontal.cards>.card{flex-flow:row wrap;min-width:270px;width:400px;max-width:100%}.ui.card.horizontal>.image,.ui.horizontal.cards>.card>.image{border-radius:.28571429rem 0 0 .28571429rem;width:150px}.ui.card.horizontal>.image>img,.ui.horizontal.cards>.card>.image>img{background-size:cover;background-repeat:no-repeat;background-position:center;justify-content:center;align-items:center;display:flex;width:100%;border-radius:.28571429rem 0 0 .28571429rem}.ui.card.horizontal>.image:last-child>img,.ui.horizontal.cards>.card>.image:last-child>img{border-radius:0 .28571429rem .28571429rem 0}.ui.horizontal.card>.content,.ui.horizontal.cards>.card>.content{border-top:none;flex-basis:1px}.ui.horizontal.card>.extra,.ui.horizontal.cards>.card>.extra{flex-basis:100%}.ui.cards>.raised.card,.ui.raised.card,.ui.raised.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.15)}.ui.link.cards .raised.card:hover,.ui.link.raised.card:hover,.ui.raised.cards a.card:hover,a.ui.raised.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 4px 0 rgba(34,36,38,.15),0 2px 10px 0 rgba(34,36,38,.25)}.ui.basic.cards>.raised.card,.ui.basic.raised.card,.ui.basic.raised.cards>.card,.ui.raised.cards>.basic.card{box-shadow:0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.15)}.ui.basic.raised.cards a.card:hover,.ui.link.basic.cards .raised.card:hover,.ui.link.basic.raised.card:hover,.ui.link.basic.raised.cards .card:hover,.ui.link.cards .basic.raised.card:hover,a.ui.basic.raised.card:hover{box-shadow:0 2px 4px 0 rgba(34,36,38,.15),0 2px 10px 0 rgba(34,36,38,.25)}.ui.centered.cards{justify-content:center}.ui.centered.card{margin-left:auto;margin-right:auto}.ui.fluid.card{width:100%;max-width:9999px}.ui.cards a.card,.ui.link.card,.ui.link.cards .card,a.ui.card{transform:none}.ui.cards a.card:hover,.ui.link.card:hover,.ui.link.cards .card:not(.icon):hover,a.ui.card:hover{cursor:pointer;z-index:5;background:#fff;border:none;box-shadow:0 1px 3px 0 #bcbdbd,0 0 0 1px #d4d4d5;transform:translateY(-3px)}.ui.cards>.primary.card,.ui.primary.card,.ui.primary.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #2185d0,0 1px 3px 0 #d4d4d5}.ui.cards a.primary.card:hover,.ui.link.cards .primary.card:not(.icon):hover,.ui.link.primary.card:hover,.ui.link.primary.cards .card:not(.icon):hover,.ui.primary.cards a.card:hover,a.ui.primary.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1678c2,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.primary.card,.ui.basic.primary.card,.ui.basic.primary.cards>.card,.ui.cards>.basic.primary.card{background:#54c8ff}.ui.basic.cards a.primary.card:hover,.ui.basic.primary.cards a.card:hover,.ui.cards a.basic.primary.card:hover,.ui.link.basic.cards .primary.card:not(.icon):hover,.ui.link.basic.primary.card:hover,.ui.link.basic.primary.cards .card:not(.icon):hover,.ui.link.cards .basic.primary.card:not(.icon):hover,a.ui.basic.primary.card:hover{background:#21b8ff}.ui.inverted.cards>.primary.card,.ui.inverted.primary.card,.ui.inverted.primary.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #54c8ff,0 0 0 1px #555}.ui.inverted.cards a.primary.card:hover,.ui.inverted.primary.cards a.card:hover,.ui.link.inverted.cards .primary.card:not(.icon):hover,.ui.link.inverted.primary.card:hover,.ui.link.inverted.primary.cards .card:not(.icon):hover,a.ui.inverted.primary.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #21b8ff,0 0 0 1px #555}.ui.basic.inverted.cards>.primary.card,.ui.basic.inverted.primary.card,.ui.basic.inverted.primary.cards>.card,.ui.inverted.cards>.basic.primary.card{background:#2185d0}.ui.basic.inverted.cards a.primary.card:hover,.ui.basic.inverted.primary.cards a.card:hover,.ui.inverted.cards a.basic.primary.card:hover,.ui.link.basic.inverted.cards .primary.card:not(.icon):hover,.ui.link.basic.inverted.primary.card:hover,.ui.link.basic.inverted.primary.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.primary.card:not(.icon):hover,a.ui.basic.inverted.primary.card:hover{background:#1678c2}.ui.cards>.secondary.card,.ui.secondary.card,.ui.secondary.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1b1c1d,0 1px 3px 0 #d4d4d5}.ui.cards a.secondary.card:hover,.ui.link.cards .secondary.card:not(.icon):hover,.ui.link.secondary.card:hover,.ui.link.secondary.cards .card:not(.icon):hover,.ui.secondary.cards a.card:hover,a.ui.secondary.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #27292a,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.secondary.card,.ui.basic.secondary.card,.ui.basic.secondary.cards>.card,.ui.cards>.basic.secondary.card{background:#545454}.ui.basic.cards a.secondary.card:hover,.ui.basic.secondary.cards a.card:hover,.ui.cards a.basic.secondary.card:hover,.ui.link.basic.cards .secondary.card:not(.icon):hover,.ui.link.basic.secondary.card:hover,.ui.link.basic.secondary.cards .card:not(.icon):hover,.ui.link.cards .basic.secondary.card:not(.icon):hover,a.ui.basic.secondary.card:hover{background:#6e6e6e}.ui.inverted.cards>.secondary.card,.ui.inverted.secondary.card,.ui.inverted.secondary.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #545454,0 0 0 1px #555}.ui.inverted.cards a.secondary.card:hover,.ui.inverted.secondary.cards a.card:hover,.ui.link.inverted.cards .secondary.card:not(.icon):hover,.ui.link.inverted.secondary.card:hover,.ui.link.inverted.secondary.cards .card:not(.icon):hover,a.ui.inverted.secondary.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #6e6e6e,0 0 0 1px #555}.ui.basic.inverted.cards>.secondary.card,.ui.basic.inverted.secondary.card,.ui.basic.inverted.secondary.cards>.card,.ui.inverted.cards>.basic.secondary.card{background:#1b1c1d}.ui.basic.inverted.cards a.secondary.card:hover,.ui.basic.inverted.secondary.cards a.card:hover,.ui.inverted.cards a.basic.secondary.card:hover,.ui.link.basic.inverted.cards .secondary.card:not(.icon):hover,.ui.link.basic.inverted.secondary.card:hover,.ui.link.basic.inverted.secondary.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.secondary.card:not(.icon):hover,a.ui.basic.inverted.secondary.card:hover{background:#27292a}.ui.cards>.red.card,.ui.red.card,.ui.red.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #db2828,0 1px 3px 0 #d4d4d5}.ui.cards a.red.card:hover,.ui.link.cards .red.card:not(.icon):hover,.ui.link.red.card:hover,.ui.link.red.cards .card:not(.icon):hover,.ui.red.cards a.card:hover,a.ui.red.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #d01919,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.red.card,.ui.basic.red.card,.ui.basic.red.cards>.card,.ui.cards>.basic.red.card{background:#ff695e}.ui.basic.cards a.red.card:hover,.ui.basic.red.cards a.card:hover,.ui.cards a.basic.red.card:hover,.ui.link.basic.cards .red.card:not(.icon):hover,.ui.link.basic.red.card:hover,.ui.link.basic.red.cards .card:not(.icon):hover,.ui.link.cards .basic.red.card:not(.icon):hover,a.ui.basic.red.card:hover{background:#ff392b}.ui.inverted.cards>.red.card,.ui.inverted.red.card,.ui.inverted.red.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff695e,0 0 0 1px #555}.ui.inverted.cards a.red.card:hover,.ui.inverted.red.cards a.card:hover,.ui.link.inverted.cards .red.card:not(.icon):hover,.ui.link.inverted.red.card:hover,.ui.link.inverted.red.cards .card:not(.icon):hover,a.ui.inverted.red.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff392b,0 0 0 1px #555}.ui.basic.inverted.cards>.red.card,.ui.basic.inverted.red.card,.ui.basic.inverted.red.cards>.card,.ui.inverted.cards>.basic.red.card{background:#db2828}.ui.basic.inverted.cards a.red.card:hover,.ui.basic.inverted.red.cards a.card:hover,.ui.inverted.cards a.basic.red.card:hover,.ui.link.basic.inverted.cards .red.card:not(.icon):hover,.ui.link.basic.inverted.red.card:hover,.ui.link.basic.inverted.red.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.red.card:not(.icon):hover,a.ui.basic.inverted.red.card:hover{background:#d01919}.ui.cards>.orange.card,.ui.orange.card,.ui.orange.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #f2711c,0 1px 3px 0 #d4d4d5}.ui.cards a.orange.card:hover,.ui.link.cards .orange.card:not(.icon):hover,.ui.link.orange.card:hover,.ui.link.orange.cards .card:not(.icon):hover,.ui.orange.cards a.card:hover,a.ui.orange.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #f26202,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.orange.card,.ui.basic.orange.card,.ui.basic.orange.cards>.card,.ui.cards>.basic.orange.card{background:#ff851b}.ui.basic.cards a.orange.card:hover,.ui.basic.orange.cards a.card:hover,.ui.cards a.basic.orange.card:hover,.ui.link.basic.cards .orange.card:not(.icon):hover,.ui.link.basic.orange.card:hover,.ui.link.basic.orange.cards .card:not(.icon):hover,.ui.link.cards .basic.orange.card:not(.icon):hover,a.ui.basic.orange.card:hover{background:#e76b00}.ui.inverted.cards>.orange.card,.ui.inverted.orange.card,.ui.inverted.orange.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff851b,0 0 0 1px #555}.ui.inverted.cards a.orange.card:hover,.ui.inverted.orange.cards a.card:hover,.ui.link.inverted.cards .orange.card:not(.icon):hover,.ui.link.inverted.orange.card:hover,.ui.link.inverted.orange.cards .card:not(.icon):hover,a.ui.inverted.orange.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #e76b00,0 0 0 1px #555}.ui.basic.inverted.cards>.orange.card,.ui.basic.inverted.orange.card,.ui.basic.inverted.orange.cards>.card,.ui.inverted.cards>.basic.orange.card{background:#f2711c}.ui.basic.inverted.cards a.orange.card:hover,.ui.basic.inverted.orange.cards a.card:hover,.ui.inverted.cards a.basic.orange.card:hover,.ui.link.basic.inverted.cards .orange.card:not(.icon):hover,.ui.link.basic.inverted.orange.card:hover,.ui.link.basic.inverted.orange.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.orange.card:not(.icon):hover,a.ui.basic.inverted.orange.card:hover{background:#f26202}.ui.cards>.yellow.card,.ui.yellow.card,.ui.yellow.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #fbbd08,0 1px 3px 0 #d4d4d5}.ui.cards a.yellow.card:hover,.ui.link.cards .yellow.card:not(.icon):hover,.ui.link.yellow.card:hover,.ui.link.yellow.cards .card:not(.icon):hover,.ui.yellow.cards a.card:hover,a.ui.yellow.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #eaae00,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.yellow.card,.ui.basic.yellow.card,.ui.basic.yellow.cards>.card,.ui.cards>.basic.yellow.card{background:#ffe21f}.ui.basic.cards a.yellow.card:hover,.ui.basic.yellow.cards a.card:hover,.ui.cards a.basic.yellow.card:hover,.ui.link.basic.cards .yellow.card:not(.icon):hover,.ui.link.basic.yellow.card:hover,.ui.link.basic.yellow.cards .card:not(.icon):hover,.ui.link.cards .basic.yellow.card:not(.icon):hover,a.ui.basic.yellow.card:hover{background:#ebcd00}.ui.inverted.cards>.yellow.card,.ui.inverted.yellow.card,.ui.inverted.yellow.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ffe21f,0 0 0 1px #555}.ui.inverted.cards a.yellow.card:hover,.ui.inverted.yellow.cards a.card:hover,.ui.link.inverted.cards .yellow.card:not(.icon):hover,.ui.link.inverted.yellow.card:hover,.ui.link.inverted.yellow.cards .card:not(.icon):hover,a.ui.inverted.yellow.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ebcd00,0 0 0 1px #555}.ui.basic.inverted.cards>.yellow.card,.ui.basic.inverted.yellow.card,.ui.basic.inverted.yellow.cards>.card,.ui.inverted.cards>.basic.yellow.card{background:#fbbd08}.ui.basic.inverted.cards a.yellow.card:hover,.ui.basic.inverted.yellow.cards a.card:hover,.ui.inverted.cards a.basic.yellow.card:hover,.ui.link.basic.inverted.cards .yellow.card:not(.icon):hover,.ui.link.basic.inverted.yellow.card:hover,.ui.link.basic.inverted.yellow.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.yellow.card:not(.icon):hover,a.ui.basic.inverted.yellow.card:hover{background:#eaae00}.ui.cards>.olive.card,.ui.olive.card,.ui.olive.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #b5cc18,0 1px 3px 0 #d4d4d5}.ui.cards a.olive.card:hover,.ui.link.cards .olive.card:not(.icon):hover,.ui.link.olive.card:hover,.ui.link.olive.cards .card:not(.icon):hover,.ui.olive.cards a.card:hover,a.ui.olive.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #a7bd0d,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.olive.card,.ui.basic.olive.card,.ui.basic.olive.cards>.card,.ui.cards>.basic.olive.card{background:#d9e778}.ui.basic.cards a.olive.card:hover,.ui.basic.olive.cards a.card:hover,.ui.cards a.basic.olive.card:hover,.ui.link.basic.cards .olive.card:not(.icon):hover,.ui.link.basic.olive.card:hover,.ui.link.basic.olive.cards .card:not(.icon):hover,.ui.link.cards .basic.olive.card:not(.icon):hover,a.ui.basic.olive.card:hover{background:#d2e745}.ui.inverted.cards>.olive.card,.ui.inverted.olive.card,.ui.inverted.olive.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #d9e778,0 0 0 1px #555}.ui.inverted.cards a.olive.card:hover,.ui.inverted.olive.cards a.card:hover,.ui.link.inverted.cards .olive.card:not(.icon):hover,.ui.link.inverted.olive.card:hover,.ui.link.inverted.olive.cards .card:not(.icon):hover,a.ui.inverted.olive.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #d2e745,0 0 0 1px #555}.ui.basic.inverted.cards>.olive.card,.ui.basic.inverted.olive.card,.ui.basic.inverted.olive.cards>.card,.ui.inverted.cards>.basic.olive.card{background:#b5cc18}.ui.basic.inverted.cards a.olive.card:hover,.ui.basic.inverted.olive.cards a.card:hover,.ui.inverted.cards a.basic.olive.card:hover,.ui.link.basic.inverted.cards .olive.card:not(.icon):hover,.ui.link.basic.inverted.olive.card:hover,.ui.link.basic.inverted.olive.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.olive.card:not(.icon):hover,a.ui.basic.inverted.olive.card:hover{background:#a7bd0d}.ui.cards>.green.card,.ui.green.card,.ui.green.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #21ba45,0 1px 3px 0 #d4d4d5}.ui.cards a.green.card:hover,.ui.green.cards a.card:hover,.ui.link.cards .green.card:not(.icon):hover,.ui.link.green.card:hover,.ui.link.green.cards .card:not(.icon):hover,a.ui.green.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #16ab39,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.green.card,.ui.basic.green.card,.ui.basic.green.cards>.card,.ui.cards>.basic.green.card{background:#2ecc40}.ui.basic.cards a.green.card:hover,.ui.basic.green.cards a.card:hover,.ui.cards a.basic.green.card:hover,.ui.link.basic.cards .green.card:not(.icon):hover,.ui.link.basic.green.card:hover,.ui.link.basic.green.cards .card:not(.icon):hover,.ui.link.cards .basic.green.card:not(.icon):hover,a.ui.basic.green.card:hover{background:#1ea92e}.ui.inverted.cards>.green.card,.ui.inverted.green.card,.ui.inverted.green.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #2ecc40,0 0 0 1px #555}.ui.inverted.cards a.green.card:hover,.ui.inverted.green.cards a.card:hover,.ui.link.inverted.cards .green.card:not(.icon):hover,.ui.link.inverted.green.card:hover,.ui.link.inverted.green.cards .card:not(.icon):hover,a.ui.inverted.green.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #1ea92e,0 0 0 1px #555}.ui.basic.inverted.cards>.green.card,.ui.basic.inverted.green.card,.ui.basic.inverted.green.cards>.card,.ui.inverted.cards>.basic.green.card{background:#21ba45}.ui.basic.inverted.cards a.green.card:hover,.ui.basic.inverted.green.cards a.card:hover,.ui.inverted.cards a.basic.green.card:hover,.ui.link.basic.inverted.cards .green.card:not(.icon):hover,.ui.link.basic.inverted.green.card:hover,.ui.link.basic.inverted.green.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.green.card:not(.icon):hover,a.ui.basic.inverted.green.card:hover{background:#16ab39}.ui.cards>.teal.card,.ui.teal.card,.ui.teal.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #00b5ad,0 1px 3px 0 #d4d4d5}.ui.cards a.teal.card:hover,.ui.link.cards .teal.card:not(.icon):hover,.ui.link.teal.card:hover,.ui.link.teal.cards .card:not(.icon):hover,.ui.teal.cards a.card:hover,a.ui.teal.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #009c95,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.teal.card,.ui.basic.teal.card,.ui.basic.teal.cards>.card,.ui.cards>.basic.teal.card{background:#6dffff}.ui.basic.cards a.teal.card:hover,.ui.basic.teal.cards a.card:hover,.ui.cards a.basic.teal.card:hover,.ui.link.basic.cards .teal.card:not(.icon):hover,.ui.link.basic.teal.card:hover,.ui.link.basic.teal.cards .card:not(.icon):hover,.ui.link.cards .basic.teal.card:not(.icon):hover,a.ui.basic.teal.card:hover{background:#3affff}.ui.inverted.cards>.teal.card,.ui.inverted.teal.card,.ui.inverted.teal.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #6dffff,0 0 0 1px #555}.ui.inverted.cards a.teal.card:hover,.ui.inverted.teal.cards a.card:hover,.ui.link.inverted.cards .teal.card:not(.icon):hover,.ui.link.inverted.teal.card:hover,.ui.link.inverted.teal.cards .card:not(.icon):hover,a.ui.inverted.teal.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #3affff,0 0 0 1px #555}.ui.basic.inverted.cards>.teal.card,.ui.basic.inverted.teal.card,.ui.basic.inverted.teal.cards>.card,.ui.inverted.cards>.basic.teal.card{background:#00b5ad}.ui.basic.inverted.cards a.teal.card:hover,.ui.basic.inverted.teal.cards a.card:hover,.ui.inverted.cards a.basic.teal.card:hover,.ui.link.basic.inverted.cards .teal.card:not(.icon):hover,.ui.link.basic.inverted.teal.card:hover,.ui.link.basic.inverted.teal.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.teal.card:not(.icon):hover,a.ui.basic.inverted.teal.card:hover{background:#009c95}.ui.blue.card,.ui.blue.cards>.card,.ui.cards>.blue.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #2185d0,0 1px 3px 0 #d4d4d5}.ui.blue.cards a.card:hover,.ui.cards a.blue.card:hover,.ui.link.blue.card:hover,.ui.link.blue.cards .card:not(.icon):hover,.ui.link.cards .blue.card:not(.icon):hover,a.ui.blue.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1678c2,0 1px 3px 0 #bcbdbd}.ui.basic.blue.card,.ui.basic.blue.cards>.card,.ui.basic.cards>.blue.card,.ui.cards>.basic.blue.card{background:#54c8ff}.ui.basic.blue.cards a.card:hover,.ui.basic.cards a.blue.card:hover,.ui.cards a.basic.blue.card:hover,.ui.link.basic.blue.card:hover,.ui.link.basic.blue.cards .card:not(.icon):hover,.ui.link.basic.cards .blue.card:not(.icon):hover,.ui.link.cards .basic.blue.card:not(.icon):hover,a.ui.basic.blue.card:hover{background:#21b8ff}.ui.inverted.blue.card,.ui.inverted.blue.cards>.card,.ui.inverted.cards>.blue.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #54c8ff,0 0 0 1px #555}.ui.inverted.blue.cards a.card:hover,.ui.inverted.cards a.blue.card:hover,.ui.link.inverted.blue.card:hover,.ui.link.inverted.blue.cards .card:not(.icon):hover,.ui.link.inverted.cards .blue.card:not(.icon):hover,a.ui.inverted.blue.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #21b8ff,0 0 0 1px #555}.ui.basic.inverted.blue.card,.ui.basic.inverted.blue.cards>.card,.ui.basic.inverted.cards>.blue.card,.ui.inverted.cards>.basic.blue.card{background:#2185d0}.ui.basic.inverted.blue.cards a.card:hover,.ui.basic.inverted.cards a.blue.card:hover,.ui.inverted.cards a.basic.blue.card:hover,.ui.link.basic.inverted.blue.card:hover,.ui.link.basic.inverted.blue.cards .card:not(.icon):hover,.ui.link.basic.inverted.cards .blue.card:not(.icon):hover,.ui.link.inverted.cards .basic.blue.card:not(.icon):hover,a.ui.basic.inverted.blue.card:hover{background:#1678c2}.ui.cards>.violet.card,.ui.violet.card,.ui.violet.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #6435c9,0 1px 3px 0 #d4d4d5}.ui.cards a.violet.card:hover,.ui.link.cards .violet.card:not(.icon):hover,.ui.link.violet.card:hover,.ui.link.violet.cards .card:not(.icon):hover,.ui.violet.cards a.card:hover,a.ui.violet.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #5829bb,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.violet.card,.ui.basic.violet.card,.ui.basic.violet.cards>.card,.ui.cards>.basic.violet.card{background:#a291fb}.ui.basic.cards a.violet.card:hover,.ui.basic.violet.cards a.card:hover,.ui.cards a.basic.violet.card:hover,.ui.link.basic.cards .violet.card:not(.icon):hover,.ui.link.basic.violet.card:hover,.ui.link.basic.violet.cards .card:not(.icon):hover,.ui.link.cards .basic.violet.card:not(.icon):hover,a.ui.basic.violet.card:hover{background:#745aff}.ui.inverted.cards>.violet.card,.ui.inverted.violet.card,.ui.inverted.violet.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #a291fb,0 0 0 1px #555}.ui.inverted.cards a.violet.card:hover,.ui.inverted.violet.cards a.card:hover,.ui.link.inverted.cards .violet.card:not(.icon):hover,.ui.link.inverted.violet.card:hover,.ui.link.inverted.violet.cards .card:not(.icon):hover,a.ui.inverted.violet.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #745aff,0 0 0 1px #555}.ui.basic.inverted.cards>.violet.card,.ui.basic.inverted.violet.card,.ui.basic.inverted.violet.cards>.card,.ui.inverted.cards>.basic.violet.card{background:#6435c9}.ui.basic.inverted.cards a.violet.card:hover,.ui.basic.inverted.violet.cards a.card:hover,.ui.inverted.cards a.basic.violet.card:hover,.ui.link.basic.inverted.cards .violet.card:not(.icon):hover,.ui.link.basic.inverted.violet.card:hover,.ui.link.basic.inverted.violet.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.violet.card:not(.icon):hover,a.ui.basic.inverted.violet.card:hover{background:#5829bb}.ui.cards>.purple.card,.ui.purple.card,.ui.purple.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #a333c8,0 1px 3px 0 #d4d4d5}.ui.cards a.purple.card:hover,.ui.link.cards .purple.card:not(.icon):hover,.ui.link.purple.card:hover,.ui.link.purple.cards .card:not(.icon):hover,.ui.purple.cards a.card:hover,a.ui.purple.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #9627ba,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.purple.card,.ui.basic.purple.card,.ui.basic.purple.cards>.card,.ui.cards>.basic.purple.card{background:#dc73ff}.ui.basic.cards a.purple.card:hover,.ui.basic.purple.cards a.card:hover,.ui.cards a.basic.purple.card:hover,.ui.link.basic.cards .purple.card:not(.icon):hover,.ui.link.basic.purple.card:hover,.ui.link.basic.purple.cards .card:not(.icon):hover,.ui.link.cards .basic.purple.card:not(.icon):hover,a.ui.basic.purple.card:hover{background:#cf40ff}.ui.inverted.cards>.purple.card,.ui.inverted.purple.card,.ui.inverted.purple.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #dc73ff,0 0 0 1px #555}.ui.inverted.cards a.purple.card:hover,.ui.inverted.purple.cards a.card:hover,.ui.link.inverted.cards .purple.card:not(.icon):hover,.ui.link.inverted.purple.card:hover,.ui.link.inverted.purple.cards .card:not(.icon):hover,a.ui.inverted.purple.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #cf40ff,0 0 0 1px #555}.ui.basic.inverted.cards>.purple.card,.ui.basic.inverted.purple.card,.ui.basic.inverted.purple.cards>.card,.ui.inverted.cards>.basic.purple.card{background:#a333c8}.ui.basic.inverted.cards a.purple.card:hover,.ui.basic.inverted.purple.cards a.card:hover,.ui.inverted.cards a.basic.purple.card:hover,.ui.link.basic.inverted.cards .purple.card:not(.icon):hover,.ui.link.basic.inverted.purple.card:hover,.ui.link.basic.inverted.purple.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.purple.card:not(.icon):hover,a.ui.basic.inverted.purple.card:hover{background:#9627ba}.ui.cards>.pink.card,.ui.pink.card,.ui.pink.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #e03997,0 1px 3px 0 #d4d4d5}.ui.cards a.pink.card:hover,.ui.link.cards .pink.card:not(.icon):hover,.ui.link.pink.card:hover,.ui.link.pink.cards .card:not(.icon):hover,.ui.pink.cards a.card:hover,a.ui.pink.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #e61a8d,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.pink.card,.ui.basic.pink.card,.ui.basic.pink.cards>.card,.ui.cards>.basic.pink.card{background:#ff8edf}.ui.basic.cards a.pink.card:hover,.ui.basic.pink.cards a.card:hover,.ui.cards a.basic.pink.card:hover,.ui.link.basic.cards .pink.card:not(.icon):hover,.ui.link.basic.pink.card:hover,.ui.link.basic.pink.cards .card:not(.icon):hover,.ui.link.cards .basic.pink.card:not(.icon):hover,a.ui.basic.pink.card:hover{background:#ff5bd1}.ui.inverted.cards>.pink.card,.ui.inverted.pink.card,.ui.inverted.pink.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff8edf,0 0 0 1px #555}.ui.inverted.cards a.pink.card:hover,.ui.inverted.pink.cards a.card:hover,.ui.link.inverted.cards .pink.card:not(.icon):hover,.ui.link.inverted.pink.card:hover,.ui.link.inverted.pink.cards .card:not(.icon):hover,a.ui.inverted.pink.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff5bd1,0 0 0 1px #555}.ui.basic.inverted.cards>.pink.card,.ui.basic.inverted.pink.card,.ui.basic.inverted.pink.cards>.card,.ui.inverted.cards>.basic.pink.card{background:#e03997}.ui.basic.inverted.cards a.pink.card:hover,.ui.basic.inverted.pink.cards a.card:hover,.ui.inverted.cards a.basic.pink.card:hover,.ui.link.basic.inverted.cards .pink.card:not(.icon):hover,.ui.link.basic.inverted.pink.card:hover,.ui.link.basic.inverted.pink.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.pink.card:not(.icon):hover,a.ui.basic.inverted.pink.card:hover{background:#e61a8d}.ui.brown.card,.ui.brown.cards>.card,.ui.cards>.brown.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #a5673f,0 1px 3px 0 #d4d4d5}.ui.brown.cards a.card:hover,.ui.cards a.brown.card:hover,.ui.link.brown.card:hover,.ui.link.brown.cards .card:not(.icon):hover,.ui.link.cards .brown.card:not(.icon):hover,a.ui.brown.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #975b33,0 1px 3px 0 #bcbdbd}.ui.basic.brown.card,.ui.basic.brown.cards>.card,.ui.basic.cards>.brown.card,.ui.cards>.basic.brown.card{background:#d67c1c}.ui.basic.brown.cards a.card:hover,.ui.basic.cards a.brown.card:hover,.ui.cards a.basic.brown.card:hover,.ui.link.basic.brown.card:hover,.ui.link.basic.brown.cards .card:not(.icon):hover,.ui.link.basic.cards .brown.card:not(.icon):hover,.ui.link.cards .basic.brown.card:not(.icon):hover,a.ui.basic.brown.card:hover{background:#b0620f}.ui.inverted.brown.card,.ui.inverted.brown.cards>.card,.ui.inverted.cards>.brown.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #d67c1c,0 0 0 1px #555}.ui.inverted.brown.cards a.card:hover,.ui.inverted.cards a.brown.card:hover,.ui.link.inverted.brown.card:hover,.ui.link.inverted.brown.cards .card:not(.icon):hover,.ui.link.inverted.cards .brown.card:not(.icon):hover,a.ui.inverted.brown.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #b0620f,0 0 0 1px #555}.ui.basic.inverted.brown.card,.ui.basic.inverted.brown.cards>.card,.ui.basic.inverted.cards>.brown.card,.ui.inverted.cards>.basic.brown.card{background:#a5673f}.ui.basic.inverted.brown.cards a.card:hover,.ui.basic.inverted.cards a.brown.card:hover,.ui.inverted.cards a.basic.brown.card:hover,.ui.link.basic.inverted.brown.card:hover,.ui.link.basic.inverted.brown.cards .card:not(.icon):hover,.ui.link.basic.inverted.cards .brown.card:not(.icon):hover,.ui.link.inverted.cards .basic.brown.card:not(.icon):hover,a.ui.basic.inverted.brown.card:hover{background:#975b33}.ui.cards>.grey.card,.ui.grey.card,.ui.grey.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #767676,0 1px 3px 0 #d4d4d5}.ui.cards a.grey.card:hover,.ui.grey.cards a.card:hover,.ui.link.cards .grey.card:not(.icon):hover,.ui.link.grey.card:hover,.ui.link.grey.cards .card:not(.icon):hover,a.ui.grey.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #838383,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.grey.card,.ui.basic.grey.card,.ui.basic.grey.cards>.card,.ui.cards>.basic.grey.card{background:#dcddde}.ui.basic.cards a.grey.card:hover,.ui.basic.grey.cards a.card:hover,.ui.cards a.basic.grey.card:hover,.ui.link.basic.cards .grey.card:not(.icon):hover,.ui.link.basic.grey.card:hover,.ui.link.basic.grey.cards .card:not(.icon):hover,.ui.link.cards .basic.grey.card:not(.icon):hover,a.ui.basic.grey.card:hover{background:#c2c4c5}.ui.inverted.cards>.grey.card,.ui.inverted.grey.card,.ui.inverted.grey.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #dcddde,0 0 0 1px #555}.ui.inverted.cards a.grey.card:hover,.ui.inverted.grey.cards a.card:hover,.ui.link.inverted.cards .grey.card:not(.icon):hover,.ui.link.inverted.grey.card:hover,.ui.link.inverted.grey.cards .card:not(.icon):hover,a.ui.inverted.grey.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #c2c4c5,0 0 0 1px #555}.ui.basic.inverted.cards>.grey.card,.ui.basic.inverted.grey.card,.ui.basic.inverted.grey.cards>.card,.ui.inverted.cards>.basic.grey.card{background:#767676}.ui.basic.inverted.cards a.grey.card:hover,.ui.basic.inverted.grey.cards a.card:hover,.ui.inverted.cards a.basic.grey.card:hover,.ui.link.basic.inverted.cards .grey.card:not(.icon):hover,.ui.link.basic.inverted.grey.card:hover,.ui.link.basic.inverted.grey.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.grey.card:not(.icon):hover,a.ui.basic.inverted.grey.card:hover{background:#838383}.ui.black.card,.ui.black.cards>.card,.ui.cards>.black.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1b1c1d,0 1px 3px 0 #d4d4d5}.ui.black.cards a.card:hover,.ui.cards a.black.card:hover,.ui.link.black.card:hover,.ui.link.black.cards .card:not(.icon):hover,.ui.link.cards .black.card:not(.icon):hover,a.ui.black.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #27292a,0 1px 3px 0 #bcbdbd}.ui.basic.black.card,.ui.basic.black.cards>.card,.ui.basic.cards>.black.card,.ui.cards>.basic.black.card{background:#545454}.ui.basic.black.card .content,.ui.basic.black.card .description,.ui.basic.black.card .header,.ui.basic.black.card .meta,.ui.basic.black.cards>.card .content,.ui.basic.black.cards>.card .description,.ui.basic.black.cards>.card .header,.ui.basic.black.cards>.card .meta,.ui.basic.cards>.black.card .content,.ui.basic.cards>.black.card .description,.ui.basic.cards>.black.card .header,.ui.basic.cards>.black.card .meta,.ui.cards>.basic.black.card .content,.ui.cards>.basic.black.card .description,.ui.cards>.basic.black.card .header,.ui.cards>.basic.black.card .meta{color:#fff}.ui.basic.black.cards a.card:hover,.ui.basic.cards a.black.card:hover,.ui.cards a.basic.black.card:hover,.ui.link.basic.black.card:hover,.ui.link.basic.black.cards .card:not(.icon):hover,.ui.link.basic.cards .black.card:not(.icon):hover,.ui.link.cards .basic.black.card:not(.icon):hover,a.ui.basic.black.card:hover{background:#000}.ui.inverted.black.card,.ui.inverted.black.cards>.card,.ui.inverted.cards>.black.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #545454,0 0 0 1px #555}.ui.inverted.black.cards a.card:hover,.ui.inverted.cards a.black.card:hover,.ui.link.inverted.black.card:hover,.ui.link.inverted.black.cards .card:not(.icon):hover,.ui.link.inverted.cards .black.card:not(.icon):hover,a.ui.inverted.black.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #000,0 0 0 1px #555}.ui.basic.inverted.black.card,.ui.basic.inverted.black.cards>.card,.ui.basic.inverted.cards>.black.card,.ui.inverted.cards>.basic.black.card{background:#1b1c1d}.ui.basic.inverted.black.cards a.card:hover,.ui.basic.inverted.cards a.black.card:hover,.ui.inverted.cards a.basic.black.card:hover,.ui.link.basic.inverted.black.card:hover,.ui.link.basic.inverted.black.cards .card:not(.icon):hover,.ui.link.basic.inverted.cards .black.card:not(.icon):hover,.ui.link.inverted.cards .basic.black.card:not(.icon):hover,a.ui.basic.inverted.black.card:hover{background:#27292a}.ui.one.cards{margin-left:0;margin-right:0}.ui.one.cards>.card{width:100%}.ui.two.cards{margin-left:-1em;margin-right:-1em}.ui.two.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.three.cards{margin-left:-1em;margin-right:-1em}.ui.three.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.four.cards{margin-left:-.75em;margin-right:-.75em}.ui.four.cards>.card{width:calc(25% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.five.cards{margin-left:-.75em;margin-right:-.75em}.ui.five.cards>.card{width:calc(20% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.six.cards{margin-left:-.75em;margin-right:-.75em}.ui.six.cards>.card{width:calc(16.666666666666664% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.seven.cards{margin-left:-.5em;margin-right:-.5em}.ui.seven.cards>.card{width:calc(14.285714285714285% - 1em);margin-left:.5em;margin-right:.5em}.ui.eight.cards{margin-left:-.5em;margin-right:-.5em}.ui.eight.cards>.card{width:calc(12.5% - 1em);margin-left:.5em;margin-right:.5em;font-size:11px}.ui.nine.cards{margin-left:-.5em;margin-right:-.5em}.ui.nine.cards>.card{width:calc(11.11111111111111% - 1em);margin-left:.5em;margin-right:.5em;font-size:10px}.ui.ten.cards{margin-left:-.5em;margin-right:-.5em}.ui.ten.cards>.card{width:calc(10% - 1em);margin-left:.5em;margin-right:.5em}@media only screen and (max-width:767.98px){.ui.two.doubling.cards{margin-left:0;margin-right:0}.ui.two.doubling.cards>.card{width:100%;margin-left:0;margin-right:0}.ui.three.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.three.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.four.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.four.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.five.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.five.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.six.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.six.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.seven.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.seven.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.eight.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.eight.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.nine.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.nine.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.ten.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.ten.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.two.doubling.cards{margin-left:0;margin-right:0}.ui.two.doubling.cards>.card{width:100%;margin-left:0;margin-right:0}.ui.three.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.three.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.four.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.four.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.five.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.five.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.six.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.six.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.eight.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.eight.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.eight.doubling.cards{margin-left:-.75em;margin-right:-.75em}.ui.eight.doubling.cards>.card{width:calc(25% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.nine.doubling.cards{margin-left:-.75em;margin-right:-.75em}.ui.nine.doubling.cards>.card{width:calc(25% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.ten.doubling.cards{margin-left:-.75em;margin-right:-.75em}.ui.ten.doubling.cards>.card{width:calc(20% - 1.5em);margin-left:.75em;margin-right:.75em}}@media only screen and (max-width:767.98px){.ui.stackable.cards{display:block!important}.ui.stackable.cards .card:first-child{margin-top:0!important}.ui.stackable.cards>.card{display:block!important;height:auto!important;margin:1em 1em;padding:0!important;width:calc(100% - 2em)!important}}.ui.cards>.card{font-size:1em}.ui.mini.card,.ui.mini.cards .card{font-size:.78571429rem}.ui.tiny.card,.ui.tiny.cards .card{font-size:.85714286rem}.ui.small.card,.ui.small.cards .card{font-size:.92857143rem}.ui.large.card,.ui.large.cards .card{font-size:1.14285714rem}.ui.big.card,.ui.big.cards .card{font-size:1.28571429rem}.ui.huge.card,.ui.huge.cards .card{font-size:1.42857143rem}.ui.massive.card,.ui.massive.cards .card{font-size:1.71428571rem}.ui.inverted.card,.ui.inverted.cards>.card{background:#1b1c1d;box-shadow:0 1px 3px 0 #555,0 0 0 1px #555}.ui.inverted.card>.content,.ui.inverted.cards>.card>.content{border-top:1px solid rgba(255,255,255,.15)}.ui.inverted.card>.content>.header,.ui.inverted.cards>.card>.content>.header{color:rgba(255,255,255,.9)}.ui.inverted.card>.content>a.header,.ui.inverted.cards>.card>.content>a.header{color:rgba(255,255,255,.9)}.ui.inverted.card>.content>a.header:hover,.ui.inverted.cards>.card>.content>a.header:hover{color:#1e70bf}.ui.inverted.card>.content>.description,.ui.inverted.cards>.card>.content>.description{color:rgba(255,255,255,.8)}.ui.inverted.card .meta,.ui.inverted.cards>.card .meta{color:rgba(255,255,255,.7)}.ui.inverted.card .meta>a:not(.ui),.ui.inverted.cards>.card .meta>a:not(.ui){color:rgba(255,255,255,.7)}.ui.inverted.card .meta>a:not(.ui):hover,.ui.inverted.cards>.card .meta>a:not(.ui):hover{color:#fff}.ui.inverted.card>.extra,.ui.inverted.cards>.card>.extra{border-top:1px solid rgba(255,255,255,.15)!important;color:rgba(255,255,255,.7)}.ui.inverted.card>.extra a:not(.ui),.ui.inverted.cards>.card>.extra a:not(.ui){color:rgba(255,255,255,.5)}.ui.inverted.card>.extra a:not(.ui):hover,.ui.inverted.cards>.card>.extra a:not(.ui):hover{color:#1e70bf}.ui.inverted.cards a.card:hover,.ui.inverted.link.card:hover,.ui.inverted.link.cards .card:not(.icon):hover,a.inverted.ui.card:hover{background:#1b1c1d}.ui.inverted.loading.card{color:#fff}.ui.inverted.loading.card::before{background:rgba(0,0,0,.85)}',"",{version:3,sources:["webpack://./node_modules/fomantic-ui-css/components/card.min.css"],names:[],mappings:"AAAA;;;;;;;;EAQE,CAAC,yBAAyB,cAAc,CAAC,iBAAiB,CAAC,YAAY,CAAC,qBAAqB,CAAC,WAAW,CAAC,YAAY,CAAC,eAAe,CAAC,SAAS,CAAC,WAAW,CAAC,0BAA0B,CAAC,gDAAgD,CAAC,iDAAiD,CAAC,UAAU,CAAC,oBAAoB,CAAC,SAAS,YAAY,CAAC,6BAA6B,cAAc,CAAC,qBAAqB,YAAY,CAAC,oBAAoB,eAAe,CAAC,UAAU,YAAY,CAAC,oBAAoB,CAAC,cAAc,CAAC,gBAAgB,YAAY,CAAC,kBAAkB,CAAC,UAAU,CAAC,iCAAiC,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,oBAAoB,iBAAiB,CAAC,mDAAmD,qDAAqD,CAAC,yBAAyB,CAAC,iDAAiD,qDAAqD,CAAC,iDAAiD,oCAAoC,CAAC,uCAAuC,iBAAiB,CAAC,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,0BAA0B,CAAC,+CAA+C,aAAa,CAAC,UAAU,CAAC,WAAW,CAAC,qBAAqB,CAAC,iEAAiE,WAAW,CAAC,2CAA2C,WAAW,CAAC,WAAW,CAAC,sCAAsC,CAAC,cAAc,CAAC,QAAQ,CAAC,WAAW,CAAC,eAAe,CAAC,aAAa,CAAC,eAAe,CAAC,yDAAyD,aAAa,CAAC,WAAW,CAAC,QAAQ,CAAC,UAAU,CAAC,eAAe,CAAC,iBAAiB,CAAC,2DAA2D,aAAa,CAAC,SAAS,CAAC,4NAA4N,CAAC,qBAAqB,CAAC,6EAA6E,eAAe,CAAC,sBAAsB,CAAC,oBAAoB,CAAC,wBAAwB,CAAC,sKAAsK,eAAe,CAAC,yEAAyE,UAAU,CAAC,2EAA2E,WAAW,CAAC,yEAAyE,eAAe,CAAC,6EAA6E,iBAAiB,CAAC,2EAA2E,gBAAgB,CAAC,mDAAmD,oBAAoB,CAAC,qBAAqB,CAAC,QAAQ,CAAC,gGAAgG,SAAS,CAAC,UAAU,CAAC,oBAAoB,CAAC,qEAAqE,UAAU,CAAC,qBAAqB,CAAC,+CAA+C,eAAe,CAAC,qEAAqE,eAAe,CAAC,qCAAqC,aAAa,CAAC,oBAAoB,CAAC,yCAAyC,iBAAiB,CAAC,6DAA6D,cAAc,CAAC,uFAAuF,cAAc,CAAC,gBAAgB,CAAC,iEAAiE,QAAQ,CAAC,yBAAyB,CAAC,6EAA6E,QAAQ,CAAC,6DAA6D,qBAAqB,CAAC,yEAAyE,aAAa,CAAC,2DAA2D,oBAAoB,CAAC,uEAAuE,qBAAqB,CAAC,oFAAoF,aAAa,CAAC,sBAAsB,CAAC,gIAAgI,kBAAkB,CAAC,wIAAwI,eAAe,CAAC,mUAAmU,QAAQ,CAAC,UAAU,CAAC,gHAAgH,eAAe,CAAC,yCAAyC,aAAa,CAAC,UAAU,CAAC,iEAAiE,cAAc,CAAC,WAAW,CAAC,yBAAyB,CAAC,6EAA6E,SAAS,CAAC,aAAa,CAAC,+EAA+E,aAAa,CAAC,iEAAiE,cAAc,CAAC,WAAW,CAAC,yBAAyB,CAAC,6EAA6E,SAAS,CAAC,aAAa,CAAC,+EAA+E,aAAa,CAAC,uCAAuC,cAAc,CAAC,sBAAsB,CAAC,WAAW,CAAC,8CAA8C,CAAC,eAAe,CAAC,cAAc,CAAC,UAAU,CAAC,QAAQ,CAAC,iBAAiB,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,eAAe,CAAC,yBAAyB,CAAC,6DAA6D,oBAAoB,CAAC,yEAAyE,aAAa,CAAC,kBAAkB,WAAW,CAAC,uBAAuB,CAAC,mBAAmB,CAAC,iBAAiB,iBAAiB,CAAC,cAAc,CAAC,mBAAmB,CAAC,wBAAwB,CAAC,yBAAyB,iBAAiB,CAAC,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,+BAA+B,CAAC,UAAU,CAAC,WAAW,CAAC,0BAA0B,CAAC,WAAW,CAAC,wBAAwB,iBAAiB,CAAC,UAAU,CAAC,OAAO,CAAC,QAAQ,CAAC,wBAAwB,CAAC,SAAS,CAAC,UAAU,CAAC,oCAAoC,CAAC,yBAAyB,CAAC,oBAAoB,CAAC,gCAAgC,CAAC,kBAAkB,CAAC,WAAW,CAAC,+CAA+C,kBAAkB,CAAC,eAAe,CAAC,WAAW,CAAC,cAAc,CAAC,6DAA6D,2CAA2C,CAAC,WAAW,CAAC,qEAAqE,qBAAqB,CAAC,2BAA2B,CAAC,0BAA0B,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,YAAY,CAAC,UAAU,CAAC,2CAA2C,CAAC,2FAA2F,2CAA2C,CAAC,iEAAiE,eAAe,CAAC,cAAc,CAAC,6DAA6D,eAAe,CAAC,8DAA8D,2FAA2F,CAAC,kHAAkH,2FAA2F,CAAC,6GAA6G,yEAAyE,CAAC,0NAA0N,yEAAyE,CAAC,mBAAmB,sBAAsB,CAAC,kBAAkB,gBAAgB,CAAC,iBAAiB,CAAC,eAAe,UAAU,CAAC,gBAAgB,CAAC,8DAA8D,cAAc,CAAC,iGAAiG,cAAc,CAAC,SAAS,CAAC,eAAe,CAAC,WAAW,CAAC,gDAAgD,CAAC,0BAA0B,CAAC,iEAAiE,kEAAkE,CAAC,8MAA8M,kEAAkE,CAAC,iHAAiH,kBAAkB,CAAC,2UAA2U,kBAAkB,CAAC,4FAA4F,4DAA4D,CAAC,oQAAoQ,4DAA4D,CAAC,qJAAqJ,kBAAkB,CAAC,mZAAmZ,kBAAkB,CAAC,uEAAuE,kEAAkE,CAAC,0NAA0N,kEAAkE,CAAC,yHAAyH,kBAAkB,CAAC,2VAA2V,kBAAkB,CAAC,kGAAkG,4DAA4D,CAAC,gRAAgR,4DAA4D,CAAC,6JAA6J,kBAAkB,CAAC,maAAma,kBAAkB,CAAC,qDAAqD,kEAAkE,CAAC,sLAAsL,kEAAkE,CAAC,iGAAiG,kBAAkB,CAAC,2SAA2S,kBAAkB,CAAC,gFAAgF,4DAA4D,CAAC,4OAA4O,4DAA4D,CAAC,qIAAqI,kBAAkB,CAAC,mXAAmX,kBAAkB,CAAC,8DAA8D,kEAAkE,CAAC,wMAAwM,kEAAkE,CAAC,6GAA6G,kBAAkB,CAAC,mUAAmU,kBAAkB,CAAC,yFAAyF,4DAA4D,CAAC,8PAA8P,4DAA4D,CAAC,iJAAiJ,kBAAkB,CAAC,2YAA2Y,kBAAkB,CAAC,8DAA8D,kEAAkE,CAAC,wMAAwM,kEAAkE,CAAC,6GAA6G,kBAAkB,CAAC,mUAAmU,kBAAkB,CAAC,yFAAyF,4DAA4D,CAAC,8PAA8P,4DAA4D,CAAC,iJAAiJ,kBAAkB,CAAC,2YAA2Y,kBAAkB,CAAC,2DAA2D,kEAAkE,CAAC,kMAAkM,kEAAkE,CAAC,yGAAyG,kBAAkB,CAAC,2TAA2T,kBAAkB,CAAC,sFAAsF,4DAA4D,CAAC,wPAAwP,4DAA4D,CAAC,6IAA6I,kBAAkB,CAAC,mYAAmY,kBAAkB,CAAC,2DAA2D,kEAAkE,CAAC,kMAAkM,kEAAkE,CAAC,yGAAyG,kBAAkB,CAAC,2TAA2T,kBAAkB,CAAC,sFAAsF,4DAA4D,CAAC,wPAAwP,4DAA4D,CAAC,6IAA6I,kBAAkB,CAAC,mYAAmY,kBAAkB,CAAC,wDAAwD,kEAAkE,CAAC,4LAA4L,kEAAkE,CAAC,qGAAqG,kBAAkB,CAAC,mTAAmT,kBAAkB,CAAC,mFAAmF,4DAA4D,CAAC,kPAAkP,4DAA4D,CAAC,yIAAyI,kBAAkB,CAAC,2XAA2X,kBAAkB,CAAC,wDAAwD,kEAAkE,CAAC,4LAA4L,kEAAkE,CAAC,qGAAqG,kBAAkB,CAAC,mTAAmT,kBAAkB,CAAC,mFAAmF,4DAA4D,CAAC,kPAAkP,4DAA4D,CAAC,yIAAyI,kBAAkB,CAAC,2XAA2X,kBAAkB,CAAC,8DAA8D,kEAAkE,CAAC,wMAAwM,kEAAkE,CAAC,6GAA6G,kBAAkB,CAAC,mUAAmU,kBAAkB,CAAC,yFAAyF,4DAA4D,CAAC,8PAA8P,4DAA4D,CAAC,iJAAiJ,kBAAkB,CAAC,2YAA2Y,kBAAkB,CAAC,8DAA8D,kEAAkE,CAAC,wMAAwM,kEAAkE,CAAC,6GAA6G,kBAAkB,CAAC,mUAAmU,kBAAkB,CAAC,yFAAyF,4DAA4D,CAAC,8PAA8P,4DAA4D,CAAC,iJAAiJ,kBAAkB,CAAC,2YAA2Y,kBAAkB,CAAC,wDAAwD,kEAAkE,CAAC,4LAA4L,kEAAkE,CAAC,qGAAqG,kBAAkB,CAAC,mTAAmT,kBAAkB,CAAC,mFAAmF,4DAA4D,CAAC,kPAAkP,4DAA4D,CAAC,yIAAyI,kBAAkB,CAAC,2XAA2X,kBAAkB,CAAC,2DAA2D,kEAAkE,CAAC,kMAAkM,kEAAkE,CAAC,yGAAyG,kBAAkB,CAAC,2TAA2T,kBAAkB,CAAC,sFAAsF,4DAA4D,CAAC,wPAAwP,4DAA4D,CAAC,6IAA6I,kBAAkB,CAAC,mYAAmY,kBAAkB,CAAC,wDAAwD,kEAAkE,CAAC,4LAA4L,kEAAkE,CAAC,qGAAqG,kBAAkB,CAAC,mTAAmT,kBAAkB,CAAC,mFAAmF,4DAA4D,CAAC,kPAAkP,4DAA4D,CAAC,yIAAyI,kBAAkB,CAAC,2XAA2X,kBAAkB,CAAC,2DAA2D,kEAAkE,CAAC,kMAAkM,kEAAkE,CAAC,yGAAyG,kBAAkB,CAAC,ojBAAojB,UAAU,CAAC,2TAA2T,eAAe,CAAC,sFAAsF,4DAA4D,CAAC,wPAAwP,yDAAyD,CAAC,6IAA6I,kBAAkB,CAAC,mYAAmY,kBAAkB,CAAC,cAAc,aAAa,CAAC,cAAc,CAAC,oBAAoB,UAAU,CAAC,cAAc,gBAAgB,CAAC,iBAAiB,CAAC,oBAAoB,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,gBAAgB,gBAAgB,CAAC,iBAAiB,CAAC,sBAAsB,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,eAAe,kBAAkB,CAAC,mBAAmB,CAAC,qBAAqB,uBAAuB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,eAAe,kBAAkB,CAAC,mBAAmB,CAAC,qBAAqB,uBAAuB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,cAAc,kBAAkB,CAAC,mBAAmB,CAAC,oBAAoB,uCAAuC,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,gBAAgB,iBAAiB,CAAC,kBAAkB,CAAC,sBAAsB,qCAAqC,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,gBAAgB,iBAAiB,CAAC,kBAAkB,CAAC,sBAAsB,uBAAuB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,cAAc,CAAC,eAAe,iBAAiB,CAAC,kBAAkB,CAAC,qBAAqB,oCAAoC,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,cAAc,CAAC,cAAc,iBAAiB,CAAC,kBAAkB,CAAC,oBAAoB,qBAAqB,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,4CAA4C,uBAAuB,aAAa,CAAC,cAAc,CAAC,6BAA6B,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,yBAAyB,gBAAgB,CAAC,iBAAiB,CAAC,+BAA+B,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,wBAAwB,gBAAgB,CAAC,iBAAiB,CAAC,8BAA8B,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,wBAAwB,gBAAgB,CAAC,iBAAiB,CAAC,8BAA8B,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,uBAAuB,gBAAgB,CAAC,iBAAiB,CAAC,6BAA6B,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,yBAAyB,gBAAgB,CAAC,iBAAiB,CAAC,+BAA+B,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,yBAAyB,gBAAgB,CAAC,iBAAiB,CAAC,+BAA+B,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,wBAAwB,gBAAgB,CAAC,iBAAiB,CAAC,8BAA8B,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,uBAAuB,gBAAgB,CAAC,iBAAiB,CAAC,6BAA6B,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,CAAC,kEAAkE,uBAAuB,aAAa,CAAC,cAAc,CAAC,6BAA6B,UAAU,CAAC,aAAa,CAAC,cAAc,CAAC,yBAAyB,gBAAgB,CAAC,iBAAiB,CAAC,+BAA+B,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,wBAAwB,gBAAgB,CAAC,iBAAiB,CAAC,8BAA8B,qBAAqB,CAAC,eAAe,CAAC,gBAAgB,CAAC,wBAAwB,gBAAgB,CAAC,iBAAiB,CAAC,8BAA8B,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,uBAAuB,gBAAgB,CAAC,iBAAiB,CAAC,6BAA6B,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,yBAAyB,gBAAgB,CAAC,iBAAiB,CAAC,+BAA+B,oCAAoC,CAAC,eAAe,CAAC,gBAAgB,CAAC,yBAAyB,kBAAkB,CAAC,mBAAmB,CAAC,+BAA+B,uBAAuB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,wBAAwB,kBAAkB,CAAC,mBAAmB,CAAC,8BAA8B,uBAAuB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,uBAAuB,kBAAkB,CAAC,mBAAmB,CAAC,6BAA6B,uBAAuB,CAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC,4CAA4C,oBAAoB,uBAAuB,CAAC,sCAAsC,sBAAsB,CAAC,0BAA0B,uBAAuB,CAAC,qBAAqB,CAAC,cAAc,CAAC,mBAAmB,CAAC,gCAAgC,CAAC,CAAC,gBAAgB,aAAa,CAAC,mCAAmC,sBAAsB,CAAC,mCAAmC,sBAAsB,CAAC,qCAAqC,sBAAsB,CAAC,qCAAqC,uBAAuB,CAAC,iCAAiC,uBAAuB,CAAC,mCAAmC,uBAAuB,CAAC,yCAAyC,uBAAuB,CAAC,2CAA2C,kBAAkB,CAAC,0CAA0C,CAAC,6DAA6D,0CAA0C,CAAC,6EAA6E,0BAA0B,CAAC,+EAA+E,0BAA0B,CAAC,2FAA2F,aAAa,CAAC,uFAAuF,0BAA0B,CAAC,uDAAuD,0BAA0B,CAAC,6EAA6E,0BAA0B,CAAC,yFAAyF,UAAU,CAAC,yDAAyD,oDAAoD,CAAC,0BAA0B,CAAC,+EAA+E,0BAA0B,CAAC,2FAA2F,aAAa,CAAC,qIAAqI,kBAAkB,CAAC,0BAA0B,UAAU,CAAC,kCAAkC,0BAA0B",sourcesContent:['/*!\n * # Fomantic-UI 2.9.4 - Card\n * https://github.com/fomantic/Fomantic-UI/\n *\n *\n * Released under the MIT license\n * https://opensource.org/licenses/MIT\n *\n */.ui.card,.ui.cards>.card{max-width:100%;position:relative;display:flex;flex-direction:column;width:290px;min-height:0;background:#fff;padding:0;border:none;border-radius:.28571429rem;box-shadow:0 1px 3px 0 #d4d4d5,0 0 0 1px #d4d4d5;transition:box-shadow .1s ease,transform .1s ease;z-index:"";word-wrap:break-word}.ui.card{margin:1em 0}.ui.card a,.ui.cards>.card a{cursor:pointer}.ui.card:first-child{margin-top:0}.ui.card:last-child{margin-bottom:0}.ui.cards{display:flex;margin:-.875em -.5em;flex-wrap:wrap}.ui.cards>.card{display:flex;margin:.875em .5em;float:none}.ui.card::after,.ui.cards::after{display:block;content:" ";height:0;clear:both;overflow:hidden;visibility:hidden}.ui.cards~.ui.cards{margin-top:.875em}.ui.card>:first-child,.ui.cards>.card>:first-child{border-radius:.28571429rem .28571429rem 0 0!important;border-top:none!important}.ui.card>:last-child,.ui.cards>.card>:last-child{border-radius:0 0 .28571429rem .28571429rem!important}.ui.card>:only-child,.ui.cards>.card>:only-child{border-radius:.28571429rem!important}.ui.card>.image,.ui.cards>.card>.image{position:relative;display:block;flex:0 0 auto;padding:0;background:rgba(0,0,0,.05)}.ui.card>.image>img,.ui.cards>.card>.image>img{display:block;width:100%;height:auto;border-radius:inherit}.ui.card>.image:not(.ui)>img,.ui.cards>.card>.image:not(.ui)>img{border:none}.ui.card>.content,.ui.cards>.card>.content{flex-grow:1;border:none;border-top:1px solid rgba(34,36,38,.1);background:0 0;margin:0;padding:1em;box-shadow:none;font-size:1em;border-radius:0}.ui.card>.content::after,.ui.cards>.card>.content::after{display:block;content:" ";height:0;clear:both;overflow:hidden;visibility:hidden}.ui.card>.content>.header,.ui.cards>.card>.content>.header{display:block;margin:"";font-family:Lato,system-ui,-apple-system,"Segoe UI",Roboto,Oxygen,Ubuntu,Cantarell,"Helvetica Neue",Arial,"Noto Sans","Liberation Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";color:rgba(0,0,0,.85)}.ui.card>.content>.header:not(.ui),.ui.cards>.card>.content>.header:not(.ui){font-weight:700;font-size:1.28571429em;margin-top:-.21425em;line-height:1.28571429em}.ui.card>.content>.header+.description,.ui.card>.content>.meta+.description,.ui.cards>.card>.content>.header+.description,.ui.cards>.card>.content>.meta+.description{margin-top:.5em}.ui.card [class*="left floated"],.ui.cards>.card [class*="left floated"]{float:left}.ui.card [class*="right floated"],.ui.cards>.card [class*="right floated"]{float:right}.ui.card [class*="left aligned"],.ui.cards>.card [class*="left aligned"]{text-align:left}.ui.card [class*="center aligned"],.ui.cards>.card [class*="center aligned"]{text-align:center}.ui.card [class*="right aligned"],.ui.cards>.card [class*="right aligned"]{text-align:right}.ui.card .content img,.ui.cards>.card .content img{display:inline-block;vertical-align:middle;width:""}.ui.card .avatar img,.ui.card img.avatar,.ui.cards>.card .avatar img,.ui.cards>.card img.avatar{width:2em;height:2em;border-radius:500rem}.ui.card>.content>.description,.ui.cards>.card>.content>.description{clear:both;color:rgba(0,0,0,.68)}.ui.card>.content p,.ui.cards>.card>.content p{margin:0 0 .5em}.ui.card>.content p:last-child,.ui.cards>.card>.content p:last-child{margin-bottom:0}.ui.card .meta,.ui.cards>.card .meta{font-size:1em;color:rgba(0,0,0,.4)}.ui.card .meta *,.ui.cards>.card .meta *{margin-right:.3em}.ui.card .meta :last-child,.ui.cards>.card .meta :last-child{margin-right:0}.ui.card .meta [class*="right floated"],.ui.cards>.card .meta [class*="right floated"]{margin-right:0;margin-left:.3em}.ui.card>.content a:not(.ui),.ui.cards>.card>.content a:not(.ui){color:"";transition:color .1s ease}.ui.card>.content a:not(.ui):hover,.ui.cards>.card>.content a:not(.ui):hover{color:""}.ui.card>.content>a.header,.ui.cards>.card>.content>a.header{color:rgba(0,0,0,.85)}.ui.card>.content>a.header:hover,.ui.cards>.card>.content>a.header:hover{color:#1e70bf}.ui.card .meta>a:not(.ui),.ui.cards>.card .meta>a:not(.ui){color:rgba(0,0,0,.4)}.ui.card .meta>a:not(.ui):hover,.ui.cards>.card .meta>a:not(.ui):hover{color:rgba(0,0,0,.87)}.ui.card>.button,.ui.card>.buttons,.ui.cards>.card>.button,.ui.cards>.card>.buttons{margin:0 -1px;width:calc(100% + 2px)}.ui.card>.button:last-child,.ui.card>.buttons:last-child,.ui.cards>.card>.button:last-child,.ui.cards>.card>.buttons:last-child{margin-bottom:-1px}.ui.cards:not(.raised)>.basic.card:not(.raised),.ui.ui.ui.basic.card:not(.raised),.ui.ui.ui.basic.cards:not(.raised)>.card:not(.raised){box-shadow:none}.ui.cards:not(.raised)>.basic.card:not(.raised)>.button,.ui.cards:not(.raised)>.basic.card:not(.raised)>.buttons,.ui.ui.ui.basic.card:not(.raised)>.button,.ui.ui.ui.basic.card:not(.raised)>.buttons,.ui.ui.ui.basic.cards:not(.raised)>.card:not(.raised)>.button,.ui.ui.ui.basic.cards:not(.raised)>.card:not(.raised)>.buttons{margin:0;width:100%}.ui.ui.ui.ui.ui.basic.card:not(.raised):hover,.ui.ui.ui.ui.ui.basic.cards:not(.raised) .card:not(.raised):hover{box-shadow:none}.ui.card .dimmer,.ui.cards>.card .dimmer{background:"";z-index:10}.ui.card>.content .star.icon,.ui.cards>.card>.content .star.icon{cursor:pointer;opacity:.75;transition:color .1s ease}.ui.card>.content .star.icon:hover,.ui.cards>.card>.content .star.icon:hover{opacity:1;color:#ffb70a}.ui.card>.content .active.star.icon,.ui.cards>.card>.content .active.star.icon{color:#ffe623}.ui.card>.content .like.icon,.ui.cards>.card>.content .like.icon{cursor:pointer;opacity:.75;transition:color .1s ease}.ui.card>.content .like.icon:hover,.ui.cards>.card>.content .like.icon:hover{opacity:1;color:#ff2733}.ui.card>.content .active.like.icon,.ui.cards>.card>.content .active.like.icon{color:#ff2733}.ui.card>.extra,.ui.cards>.card>.extra{max-width:100%;min-height:0!important;flex-grow:0;border-top:1px solid rgba(0,0,0,.05)!important;position:static;background:0 0;width:auto;margin:0;padding:.75em 1em;top:0;left:0;color:rgba(0,0,0,.4);box-shadow:none;transition:color .1s ease}.ui.card>.extra a:not(.ui),.ui.cards>.card>.extra a:not(.ui){color:rgba(0,0,0,.4)}.ui.card>.extra a:not(.ui):hover,.ui.cards>.card>.extra a:not(.ui):hover{color:#1e70bf}.ui.disabled.card{opacity:.45;color:rgba(40,40,40,.3);pointer-events:none}.ui.loading.card{position:relative;cursor:default;pointer-events:none;transition:all 0s linear}.ui.loading.card::before{position:absolute;content:"";top:0;left:0;background:rgba(255,255,255,.8);width:100%;height:100%;border-radius:.28571429rem;z-index:100}.ui.loading.card::after{position:absolute;content:"";top:50%;left:50%;margin:-1.5em 0 0 -1.5em;width:3em;height:3em;animation:loader .6s infinite linear;border:.2em solid #767676;border-radius:500rem;box-shadow:0 0 0 1px transparent;visibility:visible;z-index:101}.ui.card.horizontal,.ui.horizontal.cards>.card{flex-flow:row wrap;min-width:270px;width:400px;max-width:100%}.ui.card.horizontal>.image,.ui.horizontal.cards>.card>.image{border-radius:.28571429rem 0 0 .28571429rem;width:150px}.ui.card.horizontal>.image>img,.ui.horizontal.cards>.card>.image>img{background-size:cover;background-repeat:no-repeat;background-position:center;justify-content:center;align-items:center;display:flex;width:100%;border-radius:.28571429rem 0 0 .28571429rem}.ui.card.horizontal>.image:last-child>img,.ui.horizontal.cards>.card>.image:last-child>img{border-radius:0 .28571429rem .28571429rem 0}.ui.horizontal.card>.content,.ui.horizontal.cards>.card>.content{border-top:none;flex-basis:1px}.ui.horizontal.card>.extra,.ui.horizontal.cards>.card>.extra{flex-basis:100%}.ui.cards>.raised.card,.ui.raised.card,.ui.raised.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.15)}.ui.link.cards .raised.card:hover,.ui.link.raised.card:hover,.ui.raised.cards a.card:hover,a.ui.raised.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 4px 0 rgba(34,36,38,.15),0 2px 10px 0 rgba(34,36,38,.25)}.ui.basic.cards>.raised.card,.ui.basic.raised.card,.ui.basic.raised.cards>.card,.ui.raised.cards>.basic.card{box-shadow:0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.15)}.ui.basic.raised.cards a.card:hover,.ui.link.basic.cards .raised.card:hover,.ui.link.basic.raised.card:hover,.ui.link.basic.raised.cards .card:hover,.ui.link.cards .basic.raised.card:hover,a.ui.basic.raised.card:hover{box-shadow:0 2px 4px 0 rgba(34,36,38,.15),0 2px 10px 0 rgba(34,36,38,.25)}.ui.centered.cards{justify-content:center}.ui.centered.card{margin-left:auto;margin-right:auto}.ui.fluid.card{width:100%;max-width:9999px}.ui.cards a.card,.ui.link.card,.ui.link.cards .card,a.ui.card{transform:none}.ui.cards a.card:hover,.ui.link.card:hover,.ui.link.cards .card:not(.icon):hover,a.ui.card:hover{cursor:pointer;z-index:5;background:#fff;border:none;box-shadow:0 1px 3px 0 #bcbdbd,0 0 0 1px #d4d4d5;transform:translateY(-3px)}.ui.cards>.primary.card,.ui.primary.card,.ui.primary.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #2185d0,0 1px 3px 0 #d4d4d5}.ui.cards a.primary.card:hover,.ui.link.cards .primary.card:not(.icon):hover,.ui.link.primary.card:hover,.ui.link.primary.cards .card:not(.icon):hover,.ui.primary.cards a.card:hover,a.ui.primary.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1678c2,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.primary.card,.ui.basic.primary.card,.ui.basic.primary.cards>.card,.ui.cards>.basic.primary.card{background:#54c8ff}.ui.basic.cards a.primary.card:hover,.ui.basic.primary.cards a.card:hover,.ui.cards a.basic.primary.card:hover,.ui.link.basic.cards .primary.card:not(.icon):hover,.ui.link.basic.primary.card:hover,.ui.link.basic.primary.cards .card:not(.icon):hover,.ui.link.cards .basic.primary.card:not(.icon):hover,a.ui.basic.primary.card:hover{background:#21b8ff}.ui.inverted.cards>.primary.card,.ui.inverted.primary.card,.ui.inverted.primary.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #54c8ff,0 0 0 1px #555}.ui.inverted.cards a.primary.card:hover,.ui.inverted.primary.cards a.card:hover,.ui.link.inverted.cards .primary.card:not(.icon):hover,.ui.link.inverted.primary.card:hover,.ui.link.inverted.primary.cards .card:not(.icon):hover,a.ui.inverted.primary.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #21b8ff,0 0 0 1px #555}.ui.basic.inverted.cards>.primary.card,.ui.basic.inverted.primary.card,.ui.basic.inverted.primary.cards>.card,.ui.inverted.cards>.basic.primary.card{background:#2185d0}.ui.basic.inverted.cards a.primary.card:hover,.ui.basic.inverted.primary.cards a.card:hover,.ui.inverted.cards a.basic.primary.card:hover,.ui.link.basic.inverted.cards .primary.card:not(.icon):hover,.ui.link.basic.inverted.primary.card:hover,.ui.link.basic.inverted.primary.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.primary.card:not(.icon):hover,a.ui.basic.inverted.primary.card:hover{background:#1678c2}.ui.cards>.secondary.card,.ui.secondary.card,.ui.secondary.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1b1c1d,0 1px 3px 0 #d4d4d5}.ui.cards a.secondary.card:hover,.ui.link.cards .secondary.card:not(.icon):hover,.ui.link.secondary.card:hover,.ui.link.secondary.cards .card:not(.icon):hover,.ui.secondary.cards a.card:hover,a.ui.secondary.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #27292a,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.secondary.card,.ui.basic.secondary.card,.ui.basic.secondary.cards>.card,.ui.cards>.basic.secondary.card{background:#545454}.ui.basic.cards a.secondary.card:hover,.ui.basic.secondary.cards a.card:hover,.ui.cards a.basic.secondary.card:hover,.ui.link.basic.cards .secondary.card:not(.icon):hover,.ui.link.basic.secondary.card:hover,.ui.link.basic.secondary.cards .card:not(.icon):hover,.ui.link.cards .basic.secondary.card:not(.icon):hover,a.ui.basic.secondary.card:hover{background:#6e6e6e}.ui.inverted.cards>.secondary.card,.ui.inverted.secondary.card,.ui.inverted.secondary.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #545454,0 0 0 1px #555}.ui.inverted.cards a.secondary.card:hover,.ui.inverted.secondary.cards a.card:hover,.ui.link.inverted.cards .secondary.card:not(.icon):hover,.ui.link.inverted.secondary.card:hover,.ui.link.inverted.secondary.cards .card:not(.icon):hover,a.ui.inverted.secondary.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #6e6e6e,0 0 0 1px #555}.ui.basic.inverted.cards>.secondary.card,.ui.basic.inverted.secondary.card,.ui.basic.inverted.secondary.cards>.card,.ui.inverted.cards>.basic.secondary.card{background:#1b1c1d}.ui.basic.inverted.cards a.secondary.card:hover,.ui.basic.inverted.secondary.cards a.card:hover,.ui.inverted.cards a.basic.secondary.card:hover,.ui.link.basic.inverted.cards .secondary.card:not(.icon):hover,.ui.link.basic.inverted.secondary.card:hover,.ui.link.basic.inverted.secondary.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.secondary.card:not(.icon):hover,a.ui.basic.inverted.secondary.card:hover{background:#27292a}.ui.cards>.red.card,.ui.red.card,.ui.red.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #db2828,0 1px 3px 0 #d4d4d5}.ui.cards a.red.card:hover,.ui.link.cards .red.card:not(.icon):hover,.ui.link.red.card:hover,.ui.link.red.cards .card:not(.icon):hover,.ui.red.cards a.card:hover,a.ui.red.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #d01919,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.red.card,.ui.basic.red.card,.ui.basic.red.cards>.card,.ui.cards>.basic.red.card{background:#ff695e}.ui.basic.cards a.red.card:hover,.ui.basic.red.cards a.card:hover,.ui.cards a.basic.red.card:hover,.ui.link.basic.cards .red.card:not(.icon):hover,.ui.link.basic.red.card:hover,.ui.link.basic.red.cards .card:not(.icon):hover,.ui.link.cards .basic.red.card:not(.icon):hover,a.ui.basic.red.card:hover{background:#ff392b}.ui.inverted.cards>.red.card,.ui.inverted.red.card,.ui.inverted.red.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff695e,0 0 0 1px #555}.ui.inverted.cards a.red.card:hover,.ui.inverted.red.cards a.card:hover,.ui.link.inverted.cards .red.card:not(.icon):hover,.ui.link.inverted.red.card:hover,.ui.link.inverted.red.cards .card:not(.icon):hover,a.ui.inverted.red.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff392b,0 0 0 1px #555}.ui.basic.inverted.cards>.red.card,.ui.basic.inverted.red.card,.ui.basic.inverted.red.cards>.card,.ui.inverted.cards>.basic.red.card{background:#db2828}.ui.basic.inverted.cards a.red.card:hover,.ui.basic.inverted.red.cards a.card:hover,.ui.inverted.cards a.basic.red.card:hover,.ui.link.basic.inverted.cards .red.card:not(.icon):hover,.ui.link.basic.inverted.red.card:hover,.ui.link.basic.inverted.red.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.red.card:not(.icon):hover,a.ui.basic.inverted.red.card:hover{background:#d01919}.ui.cards>.orange.card,.ui.orange.card,.ui.orange.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #f2711c,0 1px 3px 0 #d4d4d5}.ui.cards a.orange.card:hover,.ui.link.cards .orange.card:not(.icon):hover,.ui.link.orange.card:hover,.ui.link.orange.cards .card:not(.icon):hover,.ui.orange.cards a.card:hover,a.ui.orange.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #f26202,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.orange.card,.ui.basic.orange.card,.ui.basic.orange.cards>.card,.ui.cards>.basic.orange.card{background:#ff851b}.ui.basic.cards a.orange.card:hover,.ui.basic.orange.cards a.card:hover,.ui.cards a.basic.orange.card:hover,.ui.link.basic.cards .orange.card:not(.icon):hover,.ui.link.basic.orange.card:hover,.ui.link.basic.orange.cards .card:not(.icon):hover,.ui.link.cards .basic.orange.card:not(.icon):hover,a.ui.basic.orange.card:hover{background:#e76b00}.ui.inverted.cards>.orange.card,.ui.inverted.orange.card,.ui.inverted.orange.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff851b,0 0 0 1px #555}.ui.inverted.cards a.orange.card:hover,.ui.inverted.orange.cards a.card:hover,.ui.link.inverted.cards .orange.card:not(.icon):hover,.ui.link.inverted.orange.card:hover,.ui.link.inverted.orange.cards .card:not(.icon):hover,a.ui.inverted.orange.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #e76b00,0 0 0 1px #555}.ui.basic.inverted.cards>.orange.card,.ui.basic.inverted.orange.card,.ui.basic.inverted.orange.cards>.card,.ui.inverted.cards>.basic.orange.card{background:#f2711c}.ui.basic.inverted.cards a.orange.card:hover,.ui.basic.inverted.orange.cards a.card:hover,.ui.inverted.cards a.basic.orange.card:hover,.ui.link.basic.inverted.cards .orange.card:not(.icon):hover,.ui.link.basic.inverted.orange.card:hover,.ui.link.basic.inverted.orange.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.orange.card:not(.icon):hover,a.ui.basic.inverted.orange.card:hover{background:#f26202}.ui.cards>.yellow.card,.ui.yellow.card,.ui.yellow.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #fbbd08,0 1px 3px 0 #d4d4d5}.ui.cards a.yellow.card:hover,.ui.link.cards .yellow.card:not(.icon):hover,.ui.link.yellow.card:hover,.ui.link.yellow.cards .card:not(.icon):hover,.ui.yellow.cards a.card:hover,a.ui.yellow.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #eaae00,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.yellow.card,.ui.basic.yellow.card,.ui.basic.yellow.cards>.card,.ui.cards>.basic.yellow.card{background:#ffe21f}.ui.basic.cards a.yellow.card:hover,.ui.basic.yellow.cards a.card:hover,.ui.cards a.basic.yellow.card:hover,.ui.link.basic.cards .yellow.card:not(.icon):hover,.ui.link.basic.yellow.card:hover,.ui.link.basic.yellow.cards .card:not(.icon):hover,.ui.link.cards .basic.yellow.card:not(.icon):hover,a.ui.basic.yellow.card:hover{background:#ebcd00}.ui.inverted.cards>.yellow.card,.ui.inverted.yellow.card,.ui.inverted.yellow.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ffe21f,0 0 0 1px #555}.ui.inverted.cards a.yellow.card:hover,.ui.inverted.yellow.cards a.card:hover,.ui.link.inverted.cards .yellow.card:not(.icon):hover,.ui.link.inverted.yellow.card:hover,.ui.link.inverted.yellow.cards .card:not(.icon):hover,a.ui.inverted.yellow.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ebcd00,0 0 0 1px #555}.ui.basic.inverted.cards>.yellow.card,.ui.basic.inverted.yellow.card,.ui.basic.inverted.yellow.cards>.card,.ui.inverted.cards>.basic.yellow.card{background:#fbbd08}.ui.basic.inverted.cards a.yellow.card:hover,.ui.basic.inverted.yellow.cards a.card:hover,.ui.inverted.cards a.basic.yellow.card:hover,.ui.link.basic.inverted.cards .yellow.card:not(.icon):hover,.ui.link.basic.inverted.yellow.card:hover,.ui.link.basic.inverted.yellow.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.yellow.card:not(.icon):hover,a.ui.basic.inverted.yellow.card:hover{background:#eaae00}.ui.cards>.olive.card,.ui.olive.card,.ui.olive.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #b5cc18,0 1px 3px 0 #d4d4d5}.ui.cards a.olive.card:hover,.ui.link.cards .olive.card:not(.icon):hover,.ui.link.olive.card:hover,.ui.link.olive.cards .card:not(.icon):hover,.ui.olive.cards a.card:hover,a.ui.olive.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #a7bd0d,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.olive.card,.ui.basic.olive.card,.ui.basic.olive.cards>.card,.ui.cards>.basic.olive.card{background:#d9e778}.ui.basic.cards a.olive.card:hover,.ui.basic.olive.cards a.card:hover,.ui.cards a.basic.olive.card:hover,.ui.link.basic.cards .olive.card:not(.icon):hover,.ui.link.basic.olive.card:hover,.ui.link.basic.olive.cards .card:not(.icon):hover,.ui.link.cards .basic.olive.card:not(.icon):hover,a.ui.basic.olive.card:hover{background:#d2e745}.ui.inverted.cards>.olive.card,.ui.inverted.olive.card,.ui.inverted.olive.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #d9e778,0 0 0 1px #555}.ui.inverted.cards a.olive.card:hover,.ui.inverted.olive.cards a.card:hover,.ui.link.inverted.cards .olive.card:not(.icon):hover,.ui.link.inverted.olive.card:hover,.ui.link.inverted.olive.cards .card:not(.icon):hover,a.ui.inverted.olive.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #d2e745,0 0 0 1px #555}.ui.basic.inverted.cards>.olive.card,.ui.basic.inverted.olive.card,.ui.basic.inverted.olive.cards>.card,.ui.inverted.cards>.basic.olive.card{background:#b5cc18}.ui.basic.inverted.cards a.olive.card:hover,.ui.basic.inverted.olive.cards a.card:hover,.ui.inverted.cards a.basic.olive.card:hover,.ui.link.basic.inverted.cards .olive.card:not(.icon):hover,.ui.link.basic.inverted.olive.card:hover,.ui.link.basic.inverted.olive.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.olive.card:not(.icon):hover,a.ui.basic.inverted.olive.card:hover{background:#a7bd0d}.ui.cards>.green.card,.ui.green.card,.ui.green.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #21ba45,0 1px 3px 0 #d4d4d5}.ui.cards a.green.card:hover,.ui.green.cards a.card:hover,.ui.link.cards .green.card:not(.icon):hover,.ui.link.green.card:hover,.ui.link.green.cards .card:not(.icon):hover,a.ui.green.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #16ab39,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.green.card,.ui.basic.green.card,.ui.basic.green.cards>.card,.ui.cards>.basic.green.card{background:#2ecc40}.ui.basic.cards a.green.card:hover,.ui.basic.green.cards a.card:hover,.ui.cards a.basic.green.card:hover,.ui.link.basic.cards .green.card:not(.icon):hover,.ui.link.basic.green.card:hover,.ui.link.basic.green.cards .card:not(.icon):hover,.ui.link.cards .basic.green.card:not(.icon):hover,a.ui.basic.green.card:hover{background:#1ea92e}.ui.inverted.cards>.green.card,.ui.inverted.green.card,.ui.inverted.green.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #2ecc40,0 0 0 1px #555}.ui.inverted.cards a.green.card:hover,.ui.inverted.green.cards a.card:hover,.ui.link.inverted.cards .green.card:not(.icon):hover,.ui.link.inverted.green.card:hover,.ui.link.inverted.green.cards .card:not(.icon):hover,a.ui.inverted.green.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #1ea92e,0 0 0 1px #555}.ui.basic.inverted.cards>.green.card,.ui.basic.inverted.green.card,.ui.basic.inverted.green.cards>.card,.ui.inverted.cards>.basic.green.card{background:#21ba45}.ui.basic.inverted.cards a.green.card:hover,.ui.basic.inverted.green.cards a.card:hover,.ui.inverted.cards a.basic.green.card:hover,.ui.link.basic.inverted.cards .green.card:not(.icon):hover,.ui.link.basic.inverted.green.card:hover,.ui.link.basic.inverted.green.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.green.card:not(.icon):hover,a.ui.basic.inverted.green.card:hover{background:#16ab39}.ui.cards>.teal.card,.ui.teal.card,.ui.teal.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #00b5ad,0 1px 3px 0 #d4d4d5}.ui.cards a.teal.card:hover,.ui.link.cards .teal.card:not(.icon):hover,.ui.link.teal.card:hover,.ui.link.teal.cards .card:not(.icon):hover,.ui.teal.cards a.card:hover,a.ui.teal.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #009c95,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.teal.card,.ui.basic.teal.card,.ui.basic.teal.cards>.card,.ui.cards>.basic.teal.card{background:#6dffff}.ui.basic.cards a.teal.card:hover,.ui.basic.teal.cards a.card:hover,.ui.cards a.basic.teal.card:hover,.ui.link.basic.cards .teal.card:not(.icon):hover,.ui.link.basic.teal.card:hover,.ui.link.basic.teal.cards .card:not(.icon):hover,.ui.link.cards .basic.teal.card:not(.icon):hover,a.ui.basic.teal.card:hover{background:#3affff}.ui.inverted.cards>.teal.card,.ui.inverted.teal.card,.ui.inverted.teal.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #6dffff,0 0 0 1px #555}.ui.inverted.cards a.teal.card:hover,.ui.inverted.teal.cards a.card:hover,.ui.link.inverted.cards .teal.card:not(.icon):hover,.ui.link.inverted.teal.card:hover,.ui.link.inverted.teal.cards .card:not(.icon):hover,a.ui.inverted.teal.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #3affff,0 0 0 1px #555}.ui.basic.inverted.cards>.teal.card,.ui.basic.inverted.teal.card,.ui.basic.inverted.teal.cards>.card,.ui.inverted.cards>.basic.teal.card{background:#00b5ad}.ui.basic.inverted.cards a.teal.card:hover,.ui.basic.inverted.teal.cards a.card:hover,.ui.inverted.cards a.basic.teal.card:hover,.ui.link.basic.inverted.cards .teal.card:not(.icon):hover,.ui.link.basic.inverted.teal.card:hover,.ui.link.basic.inverted.teal.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.teal.card:not(.icon):hover,a.ui.basic.inverted.teal.card:hover{background:#009c95}.ui.blue.card,.ui.blue.cards>.card,.ui.cards>.blue.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #2185d0,0 1px 3px 0 #d4d4d5}.ui.blue.cards a.card:hover,.ui.cards a.blue.card:hover,.ui.link.blue.card:hover,.ui.link.blue.cards .card:not(.icon):hover,.ui.link.cards .blue.card:not(.icon):hover,a.ui.blue.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1678c2,0 1px 3px 0 #bcbdbd}.ui.basic.blue.card,.ui.basic.blue.cards>.card,.ui.basic.cards>.blue.card,.ui.cards>.basic.blue.card{background:#54c8ff}.ui.basic.blue.cards a.card:hover,.ui.basic.cards a.blue.card:hover,.ui.cards a.basic.blue.card:hover,.ui.link.basic.blue.card:hover,.ui.link.basic.blue.cards .card:not(.icon):hover,.ui.link.basic.cards .blue.card:not(.icon):hover,.ui.link.cards .basic.blue.card:not(.icon):hover,a.ui.basic.blue.card:hover{background:#21b8ff}.ui.inverted.blue.card,.ui.inverted.blue.cards>.card,.ui.inverted.cards>.blue.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #54c8ff,0 0 0 1px #555}.ui.inverted.blue.cards a.card:hover,.ui.inverted.cards a.blue.card:hover,.ui.link.inverted.blue.card:hover,.ui.link.inverted.blue.cards .card:not(.icon):hover,.ui.link.inverted.cards .blue.card:not(.icon):hover,a.ui.inverted.blue.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #21b8ff,0 0 0 1px #555}.ui.basic.inverted.blue.card,.ui.basic.inverted.blue.cards>.card,.ui.basic.inverted.cards>.blue.card,.ui.inverted.cards>.basic.blue.card{background:#2185d0}.ui.basic.inverted.blue.cards a.card:hover,.ui.basic.inverted.cards a.blue.card:hover,.ui.inverted.cards a.basic.blue.card:hover,.ui.link.basic.inverted.blue.card:hover,.ui.link.basic.inverted.blue.cards .card:not(.icon):hover,.ui.link.basic.inverted.cards .blue.card:not(.icon):hover,.ui.link.inverted.cards .basic.blue.card:not(.icon):hover,a.ui.basic.inverted.blue.card:hover{background:#1678c2}.ui.cards>.violet.card,.ui.violet.card,.ui.violet.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #6435c9,0 1px 3px 0 #d4d4d5}.ui.cards a.violet.card:hover,.ui.link.cards .violet.card:not(.icon):hover,.ui.link.violet.card:hover,.ui.link.violet.cards .card:not(.icon):hover,.ui.violet.cards a.card:hover,a.ui.violet.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #5829bb,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.violet.card,.ui.basic.violet.card,.ui.basic.violet.cards>.card,.ui.cards>.basic.violet.card{background:#a291fb}.ui.basic.cards a.violet.card:hover,.ui.basic.violet.cards a.card:hover,.ui.cards a.basic.violet.card:hover,.ui.link.basic.cards .violet.card:not(.icon):hover,.ui.link.basic.violet.card:hover,.ui.link.basic.violet.cards .card:not(.icon):hover,.ui.link.cards .basic.violet.card:not(.icon):hover,a.ui.basic.violet.card:hover{background:#745aff}.ui.inverted.cards>.violet.card,.ui.inverted.violet.card,.ui.inverted.violet.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #a291fb,0 0 0 1px #555}.ui.inverted.cards a.violet.card:hover,.ui.inverted.violet.cards a.card:hover,.ui.link.inverted.cards .violet.card:not(.icon):hover,.ui.link.inverted.violet.card:hover,.ui.link.inverted.violet.cards .card:not(.icon):hover,a.ui.inverted.violet.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #745aff,0 0 0 1px #555}.ui.basic.inverted.cards>.violet.card,.ui.basic.inverted.violet.card,.ui.basic.inverted.violet.cards>.card,.ui.inverted.cards>.basic.violet.card{background:#6435c9}.ui.basic.inverted.cards a.violet.card:hover,.ui.basic.inverted.violet.cards a.card:hover,.ui.inverted.cards a.basic.violet.card:hover,.ui.link.basic.inverted.cards .violet.card:not(.icon):hover,.ui.link.basic.inverted.violet.card:hover,.ui.link.basic.inverted.violet.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.violet.card:not(.icon):hover,a.ui.basic.inverted.violet.card:hover{background:#5829bb}.ui.cards>.purple.card,.ui.purple.card,.ui.purple.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #a333c8,0 1px 3px 0 #d4d4d5}.ui.cards a.purple.card:hover,.ui.link.cards .purple.card:not(.icon):hover,.ui.link.purple.card:hover,.ui.link.purple.cards .card:not(.icon):hover,.ui.purple.cards a.card:hover,a.ui.purple.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #9627ba,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.purple.card,.ui.basic.purple.card,.ui.basic.purple.cards>.card,.ui.cards>.basic.purple.card{background:#dc73ff}.ui.basic.cards a.purple.card:hover,.ui.basic.purple.cards a.card:hover,.ui.cards a.basic.purple.card:hover,.ui.link.basic.cards .purple.card:not(.icon):hover,.ui.link.basic.purple.card:hover,.ui.link.basic.purple.cards .card:not(.icon):hover,.ui.link.cards .basic.purple.card:not(.icon):hover,a.ui.basic.purple.card:hover{background:#cf40ff}.ui.inverted.cards>.purple.card,.ui.inverted.purple.card,.ui.inverted.purple.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #dc73ff,0 0 0 1px #555}.ui.inverted.cards a.purple.card:hover,.ui.inverted.purple.cards a.card:hover,.ui.link.inverted.cards .purple.card:not(.icon):hover,.ui.link.inverted.purple.card:hover,.ui.link.inverted.purple.cards .card:not(.icon):hover,a.ui.inverted.purple.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #cf40ff,0 0 0 1px #555}.ui.basic.inverted.cards>.purple.card,.ui.basic.inverted.purple.card,.ui.basic.inverted.purple.cards>.card,.ui.inverted.cards>.basic.purple.card{background:#a333c8}.ui.basic.inverted.cards a.purple.card:hover,.ui.basic.inverted.purple.cards a.card:hover,.ui.inverted.cards a.basic.purple.card:hover,.ui.link.basic.inverted.cards .purple.card:not(.icon):hover,.ui.link.basic.inverted.purple.card:hover,.ui.link.basic.inverted.purple.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.purple.card:not(.icon):hover,a.ui.basic.inverted.purple.card:hover{background:#9627ba}.ui.cards>.pink.card,.ui.pink.card,.ui.pink.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #e03997,0 1px 3px 0 #d4d4d5}.ui.cards a.pink.card:hover,.ui.link.cards .pink.card:not(.icon):hover,.ui.link.pink.card:hover,.ui.link.pink.cards .card:not(.icon):hover,.ui.pink.cards a.card:hover,a.ui.pink.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #e61a8d,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.pink.card,.ui.basic.pink.card,.ui.basic.pink.cards>.card,.ui.cards>.basic.pink.card{background:#ff8edf}.ui.basic.cards a.pink.card:hover,.ui.basic.pink.cards a.card:hover,.ui.cards a.basic.pink.card:hover,.ui.link.basic.cards .pink.card:not(.icon):hover,.ui.link.basic.pink.card:hover,.ui.link.basic.pink.cards .card:not(.icon):hover,.ui.link.cards .basic.pink.card:not(.icon):hover,a.ui.basic.pink.card:hover{background:#ff5bd1}.ui.inverted.cards>.pink.card,.ui.inverted.pink.card,.ui.inverted.pink.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff8edf,0 0 0 1px #555}.ui.inverted.cards a.pink.card:hover,.ui.inverted.pink.cards a.card:hover,.ui.link.inverted.cards .pink.card:not(.icon):hover,.ui.link.inverted.pink.card:hover,.ui.link.inverted.pink.cards .card:not(.icon):hover,a.ui.inverted.pink.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #ff5bd1,0 0 0 1px #555}.ui.basic.inverted.cards>.pink.card,.ui.basic.inverted.pink.card,.ui.basic.inverted.pink.cards>.card,.ui.inverted.cards>.basic.pink.card{background:#e03997}.ui.basic.inverted.cards a.pink.card:hover,.ui.basic.inverted.pink.cards a.card:hover,.ui.inverted.cards a.basic.pink.card:hover,.ui.link.basic.inverted.cards .pink.card:not(.icon):hover,.ui.link.basic.inverted.pink.card:hover,.ui.link.basic.inverted.pink.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.pink.card:not(.icon):hover,a.ui.basic.inverted.pink.card:hover{background:#e61a8d}.ui.brown.card,.ui.brown.cards>.card,.ui.cards>.brown.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #a5673f,0 1px 3px 0 #d4d4d5}.ui.brown.cards a.card:hover,.ui.cards a.brown.card:hover,.ui.link.brown.card:hover,.ui.link.brown.cards .card:not(.icon):hover,.ui.link.cards .brown.card:not(.icon):hover,a.ui.brown.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #975b33,0 1px 3px 0 #bcbdbd}.ui.basic.brown.card,.ui.basic.brown.cards>.card,.ui.basic.cards>.brown.card,.ui.cards>.basic.brown.card{background:#d67c1c}.ui.basic.brown.cards a.card:hover,.ui.basic.cards a.brown.card:hover,.ui.cards a.basic.brown.card:hover,.ui.link.basic.brown.card:hover,.ui.link.basic.brown.cards .card:not(.icon):hover,.ui.link.basic.cards .brown.card:not(.icon):hover,.ui.link.cards .basic.brown.card:not(.icon):hover,a.ui.basic.brown.card:hover{background:#b0620f}.ui.inverted.brown.card,.ui.inverted.brown.cards>.card,.ui.inverted.cards>.brown.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #d67c1c,0 0 0 1px #555}.ui.inverted.brown.cards a.card:hover,.ui.inverted.cards a.brown.card:hover,.ui.link.inverted.brown.card:hover,.ui.link.inverted.brown.cards .card:not(.icon):hover,.ui.link.inverted.cards .brown.card:not(.icon):hover,a.ui.inverted.brown.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #b0620f,0 0 0 1px #555}.ui.basic.inverted.brown.card,.ui.basic.inverted.brown.cards>.card,.ui.basic.inverted.cards>.brown.card,.ui.inverted.cards>.basic.brown.card{background:#a5673f}.ui.basic.inverted.brown.cards a.card:hover,.ui.basic.inverted.cards a.brown.card:hover,.ui.inverted.cards a.basic.brown.card:hover,.ui.link.basic.inverted.brown.card:hover,.ui.link.basic.inverted.brown.cards .card:not(.icon):hover,.ui.link.basic.inverted.cards .brown.card:not(.icon):hover,.ui.link.inverted.cards .basic.brown.card:not(.icon):hover,a.ui.basic.inverted.brown.card:hover{background:#975b33}.ui.cards>.grey.card,.ui.grey.card,.ui.grey.cards>.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #767676,0 1px 3px 0 #d4d4d5}.ui.cards a.grey.card:hover,.ui.grey.cards a.card:hover,.ui.link.cards .grey.card:not(.icon):hover,.ui.link.grey.card:hover,.ui.link.grey.cards .card:not(.icon):hover,a.ui.grey.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #838383,0 1px 3px 0 #bcbdbd}.ui.basic.cards>.grey.card,.ui.basic.grey.card,.ui.basic.grey.cards>.card,.ui.cards>.basic.grey.card{background:#dcddde}.ui.basic.cards a.grey.card:hover,.ui.basic.grey.cards a.card:hover,.ui.cards a.basic.grey.card:hover,.ui.link.basic.cards .grey.card:not(.icon):hover,.ui.link.basic.grey.card:hover,.ui.link.basic.grey.cards .card:not(.icon):hover,.ui.link.cards .basic.grey.card:not(.icon):hover,a.ui.basic.grey.card:hover{background:#c2c4c5}.ui.inverted.cards>.grey.card,.ui.inverted.grey.card,.ui.inverted.grey.cards>.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #dcddde,0 0 0 1px #555}.ui.inverted.cards a.grey.card:hover,.ui.inverted.grey.cards a.card:hover,.ui.link.inverted.cards .grey.card:not(.icon):hover,.ui.link.inverted.grey.card:hover,.ui.link.inverted.grey.cards .card:not(.icon):hover,a.ui.inverted.grey.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #c2c4c5,0 0 0 1px #555}.ui.basic.inverted.cards>.grey.card,.ui.basic.inverted.grey.card,.ui.basic.inverted.grey.cards>.card,.ui.inverted.cards>.basic.grey.card{background:#767676}.ui.basic.inverted.cards a.grey.card:hover,.ui.basic.inverted.grey.cards a.card:hover,.ui.inverted.cards a.basic.grey.card:hover,.ui.link.basic.inverted.cards .grey.card:not(.icon):hover,.ui.link.basic.inverted.grey.card:hover,.ui.link.basic.inverted.grey.cards .card:not(.icon):hover,.ui.link.inverted.cards .basic.grey.card:not(.icon):hover,a.ui.basic.inverted.grey.card:hover{background:#838383}.ui.black.card,.ui.black.cards>.card,.ui.cards>.black.card{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #1b1c1d,0 1px 3px 0 #d4d4d5}.ui.black.cards a.card:hover,.ui.cards a.black.card:hover,.ui.link.black.card:hover,.ui.link.black.cards .card:not(.icon):hover,.ui.link.cards .black.card:not(.icon):hover,a.ui.black.card:hover{box-shadow:0 0 0 1px #d4d4d5,0 2px 0 0 #27292a,0 1px 3px 0 #bcbdbd}.ui.basic.black.card,.ui.basic.black.cards>.card,.ui.basic.cards>.black.card,.ui.cards>.basic.black.card{background:#545454}.ui.basic.black.card .content,.ui.basic.black.card .description,.ui.basic.black.card .header,.ui.basic.black.card .meta,.ui.basic.black.cards>.card .content,.ui.basic.black.cards>.card .description,.ui.basic.black.cards>.card .header,.ui.basic.black.cards>.card .meta,.ui.basic.cards>.black.card .content,.ui.basic.cards>.black.card .description,.ui.basic.cards>.black.card .header,.ui.basic.cards>.black.card .meta,.ui.cards>.basic.black.card .content,.ui.cards>.basic.black.card .description,.ui.cards>.basic.black.card .header,.ui.cards>.basic.black.card .meta{color:#fff}.ui.basic.black.cards a.card:hover,.ui.basic.cards a.black.card:hover,.ui.cards a.basic.black.card:hover,.ui.link.basic.black.card:hover,.ui.link.basic.black.cards .card:not(.icon):hover,.ui.link.basic.cards .black.card:not(.icon):hover,.ui.link.cards .basic.black.card:not(.icon):hover,a.ui.basic.black.card:hover{background:#000}.ui.inverted.black.card,.ui.inverted.black.cards>.card,.ui.inverted.cards>.black.card{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #545454,0 0 0 1px #555}.ui.inverted.black.cards a.card:hover,.ui.inverted.cards a.black.card:hover,.ui.link.inverted.black.card:hover,.ui.link.inverted.black.cards .card:not(.icon):hover,.ui.link.inverted.cards .black.card:not(.icon):hover,a.ui.inverted.black.card:hover{box-shadow:0 1px 3px 0 #555,0 2px 0 0 #000,0 0 0 1px #555}.ui.basic.inverted.black.card,.ui.basic.inverted.black.cards>.card,.ui.basic.inverted.cards>.black.card,.ui.inverted.cards>.basic.black.card{background:#1b1c1d}.ui.basic.inverted.black.cards a.card:hover,.ui.basic.inverted.cards a.black.card:hover,.ui.inverted.cards a.basic.black.card:hover,.ui.link.basic.inverted.black.card:hover,.ui.link.basic.inverted.black.cards .card:not(.icon):hover,.ui.link.basic.inverted.cards .black.card:not(.icon):hover,.ui.link.inverted.cards .basic.black.card:not(.icon):hover,a.ui.basic.inverted.black.card:hover{background:#27292a}.ui.one.cards{margin-left:0;margin-right:0}.ui.one.cards>.card{width:100%}.ui.two.cards{margin-left:-1em;margin-right:-1em}.ui.two.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.three.cards{margin-left:-1em;margin-right:-1em}.ui.three.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.four.cards{margin-left:-.75em;margin-right:-.75em}.ui.four.cards>.card{width:calc(25% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.five.cards{margin-left:-.75em;margin-right:-.75em}.ui.five.cards>.card{width:calc(20% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.six.cards{margin-left:-.75em;margin-right:-.75em}.ui.six.cards>.card{width:calc(16.666666666666664% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.seven.cards{margin-left:-.5em;margin-right:-.5em}.ui.seven.cards>.card{width:calc(14.285714285714285% - 1em);margin-left:.5em;margin-right:.5em}.ui.eight.cards{margin-left:-.5em;margin-right:-.5em}.ui.eight.cards>.card{width:calc(12.5% - 1em);margin-left:.5em;margin-right:.5em;font-size:11px}.ui.nine.cards{margin-left:-.5em;margin-right:-.5em}.ui.nine.cards>.card{width:calc(11.11111111111111% - 1em);margin-left:.5em;margin-right:.5em;font-size:10px}.ui.ten.cards{margin-left:-.5em;margin-right:-.5em}.ui.ten.cards>.card{width:calc(10% - 1em);margin-left:.5em;margin-right:.5em}@media only screen and (max-width:767.98px){.ui.two.doubling.cards{margin-left:0;margin-right:0}.ui.two.doubling.cards>.card{width:100%;margin-left:0;margin-right:0}.ui.three.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.three.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.four.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.four.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.five.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.five.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.six.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.six.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.seven.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.seven.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.eight.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.eight.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.nine.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.nine.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.ten.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.ten.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}}@media only screen and (min-width:768px) and (max-width:991.98px){.ui.two.doubling.cards{margin-left:0;margin-right:0}.ui.two.doubling.cards>.card{width:100%;margin-left:0;margin-right:0}.ui.three.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.three.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.four.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.four.doubling.cards>.card{width:calc(50% - 2em);margin-left:1em;margin-right:1em}.ui.five.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.five.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.six.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.six.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.eight.doubling.cards{margin-left:-1em;margin-right:-1em}.ui.eight.doubling.cards>.card{width:calc(33.33333333333333% - 2em);margin-left:1em;margin-right:1em}.ui.eight.doubling.cards{margin-left:-.75em;margin-right:-.75em}.ui.eight.doubling.cards>.card{width:calc(25% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.nine.doubling.cards{margin-left:-.75em;margin-right:-.75em}.ui.nine.doubling.cards>.card{width:calc(25% - 1.5em);margin-left:.75em;margin-right:.75em}.ui.ten.doubling.cards{margin-left:-.75em;margin-right:-.75em}.ui.ten.doubling.cards>.card{width:calc(20% - 1.5em);margin-left:.75em;margin-right:.75em}}@media only screen and (max-width:767.98px){.ui.stackable.cards{display:block!important}.ui.stackable.cards .card:first-child{margin-top:0!important}.ui.stackable.cards>.card{display:block!important;height:auto!important;margin:1em 1em;padding:0!important;width:calc(100% - 2em)!important}}.ui.cards>.card{font-size:1em}.ui.mini.card,.ui.mini.cards .card{font-size:.78571429rem}.ui.tiny.card,.ui.tiny.cards .card{font-size:.85714286rem}.ui.small.card,.ui.small.cards .card{font-size:.92857143rem}.ui.large.card,.ui.large.cards .card{font-size:1.14285714rem}.ui.big.card,.ui.big.cards .card{font-size:1.28571429rem}.ui.huge.card,.ui.huge.cards .card{font-size:1.42857143rem}.ui.massive.card,.ui.massive.cards .card{font-size:1.71428571rem}.ui.inverted.card,.ui.inverted.cards>.card{background:#1b1c1d;box-shadow:0 1px 3px 0 #555,0 0 0 1px #555}.ui.inverted.card>.content,.ui.inverted.cards>.card>.content{border-top:1px solid rgba(255,255,255,.15)}.ui.inverted.card>.content>.header,.ui.inverted.cards>.card>.content>.header{color:rgba(255,255,255,.9)}.ui.inverted.card>.content>a.header,.ui.inverted.cards>.card>.content>a.header{color:rgba(255,255,255,.9)}.ui.inverted.card>.content>a.header:hover,.ui.inverted.cards>.card>.content>a.header:hover{color:#1e70bf}.ui.inverted.card>.content>.description,.ui.inverted.cards>.card>.content>.description{color:rgba(255,255,255,.8)}.ui.inverted.card .meta,.ui.inverted.cards>.card .meta{color:rgba(255,255,255,.7)}.ui.inverted.card .meta>a:not(.ui),.ui.inverted.cards>.card .meta>a:not(.ui){color:rgba(255,255,255,.7)}.ui.inverted.card .meta>a:not(.ui):hover,.ui.inverted.cards>.card .meta>a:not(.ui):hover{color:#fff}.ui.inverted.card>.extra,.ui.inverted.cards>.card>.extra{border-top:1px solid rgba(255,255,255,.15)!important;color:rgba(255,255,255,.7)}.ui.inverted.card>.extra a:not(.ui),.ui.inverted.cards>.card>.extra a:not(.ui){color:rgba(255,255,255,.5)}.ui.inverted.card>.extra a:not(.ui):hover,.ui.inverted.cards>.card>.extra a:not(.ui):hover{color:#1e70bf}.ui.inverted.cards a.card:hover,.ui.inverted.link.card:hover,.ui.inverted.link.cards .card:not(.icon):hover,a.inverted.ui.card:hover{background:#1b1c1d}.ui.inverted.loading.card{color:#fff}.ui.inverted.loading.card::before{background:rgba(0,0,0,.85)}'],sourceRoot:""}]);const o=n},15630:(e,t,i)=>{"use strict";t.__esModule=!0,t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=l(t);if(i&&i.has(e))return i.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var n=a?Object.getOwnPropertyDescriptor(e,s):null;n&&(n.get||n.set)?Object.defineProperty(r,s,n):r[s]=e[s]}return r.default=e,i&&i.set(e,r),r}(i(96540)),a=i(55794),s=i(94030),n=i(28329),o=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function l(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(l=function(e){return e?i:t})(e)}function c(){return c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},c.apply(this,arguments)}function d(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function h(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?d(Object(i),!0).forEach(function(t){u(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):d(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function u(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var p=function(e){var t,i;function n(){for(var t,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).handleRefs={},t.lastHandleRect=null,t.slack=null,t}i=e,(t=n).prototype=Object.create(i.prototype),t.prototype.constructor=t,g(t,i);var l=n.prototype;return l.componentWillUnmount=function(){this.resetData()},l.resetData=function(){this.lastHandleRect=this.slack=null},l.runConstraints=function(e,t){var i=this.props,r=i.minConstraints,a=i.maxConstraints,s=i.lockAspectRatio;if(!r&&!a&&!s)return[e,t];if(s){var n=this.props.width/this.props.height,o=e-this.props.width,l=t-this.props.height;Math.abs(o)>Math.abs(l*n)?t=e/n:e=t*n}var c=e,d=t,h=this.slack||[0,0],u=h[0],g=h[1];return e+=u,t+=g,r&&(e=Math.max(r[0],e),t=Math.max(r[1],t)),a&&(e=Math.min(a[0],e),t=Math.min(a[1],t)),this.slack=[u+(c-e),g+(d-t)],[e,t]},l.resizeHandler=function(e,t){var i=this;return function(r,a){var s=a.node,n=a.deltaX,o=a.deltaY;"onResizeStart"===e&&i.resetData();var l=("both"===i.props.axis||"x"===i.props.axis)&&"n"!==t&&"s"!==t,c=("both"===i.props.axis||"y"===i.props.axis)&&"e"!==t&&"w"!==t;if(l||c){var d=t[0],h=t[t.length-1],u=s.getBoundingClientRect();null!=i.lastHandleRect&&("w"===h&&(n+=u.left-i.lastHandleRect.left),"n"===d&&(o+=u.top-i.lastHandleRect.top)),i.lastHandleRect=u,"w"===h&&(n=-n),"n"===d&&(o=-o);var g=i.props.width+(l?n/i.props.transformScale:0),p=i.props.height+(c?o/i.props.transformScale:0),f=i.runConstraints(g,p);g=f[0],p=f[1];var b=g!==i.props.width||p!==i.props.height,m="function"==typeof i.props[e]?i.props[e]:null;m&&!("onResize"===e&&!b)&&(null==r.persist||r.persist(),m(r,{node:s,size:{width:g,height:p},handle:t})),"onResizeStop"===e&&i.resetData()}}},l.renderResizeHandle=function(e,t){var i=this.props.handle;if(!i)return r.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+e,ref:t});if("function"==typeof i)return i(e,t);var a=h({ref:t},"string"==typeof i.type?{}:{handleAxis:e});return r.cloneElement(i,a)},l.render=function(){var e=this,t=this.props,i=t.children,n=t.className,l=t.draggableOpts,d=(t.width,t.height,t.handle,t.handleSize,t.lockAspectRatio,t.axis,t.minConstraints,t.maxConstraints,t.onResize,t.onResizeStop,t.onResizeStart,t.resizeHandles),u=(t.transformScale,function(e,t){if(null==e)return{};var i,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)i=s[r],t.indexOf(i)>=0||(a[i]=e[i]);return a}(t,o));return(0,s.cloneElement)(i,h(h({},u),{},{className:(n?n+" ":"")+"react-resizable",children:[].concat(i.props.children,d.map(function(t){var i,s=null!=(i=e.handleRefs[t])?i:e.handleRefs[t]=r.createRef();return r.createElement(a.DraggableCore,c({},l,{nodeRef:s,key:"resizableHandle-"+t,onStop:e.resizeHandler("onResizeStop",t),onStart:e.resizeHandler("onResizeStart",t),onDrag:e.resizeHandler("onResize",t)}),e.renderResizeHandle(t,s))}))}))},n}(r.Component);t.default=p,p.propTypes=n.resizableProps,p.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1}},15911:(e,t,i)=>{"use strict";i.d(t,{Z:()=>c});const r=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,a=e=>{if("string"!=typeof e)throw new TypeError("Invalid argument expected string");const t=e.match(r);if(!t)throw new Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},s=e=>"*"===e||"x"===e||"X"===e,n=e=>{const t=parseInt(e,10);return isNaN(t)?e:t},o=(e,t)=>{if(s(e)||s(t))return 0;const[i,r]=((e,t)=>typeof e!=typeof t?[String(e),String(t)]:[e,t])(n(e),n(t));return i>r?1:i<r?-1:0},l=(e,t)=>{for(let i=0;i<Math.max(e.length,t.length);i++){const r=o(e[i]||"0",t[i]||"0");if(0!==r)return r}return 0},c=(e,t)=>{const i=a(e),r=a(t),s=i.pop(),n=r.pop(),o=l(i,r);return 0!==o?o:s&&n?l(s.split("."),n.split(".")):s||n?s?-1:1:0}},17242:(e,t,i)=>{"use strict";t.A=f;var r=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=d(e)&&"function"!=typeof e)return{default:e};if((t=l(t))&&t.has(e))return t.get(e);var i,r,a={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(i in e)"default"!==i&&{}.hasOwnProperty.call(e,i)&&((r=s?Object.getOwnPropertyDescriptor(e,i):null)&&(r.get||r.set)?Object.defineProperty(a,i,r):a[i]=e[i]);return a.default=e,t&&t.set(e,a),a}(i(96540)),a=o(i(69661)),s=o(i(5556)),n=["type","width","height","series","options"];function o(e){return e&&e.__esModule?e:{default:e}}function l(e){var t,i;return"function"!=typeof WeakMap?null:(t=new WeakMap,i=new WeakMap,(l=function(e){return e?i:t})(e))}function c(){return(c=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i,r=arguments[t];for(i in r)!{}.hasOwnProperty.call(r,i)||(e[i]=r[i])}return e}).apply(null,arguments)}function d(e){return(d="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 h(e,t){var i,r=Object.keys(e);return Object.getOwnPropertySymbols&&(i=Object.getOwnPropertySymbols(e),t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,i)),r}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach(function(t){g(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function g(e,t,i){return(t=function(e){return e=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0===t)return String(e);if("object"!=d(t=t.call(e,"string")))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}(e),"symbol"==d(e)?e:e+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p(e,t){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:new WeakSet;if(e!==t){if("object"!==d(e)||null===e||"object"!==d(t)||null===t)return!1;if(!i.has(e)&&!i.has(t)){i.add(e),i.add(t);var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var s=0,n=r;s<n.length;s++){var o=n[s];if(!a.includes(o)||!p(e[o],t[o],i))return!1}}}return!0}function f(e){function t(e){return e&&"object"===d(e)&&!Array.isArray(e)}var i=void 0===(b=e.type)?"line":b,s=void 0===(b=e.width)?"100%":b,o=void 0===(b=e.height)?"auto":b,l=e.series,h=e.options,b=function(e,t){if(null==e)return{};var i,r=function(e,t){if(null==e)return{};var i,r={};for(i in e)if({}.hasOwnProperty.call(e,i)){if(t.includes(i))continue;r[i]=e[i]}return r}(e,t);if(Object.getOwnPropertySymbols)for(var a=Object.getOwnPropertySymbols(e),s=0;s<a.length;s++)i=a[s],t.includes(i)||{}.propertyIsEnumerable.call(e,i)&&(r[i]=e[i]);return r}(e,n),m=(0,r.useRef)(null),x=(0,r.useRef)(null),v=(0,r.useRef)(),y=((0,r.useEffect)(function(){v.current=h;var e=m.current;return x.current=new a.default(e,y()),x.current.render(),function(){x.current&&"function"==typeof x.current.destroy&&x.current.destroy()}},[]),(0,r.useEffect)(function(){var e=!p(x.current.w.config.series,l),t=!p(v.current,h)||o!==x.current.opts.chart.height||s!==x.current.opts.chart.width;(e||t)&&(!e||t?x.current.updateOptions(y()):x.current.updateSeries(l)),v.current=h},[h,l,o,s]),function(){return A(h,{chart:{type:i,height:o,width:s},series:l})}),A=function(e,i){var r=u({},e);return t(e)&&t(i)&&Object.keys(i).forEach(function(a){t(i[a])&&a in e?r[a]=A(e[a],i[a]):Object.assign(r,g({},a,i[a]))}),r};return e=function(e,t){var i=u({},e);return t.forEach(function(e){delete i[e]}),i}(b,Object.keys(f.propTypes)),r.default.createElement("div",c({ref:m},e))}f.propTypes={type:s.default.string.isRequired,series:s.default.array.isRequired,options:s.default.object.isRequired,width:s.default.oneOfType([s.default.string,s.default.number]),height:s.default.oneOfType([s.default.string,s.default.number])}},18536:(e,t,i)=>{"use strict";i.d(t,{A_:()=>r.A_,Bs:()=>r.Bs,yc:()=>r.yc});var r=i(72384);i(52786)},18696:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){}},26392:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=u(i(96540)),a=i(40961),s=u(i(5556)),n=i(55794),o=i(66036),l=i(38426),c=i(82134),d=i(80634),h=u(i(71508));function u(e){return e&&e.__esModule?e:{default:e}}function g(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class p extends r.default.Component{constructor(){super(...arguments),g(this,"state",{resizing:null,dragging:null,className:""}),g(this,"elementRef",r.default.createRef()),g(this,"onDragStart",(e,t)=>{let{node:i}=t;const{onDragStart:r,transformScale:a}=this.props;if(!r)return;const s={top:0,left:0},{offsetParent:n}=i;if(!n)return;const o=n.getBoundingClientRect(),l=i.getBoundingClientRect(),d=l.left/a,h=o.left/a,u=l.top/a,g=o.top/a;s.left=d-h+n.scrollLeft,s.top=u-g+n.scrollTop,this.setState({dragging:s});const{x:p,y:f}=(0,c.calcXY)(this.getPositionParams(),s.top,s.left,this.props.w,this.props.h);return r.call(this,this.props.i,p,f,{e,node:i,newPosition:s})}),g(this,"onDrag",(e,t,i)=>{let{node:r,deltaX:s,deltaY:n}=t;const{onDrag:o}=this.props;if(!o)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let l=this.state.dragging.top+n,d=this.state.dragging.left+s;const{isBounded:h,i:u,w:g,h:p,containerWidth:f}=this.props,b=this.getPositionParams();if(h){const{offsetParent:e}=r;if(e){const{margin:t,rowHeight:i}=this.props,r=e.clientHeight-(0,c.calcGridItemWHPx)(p,i,t[1]);l=(0,c.clamp)(l,0,r);const a=(0,c.calcGridColWidth)(b),s=f-(0,c.calcGridItemWHPx)(g,a,t[0]);d=(0,c.clamp)(d,0,s)}}const m={top:l,left:d};i?this.setState({dragging:m}):(0,a.flushSync)(()=>{this.setState({dragging:m})});const{x,y:v}=(0,c.calcXY)(b,l,d,g,p);return o.call(this,u,x,v,{e,node:r,newPosition:m})}),g(this,"onDragStop",(e,t)=>{let{node:i}=t;const{onDragStop:r}=this.props;if(!r)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:a,h:s,i:n}=this.props,{left:o,top:l}=this.state.dragging,d={top:l,left:o};this.setState({dragging:null});const{x:h,y:u}=(0,c.calcXY)(this.getPositionParams(),l,o,a,s);return r.call(this,n,h,u,{e,node:i,newPosition:d})}),g(this,"onResizeStop",(e,t,i)=>this.onResizeHandler(e,t,i,"onResizeStop")),g(this,"onResizeStart",(e,t,i)=>this.onResizeHandler(e,t,i,"onResizeStart")),g(this,"onResize",(e,t,i)=>this.onResizeHandler(e,t,i,"onResize"))}shouldComponentUpdate(e,t){if(this.props.children!==e.children)return!0;if(this.props.droppingPosition!==e.droppingPosition)return!0;const i=(0,c.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),r=(0,c.calcGridItemPosition)(this.getPositionParams(e),e.x,e.y,e.w,e.h,t);return!(0,l.fastPositionEqual)(i,r)||this.props.useCSSTransforms!==e.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(e){this.moveDroppingItem(e)}moveDroppingItem(e){const{droppingPosition:t}=this.props;if(!t)return;const i=this.elementRef.current;if(!i)return;const r=e.droppingPosition||{left:0,top:0},{dragging:a}=this.state,s=a&&t.left!==r.left||t.top!==r.top;if(a){if(s){const e=t.left-a.left,r=t.top-a.top;this.onDrag(t.e,{node:i,deltaX:e,deltaY:r},!0)}}else this.onDragStart(t.e,{node:i,deltaX:t.left,deltaY:t.top})}getPositionParams(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props;return{cols:e.cols,containerPadding:e.containerPadding,containerWidth:e.containerWidth,margin:e.margin,maxRows:e.maxRows,rowHeight:e.rowHeight}}createStyle(e){const{usePercentages:t,containerWidth:i,useCSSTransforms:r}=this.props;let a;return r?a=(0,l.setTransform)(e):(a=(0,l.setTopLeft)(e),t&&(a.left=(0,l.perc)(e.left/i),a.width=(0,l.perc)(e.width/i))),a}mixinDraggable(e,t){return r.default.createElement(n.DraggableCore,{disabled:!t,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},e)}curryResizeHandler(e,t){return(i,r)=>t(i,r,e)}mixinResizable(e,t,i){const{cols:a,minW:s,minH:n,maxW:l,maxH:d,transformScale:h,resizeHandles:u,resizeHandle:g}=this.props,p=this.getPositionParams(),f=(0,c.calcGridItemPosition)(p,0,0,a,0).width,b=(0,c.calcGridItemPosition)(p,0,0,s,n),m=(0,c.calcGridItemPosition)(p,0,0,l,d),x=[b.width,b.height],v=[Math.min(m.width,f),Math.min(m.height,1/0)];return r.default.createElement(o.Resizable,{draggableOpts:{disabled:!i},className:i?void 0:"react-resizable-hide",width:t.width,height:t.height,minConstraints:x,maxConstraints:v,onResizeStop:this.curryResizeHandler(t,this.onResizeStop),onResizeStart:this.curryResizeHandler(t,this.onResizeStart),onResize:this.curryResizeHandler(t,this.onResize),transformScale:h,resizeHandles:u,handle:g},e)}onResizeHandler(e,t,i,r){let{node:s,size:n,handle:o}=t;const d=this.props[r];if(!d)return;const{x:h,y:u,i:g,maxH:p,minH:f,containerWidth:b}=this.props,{minW:m,maxW:x}=this.props;let v=n;s&&(v=(0,l.resizeItemInDirection)(o,i,n,b),(0,a.flushSync)(()=>{this.setState({resizing:"onResizeStop"===r?null:v})}));let{w:y,h:A}=(0,c.calcWH)(this.getPositionParams(),v.width,v.height,h,u,o);y=(0,c.clamp)(y,Math.max(m,1),x),A=(0,c.clamp)(A,f,p),d.call(this,g,y,A,{e,node:s,size:v,handle:o})}render(){const{x:e,y:t,w:i,h:a,isDraggable:s,isResizable:n,droppingPosition:o,useCSSTransforms:l}=this.props,d=(0,c.calcGridItemPosition)(this.getPositionParams(),e,t,i,a,this.state),u=r.default.Children.only(this.props.children);let g=r.default.cloneElement(u,{ref:this.elementRef,className:(0,h.default)("react-grid-item",u.props.className,this.props.className,{static:this.props.static,resizing:Boolean(this.state.resizing),"react-draggable":s,"react-draggable-dragging":Boolean(this.state.dragging),dropping:Boolean(o),cssTransforms:l}),style:{...this.props.style,...u.props.style,...this.createStyle(d)}});return g=this.mixinResizable(g,d,n),g=this.mixinDraggable(g,s),g}}t.default=p,g(p,"propTypes",{children:s.default.element,cols:s.default.number.isRequired,containerWidth:s.default.number.isRequired,rowHeight:s.default.number.isRequired,margin:s.default.array.isRequired,maxRows:s.default.number.isRequired,containerPadding:s.default.array.isRequired,x:s.default.number.isRequired,y:s.default.number.isRequired,w:s.default.number.isRequired,h:s.default.number.isRequired,minW:function(e,t){const i=e[t];return"number"!=typeof i?new Error("minWidth not Number"):i>e.w||i>e.maxW?new Error("minWidth larger than item width/maxWidth"):void 0},maxW:function(e,t){const i=e[t];return"number"!=typeof i?new Error("maxWidth not Number"):i<e.w||i<e.minW?new Error("maxWidth smaller than item width/minWidth"):void 0},minH:function(e,t){const i=e[t];return"number"!=typeof i?new Error("minHeight not Number"):i>e.h||i>e.maxH?new Error("minHeight larger than item height/maxHeight"):void 0},maxH:function(e,t){const i=e[t];return"number"!=typeof i?new Error("maxHeight not Number"):i<e.h||i<e.minH?new Error("maxHeight smaller than item height/minHeight"):void 0},i:s.default.string.isRequired,resizeHandles:d.resizeHandleAxesType,resizeHandle:d.resizeHandleType,onDragStop:s.default.func,onDragStart:s.default.func,onDrag:s.default.func,onResizeStop:s.default.func,onResizeStart:s.default.func,onResize:s.default.func,isDraggable:s.default.bool.isRequired,isResizable:s.default.bool.isRequired,isBounded:s.default.bool.isRequired,static:s.default.bool,useCSSTransforms:s.default.bool.isRequired,transformScale:s.default.number,className:s.default.string,handle:s.default.string,cancel:s.default.string,droppingPosition:s.default.shape({e:s.default.object.isRequired,left:s.default.number.isRequired,top:s.default.number.isRequired})}),g(p,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1})},27415:(e,t,i)=>{"use strict";i.d(t,{f$:()=>g,vl:()=>D,qZ:()=>E,_q:()=>v,De:()=>x,Hi:()=>B.Hi});var r=i(58059),a=i(4425),s=i(86038),n=i(67749),o=i(48844);const l=(e,t)=>e.post(r.A.BUNDLES_URL+"/priority",{priority:t}),c={id:"removeCompleted",displayName:"Remove completed bundles",access:s.US.QUEUE_EDIT,icon:a.A.REMOVE,handler:({socket:e})=>e.post(r.A.BUNDLES_URL+"/remove_completed"),notifications:{onSuccess:"{{result.count}} completed bundles were removed"}},d={id:"pause",displayName:"Pause all bundles",access:s.US.QUEUE_EDIT,icon:a.A.PAUSE,handler:({socket:e})=>l(e,s.Fm.PAUSED_FORCED)},h={id:"resumeAll",displayName:"Resume all bundles",access:s.US.QUEUE_EDIT,icon:a.A.PLAY,handler:({socket:e})=>l(e,s.Fm.DEFAULT)},u={removeCompleted:c,divider:o.o,pause:d,resume:h},g={moduleData:{moduleId:n.KV.QUEUE},actions:u};var p=i(44054);const f=({itemData:e})=>e.status.id===r.S.COMPLETION_VALIDATION_ERROR,b=({itemData:e})=>0===e.time_finished,m=(e,t,i)=>e.post(`${r.A.BUNDLES_URL}/${t.id}/share`,{skip_validation:i}),x={id:"sources",displayName:"Manage sources...",icon:a.A.USER,filter:e=>e.itemData.sources.total>0&&b(e),handler:({itemData:e,navigate:t})=>{t(`sources/${e.id}`)}},v={id:"content",displayName:"Manage files...",icon:a.A.FILE,filter:({itemData:e})=>"directory"===e.type.id,handler:({itemData:e,navigate:t})=>{t(`content/${e.id}`)}},y={id:"search",displayName:"Search (foreground)",icon:a.A.SEARCH,handler:({itemData:e,location:t,navigate:i})=>(0,p.e)(e,t,i)},A={id:"searchAlternates",displayName:"Search for alternates",icon:a.A.SEARCH_ALTERNATES,filter:b,handler:({itemData:e,socket:t})=>t.post(`${r.A.BUNDLES_URL}/${e.id}/search`),notifications:{onSuccess:"The bundle {{item.name}} was searched for alternates"}},w={id:"remove",displayName:"Remove",access:s.US.QUEUE_EDIT,icon:a.A.REMOVE,confirmation:{content:"Are you sure that you want to remove the bundle {{item.name}}?",approveCaption:"Remove bundle",rejectCaption:"Don't remove",checkboxCaption:"Remove finished files"},handler:({itemData:e,socket:t},i)=>t.post(`${r.A.BUNDLES_URL}/${e.id}/remove`,{remove_finished:i})},k={id:"rescan",displayName:"Rescan for errors",access:s.US.QUEUE_EDIT,icon:a.A.REFRESH_COLORED,filter:f,handler:({itemData:e,socket:t})=>m(t,e,!1)},C={id:"forceShare",displayName:"Force in share",access:s.US.QUEUE_EDIT,icon:a.A.ERROR,filter:f,handler:({itemData:e,socket:t})=>m(t,e,!0)},S={sources:x,content:v,divider:null,search:y,searchAlternates:A,divider2:null,remove:w,divider3:null,rescan:k,forceShare:C},E={moduleId:n.KV.QUEUE,subId:"bundle"},D={moduleData:E,actions:S};i(32563);var B=i(89478);i(34395)},28329:(e,t,i)=>{"use strict";t.__esModule=!0,t.resizableProps=void 0;var r,a=(r=i(5556))&&r.__esModule?r:{default:r};i(55794);var s={axis:a.default.oneOf(["both","x","y","none"]),className:a.default.string,children:a.default.element.isRequired,draggableOpts:a.default.shape({allowAnyClick:a.default.bool,cancel:a.default.string,children:a.default.node,disabled:a.default.bool,enableUserSelectHack:a.default.bool,offsetParent:a.default.node,grid:a.default.arrayOf(a.default.number),handle:a.default.string,nodeRef:a.default.object,onStart:a.default.func,onDrag:a.default.func,onStop:a.default.func,onMouseDown:a.default.func,scale:a.default.number}),height:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r,s=t[0];return"both"===s.axis||"y"===s.axis?(r=a.default.number).isRequired.apply(r,t):a.default.number.apply(a.default,t)},handle:a.default.oneOfType([a.default.node,a.default.func]),handleSize:a.default.arrayOf(a.default.number),lockAspectRatio:a.default.bool,maxConstraints:a.default.arrayOf(a.default.number),minConstraints:a.default.arrayOf(a.default.number),onResizeStop:a.default.func,onResizeStart:a.default.func,onResize:a.default.func,resizeHandles:a.default.arrayOf(a.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:a.default.number,width:function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];var r,s=t[0];return"both"===s.axis||"x"===s.axis?(r=a.default.number).isRequired.apply(r,t):a.default.number.apply(a.default,t)}};t.resizableProps=s},30271:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(74848),a=(i(96540),i(83994)),s=i(4425);const n=(e,t)=>e?t?"yellow warning circle":e.managed?e.running?"green play":e.disabled?"grey check circle":"green check circle":"blue external square":null,o=({installedPackage:e,hasUpdate:t,size:i="huge"})=>(0,r.jsx)("div",{className:"ui image",children:(0,r.jsx)(a.A,{icon:s.A.EXTENSION,color:(null==e?void 0:e.disabled)?"grey":void 0,size:i,cornerIcon:n(e,t)})})},30291:(e,t,i)=>{"use strict";i.d(t,{A:()=>u});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s),o=i(4417),l=i.n(o),c=new URL(i(59224),i.b),d=n()(a()),h=l()(c);d.push([e.id,`.react-resizable {\n  position: relative;\n}\n.react-resizable-handle {\n  position: absolute;\n  width: 20px;\n  height: 20px;\n  background-repeat: no-repeat;\n  background-origin: content-box;\n  box-sizing: border-box;\n  background-image: url(${h});\n  background-position: bottom right;\n  padding: 0 3px 3px 0;\n}\n.react-resizable-handle-sw {\n  bottom: 0;\n  left: 0;\n  cursor: sw-resize;\n  transform: rotate(90deg);\n}\n.react-resizable-handle-se {\n  bottom: 0;\n  right: 0;\n  cursor: se-resize;\n}\n.react-resizable-handle-nw {\n  top: 0;\n  left: 0;\n  cursor: nw-resize;\n  transform: rotate(180deg);\n}\n.react-resizable-handle-ne {\n  top: 0;\n  right: 0;\n  cursor: ne-resize;\n  transform: rotate(270deg);\n}\n.react-resizable-handle-w,\n.react-resizable-handle-e {\n  top: 50%;\n  margin-top: -10px;\n  cursor: ew-resize;\n}\n.react-resizable-handle-w {\n  left: 0;\n  transform: rotate(135deg);\n}\n.react-resizable-handle-e {\n  right: 0;\n  transform: rotate(315deg);\n}\n.react-resizable-handle-n,\n.react-resizable-handle-s {\n  left: 50%;\n  margin-left: -10px;\n  cursor: ns-resize;\n}\n.react-resizable-handle-n {\n  top: 0;\n  transform: rotate(225deg);\n}\n.react-resizable-handle-s {\n  bottom: 0;\n  transform: rotate(45deg);\n}`,"",{version:3,sources:["webpack://./node_modules/react-resizable/css/styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;AACpB;AACA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;EACZ,4BAA4B;EAC5B,8BAA8B;EAC9B,sBAAsB;EACtB,yDAAuY;EACvY,iCAAiC;EACjC,oBAAoB;AACtB;AACA;EACE,SAAS;EACT,OAAO;EACP,iBAAiB;EACjB,wBAAwB;AAC1B;AACA;EACE,SAAS;EACT,QAAQ;EACR,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,OAAO;EACP,iBAAiB;EACjB,yBAAyB;AAC3B;AACA;EACE,MAAM;EACN,QAAQ;EACR,iBAAiB;EACjB,yBAAyB;AAC3B;AACA;;EAEE,QAAQ;EACR,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,OAAO;EACP,yBAAyB;AAC3B;AACA;EACE,QAAQ;EACR,yBAAyB;AAC3B;AACA;;EAEE,SAAS;EACT,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,yBAAyB;AAC3B;AACA;EACE,SAAS;EACT,wBAAwB;AAC1B",sourcesContent:[".react-resizable {\n  position: relative;\n}\n.react-resizable-handle {\n  position: absolute;\n  width: 20px;\n  height: 20px;\n  background-repeat: no-repeat;\n  background-origin: content-box;\n  box-sizing: border-box;\n  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+');\n  background-position: bottom right;\n  padding: 0 3px 3px 0;\n}\n.react-resizable-handle-sw {\n  bottom: 0;\n  left: 0;\n  cursor: sw-resize;\n  transform: rotate(90deg);\n}\n.react-resizable-handle-se {\n  bottom: 0;\n  right: 0;\n  cursor: se-resize;\n}\n.react-resizable-handle-nw {\n  top: 0;\n  left: 0;\n  cursor: nw-resize;\n  transform: rotate(180deg);\n}\n.react-resizable-handle-ne {\n  top: 0;\n  right: 0;\n  cursor: ne-resize;\n  transform: rotate(270deg);\n}\n.react-resizable-handle-w,\n.react-resizable-handle-e {\n  top: 50%;\n  margin-top: -10px;\n  cursor: ew-resize;\n}\n.react-resizable-handle-w {\n  left: 0;\n  transform: rotate(135deg);\n}\n.react-resizable-handle-e {\n  right: 0;\n  transform: rotate(315deg);\n}\n.react-resizable-handle-n,\n.react-resizable-handle-s {\n  left: 50%;\n  margin-left: -10px;\n  cursor: ns-resize;\n}\n.react-resizable-handle-n {\n  top: 0;\n  transform: rotate(225deg);\n}\n.react-resizable-handle-s {\n  bottom: 0;\n  transform: rotate(45deg);\n}"],sourceRoot:""}]);const u=d},30557:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,".notepad.widget .main.content {\n  display: flex;\n}\n\n.notepad.widget .main.content > div {\n  flex-direction: column;\n}\n\n.notepad.widget .main.content .notepad-container textarea {\n  height: 100vh;\n  display: block;\n  resize: none;\n}\n","",{version:3,sources:["webpack://./src/routes/Home/widgets/Notepad/style.css"],names:[],mappings:"AAAA;EACE,aAAa;AACf;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,aAAa;EACb,cAAc;EACd,YAAY;AACd",sourcesContent:[".notepad.widget .main.content {\n  display: flex;\n}\n\n.notepad.widget .main.content > div {\n  flex-direction: column;\n}\n\n.notepad.widget .main.content .notepad-container textarea {\n  height: 100vh;\n  display: block;\n  resize: none;\n}\n"],sourceRoot:""}]);const o=n},32563:(e,t,i)=>{"use strict";i.d(t,{mM:()=>l});var r=i(58059),a=i(4425),s=i(86038),n=i(67749);const o={remove:{id:"remove",displayName:"Remove source",access:s.US.QUEUE_EDIT,icon:a.A.REMOVE,handler:({itemData:e,entity:t,socket:i})=>i.delete(`${r.A.BUNDLES_URL}/${t.id}/sources/${e.user.cid}`)}},l={moduleData:{moduleId:n.KV.QUEUE,subId:"bundleSource"},actions:o}},33514:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.browserPrefixToKey=a,t.browserPrefixToStyle=function(e,t){return t?`-${t.toLowerCase()}-${e}`:e},t.default=void 0,t.getPrefix=r;const i=["Moz","Webkit","O","ms"];function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"transform";if("undefined"==typeof window)return"";const t=window.document?.documentElement?.style;if(!t)return"";if(e in t)return"";for(let r=0;r<i.length;r++)if(a(e,i[r])in t)return i[r];return""}function a(e,t){return t?`${t}${function(e){let t="",i=!0;for(let r=0;r<e.length;r++)i?(t+=e[r].toUpperCase(),i=!1):"-"===e[r]?i=!0:t+=e[r];return t}(e)}`:e}t.default=r()},34395:(e,t,i)=>{"use strict";i.d(t,{JN:()=>o});var r=i(58059),a=i(4425),s=i(86038),n=i(67749);const o={id:"removeSource",displayName:"Remove user from queue",access:s.US.QUEUE_EDIT,icon:a.A.REMOVE,handler:({itemData:e,socket:t})=>t.delete(`${r.A.SOURCES_URL}/${e.cid}`),notifications:{onSuccess:"The user {{user.nicks}} was removed from {{result.count}} files"}};n.KV.QUEUE},35001:(e,t,i)=>{"use strict";t.default=function(e){var t;return t=class extends r.Component{constructor(){super(...arguments),c(this,"state",{width:1280}),c(this,"elementRef",r.createRef()),c(this,"mounted",!1),c(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new s.default(e=>{if(this.elementRef.current instanceof HTMLElement){const t=e[0].contentRect.width;this.setState({width:t})}});const e=this.elementRef.current;e instanceof HTMLElement&&this.resizeObserver.observe(e)}componentWillUnmount(){this.mounted=!1;const e=this.elementRef.current;e instanceof HTMLElement&&this.resizeObserver.unobserve(e),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:t,...i}=this.props;return t&&!this.mounted?r.createElement("div",{className:(0,n.default)(this.props.className,d),style:this.props.style,ref:this.elementRef}):r.createElement(e,l({innerRef:this.elementRef},i,this.state))}},c(t,"defaultProps",{measureBeforeMount:!1}),c(t,"propTypes",{measureBeforeMount:a.default.bool}),t};var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var i,r,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t){if(i.has(e))return i.get(e);i.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(a,t,r):a[t]=e[t]);return a}(e)}(i(96540)),a=o(i(5556)),s=o(i(43591)),n=o(i(71508));function o(e){return e&&e.__esModule?e:{default:e}}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},l.apply(null,arguments)}function c(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const d="react-grid-layout"},35654:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,".transfers.widget .main.content > div {\n  flex-direction: row;\n}\n\n.transfers.widget .main.content .section-separator {\n  margin-top: 10px;\n}\n\n.transfers.widget .main.content .graph {\n  flex-grow: 100;\n  overflow: hidden;\n}\n\n.transfers.widget .main.content .stats {\n  margin-left: 10px;\n  margin-top: 0px;\n  flex: 0 0 auto;\n}\n","",{version:3,sources:["webpack://./src/routes/Home/widgets/Transfers/style.css"],names:[],mappings:"AAAA;EACE,mBAAmB;AACrB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,cAAc;EACd,gBAAgB;AAClB;;AAEA;EACE,iBAAiB;EACjB,eAAe;EACf,cAAc;AAChB",sourcesContent:[".transfers.widget .main.content > div {\n  flex-direction: row;\n}\n\n.transfers.widget .main.content .section-separator {\n  margin-top: 10px;\n}\n\n.transfers.widget .main.content .graph {\n  flex-grow: 100;\n  overflow: hidden;\n}\n\n.transfers.widget .main.content .stats {\n  margin-left: 10px;\n  margin-top: 0px;\n  flex: 0 0 auto;\n}\n"],sourceRoot:""}]);const o=n},38426:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bottom=l,t.childrenEqual=function(e,t){return(0,a.deepEqual)(s.default.Children.map(e,e=>e?.key),s.default.Children.map(t,e=>e?.key))&&(0,a.deepEqual)(s.default.Children.map(e,e=>e?.props["data-grid"]),s.default.Children.map(t,e=>e?.props["data-grid"]))},t.cloneLayout=c,t.cloneLayoutItem=h,t.collides=u,t.compact=g,t.compactItem=b,t.compactType=function(e){const{verticalCompact:t,compactType:i}=e||{};return!1===t?null:i},t.correctBounds=m,t.fastPositionEqual=function(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height},t.fastRGLPropsEqual=void 0,t.getAllCollisions=y,t.getFirstCollision=v,t.getLayoutItem=x,t.getStatics=A,t.modifyLayout=d,t.moveElement=w,t.moveElementAwayFromCollision=k,t.noop=void 0,t.perc=function(e){return 100*e+"%"},t.resizeItemInDirection=function(e,t,i,r){const a=M[e];return a?a(t,{...t,...i},r):i},t.setTopLeft=function(e){let{top:t,left:i,width:r,height:a}=e;return{top:`${t}px`,left:`${i}px`,width:`${r}px`,height:`${a}px`,position:"absolute"}},t.setTransform=function(e){let{top:t,left:i,width:r,height:a}=e;const s=`translate(${i}px,${t}px)`;return{transform:s,WebkitTransform:s,MozTransform:s,msTransform:s,OTransform:s,width:`${r}px`,height:`${a}px`,position:"absolute"}},t.sortLayoutItems=I,t.sortLayoutItemsByColRow=z,t.sortLayoutItemsByRowCol=R,t.synchronizeLayoutWithChildren=function(e,t,i,r,a){e=e||[];const o=[];s.default.Children.forEach(t,t=>{if(null==t?.key)return;const i=x(e,String(t.key)),r=t.props["data-grid"];i&&null==r?o.push(h(i)):r?(n||O([r],"ReactGridLayout.children"),o.push(h({...r,i:t.key}))):o.push(h({w:1,h:1,x:0,y:l(o),i:String(t.key)}))});const c=m(o,{cols:i});return a?c:g(c,r,i)},t.validateLayout=O,t.withLayoutItem=function(e,t,i){let r=x(e,t);return r?(r=i(h(r)),[e=d(e,r),r]):[e,null]};var r,a=i(51548),s=(r=i(96540))&&r.__esModule?r:{default:r};const n=!0,o=!1;function l(e){let t,i=0;for(let r=0,a=e.length;r<a;r++)t=e[r].y+e[r].h,t>i&&(i=t);return i}function c(e){const t=Array(e.length);for(let i=0,r=e.length;i<r;i++)t[i]=h(e[i]);return t}function d(e,t){const i=Array(e.length);for(let r=0,a=e.length;r<a;r++)t.i===e[r].i?i[r]=t:i[r]=e[r];return i}function h(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:Boolean(e.moved),static:Boolean(e.static),isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function u(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function g(e,t,i,r){const a=A(e),s=I(e,t),n=Array(e.length);for(let o=0,l=s.length;o<l;o++){let l=h(s[o]);l.static||(l=b(a,l,t,i,s,r),a.push(l)),n[e.indexOf(s[o])]=l,l.moved=!1}return n}t.fastRGLPropsEqual=i(72590);const p={x:"w",y:"h"};function f(e,t,i,r){const a=p[r];t[r]+=1;for(let s=e.map(e=>e.i).indexOf(t.i)+1;s<e.length;s++){const n=e[s];if(!n.static){if(n.y>t.y+t.h)break;u(t,n)&&f(e,n,i+t[a],r)}}t[r]=i}function b(e,t,i,r,a,s){const n="horizontal"===i;if("vertical"===i)for(t.y=Math.min(l(e),t.y);t.y>0&&!v(e,t);)t.y--;else if(n)for(;t.x>0&&!v(e,t);)t.x--;let o;for(;(o=v(e,t))&&(null!==i||!s);)if(n?f(a,t,o.x+o.w,"x"):f(a,t,o.y+o.h,"y"),n&&t.x+t.w>r)for(t.x=r-t.w,t.y++;t.x>0&&!v(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function m(e,t){const i=A(e);for(let r=0,a=e.length;r<a;r++){const a=e[r];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),a.static)for(;v(i,a);)a.y++;else i.push(a)}return e}function x(e,t){for(let i=0,r=e.length;i<r;i++)if(e[i].i===t)return e[i]}function v(e,t){for(let i=0,r=e.length;i<r;i++)if(u(e[i],t))return e[i]}function y(e,t){return e.filter(e=>u(e,t))}function A(e){return e.filter(e=>e.static)}function w(e,t,i,r,a,s,n,o,l){if(t.static&&!0!==t.isDraggable)return e;if(t.y===r&&t.x===i)return e;N(`Moving element ${t.i} to [${String(i)},${String(r)}] from [${t.x},${t.y}]`);const d=t.x,h=t.y;"number"==typeof i&&(t.x=i),"number"==typeof r&&(t.y=r),t.moved=!0;let u=I(e,n);("vertical"===n&&"number"==typeof r?h>=r:"horizontal"===n&&"number"==typeof i&&d>=i)&&(u=u.reverse());const g=y(u,t),p=g.length>0;if(p&&l)return c(e);if(p&&s)return N(`Collision prevented on ${t.i}, reverting.`),t.x=d,t.y=h,t.moved=!1,e;for(let i=0,r=g.length;i<r;i++){const r=g[i];N(`Resolving collision between ${t.i} at [${t.x},${t.y}] and ${r.i} at [${r.x},${r.y}]`),r.moved||(e=r.static?k(e,r,t,a,n,o):k(e,t,r,a,n,o))}return e}function k(e,t,i,r,a,s){const n="horizontal"===a,o="vertical"===a,l=t.static;if(r){r=!1;const c={x:n?Math.max(t.x-i.w,0):i.x,y:o?Math.max(t.y-i.h,0):i.y,w:i.w,h:i.h,i:"-1"},d=v(e,c),h=d&&d.y+d.h>t.y,u=d&&t.x+t.w>d.x;if(!d)return N(`Doing reverse collision on ${i.i} up to [${c.x},${c.y}].`),w(e,i,n?c.x:void 0,o?c.y:void 0,r,l,a,s);if(h&&o)return w(e,i,void 0,t.y+1,r,l,a,s);if(h&&null==a)return t.y=i.y,i.y=i.y+i.h,e;if(u&&n)return w(e,t,i.x,void 0,r,l,a,s)}const c=n?i.x+1:void 0,d=o?i.y+1:void 0;return null==c&&null==d?e:w(e,i,n?i.x+1:void 0,o?i.y+1:void 0,r,l,a,s)}const C=(e,t,i,r)=>e+i>r?t:i,S=(e,t,i)=>e<0?t:i,E=e=>Math.max(0,e),D=e=>Math.max(0,e),B=(e,t,i)=>{let{left:r,height:a,width:s}=t;const n=e.top-(a-e.height);return{left:r,width:s,height:S(n,e.height,a),top:D(n)}},L=(e,t,i)=>{let{top:r,left:a,height:s,width:n}=t;return{top:r,height:s,width:C(e.left,e.width,n,i),left:E(a)}},T=(e,t,i)=>{let{top:r,height:a,width:s}=t;const n=e.left-(s-e.width);return{height:a,width:n<0?e.width:C(e.left,e.width,s,i),top:D(r),left:E(n)}},P=(e,t,i)=>{let{top:r,left:a,height:s,width:n}=t;return{width:n,left:a,height:S(r,e.height,s),top:D(r)}},M={n:B,ne:function(){return B(arguments.length<=0?void 0:arguments[0],L(...arguments))},e:L,se:function(){return P(arguments.length<=0?void 0:arguments[0],L(...arguments))},s:P,sw:function(){return P(arguments.length<=0?void 0:arguments[0],T(...arguments))},w:T,nw:function(){return B(arguments.length<=0?void 0:arguments[0],T(...arguments))}};function I(e,t){return"horizontal"===t?z(e):"vertical"===t?R(e):e}function R(e){return e.slice(0).sort(function(e,t){return e.y>t.y||e.y===t.y&&e.x>t.x?1:e.y===t.y&&e.x===t.x?0:-1})}function z(e){return e.slice(0).sort(function(e,t){return e.x>t.x||e.x===t.x&&e.y>t.y?1:-1})}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"Layout";const i=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let r=0,a=e.length;r<a;r++){const a=e[r];for(let e=0;e<i.length;e++){const s=i[e],n=a[s];if("number"!=typeof n||Number.isNaN(n))throw new Error(`ReactGridLayout: ${t}[${r}].${s} must be a number! Received: ${n} (${typeof n})`)}if(void 0!==a.i&&"string"!=typeof a.i)throw new Error(`ReactGridLayout: ${t}[${r}].i must be a string! Received: ${a.i} (${typeof a.i})`)}}function N(){o&&console.log(...arguments)}t.noop=()=>{}},43591:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>k});var r=function(){if("undefined"!=typeof Map)return Map;function e(e,t){var i=-1;return e.some(function(e,r){return e[0]===t&&(i=r,!0)}),i}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var i=e(this.__entries__,t),r=this.__entries__[i];return r&&r[1]},t.prototype.set=function(t,i){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=i:this.__entries__.push([t,i])},t.prototype.delete=function(t){var i=this.__entries__,r=e(i,t);~r&&i.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var i=0,r=this.__entries__;i<r.length;i++){var a=r[i];e.call(t,a[1],a[0])}},t}()}(),a="undefined"!=typeof window&&"undefined"!=typeof document&&window.document===document,s=void 0!==i.g&&i.g.Math===Math?i.g:"undefined"!=typeof self&&self.Math===Math?self:"undefined"!=typeof window&&window.Math===Math?window:Function("return this")(),n="function"==typeof requestAnimationFrame?requestAnimationFrame.bind(s):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)},o=["top","right","bottom","left","width","height","size","weight"],l="undefined"!=typeof MutationObserver,c=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=function(e){var t=!1,i=!1,r=0;function a(){t&&(t=!1,e()),i&&o()}function s(){n(a)}function o(){var e=Date.now();if(t){if(e-r<2)return;i=!0}else t=!0,i=!1,setTimeout(s,20);r=e}return o}(this.refresh.bind(this))}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,i=t.indexOf(e);~i&&t.splice(i,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){this.updateObservers_()&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter(function(e){return e.gatherActive(),e.hasActive()});return e.forEach(function(e){return e.broadcastActive()}),e.length>0},e.prototype.connect_=function(){a&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),l?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){a&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,i=void 0===t?"":t;o.some(function(e){return!!~i.indexOf(e)})&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),d=function(e,t){for(var i=0,r=Object.keys(t);i<r.length;i++){var a=r[i];Object.defineProperty(e,a,{value:t[a],enumerable:!1,writable:!1,configurable:!0})}return e},h=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||s},u=m(0,0,0,0);function g(e){return parseFloat(e)||0}function p(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return t.reduce(function(t,i){return t+g(e["border-"+i+"-width"])},0)}var f="undefined"!=typeof SVGGraphicsElement?function(e){return e instanceof h(e).SVGGraphicsElement}:function(e){return e instanceof h(e).SVGElement&&"function"==typeof e.getBBox};function b(e){return a?f(e)?function(e){var t=e.getBBox();return m(0,0,t.width,t.height)}(e):function(e){var t=e.clientWidth,i=e.clientHeight;if(!t&&!i)return u;var r=h(e).getComputedStyle(e),a=function(e){for(var t={},i=0,r=["top","right","bottom","left"];i<r.length;i++){var a=r[i],s=e["padding-"+a];t[a]=g(s)}return t}(r),s=a.left+a.right,n=a.top+a.bottom,o=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(o+s)!==t&&(o-=p(r,"left","right")+s),Math.round(l+n)!==i&&(l-=p(r,"top","bottom")+n)),!function(e){return e===h(e).document.documentElement}(e)){var c=Math.round(o+s)-t,d=Math.round(l+n)-i;1!==Math.abs(c)&&(o-=c),1!==Math.abs(d)&&(l-=d)}return m(a.left,a.top,o,l)}(e):u}function m(e,t,i,r){return{x:e,y:t,width:i,height:r}}var x=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=m(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=b(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),v=function(e,t){var i,r,a,s,n,o,l,c=(r=(i=t).x,a=i.y,s=i.width,n=i.height,o="undefined"!=typeof DOMRectReadOnly?DOMRectReadOnly:Object,l=Object.create(o.prototype),d(l,{x:r,y:a,width:s,height:n,top:a,right:r+s,bottom:n+a,left:r}),l);d(this,{target:e,contentRect:c})},y=function(){function e(e,t,i){if(this.activeObservations_=[],this.observations_=new r,"function"!=typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=i}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new x(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!=typeof Element&&Element instanceof Object){if(!(e instanceof h(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(e){return new v(e.target,e.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),A="undefined"!=typeof WeakMap?new WeakMap:new r,w=function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=c.getInstance(),r=new y(t,i,this);A.set(this,r)};["observe","unobserve","disconnect"].forEach(function(e){w.prototype[e]=function(){var t;return(t=A.get(this))[e].apply(t,arguments)}});const k=void 0!==s.ResizeObserver?s.ResizeObserver:w},50051:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,'.react-grid-layout {\n  position: relative;\n  transition: height 200ms ease;\n}\n.react-grid-item {\n  transition: all 200ms ease;\n  transition-property: left, top, width, height;\n}\n.react-grid-item img {\n  pointer-events: none;\n  user-select: none;\n}\n.react-grid-item.cssTransforms {\n  transition-property: transform, width, height;\n}\n.react-grid-item.resizing {\n  transition: none;\n  z-index: 1;\n  will-change: width, height;\n}\n\n.react-grid-item.react-draggable-dragging {\n  transition: none;\n  z-index: 3;\n  will-change: transform;\n}\n\n.react-grid-item.dropping {\n  visibility: hidden;\n}\n\n.react-grid-item.react-grid-placeholder {\n  background: red;\n  opacity: 0.2;\n  transition-duration: 100ms;\n  z-index: 2;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  -o-user-select: none;\n  user-select: none;\n}\n\n.react-grid-item.react-grid-placeholder.placeholder-resizing {\n  transition: none;\n}\n\n.react-grid-item > .react-resizable-handle {\n  position: absolute;\n  width: 20px;\n  height: 20px;\n}\n\n.react-grid-item > .react-resizable-handle::after {\n  content: "";\n  position: absolute;\n  right: 3px;\n  bottom: 3px;\n  width: 5px;\n  height: 5px;\n  border-right: 2px solid rgba(0, 0, 0, 0.4);\n  border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n}\n\n.react-resizable-hide > .react-resizable-handle {\n  display: none;\n}\n\n.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {\n  bottom: 0;\n  left: 0;\n  cursor: sw-resize;\n  transform: rotate(90deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-se {\n  bottom: 0;\n  right: 0;\n  cursor: se-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {\n  top: 0;\n  left: 0;\n  cursor: nw-resize;\n  transform: rotate(180deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {\n  top: 0;\n  right: 0;\n  cursor: ne-resize;\n  transform: rotate(270deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n  top: 50%;\n  margin-top: -10px;\n  cursor: ew-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w {\n  left: 0;\n  transform: rotate(135deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n  right: 0;\n  transform: rotate(315deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n  left: 50%;\n  margin-left: -10px;\n  cursor: ns-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n {\n  top: 0;\n  transform: rotate(225deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n  bottom: 0;\n  transform: rotate(45deg);\n}\n',"",{version:3,sources:["webpack://./node_modules/react-grid-layout/css/styles.css"],names:[],mappings:"AAAA;EACE,kBAAkB;EAClB,6BAA6B;AAC/B;AACA;EACE,0BAA0B;EAC1B,6CAA6C;AAC/C;AACA;EACE,oBAAoB;EACpB,iBAAiB;AACnB;AACA;EACE,6CAA6C;AAC/C;AACA;EACE,gBAAgB;EAChB,UAAU;EACV,0BAA0B;AAC5B;;AAEA;EACE,gBAAgB;EAChB,UAAU;EACV,sBAAsB;AACxB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,eAAe;EACf,YAAY;EACZ,0BAA0B;EAC1B,UAAU;EACV,yBAAyB;EACzB,sBAAsB;EACtB,qBAAqB;EACrB,oBAAoB;EACpB,iBAAiB;AACnB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,kBAAkB;EAClB,WAAW;EACX,YAAY;AACd;;AAEA;EACE,WAAW;EACX,kBAAkB;EAClB,UAAU;EACV,WAAW;EACX,UAAU;EACV,WAAW;EACX,0CAA0C;EAC1C,2CAA2C;AAC7C;;AAEA;EACE,aAAa;AACf;;AAEA;EACE,SAAS;EACT,OAAO;EACP,iBAAiB;EACjB,wBAAwB;AAC1B;AACA;EACE,SAAS;EACT,QAAQ;EACR,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,OAAO;EACP,iBAAiB;EACjB,yBAAyB;AAC3B;AACA;EACE,MAAM;EACN,QAAQ;EACR,iBAAiB;EACjB,yBAAyB;AAC3B;AACA;;EAEE,QAAQ;EACR,iBAAiB;EACjB,iBAAiB;AACnB;AACA;EACE,OAAO;EACP,yBAAyB;AAC3B;AACA;EACE,QAAQ;EACR,yBAAyB;AAC3B;AACA;;EAEE,SAAS;EACT,kBAAkB;EAClB,iBAAiB;AACnB;AACA;EACE,MAAM;EACN,yBAAyB;AAC3B;AACA;EACE,SAAS;EACT,wBAAwB;AAC1B",sourcesContent:['.react-grid-layout {\n  position: relative;\n  transition: height 200ms ease;\n}\n.react-grid-item {\n  transition: all 200ms ease;\n  transition-property: left, top, width, height;\n}\n.react-grid-item img {\n  pointer-events: none;\n  user-select: none;\n}\n.react-grid-item.cssTransforms {\n  transition-property: transform, width, height;\n}\n.react-grid-item.resizing {\n  transition: none;\n  z-index: 1;\n  will-change: width, height;\n}\n\n.react-grid-item.react-draggable-dragging {\n  transition: none;\n  z-index: 3;\n  will-change: transform;\n}\n\n.react-grid-item.dropping {\n  visibility: hidden;\n}\n\n.react-grid-item.react-grid-placeholder {\n  background: red;\n  opacity: 0.2;\n  transition-duration: 100ms;\n  z-index: 2;\n  -webkit-user-select: none;\n  -moz-user-select: none;\n  -ms-user-select: none;\n  -o-user-select: none;\n  user-select: none;\n}\n\n.react-grid-item.react-grid-placeholder.placeholder-resizing {\n  transition: none;\n}\n\n.react-grid-item > .react-resizable-handle {\n  position: absolute;\n  width: 20px;\n  height: 20px;\n}\n\n.react-grid-item > .react-resizable-handle::after {\n  content: "";\n  position: absolute;\n  right: 3px;\n  bottom: 3px;\n  width: 5px;\n  height: 5px;\n  border-right: 2px solid rgba(0, 0, 0, 0.4);\n  border-bottom: 2px solid rgba(0, 0, 0, 0.4);\n}\n\n.react-resizable-hide > .react-resizable-handle {\n  display: none;\n}\n\n.react-grid-item > .react-resizable-handle.react-resizable-handle-sw {\n  bottom: 0;\n  left: 0;\n  cursor: sw-resize;\n  transform: rotate(90deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-se {\n  bottom: 0;\n  right: 0;\n  cursor: se-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-nw {\n  top: 0;\n  left: 0;\n  cursor: nw-resize;\n  transform: rotate(180deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-ne {\n  top: 0;\n  right: 0;\n  cursor: ne-resize;\n  transform: rotate(270deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n  top: 50%;\n  margin-top: -10px;\n  cursor: ew-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-w {\n  left: 0;\n  transform: rotate(135deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-e {\n  right: 0;\n  transform: rotate(315deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n,\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n  left: 50%;\n  margin-left: -10px;\n  cursor: ns-resize;\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-n {\n  top: 0;\n  transform: rotate(225deg);\n}\n.react-grid-item > .react-resizable-handle.react-resizable-handle-s {\n  bottom: 0;\n  transform: rotate(45deg);\n}\n'],sourceRoot:""}]);const o=n},51548:function(e,t){!function(e){"use strict";function t(e){return function(t,i,r,a,s,n,o){return e(t,i,o)}}function i(e){return function(t,i,r,a){if(!t||!i||"object"!=typeof t||"object"!=typeof i)return e(t,i,r,a);var s=a.get(t),n=a.get(i);if(s&&n)return s===i&&n===t;a.set(t,i),a.set(i,t);var o=e(t,i,r,a);return a.delete(t),a.delete(i),o}}function r(e,t){var i={};for(var r in e)i[r]=e[r];for(var r in t)i[r]=t[r];return i}function a(e){return e.constructor===Object||null==e.constructor}function s(e){return"function"==typeof e.then}function n(e,t){return e===t||e!=e&&t!=t}var o=Object.prototype.toString;function l(e){var t=e.areArraysEqual,i=e.areDatesEqual,r=e.areMapsEqual,l=e.areObjectsEqual,c=e.areRegExpsEqual,d=e.areSetsEqual,h=(0,e.createIsNestedEqual)(u);function u(e,u,g){if(e===u)return!0;if(!e||!u||"object"!=typeof e||"object"!=typeof u)return e!=e&&u!=u;if(a(e)&&a(u))return l(e,u,h,g);var p=Array.isArray(e),f=Array.isArray(u);if(p||f)return p===f&&t(e,u,h,g);var b=o.call(e);return b===o.call(u)&&("[object Date]"===b?i(e,u,h,g):"[object RegExp]"===b?c(e,u,h,g):"[object Map]"===b?r(e,u,h,g):"[object Set]"===b?d(e,u,h,g):"[object Object]"===b||"[object Arguments]"===b?!s(e)&&!s(u)&&l(e,u,h,g):("[object Boolean]"===b||"[object Number]"===b||"[object String]"===b)&&n(e.valueOf(),u.valueOf()))}return u}function c(e,t,i,r){var a=e.length;if(t.length!==a)return!1;for(;a-- >0;)if(!i(e[a],t[a],a,a,e,t,r))return!1;return!0}var d=i(c);function h(e,t){return n(e.valueOf(),t.valueOf())}function u(e,t,i,r){var a=e.size===t.size;if(!a)return!1;if(!e.size)return!0;var s={},n=0;return e.forEach(function(o,l){if(a){var c=!1,d=0;t.forEach(function(a,h){c||s[d]||!(c=i(l,h,n,d,e,t,r)&&i(o,a,l,h,e,t,r))||(s[d]=!0),d++}),n++,a=c}}),a}var g=i(u),p=Object.prototype.hasOwnProperty;function f(e,t,i,r){var a,s=Object.keys(e),n=s.length;if(Object.keys(t).length!==n)return!1;for(;n-- >0;){if("_owner"===(a=s[n])){var o=!!e.$$typeof,l=!!t.$$typeof;if((o||l)&&o!==l)return!1}if(!p.call(t,a)||!i(e[a],t[a],a,a,e,t,r))return!1}return!0}var b=i(f);function m(e,t){return e.source===t.source&&e.flags===t.flags}function x(e,t,i,r){var a=e.size===t.size;if(!a)return!1;if(!e.size)return!0;var s={};return e.forEach(function(n,o){if(a){var l=!1,c=0;t.forEach(function(a,d){l||s[c]||!(l=i(n,a,o,d,e,t,r))||(s[c]=!0),c++}),a=l}}),a}var v=i(x),y=Object.freeze({areArraysEqual:c,areDatesEqual:h,areMapsEqual:u,areObjectsEqual:f,areRegExpsEqual:m,areSetsEqual:x,createIsNestedEqual:t}),A=Object.freeze({areArraysEqual:d,areDatesEqual:h,areMapsEqual:g,areObjectsEqual:b,areRegExpsEqual:m,areSetsEqual:v,createIsNestedEqual:t}),w=l(y);var k=l(r(y,{createIsNestedEqual:function(){return n}}));var C=l(A);var S=l(r(A,{createIsNestedEqual:function(){return n}}));e.circularDeepEqual=function(e,t){return C(e,t,new WeakMap)},e.circularShallowEqual=function(e,t){return S(e,t,new WeakMap)},e.createCustomCircularEqual=function(e){var t=l(r(A,e(A)));return function(e,i,r){return void 0===r&&(r=new WeakMap),t(e,i,r)}},e.createCustomEqual=function(e){return l(r(y,e(y)))},e.deepEqual=function(e,t){return w(e,t,void 0)},e.sameValueZeroEqual=n,e.shallowEqual=function(e,t){return k(e,t,void 0)},Object.defineProperty(e,"__esModule",{value:!0})}(t)},52786:(e,t,i)=>{"use strict";i.d(t,{$C:()=>g,O6:()=>u,u2:()=>l});var r=i(76865),a=i(4425),s=i(67749);const n=e=>({itemData:t})=>t.id!==e.user.username,o=({itemData:e,socket:t})=>t.delete(`${r.A.USERS_URL}/${e.id}`),l={id:"create",displayName:"Add user",icon:a.A.CREATE,handler:({navigate:e})=>{e("users")}},c={id:"edit",displayName:"Edit user",icon:a.A.EDIT,handler:({itemData:e,navigate:t})=>{t(`users/${e.id}`)}},d=e=>({id:"remove",displayName:"Remove user",filter:n(e),icon:a.A.REMOVE,confirmation:{content:"Are you sure that you want to remove the user {{item.username}}?",approveCaption:"Remove user",rejectCaption:"Don't remove"},handler:o}),h=e=>({edit:c,remove:d(e)}),u={moduleId:s.KV.SETTINGS,subId:"webUser"},g=e=>({moduleData:u,actions:h(e)})},53632:(e,t,i)=>{"use strict";i.d(t,{A:()=>s});var r=i(74848),a=i(96540);function s(e,t=60){class i extends a.Component{constructor(){super(...arguments),this.scheduleComponentRefresh=()=>{this.redrawTimeout=window.setTimeout(()=>{this.forceUpdate(),this.scheduleComponentRefresh()},1e3*t)}}componentDidMount(){this.scheduleComponentRefresh()}componentWillUnmount(){clearTimeout(this.redrawTimeout)}render(){return(0,r.jsx)(e,Object.assign({},this.props))}}return i}},54750:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,".rss.widget .main.content {\n  display: flex;\n  flex-direction: column;\n}\n\n.rss.widget .main.content > div {\n  flex-direction: column;\n}\n\n.rss.widget .divided.list {\n  overflow-y: auto;\n  overflow-x: hidden;\n  flex: 1;\n}\n\n.rss.widget .divided.list .item {\n  flex-shrink: 0;\n}\n\n.rss.widget .divided.list .item .description {\n  margin-left: 20px;\n}\n","",{version:3,sources:["webpack://./src/routes/Home/widgets/RSS/style.css"],names:[],mappings:"AAAA;EACE,aAAa;EACb,sBAAsB;AACxB;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,gBAAgB;EAChB,kBAAkB;EAClB,OAAO;AACT;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,iBAAiB;AACnB",sourcesContent:[".rss.widget .main.content {\n  display: flex;\n  flex-direction: column;\n}\n\n.rss.widget .main.content > div {\n  flex-direction: column;\n}\n\n.rss.widget .divided.list {\n  overflow-y: auto;\n  overflow-x: hidden;\n  flex: 1;\n}\n\n.rss.widget .divided.list .item {\n  flex-shrink: 0;\n}\n\n.rss.widget .divided.list .item .description {\n  margin-left: 20px;\n}\n"],sourceRoot:""}]);const o=n},55794:(e,t,i)=>{"use strict";const{default:r,DraggableCore:a}=i(86027);e.exports=r,e.exports.default=r,e.exports.DraggableCore=a},59224:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2IDYiIHN0eWxlPSJiYWNrZ3JvdW5kLWNvbG9yOiNmZmZmZmYwMCIgeD0iMHB4IiB5PSIwcHgiIHdpZHRoPSI2cHgiIGhlaWdodD0iNnB4Ij48ZyBvcGFjaXR5PSIwLjMwMiI+PHBhdGggZD0iTSA2IDYgTCAwIDYgTCAwIDQuMiBMIDQgNC4yIEwgNC4yIDQuMiBMIDQuMiAwIEwgNiAwIEwgNiA2IEwgNiA2IFoiIGZpbGw9IiMwMDAwMDAiLz48L2c+PC9zdmc+"},59742:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var i,r,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t){if(i.has(e))return i.get(e);i.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(a,t,r):a[t]=e[t]);return a}(e)}(i(96540)),a=i(51548),s=d(i(71508)),n=i(38426),o=i(82134),l=d(i(26392)),c=d(i(80634));function d(e){return e&&e.__esModule?e:{default:e}}function h(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const u="react-grid-layout";let g=!1;try{g=/firefox/i.test(navigator.userAgent)}catch(e){}class p extends r.Component{constructor(){super(...arguments),h(this,"state",{activeDrag:null,layout:(0,n.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,n.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),h(this,"dragEnterCounter",0),h(this,"onDragStart",(e,t,i,r)=>{let{e:a,node:s}=r;const{layout:o}=this.state,l=(0,n.getLayoutItem)(o,e);if(!l)return;const c={w:l.w,h:l.h,x:l.x,y:l.y,placeholder:!0,i:e};return this.setState({oldDragItem:(0,n.cloneLayoutItem)(l),oldLayout:o,activeDrag:c}),this.props.onDragStart(o,l,l,null,a,s)}),h(this,"onDrag",(e,t,i,r)=>{let{e:a,node:s}=r;const{oldDragItem:o}=this.state;let{layout:l}=this.state;const{cols:c,allowOverlap:d,preventCollision:h}=this.props,u=(0,n.getLayoutItem)(l,e);if(!u)return;const g={w:u.w,h:u.h,x:u.x,y:u.y,placeholder:!0,i:e};l=(0,n.moveElement)(l,u,t,i,!0,h,(0,n.compactType)(this.props),c,d),this.props.onDrag(l,o,u,g,a,s),this.setState({layout:d?l:(0,n.compact)(l,(0,n.compactType)(this.props),c),activeDrag:g})}),h(this,"onDragStop",(e,t,i,r)=>{let{e:a,node:s}=r;if(!this.state.activeDrag)return;const{oldDragItem:o}=this.state;let{layout:l}=this.state;const{cols:c,preventCollision:d,allowOverlap:h}=this.props,u=(0,n.getLayoutItem)(l,e);if(!u)return;l=(0,n.moveElement)(l,u,t,i,!0,d,(0,n.compactType)(this.props),c,h);const g=h?l:(0,n.compact)(l,(0,n.compactType)(this.props),c);this.props.onDragStop(g,o,u,null,a,s);const{oldLayout:p}=this.state;this.setState({activeDrag:null,layout:g,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(g,p)}),h(this,"onResizeStart",(e,t,i,r)=>{let{e:a,node:s}=r;const{layout:o}=this.state,l=(0,n.getLayoutItem)(o,e);l&&(this.setState({oldResizeItem:(0,n.cloneLayoutItem)(l),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(o,l,l,null,a,s))}),h(this,"onResize",(e,t,i,r)=>{let{e:a,node:s,size:o,handle:l}=r;const{oldResizeItem:c}=this.state,{layout:d}=this.state,{cols:h,preventCollision:u,allowOverlap:g}=this.props;let p,f,b,m=!1;const[x,v]=(0,n.withLayoutItem)(d,e,e=>{let r;return f=e.x,b=e.y,-1!==["sw","w","nw","n","ne"].indexOf(l)&&(-1!==["sw","nw","w"].indexOf(l)&&(f=e.x+(e.w-t),t=e.x!==f&&f<0?e.w:t,f=f<0?0:f),-1!==["ne","n","nw"].indexOf(l)&&(b=e.y+(e.h-i),i=e.y!==b&&b<0?e.h:i,b=b<0?0:b),m=!0),u&&!g&&(r=(0,n.getAllCollisions)(d,{...e,w:t,h:i,x:f,y:b}).filter(t=>t.i!==e.i).length>0,r&&(b=e.y,i=e.h,f=e.x,t=e.w,m=!1)),e.w=t,e.h=i,e});if(!v)return;if(p=x,m){const e=!0;p=(0,n.moveElement)(x,v,f,b,e,this.props.preventCollision,(0,n.compactType)(this.props),h,g)}const y={w:v.w,h:v.h,x:v.x,y:v.y,static:!0,i:e};this.props.onResize(p,c,v,y,a,s),this.setState({layout:g?p:(0,n.compact)(p,(0,n.compactType)(this.props),h),activeDrag:y})}),h(this,"onResizeStop",(e,t,i,r)=>{let{e:a,node:s}=r;const{layout:o,oldResizeItem:l}=this.state,{cols:c,allowOverlap:d}=this.props,h=(0,n.getLayoutItem)(o,e),u=d?o:(0,n.compact)(o,(0,n.compactType)(this.props),c);this.props.onResizeStop(u,l,h,null,a,s);const{oldLayout:g}=this.state;this.setState({activeDrag:null,layout:u,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(u,g)}),h(this,"onDragOver",e=>{if(e.preventDefault(),e.stopPropagation(),g&&!e.nativeEvent.target?.classList.contains(u))return!1;const{droppingItem:t,onDropDragOver:i,margin:a,cols:s,rowHeight:n,maxRows:l,width:c,containerPadding:d,transformScale:h}=this.props,p=i?.(e);if(!1===p)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const f={...t,...p},{layout:b}=this.state,m=e.currentTarget.getBoundingClientRect(),x=e.clientX-m.left,v=e.clientY-m.top,y={left:x/h,top:v/h,e};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:e,top:t}=this.state.droppingPosition;(e!=x||t!=v)&&this.setState({droppingPosition:y})}}else{const e={cols:s,margin:a,maxRows:l,rowHeight:n,containerWidth:c,containerPadding:d||a},t=(0,o.calcXY)(e,v,x,f.w,f.h);this.setState({droppingDOMNode:r.createElement("div",{key:f.i}),droppingPosition:y,layout:[...b,{...f,x:t.x,y:t.y,static:!1,isDraggable:!0}]})}}),h(this,"removeDroppingPlaceholder",()=>{const{droppingItem:e,cols:t}=this.props,{layout:i}=this.state,r=(0,n.compact)(i.filter(t=>t.i!==e.i),(0,n.compactType)(this.props),t,this.props.allowOverlap);this.setState({layout:r,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),h(this,"onDragLeave",e=>{e.preventDefault(),e.stopPropagation(),this.dragEnterCounter--,0===this.dragEnterCounter&&this.removeDroppingPlaceholder()}),h(this,"onDragEnter",e=>{e.preventDefault(),e.stopPropagation(),this.dragEnterCounter++}),h(this,"onDrop",e=>{e.preventDefault(),e.stopPropagation();const{droppingItem:t}=this.props,{layout:i}=this.state,r=i.find(e=>e.i===t.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(i,r,e)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(e,t){let i;return t.activeDrag?null:((0,a.deepEqual)(e.layout,t.propsLayout)&&e.compactType===t.compactType?(0,n.childrenEqual)(e.children,t.children)||(i=t.layout):i=e.layout,i?{layout:(0,n.synchronizeLayoutWithChildren)(i,e.children,e.cols,(0,n.compactType)(e),e.allowOverlap),compactType:e.compactType,children:e.children,propsLayout:e.layout}:null)}shouldComponentUpdate(e,t){return this.props.children!==e.children||!(0,n.fastRGLPropsEqual)(this.props,e,a.deepEqual)||this.state.activeDrag!==t.activeDrag||this.state.mounted!==t.mounted||this.state.droppingPosition!==t.droppingPosition}componentDidUpdate(e,t){if(!this.state.activeDrag){const e=this.state.layout,i=t.layout;this.onLayoutMaybeChanged(e,i)}}containerHeight(){if(!this.props.autoSize)return;const e=(0,n.bottom)(this.state.layout),t=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return e*this.props.rowHeight+(e-1)*this.props.margin[1]+2*t+"px"}onLayoutMaybeChanged(e,t){t||(t=this.state.layout),(0,a.deepEqual)(t,e)||this.props.onLayoutChange(e)}placeholder(){const{activeDrag:e}=this.state;if(!e)return null;const{width:t,cols:i,margin:a,containerPadding:s,rowHeight:n,maxRows:o,useCSSTransforms:c,transformScale:d}=this.props;return r.createElement(l.default,{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,className:"react-grid-placeholder "+(this.state.resizing?"placeholder-resizing":""),containerWidth:t,cols:i,margin:a,containerPadding:s||a,maxRows:o,rowHeight:n,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:c,transformScale:d},r.createElement("div",null))}processGridItem(e,t){if(!e||!e.key)return;const i=(0,n.getLayoutItem)(this.state.layout,String(e.key));if(!i)return null;const{width:a,cols:s,margin:o,containerPadding:c,rowHeight:d,maxRows:h,isDraggable:u,isResizable:g,isBounded:p,useCSSTransforms:f,transformScale:b,draggableCancel:m,draggableHandle:x,resizeHandles:v,resizeHandle:y}=this.props,{mounted:A,droppingPosition:w}=this.state,k="boolean"==typeof i.isDraggable?i.isDraggable:!i.static&&u,C="boolean"==typeof i.isResizable?i.isResizable:!i.static&&g,S=i.resizeHandles||v,E=k&&p&&!1!==i.isBounded;return r.createElement(l.default,{containerWidth:a,cols:s,margin:o,containerPadding:c||o,maxRows:h,rowHeight:d,cancel:m,handle:x,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:k,isResizable:C,isBounded:E,useCSSTransforms:f&&A,usePercentages:!A,transformScale:b,w:i.w,h:i.h,x:i.x,y:i.y,i:i.i,minH:i.minH,minW:i.minW,maxH:i.maxH,maxW:i.maxW,static:i.static,droppingPosition:t?w:void 0,resizeHandles:S,resizeHandle:y},e)}render(){const{className:e,style:t,isDroppable:i,innerRef:a}=this.props,o=(0,s.default)(u,e),l={height:this.containerHeight(),...t};return r.createElement("div",{ref:a,className:o,style:l,onDrop:i?this.onDrop:n.noop,onDragLeave:i?this.onDragLeave:n.noop,onDragEnter:i?this.onDragEnter:n.noop,onDragOver:i?this.onDragOver:n.noop},r.Children.map(this.props.children,e=>this.processGridItem(e)),i&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}t.default=p,h(p,"displayName","ReactGridLayout"),h(p,"propTypes",c.default),h(p,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:n.noop,onDragStart:n.noop,onDrag:n.noop,onDragStop:n.noop,onResizeStart:n.noop,onResize:n.noop,onResizeStop:n.noop,onDrop:n.noop,onDropDragOver:n.noop})},59864:(e,t,i)=>{"use strict";t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var i,r,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t){if(i.has(e))return i.get(e);i.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(a,t,r):a[t]=e[t]);return a}(e)}(i(96540)),a=c(i(5556)),s=i(51548),n=i(38426),o=i(3108),l=c(i(59742));function c(e){return e&&e.__esModule?e:{default:e}}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},d.apply(null,arguments)}function h(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}const u=e=>Object.prototype.toString.call(e);function g(e,t){return null==e?null:Array.isArray(e)?e:e[t]}class p extends r.Component{constructor(){super(...arguments),h(this,"state",this.generateInitialState()),h(this,"onLayoutChange",e=>{this.props.onLayoutChange(e,{...this.props.layouts,[this.state.breakpoint]:e})})}generateInitialState(){const{width:e,breakpoints:t,layouts:i,cols:r}=this.props,a=(0,o.getBreakpointFromWidth)(t,e),s=(0,o.getColsFromBreakpoint)(a,r),n=!1===this.props.verticalCompact?null:this.props.compactType;return{layout:(0,o.findOrGenerateResponsiveLayout)(i,t,a,a,s,n),breakpoint:a,cols:s}}static getDerivedStateFromProps(e,t){if(!(0,s.deepEqual)(e.layouts,t.layouts)){const{breakpoint:i,cols:r}=t;return{layout:(0,o.findOrGenerateResponsiveLayout)(e.layouts,e.breakpoints,i,i,r,e.compactType),layouts:e.layouts}}return null}componentDidUpdate(e){this.props.width==e.width&&this.props.breakpoint===e.breakpoint&&(0,s.deepEqual)(this.props.breakpoints,e.breakpoints)&&(0,s.deepEqual)(this.props.cols,e.cols)||this.onWidthChange(e)}onWidthChange(e){const{breakpoints:t,cols:i,layouts:r,compactType:a}=this.props,s=this.props.breakpoint||(0,o.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),l=this.state.breakpoint,c=(0,o.getColsFromBreakpoint)(s,i),d={...r};if(l!==s||e.breakpoints!==t||e.cols!==i){l in d||(d[l]=(0,n.cloneLayout)(this.state.layout));let e=(0,o.findOrGenerateResponsiveLayout)(d,t,s,l,c,a);e=(0,n.synchronizeLayoutWithChildren)(e,this.props.children,c,a,this.props.allowOverlap),d[s]=e,this.props.onBreakpointChange(s,c),this.props.onLayoutChange(e,d),this.setState({breakpoint:s,layout:e,cols:c})}const h=g(this.props.margin,s),u=g(this.props.containerPadding,s);this.props.onWidthChange(this.props.width,h,c,u)}render(){const{breakpoint:e,breakpoints:t,cols:i,layouts:a,margin:s,containerPadding:n,onBreakpointChange:o,onLayoutChange:c,onWidthChange:h,...u}=this.props;return r.createElement(l.default,d({},u,{margin:g(s,this.state.breakpoint),containerPadding:g(n,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}t.default=p,h(p,"propTypes",{breakpoint:a.default.string,breakpoints:a.default.object,allowOverlap:a.default.bool,cols:a.default.object,margin:a.default.oneOfType([a.default.array,a.default.object]),containerPadding:a.default.oneOfType([a.default.array,a.default.object]),layouts(e,t){if("[object Object]"!==u(e[t]))throw new Error("Layout property must be an object. Received: "+u(e[t]));Object.keys(e[t]).forEach(t=>{if(!(t in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,n.validateLayout)(e.layouts[t],"layouts."+t)})},width:a.default.number.isRequired,onBreakpointChange:a.default.func,onLayoutChange:a.default.func,onWidthChange:a.default.func}),h(p,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:n.noop,onLayoutChange:n.noop,onWidthChange:n.noop})},61021:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,"/* Layout */\n#home .ui.message .content .description {\n  margin-top: 15px;\n}\n\n#home .ui.message .button {\n  margin-top: 10px;\n}\n\n#mobile-layout #home {\n  height: 100%;\n  overflow-y: auto;\n  overflow-x: hidden;\n}\n\n#mobile-layout #home > div {\n  margin-left: 8px !important;\n  margin-right: 8px !important;\n}\n\n#mobile-layout #home .ui.message {\n  margin-top: 10px;\n}\n\n#mobile-layout .react-grid-layout {\n  margin-top: 0px;\n  margin-bottom: 25px;\n}\n\n/* Widgets */\n.react-grid-layout .widget .main.content {\n  max-height: calc(100% - 45px);\n  display: flex;\n  overflow: hidden;\n}\n\n.react-grid-layout .widget .main.content > div {\n  max-height: 100%;\n  max-width: 100%;\n  display: flex;\n  width: 100%;\n  flex: 1;\n}\n\n.react-grid-layout .widget .header i.large.icon {\n  font-size: 1.3em !important;\n}\n\n.react-grid-layout .widget .header-row {\n  display: flex;\n  flex: 0 0 auto !important;\n}\n\n.react-grid-layout .widget .header-row .header {\n  flex: 1;\n  height: 100%;\n}\n\n.react-grid-layout .widget .main.content .extra.content {\n  opacity: 0.4;\n}\n\n#mobile-layout .react-grid-layout .react-grid-item {\n  /* Allow touch scrolling */\n  touch-action: initial !important;\n  margin-left: 0px !important;\n  margin-right: 0px !important;\n}\n","",{version:3,sources:["webpack://./src/routes/Home/style.css"],names:[],mappings:"AAAA,WAAW;AACX;EACE,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,YAAY;EACZ,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,2BAA2B;EAC3B,4BAA4B;AAC9B;;AAEA;EACE,gBAAgB;AAClB;;AAEA;EACE,eAAe;EACf,mBAAmB;AACrB;;AAEA,YAAY;AACZ;EACE,6BAA6B;EAC7B,aAAa;EACb,gBAAgB;AAClB;;AAEA;EACE,gBAAgB;EAChB,eAAe;EACf,aAAa;EACb,WAAW;EACX,OAAO;AACT;;AAEA;EACE,2BAA2B;AAC7B;;AAEA;EACE,aAAa;EACb,yBAAyB;AAC3B;;AAEA;EACE,OAAO;EACP,YAAY;AACd;;AAEA;EACE,YAAY;AACd;;AAEA;EACE,0BAA0B;EAC1B,gCAAgC;EAChC,2BAA2B;EAC3B,4BAA4B;AAC9B",sourcesContent:["/* Layout */\n#home .ui.message .content .description {\n  margin-top: 15px;\n}\n\n#home .ui.message .button {\n  margin-top: 10px;\n}\n\n#mobile-layout #home {\n  height: 100%;\n  overflow-y: auto;\n  overflow-x: hidden;\n}\n\n#mobile-layout #home > div {\n  margin-left: 8px !important;\n  margin-right: 8px !important;\n}\n\n#mobile-layout #home .ui.message {\n  margin-top: 10px;\n}\n\n#mobile-layout .react-grid-layout {\n  margin-top: 0px;\n  margin-bottom: 25px;\n}\n\n/* Widgets */\n.react-grid-layout .widget .main.content {\n  max-height: calc(100% - 45px);\n  display: flex;\n  overflow: hidden;\n}\n\n.react-grid-layout .widget .main.content > div {\n  max-height: 100%;\n  max-width: 100%;\n  display: flex;\n  width: 100%;\n  flex: 1;\n}\n\n.react-grid-layout .widget .header i.large.icon {\n  font-size: 1.3em !important;\n}\n\n.react-grid-layout .widget .header-row {\n  display: flex;\n  flex: 0 0 auto !important;\n}\n\n.react-grid-layout .widget .header-row .header {\n  flex: 1;\n  height: 100%;\n}\n\n.react-grid-layout .widget .main.content .extra.content {\n  opacity: 0.4;\n}\n\n#mobile-layout .react-grid-layout .react-grid-item {\n  /* Allow touch scrolling */\n  touch-action: initial !important;\n  margin-left: 0px !important;\n  margin-right: 0px !important;\n}\n"],sourceRoot:""}]);const o=n},65661:(e,t,i)=>{"use strict";t.default=void 0;var r=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var i=c(t);if(i&&i.has(e))return i.get(e);var r={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in e)if("default"!==s&&Object.prototype.hasOwnProperty.call(e,s)){var n=a?Object.getOwnPropertyDescriptor(e,s):null;n&&(n.get||n.set)?Object.defineProperty(r,s,n):r[s]=e[s]}return r.default=e,i&&i.set(e,r),r}(i(96540)),a=l(i(5556)),s=l(i(15630)),n=i(28329),o=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function l(e){return e&&e.__esModule?e:{default:e}}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,i=new WeakMap;return(c=function(e){return e?i:t})(e)}function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},d.apply(this,arguments)}function h(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function u(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?h(Object(i),!0).forEach(function(t){g(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):h(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function g(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=function(e){var t,i;function a(){for(var t,i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];return(t=e.call.apply(e,[this].concat(r))||this).state={width:t.props.width,height:t.props.height,propsWidth:t.props.width,propsHeight:t.props.height},t.onResize=function(e,i){var r=i.size;t.props.onResize?(null==e.persist||e.persist(),t.setState(r,function(){return t.props.onResize&&t.props.onResize(e,i)})):t.setState(r)},t}return i=e,(t=a).prototype=Object.create(i.prototype),t.prototype.constructor=t,p(t,i),a.getDerivedStateFromProps=function(e,t){return t.propsWidth!==e.width||t.propsHeight!==e.height?{width:e.width,height:e.height,propsWidth:e.width,propsHeight:e.height}:null},a.prototype.render=function(){var e=this.props,t=e.handle,i=e.handleSize,a=(e.onResize,e.onResizeStart),n=e.onResizeStop,l=e.draggableOpts,c=e.minConstraints,h=e.maxConstraints,g=e.lockAspectRatio,p=e.axis,f=(e.width,e.height,e.resizeHandles),b=e.style,m=e.transformScale,x=function(e,t){if(null==e)return{};var i,r,a={},s=Object.keys(e);for(r=0;r<s.length;r++)i=s[r],t.indexOf(i)>=0||(a[i]=e[i]);return a}(e,o);return r.createElement(s.default,{axis:p,draggableOpts:l,handle:t,handleSize:i,height:this.state.height,lockAspectRatio:g,maxConstraints:h,minConstraints:c,onResizeStart:a,onResize:this.onResize,onResizeStop:n,resizeHandles:f,transformScale:m,width:this.state.width},r.createElement("div",d({},x,{style:u(u({},b),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},a}(r.Component);t.default=f,f.propTypes=u(u({},n.resizableProps),{},{children:a.default.element})},66036:(e,t,i)=>{"use strict";e.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},e.exports.Resizable=i(15630).default,e.exports.ResizableBox=i(65661).default},66067:function(e,t,i){var r;e=i.nmd(e),function(){var a=(e&&e.exports,"object"==typeof i.g&&i.g);a.global!==a&&a.window;var s=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,n=/[\x01-\x7F]/g,o=/[\x01-\t\x0B\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,l=/<\u20D2|=\u20E5|>\u20D2|\u205F\u200A|\u219D\u0338|\u2202\u0338|\u2220\u20D2|\u2229\uFE00|\u222A\uFE00|\u223C\u20D2|\u223D\u0331|\u223E\u0333|\u2242\u0338|\u224B\u0338|\u224D\u20D2|\u224E\u0338|\u224F\u0338|\u2250\u0338|\u2261\u20E5|\u2264\u20D2|\u2265\u20D2|\u2266\u0338|\u2267\u0338|\u2268\uFE00|\u2269\uFE00|\u226A\u0338|\u226A\u20D2|\u226B\u0338|\u226B\u20D2|\u227F\u0338|\u2282\u20D2|\u2283\u20D2|\u228A\uFE00|\u228B\uFE00|\u228F\u0338|\u2290\u0338|\u2293\uFE00|\u2294\uFE00|\u22B4\u20D2|\u22B5\u20D2|\u22D8\u0338|\u22D9\u0338|\u22DA\uFE00|\u22DB\uFE00|\u22F5\u0338|\u22F9\u0338|\u2933\u0338|\u29CF\u0338|\u29D0\u0338|\u2A6D\u0338|\u2A70\u0338|\u2A7D\u0338|\u2A7E\u0338|\u2AA1\u0338|\u2AA2\u0338|\u2AAC\uFE00|\u2AAD\uFE00|\u2AAF\u0338|\u2AB0\u0338|\u2AC5\u0338|\u2AC6\u0338|\u2ACB\uFE00|\u2ACC\uFE00|\u2AFD\u20E5|[\xA0-\u0113\u0116-\u0122\u0124-\u012B\u012E-\u014D\u0150-\u017E\u0192\u01B5\u01F5\u0237\u02C6\u02C7\u02D8-\u02DD\u0311\u0391-\u03A1\u03A3-\u03A9\u03B1-\u03C9\u03D1\u03D2\u03D5\u03D6\u03DC\u03DD\u03F0\u03F1\u03F5\u03F6\u0401-\u040C\u040E-\u044F\u0451-\u045C\u045E\u045F\u2002-\u2005\u2007-\u2010\u2013-\u2016\u2018-\u201A\u201C-\u201E\u2020-\u2022\u2025\u2026\u2030-\u2035\u2039\u203A\u203E\u2041\u2043\u2044\u204F\u2057\u205F-\u2063\u20AC\u20DB\u20DC\u2102\u2105\u210A-\u2113\u2115-\u211E\u2122\u2124\u2127-\u2129\u212C\u212D\u212F-\u2131\u2133-\u2138\u2145-\u2148\u2153-\u215E\u2190-\u219B\u219D-\u21A7\u21A9-\u21AE\u21B0-\u21B3\u21B5-\u21B7\u21BA-\u21DB\u21DD\u21E4\u21E5\u21F5\u21FD-\u2205\u2207-\u2209\u220B\u220C\u220F-\u2214\u2216-\u2218\u221A\u221D-\u2238\u223A-\u2257\u2259\u225A\u225C\u225F-\u2262\u2264-\u228B\u228D-\u229B\u229D-\u22A5\u22A7-\u22B0\u22B2-\u22BB\u22BD-\u22DB\u22DE-\u22E3\u22E6-\u22F7\u22F9-\u22FE\u2305\u2306\u2308-\u2310\u2312\u2313\u2315\u2316\u231C-\u231F\u2322\u2323\u232D\u232E\u2336\u233D\u233F\u237C\u23B0\u23B1\u23B4-\u23B6\u23DC-\u23DF\u23E2\u23E7\u2423\u24C8\u2500\u2502\u250C\u2510\u2514\u2518\u251C\u2524\u252C\u2534\u253C\u2550-\u256C\u2580\u2584\u2588\u2591-\u2593\u25A1\u25AA\u25AB\u25AD\u25AE\u25B1\u25B3-\u25B5\u25B8\u25B9\u25BD-\u25BF\u25C2\u25C3\u25CA\u25CB\u25EC\u25EF\u25F8-\u25FC\u2605\u2606\u260E\u2640\u2642\u2660\u2663\u2665\u2666\u266A\u266D-\u266F\u2713\u2717\u2720\u2736\u2758\u2772\u2773\u27C8\u27C9\u27E6-\u27ED\u27F5-\u27FA\u27FC\u27FF\u2902-\u2905\u290C-\u2913\u2916\u2919-\u2920\u2923-\u292A\u2933\u2935-\u2939\u293C\u293D\u2945\u2948-\u294B\u294E-\u2976\u2978\u2979\u297B-\u297F\u2985\u2986\u298B-\u2996\u299A\u299C\u299D\u29A4-\u29B7\u29B9\u29BB\u29BC\u29BE-\u29C5\u29C9\u29CD-\u29D0\u29DC-\u29DE\u29E3-\u29E5\u29EB\u29F4\u29F6\u2A00-\u2A02\u2A04\u2A06\u2A0C\u2A0D\u2A10-\u2A17\u2A22-\u2A27\u2A29\u2A2A\u2A2D-\u2A31\u2A33-\u2A3C\u2A3F\u2A40\u2A42-\u2A4D\u2A50\u2A53-\u2A58\u2A5A-\u2A5D\u2A5F\u2A66\u2A6A\u2A6D-\u2A75\u2A77-\u2A9A\u2A9D-\u2AA2\u2AA4-\u2AB0\u2AB3-\u2AC8\u2ACB\u2ACC\u2ACF-\u2ADB\u2AE4\u2AE6-\u2AE9\u2AEB-\u2AF3\u2AFD\uFB00-\uFB04]|\uD835[\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDCCF\uDD04\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDD6B]/g,c={"­":"shy","‌":"zwnj","‍":"zwj","‎":"lrm","⁣":"ic","⁢":"it","⁡":"af","‏":"rlm","​":"ZeroWidthSpace","⁠":"NoBreak","̑":"DownBreve","⃛":"tdot","⃜":"DotDot","\t":"Tab","\n":"NewLine"," ":"puncsp"," ":"MediumSpace"," ":"thinsp"," ":"hairsp"," ":"emsp13"," ":"ensp"," ":"emsp14"," ":"emsp"," ":"numsp"," ":"nbsp","  ":"ThickSpace","‾":"oline",_:"lowbar","‐":"dash","–":"ndash","—":"mdash","―":"horbar",",":"comma",";":"semi","⁏":"bsemi",":":"colon","⩴":"Colone","!":"excl","¡":"iexcl","?":"quest","¿":"iquest",".":"period","‥":"nldr","…":"mldr","·":"middot","'":"apos","‘":"lsquo","’":"rsquo","‚":"sbquo","‹":"lsaquo","›":"rsaquo",'"':"quot","“":"ldquo","”":"rdquo","„":"bdquo","«":"laquo","»":"raquo","(":"lpar",")":"rpar","[":"lsqb","]":"rsqb","{":"lcub","}":"rcub","⌈":"lceil","⌉":"rceil","⌊":"lfloor","⌋":"rfloor","⦅":"lopar","⦆":"ropar","⦋":"lbrke","⦌":"rbrke","⦍":"lbrkslu","⦎":"rbrksld","⦏":"lbrksld","⦐":"rbrkslu","⦑":"langd","⦒":"rangd","⦓":"lparlt","⦔":"rpargt","⦕":"gtlPar","⦖":"ltrPar","⟦":"lobrk","⟧":"robrk","⟨":"lang","⟩":"rang","⟪":"Lang","⟫":"Rang","⟬":"loang","⟭":"roang","❲":"lbbrk","❳":"rbbrk","‖":"Vert","§":"sect","¶":"para","@":"commat","*":"ast","/":"sol",undefined:null,"&":"amp","#":"num","%":"percnt","‰":"permil","‱":"pertenk","†":"dagger","‡":"Dagger","•":"bull","⁃":"hybull","′":"prime","″":"Prime","‴":"tprime","⁗":"qprime","‵":"bprime","⁁":"caret","`":"grave","´":"acute","˜":"tilde","^":"Hat","¯":"macr","˘":"breve","˙":"dot","¨":"die","˚":"ring","˝":"dblac","¸":"cedil","˛":"ogon",ˆ:"circ",ˇ:"caron","°":"deg","©":"copy","®":"reg","℗":"copysr",℘:"wp","℞":"rx","℧":"mho","℩":"iiota","←":"larr","↚":"nlarr","→":"rarr","↛":"nrarr","↑":"uarr","↓":"darr","↔":"harr","↮":"nharr","↕":"varr","↖":"nwarr","↗":"nearr","↘":"searr","↙":"swarr","↝":"rarrw","↝̸":"nrarrw","↞":"Larr","↟":"Uarr","↠":"Rarr","↡":"Darr","↢":"larrtl","↣":"rarrtl","↤":"mapstoleft","↥":"mapstoup","↦":"map","↧":"mapstodown","↩":"larrhk","↪":"rarrhk","↫":"larrlp","↬":"rarrlp","↭":"harrw","↰":"lsh","↱":"rsh","↲":"ldsh","↳":"rdsh","↵":"crarr","↶":"cularr","↷":"curarr","↺":"olarr","↻":"orarr","↼":"lharu","↽":"lhard","↾":"uharr","↿":"uharl","⇀":"rharu","⇁":"rhard","⇂":"dharr","⇃":"dharl","⇄":"rlarr","⇅":"udarr","⇆":"lrarr","⇇":"llarr","⇈":"uuarr","⇉":"rrarr","⇊":"ddarr","⇋":"lrhar","⇌":"rlhar","⇐":"lArr","⇍":"nlArr","⇑":"uArr","⇒":"rArr","⇏":"nrArr","⇓":"dArr","⇔":"iff","⇎":"nhArr","⇕":"vArr","⇖":"nwArr","⇗":"neArr","⇘":"seArr","⇙":"swArr","⇚":"lAarr","⇛":"rAarr","⇝":"zigrarr","⇤":"larrb","⇥":"rarrb","⇵":"duarr","⇽":"loarr","⇾":"roarr","⇿":"hoarr","∀":"forall","∁":"comp","∂":"part","∂̸":"npart","∃":"exist","∄":"nexist","∅":"empty","∇":"Del","∈":"in","∉":"notin","∋":"ni","∌":"notni","϶":"bepsi","∏":"prod","∐":"coprod","∑":"sum","+":"plus","±":"pm","÷":"div","×":"times","<":"lt","≮":"nlt","<⃒":"nvlt","=":"equals","≠":"ne","=⃥":"bne","⩵":"Equal",">":"gt","≯":"ngt",">⃒":"nvgt","¬":"not","|":"vert","¦":"brvbar","−":"minus","∓":"mp","∔":"plusdo","⁄":"frasl","∖":"setmn","∗":"lowast","∘":"compfn","√":"Sqrt","∝":"prop","∞":"infin","∟":"angrt","∠":"ang","∠⃒":"nang","∡":"angmsd","∢":"angsph","∣":"mid","∤":"nmid","∥":"par","∦":"npar","∧":"and","∨":"or","∩":"cap","∩︀":"caps","∪":"cup","∪︀":"cups","∫":"int","∬":"Int","∭":"tint","⨌":"qint","∮":"oint","∯":"Conint","∰":"Cconint","∱":"cwint","∲":"cwconint","∳":"awconint","∴":"there4","∵":"becaus","∶":"ratio","∷":"Colon","∸":"minusd","∺":"mDDot","∻":"homtht","∼":"sim","≁":"nsim","∼⃒":"nvsim","∽":"bsim","∽̱":"race","∾":"ac","∾̳":"acE","∿":"acd","≀":"wr","≂":"esim","≂̸":"nesim","≃":"sime","≄":"nsime","≅":"cong","≇":"ncong","≆":"simne","≈":"ap","≉":"nap","≊":"ape","≋":"apid","≋̸":"napid","≌":"bcong","≍":"CupCap","≭":"NotCupCap","≍⃒":"nvap","≎":"bump","≎̸":"nbump","≏":"bumpe","≏̸":"nbumpe","≐":"doteq","≐̸":"nedot","≑":"eDot","≒":"efDot","≓":"erDot","≔":"colone","≕":"ecolon","≖":"ecir","≗":"cire","≙":"wedgeq","≚":"veeeq","≜":"trie","≟":"equest","≡":"equiv","≢":"nequiv","≡⃥":"bnequiv","≤":"le","≰":"nle","≤⃒":"nvle","≥":"ge","≱":"nge","≥⃒":"nvge","≦":"lE","≦̸":"nlE","≧":"gE","≧̸":"ngE","≨︀":"lvnE","≨":"lnE","≩":"gnE","≩︀":"gvnE","≪":"ll","≪̸":"nLtv","≪⃒":"nLt","≫":"gg","≫̸":"nGtv","≫⃒":"nGt","≬":"twixt","≲":"lsim","≴":"nlsim","≳":"gsim","≵":"ngsim","≶":"lg","≸":"ntlg","≷":"gl","≹":"ntgl","≺":"pr","⊀":"npr","≻":"sc","⊁":"nsc","≼":"prcue","⋠":"nprcue","≽":"sccue","⋡":"nsccue","≾":"prsim","≿":"scsim","≿̸":"NotSucceedsTilde","⊂":"sub","⊄":"nsub","⊂⃒":"vnsub","⊃":"sup","⊅":"nsup","⊃⃒":"vnsup","⊆":"sube","⊈":"nsube","⊇":"supe","⊉":"nsupe","⊊︀":"vsubne","⊊":"subne","⊋︀":"vsupne","⊋":"supne","⊍":"cupdot","⊎":"uplus","⊏":"sqsub","⊏̸":"NotSquareSubset","⊐":"sqsup","⊐̸":"NotSquareSuperset","⊑":"sqsube","⋢":"nsqsube","⊒":"sqsupe","⋣":"nsqsupe","⊓":"sqcap","⊓︀":"sqcaps","⊔":"sqcup","⊔︀":"sqcups","⊕":"oplus","⊖":"ominus","⊗":"otimes","⊘":"osol","⊙":"odot","⊚":"ocir","⊛":"oast","⊝":"odash","⊞":"plusb","⊟":"minusb","⊠":"timesb","⊡":"sdotb","⊢":"vdash","⊬":"nvdash","⊣":"dashv","⊤":"top","⊥":"bot","⊧":"models","⊨":"vDash","⊭":"nvDash","⊩":"Vdash","⊮":"nVdash","⊪":"Vvdash","⊫":"VDash","⊯":"nVDash","⊰":"prurel","⊲":"vltri","⋪":"nltri","⊳":"vrtri","⋫":"nrtri","⊴":"ltrie","⋬":"nltrie","⊴⃒":"nvltrie","⊵":"rtrie","⋭":"nrtrie","⊵⃒":"nvrtrie","⊶":"origof","⊷":"imof","⊸":"mumap","⊹":"hercon","⊺":"intcal","⊻":"veebar","⊽":"barvee","⊾":"angrtvb","⊿":"lrtri","⋀":"Wedge","⋁":"Vee","⋂":"xcap","⋃":"xcup","⋄":"diam","⋅":"sdot","⋆":"Star","⋇":"divonx","⋈":"bowtie","⋉":"ltimes","⋊":"rtimes","⋋":"lthree","⋌":"rthree","⋍":"bsime","⋎":"cuvee","⋏":"cuwed","⋐":"Sub","⋑":"Sup","⋒":"Cap","⋓":"Cup","⋔":"fork","⋕":"epar","⋖":"ltdot","⋗":"gtdot","⋘":"Ll","⋘̸":"nLl","⋙":"Gg","⋙̸":"nGg","⋚︀":"lesg","⋚":"leg","⋛":"gel","⋛︀":"gesl","⋞":"cuepr","⋟":"cuesc","⋦":"lnsim","⋧":"gnsim","⋨":"prnsim","⋩":"scnsim","⋮":"vellip","⋯":"ctdot","⋰":"utdot","⋱":"dtdot","⋲":"disin","⋳":"isinsv","⋴":"isins","⋵":"isindot","⋵̸":"notindot","⋶":"notinvc","⋷":"notinvb","⋹":"isinE","⋹̸":"notinE","⋺":"nisd","⋻":"xnis","⋼":"nis","⋽":"notnivc","⋾":"notnivb","⌅":"barwed","⌆":"Barwed","⌌":"drcrop","⌍":"dlcrop","⌎":"urcrop","⌏":"ulcrop","⌐":"bnot","⌒":"profline","⌓":"profsurf","⌕":"telrec","⌖":"target","⌜":"ulcorn","⌝":"urcorn","⌞":"dlcorn","⌟":"drcorn","⌢":"frown","⌣":"smile","⌭":"cylcty","⌮":"profalar","⌶":"topbot","⌽":"ovbar","⌿":"solbar","⍼":"angzarr","⎰":"lmoust","⎱":"rmoust","⎴":"tbrk","⎵":"bbrk","⎶":"bbrktbrk","⏜":"OverParenthesis","⏝":"UnderParenthesis","⏞":"OverBrace","⏟":"UnderBrace","⏢":"trpezium","⏧":"elinters","␣":"blank","─":"boxh","│":"boxv","┌":"boxdr","┐":"boxdl","└":"boxur","┘":"boxul","├":"boxvr","┤":"boxvl","┬":"boxhd","┴":"boxhu","┼":"boxvh","═":"boxH","║":"boxV","╒":"boxdR","╓":"boxDr","╔":"boxDR","╕":"boxdL","╖":"boxDl","╗":"boxDL","╘":"boxuR","╙":"boxUr","╚":"boxUR","╛":"boxuL","╜":"boxUl","╝":"boxUL","╞":"boxvR","╟":"boxVr","╠":"boxVR","╡":"boxvL","╢":"boxVl","╣":"boxVL","╤":"boxHd","╥":"boxhD","╦":"boxHD","╧":"boxHu","╨":"boxhU","╩":"boxHU","╪":"boxvH","╫":"boxVh","╬":"boxVH","▀":"uhblk","▄":"lhblk","█":"block","░":"blk14","▒":"blk12","▓":"blk34","□":"squ","▪":"squf","▫":"EmptyVerySmallSquare","▭":"rect","▮":"marker","▱":"fltns","△":"xutri","▴":"utrif","▵":"utri","▸":"rtrif","▹":"rtri","▽":"xdtri","▾":"dtrif","▿":"dtri","◂":"ltrif","◃":"ltri","◊":"loz","○":"cir","◬":"tridot","◯":"xcirc","◸":"ultri","◹":"urtri","◺":"lltri","◻":"EmptySmallSquare","◼":"FilledSmallSquare","★":"starf","☆":"star","☎":"phone","♀":"female","♂":"male","♠":"spades","♣":"clubs","♥":"hearts","♦":"diams","♪":"sung","✓":"check","✗":"cross","✠":"malt","✶":"sext","❘":"VerticalSeparator","⟈":"bsolhsub","⟉":"suphsol","⟵":"xlarr","⟶":"xrarr","⟷":"xharr","⟸":"xlArr","⟹":"xrArr","⟺":"xhArr","⟼":"xmap","⟿":"dzigrarr","⤂":"nvlArr","⤃":"nvrArr","⤄":"nvHarr","⤅":"Map","⤌":"lbarr","⤍":"rbarr","⤎":"lBarr","⤏":"rBarr","⤐":"RBarr","⤑":"DDotrahd","⤒":"UpArrowBar","⤓":"DownArrowBar","⤖":"Rarrtl","⤙":"latail","⤚":"ratail","⤛":"lAtail","⤜":"rAtail","⤝":"larrfs","⤞":"rarrfs","⤟":"larrbfs","⤠":"rarrbfs","⤣":"nwarhk","⤤":"nearhk","⤥":"searhk","⤦":"swarhk","⤧":"nwnear","⤨":"toea","⤩":"tosa","⤪":"swnwar","⤳":"rarrc","⤳̸":"nrarrc","⤵":"cudarrr","⤶":"ldca","⤷":"rdca","⤸":"cudarrl","⤹":"larrpl","⤼":"curarrm","⤽":"cularrp","⥅":"rarrpl","⥈":"harrcir","⥉":"Uarrocir","⥊":"lurdshar","⥋":"ldrushar","⥎":"LeftRightVector","⥏":"RightUpDownVector","⥐":"DownLeftRightVector","⥑":"LeftUpDownVector","⥒":"LeftVectorBar","⥓":"RightVectorBar","⥔":"RightUpVectorBar","⥕":"RightDownVectorBar","⥖":"DownLeftVectorBar","⥗":"DownRightVectorBar","⥘":"LeftUpVectorBar","⥙":"LeftDownVectorBar","⥚":"LeftTeeVector","⥛":"RightTeeVector","⥜":"RightUpTeeVector","⥝":"RightDownTeeVector","⥞":"DownLeftTeeVector","⥟":"DownRightTeeVector","⥠":"LeftUpTeeVector","⥡":"LeftDownTeeVector","⥢":"lHar","⥣":"uHar","⥤":"rHar","⥥":"dHar","⥦":"luruhar","⥧":"ldrdhar","⥨":"ruluhar","⥩":"rdldhar","⥪":"lharul","⥫":"llhard","⥬":"rharul","⥭":"lrhard","⥮":"udhar","⥯":"duhar","⥰":"RoundImplies","⥱":"erarr","⥲":"simrarr","⥳":"larrsim","⥴":"rarrsim","⥵":"rarrap","⥶":"ltlarr","⥸":"gtrarr","⥹":"subrarr","⥻":"suplarr","⥼":"lfisht","⥽":"rfisht","⥾":"ufisht","⥿":"dfisht","⦚":"vzigzag","⦜":"vangrt","⦝":"angrtvbd","⦤":"ange","⦥":"range","⦦":"dwangle","⦧":"uwangle","⦨":"angmsdaa","⦩":"angmsdab","⦪":"angmsdac","⦫":"angmsdad","⦬":"angmsdae","⦭":"angmsdaf","⦮":"angmsdag","⦯":"angmsdah","⦰":"bemptyv","⦱":"demptyv","⦲":"cemptyv","⦳":"raemptyv","⦴":"laemptyv","⦵":"ohbar","⦶":"omid","⦷":"opar","⦹":"operp","⦻":"olcross","⦼":"odsold","⦾":"olcir","⦿":"ofcir","⧀":"olt","⧁":"ogt","⧂":"cirscir","⧃":"cirE","⧄":"solb","⧅":"bsolb","⧉":"boxbox","⧍":"trisb","⧎":"rtriltri","⧏":"LeftTriangleBar","⧏̸":"NotLeftTriangleBar","⧐":"RightTriangleBar","⧐̸":"NotRightTriangleBar","⧜":"iinfin","⧝":"infintie","⧞":"nvinfin","⧣":"eparsl","⧤":"smeparsl","⧥":"eqvparsl","⧫":"lozf","⧴":"RuleDelayed","⧶":"dsol","⨀":"xodot","⨁":"xoplus","⨂":"xotime","⨄":"xuplus","⨆":"xsqcup","⨍":"fpartint","⨐":"cirfnint","⨑":"awint","⨒":"rppolint","⨓":"scpolint","⨔":"npolint","⨕":"pointint","⨖":"quatint","⨗":"intlarhk","⨢":"pluscir","⨣":"plusacir","⨤":"simplus","⨥":"plusdu","⨦":"plussim","⨧":"plustwo","⨩":"mcomma","⨪":"minusdu","⨭":"loplus","⨮":"roplus","⨯":"Cross","⨰":"timesd","⨱":"timesbar","⨳":"smashp","⨴":"lotimes","⨵":"rotimes","⨶":"otimesas","⨷":"Otimes","⨸":"odiv","⨹":"triplus","⨺":"triminus","⨻":"tritime","⨼":"iprod","⨿":"amalg","⩀":"capdot","⩂":"ncup","⩃":"ncap","⩄":"capand","⩅":"cupor","⩆":"cupcap","⩇":"capcup","⩈":"cupbrcap","⩉":"capbrcup","⩊":"cupcup","⩋":"capcap","⩌":"ccups","⩍":"ccaps","⩐":"ccupssm","⩓":"And","⩔":"Or","⩕":"andand","⩖":"oror","⩗":"orslope","⩘":"andslope","⩚":"andv","⩛":"orv","⩜":"andd","⩝":"ord","⩟":"wedbar","⩦":"sdote","⩪":"simdot","⩭":"congdot","⩭̸":"ncongdot","⩮":"easter","⩯":"apacir","⩰":"apE","⩰̸":"napE","⩱":"eplus","⩲":"pluse","⩳":"Esim","⩷":"eDDot","⩸":"equivDD","⩹":"ltcir","⩺":"gtcir","⩻":"ltquest","⩼":"gtquest","⩽":"les","⩽̸":"nles","⩾":"ges","⩾̸":"nges","⩿":"lesdot","⪀":"gesdot","⪁":"lesdoto","⪂":"gesdoto","⪃":"lesdotor","⪄":"gesdotol","⪅":"lap","⪆":"gap","⪇":"lne","⪈":"gne","⪉":"lnap","⪊":"gnap","⪋":"lEg","⪌":"gEl","⪍":"lsime","⪎":"gsime","⪏":"lsimg","⪐":"gsiml","⪑":"lgE","⪒":"glE","⪓":"lesges","⪔":"gesles","⪕":"els","⪖":"egs","⪗":"elsdot","⪘":"egsdot","⪙":"el","⪚":"eg","⪝":"siml","⪞":"simg","⪟":"simlE","⪠":"simgE","⪡":"LessLess","⪡̸":"NotNestedLessLess","⪢":"GreaterGreater","⪢̸":"NotNestedGreaterGreater","⪤":"glj","⪥":"gla","⪦":"ltcc","⪧":"gtcc","⪨":"lescc","⪩":"gescc","⪪":"smt","⪫":"lat","⪬":"smte","⪬︀":"smtes","⪭":"late","⪭︀":"lates","⪮":"bumpE","⪯":"pre","⪯̸":"npre","⪰":"sce","⪰̸":"nsce","⪳":"prE","⪴":"scE","⪵":"prnE","⪶":"scnE","⪷":"prap","⪸":"scap","⪹":"prnap","⪺":"scnap","⪻":"Pr","⪼":"Sc","⪽":"subdot","⪾":"supdot","⪿":"subplus","⫀":"supplus","⫁":"submult","⫂":"supmult","⫃":"subedot","⫄":"supedot","⫅":"subE","⫅̸":"nsubE","⫆":"supE","⫆̸":"nsupE","⫇":"subsim","⫈":"supsim","⫋︀":"vsubnE","⫋":"subnE","⫌︀":"vsupnE","⫌":"supnE","⫏":"csub","⫐":"csup","⫑":"csube","⫒":"csupe","⫓":"subsup","⫔":"supsub","⫕":"subsub","⫖":"supsup","⫗":"suphsub","⫘":"supdsub","⫙":"forkv","⫚":"topfork","⫛":"mlcp","⫤":"Dashv","⫦":"Vdashl","⫧":"Barv","⫨":"vBar","⫩":"vBarv","⫫":"Vbar","⫬":"Not","⫭":"bNot","⫮":"rnmid","⫯":"cirmid","⫰":"midcir","⫱":"topcir","⫲":"nhpar","⫳":"parsim","⫽":"parsl","⫽⃥":"nparsl","♭":"flat","♮":"natur","♯":"sharp","¤":"curren","¢":"cent",$:"dollar","£":"pound","¥":"yen","€":"euro","¹":"sup1","½":"half","⅓":"frac13","¼":"frac14","⅕":"frac15","⅙":"frac16","⅛":"frac18","²":"sup2","⅔":"frac23","⅖":"frac25","³":"sup3","¾":"frac34","⅗":"frac35","⅜":"frac38","⅘":"frac45","⅚":"frac56","⅝":"frac58","⅞":"frac78",𝒶:"ascr",𝕒:"aopf",𝔞:"afr",𝔸:"Aopf",𝔄:"Afr",𝒜:"Ascr",ª:"ordf",á:"aacute",Á:"Aacute",à:"agrave",À:"Agrave",ă:"abreve",Ă:"Abreve",â:"acirc",Â:"Acirc",å:"aring",Å:"angst",ä:"auml",Ä:"Auml",ã:"atilde",Ã:"Atilde",ą:"aogon",Ą:"Aogon",ā:"amacr",Ā:"Amacr",æ:"aelig",Æ:"AElig",𝒷:"bscr",𝕓:"bopf",𝔟:"bfr",𝔹:"Bopf",ℬ:"Bscr",𝔅:"Bfr",𝔠:"cfr",𝒸:"cscr",𝕔:"copf",ℭ:"Cfr",𝒞:"Cscr",ℂ:"Copf",ć:"cacute",Ć:"Cacute",ĉ:"ccirc",Ĉ:"Ccirc",č:"ccaron",Č:"Ccaron",ċ:"cdot",Ċ:"Cdot",ç:"ccedil",Ç:"Ccedil","℅":"incare",𝔡:"dfr",ⅆ:"dd",𝕕:"dopf",𝒹:"dscr",𝒟:"Dscr",𝔇:"Dfr",ⅅ:"DD",𝔻:"Dopf",ď:"dcaron",Ď:"Dcaron",đ:"dstrok",Đ:"Dstrok",ð:"eth",Ð:"ETH",ⅇ:"ee",ℯ:"escr",𝔢:"efr",𝕖:"eopf",ℰ:"Escr",𝔈:"Efr",𝔼:"Eopf",é:"eacute",É:"Eacute",è:"egrave",È:"Egrave",ê:"ecirc",Ê:"Ecirc",ě:"ecaron",Ě:"Ecaron",ë:"euml",Ë:"Euml",ė:"edot",Ė:"Edot",ę:"eogon",Ę:"Eogon",ē:"emacr",Ē:"Emacr",𝔣:"ffr",𝕗:"fopf",𝒻:"fscr",𝔉:"Ffr",𝔽:"Fopf",ℱ:"Fscr",ff:"fflig",ffi:"ffilig",ffl:"ffllig",fi:"filig",fj:"fjlig",fl:"fllig",ƒ:"fnof",ℊ:"gscr",𝕘:"gopf",𝔤:"gfr",𝒢:"Gscr",𝔾:"Gopf",𝔊:"Gfr",ǵ:"gacute",ğ:"gbreve",Ğ:"Gbreve",ĝ:"gcirc",Ĝ:"Gcirc",ġ:"gdot",Ġ:"Gdot",Ģ:"Gcedil",𝔥:"hfr",ℎ:"planckh",𝒽:"hscr",𝕙:"hopf",ℋ:"Hscr",ℌ:"Hfr",ℍ:"Hopf",ĥ:"hcirc",Ĥ:"Hcirc",ℏ:"hbar",ħ:"hstrok",Ħ:"Hstrok",𝕚:"iopf",𝔦:"ifr",𝒾:"iscr",ⅈ:"ii",𝕀:"Iopf",ℐ:"Iscr",ℑ:"Im",í:"iacute",Í:"Iacute",ì:"igrave",Ì:"Igrave",î:"icirc",Î:"Icirc",ï:"iuml",Ï:"Iuml",ĩ:"itilde",Ĩ:"Itilde",İ:"Idot",į:"iogon",Į:"Iogon",ī:"imacr",Ī:"Imacr",ij:"ijlig",IJ:"IJlig",ı:"imath",𝒿:"jscr",𝕛:"jopf",𝔧:"jfr",𝒥:"Jscr",𝔍:"Jfr",𝕁:"Jopf",ĵ:"jcirc",Ĵ:"Jcirc",ȷ:"jmath",𝕜:"kopf",𝓀:"kscr",𝔨:"kfr",𝒦:"Kscr",𝕂:"Kopf",𝔎:"Kfr",ķ:"kcedil",Ķ:"Kcedil",𝔩:"lfr",𝓁:"lscr",ℓ:"ell",𝕝:"lopf",ℒ:"Lscr",𝔏:"Lfr",𝕃:"Lopf",ĺ:"lacute",Ĺ:"Lacute",ľ:"lcaron",Ľ:"Lcaron",ļ:"lcedil",Ļ:"Lcedil",ł:"lstrok",Ł:"Lstrok",ŀ:"lmidot",Ŀ:"Lmidot",𝔪:"mfr",𝕞:"mopf",𝓂:"mscr",𝔐:"Mfr",𝕄:"Mopf",ℳ:"Mscr",𝔫:"nfr",𝕟:"nopf",𝓃:"nscr",ℕ:"Nopf",𝒩:"Nscr",𝔑:"Nfr",ń:"nacute",Ń:"Nacute",ň:"ncaron",Ň:"Ncaron",ñ:"ntilde",Ñ:"Ntilde",ņ:"ncedil",Ņ:"Ncedil","№":"numero",ŋ:"eng",Ŋ:"ENG",𝕠:"oopf",𝔬:"ofr",ℴ:"oscr",𝒪:"Oscr",𝔒:"Ofr",𝕆:"Oopf",º:"ordm",ó:"oacute",Ó:"Oacute",ò:"ograve",Ò:"Ograve",ô:"ocirc",Ô:"Ocirc",ö:"ouml",Ö:"Ouml",ő:"odblac",Ő:"Odblac",õ:"otilde",Õ:"Otilde",ø:"oslash",Ø:"Oslash",ō:"omacr",Ō:"Omacr",œ:"oelig",Œ:"OElig",𝔭:"pfr",𝓅:"pscr",𝕡:"popf",ℙ:"Popf",𝔓:"Pfr",𝒫:"Pscr",𝕢:"qopf",𝔮:"qfr",𝓆:"qscr",𝒬:"Qscr",𝔔:"Qfr",ℚ:"Qopf",ĸ:"kgreen",𝔯:"rfr",𝕣:"ropf",𝓇:"rscr",ℛ:"Rscr",ℜ:"Re",ℝ:"Ropf",ŕ:"racute",Ŕ:"Racute",ř:"rcaron",Ř:"Rcaron",ŗ:"rcedil",Ŗ:"Rcedil",𝕤:"sopf",𝓈:"sscr",𝔰:"sfr",𝕊:"Sopf",𝔖:"Sfr",𝒮:"Sscr","Ⓢ":"oS",ś:"sacute",Ś:"Sacute",ŝ:"scirc",Ŝ:"Scirc",š:"scaron",Š:"Scaron",ş:"scedil",Ş:"Scedil",ß:"szlig",𝔱:"tfr",𝓉:"tscr",𝕥:"topf",𝒯:"Tscr",𝔗:"Tfr",𝕋:"Topf",ť:"tcaron",Ť:"Tcaron",ţ:"tcedil",Ţ:"Tcedil","™":"trade",ŧ:"tstrok",Ŧ:"Tstrok",𝓊:"uscr",𝕦:"uopf",𝔲:"ufr",𝕌:"Uopf",𝔘:"Ufr",𝒰:"Uscr",ú:"uacute",Ú:"Uacute",ù:"ugrave",Ù:"Ugrave",ŭ:"ubreve",Ŭ:"Ubreve",û:"ucirc",Û:"Ucirc",ů:"uring",Ů:"Uring",ü:"uuml",Ü:"Uuml",ű:"udblac",Ű:"Udblac",ũ:"utilde",Ũ:"Utilde",ų:"uogon",Ų:"Uogon",ū:"umacr",Ū:"Umacr",𝔳:"vfr",𝕧:"vopf",𝓋:"vscr",𝔙:"Vfr",𝕍:"Vopf",𝒱:"Vscr",𝕨:"wopf",𝓌:"wscr",𝔴:"wfr",𝒲:"Wscr",𝕎:"Wopf",𝔚:"Wfr",ŵ:"wcirc",Ŵ:"Wcirc",𝔵:"xfr",𝓍:"xscr",𝕩:"xopf",𝕏:"Xopf",𝔛:"Xfr",𝒳:"Xscr",𝔶:"yfr",𝓎:"yscr",𝕪:"yopf",𝒴:"Yscr",𝔜:"Yfr",𝕐:"Yopf",ý:"yacute",Ý:"Yacute",ŷ:"ycirc",Ŷ:"Ycirc",ÿ:"yuml",Ÿ:"Yuml",𝓏:"zscr",𝔷:"zfr",𝕫:"zopf",ℨ:"Zfr",ℤ:"Zopf",𝒵:"Zscr",ź:"zacute",Ź:"Zacute",ž:"zcaron",Ž:"Zcaron",ż:"zdot",Ż:"Zdot",Ƶ:"imped",þ:"thorn",Þ:"THORN",ʼn:"napos",α:"alpha",Α:"Alpha",β:"beta",Β:"Beta",γ:"gamma",Γ:"Gamma",δ:"delta",Δ:"Delta",ε:"epsi",ϵ:"epsiv",Ε:"Epsilon",ϝ:"gammad",Ϝ:"Gammad",ζ:"zeta",Ζ:"Zeta",η:"eta",Η:"Eta",θ:"theta",ϑ:"thetav",Θ:"Theta",ι:"iota",Ι:"Iota",κ:"kappa",ϰ:"kappav",Κ:"Kappa",λ:"lambda",Λ:"Lambda",μ:"mu",µ:"micro",Μ:"Mu",ν:"nu",Ν:"Nu",ξ:"xi",Ξ:"Xi",ο:"omicron",Ο:"Omicron",π:"pi",ϖ:"piv",Π:"Pi",ρ:"rho",ϱ:"rhov",Ρ:"Rho",σ:"sigma",Σ:"Sigma",ς:"sigmaf",τ:"tau",Τ:"Tau",υ:"upsi",Υ:"Upsilon",ϒ:"Upsi",φ:"phi",ϕ:"phiv",Φ:"Phi",χ:"chi",Χ:"Chi",ψ:"psi",Ψ:"Psi",ω:"omega",Ω:"ohm",а:"acy",А:"Acy",б:"bcy",Б:"Bcy",в:"vcy",В:"Vcy",г:"gcy",Г:"Gcy",ѓ:"gjcy",Ѓ:"GJcy",д:"dcy",Д:"Dcy",ђ:"djcy",Ђ:"DJcy",е:"iecy",Е:"IEcy",ё:"iocy",Ё:"IOcy",є:"jukcy",Є:"Jukcy",ж:"zhcy",Ж:"ZHcy",з:"zcy",З:"Zcy",ѕ:"dscy",Ѕ:"DScy",и:"icy",И:"Icy",і:"iukcy",І:"Iukcy",ї:"yicy",Ї:"YIcy",й:"jcy",Й:"Jcy",ј:"jsercy",Ј:"Jsercy",к:"kcy",К:"Kcy",ќ:"kjcy",Ќ:"KJcy",л:"lcy",Л:"Lcy",љ:"ljcy",Љ:"LJcy",м:"mcy",М:"Mcy",н:"ncy",Н:"Ncy",њ:"njcy",Њ:"NJcy",о:"ocy",О:"Ocy",п:"pcy",П:"Pcy",р:"rcy",Р:"Rcy",с:"scy",С:"Scy",т:"tcy",Т:"Tcy",ћ:"tshcy",Ћ:"TSHcy",у:"ucy",У:"Ucy",ў:"ubrcy",Ў:"Ubrcy",ф:"fcy",Ф:"Fcy",х:"khcy",Х:"KHcy",ц:"tscy",Ц:"TScy",ч:"chcy",Ч:"CHcy",џ:"dzcy",Џ:"DZcy",ш:"shcy",Ш:"SHcy",щ:"shchcy",Щ:"SHCHcy",ъ:"hardcy",Ъ:"HARDcy",ы:"ycy",Ы:"Ycy",ь:"softcy",Ь:"SOFTcy",э:"ecy",Э:"Ecy",ю:"yucy",Ю:"YUcy",я:"yacy",Я:"YAcy",ℵ:"aleph",ℶ:"beth",ℷ:"gimel",ℸ:"daleth"},d=/["&'<>`]/g,h={'"':"&quot;","&":"&amp;","'":"&#x27;","<":"&lt;",">":"&gt;","`":"&#x60;"},u=/&#(?:[xX][^a-fA-F0-9]|[^0-9xX])/,g=/[\0-\x08\x0B\x0E-\x1F\x7F-\x9F\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p=/&(CounterClockwiseContourIntegral|DoubleLongLeftRightArrow|ClockwiseContourIntegral|NotNestedGreaterGreater|NotSquareSupersetEqual|DiacriticalDoubleAcute|NotRightTriangleEqual|NotSucceedsSlantEqual|NotPrecedesSlantEqual|CloseCurlyDoubleQuote|NegativeVeryThinSpace|DoubleContourIntegral|FilledVerySmallSquare|CapitalDifferentialD|OpenCurlyDoubleQuote|EmptyVerySmallSquare|NestedGreaterGreater|DoubleLongRightArrow|NotLeftTriangleEqual|NotGreaterSlantEqual|ReverseUpEquilibrium|DoubleLeftRightArrow|NotSquareSubsetEqual|NotDoubleVerticalBar|RightArrowLeftArrow|NotGreaterFullEqual|NotRightTriangleBar|SquareSupersetEqual|DownLeftRightVector|DoubleLongLeftArrow|leftrightsquigarrow|LeftArrowRightArrow|NegativeMediumSpace|blacktriangleright|RightDownVectorBar|PrecedesSlantEqual|RightDoubleBracket|SucceedsSlantEqual|NotLeftTriangleBar|RightTriangleEqual|SquareIntersection|RightDownTeeVector|ReverseEquilibrium|NegativeThickSpace|longleftrightarrow|Longleftrightarrow|LongLeftRightArrow|DownRightTeeVector|DownRightVectorBar|GreaterSlantEqual|SquareSubsetEqual|LeftDownVectorBar|LeftDoubleBracket|VerticalSeparator|rightleftharpoons|NotGreaterGreater|NotSquareSuperset|blacktriangleleft|blacktriangledown|NegativeThinSpace|LeftDownTeeVector|NotLessSlantEqual|leftrightharpoons|DoubleUpDownArrow|DoubleVerticalBar|LeftTriangleEqual|FilledSmallSquare|twoheadrightarrow|NotNestedLessLess|DownLeftTeeVector|DownLeftVectorBar|RightAngleBracket|NotTildeFullEqual|NotReverseElement|RightUpDownVector|DiacriticalTilde|NotSucceedsTilde|circlearrowright|NotPrecedesEqual|rightharpoondown|DoubleRightArrow|NotSucceedsEqual|NonBreakingSpace|NotRightTriangle|LessEqualGreater|RightUpTeeVector|LeftAngleBracket|GreaterFullEqual|DownArrowUpArrow|RightUpVectorBar|twoheadleftarrow|GreaterEqualLess|downharpoonright|RightTriangleBar|ntrianglerighteq|NotSupersetEqual|LeftUpDownVector|DiacriticalAcute|rightrightarrows|vartriangleright|UpArrowDownArrow|DiacriticalGrave|UnderParenthesis|EmptySmallSquare|LeftUpVectorBar|leftrightarrows|DownRightVector|downharpoonleft|trianglerighteq|ShortRightArrow|OverParenthesis|DoubleLeftArrow|DoubleDownArrow|NotSquareSubset|bigtriangledown|ntrianglelefteq|UpperRightArrow|curvearrowright|vartriangleleft|NotLeftTriangle|nleftrightarrow|LowerRightArrow|NotHumpDownHump|NotGreaterTilde|rightthreetimes|LeftUpTeeVector|NotGreaterEqual|straightepsilon|LeftTriangleBar|rightsquigarrow|ContourIntegral|rightleftarrows|CloseCurlyQuote|RightDownVector|LeftRightVector|nLeftrightarrow|leftharpoondown|circlearrowleft|SquareSuperset|OpenCurlyQuote|hookrightarrow|HorizontalLine|DiacriticalDot|NotLessGreater|ntriangleright|DoubleRightTee|InvisibleComma|InvisibleTimes|LowerLeftArrow|DownLeftVector|NotSubsetEqual|curvearrowleft|trianglelefteq|NotVerticalBar|TildeFullEqual|downdownarrows|NotGreaterLess|RightTeeVector|ZeroWidthSpace|looparrowright|LongRightArrow|doublebarwedge|ShortLeftArrow|ShortDownArrow|RightVectorBar|GreaterGreater|ReverseElement|rightharpoonup|LessSlantEqual|leftthreetimes|upharpoonright|rightarrowtail|LeftDownVector|Longrightarrow|NestedLessLess|UpperLeftArrow|nshortparallel|leftleftarrows|leftrightarrow|Leftrightarrow|LeftRightArrow|longrightarrow|upharpoonleft|RightArrowBar|ApplyFunction|LeftTeeVector|leftarrowtail|NotEqualTilde|varsubsetneqq|varsupsetneqq|RightTeeArrow|SucceedsEqual|SucceedsTilde|LeftVectorBar|SupersetEqual|hookleftarrow|DifferentialD|VerticalTilde|VeryThinSpace|blacktriangle|bigtriangleup|LessFullEqual|divideontimes|leftharpoonup|UpEquilibrium|ntriangleleft|RightTriangle|measuredangle|shortparallel|longleftarrow|Longleftarrow|LongLeftArrow|DoubleLeftTee|Poincareplane|PrecedesEqual|triangleright|DoubleUpArrow|RightUpVector|fallingdotseq|looparrowleft|PrecedesTilde|NotTildeEqual|NotTildeTilde|smallsetminus|Proportional|triangleleft|triangledown|UnderBracket|NotHumpEqual|exponentiale|ExponentialE|NotLessTilde|HilbertSpace|RightCeiling|blacklozenge|varsupsetneq|HumpDownHump|GreaterEqual|VerticalLine|LeftTeeArrow|NotLessEqual|DownTeeArrow|LeftTriangle|varsubsetneq|Intersection|NotCongruent|DownArrowBar|LeftUpVector|LeftArrowBar|risingdotseq|GreaterTilde|RoundImplies|SquareSubset|ShortUpArrow|NotSuperset|quaternions|precnapprox|backepsilon|preccurlyeq|OverBracket|blacksquare|MediumSpace|VerticalBar|circledcirc|circleddash|CircleMinus|CircleTimes|LessGreater|curlyeqprec|curlyeqsucc|diamondsuit|UpDownArrow|Updownarrow|RuleDelayed|Rrightarrow|updownarrow|RightVector|nRightarrow|nrightarrow|eqslantless|LeftCeiling|Equilibrium|SmallCircle|expectation|NotSucceeds|thickapprox|GreaterLess|SquareUnion|NotPrecedes|NotLessLess|straightphi|succnapprox|succcurlyeq|SubsetEqual|sqsupseteq|Proportion|Laplacetrf|ImaginaryI|supsetneqq|NotGreater|gtreqqless|NotElement|ThickSpace|TildeEqual|TildeTilde|Fouriertrf|rmoustache|EqualTilde|eqslantgtr|UnderBrace|LeftVector|UpArrowBar|nLeftarrow|nsubseteqq|subsetneqq|nsupseteqq|nleftarrow|succapprox|lessapprox|UpTeeArrow|upuparrows|curlywedge|lesseqqgtr|varepsilon|varnothing|RightFloor|complement|CirclePlus|sqsubseteq|Lleftarrow|circledast|RightArrow|Rightarrow|rightarrow|lmoustache|Bernoullis|precapprox|mapstoleft|mapstodown|longmapsto|dotsquare|downarrow|DoubleDot|nsubseteq|supsetneq|leftarrow|nsupseteq|subsetneq|ThinSpace|ngeqslant|subseteqq|HumpEqual|NotSubset|triangleq|NotCupCap|lesseqgtr|heartsuit|TripleDot|Leftarrow|Coproduct|Congruent|varpropto|complexes|gvertneqq|LeftArrow|LessTilde|supseteqq|MinusPlus|CircleDot|nleqslant|NotExists|gtreqless|nparallel|UnionPlus|LeftFloor|checkmark|CenterDot|centerdot|Mellintrf|gtrapprox|bigotimes|OverBrace|spadesuit|therefore|pitchfork|rationals|PlusMinus|Backslash|Therefore|DownBreve|backsimeq|backprime|DownArrow|nshortmid|Downarrow|lvertneqq|eqvparsl|imagline|imagpart|infintie|integers|Integral|intercal|LessLess|Uarrocir|intlarhk|sqsupset|angmsdaf|sqsubset|llcorner|vartheta|cupbrcap|lnapprox|Superset|SuchThat|succnsim|succneqq|angmsdag|biguplus|curlyvee|trpezium|Succeeds|NotTilde|bigwedge|angmsdah|angrtvbd|triminus|cwconint|fpartint|lrcorner|smeparsl|subseteq|urcorner|lurdshar|laemptyv|DDotrahd|approxeq|ldrushar|awconint|mapstoup|backcong|shortmid|triangle|geqslant|gesdotol|timesbar|circledR|circledS|setminus|multimap|naturals|scpolint|ncongdot|RightTee|boxminus|gnapprox|boxtimes|andslope|thicksim|angmsdaa|varsigma|cirfnint|rtriltri|angmsdab|rppolint|angmsdac|barwedge|drbkarow|clubsuit|thetasym|bsolhsub|capbrcup|dzigrarr|doteqdot|DotEqual|dotminus|UnderBar|NotEqual|realpart|otimesas|ulcorner|hksearow|hkswarow|parallel|PartialD|elinters|emptyset|plusacir|bbrktbrk|angmsdad|pointint|bigoplus|angmsdae|Precedes|bigsqcup|varkappa|notindot|supseteq|precneqq|precnsim|profalar|profline|profsurf|leqslant|lesdotor|raemptyv|subplus|notnivb|notnivc|subrarr|zigrarr|vzigzag|submult|subedot|Element|between|cirscir|larrbfs|larrsim|lotimes|lbrksld|lbrkslu|lozenge|ldrdhar|dbkarow|bigcirc|epsilon|simrarr|simplus|ltquest|Epsilon|luruhar|gtquest|maltese|npolint|eqcolon|npreceq|bigodot|ddagger|gtrless|bnequiv|harrcir|ddotseq|equivDD|backsim|demptyv|nsqsube|nsqsupe|Upsilon|nsubset|upsilon|minusdu|nsucceq|swarrow|nsupset|coloneq|searrow|boxplus|napprox|natural|asympeq|alefsym|congdot|nearrow|bigstar|diamond|supplus|tritime|LeftTee|nvinfin|triplus|NewLine|nvltrie|nvrtrie|nwarrow|nexists|Diamond|ruluhar|Implies|supmult|angzarr|suplarr|suphsub|questeq|because|digamma|Because|olcross|bemptyv|omicron|Omicron|rotimes|NoBreak|intprod|angrtvb|orderof|uwangle|suphsol|lesdoto|orslope|DownTee|realine|cudarrl|rdldhar|OverBar|supedot|lessdot|supdsub|topfork|succsim|rbrkslu|rbrksld|pertenk|cudarrr|isindot|planckh|lessgtr|pluscir|gesdoto|plussim|plustwo|lesssim|cularrp|rarrsim|Cayleys|notinva|notinvb|notinvc|UpArrow|Uparrow|uparrow|NotLess|dwangle|precsim|Product|curarrm|Cconint|dotplus|rarrbfs|ccupssm|Cedilla|cemptyv|notniva|quatint|frac35|frac38|frac45|frac56|frac58|frac78|tridot|xoplus|gacute|gammad|Gammad|lfisht|lfloor|bigcup|sqsupe|gbreve|Gbreve|lharul|sqsube|sqcups|Gcedil|apacir|llhard|lmidot|Lmidot|lmoust|andand|sqcaps|approx|Abreve|spades|circeq|tprime|divide|topcir|Assign|topbot|gesdot|divonx|xuplus|timesd|gesles|atilde|solbar|SOFTcy|loplus|timesb|lowast|lowbar|dlcorn|dlcrop|softcy|dollar|lparlt|thksim|lrhard|Atilde|lsaquo|smashp|bigvee|thinsp|wreath|bkarow|lsquor|lstrok|Lstrok|lthree|ltimes|ltlarr|DotDot|simdot|ltrPar|weierp|xsqcup|angmsd|sigmav|sigmaf|zeetrf|Zcaron|zcaron|mapsto|vsupne|thetav|cirmid|marker|mcomma|Zacute|vsubnE|there4|gtlPar|vsubne|bottom|gtrarr|SHCHcy|shchcy|midast|midcir|middot|minusb|minusd|gtrdot|bowtie|sfrown|mnplus|models|colone|seswar|Colone|mstpos|searhk|gtrsim|nacute|Nacute|boxbox|telrec|hairsp|Tcedil|nbumpe|scnsim|ncaron|Ncaron|ncedil|Ncedil|hamilt|Scedil|nearhk|hardcy|HARDcy|tcedil|Tcaron|commat|nequiv|nesear|tcaron|target|hearts|nexist|varrho|scedil|Scaron|scaron|hellip|Sacute|sacute|hercon|swnwar|compfn|rtimes|rthree|rsquor|rsaquo|zacute|wedgeq|homtht|barvee|barwed|Barwed|rpargt|horbar|conint|swarhk|roplus|nltrie|hslash|hstrok|Hstrok|rmoust|Conint|bprime|hybull|hyphen|iacute|Iacute|supsup|supsub|supsim|varphi|coprod|brvbar|agrave|Supset|supset|igrave|Igrave|notinE|Agrave|iiiint|iinfin|copysr|wedbar|Verbar|vangrt|becaus|incare|verbar|inodot|bullet|drcorn|intcal|drcrop|cularr|vellip|Utilde|bumpeq|cupcap|dstrok|Dstrok|CupCap|cupcup|cupdot|eacute|Eacute|supdot|iquest|easter|ecaron|Ecaron|ecolon|isinsv|utilde|itilde|Itilde|curarr|succeq|Bumpeq|cacute|ulcrop|nparsl|Cacute|nprcue|egrave|Egrave|nrarrc|nrarrw|subsup|subsub|nrtrie|jsercy|nsccue|Jsercy|kappav|kcedil|Kcedil|subsim|ulcorn|nsimeq|egsdot|veebar|kgreen|capand|elsdot|Subset|subset|curren|aacute|lacute|Lacute|emptyv|ntilde|Ntilde|lagran|lambda|Lambda|capcap|Ugrave|langle|subdot|emsp13|numero|emsp14|nvdash|nvDash|nVdash|nVDash|ugrave|ufisht|nvHarr|larrfs|nvlArr|larrhk|larrlp|larrpl|nvrArr|Udblac|nwarhk|larrtl|nwnear|oacute|Oacute|latail|lAtail|sstarf|lbrace|odblac|Odblac|lbrack|udblac|odsold|eparsl|lcaron|Lcaron|ograve|Ograve|lcedil|Lcedil|Aacute|ssmile|ssetmn|squarf|ldquor|capcup|ominus|cylcty|rharul|eqcirc|dagger|rfloor|rfisht|Dagger|daleth|equals|origof|capdot|equest|dcaron|Dcaron|rdquor|oslash|Oslash|otilde|Otilde|otimes|Otimes|urcrop|Ubreve|ubreve|Yacute|Uacute|uacute|Rcedil|rcedil|urcorn|parsim|Rcaron|Vdashl|rcaron|Tstrok|percnt|period|permil|Exists|yacute|rbrack|rbrace|phmmat|ccaron|Ccaron|planck|ccedil|plankv|tstrok|female|plusdo|plusdu|ffilig|plusmn|ffllig|Ccedil|rAtail|dfisht|bernou|ratail|Rarrtl|rarrtl|angsph|rarrpl|rarrlp|rarrhk|xwedge|xotime|forall|ForAll|Vvdash|vsupnE|preceq|bigcap|frac12|frac13|frac14|primes|rarrfs|prnsim|frac15|Square|frac16|square|lesdot|frac18|frac23|propto|prurel|rarrap|rangle|puncsp|frac25|Racute|qprime|racute|lesges|frac34|abreve|AElig|eqsim|utdot|setmn|urtri|Equal|Uring|seArr|uring|searr|dashv|Dashv|mumap|nabla|iogon|Iogon|sdote|sdotb|scsim|napid|napos|equiv|natur|Acirc|dblac|erarr|nbump|iprod|erDot|ucirc|awint|esdot|angrt|ncong|isinE|scnap|Scirc|scirc|ndash|isins|Ubrcy|nearr|neArr|isinv|nedot|ubrcy|acute|Ycirc|iukcy|Iukcy|xutri|nesim|caret|jcirc|Jcirc|caron|twixt|ddarr|sccue|exist|jmath|sbquo|ngeqq|angst|ccaps|lceil|ngsim|UpTee|delta|Delta|rtrif|nharr|nhArr|nhpar|rtrie|jukcy|Jukcy|kappa|rsquo|Kappa|nlarr|nlArr|TSHcy|rrarr|aogon|Aogon|fflig|xrarr|tshcy|ccirc|nleqq|filig|upsih|nless|dharl|nlsim|fjlig|ropar|nltri|dharr|robrk|roarr|fllig|fltns|roang|rnmid|subnE|subne|lAarr|trisb|Ccirc|acirc|ccups|blank|VDash|forkv|Vdash|langd|cedil|blk12|blk14|laquo|strns|diams|notin|vDash|larrb|blk34|block|disin|uplus|vdash|vBarv|aelig|starf|Wedge|check|xrArr|lates|lbarr|lBarr|notni|lbbrk|bcong|frasl|lbrke|frown|vrtri|vprop|vnsup|gamma|Gamma|wedge|xodot|bdquo|srarr|doteq|ldquo|boxdl|boxdL|gcirc|Gcirc|boxDl|boxDL|boxdr|boxdR|boxDr|TRADE|trade|rlhar|boxDR|vnsub|npart|vltri|rlarr|boxhd|boxhD|nprec|gescc|nrarr|nrArr|boxHd|boxHD|boxhu|boxhU|nrtri|boxHu|clubs|boxHU|times|colon|Colon|gimel|xlArr|Tilde|nsime|tilde|nsmid|nspar|THORN|thorn|xlarr|nsube|nsubE|thkap|xhArr|comma|nsucc|boxul|boxuL|nsupe|nsupE|gneqq|gnsim|boxUl|boxUL|grave|boxur|boxuR|boxUr|boxUR|lescc|angle|bepsi|boxvh|varpi|boxvH|numsp|Theta|gsime|gsiml|theta|boxVh|boxVH|boxvl|gtcir|gtdot|boxvL|boxVl|boxVL|crarr|cross|Cross|nvsim|boxvr|nwarr|nwArr|sqsup|dtdot|Uogon|lhard|lharu|dtrif|ocirc|Ocirc|lhblk|duarr|odash|sqsub|Hacek|sqcup|llarr|duhar|oelig|OElig|ofcir|boxvR|uogon|lltri|boxVr|csube|uuarr|ohbar|csupe|ctdot|olarr|olcir|harrw|oline|sqcap|omacr|Omacr|omega|Omega|boxVR|aleph|lneqq|lnsim|loang|loarr|rharu|lobrk|hcirc|operp|oplus|rhard|Hcirc|orarr|Union|order|ecirc|Ecirc|cuepr|szlig|cuesc|breve|reals|eDDot|Breve|hoarr|lopar|utrif|rdquo|Umacr|umacr|efDot|swArr|ultri|alpha|rceil|ovbar|swarr|Wcirc|wcirc|smtes|smile|bsemi|lrarr|aring|parsl|lrhar|bsime|uhblk|lrtri|cupor|Aring|uharr|uharl|slarr|rbrke|bsolb|lsime|rbbrk|RBarr|lsimg|phone|rBarr|rbarr|icirc|lsquo|Icirc|emacr|Emacr|ratio|simne|plusb|simlE|simgE|simeq|pluse|ltcir|ltdot|empty|xharr|xdtri|iexcl|Alpha|ltrie|rarrw|pound|ltrif|xcirc|bumpe|prcue|bumpE|asymp|amacr|cuvee|Sigma|sigma|iiint|udhar|iiota|ijlig|IJlig|supnE|imacr|Imacr|prime|Prime|image|prnap|eogon|Eogon|rarrc|mdash|mDDot|cuwed|imath|supne|imped|Amacr|udarr|prsim|micro|rarrb|cwint|raquo|infin|eplus|range|rangd|Ucirc|radic|minus|amalg|veeeq|rAarr|epsiv|ycirc|quest|sharp|quot|zwnj|Qscr|race|qscr|Qopf|qopf|qint|rang|Rang|Zscr|zscr|Zopf|zopf|rarr|rArr|Rarr|Pscr|pscr|prop|prod|prnE|prec|ZHcy|zhcy|prap|Zeta|zeta|Popf|popf|Zdot|plus|zdot|Yuml|yuml|phiv|YUcy|yucy|Yscr|yscr|perp|Yopf|yopf|part|para|YIcy|Ouml|rcub|yicy|YAcy|rdca|ouml|osol|Oscr|rdsh|yacy|real|oscr|xvee|andd|rect|andv|Xscr|oror|ordm|ordf|xscr|ange|aopf|Aopf|rHar|Xopf|opar|Oopf|xopf|xnis|rhov|oopf|omid|xmap|oint|apid|apos|ogon|ascr|Ascr|odot|odiv|xcup|xcap|ocir|oast|nvlt|nvle|nvgt|nvge|nvap|Wscr|wscr|auml|ntlg|ntgl|nsup|nsub|nsim|Nscr|nscr|nsce|Wopf|ring|npre|wopf|npar|Auml|Barv|bbrk|Nopf|nopf|nmid|nLtv|beta|ropf|Ropf|Beta|beth|nles|rpar|nleq|bnot|bNot|nldr|NJcy|rscr|Rscr|Vscr|vscr|rsqb|njcy|bopf|nisd|Bopf|rtri|Vopf|nGtv|ngtr|vopf|boxh|boxH|boxv|nges|ngeq|boxV|bscr|scap|Bscr|bsim|Vert|vert|bsol|bull|bump|caps|cdot|ncup|scnE|ncap|nbsp|napE|Cdot|cent|sdot|Vbar|nang|vBar|chcy|Mscr|mscr|sect|semi|CHcy|Mopf|mopf|sext|circ|cire|mldr|mlcp|cirE|comp|shcy|SHcy|vArr|varr|cong|copf|Copf|copy|COPY|malt|male|macr|lvnE|cscr|ltri|sime|ltcc|simg|Cscr|siml|csub|Uuml|lsqb|lsim|uuml|csup|Lscr|lscr|utri|smid|lpar|cups|smte|lozf|darr|Lopf|Uscr|solb|lopf|sopf|Sopf|lneq|uscr|spar|dArr|lnap|Darr|dash|Sqrt|LJcy|ljcy|lHar|dHar|Upsi|upsi|diam|lesg|djcy|DJcy|leqq|dopf|Dopf|dscr|Dscr|dscy|ldsh|ldca|squf|DScy|sscr|Sscr|dsol|lcub|late|star|Star|Uopf|Larr|lArr|larr|uopf|dtri|dzcy|sube|subE|Lang|lang|Kscr|kscr|Kopf|kopf|KJcy|kjcy|KHcy|khcy|DZcy|ecir|edot|eDot|Jscr|jscr|succ|Jopf|jopf|Edot|uHar|emsp|ensp|Iuml|iuml|eopf|isin|Iscr|iscr|Eopf|epar|sung|epsi|escr|sup1|sup2|sup3|Iota|iota|supe|supE|Iopf|iopf|IOcy|iocy|Escr|esim|Esim|imof|Uarr|QUOT|uArr|uarr|euml|IEcy|iecy|Idot|Euml|euro|excl|Hscr|hscr|Hopf|hopf|TScy|tscy|Tscr|hbar|tscr|flat|tbrk|fnof|hArr|harr|half|fopf|Fopf|tdot|gvnE|fork|trie|gtcc|fscr|Fscr|gdot|gsim|Gscr|gscr|Gopf|gopf|gneq|Gdot|tosa|gnap|Topf|topf|geqq|toea|GJcy|gjcy|tint|gesl|mid|Sfr|ggg|top|ges|gla|glE|glj|geq|gne|gEl|gel|gnE|Gcy|gcy|gap|Tfr|tfr|Tcy|tcy|Hat|Tau|Ffr|tau|Tab|hfr|Hfr|ffr|Fcy|fcy|icy|Icy|iff|ETH|eth|ifr|Ifr|Eta|eta|int|Int|Sup|sup|ucy|Ucy|Sum|sum|jcy|ENG|ufr|Ufr|eng|Jcy|jfr|els|ell|egs|Efr|efr|Jfr|uml|kcy|Kcy|Ecy|ecy|kfr|Kfr|lap|Sub|sub|lat|lcy|Lcy|leg|Dot|dot|lEg|leq|les|squ|div|die|lfr|Lfr|lgE|Dfr|dfr|Del|deg|Dcy|dcy|lne|lnE|sol|loz|smt|Cup|lrm|cup|lsh|Lsh|sim|shy|map|Map|mcy|Mcy|mfr|Mfr|mho|gfr|Gfr|sfr|cir|Chi|chi|nap|Cfr|vcy|Vcy|cfr|Scy|scy|ncy|Ncy|vee|Vee|Cap|cap|nfr|scE|sce|Nfr|nge|ngE|nGg|vfr|Vfr|ngt|bot|nGt|nis|niv|Rsh|rsh|nle|nlE|bne|Bfr|bfr|nLl|nlt|nLt|Bcy|bcy|not|Not|rlm|wfr|Wfr|npr|nsc|num|ocy|ast|Ocy|ofr|xfr|Xfr|Ofr|ogt|ohm|apE|olt|Rho|ape|rho|Rfr|rfr|ord|REG|ang|reg|orv|And|and|AMP|Rcy|amp|Afr|ycy|Ycy|yen|yfr|Yfr|rcy|par|pcy|Pcy|pfr|Pfr|phi|Phi|afr|Acy|acy|zcy|Zcy|piv|acE|acd|zfr|Zfr|pre|prE|psi|Psi|qfr|Qfr|zwj|Or|ge|Gg|gt|gg|el|oS|lt|Lt|LT|Re|lg|gl|eg|ne|Im|it|le|DD|wp|wr|nu|Nu|dd|lE|Sc|sc|pi|Pi|ee|af|ll|Ll|rx|gE|xi|pm|Xi|ic|pr|Pr|in|ni|mp|mu|ac|Mu|or|ap|Gt|GT|ii);|&(Aacute|Agrave|Atilde|Ccedil|Eacute|Egrave|Iacute|Igrave|Ntilde|Oacute|Ograve|Oslash|Otilde|Uacute|Ugrave|Yacute|aacute|agrave|atilde|brvbar|ccedil|curren|divide|eacute|egrave|frac12|frac14|frac34|iacute|igrave|iquest|middot|ntilde|oacute|ograve|oslash|otilde|plusmn|uacute|ugrave|yacute|AElig|Acirc|Aring|Ecirc|Icirc|Ocirc|THORN|Ucirc|acirc|acute|aelig|aring|cedil|ecirc|icirc|iexcl|laquo|micro|ocirc|pound|raquo|szlig|thorn|times|ucirc|Auml|COPY|Euml|Iuml|Ouml|QUOT|Uuml|auml|cent|copy|euml|iuml|macr|nbsp|ordf|ordm|ouml|para|quot|sect|sup1|sup2|sup3|uuml|yuml|AMP|ETH|REG|amp|deg|eth|not|reg|shy|uml|yen|GT|LT|gt|lt)(?!;)([=a-zA-Z0-9]?)|&#([0-9]+)(;?)|&#[xX]([a-fA-F0-9]+)(;?)|&([0-9a-zA-Z]+)/g,f={aacute:"á",Aacute:"Á",abreve:"ă",Abreve:"Ă",ac:"∾",acd:"∿",acE:"∾̳",acirc:"â",Acirc:"Â",acute:"´",acy:"а",Acy:"А",aelig:"æ",AElig:"Æ",af:"⁡",afr:"𝔞",Afr:"𝔄",agrave:"à",Agrave:"À",alefsym:"ℵ",aleph:"ℵ",alpha:"α",Alpha:"Α",amacr:"ā",Amacr:"Ā",amalg:"⨿",amp:"&",AMP:"&",and:"∧",And:"⩓",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",Aogon:"Ą",aopf:"𝕒",Aopf:"𝔸",ap:"≈",apacir:"⩯",ape:"≊",apE:"⩰",apid:"≋",apos:"'",ApplyFunction:"⁡",approx:"≈",approxeq:"≊",aring:"å",Aring:"Å",ascr:"𝒶",Ascr:"𝒜",Assign:"≔",ast:"*",asymp:"≈",asympeq:"≍",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",awconint:"∳",awint:"⨑",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",Backslash:"∖",Barv:"⫧",barvee:"⊽",barwed:"⌅",Barwed:"⌆",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",Bcy:"Б",bdquo:"„",becaus:"∵",because:"∵",Because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",Bernoullis:"ℬ",beta:"β",Beta:"Β",beth:"ℶ",between:"≬",bfr:"𝔟",Bfr:"𝔅",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bNot:"⫭",bopf:"𝕓",Bopf:"𝔹",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxbox:"⧉",boxdl:"┐",boxdL:"╕",boxDl:"╖",boxDL:"╗",boxdr:"┌",boxdR:"╒",boxDr:"╓",boxDR:"╔",boxh:"─",boxH:"═",boxhd:"┬",boxhD:"╥",boxHd:"╤",boxHD:"╦",boxhu:"┴",boxhU:"╨",boxHu:"╧",boxHU:"╩",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxuL:"╛",boxUl:"╜",boxUL:"╝",boxur:"└",boxuR:"╘",boxUr:"╙",boxUR:"╚",boxv:"│",boxV:"║",boxvh:"┼",boxvH:"╪",boxVh:"╫",boxVH:"╬",boxvl:"┤",boxvL:"╡",boxVl:"╢",boxVL:"╣",boxvr:"├",boxvR:"╞",boxVr:"╟",boxVR:"╠",bprime:"‵",breve:"˘",Breve:"˘",brvbar:"¦",bscr:"𝒷",Bscr:"ℬ",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpe:"≏",bumpE:"⪮",bumpeq:"≏",Bumpeq:"≎",cacute:"ć",Cacute:"Ć",cap:"∩",Cap:"⋒",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",CapitalDifferentialD:"ⅅ",caps:"∩︀",caret:"⁁",caron:"ˇ",Cayleys:"ℭ",ccaps:"⩍",ccaron:"č",Ccaron:"Č",ccedil:"ç",Ccedil:"Ç",ccirc:"ĉ",Ccirc:"Ĉ",Cconint:"∰",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",Cdot:"Ċ",cedil:"¸",Cedilla:"¸",cemptyv:"⦲",cent:"¢",centerdot:"·",CenterDot:"·",cfr:"𝔠",Cfr:"ℭ",chcy:"ч",CHcy:"Ч",check:"✓",checkmark:"✓",chi:"χ",Chi:"Χ",cir:"○",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",CircleDot:"⊙",circledR:"®",circledS:"Ⓢ",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",cire:"≗",cirE:"⧃",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",clubs:"♣",clubsuit:"♣",colon:":",Colon:"∷",colone:"≔",Colone:"⩴",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",Congruent:"≡",conint:"∮",Conint:"∯",ContourIntegral:"∮",copf:"𝕔",Copf:"ℂ",coprod:"∐",Coproduct:"∐",copy:"©",COPY:"©",copysr:"℗",CounterClockwiseContourIntegral:"∳",crarr:"↵",cross:"✗",Cross:"⨯",cscr:"𝒸",Cscr:"𝒞",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",Cup:"⋓",cupbrcap:"⩈",cupcap:"⩆",CupCap:"≍",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dagger:"†",Dagger:"‡",daleth:"ℸ",darr:"↓",dArr:"⇓",Darr:"↡",dash:"‐",dashv:"⊣",Dashv:"⫤",dbkarow:"⤏",dblac:"˝",dcaron:"ď",Dcaron:"Ď",dcy:"д",Dcy:"Д",dd:"ⅆ",DD:"ⅅ",ddagger:"‡",ddarr:"⇊",DDotrahd:"⤑",ddotseq:"⩷",deg:"°",Del:"∇",delta:"δ",Delta:"Δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",Dfr:"𝔇",dHar:"⥥",dharl:"⇃",dharr:"⇂",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",diam:"⋄",diamond:"⋄",Diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",DifferentialD:"ⅆ",digamma:"ϝ",disin:"⋲",div:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",DJcy:"Ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",Dopf:"𝔻",dot:"˙",Dot:"¨",DotDot:"⃜",doteq:"≐",doteqdot:"≑",DotEqual:"≐",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",downarrow:"↓",Downarrow:"⇓",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",Dscr:"𝒟",dscy:"ѕ",DScy:"Ѕ",dsol:"⧶",dstrok:"đ",Dstrok:"Đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",DZcy:"Џ",dzigrarr:"⟿",eacute:"é",Eacute:"É",easter:"⩮",ecaron:"ě",Ecaron:"Ě",ecir:"≖",ecirc:"ê",Ecirc:"Ê",ecolon:"≕",ecy:"э",Ecy:"Э",eDDot:"⩷",edot:"ė",eDot:"≑",Edot:"Ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",Efr:"𝔈",eg:"⪚",egrave:"è",Egrave:"È",egs:"⪖",egsdot:"⪘",el:"⪙",Element:"∈",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",Emacr:"Ē",empty:"∅",emptyset:"∅",EmptySmallSquare:"◻",emptyv:"∅",EmptyVerySmallSquare:"▫",emsp:" ",emsp13:" ",emsp14:" ",eng:"ŋ",ENG:"Ŋ",ensp:" ",eogon:"ę",Eogon:"Ę",eopf:"𝕖",Eopf:"𝔼",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",Epsilon:"Ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",Equal:"⩵",equals:"=",EqualTilde:"≂",equest:"≟",Equilibrium:"⇌",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erarr:"⥱",erDot:"≓",escr:"ℯ",Escr:"ℰ",esdot:"≐",esim:"≂",Esim:"⩳",eta:"η",Eta:"Η",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",euro:"€",excl:"!",exist:"∃",Exists:"∃",expectation:"ℰ",exponentiale:"ⅇ",ExponentialE:"ⅇ",fallingdotseq:"≒",fcy:"ф",Fcy:"Ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",Ffr:"𝔉",filig:"fi",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",Fopf:"𝔽",forall:"∀",ForAll:"∀",fork:"⋔",forkv:"⫙",Fouriertrf:"ℱ",fpartint:"⨍",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",Fscr:"ℱ",gacute:"ǵ",gamma:"γ",Gamma:"Γ",gammad:"ϝ",Gammad:"Ϝ",gap:"⪆",gbreve:"ğ",Gbreve:"Ğ",Gcedil:"Ģ",gcirc:"ĝ",Gcirc:"Ĝ",gcy:"г",Gcy:"Г",gdot:"ġ",Gdot:"Ġ",ge:"≥",gE:"≧",gel:"⋛",gEl:"⪌",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",Gfr:"𝔊",gg:"≫",Gg:"⋙",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",GJcy:"Ѓ",gl:"≷",gla:"⪥",glE:"⪒",glj:"⪤",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gnE:"≩",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",Gopf:"𝔾",grave:"`",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",gscr:"ℊ",Gscr:"𝒢",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",Gt:"≫",GT:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",Hacek:"ˇ",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",HARDcy:"Ъ",harr:"↔",hArr:"⇔",harrcir:"⥈",harrw:"↭",Hat:"^",hbar:"ℏ",hcirc:"ĥ",Hcirc:"Ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",Hfr:"ℌ",HilbertSpace:"ℋ",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",Hopf:"ℍ",horbar:"―",HorizontalLine:"─",hscr:"𝒽",Hscr:"ℋ",hslash:"ℏ",hstrok:"ħ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",hybull:"⁃",hyphen:"‐",iacute:"í",Iacute:"Í",ic:"⁣",icirc:"î",Icirc:"Î",icy:"и",Icy:"И",Idot:"İ",iecy:"е",IEcy:"Е",iexcl:"¡",iff:"⇔",ifr:"𝔦",Ifr:"ℑ",igrave:"ì",Igrave:"Ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",IJlig:"IJ",Im:"ℑ",imacr:"ī",Imacr:"Ī",image:"ℑ",ImaginaryI:"ⅈ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",Implies:"⇒",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",Int:"∬",intcal:"⊺",integers:"ℤ",Integral:"∫",intercal:"⊺",Intersection:"⋂",intlarhk:"⨗",intprod:"⨼",InvisibleComma:"⁣",InvisibleTimes:"⁢",iocy:"ё",IOcy:"Ё",iogon:"į",Iogon:"Į",iopf:"𝕚",Iopf:"𝕀",iota:"ι",Iota:"Ι",iprod:"⨼",iquest:"¿",iscr:"𝒾",Iscr:"ℐ",isin:"∈",isindot:"⋵",isinE:"⋹",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",Itilde:"Ĩ",iukcy:"і",Iukcy:"І",iuml:"ï",Iuml:"Ï",jcirc:"ĵ",Jcirc:"Ĵ",jcy:"й",Jcy:"Й",jfr:"𝔧",Jfr:"𝔍",jmath:"ȷ",jopf:"𝕛",Jopf:"𝕁",jscr:"𝒿",Jscr:"𝒥",jsercy:"ј",Jsercy:"Ј",jukcy:"є",Jukcy:"Є",kappa:"κ",Kappa:"Κ",kappav:"ϰ",kcedil:"ķ",Kcedil:"Ķ",kcy:"к",Kcy:"К",kfr:"𝔨",Kfr:"𝔎",kgreen:"ĸ",khcy:"х",KHcy:"Х",kjcy:"ќ",KJcy:"Ќ",kopf:"𝕜",Kopf:"𝕂",kscr:"𝓀",Kscr:"𝒦",lAarr:"⇚",lacute:"ĺ",Lacute:"Ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",Lambda:"Λ",lang:"⟨",Lang:"⟪",langd:"⦑",langle:"⟨",lap:"⪅",Laplacetrf:"ℒ",laquo:"«",larr:"←",lArr:"⇐",Larr:"↞",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",lAtail:"⤛",late:"⪭",lates:"⪭︀",lbarr:"⤌",lBarr:"⤎",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",Lcaron:"Ľ",lcedil:"ļ",Lcedil:"Ļ",lceil:"⌈",lcub:"{",lcy:"л",Lcy:"Л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",lE:"≦",LeftAngleBracket:"⟨",leftarrow:"←",Leftarrow:"⇐",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",leftarrowtail:"↢",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",Leftrightarrow:"⇔",LeftRightArrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",leftthreetimes:"⋋",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",leg:"⋚",lEg:"⪋",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",lessgtr:"≶",LessLess:"⪡",lesssim:"≲",LessSlantEqual:"⩽",LessTilde:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",Lfr:"𝔏",lg:"≶",lgE:"⪑",lHar:"⥢",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",LJcy:"Љ",ll:"≪",Ll:"⋘",llarr:"⇇",llcorner:"⌞",Lleftarrow:"⇚",llhard:"⥫",lltri:"◺",lmidot:"ŀ",Lmidot:"Ŀ",lmoust:"⎰",lmoustache:"⎰",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lnE:"≨",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",Longleftarrow:"⟸",LongLeftArrow:"⟵",longleftrightarrow:"⟷",Longleftrightarrow:"⟺",LongLeftRightArrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",Longrightarrow:"⟹",LongRightArrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",Lopf:"𝕃",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",LowerLeftArrow:"↙",LowerRightArrow:"↘",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",Lscr:"ℒ",lsh:"↰",Lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",Lstrok:"Ł",lt:"<",Lt:"≪",LT:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltri:"◃",ltrie:"⊴",ltrif:"◂",ltrPar:"⦖",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",Map:"⤅",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",Mcy:"М",mdash:"—",mDDot:"∺",measuredangle:"∡",MediumSpace:" ",Mellintrf:"ℳ",mfr:"𝔪",Mfr:"𝔐",mho:"℧",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",MinusPlus:"∓",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",Mopf:"𝕄",mp:"∓",mscr:"𝓂",Mscr:"ℳ",mstpos:"∾",mu:"μ",Mu:"Μ",multimap:"⊸",mumap:"⊸",nabla:"∇",nacute:"ń",Nacute:"Ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",Ncaron:"Ň",ncedil:"ņ",Ncedil:"Ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",Ncy:"Н",ndash:"–",ne:"≠",nearhk:"⤤",nearr:"↗",neArr:"⇗",nearrow:"↗",nedot:"≐̸",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",nequiv:"≢",nesear:"⤨",nesim:"≂̸",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",nexist:"∄",nexists:"∄",nfr:"𝔫",Nfr:"𝔑",nge:"≱",ngE:"≧̸",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"⋙̸",ngsim:"≵",ngt:"≯",nGt:"≫⃒",ngtr:"≯",nGtv:"≫̸",nharr:"↮",nhArr:"⇎",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",NJcy:"Њ",nlarr:"↚",nlArr:"⇍",nldr:"‥",nle:"≰",nlE:"≦̸",nleftarrow:"↚",nLeftarrow:"⇍",nleftrightarrow:"↮",nLeftrightarrow:"⇎",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nLl:"⋘̸",nlsim:"≴",nlt:"≮",nLt:"≪⃒",nltri:"⋪",nltrie:"⋬",nLtv:"≪̸",nmid:"∤",NoBreak:"⁠",NonBreakingSpace:" ",nopf:"𝕟",Nopf:"ℕ",not:"¬",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",notin:"∉",notindot:"⋵̸",notinE:"⋹̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrarr:"↛",nrArr:"⇏",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nRightarrow:"⇏",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",Nscr:"𝒩",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsube:"⊈",nsubE:"⫅̸",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupe:"⊉",nsupE:"⫆̸",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"ñ",Ntilde:"Ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",Nu:"Ν",num:"#",numero:"№",numsp:" ",nvap:"≍⃒",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",nvge:"≥⃒",nvgt:">⃒",nvHarr:"⤄",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwarhk:"⤣",nwarr:"↖",nwArr:"⇖",nwarrow:"↖",nwnear:"⤧",oacute:"ó",Oacute:"Ó",oast:"⊛",ocir:"⊚",ocirc:"ô",Ocirc:"Ô",ocy:"о",Ocy:"О",odash:"⊝",odblac:"ő",Odblac:"Ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",OElig:"Œ",ofcir:"⦿",ofr:"𝔬",Ofr:"𝔒",ogon:"˛",ograve:"ò",Ograve:"Ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",Omacr:"Ō",omega:"ω",Omega:"Ω",omicron:"ο",Omicron:"Ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",Oopf:"𝕆",opar:"⦷",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",operp:"⦹",oplus:"⊕",or:"∨",Or:"⩔",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oS:"Ⓢ",oscr:"ℴ",Oscr:"𝒪",oslash:"ø",Oslash:"Ø",osol:"⊘",otilde:"õ",Otilde:"Õ",otimes:"⊗",Otimes:"⨷",otimesas:"⨶",ouml:"ö",Ouml:"Ö",ovbar:"⌽",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",par:"∥",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",PartialD:"∂",pcy:"п",Pcy:"П",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",Pfr:"𝔓",phi:"φ",Phi:"Φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",Pi:"Π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",PlusMinus:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",Poincareplane:"ℌ",pointint:"⨕",popf:"𝕡",Popf:"ℙ",pound:"£",pr:"≺",Pr:"⪻",prap:"⪷",prcue:"≼",pre:"⪯",prE:"⪳",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",Prime:"″",primes:"ℙ",prnap:"⪹",prnE:"⪵",prnsim:"⋨",prod:"∏",Product:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",Proportion:"∷",Proportional:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",Pscr:"𝒫",psi:"ψ",Psi:"Ψ",puncsp:" ",qfr:"𝔮",Qfr:"𝔔",qint:"⨌",qopf:"𝕢",Qopf:"ℚ",qprime:"⁗",qscr:"𝓆",Qscr:"𝒬",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',QUOT:'"',rAarr:"⇛",race:"∽̱",racute:"ŕ",Racute:"Ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",Rang:"⟫",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"»",rarr:"→",rArr:"⇒",Rarr:"↠",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",Rarrtl:"⤖",rarrw:"↝",ratail:"⤚",rAtail:"⤜",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rBarr:"⤏",RBarr:"⤐",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",Rcaron:"Ř",rcedil:"ŗ",Rcedil:"Ŗ",rceil:"⌉",rcub:"}",rcy:"р",Rcy:"Р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",Re:"ℜ",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"®",REG:"®",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",Rfr:"ℜ",rHar:"⥤",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",Rho:"Ρ",rhov:"ϱ",RightAngleBracket:"⟩",rightarrow:"→",Rightarrow:"⇒",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",rightarrowtail:"↣",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",rightthreetimes:"⋌",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",Ropf:"ℝ",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",Rrightarrow:"⇛",rsaquo:"›",rscr:"𝓇",Rscr:"ℛ",rsh:"↱",Rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",RuleDelayed:"⧴",ruluhar:"⥨",rx:"℞",sacute:"ś",Sacute:"Ś",sbquo:"‚",sc:"≻",Sc:"⪼",scap:"⪸",scaron:"š",Scaron:"Š",sccue:"≽",sce:"⪰",scE:"⪴",scedil:"ş",Scedil:"Ş",scirc:"ŝ",Scirc:"Ŝ",scnap:"⪺",scnE:"⪶",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",Scy:"С",sdot:"⋅",sdotb:"⊡",sdote:"⩦",searhk:"⤥",searr:"↘",seArr:"⇘",searrow:"↘",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",Sfr:"𝔖",sfrown:"⌢",sharp:"♯",shchcy:"щ",SHCHcy:"Щ",shcy:"ш",SHcy:"Ш",ShortDownArrow:"↓",ShortLeftArrow:"←",shortmid:"∣",shortparallel:"∥",ShortRightArrow:"→",ShortUpArrow:"↑",shy:"­",sigma:"σ",Sigma:"Σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",SmallCircle:"∘",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",SOFTcy:"Ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",Sopf:"𝕊",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",Sqrt:"√",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",Sscr:"𝒮",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",Star:"⋆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",Sub:"⋐",subdot:"⪽",sube:"⊆",subE:"⫅",subedot:"⫃",submult:"⫁",subne:"⊊",subnE:"⫋",subplus:"⪿",subrarr:"⥹",subset:"⊂",Subset:"⋐",subseteq:"⊆",subseteqq:"⫅",SubsetEqual:"⊆",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",SuchThat:"∋",sum:"∑",Sum:"∑",sung:"♪",sup:"⊃",Sup:"⋑",sup1:"¹",sup2:"²",sup3:"³",supdot:"⪾",supdsub:"⫘",supe:"⊇",supE:"⫆",supedot:"⫄",Superset:"⊃",SupersetEqual:"⊇",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supne:"⊋",supnE:"⫌",supplus:"⫀",supset:"⊃",Supset:"⋑",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swarhk:"⤦",swarr:"↙",swArr:"⇙",swarrow:"↙",swnwar:"⤪",szlig:"ß",Tab:"\t",target:"⌖",tau:"τ",Tau:"Τ",tbrk:"⎴",tcaron:"ť",Tcaron:"Ť",tcedil:"ţ",Tcedil:"Ţ",tcy:"т",Tcy:"Т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",Tfr:"𝔗",there4:"∴",therefore:"∴",Therefore:"∴",theta:"θ",Theta:"Θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",ThickSpace:"  ",thinsp:" ",ThinSpace:" ",thkap:"≈",thksim:"∼",thorn:"þ",THORN:"Þ",tilde:"˜",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",Topf:"𝕋",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",TRADE:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",TripleDot:"⃛",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",Tscr:"𝒯",tscy:"ц",TScy:"Ц",tshcy:"ћ",TSHcy:"Ћ",tstrok:"ŧ",Tstrok:"Ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uacute:"ú",Uacute:"Ú",uarr:"↑",uArr:"⇑",Uarr:"↟",Uarrocir:"⥉",ubrcy:"ў",Ubrcy:"Ў",ubreve:"ŭ",Ubreve:"Ŭ",ucirc:"û",Ucirc:"Û",ucy:"у",Ucy:"У",udarr:"⇅",udblac:"ű",Udblac:"Ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",Ufr:"𝔘",ugrave:"ù",Ugrave:"Ù",uHar:"⥣",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",Umacr:"Ū",uml:"¨",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",uogon:"ų",Uogon:"Ų",uopf:"𝕦",Uopf:"𝕌",uparrow:"↑",Uparrow:"⇑",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",updownarrow:"↕",Updownarrow:"⇕",UpDownArrow:"↕",UpEquilibrium:"⥮",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",UpperLeftArrow:"↖",UpperRightArrow:"↗",upsi:"υ",Upsi:"ϒ",upsih:"ϒ",upsilon:"υ",Upsilon:"Υ",UpTee:"⊥",UpTeeArrow:"↥",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",Uring:"Ů",urtri:"◹",uscr:"𝓊",Uscr:"𝒰",utdot:"⋰",utilde:"ũ",Utilde:"Ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"ü",Uuml:"Ü",uwangle:"⦧",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",vArr:"⇕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vBar:"⫨",Vbar:"⫫",vBarv:"⫩",vcy:"в",Vcy:"В",vdash:"⊢",vDash:"⊨",Vdash:"⊩",VDash:"⊫",Vdashl:"⫦",vee:"∨",Vee:"⋁",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",Verbar:"‖",vert:"|",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",vfr:"𝔳",Vfr:"𝔙",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",Vopf:"𝕍",vprop:"∝",vrtri:"⊳",vscr:"𝓋",Vscr:"𝒱",vsubne:"⊊︀",vsubnE:"⫋︀",vsupne:"⊋︀",vsupnE:"⫌︀",Vvdash:"⊪",vzigzag:"⦚",wcirc:"ŵ",Wcirc:"Ŵ",wedbar:"⩟",wedge:"∧",Wedge:"⋀",wedgeq:"≙",weierp:"℘",wfr:"𝔴",Wfr:"𝔚",wopf:"𝕨",Wopf:"𝕎",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",Wscr:"𝒲",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",Xfr:"𝔛",xharr:"⟷",xhArr:"⟺",xi:"ξ",Xi:"Ξ",xlarr:"⟵",xlArr:"⟸",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",Xopf:"𝕏",xoplus:"⨁",xotime:"⨂",xrarr:"⟶",xrArr:"⟹",xscr:"𝓍",Xscr:"𝒳",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"ý",Yacute:"Ý",yacy:"я",YAcy:"Я",ycirc:"ŷ",Ycirc:"Ŷ",ycy:"ы",Ycy:"Ы",yen:"¥",yfr:"𝔶",Yfr:"𝔜",yicy:"ї",YIcy:"Ї",yopf:"𝕪",Yopf:"𝕐",yscr:"𝓎",Yscr:"𝒴",yucy:"ю",YUcy:"Ю",yuml:"ÿ",Yuml:"Ÿ",zacute:"ź",Zacute:"Ź",zcaron:"ž",Zcaron:"Ž",zcy:"з",Zcy:"З",zdot:"ż",Zdot:"Ż",zeetrf:"ℨ",ZeroWidthSpace:"​",zeta:"ζ",Zeta:"Ζ",zfr:"𝔷",Zfr:"ℨ",zhcy:"ж",ZHcy:"Ж",zigrarr:"⇝",zopf:"𝕫",Zopf:"ℤ",zscr:"𝓏",Zscr:"𝒵",zwj:"‍",zwnj:"‌"},b={aacute:"á",Aacute:"Á",acirc:"â",Acirc:"Â",acute:"´",aelig:"æ",AElig:"Æ",agrave:"à",Agrave:"À",amp:"&",AMP:"&",aring:"å",Aring:"Å",atilde:"ã",Atilde:"Ã",auml:"ä",Auml:"Ä",brvbar:"¦",ccedil:"ç",Ccedil:"Ç",cedil:"¸",cent:"¢",copy:"©",COPY:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",Eacute:"É",ecirc:"ê",Ecirc:"Ê",egrave:"è",Egrave:"È",eth:"ð",ETH:"Ð",euml:"ë",Euml:"Ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",GT:">",iacute:"í",Iacute:"Í",icirc:"î",Icirc:"Î",iexcl:"¡",igrave:"ì",Igrave:"Ì",iquest:"¿",iuml:"ï",Iuml:"Ï",laquo:"«",lt:"<",LT:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",Ntilde:"Ñ",oacute:"ó",Oacute:"Ó",ocirc:"ô",Ocirc:"Ô",ograve:"ò",Ograve:"Ò",ordf:"ª",ordm:"º",oslash:"ø",Oslash:"Ø",otilde:"õ",Otilde:"Õ",ouml:"ö",Ouml:"Ö",para:"¶",plusmn:"±",pound:"£",quot:'"',QUOT:'"',raquo:"»",reg:"®",REG:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",THORN:"Þ",times:"×",uacute:"ú",Uacute:"Ú",ucirc:"û",Ucirc:"Û",ugrave:"ù",Ugrave:"Ù",uml:"¨",uuml:"ü",Uuml:"Ü",yacute:"ý",Yacute:"Ý",yen:"¥",yuml:"ÿ"},m={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},x=[1,2,3,4,5,6,7,8,11,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,64976,64977,64978,64979,64980,64981,64982,64983,64984,64985,64986,64987,64988,64989,64990,64991,64992,64993,64994,64995,64996,64997,64998,64999,65e3,65001,65002,65003,65004,65005,65006,65007,65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111],v=String.fromCharCode,y={}.hasOwnProperty,A=function(e,t){return y.call(e,t)},w=function(e,t){if(!e)return t;var i,r={};for(i in t)r[i]=A(e,i)?e[i]:t[i];return r},k=function(e,t){var i="";return e>=55296&&e<=57343||e>1114111?(t&&E("character reference outside the permissible Unicode range"),"�"):A(m,e)?(t&&E("disallowed character reference"),m[e]):(t&&function(e,t){for(var i=-1,r=e.length;++i<r;)if(e[i]==t)return!0;return!1}(x,e)&&E("disallowed character reference"),e>65535&&(i+=v((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=v(e))},C=function(e){return"&#x"+e.toString(16).toUpperCase()+";"},S=function(e){return"&#"+e+";"},E=function(e){throw Error("Parse error: "+e)},D=function(e,t){(t=w(t,D.options)).strict&&g.test(e)&&E("forbidden code point");var i=t.encodeEverything,r=t.useNamedReferences,a=t.allowUnsafeSymbols,h=t.decimal?S:C,u=function(e){return h(e.charCodeAt(0))};return i?(e=e.replace(n,function(e){return r&&A(c,e)?"&"+c[e]+";":u(e)}),r&&(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;").replace(/&#x66;&#x6A;/g,"&fjlig;")),r&&(e=e.replace(l,function(e){return"&"+c[e]+";"}))):r?(a||(e=e.replace(d,function(e){return"&"+c[e]+";"})),e=(e=e.replace(/&gt;\u20D2/g,"&nvgt;").replace(/&lt;\u20D2/g,"&nvlt;")).replace(l,function(e){return"&"+c[e]+";"})):a||(e=e.replace(d,u)),e.replace(s,function(e){var t=e.charCodeAt(0),i=e.charCodeAt(1);return h(1024*(t-55296)+i-56320+65536)}).replace(o,u)};D.options={allowUnsafeSymbols:!1,encodeEverything:!1,strict:!1,useNamedReferences:!1,decimal:!1};var B=function(e,t){var i=(t=w(t,B.options)).strict;return i&&u.test(e)&&E("malformed character reference"),e.replace(p,function(e,r,a,s,n,o,l,c,d){var h,u,g,p,m,x;return r?f[m=r]:a?(m=a,(x=s)&&t.isAttributeValue?(i&&"="==x&&E("`&` did not start a character reference"),e):(i&&E("named character reference was not terminated by a semicolon"),b[m]+(x||""))):n?(g=n,u=o,i&&!u&&E("character reference was not terminated by a semicolon"),h=parseInt(g,10),k(h,i)):l?(p=l,u=c,i&&!u&&E("character reference was not terminated by a semicolon"),h=parseInt(p,16),k(h,i)):(i&&E("named character reference was not terminated by a semicolon"),e)})};B.options={isAttributeValue:!1,strict:!1};var L={version:"1.2.0",encode:D,decode:B,escape:function(e){return e.replace(d,function(e){return h[e]})},unescape:B};void 0===(r=function(){return L}.call(t,i,t,e))||(e.exports=r)}()},66816:(e,t,i)=>{e.exports=i(59742).default,i(38426),i(82134),e.exports.Responsive=i(59864).default,e.exports.Responsive.utils=i(3108),e.exports.WidthProvider=i(35001).default},67468:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,".application.widget .main.content {\n  display: flex;\n}\n\n.application.widget .main.content > div {\n  flex-direction: column;\n}\n\n.application.widget .ui.list {\n  flex-grow: 100;\n}\n\n.application.widget .button.create-widget {\n  max-width: 200px;\n}\n","",{version:3,sources:["webpack://./src/routes/Home/widgets/Application/style.css"],names:[],mappings:"AAAA;EACE,aAAa;AACf;;AAEA;EACE,sBAAsB;AACxB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,gBAAgB;AAClB",sourcesContent:[".application.widget .main.content {\n  display: flex;\n}\n\n.application.widget .main.content > div {\n  flex-direction: column;\n}\n\n.application.widget .ui.list {\n  flex-grow: 100;\n}\n\n.application.widget .button.create-widget {\n  max-width: 200px;\n}\n"],sourceRoot:""}]);const o=n},68578:(e,t,i)=>{"use strict";i.d(t,{A:()=>o});var r=i(71354),a=i.n(r),s=i(76314),n=i.n(s)()(a());n.push([e.id,".extensions.widget .extension-layout {\n  overflow-y: auto;\n  overflow-x: hidden;\n}\n\n.extensions.widget .extension-layout .item .content {\n  padding-right: 5px;\n}\n\n.extensions.widget .extension-layout .item .content > span {\n  font-size: 95%;\n}\n\n.extensions.widget .extension-layout .item .content .description {\n  margin-top: 2px;\n}\n\n.extensions.widget .extension-layout .item .header {\n  width: fit-content;\n}\n","",{version:3,sources:["webpack://./src/routes/Home/widgets/Extensions/style.css"],names:[],mappings:"AAAA;EACE,gBAAgB;EAChB,kBAAkB;AACpB;;AAEA;EACE,kBAAkB;AACpB;;AAEA;EACE,cAAc;AAChB;;AAEA;EACE,eAAe;AACjB;;AAEA;EACE,kBAAkB;AACpB",sourcesContent:[".extensions.widget .extension-layout {\n  overflow-y: auto;\n  overflow-x: hidden;\n}\n\n.extensions.widget .extension-layout .item .content {\n  padding-right: 5px;\n}\n\n.extensions.widget .extension-layout .item .content > span {\n  font-size: 95%;\n}\n\n.extensions.widget .extension-layout .item .content .description {\n  margin-top: 2px;\n}\n\n.extensions.widget .extension-layout .item .header {\n  width: fit-content;\n}\n"],sourceRoot:""}]);const o=n},69661:(e,t,i)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,r=Array(t);i<t;i++)r[i]=e[i];return r}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,v(r.key),r)}}function o(e,t,i){return t&&n(e.prototype,t),i&&n(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e,t){var i="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!i){if(Array.isArray(e)||(i=A(e))||t&&e&&"number"==typeof e.length){i&&(e=i);var r=0,a=function(){};return{s:a,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:a}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,o=!1;return{s:function(){i=i.call(e)},n:function(){var e=i.next();return n=e.done,e},e:function(e){o=!0,s=e},f:function(){try{n||null==i.return||i.return()}finally{if(o)throw s}}}}function c(e){var t=g();return function(){var i,r=h(e);if(t){var s=h(this).constructor;i=Reflect.construct(r,arguments,s)}else i=r.apply(this,arguments);return function(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return a(e)}(this,i)}}function d(e,t,i){return(t=v(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function u(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}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(g=function(){return!!e})()}function p(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function f(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?p(Object(i),!0).forEach(function(t){d(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function m(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var r,a,s,n,o=[],l=!0,c=!1;try{if(s=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(r=s.call(i)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(e){c=!0,a=e}finally{try{if(!l&&null!=i.return&&(n=i.return(),Object(n)!==n))return}finally{if(c)throw a}}return o}}(e,t)||A(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 x(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||A(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}function y(e){return y="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},y(e)}function A(e,t){if(e){if("string"==typeof e)return r(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(e,t):void 0}}i.r(t),i.d(t,{default:()=>da});var w=function(){function e(){s(this,e)}return o(e,[{key:"shadeRGBColor",value:function(e,t){var i=t.split(","),r=e<0?0:255,a=e<0?-1*e:e,s=parseInt(i[0].slice(4),10),n=parseInt(i[1],10),o=parseInt(i[2],10);return"rgb("+(Math.round((r-s)*a)+s)+","+(Math.round((r-n)*a)+n)+","+(Math.round((r-o)*a)+o)+")"}},{key:"shadeHexColor",value:function(e,t){var i=parseInt(t.slice(1),16),r=e<0?0:255,a=e<0?-1*e:e,s=i>>16,n=i>>8&255,o=255&i;return"#"+(16777216+65536*(Math.round((r-s)*a)+s)+256*(Math.round((r-n)*a)+n)+(Math.round((r-o)*a)+o)).toString(16).slice(1)}},{key:"shadeColor",value:function(t,i){return e.isColorHex(i)?this.shadeHexColor(t,i):this.shadeRGBColor(t,i)}}],[{key:"bind",value:function(e,t){return function(){return e.apply(t,arguments)}}},{key:"isObject",value:function(e){return e&&"object"===y(e)&&!Array.isArray(e)&&null!=e}},{key:"is",value:function(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}},{key:"isSafari",value:function(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}},{key:"listToArray",value:function(e){var t,i=[];for(t=0;t<e.length;t++)i[t]=e[t];return i}},{key:"extend",value:function(e,t){var i=this;"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var a in r)r.hasOwnProperty(a)&&(t[a]=r[a])}return t});var r=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(function(a){i.isObject(t[a])&&a in e?r[a]=i.extend(e[a],t[a]):Object.assign(r,d({},a,t[a]))}),r}},{key:"extendArray",value:function(t,i){var r=[];return t.map(function(t){r.push(e.extend(i,t))}),r}},{key:"monthMod",value:function(e){return e%12}},{key:"clone",value:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new WeakMap;if(null===e||"object"!==y(e))return e;if(i.has(e))return i.get(e);if(Array.isArray(e)){t=[],i.set(e,t);for(var r=0;r<e.length;r++)t[r]=this.clone(e[r],i)}else if(e instanceof Date)t=new Date(e.getTime());else for(var a in t={},i.set(e,t),e)e.hasOwnProperty(a)&&(t[a]=this.clone(e[a],i));return t}},{key:"log10",value:function(e){return Math.log(e)/Math.LN10}},{key:"roundToBase10",value:function(e){return Math.pow(10,Math.floor(Math.log10(e)))}},{key:"roundToBase",value:function(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}},{key:"parseNumber",value:function(e){return"number"==typeof e||null===e?e:parseFloat(e)}},{key:"stripNumber",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}},{key:"randomId",value:function(){return(Math.random()+1).toString(36).substring(4)}},{key:"noExponents",value:function(e){return e.toString().includes("e")?Math.round(e):e}},{key:"elementExists",value:function(e){return!(!e||!e.isConnected)}},{key:"getDimensions",value:function(e){var t=getComputedStyle(e,null),i=e.clientHeight,r=e.clientWidth;return i-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),[r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),i]}},{key:"getBoundingClientRect",value:function(e){var t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}},{key:"getLargestStringFromArr",value:function(e){return e.reduce(function(e,t){return Array.isArray(t)&&(t=t.reduce(function(e,t){return e.length>t.length?e:t})),e.length>t.length?e:t},0)}},{key:"hexToRgba",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"#999999",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.6;"#"!==e.substring(0,1)&&(e="#999999");var i=e.replace("#","");i=i.match(new RegExp("(.{"+i.length/3+"})","g"));for(var r=0;r<i.length;r++)i[r]=parseInt(1===i[r].length?i[r]+i[r]:i[r],16);return void 0!==t&&i.push(t),"rgba("+i.join(",")+")"}},{key:"getOpacityFromRGBA",value:function(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}},{key:"rgb2hex",value:function(e){return(e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i))&&4===e.length?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}},{key:"isColorHex",value:function(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}},{key:"getPolygonPos",value:function(e,t){for(var i=[],r=2*Math.PI/t,a=0;a<t;a++){var s={};s.x=e*Math.sin(a*r),s.y=-e*Math.cos(a*r),i.push(s)}return i}},{key:"polarToCartesian",value:function(e,t,i,r){var a=(r-90)*Math.PI/180;return{x:e+i*Math.cos(a),y:t+i*Math.sin(a)}}},{key:"escapeString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x";return e.toString().slice().replace(/[` ~!@#$%^&*()|+\=?;:'",.<>{}[\]\\/]/gi,t)}},{key:"negToZero",value:function(e){return e<0?0:e}},{key:"moveIndexInArray",value:function(e,t,i){if(i>=e.length)for(var r=i-e.length+1;r--;)e.push(void 0);return e.splice(i,0,e.splice(t,1)[0]),e}},{key:"extractNumber",value:function(e){return parseFloat(e.replace(/[^\d.]*/g,""))}},{key:"findAncestor",value:function(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}},{key:"setELstyles",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e.style.key=t[i])}},{key:"preciseAddition",value:function(e,t){var i=(String(e).split(".")[1]||"").length,r=(String(t).split(".")[1]||"").length,a=Math.pow(10,Math.max(i,r));return(Math.round(e*a)+Math.round(t*a))/a}},{key:"isNumber",value:function(e){return!isNaN(e)&&parseFloat(Number(e))===e&&!isNaN(parseInt(e,10))}},{key:"isFloat",value:function(e){return Number(e)===e&&e%1!=0}},{key:"isMsEdge",value:function(){var e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0&&parseInt(e.substring(t+5,e.indexOf(".",t)),10)}},{key:"getGCD",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,i-Math.floor(Math.log10(Math.max(e,t))));for(e=Math.round(Math.abs(e)*r),t=Math.round(Math.abs(t)*r);t;){var a=t;t=e%t,e=a}return e/r}},{key:"getPrimeFactors",value:function(e){for(var t=[],i=2;e>=2;)e%i==0?(t.push(i),e/=i):i++;return t}},{key:"mod",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:7,r=Math.pow(10,i-Math.floor(Math.log10(Math.max(e,t))));return(e=Math.round(Math.abs(e)*r))%(t=Math.round(Math.abs(t)*r))/r}}]),e}(),k=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"animateLine",value:function(e,t,i,r){e.attr(t).animate(r).attr(i)}},{key:"animateMarker",value:function(e,t,i,r){e.attr({opacity:0}).animate(t).attr({opacity:1}).after(function(){r()})}},{key:"animateRect",value:function(e,t,i,r,a){e.attr(t).animate(r).attr(i).after(function(){return a()})}},{key:"animatePathsGradually",value:function(e){var t=e.el,i=e.realIndex,r=e.j,a=e.fill,s=e.pathFrom,n=e.pathTo,o=e.speed,l=e.delay,c=this.w,d=0;c.config.chart.animations.animateGradually.enabled&&(d=c.config.chart.animations.animateGradually.delay),c.config.chart.animations.dynamicAnimation.enabled&&c.globals.dataChanged&&"bar"!==c.config.chart.type&&(d=0),this.morphSVG(t,i,r,"line"!==c.config.chart.type||c.globals.comboCharts?a:"stroke",s,n,o,l*d)}},{key:"showDelayedElements",value:function(){this.w.globals.delayedElements.forEach(function(e){var t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}},{key:"animationCompleted",value:function(e){var t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),"function"==typeof t.config.chart.events.animationEnd&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}},{key:"morphSVG",value:function(e,t,i,r,a,s,n,o){var l=this,c=this.w;a||(a=e.attr("pathFrom")),s||(s=e.attr("pathTo"));var d=function(e){return"radar"===c.config.chart.type&&(n=1),"M 0 ".concat(c.globals.gridHeight)};(!a||a.indexOf("undefined")>-1||a.indexOf("NaN")>-1)&&(a=d()),(!s.trim()||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=d()),c.globals.shouldAnimate||(n=1),e.plot(a).animate(1,o).plot(a).animate(n,o).plot(s).after(function(){w.isNumber(i)?i===c.globals.series[c.globals.maxValsInArrayIndex].length-2&&c.globals.shouldAnimate&&l.animationCompleted(e):"none"!==r&&c.globals.shouldAnimate&&(!c.globals.comboCharts&&t===c.globals.series.length-1||c.globals.comboCharts)&&l.animationCompleted(e),l.showDelayedElements()})}}]),e}();const C={},S=[];function E(e,t){if(Array.isArray(e))for(const i of e)E(i,t);else if("object"!=typeof e)B(Object.getOwnPropertyNames(t)),C[e]=Object.assign(C[e]||{},t);else for(const t in e)E(t,e[t])}function D(e){return C[e]||{}}function B(e){S.push(...e)}function L(e,t){let i;const r=e.length,a=[];for(i=0;i<r;i++)a.push(t(e[i]));return a}function T(e){return e%360*Math.PI/180}function P(e){return e.charAt(0).toUpperCase()+e.slice(1)}function M(e,t,i,r){return null!=t&&null!=i||(r=r||e.bbox(),null==t?t=r.width/r.height*i:null==i&&(i=r.height/r.width*t)),{width:t,height:i}}function I(e,t){const i=e.origin;let r=null!=e.ox?e.ox:null!=e.originX?e.originX:"center",a=null!=e.oy?e.oy:null!=e.originY?e.originY:"center";null!=i&&([r,a]=Array.isArray(i)?i:"object"==typeof i?[i.x,i.y]:[i,i]);const s="string"==typeof r,n="string"==typeof a;if(s||n){const{height:e,width:i,x:o,y:l}=t.bbox();s&&(r=r.includes("left")?o:r.includes("right")?o+i:o+i/2),n&&(a=a.includes("top")?l:a.includes("bottom")?l+e:l+e/2)}return[r,a]}const R=new Set(["desc","metadata","title"]),z=e=>R.has(e.nodeName),O=(e,t,i={})=>{const r={...t};for(const e in r)r[e].valueOf()===i[e]&&delete r[e];Object.keys(r).length?e.node.setAttribute("data-svgjs",JSON.stringify(r)):(e.node.removeAttribute("data-svgjs"),e.node.removeAttribute("svgjs:data"))},N="http://www.w3.org/2000/svg",H="http://www.w3.org/2000/xmlns/",F="http://www.w3.org/1999/xlink",_={window:"undefined"==typeof window?null:window,document:"undefined"==typeof document?null:document};function Y(){return _.window}let X=class{};const W={},q="___SYMBOL___ROOT___";function U(e,t=N){return _.document.createElementNS(t,e)}function G(e,t=!1){if(e instanceof X)return e;if("object"==typeof e)return $(e);if(null==e)return new W[q];if("string"==typeof e&&"<"!==e.charAt(0))return $(_.document.querySelector(e));const i=t?_.document.createElement("div"):U("svg");return i.innerHTML=e,e=$(i.firstChild),i.removeChild(i.firstChild),e}function V(e,t){return t&&(t instanceof _.window.Node||t.ownerDocument&&t instanceof t.ownerDocument.defaultView.Node)?t:U(e)}function Z(e){if(!e)return null;if(e.instance instanceof X)return e.instance;if("#document-fragment"===e.nodeName)return new W.Fragment(e);let t=P(e.nodeName||"Dom");return"LinearGradient"===t||"RadialGradient"===t?t="Gradient":W[t]||(t="Dom"),new W[t](e)}let $=Z;function Q(e,t=e.name,i=!1){return W[t]=e,i&&(W[q]=e),B(Object.getOwnPropertyNames(e.prototype)),e}let J=1e3;function K(e){return"Svgjs"+P(e)+J++}function ee(e){for(let t=e.children.length-1;t>=0;t--)ee(e.children[t]);return e.id?(e.id=K(e.nodeName),e):e}function te(e,t){let i,r;for(r=(e=Array.isArray(e)?e:[e]).length-1;r>=0;r--)for(i in t)e[r].prototype[i]=t[i]}function ie(e){return function(...t){const i=t[t.length-1];return!i||i.constructor!==Object||i instanceof Array?e.apply(this,t):e.apply(this,t.slice(0,-1)).attr(i)}}E("Dom",{siblings:function(){return this.parent().children()},position:function(){return this.parent().index(this)},next:function(){return this.siblings()[this.position()+1]},prev:function(){return this.siblings()[this.position()-1]},forward:function(){const e=this.position();return this.parent().add(this.remove(),e+1),this},backward:function(){const e=this.position();return this.parent().add(this.remove(),e?e-1:0),this},front:function(){return this.parent().add(this.remove()),this},back:function(){return this.parent().add(this.remove(),0),this},before:function(e){(e=G(e)).remove();const t=this.position();return this.parent().add(e,t),this},after:function(e){(e=G(e)).remove();const t=this.position();return this.parent().add(e,t+1),this},insertBefore:function(e){return(e=G(e)).before(this),this},insertAfter:function(e){return(e=G(e)).after(this),this}});const re=/^([+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?)([a-z%]*)$/i,ae=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i,se=/rgb\((\d+),(\d+),(\d+)\)/,ne=/(#[a-z_][a-z0-9\-_]*)/i,oe=/\)\s*,?\s*/,le=/\s/g,ce=/^#[a-f0-9]{3}$|^#[a-f0-9]{6}$/i,de=/^rgb\(/,he=/^(\s+)?$/,ue=/^[+-]?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ge=/\.(jpg|jpeg|png|gif|svg)(\?[^=]+.*)?/i,pe=/[\s,]+/,fe=/[MLHVCSQTAZ]/i;function be(e){const t=Math.round(e),i=Math.max(0,Math.min(255,t)).toString(16);return 1===i.length?"0"+i:i}function me(e,t){for(let i=t.length;i--;)if(null==e[t[i]])return!1;return!0}function xe(e,t,i){return i<0&&(i+=1),i>1&&(i-=1),i<1/6?e+6*(t-e)*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}E("Dom",{classes:function(){const e=this.attr("class");return null==e?[]:e.trim().split(pe)},hasClass:function(e){return-1!==this.classes().indexOf(e)},addClass:function(e){if(!this.hasClass(e)){const t=this.classes();t.push(e),this.attr("class",t.join(" "))}return this},removeClass:function(e){return this.hasClass(e)&&this.attr("class",this.classes().filter(function(t){return t!==e}).join(" ")),this},toggleClass:function(e){return this.hasClass(e)?this.removeClass(e):this.addClass(e)}}),E("Dom",{css:function(e,t){const i={};if(0===arguments.length)return this.node.style.cssText.split(/\s*;\s*/).filter(function(e){return!!e.length}).forEach(function(e){const t=e.split(/\s*:\s*/);i[t[0]]=t[1]}),i;if(arguments.length<2){if(Array.isArray(e)){for(const t of e){const e=t;i[t]=this.node.style.getPropertyValue(e)}return i}if("string"==typeof e)return this.node.style.getPropertyValue(e);if("object"==typeof e)for(const t in e)this.node.style.setProperty(t,null==e[t]||he.test(e[t])?"":e[t])}return 2===arguments.length&&this.node.style.setProperty(e,null==t||he.test(t)?"":t),this},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},visible:function(){return"none"!==this.css("display")}}),E("Dom",{data:function(e,t,i){if(null==e)return this.data(L(function(e,t){let i;const r=e.length,a=[];for(i=0;i<r;i++)t(e[i])&&a.push(e[i]);return a}(this.node.attributes,e=>0===e.nodeName.indexOf("data-")),e=>e.nodeName.slice(5)));if(e instanceof Array){const t={};for(const i of e)t[i]=this.data(i);return t}if("object"==typeof e)for(t in e)this.data(t,e[t]);else if(arguments.length<2)try{return JSON.parse(this.attr("data-"+e))}catch(t){return this.attr("data-"+e)}else this.attr("data-"+e,null===t?null:!0===i||"string"==typeof t||"number"==typeof t?t:JSON.stringify(t));return this}}),E("Dom",{remember:function(e,t){if("object"==typeof arguments[0])for(const t in e)this.remember(t,e[t]);else{if(1===arguments.length)return this.memory()[e];this.memory()[e]=t}return this},forget:function(){if(0===arguments.length)this._memory={};else for(let e=arguments.length-1;e>=0;e--)delete this.memory()[arguments[e]];return this},memory:function(){return this._memory=this._memory||{}}});class ve{constructor(...e){this.init(...e)}static isColor(e){return e&&(e instanceof ve||this.isRgb(e)||this.test(e))}static isRgb(e){return e&&"number"==typeof e.r&&"number"==typeof e.g&&"number"==typeof e.b}static random(e="vibrant",t){const{random:i,round:r,sin:a,PI:s}=Math;if("vibrant"===e){const e=24*i()+57,t=38*i()+45,r=360*i();return new ve(e,t,r,"lch")}if("sine"===e){const e=r(80*a(2*s*(t=null==t?i():t)/.5+.01)+150),n=r(50*a(2*s*t/.5+4.6)+200),o=r(100*a(2*s*t/.5+2.3)+150);return new ve(e,n,o)}if("pastel"===e){const e=8*i()+86,t=17*i()+9,r=360*i();return new ve(e,t,r,"lch")}if("dark"===e){const e=10+10*i(),t=50*i()+86,r=360*i();return new ve(e,t,r,"lch")}if("rgb"===e){const e=255*i(),t=255*i(),r=255*i();return new ve(e,t,r)}if("lab"===e){const e=100*i(),t=256*i()-128,r=256*i()-128;return new ve(e,t,r,"lab")}if("grey"===e){const e=255*i();return new ve(e,e,e)}throw new Error("Unsupported random color mode")}static test(e){return"string"==typeof e&&(ce.test(e)||de.test(e))}cmyk(){const{_a:e,_b:t,_c:i}=this.rgb(),[r,a,s]=[e,t,i].map(e=>e/255),n=Math.min(1-r,1-a,1-s);return 1===n?new ve(0,0,0,1,"cmyk"):new ve((1-r-n)/(1-n),(1-a-n)/(1-n),(1-s-n)/(1-n),n,"cmyk")}hsl(){const{_a:e,_b:t,_c:i}=this.rgb(),[r,a,s]=[e,t,i].map(e=>e/255),n=Math.max(r,a,s),o=Math.min(r,a,s),l=(n+o)/2,c=n===o,d=n-o;return new ve(360*(c?0:n===r?((a-s)/d+(a<s?6:0))/6:n===a?((s-r)/d+2)/6:n===s?((r-a)/d+4)/6:0),100*(c?0:l>.5?d/(2-n-o):d/(n+o)),100*l,"hsl")}init(e=0,t=0,i=0,r=0,a="rgb"){if(e=e||0,this.space)for(const e in this.space)delete this[this.space[e]];if("number"==typeof e)a="string"==typeof r?r:a,r="string"==typeof r?0:r,Object.assign(this,{_a:e,_b:t,_c:i,_d:r,space:a});else if(e instanceof Array)this.space=t||("string"==typeof e[3]?e[3]:e[4])||"rgb",Object.assign(this,{_a:e[0],_b:e[1],_c:e[2],_d:e[3]||0});else if(e instanceof Object){const i=function(e,t){const i=me(e,"rgb")?{_a:e.r,_b:e.g,_c:e.b,_d:0,space:"rgb"}:me(e,"xyz")?{_a:e.x,_b:e.y,_c:e.z,_d:0,space:"xyz"}:me(e,"hsl")?{_a:e.h,_b:e.s,_c:e.l,_d:0,space:"hsl"}:me(e,"lab")?{_a:e.l,_b:e.a,_c:e.b,_d:0,space:"lab"}:me(e,"lch")?{_a:e.l,_b:e.c,_c:e.h,_d:0,space:"lch"}:me(e,"cmyk")?{_a:e.c,_b:e.m,_c:e.y,_d:e.k,space:"cmyk"}:{_a:0,_b:0,_c:0,space:"rgb"};return i.space=t||i.space,i}(e,t);Object.assign(this,i)}else if("string"==typeof e)if(de.test(e)){const t=e.replace(le,""),[i,r,a]=se.exec(t).slice(1,4).map(e=>parseInt(e));Object.assign(this,{_a:i,_b:r,_c:a,_d:0,space:"rgb"})}else{if(!ce.test(e))throw Error("Unsupported string format, can't construct Color");{const t=e=>parseInt(e,16),[,i,r,a]=ae.exec(function(e){return 4===e.length?["#",e.substring(1,2),e.substring(1,2),e.substring(2,3),e.substring(2,3),e.substring(3,4),e.substring(3,4)].join(""):e}(e)).map(t);Object.assign(this,{_a:i,_b:r,_c:a,_d:0,space:"rgb"})}}const{_a:s,_b:n,_c:o,_d:l}=this,c="rgb"===this.space?{r:s,g:n,b:o}:"xyz"===this.space?{x:s,y:n,z:o}:"hsl"===this.space?{h:s,s:n,l:o}:"lab"===this.space?{l:s,a:n,b:o}:"lch"===this.space?{l:s,c:n,h:o}:"cmyk"===this.space?{c:s,m:n,y:o,k:l}:{};Object.assign(this,c)}lab(){const{x:e,y:t,z:i}=this.xyz();return new ve(116*t-16,500*(e-t),200*(t-i),"lab")}lch(){const{l:e,a:t,b:i}=this.lab(),r=Math.sqrt(t**2+i**2);let a=180*Math.atan2(i,t)/Math.PI;return a<0&&(a*=-1,a=360-a),new ve(e,r,a,"lch")}rgb(){if("rgb"===this.space)return this;if("lab"===(e=this.space)||"xyz"===e||"lch"===e){let{x:e,y:t,z:i}=this;if("lab"===this.space||"lch"===this.space){let{l:r,a,b:s}=this;if("lch"===this.space){const{c:e,h:t}=this,i=Math.PI/180;a=e*Math.cos(i*t),s=e*Math.sin(i*t)}const n=(r+16)/116,o=a/500+n,l=n-s/200,c=16/116,d=.008856,h=7.787;e=.95047*(o**3>d?o**3:(o-c)/h),t=1*(n**3>d?n**3:(n-c)/h),i=1.08883*(l**3>d?l**3:(l-c)/h)}const r=3.2406*e+-1.5372*t+-.4986*i,a=-.9689*e+1.8758*t+.0415*i,s=.0557*e+-.204*t+1.057*i,n=Math.pow,o=.0031308,l=r>o?1.055*n(r,1/2.4)-.055:12.92*r,c=a>o?1.055*n(a,1/2.4)-.055:12.92*a,d=s>o?1.055*n(s,1/2.4)-.055:12.92*s;return new ve(255*l,255*c,255*d)}if("hsl"===this.space){let{h:e,s:t,l:i}=this;if(e/=360,t/=100,i/=100,0===t)return i*=255,new ve(i,i,i);const r=i<.5?i*(1+t):i+t-i*t,a=2*i-r,s=255*xe(a,r,e+1/3),n=255*xe(a,r,e),o=255*xe(a,r,e-1/3);return new ve(s,n,o)}if("cmyk"===this.space){const{c:e,m:t,y:i,k:r}=this,a=255*(1-Math.min(1,e*(1-r)+r)),s=255*(1-Math.min(1,t*(1-r)+r)),n=255*(1-Math.min(1,i*(1-r)+r));return new ve(a,s,n)}return this;var e}toArray(){const{_a:e,_b:t,_c:i,_d:r,space:a}=this;return[e,t,i,r,a]}toHex(){const[e,t,i]=this._clamped().map(be);return`#${e}${t}${i}`}toRgb(){const[e,t,i]=this._clamped();return`rgb(${e},${t},${i})`}toString(){return this.toHex()}xyz(){const{_a:e,_b:t,_c:i}=this.rgb(),[r,a,s]=[e,t,i].map(e=>e/255),n=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92,o=a>.04045?Math.pow((a+.055)/1.055,2.4):a/12.92,l=s>.04045?Math.pow((s+.055)/1.055,2.4):s/12.92,c=(.4124*n+.3576*o+.1805*l)/.95047,d=(.2126*n+.7152*o+.0722*l)/1,h=(.0193*n+.1192*o+.9505*l)/1.08883,u=c>.008856?Math.pow(c,1/3):7.787*c+16/116,g=d>.008856?Math.pow(d,1/3):7.787*d+16/116,p=h>.008856?Math.pow(h,1/3):7.787*h+16/116;return new ve(u,g,p,"xyz")}_clamped(){const{_a:e,_b:t,_c:i}=this.rgb(),{max:r,min:a,round:s}=Math;return[e,t,i].map(e=>r(0,a(s(e),255)))}}class ye{constructor(...e){this.init(...e)}clone(){return new ye(this)}init(e,t){const i=Array.isArray(e)?{x:e[0],y:e[1]}:"object"==typeof e?{x:e.x,y:e.y}:{x:e,y:t};return this.x=null==i.x?0:i.x,this.y=null==i.y?0:i.y,this}toArray(){return[this.x,this.y]}transform(e){return this.clone().transformO(e)}transformO(e){we.isMatrixLike(e)||(e=new we(e));const{x:t,y:i}=this;return this.x=e.a*t+e.c*i+e.e,this.y=e.b*t+e.d*i+e.f,this}}function Ae(e,t,i){return Math.abs(t-e)<(i||1e-6)}class we{constructor(...e){this.init(...e)}static formatTransforms(e){const t="both"===e.flip||!0===e.flip,i=e.flip&&(t||"x"===e.flip)?-1:1,r=e.flip&&(t||"y"===e.flip)?-1:1,a=e.skew&&e.skew.length?e.skew[0]:isFinite(e.skew)?e.skew:isFinite(e.skewX)?e.skewX:0,s=e.skew&&e.skew.length?e.skew[1]:isFinite(e.skew)?e.skew:isFinite(e.skewY)?e.skewY:0,n=e.scale&&e.scale.length?e.scale[0]*i:isFinite(e.scale)?e.scale*i:isFinite(e.scaleX)?e.scaleX*i:i,o=e.scale&&e.scale.length?e.scale[1]*r:isFinite(e.scale)?e.scale*r:isFinite(e.scaleY)?e.scaleY*r:r,l=e.shear||0,c=e.rotate||e.theta||0,d=new ye(e.origin||e.around||e.ox||e.originX,e.oy||e.originY),h=d.x,u=d.y,g=new ye(e.position||e.px||e.positionX||NaN,e.py||e.positionY||NaN),p=g.x,f=g.y,b=new ye(e.translate||e.tx||e.translateX,e.ty||e.translateY),m=b.x,x=b.y,v=new ye(e.relative||e.rx||e.relativeX,e.ry||e.relativeY);return{scaleX:n,scaleY:o,skewX:a,skewY:s,shear:l,theta:c,rx:v.x,ry:v.y,tx:m,ty:x,ox:h,oy:u,px:p,py:f}}static fromArray(e){return{a:e[0],b:e[1],c:e[2],d:e[3],e:e[4],f:e[5]}}static isMatrixLike(e){return null!=e.a||null!=e.b||null!=e.c||null!=e.d||null!=e.e||null!=e.f}static matrixMultiply(e,t,i){const r=e.a*t.a+e.c*t.b,a=e.b*t.a+e.d*t.b,s=e.a*t.c+e.c*t.d,n=e.b*t.c+e.d*t.d,o=e.e+e.a*t.e+e.c*t.f,l=e.f+e.b*t.e+e.d*t.f;return i.a=r,i.b=a,i.c=s,i.d=n,i.e=o,i.f=l,i}around(e,t,i){return this.clone().aroundO(e,t,i)}aroundO(e,t,i){const r=e||0,a=t||0;return this.translateO(-r,-a).lmultiplyO(i).translateO(r,a)}clone(){return new we(this)}decompose(e=0,t=0){const i=this.a,r=this.b,a=this.c,s=this.d,n=this.e,o=this.f,l=i*s-r*a,c=l>0?1:-1,d=c*Math.sqrt(i*i+r*r),h=Math.atan2(c*r,c*i),u=180/Math.PI*h,g=Math.cos(h),p=Math.sin(h),f=(i*a+r*s)/l,b=a*d/(f*i-r)||s*d/(f*r+i);return{scaleX:d,scaleY:b,shear:f,rotate:u,translateX:n-e+e*g*d+t*(f*g*d-p*b),translateY:o-t+e*p*d+t*(f*p*d+g*b),originX:e,originY:t,a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}equals(e){if(e===this)return!0;const t=new we(e);return Ae(this.a,t.a)&&Ae(this.b,t.b)&&Ae(this.c,t.c)&&Ae(this.d,t.d)&&Ae(this.e,t.e)&&Ae(this.f,t.f)}flip(e,t){return this.clone().flipO(e,t)}flipO(e,t){return"x"===e?this.scaleO(-1,1,t,0):"y"===e?this.scaleO(1,-1,0,t):this.scaleO(-1,-1,e,t||e)}init(e){const t=we.fromArray([1,0,0,1,0,0]);return e=e instanceof qe?e.matrixify():"string"==typeof e?we.fromArray(e.split(pe).map(parseFloat)):Array.isArray(e)?we.fromArray(e):"object"==typeof e&&we.isMatrixLike(e)?e:"object"==typeof e?(new we).transform(e):6===arguments.length?we.fromArray([].slice.call(arguments)):t,this.a=null!=e.a?e.a:t.a,this.b=null!=e.b?e.b:t.b,this.c=null!=e.c?e.c:t.c,this.d=null!=e.d?e.d:t.d,this.e=null!=e.e?e.e:t.e,this.f=null!=e.f?e.f:t.f,this}inverse(){return this.clone().inverseO()}inverseO(){const e=this.a,t=this.b,i=this.c,r=this.d,a=this.e,s=this.f,n=e*r-t*i;if(!n)throw new Error("Cannot invert "+this);const o=r/n,l=-t/n,c=-i/n,d=e/n,h=-(o*a+c*s),u=-(l*a+d*s);return this.a=o,this.b=l,this.c=c,this.d=d,this.e=h,this.f=u,this}lmultiply(e){return this.clone().lmultiplyO(e)}lmultiplyO(e){const t=e instanceof we?e:new we(e);return we.matrixMultiply(t,this,this)}multiply(e){return this.clone().multiplyO(e)}multiplyO(e){const t=e instanceof we?e:new we(e);return we.matrixMultiply(this,t,this)}rotate(e,t,i){return this.clone().rotateO(e,t,i)}rotateO(e,t=0,i=0){e=T(e);const r=Math.cos(e),a=Math.sin(e),{a:s,b:n,c:o,d:l,e:c,f:d}=this;return this.a=s*r-n*a,this.b=n*r+s*a,this.c=o*r-l*a,this.d=l*r+o*a,this.e=c*r-d*a+i*a-t*r+t,this.f=d*r+c*a-t*a-i*r+i,this}scale(){return this.clone().scaleO(...arguments)}scaleO(e,t=e,i=0,r=0){3===arguments.length&&(r=i,i=t,t=e);const{a,b:s,c:n,d:o,e:l,f:c}=this;return this.a=a*e,this.b=s*t,this.c=n*e,this.d=o*t,this.e=l*e-i*e+i,this.f=c*t-r*t+r,this}shear(e,t,i){return this.clone().shearO(e,t,i)}shearO(e,t=0,i=0){const{a:r,b:a,c:s,d:n,e:o,f:l}=this;return this.a=r+a*e,this.c=s+n*e,this.e=o+l*e-i*e,this}skew(){return this.clone().skewO(...arguments)}skewO(e,t=e,i=0,r=0){3===arguments.length&&(r=i,i=t,t=e),e=T(e),t=T(t);const a=Math.tan(e),s=Math.tan(t),{a:n,b:o,c:l,d:c,e:d,f:h}=this;return this.a=n+o*a,this.b=o+n*s,this.c=l+c*a,this.d=c+l*s,this.e=d+h*a-r*a,this.f=h+d*s-i*s,this}skewX(e,t,i){return this.skew(e,0,t,i)}skewY(e,t,i){return this.skew(0,e,t,i)}toArray(){return[this.a,this.b,this.c,this.d,this.e,this.f]}toString(){return"matrix("+this.a+","+this.b+","+this.c+","+this.d+","+this.e+","+this.f+")"}transform(e){if(we.isMatrixLike(e))return new we(e).multiplyO(this);const t=we.formatTransforms(e),{x:i,y:r}=new ye(t.ox,t.oy).transform(this),a=(new we).translateO(t.rx,t.ry).lmultiplyO(this).translateO(-i,-r).scaleO(t.scaleX,t.scaleY).skewO(t.skewX,t.skewY).shearO(t.shear).rotateO(t.theta).translateO(i,r);if(isFinite(t.px)||isFinite(t.py)){const e=new ye(i,r).transform(a),s=isFinite(t.px)?t.px-e.x:0,n=isFinite(t.py)?t.py-e.y:0;a.translateO(s,n)}return a.translateO(t.tx,t.ty),a}translate(e,t){return this.clone().translateO(e,t)}translateO(e,t){return this.e+=e||0,this.f+=t||0,this}valueOf(){return{a:this.a,b:this.b,c:this.c,d:this.d,e:this.e,f:this.f}}}function ke(){if(!ke.nodes){const e=G().size(2,0);e.node.style.cssText=["opacity: 0","position: absolute","left: -100%","top: -100%","overflow: hidden"].join(";"),e.attr("focusable","false"),e.attr("aria-hidden","true");const t=e.path().node;ke.nodes={svg:e,path:t}}if(!ke.nodes.svg.node.parentNode){const e=_.document.body||_.document.documentElement;ke.nodes.svg.addTo(e)}return ke.nodes}function Ce(e){return!(e.width||e.height||e.x||e.y)}Q(we,"Matrix");class Se{constructor(...e){this.init(...e)}addOffset(){return this.x+=_.window.pageXOffset,this.y+=_.window.pageYOffset,new Se(this)}init(e){return e="string"==typeof e?e.split(pe).map(parseFloat):Array.isArray(e)?e:"object"==typeof e?[null!=e.left?e.left:e.x,null!=e.top?e.top:e.y,e.width,e.height]:4===arguments.length?[].slice.call(arguments):[0,0,0,0],this.x=e[0]||0,this.y=e[1]||0,this.width=this.w=e[2]||0,this.height=this.h=e[3]||0,this.x2=this.x+this.w,this.y2=this.y+this.h,this.cx=this.x+this.w/2,this.cy=this.y+this.h/2,this}isNulled(){return Ce(this)}merge(e){const t=Math.min(this.x,e.x),i=Math.min(this.y,e.y),r=Math.max(this.x+this.width,e.x+e.width)-t,a=Math.max(this.y+this.height,e.y+e.height)-i;return new Se(t,i,r,a)}toArray(){return[this.x,this.y,this.width,this.height]}toString(){return this.x+" "+this.y+" "+this.width+" "+this.height}transform(e){e instanceof we||(e=new we(e));let t=1/0,i=-1/0,r=1/0,a=-1/0;return[new ye(this.x,this.y),new ye(this.x2,this.y),new ye(this.x,this.y2),new ye(this.x2,this.y2)].forEach(function(s){s=s.transform(e),t=Math.min(t,s.x),i=Math.max(i,s.x),r=Math.min(r,s.y),a=Math.max(a,s.y)}),new Se(t,r,i-t,a-r)}}function Ee(e,t,i){let r;try{if(r=t(e.node),Ce(r)&&(a=e.node)!==_.document&&!(_.document.documentElement.contains||function(e){for(;e.parentNode;)e=e.parentNode;return e===_.document}).call(_.document.documentElement,a))throw new Error("Element not in the dom")}catch(t){r=i(e)}var a;return r}E({viewbox:{viewbox(e,t,i,r){return null==e?new Se(this.attr("viewBox")):this.attr("viewBox",new Se(e,t,i,r))},zoom(e,t){let{width:i,height:r}=this.attr(["width","height"]);if((i||r)&&"string"!=typeof i&&"string"!=typeof r||(i=this.node.clientWidth,r=this.node.clientHeight),!i||!r)throw new Error("Impossible to get absolute width and height. Please provide an absolute width and height attribute on the zooming element");const a=this.viewbox(),s=i/a.width,n=r/a.height,o=Math.min(s,n);if(null==e)return o;let l=o/e;l===1/0&&(l=Number.MAX_SAFE_INTEGER/100),t=t||new ye(i/2/s+a.x,r/2/n+a.y);const c=new Se(a).transform(new we({scale:l,origin:t}));return this.viewbox(c)}}}),Q(Se,"Box");class De extends Array{constructor(e=[],...t){if(super(e,...t),"number"==typeof e)return this;this.length=0,this.push(...e)}}te([De],{each(e,...t){return"function"==typeof e?this.map((t,i,r)=>e.call(t,t,i,r)):this.map(i=>i[e](...t))},toArray(){return Array.prototype.concat.apply([],this)}});const Be=["toArray","constructor","each"];function Le(e,t){return new De(L((t||_.document).querySelectorAll(e),function(e){return Z(e)}))}De.extend=function(e){e=e.reduce((e,t)=>(Be.includes(t)||"_"===t[0]||(t in Array.prototype&&(e["$"+t]=Array.prototype[t]),e[t]=function(...e){return this.each(t,...e)}),e),{}),te([De],e)};let Te=0;const Pe={};function Me(e){let t=e.getEventHolder();return t===_.window&&(t=Pe),t.events||(t.events={}),t.events}function Ie(e){return e.getEventTarget()}function Re(e,t,i,r,a){const s=i.bind(r||e),n=G(e),o=Me(n),l=Ie(n);t=Array.isArray(t)?t:t.split(pe),i._svgjsListenerId||(i._svgjsListenerId=++Te),t.forEach(function(e){const t=e.split(".")[0],r=e.split(".")[1]||"*";o[t]=o[t]||{},o[t][r]=o[t][r]||{},o[t][r][i._svgjsListenerId]=s,l.addEventListener(t,s,a||!1)})}function ze(e,t,i,r){const a=G(e),s=Me(a),n=Ie(a);("function"!=typeof i||(i=i._svgjsListenerId))&&(t=Array.isArray(t)?t:(t||"").split(pe)).forEach(function(e){const t=e&&e.split(".")[0],o=e&&e.split(".")[1];let l,c;if(i)s[t]&&s[t][o||"*"]&&(n.removeEventListener(t,s[t][o||"*"][i],r||!1),delete s[t][o||"*"][i]);else if(t&&o){if(s[t]&&s[t][o]){for(c in s[t][o])ze(n,[t,o].join("."),c);delete s[t][o]}}else if(o)for(e in s)for(l in s[e])o===l&&ze(n,[e,o].join("."));else if(t){if(s[t]){for(l in s[t])ze(n,[t,l].join("."));delete s[t]}}else{for(e in s)ze(n,e);!function(e){let t=e.getEventHolder();t===_.window&&(t=Pe),t.events&&(t.events={})}(a)}})}class Oe extends X{addEventListener(){}dispatch(e,t,i){return function(e,t,i,r){const a=Ie(e);return t instanceof _.window.Event||(t=new _.window.CustomEvent(t,{detail:i,cancelable:!0,...r})),a.dispatchEvent(t),t}(this,e,t,i)}dispatchEvent(e){const t=this.getEventHolder().events;if(!t)return!0;const i=t[e.type];for(const t in i)for(const r in i[t])i[t][r](e);return!e.defaultPrevented}fire(e,t,i){return this.dispatch(e,t,i),this}getEventHolder(){return this}getEventTarget(){return this}off(e,t,i){return ze(this,e,t,i),this}on(e,t,i,r){return Re(this,e,t,i,r),this}removeEventListener(){}}function Ne(){}Q(Oe,"EventTarget");const He={"fill-opacity":1,"stroke-opacity":1,"stroke-width":0,"stroke-linejoin":"miter","stroke-linecap":"butt",fill:"#000000",stroke:"#000000",opacity:1,x:0,y:0,cx:0,cy:0,width:0,height:0,r:0,rx:0,ry:0,offset:0,"stop-opacity":1,"stop-color":"#000000","text-anchor":"start"};class Fe extends Array{constructor(...e){super(...e),this.init(...e)}clone(){return new this.constructor(this)}init(e){return"number"==typeof e||(this.length=0,this.push(...this.parse(e))),this}parse(e=[]){return e instanceof Array?e:e.trim().split(pe).map(parseFloat)}toArray(){return Array.prototype.concat.apply([],this)}toSet(){return new Set(this)}toString(){return this.join(" ")}valueOf(){const e=[];return e.push(...this),e}}class _e{constructor(...e){this.init(...e)}convert(e){return new _e(this.value,e)}divide(e){return e=new _e(e),new _e(this/e,this.unit||e.unit)}init(e,t){return t=Array.isArray(e)?e[1]:t,e=Array.isArray(e)?e[0]:e,this.value=0,this.unit=t||"","number"==typeof e?this.value=isNaN(e)?0:isFinite(e)?e:e<0?-34e37:34e37:"string"==typeof e?(t=e.match(re))&&(this.value=parseFloat(t[1]),"%"===t[5]?this.value/=100:"s"===t[5]&&(this.value*=1e3),this.unit=t[5]):e instanceof _e&&(this.value=e.valueOf(),this.unit=e.unit),this}minus(e){return e=new _e(e),new _e(this-e,this.unit||e.unit)}plus(e){return e=new _e(e),new _e(this+e,this.unit||e.unit)}times(e){return e=new _e(e),new _e(this*e,this.unit||e.unit)}toArray(){return[this.value,this.unit]}toJSON(){return this.toString()}toString(){return("%"===this.unit?~~(1e8*this.value)/1e6:"s"===this.unit?this.value/1e3:this.value)+this.unit}valueOf(){return this.value}}const Ye=new Set(["fill","stroke","color","bgcolor","stop-color","flood-color","lighting-color"]),Xe=[];class We extends Oe{constructor(e,t){super(),this.node=e,this.type=e.nodeName,t&&e!==t&&this.attr(t)}add(e,t){return(e=G(e)).removeNamespace&&this.node instanceof _.window.SVGElement&&e.removeNamespace(),null==t?this.node.appendChild(e.node):e.node!==this.node.childNodes[t]&&this.node.insertBefore(e.node,this.node.childNodes[t]),this}addTo(e,t){return G(e).put(this,t)}children(){return new De(L(this.node.children,function(e){return Z(e)}))}clear(){for(;this.node.hasChildNodes();)this.node.removeChild(this.node.lastChild);return this}clone(e=!0,t=!0){this.writeDataToDom();let i=this.node.cloneNode(e);return t&&(i=ee(i)),new this.constructor(i)}each(e,t){const i=this.children();let r,a;for(r=0,a=i.length;r<a;r++)e.apply(i[r],[r,i]),t&&i[r].each(e,t);return this}element(e,t){return this.put(new We(U(e),t))}first(){return Z(this.node.firstChild)}get(e){return Z(this.node.childNodes[e])}getEventHolder(){return this.node}getEventTarget(){return this.node}has(e){return this.index(e)>=0}html(e,t){return this.xml(e,t,"http://www.w3.org/1999/xhtml")}id(e){return void 0!==e||this.node.id||(this.node.id=K(this.type)),this.attr("id",e)}index(e){return[].slice.call(this.node.childNodes).indexOf(e.node)}last(){return Z(this.node.lastChild)}matches(e){const t=this.node,i=t.matches||t.matchesSelector||t.msMatchesSelector||t.mozMatchesSelector||t.webkitMatchesSelector||t.oMatchesSelector||null;return i&&i.call(t,e)}parent(e){let t=this;if(!t.node.parentNode)return null;if(t=Z(t.node.parentNode),!e)return t;do{if("string"==typeof e?t.matches(e):t instanceof e)return t}while(t=Z(t.node.parentNode));return t}put(e,t){return e=G(e),this.add(e,t),e}putIn(e,t){return G(e).add(this,t)}remove(){return this.parent()&&this.parent().removeElement(this),this}removeElement(e){return this.node.removeChild(e.node),this}replace(e){return e=G(e),this.node.parentNode&&this.node.parentNode.replaceChild(e.node,this.node),e}round(e=2,t=null){const i=10**e,r=this.attr(t);for(const e in r)"number"==typeof r[e]&&(r[e]=Math.round(r[e]*i)/i);return this.attr(r),this}svg(e,t){return this.xml(e,t,N)}toString(){return this.id()}words(e){return this.node.textContent=e,this}wrap(e){const t=this.parent();if(!t)return this.addTo(e);const i=t.index(this);return t.put(e,i).put(this)}writeDataToDom(){return this.each(function(){this.writeDataToDom()}),this}xml(e,t,i){if("boolean"==typeof e&&(i=t,t=e,e=null),null==e||"function"==typeof e){t=null==t||t,this.writeDataToDom();let i=this;if(null!=e){if(i=Z(i.node.cloneNode(!0)),t){const t=e(i);if(i=t||i,!1===t)return""}i.each(function(){const t=e(this),i=t||this;!1===t?this.remove():t&&this!==i&&this.replace(i)},!0)}return t?i.node.outerHTML:i.node.innerHTML}t=null!=t&&t;const r=U("wrapper",i),a=_.document.createDocumentFragment();r.innerHTML=e;for(let e=r.children.length;e--;)a.appendChild(r.firstElementChild);const s=this.parent();return t?this.replace(a)&&s:this.add(a)}}te(We,{attr:function(e,t,i){if(null==e){e={},t=this.node.attributes;for(const i of t)e[i.nodeName]=ue.test(i.nodeValue)?parseFloat(i.nodeValue):i.nodeValue;return e}if(e instanceof Array)return e.reduce((e,t)=>(e[t]=this.attr(t),e),{});if("object"==typeof e&&e.constructor===Object)for(t in e)this.attr(t,e[t]);else if(null===t)this.node.removeAttribute(e);else{if(null==t)return null==(t=this.node.getAttribute(e))?He[e]:ue.test(t)?parseFloat(t):t;"number"==typeof(t=Xe.reduce((t,i)=>i(e,t,this),t))?t=new _e(t):Ye.has(e)&&ve.isColor(t)?t=new ve(t):t.constructor===Array&&(t=new Fe(t)),"leading"===e?this.leading&&this.leading(t):"string"==typeof i?this.node.setAttributeNS(i,e,t.toString()):this.node.setAttribute(e,t.toString()),!this.rebuild||"font-size"!==e&&"x"!==e||this.rebuild()}return this},find:function(e){return Le(e,this.node)},findOne:function(e){return Z(this.node.querySelector(e))}}),Q(We,"Dom");let qe=class extends We{constructor(e,t){super(e,t),this.dom={},this.node.instance=this,(e.hasAttribute("data-svgjs")||e.hasAttribute("svgjs:data"))&&this.setData(JSON.parse(e.getAttribute("data-svgjs"))??JSON.parse(e.getAttribute("svgjs:data"))??{})}center(e,t){return this.cx(e).cy(t)}cx(e){return null==e?this.x()+this.width()/2:this.x(e-this.width()/2)}cy(e){return null==e?this.y()+this.height()/2:this.y(e-this.height()/2)}defs(){const e=this.root();return e&&e.defs()}dmove(e,t){return this.dx(e).dy(t)}dx(e=0){return this.x(new _e(e).plus(this.x()))}dy(e=0){return this.y(new _e(e).plus(this.y()))}getEventHolder(){return this}height(e){return this.attr("height",e)}move(e,t){return this.x(e).y(t)}parents(e=this.root()){const t="string"==typeof e;t||(e=G(e));const i=new De;let r=this;for(;(r=r.parent())&&r.node!==_.document&&"#document-fragment"!==r.nodeName&&(i.push(r),t||r.node!==e.node)&&(!t||!r.matches(e));)if(r.node===this.root().node)return null;return i}reference(e){if(!(e=this.attr(e)))return null;const t=(e+"").match(ne);return t?G(t[1]):null}root(){const e=this.parent(function(e){return W[e]}(q));return e&&e.root()}setData(e){return this.dom=e,this}size(e,t){const i=M(this,e,t);return this.width(new _e(i.width)).height(new _e(i.height))}width(e){return this.attr("width",e)}writeDataToDom(){return O(this,this.dom),super.writeDataToDom()}x(e){return this.attr("x",e)}y(e){return this.attr("y",e)}};te(qe,{bbox:function(){const e=Ee(this,e=>e.getBBox(),e=>{try{const t=e.clone().addTo(ke().svg).show(),i=t.node.getBBox();return t.remove(),i}catch(t){throw new Error(`Getting bbox of element "${e.node.nodeName}" is not possible: ${t.toString()}`)}});return new Se(e)},rbox:function(e){const t=Ee(this,e=>e.getBoundingClientRect(),e=>{throw new Error(`Getting rbox of element "${e.node.nodeName}" is not possible`)}),i=new Se(t);return e?i.transform(e.screenCTM().inverseO()):i.addOffset()},inside:function(e,t){const i=this.bbox();return e>i.x&&t>i.y&&e<i.x+i.width&&t<i.y+i.height},point:function(e,t){return new ye(e,t).transformO(this.screenCTM().inverseO())},ctm:function(){return new we(this.node.getCTM())},screenCTM:function(){try{if("function"==typeof this.isRoot&&!this.isRoot()){const e=this.rect(1,1),t=e.node.getScreenCTM();return e.remove(),new we(t)}return new we(this.node.getScreenCTM())}catch(e){return console.warn(`Cannot get CTM from SVG node ${this.node.nodeName}. Is the element rendered?`),new we}}}),Q(qe,"Element");const je={stroke:["color","width","opacity","linecap","linejoin","miterlimit","dasharray","dashoffset"],fill:["color","opacity","rule"],prefix:function(e,t){return"color"===t?e:e+"-"+t}};["fill","stroke"].forEach(function(e){const t={};let i;t[e]=function(t){if(void 0===t)return this.attr(e);if("string"==typeof t||t instanceof ve||ve.isRgb(t)||t instanceof qe)this.attr(e,t);else for(i=je[e].length-1;i>=0;i--)null!=t[je[e][i]]&&this.attr(je.prefix(e,je[e][i]),t[je[e][i]]);return this},E(["Element","Runner"],t)}),E(["Element","Runner"],{matrix:function(e,t,i,r,a,s){return null==e?new we(this):this.attr("transform",new we(e,t,i,r,a,s))},rotate:function(e,t,i){return this.transform({rotate:e,ox:t,oy:i},!0)},skew:function(e,t,i,r){return 1===arguments.length||3===arguments.length?this.transform({skew:e,ox:t,oy:i},!0):this.transform({skew:[e,t],ox:i,oy:r},!0)},shear:function(e,t,i){return this.transform({shear:e,ox:t,oy:i},!0)},scale:function(e,t,i,r){return 1===arguments.length||3===arguments.length?this.transform({scale:e,ox:t,oy:i},!0):this.transform({scale:[e,t],ox:i,oy:r},!0)},translate:function(e,t){return this.transform({translate:[e,t]},!0)},relative:function(e,t){return this.transform({relative:[e,t]},!0)},flip:function(e="both",t="center"){return-1==="xybothtrue".indexOf(e)&&(t=e,e="both"),this.transform({flip:e,origin:t},!0)},opacity:function(e){return this.attr("opacity",e)}}),E("radius",{radius:function(e,t=e){return"radialGradient"===(this._element||this).type?this.attr("r",new _e(e)):this.rx(e).ry(t)}}),E("Path",{length:function(){return this.node.getTotalLength()},pointAt:function(e){return new ye(this.node.getPointAtLength(e))}}),E(["Element","Runner"],{font:function(e,t){if("object"==typeof e){for(t in e)this.font(t,e[t]);return this}return"leading"===e?this.leading(t):"anchor"===e?this.attr("text-anchor",t):"size"===e||"family"===e||"weight"===e||"stretch"===e||"variant"===e||"style"===e?this.attr("font-"+e,t):this.attr(e,t)}}),E("Element",["click","dblclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","touchstart","touchmove","touchleave","touchend","touchcancel","contextmenu","wheel","pointerdown","pointermove","pointerup","pointerleave","pointercancel"].reduce(function(e,t){return e[t]=function(e){return null===e?this.off(t):this.on(t,e),this},e},{})),E("Element",{untransform:function(){return this.attr("transform",null)},matrixify:function(){const e=(this.attr("transform")||"").split(oe).slice(0,-1).map(function(e){const t=e.trim().split("(");return[t[0],t[1].split(pe).map(function(e){return parseFloat(e)})]}).reverse().reduce(function(e,t){return"matrix"===t[0]?e.lmultiply(we.fromArray(t[1])):e[t[0]].apply(e,t[1])},new we);return e},toParent:function(e,t){if(this===e)return this;if(z(this.node))return this.addTo(e,t);const i=this.screenCTM(),r=e.screenCTM().inverse();return this.addTo(e,t).untransform().transform(r.multiply(i)),this},toRoot:function(e){return this.toParent(this.root(),e)},transform:function(e,t){if(null==e||"string"==typeof e){const t=new we(this).decompose();return null==e?t:t[e]}we.isMatrixLike(e)||(e={...e,origin:I(e,this)});const i=new we(!0===t?this:t||!1).transform(e);return this.attr("transform",i)}});class Ue extends qe{flatten(){return this.each(function(){if(this instanceof Ue)return this.flatten().ungroup()}),this}ungroup(e=this.parent(),t=e.index(this)){return t=-1===t?e.children().length:t,this.each(function(i,r){return r[r.length-i-1].toParent(e,t)}),this.remove()}}Q(Ue,"Container");class Ge extends Ue{constructor(e,t=e){super(V("defs",e),t)}flatten(){return this}ungroup(){return this}}Q(Ge,"Defs");class Ve extends qe{}function Ze(e){return this.attr("rx",e)}function $e(e){return this.attr("ry",e)}function Qe(e){return null==e?this.cx()-this.rx():this.cx(e+this.rx())}function Je(e){return null==e?this.cy()-this.ry():this.cy(e+this.ry())}function Ke(e){return this.attr("cx",e)}function et(e){return this.attr("cy",e)}function tt(e){return null==e?2*this.rx():this.rx(new _e(e).divide(2))}function it(e){return null==e?2*this.ry():this.ry(new _e(e).divide(2))}Q(Ve,"Shape");var rt=Object.freeze({__proto__:null,cx:Ke,cy:et,height:it,rx:Ze,ry:$e,width:tt,x:Qe,y:Je});class at extends Ve{constructor(e,t=e){super(V("ellipse",e),t)}size(e,t){const i=M(this,e,t);return this.rx(new _e(i.width).divide(2)).ry(new _e(i.height).divide(2))}}te(at,rt),E("Container",{ellipse:ie(function(e=0,t=e){return this.put(new at).size(e,t).move(0,0)})}),Q(at,"Ellipse");class st extends We{constructor(e=_.document.createDocumentFragment()){super(e)}xml(e,t,i){if("boolean"==typeof e&&(i=t,t=e,e=null),null==e||"function"==typeof e){const e=new We(U("wrapper",i));return e.add(this.node.cloneNode(!0)),e.xml(!1,i)}return super.xml(e,!1,i)}}function nt(e,t){return"radialGradient"===(this._element||this).type?this.attr({fx:new _e(e),fy:new _e(t)}):this.attr({x1:new _e(e),y1:new _e(t)})}function ot(e,t){return"radialGradient"===(this._element||this).type?this.attr({cx:new _e(e),cy:new _e(t)}):this.attr({x2:new _e(e),y2:new _e(t)})}Q(st,"Fragment");var lt=Object.freeze({__proto__:null,from:nt,to:ot});class ct extends Ue{constructor(e,t){super(V(e+"Gradient","string"==typeof e?null:e),t)}attr(e,t,i){return"transform"===e&&(e="gradientTransform"),super.attr(e,t,i)}bbox(){return new Se}targets(){return Le("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),"function"==typeof e&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}te(ct,lt),E({Container:{gradient(...e){return this.defs().gradient(...e)}},Defs:{gradient:ie(function(e,t){return this.put(new ct(e)).update(t)})}}),Q(ct,"Gradient");class dt extends Ue{constructor(e,t=e){super(V("pattern",e),t)}attr(e,t,i){return"transform"===e&&(e="patternTransform"),super.attr(e,t,i)}bbox(){return new Se}targets(){return Le("svg [fill*="+this.id()+"]")}toString(){return this.url()}update(e){return this.clear(),"function"==typeof e&&e.call(this,this),this}url(){return"url(#"+this.id()+")"}}E({Container:{pattern(...e){return this.defs().pattern(...e)}},Defs:{pattern:ie(function(e,t,i){return this.put(new dt).update(i).attr({x:0,y:0,width:e,height:t,patternUnits:"userSpaceOnUse"})})}}),Q(dt,"Pattern");let ht=class extends Ve{constructor(e,t=e){super(V("image",e),t)}load(e,t){if(!e)return this;const i=new _.window.Image;return Re(i,"load",function(e){const r=this.parent(dt);0===this.width()&&0===this.height()&&this.size(i.width,i.height),r instanceof dt&&0===r.width()&&0===r.height()&&r.size(this.width(),this.height()),"function"==typeof t&&t.call(this,e)},this),Re(i,"load error",function(){ze(i)}),this.attr("href",i.src=e,F)}};var ut;ut=function(e,t,i){return"fill"!==e&&"stroke"!==e||ge.test(t)&&(t=i.root().defs().image(t)),t instanceof ht&&(t=i.root().defs().pattern(0,0,e=>{e.add(t)})),t},Xe.push(ut),E({Container:{image:ie(function(e,t){return this.put(new ht).size(0,0).load(e,t)})}}),Q(ht,"Image");class gt extends Fe{bbox(){let e=-1/0,t=-1/0,i=1/0,r=1/0;return this.forEach(function(a){e=Math.max(a[0],e),t=Math.max(a[1],t),i=Math.min(a[0],i),r=Math.min(a[1],r)}),new Se(i,r,e-i,t-r)}move(e,t){const i=this.bbox();if(e-=i.x,t-=i.y,!isNaN(e)&&!isNaN(t))for(let i=this.length-1;i>=0;i--)this[i]=[this[i][0]+e,this[i][1]+t];return this}parse(e=[0,0]){const t=[];(e=e instanceof Array?Array.prototype.concat.apply([],e):e.trim().split(pe).map(parseFloat)).length%2!=0&&e.pop();for(let i=0,r=e.length;i<r;i+=2)t.push([e[i],e[i+1]]);return t}size(e,t){let i;const r=this.bbox();for(i=this.length-1;i>=0;i--)r.width&&(this[i][0]=(this[i][0]-r.x)*e/r.width+r.x),r.height&&(this[i][1]=(this[i][1]-r.y)*t/r.height+r.y);return this}toLine(){return{x1:this[0][0],y1:this[0][1],x2:this[1][0],y2:this[1][1]}}toString(){const e=[];for(let t=0,i=this.length;t<i;t++)e.push(this[t].join(","));return e.join(" ")}transform(e){return this.clone().transformO(e)}transformO(e){we.isMatrixLike(e)||(e=new we(e));for(let t=this.length;t--;){const[i,r]=this[t];this[t][0]=e.a*i+e.c*r+e.e,this[t][1]=e.b*i+e.d*r+e.f}return this}}const pt=gt;var ft=Object.freeze({__proto__:null,MorphArray:pt,height:function(e){const t=this.bbox();return null==e?t.height:this.size(t.width,e)},width:function(e){const t=this.bbox();return null==e?t.width:this.size(e,t.height)},x:function(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)},y:function(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)}});let bt=class extends Ve{constructor(e,t=e){super(V("line",e),t)}array(){return new gt([[this.attr("x1"),this.attr("y1")],[this.attr("x2"),this.attr("y2")]])}move(e,t){return this.attr(this.array().move(e,t).toLine())}plot(e,t,i,r){return null==e?this.array():(e=void 0!==t?{x1:e,y1:t,x2:i,y2:r}:new gt(e).toLine(),this.attr(e))}size(e,t){const i=M(this,e,t);return this.attr(this.array().size(i.width,i.height).toLine())}};te(bt,ft),E({Container:{line:ie(function(...e){return bt.prototype.plot.apply(this.put(new bt),null!=e[0]?e:[0,0,0,0])})}}),Q(bt,"Line");let mt=class extends Ue{constructor(e,t=e){super(V("marker",e),t)}height(e){return this.attr("markerHeight",e)}orient(e){return this.attr("orient",e)}ref(e,t){return this.attr("refX",e).attr("refY",t)}toString(){return"url(#"+this.id()+")"}update(e){return this.clear(),"function"==typeof e&&e.call(this,this),this}width(e){return this.attr("markerWidth",e)}};function xt(e,t){return function(i){return null==i?this[e]:(this[e]=i,t&&t.call(this),this)}}E({Container:{marker(...e){return this.defs().marker(...e)}},Defs:{marker:ie(function(e,t,i){return this.put(new mt).size(e,t).ref(e/2,t/2).viewbox(0,0,e,t).attr("orient","auto").update(i)})},marker:{marker(e,t,i,r){let a=["marker"];return"all"!==e&&a.push(e),a=a.join("-"),e=arguments[1]instanceof mt?arguments[1]:this.defs().marker(t,i,r),this.attr(a,e)}}}),Q(mt,"Marker");const vt={"-":function(e){return e},"<>":function(e){return-Math.cos(e*Math.PI)/2+.5},">":function(e){return Math.sin(e*Math.PI/2)},"<":function(e){return 1-Math.cos(e*Math.PI/2)},bezier:function(e,t,i,r){return function(a){return a<0?e>0?t/e*a:i>0?r/i*a:0:a>1?i<1?(1-r)/(1-i)*a+(r-i)/(1-i):e<1?(1-t)/(1-e)*a+(t-e)/(1-e):1:3*a*(1-a)**2*t+3*a**2*(1-a)*r+a**3}},steps:function(e,t="end"){t=t.split("-").reverse()[0];let i=e;return"none"===t?--i:"both"===t&&++i,(r,a=!1)=>{let s=Math.floor(r*e);const n=r*s%1==0;return"start"!==t&&"both"!==t||++s,a&&n&&--s,r>=0&&s<0&&(s=0),r<=1&&s>i&&(s=i),s/i}}};class yt{done(){return!1}}class At extends yt{constructor(e=">"){super(),this.ease=vt[e]||e}step(e,t,i){return"number"!=typeof e?i<1?e:t:e+(t-e)*this.ease(i)}}class wt extends yt{constructor(e){super(),this.stepper=e}done(e){return e.done}step(e,t,i,r){return this.stepper(e,t,i,r)}}function kt(){const e=(this._duration||500)/1e3,t=this._overshoot||0,i=Math.PI,r=Math.log(t/100+1e-10),a=-r/Math.sqrt(i*i+r*r),s=3.9/(a*e);this.d=2*a*s,this.k=s*s}te(class extends wt{constructor(e=500,t=0){super(),this.duration(e).overshoot(t)}step(e,t,i,r){if("string"==typeof e)return e;if(r.done=i===1/0,i===1/0)return t;if(0===i)return e;i>100&&(i=16),i/=1e3;const a=r.velocity||0,s=-this.d*a-this.k*(e-t),n=e+a*i+s*i*i/2;return r.velocity=a+s*i,r.done=Math.abs(t-n)+Math.abs(a)<.002,r.done?t:n}},{duration:xt("_duration",kt),overshoot:xt("_overshoot",kt)}),te(class extends wt{constructor(e=.1,t=.01,i=0,r=1e3){super(),this.p(e).i(t).d(i).windup(r)}step(e,t,i,r){if("string"==typeof e)return e;if(r.done=i===1/0,i===1/0)return t;if(0===i)return e;const a=t-e;let s=(r.integral||0)+a*i;const n=(a-(r.error||0))/i,o=this._windup;return!1!==o&&(s=Math.max(-o,Math.min(s,o))),r.error=a,r.integral=s,r.done=Math.abs(a)<.001,r.done?t:e+(this.P*a+this.I*s+this.D*n)}},{windup:xt("_windup"),p:xt("P"),i:xt("I"),d:xt("D")});const Ct={M:2,L:2,H:1,V:1,C:6,S:4,Q:4,T:2,A:7,Z:0},St={M:function(e,t,i){return t.x=i.x=e[0],t.y=i.y=e[1],["M",t.x,t.y]},L:function(e,t){return t.x=e[0],t.y=e[1],["L",e[0],e[1]]},H:function(e,t){return t.x=e[0],["H",e[0]]},V:function(e,t){return t.y=e[0],["V",e[0]]},C:function(e,t){return t.x=e[4],t.y=e[5],["C",e[0],e[1],e[2],e[3],e[4],e[5]]},S:function(e,t){return t.x=e[2],t.y=e[3],["S",e[0],e[1],e[2],e[3]]},Q:function(e,t){return t.x=e[2],t.y=e[3],["Q",e[0],e[1],e[2],e[3]]},T:function(e,t){return t.x=e[0],t.y=e[1],["T",e[0],e[1]]},Z:function(e,t,i){return t.x=i.x,t.y=i.y,["Z"]},A:function(e,t){return t.x=e[5],t.y=e[6],["A",e[0],e[1],e[2],e[3],e[4],e[5],e[6]]}},Et="mlhvqtcsaz".split("");for(let e=0,t=Et.length;e<t;++e)St[Et[e]]=function(e){return function(t,i,r){if("H"===e)t[0]=t[0]+i.x;else if("V"===e)t[0]=t[0]+i.y;else if("A"===e)t[5]=t[5]+i.x,t[6]=t[6]+i.y;else for(let e=0,r=t.length;e<r;++e)t[e]=t[e]+(e%2?i.y:i.x);return St[e](t,i,r)}}(Et[e].toUpperCase());function Dt(e){return e.segment.length&&e.segment.length-1===Ct[e.segment[0].toUpperCase()]}function Bt(e,t){e.inNumber&&Lt(e,!1);const i=fe.test(t);if(i)e.segment=[t];else{const t=e.lastCommand,i=t.toLowerCase(),r=t===i;e.segment=["m"===i?r?"l":"L":t]}return e.inSegment=!0,e.lastCommand=e.segment[0],i}function Lt(e,t){if(!e.inNumber)throw new Error("Parser Error");e.number&&e.segment.push(parseFloat(e.number)),e.inNumber=t,e.number="",e.pointSeen=!1,e.hasExponent=!1,Dt(e)&&Tt(e)}function Tt(e){e.inSegment=!1,e.absolute&&(e.segment=function(e){const t=e.segment[0];return St[t](e.segment.slice(1),e.p,e.p0)}(e)),e.segments.push(e.segment)}function Pt(e){if(!e.segment.length)return!1;const t="A"===e.segment[0].toUpperCase(),i=e.segment.length;return t&&(4===i||5===i)}function Mt(e){return"E"===e.lastToken.toUpperCase()}const It=new Set([" ",",","\t","\n","\r","\f"]);class Rt extends Fe{bbox(){return ke().path.setAttribute("d",this.toString()),new Se(ke.nodes.path.getBBox())}move(e,t){const i=this.bbox();if(e-=i.x,t-=i.y,!isNaN(e)&&!isNaN(t))for(let i,r=this.length-1;r>=0;r--)i=this[r][0],"M"===i||"L"===i||"T"===i?(this[r][1]+=e,this[r][2]+=t):"H"===i?this[r][1]+=e:"V"===i?this[r][1]+=t:"C"===i||"S"===i||"Q"===i?(this[r][1]+=e,this[r][2]+=t,this[r][3]+=e,this[r][4]+=t,"C"===i&&(this[r][5]+=e,this[r][6]+=t)):"A"===i&&(this[r][6]+=e,this[r][7]+=t);return this}parse(e="M0 0"){return Array.isArray(e)&&(e=Array.prototype.concat.apply([],e).toString()),function(e,t=!0){let i=0,r="";const a={segment:[],inNumber:!1,number:"",lastToken:"",inSegment:!1,segments:[],pointSeen:!1,hasExponent:!1,absolute:t,p0:new ye,p:new ye};for(;a.lastToken=r,r=e.charAt(i++);)if(a.inSegment||!Bt(a,r))if("."!==r)if(isNaN(parseInt(r)))if(It.has(r))a.inNumber&&Lt(a,!1);else if("-"!==r&&"+"!==r)if("E"!==r.toUpperCase()){if(fe.test(r)){if(a.inNumber)Lt(a,!1);else{if(!Dt(a))throw new Error("parser Error");Tt(a)}--i}}else a.number+=r,a.hasExponent=!0;else{if(a.inNumber&&!Mt(a)){Lt(a,!1),--i;continue}a.number+=r,a.inNumber=!0}else{if("0"===a.number||Pt(a)){a.inNumber=!0,a.number=r,Lt(a,!0);continue}a.inNumber=!0,a.number+=r}else{if(a.pointSeen||a.hasExponent){Lt(a,!1),--i;continue}a.inNumber=!0,a.pointSeen=!0,a.number+=r}return a.inNumber&&Lt(a,!1),a.inSegment&&Dt(a)&&Tt(a),a.segments}(e)}size(e,t){const i=this.bbox();let r,a;for(i.width=0===i.width?1:i.width,i.height=0===i.height?1:i.height,r=this.length-1;r>=0;r--)a=this[r][0],"M"===a||"L"===a||"T"===a?(this[r][1]=(this[r][1]-i.x)*e/i.width+i.x,this[r][2]=(this[r][2]-i.y)*t/i.height+i.y):"H"===a?this[r][1]=(this[r][1]-i.x)*e/i.width+i.x:"V"===a?this[r][1]=(this[r][1]-i.y)*t/i.height+i.y:"C"===a||"S"===a||"Q"===a?(this[r][1]=(this[r][1]-i.x)*e/i.width+i.x,this[r][2]=(this[r][2]-i.y)*t/i.height+i.y,this[r][3]=(this[r][3]-i.x)*e/i.width+i.x,this[r][4]=(this[r][4]-i.y)*t/i.height+i.y,"C"===a&&(this[r][5]=(this[r][5]-i.x)*e/i.width+i.x,this[r][6]=(this[r][6]-i.y)*t/i.height+i.y)):"A"===a&&(this[r][1]=this[r][1]*e/i.width,this[r][2]=this[r][2]*t/i.height,this[r][6]=(this[r][6]-i.x)*e/i.width+i.x,this[r][7]=(this[r][7]-i.y)*t/i.height+i.y);return this}toString(){return function(e){let t="";for(let i=0,r=e.length;i<r;i++)t+=e[i][0],null!=e[i][1]&&(t+=e[i][1],null!=e[i][2]&&(t+=" ",t+=e[i][2],null!=e[i][3]&&(t+=" ",t+=e[i][3],t+=" ",t+=e[i][4],null!=e[i][5]&&(t+=" ",t+=e[i][5],t+=" ",t+=e[i][6],null!=e[i][7]&&(t+=" ",t+=e[i][7])))));return t+" "}(this)}}const zt=e=>{const t=typeof e;return"number"===t?_e:"string"===t?ve.isColor(e)?ve:pe.test(e)?fe.test(e)?Rt:Fe:re.test(e)?_e:Nt:Yt.indexOf(e.constructor)>-1?e.constructor:Array.isArray(e)?Fe:"object"===t?_t:Nt};class Ot{constructor(e){this._stepper=e||new At("-"),this._from=null,this._to=null,this._type=null,this._context=null,this._morphObj=null}at(e){return this._morphObj.morph(this._from,this._to,e,this._stepper,this._context)}done(){return this._context.map(this._stepper.done).reduce(function(e,t){return e&&t},!0)}from(e){return null==e?this._from:(this._from=this._set(e),this)}stepper(e){return null==e?this._stepper:(this._stepper=e,this)}to(e){return null==e?this._to:(this._to=this._set(e),this)}type(e){return null==e?this._type:(this._type=e,this)}_set(e){this._type||this.type(zt(e));let t=new this._type(e);return this._type===ve&&(t=this._to?t[this._to[4]]():this._from?t[this._from[4]]():t),this._type===_t&&(t=this._to?t.align(this._to):this._from?t.align(this._from):t),t=t.toConsumable(),this._morphObj=this._morphObj||new this._type,this._context=this._context||Array.apply(null,Array(t.length)).map(Object).map(function(e){return e.done=!0,e}),t}}class Nt{constructor(...e){this.init(...e)}init(e){return e=Array.isArray(e)?e[0]:e,this.value=e,this}toArray(){return[this.value]}valueOf(){return this.value}}class Ht{constructor(...e){this.init(...e)}init(e){return Array.isArray(e)&&(e={scaleX:e[0],scaleY:e[1],shear:e[2],rotate:e[3],translateX:e[4],translateY:e[5],originX:e[6],originY:e[7]}),Object.assign(this,Ht.defaults,e),this}toArray(){const e=this;return[e.scaleX,e.scaleY,e.shear,e.rotate,e.translateX,e.translateY,e.originX,e.originY]}}Ht.defaults={scaleX:1,scaleY:1,shear:0,rotate:0,translateX:0,translateY:0,originX:0,originY:0};const Ft=(e,t)=>e[0]<t[0]?-1:e[0]>t[0]?1:0;class _t{constructor(...e){this.init(...e)}align(e){const t=this.values;for(let i=0,r=t.length;i<r;++i){if(t[i+1]===e[i+1]){if(t[i+1]===ve&&e[i+7]!==t[i+7]){const t=e[i+7],r=new ve(this.values.splice(i+3,5))[t]().toArray();this.values.splice(i+3,0,...r)}i+=t[i+2]+2;continue}if(!e[i+1])return this;const r=(new e[i+1]).toArray(),a=t[i+2]+3;t.splice(i,a,e[i],e[i+1],e[i+2],...r),i+=t[i+2]+2}return this}init(e){if(this.values=[],Array.isArray(e))return void(this.values=e.slice());e=e||{};const t=[];for(const i in e){const r=zt(e[i]),a=new r(e[i]).toArray();t.push([i,r,a.length,...a])}return t.sort(Ft),this.values=t.reduce((e,t)=>e.concat(t),[]),this}toArray(){return this.values}valueOf(){const e={},t=this.values;for(;t.length;){const i=t.shift(),r=t.shift(),a=t.shift(),s=t.splice(0,a);e[i]=new r(s)}return e}}const Yt=[Nt,Ht,_t];class Xt extends Ve{constructor(e,t=e){super(V("path",e),t)}array(){return this._array||(this._array=new Rt(this.attr("d")))}clear(){return delete this._array,this}height(e){return null==e?this.bbox().height:this.size(this.bbox().width,e)}move(e,t){return this.attr("d",this.array().move(e,t))}plot(e){return null==e?this.array():this.clear().attr("d","string"==typeof e?e:this._array=new Rt(e))}size(e,t){const i=M(this,e,t);return this.attr("d",this.array().size(i.width,i.height))}width(e){return null==e?this.bbox().width:this.size(e,this.bbox().height)}x(e){return null==e?this.bbox().x:this.move(e,this.bbox().y)}y(e){return null==e?this.bbox().y:this.move(this.bbox().x,e)}}Xt.prototype.MorphArray=Rt,E({Container:{path:ie(function(e){return this.put(new Xt).plot(e||new Rt)})}}),Q(Xt,"Path");var Wt=Object.freeze({__proto__:null,array:function(){return this._array||(this._array=new gt(this.attr("points")))},clear:function(){return delete this._array,this},move:function(e,t){return this.attr("points",this.array().move(e,t))},plot:function(e){return null==e?this.array():this.clear().attr("points","string"==typeof e?e:this._array=new gt(e))},size:function(e,t){const i=M(this,e,t);return this.attr("points",this.array().size(i.width,i.height))}});class qt extends Ve{constructor(e,t=e){super(V("polygon",e),t)}}E({Container:{polygon:ie(function(e){return this.put(new qt).plot(e||new gt)})}}),te(qt,ft),te(qt,Wt),Q(qt,"Polygon");class jt extends Ve{constructor(e,t=e){super(V("polyline",e),t)}}E({Container:{polyline:ie(function(e){return this.put(new jt).plot(e||new gt)})}}),te(jt,ft),te(jt,Wt),Q(jt,"Polyline");class Ut extends Ve{constructor(e,t=e){super(V("rect",e),t)}}te(Ut,{rx:Ze,ry:$e}),E({Container:{rect:ie(function(e,t){return this.put(new Ut).size(e,t)})}}),Q(Ut,"Rect");class Gt{constructor(){this._first=null,this._last=null}first(){return this._first&&this._first.value}last(){return this._last&&this._last.value}push(e){const t=void 0!==e.next?e:{value:e,next:null,prev:null};return this._last?(t.prev=this._last,this._last.next=t,this._last=t):(this._last=t,this._first=t),t}remove(e){e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e===this._last&&(this._last=e.prev),e===this._first&&(this._first=e.next),e.prev=null,e.next=null}shift(){const e=this._first;return e?(this._first=e.next,this._first&&(this._first.prev=null),this._last=this._first?this._last:null,e.value):null}}const Vt={nextDraw:null,frames:new Gt,timeouts:new Gt,immediates:new Gt,timer:()=>_.window.performance||_.window.Date,transforms:[],frame(e){const t=Vt.frames.push({run:e});return null===Vt.nextDraw&&(Vt.nextDraw=_.window.requestAnimationFrame(Vt._draw)),t},timeout(e,t){t=t||0;const i=Vt.timer().now()+t,r=Vt.timeouts.push({run:e,time:i});return null===Vt.nextDraw&&(Vt.nextDraw=_.window.requestAnimationFrame(Vt._draw)),r},immediate(e){const t=Vt.immediates.push(e);return null===Vt.nextDraw&&(Vt.nextDraw=_.window.requestAnimationFrame(Vt._draw)),t},cancelFrame(e){null!=e&&Vt.frames.remove(e)},clearTimeout(e){null!=e&&Vt.timeouts.remove(e)},cancelImmediate(e){null!=e&&Vt.immediates.remove(e)},_draw(e){let t=null;const i=Vt.timeouts.last();for(;(t=Vt.timeouts.shift())&&(e>=t.time?t.run():Vt.timeouts.push(t),t!==i););let r=null;const a=Vt.frames.last();for(;r!==a&&(r=Vt.frames.shift());)r.run(e);let s=null;for(;s=Vt.immediates.shift();)s();Vt.nextDraw=Vt.timeouts.first()||Vt.frames.first()?_.window.requestAnimationFrame(Vt._draw):null}},Zt=function(e){const t=e.start,i=e.runner.duration();return{start:t,duration:i,end:t+i,runner:e.runner}},$t=function(){const e=_.window;return(e.performance||e.Date).now()};class Qt extends Oe{constructor(e=$t){super(),this._timeSource=e,this.terminate()}active(){return!!this._nextFrame}finish(){return this.time(this.getEndTimeOfTimeline()+1),this.pause()}getEndTime(){const e=this.getLastRunnerInfo(),t=e?e.runner.duration():0;return(e?e.start:this._time)+t}getEndTimeOfTimeline(){const e=this._runners.map(e=>e.start+e.runner.duration());return Math.max(0,...e)}getLastRunnerInfo(){return this.getRunnerInfoById(this._lastRunnerId)}getRunnerInfoById(e){return this._runners[this._runnerIds.indexOf(e)]||null}pause(){return this._paused=!0,this._continue()}persist(e){return null==e?this._persist:(this._persist=e,this)}play(){return this._paused=!1,this.updateTime()._continue()}reverse(e){const t=this.speed();if(null==e)return this.speed(-t);const i=Math.abs(t);return this.speed(e?-i:i)}schedule(e,t,i){if(null==e)return this._runners.map(Zt);let r=0;const a=this.getEndTime();if(t=t||0,null==i||"last"===i||"after"===i)r=a;else if("absolute"===i||"start"===i)r=t,t=0;else if("now"===i)r=this._time;else if("relative"===i){const i=this.getRunnerInfoById(e.id);i&&(r=i.start+t,t=0)}else{if("with-last"!==i)throw new Error('Invalid value for the "when" parameter');{const e=this.getLastRunnerInfo();r=e?e.start:this._time}}e.unschedule(),e.timeline(this);const s=e.persist(),n={persist:null===s?this._persist:s,start:r+t,runner:e};return this._lastRunnerId=e.id,this._runners.push(n),this._runners.sort((e,t)=>e.start-t.start),this._runnerIds=this._runners.map(e=>e.runner.id),this.updateTime()._continue(),this}seek(e){return this.time(this._time+e)}source(e){return null==e?this._timeSource:(this._timeSource=e,this)}speed(e){return null==e?this._speed:(this._speed=e,this)}stop(){return this.time(0),this.pause()}time(e){return null==e?this._time:(this._time=e,this._continue(!0))}unschedule(e){const t=this._runnerIds.indexOf(e.id);return t<0||(this._runners.splice(t,1),this._runnerIds.splice(t,1),e.timeline(null)),this}updateTime(){return this.active()||(this._lastSourceTime=this._timeSource()),this}_continue(e=!1){return Vt.cancelFrame(this._nextFrame),this._nextFrame=null,e?this._stepImmediate():(this._paused||(this._nextFrame=Vt.frame(this._step)),this)}_stepFn(e=!1){const t=this._timeSource();let i=t-this._lastSourceTime;e&&(i=0);const r=this._speed*i+(this._time-this._lastStepTime);this._lastSourceTime=t,e||(this._time+=r,this._time=this._time<0?0:this._time),this._lastStepTime=this._time,this.fire("time",this._time);for(let e=this._runners.length;e--;){const t=this._runners[e],i=t.runner;this._time-t.start<=0&&i.reset()}let a=!1;for(let e=0,t=this._runners.length;e<t;e++){const i=this._runners[e],s=i.runner;let n=r;const o=this._time-i.start;o<=0?a=!0:(o<n&&(n=o),s.active()&&(s.step(n).done?!0!==i.persist&&s.duration()-s.time()+this._time+i.persist<this._time&&(s.unschedule(),--e,--t):a=!0))}return a&&!(this._speed<0&&0===this._time)||this._runnerIds.length&&this._speed<0&&this._time>0?this._continue():(this.pause(),this.fire("finished")),this}terminate(){this._startTime=0,this._speed=1,this._persist=0,this._nextFrame=null,this._paused=!0,this._runners=[],this._runnerIds=[],this._lastRunnerId=-1,this._time=0,this._lastSourceTime=0,this._lastStepTime=0,this._step=this._stepFn.bind(this,!1),this._stepImmediate=this._stepFn.bind(this,!0)}}E({Element:{timeline:function(e){return null==e?(this._timeline=this._timeline||new Qt,this._timeline):(this._timeline=e,this)}}});class Jt extends Oe{constructor(e){super(),this.id=Jt.id++,e="function"==typeof(e=null==e?400:e)?new wt(e):e,this._element=null,this._timeline=null,this.done=!1,this._queue=[],this._duration="number"==typeof e&&e,this._isDeclarative=e instanceof wt,this._stepper=this._isDeclarative?e:new At,this._history={},this.enabled=!0,this._time=0,this._lastTime=0,this._reseted=!0,this.transforms=new we,this.transformId=1,this._haveReversed=!1,this._reverse=!1,this._loopsDone=0,this._swing=!1,this._wait=0,this._times=1,this._frameId=null,this._persist=!!this._isDeclarative||null}static sanitise(e,t,i){let r=1,a=!1,s=0;return t=t??0,i=i||"last","object"!=typeof(e=e??400)||e instanceof yt||(t=e.delay??t,i=e.when??i,a=e.swing||a,r=e.times??r,s=e.wait??s,e=e.duration??400),{duration:e,delay:t,swing:a,times:r,wait:s,when:i}}active(e){return null==e?this.enabled:(this.enabled=e,this)}addTransform(e){return this.transforms.lmultiplyO(e),this}after(e){return this.on("finished",e)}animate(e,t,i){const r=Jt.sanitise(e,t,i),a=new Jt(r.duration);return this._timeline&&a.timeline(this._timeline),this._element&&a.element(this._element),a.loop(r).schedule(r.delay,r.when)}clearTransform(){return this.transforms=new we,this}clearTransformsFromQueue(){this.done&&this._timeline&&this._timeline._runnerIds.includes(this.id)||(this._queue=this._queue.filter(e=>!e.isTransform))}delay(e){return this.animate(0,e)}duration(){return this._times*(this._wait+this._duration)-this._wait}during(e){return this.queue(null,e)}ease(e){return this._stepper=new At(e),this}element(e){return null==e?this._element:(this._element=e,e._prepareRunner(),this)}finish(){return this.step(1/0)}loop(e,t,i){return"object"==typeof e&&(t=e.swing,i=e.wait,e=e.times),this._times=e||1/0,this._swing=t||!1,this._wait=i||0,!0===this._times&&(this._times=1/0),this}loops(e){const t=this._duration+this._wait;if(null==e){const e=Math.floor(this._time/t),i=(this._time-e*t)/this._duration;return Math.min(e+i,this._times)}const i=e%1,r=t*Math.floor(e)+this._duration*i;return this.time(r)}persist(e){return null==e?this._persist:(this._persist=e,this)}position(e){const t=this._time,i=this._duration,r=this._wait,a=this._times,s=this._swing,n=this._reverse;let o;if(null==e){const e=function(e){const t=s*Math.floor(e%(2*(r+i))/(r+i)),a=t&&!n||!t&&n,o=Math.pow(-1,a)*(e%(r+i))/i+a;return Math.max(Math.min(o,1),0)},l=a*(r+i)-r;return o=t<=0?Math.round(e(1e-5)):t<l?e(t):Math.round(e(l-1e-5)),o}const l=Math.floor(this.loops()),c=s&&l%2==0;return o=l+(c&&!n||n&&c?e:1-e),this.loops(o)}progress(e){return null==e?Math.min(1,this._time/this.duration()):this.time(e*this.duration())}queue(e,t,i,r){return this._queue.push({initialiser:e||Ne,runner:t||Ne,retarget:i,isTransform:r,initialised:!1,finished:!1}),this.timeline()&&this.timeline()._continue(),this}reset(){return this._reseted||(this.time(0),this._reseted=!0),this}reverse(e){return this._reverse=null==e?!this._reverse:e,this}schedule(e,t,i){if(e instanceof Qt||(i=t,t=e,e=this.timeline()),!e)throw Error("Runner cannot be scheduled without timeline");return e.schedule(this,t,i),this}step(e){if(!this.enabled)return this;e=null==e?16:e,this._time+=e;const t=this.position(),i=this._lastPosition!==t&&this._time>=0;this._lastPosition=t;const r=this.duration(),a=this._lastTime<=0&&this._time>0,s=this._lastTime<r&&this._time>=r;this._lastTime=this._time,a&&this.fire("start",this);const n=this._isDeclarative;this.done=!n&&!s&&this._time>=r,this._reseted=!1;let o=!1;return(i||n)&&(this._initialise(i),this.transforms=new we,o=this._run(n?e:t),this.fire("step",this)),this.done=this.done||o&&n,s&&this.fire("finished",this),this}time(e){if(null==e)return this._time;const t=e-this._time;return this.step(t),this}timeline(e){return void 0===e?this._timeline:(this._timeline=e,this)}unschedule(){const e=this.timeline();return e&&e.unschedule(this),this}_initialise(e){if(e||this._isDeclarative)for(let t=0,i=this._queue.length;t<i;++t){const i=this._queue[t],r=this._isDeclarative||!i.initialised&&e;e=!i.finished,r&&e&&(i.initialiser.call(this),i.initialised=!0)}}_rememberMorpher(e,t){if(this._history[e]={morpher:t,caller:this._queue[this._queue.length-1]},this._isDeclarative){const e=this.timeline();e&&e.play()}}_run(e){let t=!0;for(let i=0,r=this._queue.length;i<r;++i){const r=this._queue[i],a=r.runner.call(this,e);r.finished=r.finished||!0===a,t=t&&r.finished}return t}_tryRetarget(e,t,i){if(this._history[e]){if(!this._history[e].caller.initialised){const t=this._queue.indexOf(this._history[e].caller);return this._queue.splice(t,1),!1}this._history[e].caller.retarget?this._history[e].caller.retarget.call(this,t,i):this._history[e].morpher.to(t),this._history[e].caller.finished=!1;const r=this.timeline();return r&&r.play(),!0}return!1}}Jt.id=0;class Kt{constructor(e=new we,t=-1,i=!0){this.transforms=e,this.id=t,this.done=i}clearTransformsFromQueue(){}}te([Jt,Kt],{mergeWith(e){return new Kt(e.transforms.lmultiply(this.transforms),e.id)}});const ei=(e,t)=>e.lmultiplyO(t),ti=e=>e.transforms;function ii(){const e=this._transformationRunners.runners.map(ti).reduce(ei,new we);this.transform(e),this._transformationRunners.merge(),1===this._transformationRunners.length()&&(this._frameId=null)}class ri{constructor(){this.runners=[],this.ids=[]}add(e){if(this.runners.includes(e))return;const t=e.id+1;return this.runners.push(e),this.ids.push(t),this}clearBefore(e){const t=this.ids.indexOf(e+1)||1;return this.ids.splice(0,t,0),this.runners.splice(0,t,new Kt).forEach(e=>e.clearTransformsFromQueue()),this}edit(e,t){const i=this.ids.indexOf(e+1);return this.ids.splice(i,1,e+1),this.runners.splice(i,1,t),this}getByID(e){return this.runners[this.ids.indexOf(e+1)]}length(){return this.ids.length}merge(){let e=null;for(let t=0;t<this.runners.length;++t){const i=this.runners[t];if(!(e&&i.done&&e.done)||i._timeline&&i._timeline._runnerIds.includes(i.id)||e._timeline&&e._timeline._runnerIds.includes(e.id))e=i;else{this.remove(i.id);const r=i.mergeWith(e);this.edit(e.id,r),e=r,--t}}return this}remove(e){const t=this.ids.indexOf(e+1);return this.ids.splice(t,1),this.runners.splice(t,1),this}}E({Element:{animate(e,t,i){const r=Jt.sanitise(e,t,i),a=this.timeline();return new Jt(r.duration).loop(r).element(this).timeline(a.play()).schedule(r.delay,r.when)},delay(e,t){return this.animate(0,e,t)},_clearTransformRunnersBefore(e){this._transformationRunners.clearBefore(e.id)},_currentTransform(e){return this._transformationRunners.runners.filter(t=>t.id<=e.id).map(ti).reduce(ei,new we)},_addRunner(e){this._transformationRunners.add(e),Vt.cancelImmediate(this._frameId),this._frameId=Vt.immediate(ii.bind(this))},_prepareRunner(){null==this._frameId&&(this._transformationRunners=(new ri).add(new Kt(new we(this))))}}}),te(Jt,{attr(e,t){return this.styleAttr("attr",e,t)},css(e,t){return this.styleAttr("css",e,t)},styleAttr(e,t,i){if("string"==typeof t)return this.styleAttr(e,{[t]:i});let r=t;if(this._tryRetarget(e,r))return this;let a=new Ot(this._stepper).to(r),s=Object.keys(r);return this.queue(function(){a=a.from(this.element()[e](s))},function(t){return this.element()[e](a.at(t).valueOf()),a.done()},function(t){const i=Object.keys(t),n=(o=s,i.filter(e=>!o.includes(e)));var o;if(n.length){const t=this.element()[e](n),i=new _t(a.from()).valueOf();Object.assign(i,t),a.from(i)}const l=new _t(a.to()).valueOf();Object.assign(l,t),a.to(l),s=i,r=t}),this._rememberMorpher(e,a),this},zoom(e,t){if(this._tryRetarget("zoom",e,t))return this;let i=new Ot(this._stepper).to(new _e(e));return this.queue(function(){i=i.from(this.element().zoom())},function(e){return this.element().zoom(i.at(e),t),i.done()},function(e,r){t=r,i.to(e)}),this._rememberMorpher("zoom",i),this},transform(e,t,i){if(t=e.relative||t,this._isDeclarative&&!t&&this._tryRetarget("transform",e))return this;const r=we.isMatrixLike(e);i=null!=e.affine?e.affine:null!=i?i:!r;const a=new Ot(this._stepper).type(i?Ht:we);let s,n,o,l,c;return this.queue(function(){n=n||this.element(),s=s||I(e,n),c=new we(t?void 0:n),n._addRunner(this),t||n._clearTransformRunnersBefore(this)},function(d){t||this.clearTransform();const{x:h,y:u}=new ye(s).transform(n._currentTransform(this));let g=new we({...e,origin:[h,u]}),p=this._isDeclarative&&o?o:c;if(i){g=g.decompose(h,u),p=p.decompose(h,u);const e=g.rotate,t=p.rotate,i=[e-360,e,e+360],r=i.map(e=>Math.abs(e-t)),a=Math.min(...r),s=r.indexOf(a);g.rotate=i[s]}t&&(r||(g.rotate=e.rotate||0),this._isDeclarative&&l&&(p.rotate=l)),a.from(p),a.to(g);const f=a.at(d);return l=f.rotate,o=new we(f),this.addTransform(o),n._addRunner(this),a.done()},function(t){(t.origin||"center").toString()!==(e.origin||"center").toString()&&(s=I(t,n)),e={...t,origin:s}},!0),this._isDeclarative&&this._rememberMorpher("transform",a),this},x(e){return this._queueNumber("x",e)},y(e){return this._queueNumber("y",e)},ax(e){return this._queueNumber("ax",e)},ay(e){return this._queueNumber("ay",e)},dx(e=0){return this._queueNumberDelta("x",e)},dy(e=0){return this._queueNumberDelta("y",e)},dmove(e,t){return this.dx(e).dy(t)},_queueNumberDelta(e,t){if(t=new _e(t),this._tryRetarget(e,t))return this;const i=new Ot(this._stepper).to(t);let r=null;return this.queue(function(){r=this.element()[e](),i.from(r),i.to(r+t)},function(t){return this.element()[e](i.at(t)),i.done()},function(e){i.to(r+new _e(e))}),this._rememberMorpher(e,i),this},_queueObject(e,t){if(this._tryRetarget(e,t))return this;const i=new Ot(this._stepper).to(t);return this.queue(function(){i.from(this.element()[e]())},function(t){return this.element()[e](i.at(t)),i.done()}),this._rememberMorpher(e,i),this},_queueNumber(e,t){return this._queueObject(e,new _e(t))},cx(e){return this._queueNumber("cx",e)},cy(e){return this._queueNumber("cy",e)},move(e,t){return this.x(e).y(t)},amove(e,t){return this.ax(e).ay(t)},center(e,t){return this.cx(e).cy(t)},size(e,t){let i;return e&&t||(i=this._element.bbox()),e||(e=i.width/i.height*t),t||(t=i.height/i.width*e),this.width(e).height(t)},width(e){return this._queueNumber("width",e)},height(e){return this._queueNumber("height",e)},plot(e,t,i,r){if(4===arguments.length)return this.plot([e,t,i,r]);if(this._tryRetarget("plot",e))return this;const a=new Ot(this._stepper).type(this._element.MorphArray).to(e);return this.queue(function(){a.from(this._element.array())},function(e){return this._element.plot(a.at(e)),a.done()}),this._rememberMorpher("plot",a),this},leading(e){return this._queueNumber("leading",e)},viewbox(e,t,i,r){return this._queueObject("viewbox",new Se(e,t,i,r))},update(e){return"object"!=typeof e?this.update({offset:arguments[0],color:arguments[1],opacity:arguments[2]}):(null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",e.offset),this)}}),te(Jt,{rx:Ze,ry:$e,from:nt,to:ot}),Q(Jt,"Runner");class ai extends Ue{constructor(e,t=e){super(V("svg",e),t),this.namespace()}defs(){return this.isRoot()?Z(this.node.querySelector("defs"))||this.put(new Ge):this.root().defs()}isRoot(){return!this.node.parentNode||!(this.node.parentNode instanceof _.window.SVGElement)&&"#document-fragment"!==this.node.parentNode.nodeName}namespace(){return this.isRoot()?this.attr({xmlns:N,version:"1.1"}).attr("xmlns:xlink",F,H):this.root().namespace()}removeNamespace(){return this.attr({xmlns:null,version:null}).attr("xmlns:xlink",null,H).attr("xmlns:svgjs",null,H)}root(){return this.isRoot()?this:super.root()}}E({Container:{nested:ie(function(){return this.put(new ai)})}}),Q(ai,"Svg",!0);let si=class extends Ue{constructor(e,t=e){super(V("symbol",e),t)}};E({Container:{symbol:ie(function(){return this.put(new si)})}}),Q(si,"Symbol");var ni=Object.freeze({__proto__:null,amove:function(e,t){return this.ax(e).ay(t)},ax:function(e){return this.attr("x",e)},ay:function(e){return this.attr("y",e)},build:function(e){return this._build=!!e,this},center:function(e,t,i=this.bbox()){return this.cx(e,i).cy(t,i)},cx:function(e,t=this.bbox()){return null==e?t.cx:this.attr("x",this.attr("x")+e-t.cx)},cy:function(e,t=this.bbox()){return null==e?t.cy:this.attr("y",this.attr("y")+e-t.cy)},length:function(){return this.node.getComputedTextLength()},move:function(e,t,i=this.bbox()){return this.x(e,i).y(t,i)},plain:function(e){return!1===this._build&&this.clear(),this.node.appendChild(_.document.createTextNode(e)),this},x:function(e,t=this.bbox()){return null==e?t.x:this.attr("x",this.attr("x")+e-t.x)},y:function(e,t=this.bbox()){return null==e?t.y:this.attr("y",this.attr("y")+e-t.y)}});class oi extends Ve{constructor(e,t=e){super(V("text",e),t),this.dom.leading=this.dom.leading??new _e(1.3),this._rebuild=!0,this._build=!1}leading(e){return null==e?this.dom.leading:(this.dom.leading=new _e(e),this.rebuild())}rebuild(e){if("boolean"==typeof e&&(this._rebuild=e),this._rebuild){const e=this;let t=0;const i=this.dom.leading;this.each(function(r){if(z(this.node))return;const a=_.window.getComputedStyle(this.node).getPropertyValue("font-size"),s=i*new _e(a);this.dom.newLined&&(this.attr("x",e.attr("x")),"\n"===this.text()?t+=s:(this.attr("dy",r?s+t:0),t=0))}),this.fire("rebuild")}return this}setData(e){return this.dom=e,this.dom.leading=new _e(e.leading||1.3),this}writeDataToDom(){return O(this,this.dom,{leading:1.3}),this}text(e){if(void 0===e){const t=this.node.childNodes;let i=0;e="";for(let r=0,a=t.length;r<a;++r)"textPath"===t[r].nodeName||z(t[r])?0===r&&(i=r+1):(r!==i&&3!==t[r].nodeType&&!0===Z(t[r]).dom.newLined&&(e+="\n"),e+=t[r].textContent);return e}if(this.clear().build(!0),"function"==typeof e)e.call(this,this);else for(let t=0,i=(e=(e+"").split("\n")).length;t<i;t++)this.newLine(e[t]);return this.build(!1).rebuild()}}te(oi,ni),E({Container:{text:ie(function(e=""){return this.put(new oi).text(e)}),plain:ie(function(e=""){return this.put(new oi).plain(e)})}}),Q(oi,"Text");class li extends Ve{constructor(e,t=e){super(V("tspan",e),t),this._build=!1}dx(e){return this.attr("dx",e)}dy(e){return this.attr("dy",e)}newLine(){this.dom.newLined=!0;const e=this.parent();if(!(e instanceof oi))return this;const t=e.index(this),i=_.window.getComputedStyle(this.node).getPropertyValue("font-size"),r=e.dom.leading*new _e(i);return this.dy(t?r:0).attr("x",e.x())}text(e){return null==e?this.node.textContent+(this.dom.newLined?"\n":""):("function"==typeof e?(this.clear().build(!0),e.call(this,this),this.build(!1)):this.plain(e),this)}}te(li,ni),E({Tspan:{tspan:ie(function(e=""){const t=new li;return this._build||this.clear(),this.put(t).text(e)})},Text:{newLine:function(e=""){return this.tspan(e).newLine()}}}),Q(li,"Tspan");class ci extends Ve{constructor(e,t=e){super(V("circle",e),t)}radius(e){return this.attr("r",e)}rx(e){return this.attr("r",e)}ry(e){return this.rx(e)}size(e){return this.radius(new _e(e).divide(2))}}te(ci,{x:Qe,y:Je,cx:Ke,cy:et,width:tt,height:it}),E({Container:{circle:ie(function(e=0){return this.put(new ci).size(e).move(0,0)})}}),Q(ci,"Circle");class di extends Ue{constructor(e,t=e){super(V("clipPath",e),t)}remove(){return this.targets().forEach(function(e){e.unclip()}),super.remove()}targets(){return Le("svg [clip-path*="+this.id()+"]")}}E({Container:{clip:ie(function(){return this.defs().put(new di)})},Element:{clipper(){return this.reference("clip-path")},clipWith(e){const t=e instanceof di?e:this.parent().clip().add(e);return this.attr("clip-path","url(#"+t.id()+")")},unclip(){return this.attr("clip-path",null)}}}),Q(di,"ClipPath");class hi extends qe{constructor(e,t=e){super(V("foreignObject",e),t)}}E({Container:{foreignObject:ie(function(e,t){return this.put(new hi).size(e,t)})}}),Q(hi,"ForeignObject");var ui=Object.freeze({__proto__:null,dmove:function(e,t){return this.children().forEach(i=>{let r;try{r=i.node instanceof Y().SVGSVGElement?new Se(i.attr(["x","y","width","height"])):i.bbox()}catch(e){return}const a=new we(i),s=a.translate(e,t).transform(a.inverse()),n=new ye(r.x,r.y).transform(s);i.move(n.x,n.y)}),this},dx:function(e){return this.dmove(e,0)},dy:function(e){return this.dmove(0,e)},height:function(e,t=this.bbox()){return null==e?t.height:this.size(t.width,e,t)},move:function(e=0,t=0,i=this.bbox()){const r=e-i.x,a=t-i.y;return this.dmove(r,a)},size:function(e,t,i=this.bbox()){const r=M(this,e,t,i),a=r.width/i.width,s=r.height/i.height;return this.children().forEach(e=>{const t=new ye(i).transform(new we(e).inverse());e.scale(a,s,t.x,t.y)}),this},width:function(e,t=this.bbox()){return null==e?t.width:this.size(e,t.height,t)},x:function(e,t=this.bbox()){return null==e?t.x:this.move(e,t.y,t)},y:function(e,t=this.bbox()){return null==e?t.y:this.move(t.x,e,t)}});class gi extends Ue{constructor(e,t=e){super(V("g",e),t)}}te(gi,ui),E({Container:{group:ie(function(){return this.put(new gi)})}}),Q(gi,"G");class pi extends Ue{constructor(e,t=e){super(V("a",e),t)}target(e){return this.attr("target",e)}to(e){return this.attr("href",e,F)}}te(pi,ui),E({Container:{link:ie(function(e){return this.put(new pi).to(e)})},Element:{unlink(){const e=this.linker();if(!e)return this;const t=e.parent();if(!t)return this.remove();const i=t.index(e);return t.add(this,i),e.remove(),this},linkTo(e){let t=this.linker();return t||(t=new pi,this.wrap(t)),"function"==typeof e?e.call(t,t):t.to(e),this},linker(){const e=this.parent();return e&&"a"===e.node.nodeName.toLowerCase()?e:null}}}),Q(pi,"A");class fi extends Ue{constructor(e,t=e){super(V("mask",e),t)}remove(){return this.targets().forEach(function(e){e.unmask()}),super.remove()}targets(){return Le("svg [mask*="+this.id()+"]")}}E({Container:{mask:ie(function(){return this.defs().put(new fi)})},Element:{masker(){return this.reference("mask")},maskWith(e){const t=e instanceof fi?e:this.parent().mask().add(e);return this.attr("mask","url(#"+t.id()+")")},unmask(){return this.attr("mask",null)}}}),Q(fi,"Mask");class bi extends qe{constructor(e,t=e){super(V("stop",e),t)}update(e){return("number"==typeof e||e instanceof _e)&&(e={offset:arguments[0],color:arguments[1],opacity:arguments[2]}),null!=e.opacity&&this.attr("stop-opacity",e.opacity),null!=e.color&&this.attr("stop-color",e.color),null!=e.offset&&this.attr("offset",new _e(e.offset)),this}}E({Gradient:{stop:function(e,t,i){return this.put(new bi).update(e,t,i)}}}),Q(bi,"Stop");class mi extends qe{constructor(e,t=e){super(V("style",e),t)}addText(e=""){return this.node.textContent+=e,this}font(e,t,i={}){return this.rule("@font-face",{fontFamily:e,src:t,...i})}rule(e,t){return this.addText(function(e,t){if(!e)return"";if(!t)return e;let i=e+"{";for(const e in t)i+=e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()})+":"+t[e]+";";return i+="}",i}(e,t))}}E("Dom",{style(e,t){return this.put(new mi).rule(e,t)},fontface(e,t,i){return this.put(new mi).font(e,t,i)}}),Q(mi,"Style");class xi extends oi{constructor(e,t=e){super(V("textPath",e),t)}array(){const e=this.track();return e?e.array():null}plot(e){const t=this.track();let i=null;return t&&(i=t.plot(e)),null==e?i:this}track(){return this.reference("href")}}E({Container:{textPath:ie(function(e,t){return e instanceof oi||(e=this.text(e)),e.path(t)})},Text:{path:ie(function(e,t=!0){const i=new xi;let r;if(e instanceof Xt||(e=this.defs().path(e)),i.attr("href","#"+e,F),t)for(;r=this.node.firstChild;)i.node.appendChild(r);return this.put(i)}),textPath(){return this.findOne("textPath")}},Path:{text:ie(function(e){return e instanceof oi||(e=(new oi).addTo(this.parent()).text(e)),e.path(this)}),targets(){return Le("svg textPath").filter(e=>(e.attr("href")||"").includes(this.id()))}}}),xi.prototype.MorphArray=Rt,Q(xi,"TextPath");class vi extends Ve{constructor(e,t=e){super(V("use",e),t)}use(e,t){return this.attr("href",(t||"")+"#"+e,F)}}E({Container:{use:ie(function(e,t){return this.put(new vi).use(e,t)})}}),Q(vi,"Use");const yi=G;te([ai,si,ht,dt,mt],D("viewbox")),te([bt,jt,qt,Xt],D("marker")),te(oi,D("Text")),te(Xt,D("Path")),te(Ge,D("Defs")),te([oi,li],D("Tspan")),te([Ut,at,ct,Jt],D("radius")),te(Oe,D("EventTarget")),te(We,D("Dom")),te(qe,D("Element")),te(Ve,D("Shape")),te([Ue,st],D("Container")),te(ct,D("Gradient")),te(Jt,D("Runner")),De.extend([...new Set(S)]),function(e=[]){Yt.push(...[].concat(e))}([_e,ve,Se,we,Fe,gt,Rt,ye]),te(Yt,{to(e){return(new Ot).type(this.constructor).from(this.toArray()).to(e)},fromArray(e){return this.init(e),this},toConsumable(){return this.toArray()},morph(e,t,i,r,a){return this.fromArray(e.map(function(e,s){return r.step(e,t[s],i,a[s],a)}))}});class Ai extends qe{constructor(e){super(V("filter",e),e),this.$source="SourceGraphic",this.$sourceAlpha="SourceAlpha",this.$background="BackgroundImage",this.$backgroundAlpha="BackgroundAlpha",this.$fill="FillPaint",this.$stroke="StrokePaint",this.$autoSetIn=!0}put(e,t){return!(e=super.put(e,t)).attr("in")&&this.$autoSetIn&&e.attr("in",this.$source),e.attr("result")||e.attr("result",e.id()),e}remove(){return this.targets().each("unfilter"),super.remove()}targets(){return Le('svg [filter*="'+this.id()+'"]')}toString(){return"url(#"+this.id()+")"}}class wi extends qe{constructor(e,t){super(e,t),this.result(this.id())}in(e){if(null==e){const e=this.attr("in");return this.parent()&&this.parent().find(`[result="${e}"]`)[0]||e}return this.attr("in",e)}result(e){return this.attr("result",e)}toString(){return this.result()}}const ki=e=>function(...t){for(let i=e.length;i--;)null!=t[i]&&this.attr(e[i],t[i])},Ci={blend:ki(["in","in2","mode"]),colorMatrix:ki(["type","values"]),composite:ki(["in","in2","operator"]),convolveMatrix:function(e){e=new Fe(e).toString(),this.attr({order:Math.sqrt(e.split(" ").length),kernelMatrix:e})},diffuseLighting:ki(["surfaceScale","lightingColor","diffuseConstant","kernelUnitLength"]),displacementMap:ki(["in","in2","scale","xChannelSelector","yChannelSelector"]),dropShadow:ki(["in","dx","dy","stdDeviation"]),flood:ki(["flood-color","flood-opacity"]),gaussianBlur:function(e=0,t=e){this.attr("stdDeviation",e+" "+t)},image:function(e){this.attr("href",e,F)},morphology:ki(["operator","radius"]),offset:ki(["dx","dy"]),specularLighting:ki(["surfaceScale","lightingColor","diffuseConstant","specularExponent","kernelUnitLength"]),tile:ki([]),turbulence:ki(["baseFrequency","numOctaves","seed","stitchTiles","type"])};["blend","colorMatrix","componentTransfer","composite","convolveMatrix","diffuseLighting","displacementMap","dropShadow","flood","gaussianBlur","image","merge","morphology","offset","specularLighting","tile","turbulence"].forEach(e=>{const t=P(e),i=Ci[e];Ai[t+"Effect"]=class extends wi{constructor(e){super(V("fe"+t,e),e)}update(e){return i.apply(this,e),this}},Ai.prototype[e]=ie(function(e,...i){const r=new Ai[t+"Effect"];return null==e?this.put(r):("function"==typeof e?e.call(r,r):i.unshift(e),this.put(r).update(i))})}),te(Ai,{merge(e){const t=this.put(new Ai.MergeEffect);return"function"==typeof e?(e.call(t,t),t):((e instanceof Array?e:[...arguments]).forEach(e=>{e instanceof Ai.MergeNode?t.put(e):t.mergeNode(e)}),t)},componentTransfer(e={}){const t=this.put(new Ai.ComponentTransferEffect);if("function"==typeof e)return e.call(t,t),t;e.r||e.g||e.b||e.a||(e={r:e,g:e,b:e,a:e});for(const i in e)t.add(new(Ai["Func"+i.toUpperCase()])(e[i]));return t}}),["distantLight","pointLight","spotLight","mergeNode","FuncR","FuncG","FuncB","FuncA"].forEach(e=>{const t=P(e);Ai[t]=class extends wi{constructor(e){super(V("fe"+t,e),e)}}}),["funcR","funcG","funcB","funcA"].forEach(function(e){const t=Ai[P(e)],i=ie(function(){return this.put(new t)});Ai.ComponentTransferEffect.prototype[e]=i}),["distantLight","pointLight","spotLight"].forEach(e=>{const t=Ai[P(e)],i=ie(function(){return this.put(new t)});Ai.DiffuseLightingEffect.prototype[e]=i,Ai.SpecularLightingEffect.prototype[e]=i}),te(Ai.MergeEffect,{mergeNode(e){return this.put(new Ai.MergeNode).attr("in",e)}}),te(Ge,{filter:function(e){const t=this.put(new Ai);return"function"==typeof e&&e.call(t,t),t}}),te(Ue,{filter:function(e){return this.defs().filter(e)}}),te(qe,{filterWith:function(e){const t=e instanceof Ai?e:this.defs().filter(e);return this.attr("filter",t)},unfilter:function(e){return this.attr("filter",null)},filterer(){return this.reference("filter")}});const Si={blend:function(e,t){return this.parent()&&this.parent().blend(this,e,t)},colorMatrix:function(e,t){return this.parent()&&this.parent().colorMatrix(e,t).in(this)},componentTransfer:function(e){return this.parent()&&this.parent().componentTransfer(e).in(this)},composite:function(e,t){return this.parent()&&this.parent().composite(this,e,t)},convolveMatrix:function(e){return this.parent()&&this.parent().convolveMatrix(e).in(this)},diffuseLighting:function(e,t,i,r){return this.parent()&&this.parent().diffuseLighting(e,i,r).in(this)},displacementMap:function(e,t,i,r){return this.parent()&&this.parent().displacementMap(this,e,t,i,r)},dropShadow:function(e,t,i){return this.parent()&&this.parent().dropShadow(this,e,t,i).in(this)},flood:function(e,t){return this.parent()&&this.parent().flood(e,t)},gaussianBlur:function(e,t){return this.parent()&&this.parent().gaussianBlur(e,t).in(this)},image:function(e){return this.parent()&&this.parent().image(e)},merge:function(e){return e=e instanceof Array?e:[...e],this.parent()&&this.parent().merge(this,...e)},morphology:function(e,t){return this.parent()&&this.parent().morphology(e,t).in(this)},offset:function(e,t){return this.parent()&&this.parent().offset(e,t).in(this)},specularLighting:function(e,t,i,r,a){return this.parent()&&this.parent().specularLighting(e,i,r,a).in(this)},tile:function(){return this.parent()&&this.parent().tile().in(this)},turbulence:function(e,t,i,r,a){return this.parent()&&this.parent().turbulence(e,t,i,r,a).in(this)}};te(wi,Si),te(Ai.MergeEffect,{in:function(e){return e instanceof Ai.MergeNode?this.add(e,0):this.add((new Ai.MergeNode).in(e),0),this}}),te([Ai.CompositeEffect,Ai.BlendEffect,Ai.DisplacementMapEffect],{in2:function(e){if(null==e){const e=this.attr("in2");return this.parent()&&this.parent().find(`[result="${e}"]`)[0]||e}return this.attr("in2",e)}}),Ai.filter={sepiatone:[.343,.669,.119,0,0,.249,.626,.13,0,0,.172,.334,.111,0,0,0,0,0,1,0]};var Ei=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"getDefaultFilter",value:function(e,t){var i=this.w;e.unfilter(!0),(new Ai).size("120%","180%","-5%","-40%"),i.config.chart.dropShadow.enabled&&this.dropShadow(e,i.config.chart.dropShadow,t)}},{key:"applyFilter",value:function(e,t,i){var r,a=this,s=this.w;if(e.unfilter(!0),"none"!==i){var n,o,l=s.config.chart.dropShadow,c="lighten"===i?2:.3;e.filterWith(function(e){e.colorMatrix({type:"matrix",values:"\n          ".concat(c," 0 0 0 0\n          0 ").concat(c," 0 0 0\n          0 0 ").concat(c," 0 0\n          0 0 0 1 0\n        "),in:"SourceGraphic",result:"brightness"}),l.enabled&&a.addShadow(e,t,l,"brightness")}),l.noUserSpaceOnUse||null===(n=e.filterer())||void 0===n||null===(o=n.node)||void 0===o||o.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null===(r=e.filterer())||void 0===r?void 0:r.node)}else this.getDefaultFilter(e,t)}},{key:"addShadow",value:function(e,t,i,r){var a,s=this.w,n=i.blur,o=i.top,l=i.left,c=i.color,d=i.opacity;if(c=Array.isArray(c)?c[t]:c,(null===(a=s.config.chart.dropShadow.enabledOnSeries)||void 0===a?void 0:a.length)>0&&-1===s.config.chart.dropShadow.enabledOnSeries.indexOf(t))return e;e.offset({in:r,dx:l,dy:o,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:n,result:"blur"}),e.flood({"flood-color":c,"flood-opacity":d,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",r])}},{key:"dropShadow",value:function(e,t){var i,r,a,s,n,o=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=this.w;return e.unfilter(!0),w.isMsEdge()&&"radialBar"===c.config.chart.type||(null===(i=c.config.chart.dropShadow.enabledOnSeries)||void 0===i?void 0:i.length)>0&&-1===(null===(a=c.config.chart.dropShadow.enabledOnSeries)||void 0===a?void 0:a.indexOf(l))||(e.filterWith(function(e){o.addShadow(e,l,t,"SourceGraphic")}),t.noUserSpaceOnUse||null===(s=e.filterer())||void 0===s||null===(n=s.node)||void 0===n||n.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize(null===(r=e.filterer())||void 0===r?void 0:r.node)),e}},{key:"setSelectionFilter",value:function(e,t,i){var r=this.w;if(void 0!==r.globals.selectedDataPoints[t]&&r.globals.selectedDataPoints[t].indexOf(i)>-1){e.node.setAttribute("selected",!0);var a=r.config.states.active.filter;"none"!==a&&this.applyFilter(e,t,a.type)}}},{key:"_scaleFilterSize",value:function(e){e&&function(t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}]),e}(),Di=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"roundPathCorners",value:function(e,t){function i(e,t,i){var a=t.x-e.x,s=t.y-e.y,n=Math.sqrt(a*a+s*s);return r(e,t,Math.min(1,i/n))}function r(e,t,i){return{x:e.x+(t.x-e.x)*i,y:e.y+(t.y-e.y)*i}}function a(e,t){e.length>2&&(e[e.length-2]=t.x,e[e.length-1]=t.y)}function s(e){return{x:parseFloat(e[e.length-2]),y:parseFloat(e[e.length-1])}}e.indexOf("NaN")>-1&&(e="");var n=e.split(/[,\s]/).reduce(function(e,t){var i=t.match(/^([a-zA-Z])(.+)/);return i?(e.push(i[1]),e.push(i[2])):e.push(t),e},[]).reduce(function(e,t){return parseFloat(t)==t&&e.length?e[e.length-1].push(t):e.push([t]),e},[]),o=[];if(n.length>1){var l=s(n[0]),c=null;"Z"==n[n.length-1][0]&&n[0].length>2&&(c=["L",l.x,l.y],n[n.length-1]=c),o.push(n[0]);for(var d=1;d<n.length;d++){var h=o[o.length-1],u=n[d],g=u==c?n[1]:n[d+1];if(g&&h&&h.length>2&&"L"==u[0]&&g.length>2&&"L"==g[0]){var p,f,b=s(h),m=s(u),x=s(g);p=i(m,b,t),f=i(m,x,t),a(u,p),u.origPoint=m,o.push(u);var v=r(p,m,.5),y=r(m,f,.5),A=["C",v.x,v.y,y.x,y.y,f.x,f.y];A.origPoint=m,o.push(A)}else o.push(u)}if(c){var w=s(o[o.length-1]);o.push(["Z"]),a(o[0],w)}}else o=n;return o.reduce(function(e,t){return e+t.join(" ")+" "},"")}},{key:"drawLine",value:function(e,t,i,r){var a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"#a8a8a8",s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:"butt";return this.w.globals.dom.Paper.line().attr({x1:e,y1:t,x2:i,y2:r,stroke:a,"stroke-dasharray":s,"stroke-width":n,"stroke-linecap":o})}},{key:"drawRect",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"#fefefe",n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:1,o=arguments.length>7&&void 0!==arguments[7]?arguments[7]:null,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:null,c=arguments.length>9&&void 0!==arguments[9]?arguments[9]:0,d=this.w.globals.dom.Paper.rect();return d.attr({x:e,y:t,width:i>0?i:0,height:r>0?r:0,rx:a,ry:a,opacity:n,"stroke-width":null!==o?o:0,stroke:null!==l?l:"none","stroke-dasharray":c}),d.node.setAttribute("fill",s),d}},{key:"drawPolygon",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#e1e1e1",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"none";return this.w.globals.dom.Paper.polygon(e).attr({fill:r,stroke:t,"stroke-width":i})}},{key:"drawCircle",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e<0&&(e=0);var i=this.w.globals.dom.Paper.circle(2*e);return null!==t&&i.attr(t),i}},{key:"drawPath",value:function(e){var t=e.d,i=void 0===t?"":t,r=e.stroke,a=void 0===r?"#a8a8a8":r,s=e.strokeWidth,n=void 0===s?1:s,o=e.fill,l=e.fillOpacity,c=void 0===l?1:l,d=e.strokeOpacity,h=void 0===d?1:d,u=e.classes,g=e.strokeLinecap,p=void 0===g?null:g,f=e.strokeDashArray,b=void 0===f?0:f,m=this.w;return null===p&&(p=m.config.stroke.lineCap),(i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i="M 0 ".concat(m.globals.gridHeight)),m.globals.dom.Paper.path(i).attr({fill:o,"fill-opacity":c,stroke:a,"stroke-opacity":h,"stroke-linecap":p,"stroke-width":n,"stroke-dasharray":b,class:u})}},{key:"group",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w.globals.dom.Paper.group();return null!==e&&t.attr(e),t}},{key:"move",value:function(e,t){return["M",e,t].join(" ")}},{key:"line",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=null;return null===i?r=[" L",e,t].join(" "):"H"===i?r=[" H",e].join(" "):"V"===i&&(r=[" V",t].join(" ")),r}},{key:"curve",value:function(e,t,i,r,a,s){return["C",e,t,i,r,a,s].join(" ")}},{key:"quadraticCurve",value:function(e,t,i,r){return["Q",e,t,i,r].join(" ")}},{key:"arc",value:function(e,t,i,r,a,s,n){var o="A";return arguments.length>7&&void 0!==arguments[7]&&arguments[7]&&(o="a"),[o,e,t,i,r,a,s,n].join(" ")}},{key:"renderPaths",value:function(e){var t,i=e.j,r=e.realIndex,a=e.pathFrom,s=e.pathTo,n=e.stroke,o=e.strokeWidth,l=e.strokeLinecap,c=e.fill,d=e.animationDelay,h=e.initialSpeed,u=e.dataChangeSpeed,g=e.className,p=e.chartType,b=e.shouldClipToGrid,m=void 0===b||b,x=e.bindEventsOnPaths,v=void 0===x||x,y=e.drawShadow,A=void 0===y||y,w=this.w,C=new Ei(this.ctx),S=new k(this.ctx),E=this.w.config.chart.animations.enabled,D=E&&this.w.config.chart.animations.dynamicAnimation.enabled;if(a&&a.startsWith("M 0 0")&&s){var B=s.match(/^M\s+[\d.-]+\s+[\d.-]+/);B&&(a=a.replace(/^M\s+0\s+0/,B[0]))}var L=!!(E&&!w.globals.resized||D&&w.globals.dataChanged&&w.globals.shouldAnimate);L?t=a:(t=s,w.globals.animationEnded=!0);var T,P=w.config.stroke.dashArray;T=Array.isArray(P)?P[r]:w.config.stroke.dashArray;var M=this.drawPath({d:t,stroke:n,strokeWidth:o,fill:c,fillOpacity:1,classes:g,strokeLinecap:l,strokeDashArray:T});M.attr("index",r),m&&("bar"===p&&!w.globals.isHorizontal||w.globals.comboCharts?M.attr({"clip-path":"url(#gridRectBarMask".concat(w.globals.cuid,")")}):M.attr({"clip-path":"url(#gridRectMask".concat(w.globals.cuid,")")})),w.config.chart.dropShadow.enabled&&A&&C.dropShadow(M,w.config.chart.dropShadow,r),v&&(M.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,M)),M.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,M)),M.node.addEventListener("mousedown",this.pathMouseDown.bind(this,M))),M.attr({pathTo:s,pathFrom:a});var I={el:M,j:i,realIndex:r,pathFrom:a,pathTo:s,fill:c,strokeWidth:o,delay:d};return!E||w.globals.resized||w.globals.dataChanged?!w.globals.resized&&w.globals.dataChanged||S.showDelayedElements():S.animatePathsGradually(f(f({},I),{},{speed:h})),w.globals.dataChanged&&D&&L&&S.animatePathsGradually(f(f({},I),{},{speed:u})),M}},{key:"drawPattern",value:function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"#a8a8a8",a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;return this.w.globals.dom.Paper.pattern(t,i,function(s){"horizontalLines"===e?s.line(0,0,i,0).stroke({color:r,width:a+1}):"verticalLines"===e?s.line(0,0,0,t).stroke({color:r,width:a+1}):"slantedLines"===e?s.line(0,0,t,i).stroke({color:r,width:a}):"squares"===e?s.rect(t,i).fill("none").stroke({color:r,width:a}):"circles"===e&&s.circle(t).fill("none").stroke({color:r,width:a})})}},{key:"drawGradient",value:function(e,t,i,r,a){var s,n=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,l=arguments.length>7&&void 0!==arguments[7]?arguments[7]:[],c=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0,d=this.w;t.length<9&&0===t.indexOf("#")&&(t=w.hexToRgba(t,r)),i.length<9&&0===i.indexOf("#")&&(i=w.hexToRgba(i,a));var h=0,u=1,g=1,p=null;null!==o&&(h=void 0!==o[0]?o[0]/100:0,u=void 0!==o[1]?o[1]/100:1,g=void 0!==o[2]?o[2]/100:1,p=void 0!==o[3]?o[3]/100:null);var f=!("donut"!==d.config.chart.type&&"pie"!==d.config.chart.type&&"polarArea"!==d.config.chart.type&&"bubble"!==d.config.chart.type);if(s=l&&0!==l.length?d.globals.dom.Paper.gradient(f?"radial":"linear",function(e){(Array.isArray(l[c])?l[c]:l).forEach(function(t){e.stop(t.offset/100,t.color,t.opacity)})}):d.globals.dom.Paper.gradient(f?"radial":"linear",function(e){e.stop(h,t,r),e.stop(u,i,a),e.stop(g,i,a),null!==p&&e.stop(p,t,r)}),f){var b=d.globals.gridWidth/2,m=d.globals.gridHeight/2;"bubble"!==d.config.chart.type?s.attr({gradientUnits:"userSpaceOnUse",cx:b,cy:m,r:n}):s.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}else"vertical"===e?s.from(0,0).to(0,1):"diagonal"===e?s.from(0,0).to(1,1):"horizontal"===e?s.from(0,1).to(1,1):"diagonal2"===e&&s.from(1,0).to(0,1);return s}},{key:"getTextBasedOnMaxWidth",value:function(e){var t=e.text,i=e.maxWidth,r=e.fontSize,a=e.fontFamily,s=this.getTextRects(t,r,a),n=s.width/t.length,o=Math.floor(i/n);return i<s.width?t.slice(0,o-3)+"...":t}},{key:"drawText",value:function(e){var t=this,i=e.x,r=e.y,a=e.text,s=e.textAnchor,n=e.fontSize,o=e.fontFamily,l=e.fontWeight,c=e.foreColor,d=e.opacity,h=e.maxWidth,u=e.cssClass,g=void 0===u?"":u,p=e.isPlainText,b=void 0===p||p,m=e.dominantBaseline,x=void 0===m?"auto":m,v=this.w;void 0===a&&(a="");var y=a;s||(s="start"),c&&c.length||(c=v.config.chart.foreColor),o=o||v.config.chart.fontFamily,l=l||"regular";var A,w={maxWidth:h,fontSize:n=n||"11px",fontFamily:o};return Array.isArray(a)?A=v.globals.dom.Paper.text(function(e){for(var i=0;i<a.length;i++)y=a[i],h&&(y=t.getTextBasedOnMaxWidth(f({text:a[i]},w))),0===i?e.tspan(y):e.tspan(y).newLine()}):(h&&(y=this.getTextBasedOnMaxWidth(f({text:a},w))),A=b?v.globals.dom.Paper.plain(a):v.globals.dom.Paper.text(function(e){return e.tspan(y)})),A.attr({x:i,y:r,"text-anchor":s,"dominant-baseline":x,"font-size":n,"font-family":o,"font-weight":l,fill:c,class:"apexcharts-text "+g}),A.node.style.fontFamily=o,A.node.style.opacity=d,A}},{key:"getMarkerPath",value:function(e,t,i,r){var a="";switch(i){case"cross":a="M ".concat(e-(r/=1.4)," ").concat(t-r," L ").concat(e+r," ").concat(t+r,"  M ").concat(e-r," ").concat(t+r," L ").concat(e+r," ").concat(t-r);break;case"plus":a="M ".concat(e-(r/=1.12)," ").concat(t," L ").concat(e+r," ").concat(t,"  M ").concat(e," ").concat(t-r," L ").concat(e," ").concat(t+r);break;case"star":case"sparkle":var s=5;r*=1.15,"sparkle"===i&&(r/=1.1,s=4);for(var n=Math.PI/s,o=0;o<=2*s;o++){var l=o*n,c=o%2==0?r:r/2;a+=(0===o?"M":"L")+(e+c*Math.sin(l))+","+(t-c*Math.cos(l))}a+="Z";break;case"triangle":a="M ".concat(e," ").concat(t-r," \n             L ").concat(e+r," ").concat(t+r," \n             L ").concat(e-r," ").concat(t+r," \n             Z");break;case"square":case"rect":a="M ".concat(e-(r/=1.125)," ").concat(t-r," \n           L ").concat(e+r," ").concat(t-r," \n           L ").concat(e+r," ").concat(t+r," \n           L ").concat(e-r," ").concat(t+r," \n           Z");break;case"diamond":r*=1.05,a="M ".concat(e," ").concat(t-r," \n             L ").concat(e+r," ").concat(t," \n             L ").concat(e," ").concat(t+r," \n             L ").concat(e-r," ").concat(t," \n            Z");break;case"line":a="M ".concat(e-(r/=1.1)," ").concat(t," \n           L ").concat(e+r," ").concat(t);break;default:r*=2,a="M ".concat(e,", ").concat(t," \n           m -").concat(r/2,", 0 \n           a ").concat(r/2,",").concat(r/2," 0 1,0 ").concat(r,",0 \n           a ").concat(r/2,",").concat(r/2," 0 1,0 -").concat(r,",0")}return a}},{key:"drawMarkerShape",value:function(e,t,i,r,a){var s=this.drawPath({d:this.getMarkerPath(e,t,i,r,a),stroke:a.pointStrokeColor,strokeDashArray:a.pointStrokeDashArray,strokeWidth:a.pointStrokeWidth,fill:a.pointFillColor,fillOpacity:a.pointFillOpacity,strokeOpacity:a.pointStrokeOpacity});return s.attr({cx:e,cy:t,shape:a.shape,class:a.class?a.class:""}),s}},{key:"drawMarker",value:function(e,t,i){e=e||0;var r=i.pSize||0;return w.isNumber(t)||(r=0,t=0),this.drawMarkerShape(e,t,null==i?void 0:i.shape,r,f(f({},i),"line"===i.shape||"plus"===i.shape||"cross"===i.shape?{pointStrokeColor:i.pointFillColor,pointStrokeOpacity:i.pointFillOpacity}:{}))}},{key:"pathMouseEnter",value:function(e,t){var i=this.w,r=new Ei(this.ctx),a=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10);if("function"==typeof i.config.chart.events.dataPointMouseEnter&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:a,dataPointIndex:s,w:i}),this.ctx.events.fireEvent("dataPointMouseEnter",[t,this.ctx,{seriesIndex:a,dataPointIndex:s,w:i}]),("none"===i.config.states.active.filter.type||"true"!==e.node.getAttribute("selected"))&&"none"!==i.config.states.hover.filter.type&&!i.globals.isTouchDevice){var n=i.config.states.hover.filter;r.applyFilter(e,a,n.type)}}},{key:"pathMouseLeave",value:function(e,t){var i=this.w,r=new Ei(this.ctx),a=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10);"function"==typeof i.config.chart.events.dataPointMouseLeave&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:a,dataPointIndex:s,w:i}),this.ctx.events.fireEvent("dataPointMouseLeave",[t,this.ctx,{seriesIndex:a,dataPointIndex:s,w:i}]),"none"!==i.config.states.active.filter.type&&"true"===e.node.getAttribute("selected")||"none"!==i.config.states.hover.filter.type&&r.getDefaultFilter(e,a)}},{key:"pathMouseDown",value:function(e,t){var i=this.w,r=new Ei(this.ctx),a=parseInt(e.node.getAttribute("index"),10),s=parseInt(e.node.getAttribute("j"),10),n="false";if("true"===e.node.getAttribute("selected")){if(e.node.setAttribute("selected","false"),i.globals.selectedDataPoints[a].indexOf(s)>-1){var o=i.globals.selectedDataPoints[a].indexOf(s);i.globals.selectedDataPoints[a].splice(o,1)}}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.globals.selectedDataPoints.length>0){i.globals.selectedDataPoints=[];var l=i.globals.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),c=i.globals.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),d=function(e){Array.prototype.forEach.call(e,function(e){e.node.setAttribute("selected","false"),r.getDefaultFilter(e,a)})};d(l),d(c)}e.node.setAttribute("selected","true"),n="true",void 0===i.globals.selectedDataPoints[a]&&(i.globals.selectedDataPoints[a]=[]),i.globals.selectedDataPoints[a].push(s)}if("true"===n){var h=i.config.states.active.filter;if("none"!==h)r.applyFilter(e,a,h.type);else if("none"!==i.config.states.hover.filter&&!i.globals.isTouchDevice){var u=i.config.states.hover.filter;r.applyFilter(e,a,u.type)}}else"none"!==i.config.states.active.filter.type&&("none"===i.config.states.hover.filter.type||i.globals.isTouchDevice?r.getDefaultFilter(e,a):(u=i.config.states.hover.filter,r.applyFilter(e,a,u.type)));"function"==typeof i.config.chart.events.dataPointSelection&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:s,w:i}),t&&this.ctx.events.fireEvent("dataPointSelection",[t,this.ctx,{selectedDataPoints:i.globals.selectedDataPoints,seriesIndex:a,dataPointIndex:s,w:i}])}},{key:"rotateAroundCenter",value:function(e){var t={};return e&&"function"==typeof e.getBBox&&(t=e.getBBox()),{x:t.x+t.width/2,y:t.y+t.height/2}}},{key:"getTextRects",value:function(e,t,i,r){var a=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],s=this.w,n=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:i,foreColor:"#fff",opacity:0});r&&n.attr("transform",r),s.globals.dom.Paper.add(n);var o=n.bbox();return a||(o=n.node.getBoundingClientRect()),n.remove(),{width:o.width,height:o.height}}},{key:"placeTextWithEllipsis",value:function(e,t,i){if("function"==typeof e.getComputedTextLength&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=i/1.1)){for(var r=t.length-3;r>0;r-=3)if(e.getSubStringLength(0,r)<=i/1.1)return void(e.textContent=t.substring(0,r)+"...");e.textContent="."}}}],[{key:"setAttrs",value:function(e,t){for(var i in t)t.hasOwnProperty(i)&&e.setAttribute(i,t[i])}}]),e}(),Bi=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"getStackedSeriesTotals",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=this.w,i=[];if(0===t.globals.series.length)return i;for(var r=0;r<t.globals.series[t.globals.maxValsInArrayIndex].length;r++){for(var a=0,s=0;s<t.globals.series.length;s++)void 0!==t.globals.series[s][r]&&-1===e.indexOf(s)&&(a+=t.globals.series[s][r]);i.push(a)}return i}},{key:"getSeriesTotalByIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return null===e?this.w.config.series.reduce(function(e,t){return e+t},0):this.w.globals.series[e].reduce(function(e,t){return e+t},0)}},{key:"getStackedSeriesTotalsByGroups",value:function(){var e=this,t=this.w,i=[];return t.globals.seriesGroups.forEach(function(r){var a=[];t.config.series.forEach(function(e,i){r.indexOf(t.globals.seriesNames[i])>-1&&a.push(i)});var s=t.globals.series.map(function(e,t){return-1===a.indexOf(t)?t:-1}).filter(function(e){return-1!==e});i.push(e.getStackedSeriesTotals(s))}),i}},{key:"setSeriesYAxisMappings",value:function(){var e=this.w.globals,t=this.w.config,i=[],r=[],a=[],s=e.series.length>t.yaxis.length||t.yaxis.some(function(e){return Array.isArray(e.seriesName)});t.series.forEach(function(e,t){a.push(t),r.push(null)}),t.yaxis.forEach(function(e,t){i[t]=[]});var n=[];t.yaxis.forEach(function(e,r){var o=!1;if(e.seriesName){var l=[];Array.isArray(e.seriesName)?l=e.seriesName:l.push(e.seriesName),l.forEach(function(e){t.series.forEach(function(t,n){if(t.name===e){var l=n;r===n||s?!s||a.indexOf(n)>-1?i[r].push([r,n]):console.warn("Series '"+t.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(i[n].push([n,r]),l=r),o=!0,-1!==(l=a.indexOf(l))&&a.splice(l,1)}})})}o||n.push(r)}),i=i.map(function(e,t){var i=[];return e.forEach(function(e){r[e[1]]=e[0],i.push(e[1])}),i});for(var o=t.yaxis.length-1,l=0;l<n.length&&(o=n[l],i[o]=[],a);l++){var c=a[0];a.shift(),i[o].push(c),r[c]=o}a.forEach(function(e){i[o].push(e),r[e]=o}),e.seriesYAxisMap=i.map(function(e){return e}),e.seriesYAxisReverseMap=r.map(function(e){return e}),e.seriesYAxisMap.forEach(function(e,i){e.forEach(function(e){t.series[e]&&void 0===t.series[e].group&&(t.series[e].__apexParsed?t.series[e].group="apexcharts-axis-".concat(e.toString()):t.series[e].group="apexcharts-axis-".concat(i.toString()))})})}},{key:"isSeriesNull",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return 0===(null===e?this.w.config.series.filter(function(e){return null!==e}):this.w.config.series[e].data.filter(function(e){return null!==e})).length}},{key:"seriesHaveSameValues",value:function(e){return this.w.globals.series[e].every(function(e,t,i){return e===i[0]})}},{key:"getCategoryLabels",value:function(e){var t=this.w,i=e.slice();return t.config.xaxis.convertedCatToNumeric&&(i=e.map(function(e,i){return t.config.xaxis.labels.formatter(e-t.globals.minX+1)})),i}},{key:"getLargestSeries",value:function(){var e=this.w;e.globals.maxValsInArrayIndex=e.globals.series.map(function(e){return e.length}).indexOf(Math.max.apply(Math,e.globals.series.map(function(e){return e.length})))}},{key:"getLargestMarkerSize",value:function(){var e=this.w,t=0;return e.globals.markers.size.forEach(function(e){t=Math.max(t,e)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(function(e){t=Math.max(t,e.size)}),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}},{key:"getSeriesTotals",value:function(){var e=this.w;e.globals.seriesTotals=e.globals.series.map(function(e,t){var i=0;if(Array.isArray(e))for(var r=0;r<e.length;r++)i+=e[r];else i+=e;return i})}},{key:"getSeriesTotalsXRange",value:function(e,t){var i=this.w;return i.globals.series.map(function(r,a){for(var s=0,n=0;n<r.length;n++)i.globals.seriesX[a][n]>e&&i.globals.seriesX[a][n]<t&&(s+=r[n]);return s})}},{key:"getPercentSeries",value:function(){var e=this.w;e.globals.seriesPercent=e.globals.series.map(function(t,i){var r=[];if(Array.isArray(t))for(var a=0;a<t.length;a++){var s=e.globals.stackedSeriesTotals[a],n=0;s&&(n=100*t[a]/s),r.push(n)}else{var o=100*t/e.globals.seriesTotals.reduce(function(e,t){return e+t},0);r.push(o)}return r})}},{key:"getCalculatedRatios",value:function(){var e,t,i,r=this,a=this.w,s=a.globals,n=[],o=0,l=[],c=.1,d=0;if(s.yRange=[],s.isMultipleYAxis)for(var h=0;h<s.minYArr.length;h++)s.yRange.push(Math.abs(s.minYArr[h]-s.maxYArr[h])),l.push(0);else s.yRange.push(Math.abs(s.minY-s.maxY));s.xRange=Math.abs(s.maxX-s.minX),s.zRange=Math.abs(s.maxZ-s.minZ);for(var u=0;u<s.yRange.length;u++)n.push(s.yRange[u]/s.gridHeight);if(t=s.xRange/s.gridWidth,e=s.yRange/s.gridWidth,i=s.xRange/s.gridHeight,(o=s.zRange/s.gridHeight*16)||(o=1),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(s.hasNegs=!0),a.globals.seriesYAxisReverseMap.length>0){var g=function(e,t){var i=a.config.yaxis[a.globals.seriesYAxisReverseMap[t]],s=e<0?-1:1;return e=Math.abs(e),i.logarithmic&&(e=r.getBaseLog(i.logBase,e)),-s*e/n[t]};if(s.isMultipleYAxis){l=[];for(var p=0;p<n.length;p++)l.push(g(s.minYArr[p],p))}else(l=[]).push(g(s.minY,0)),s.minY!==Number.MIN_VALUE&&0!==Math.abs(s.minY)&&(c=-s.minY/e,d=s.minX/t)}else(l=[]).push(0),c=0,d=0;return{yRatio:n,invertedYRatio:e,zRatio:o,xRatio:t,invertedXRatio:i,baseLineInvertedY:c,baseLineY:l,baseLineX:d}}},{key:"getLogSeries",value:function(e){var t=this,i=this.w;return i.globals.seriesLog=e.map(function(e,r){var a=i.globals.seriesYAxisReverseMap[r];return i.config.yaxis[a]&&i.config.yaxis[a].logarithmic?e.map(function(e){return null===e?null:t.getLogVal(i.config.yaxis[a].logBase,e,r)}):e}),i.globals.invalidLogScale?e:i.globals.seriesLog}},{key:"getLogValAtSeriesIndex",value:function(e,t){if(null===e)return null;var i=this.w,r=i.globals.seriesYAxisReverseMap[t];return i.config.yaxis[r]&&i.config.yaxis[r].logarithmic?this.getLogVal(i.config.yaxis[r].logBase,e,t):e}},{key:"getBaseLog",value:function(e,t){return Math.log(t)/Math.log(e)}},{key:"getLogVal",value:function(e,t,i){if(t<=0)return 0;var r=this.w,a=0===r.globals.minYArr[i]?-1:this.getBaseLog(e,r.globals.minYArr[i]),s=(0===r.globals.maxYArr[i]?0:this.getBaseLog(e,r.globals.maxYArr[i]))-a;return t<1?t/s:(this.getBaseLog(e,t)-a)/s}},{key:"getLogYRatios",value:function(e){var t=this,i=this.w,r=this.w.globals;return r.yLogRatio=e.slice(),r.logYRange=r.yRange.map(function(e,a){var s=i.globals.seriesYAxisReverseMap[a];if(i.config.yaxis[s]&&t.w.config.yaxis[s].logarithmic){var n,o=-Number.MAX_VALUE,l=Number.MIN_VALUE;return r.seriesLog.forEach(function(e,t){e.forEach(function(e){i.config.yaxis[t]&&i.config.yaxis[t].logarithmic&&(o=Math.max(e,o),l=Math.min(e,l))})}),n=Math.pow(r.yRange[a],Math.abs(l-o)/r.yRange[a]),r.yLogRatio[a]=n/r.gridHeight,n}}),r.invalidLogScale?e.slice():r.yLogRatio}},{key:"drawSeriesByGroup",value:function(e,t,i,r){var a=this.w,s=[];return e.series.length>0&&t.forEach(function(t){var n=[],o=[];e.i.forEach(function(i,r){a.config.series[i].group===t&&(n.push(e.series[r]),o.push(i))}),n.length>0&&s.push(r.draw(n,i,o))}),s}}],[{key:"checkComboSeries",value:function(e,t){var i=!1,r=0,a=0;return void 0===t&&(t="line"),e.length&&void 0!==e[0].type&&e.forEach(function(e){"bar"!==e.type&&"column"!==e.type&&"candlestick"!==e.type&&"boxPlot"!==e.type||r++,void 0!==e.type&&e.type!==t&&a++}),a>0&&(i=!0),{comboBarCount:r,comboCharts:i}}},{key:"extendArrayProps",value:function(e,t,i){var r,a,s,n,o,l;return null!==(r=t)&&void 0!==r&&r.yaxis&&(t=e.extendYAxis(t,i)),null!==(a=t)&&void 0!==a&&a.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),null!==(s=t)&&void 0!==s&&null!==(n=s.annotations)&&void 0!==n&&n.xaxis&&(t=e.extendXAxisAnnotations(t)),null!==(o=t)&&void 0!==o&&null!==(l=o.annotations)&&void 0!==l&&l.points&&(t=e.extendPointAnnotations(t))),t}}]),e}(),Li=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t}return o(e,[{key:"setOrientations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.w;if("vertical"===e.label.orientation){var r=null!==t?t:0,a=i.globals.dom.baseEl.querySelector(".apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='".concat(r,"']"));if(null!==a){var s=a.getBoundingClientRect();a.setAttribute("x",parseFloat(a.getAttribute("x"))-s.height+4);var n="top"===e.label.position?s.width:-s.width;a.setAttribute("y",parseFloat(a.getAttribute("y"))+n);var o=this.annoCtx.graphics.rotateAroundCenter(a),l=o.x,c=o.y;a.setAttribute("transform","rotate(-90 ".concat(l," ").concat(c,")"))}}}},{key:"addBackgroundToAnno",value:function(e,t){var i=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;var r=i.globals.dom.baseEl.querySelector(".apexcharts-grid").getBoundingClientRect(),a=e.getBoundingClientRect(),s=t.label.style.padding,n=s.left,o=s.right,l=s.top,c=s.bottom;if("vertical"===t.label.orientation){var d=[n,o,l,c];l=d[0],c=d[1],n=d[2],o=d[3]}var h=a.left-r.left-n,u=a.top-r.top-l,g=this.annoCtx.graphics.drawRect(h-i.globals.barPadForNumericAxis,u,a.width+n+o,a.height+l+c,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&g.node.classList.add(t.id),g}},{key:"annotationsBackground",value:function(){var e=this,t=this.w,i=function(i,r,a){var s=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(r,"']"));if(s){var n=s.parentNode,o=e.addBackgroundToAnno(s,i);o&&(n.insertBefore(o.node,s),i.label.mouseEnter&&o.node.addEventListener("mouseenter",i.label.mouseEnter.bind(e,i)),i.label.mouseLeave&&o.node.addEventListener("mouseleave",i.label.mouseLeave.bind(e,i)),i.label.click&&o.node.addEventListener("click",i.label.click.bind(e,i)))}};t.config.annotations.xaxis.forEach(function(e,t){return i(e,t,"xaxis")}),t.config.annotations.yaxis.forEach(function(e,t){return i(e,t,"yaxis")}),t.config.annotations.points.forEach(function(e,t){return i(e,t,"point")})}},{key:"getY1Y2",value:function(e,t){var i,r=this.w,a="y1"===e?t.y:t.y2,s=!1;if(this.annoCtx.invertAxis){var n=r.config.xaxis.convertedCatToNumeric?r.globals.categoryLabels:r.globals.labels,o=n.indexOf(a),l=r.globals.dom.baseEl.querySelector(".apexcharts-yaxis-texts-g text:nth-child(".concat(o+1,")"));i=l?parseFloat(l.getAttribute("y")):(r.globals.gridHeight/n.length-1)*(o+1)-r.globals.barHeight,void 0!==t.seriesIndex&&r.globals.barHeight&&(i-=r.globals.barHeight/2*(r.globals.series.length-1)-r.globals.barHeight*t.seriesIndex)}else{var c,d=r.globals.seriesYAxisMap[t.yAxisIndex][0],h=r.config.yaxis[t.yAxisIndex].logarithmic?new Bi(this.annoCtx.ctx).getLogVal(r.config.yaxis[t.yAxisIndex].logBase,a,d)/r.globals.yLogRatio[d]:(a-r.globals.minYArr[d])/(r.globals.yRange[d]/r.globals.gridHeight);i=r.globals.gridHeight-Math.min(Math.max(h,0),r.globals.gridHeight),s=h>r.globals.gridHeight||h<0,!t.marker||void 0!==t.y&&null!==t.y||(i=0),null!==(c=r.config.yaxis[t.yAxisIndex])&&void 0!==c&&c.reversed&&(i=h)}return"string"==typeof a&&a.includes("px")&&(i=parseFloat(a)),{yP:i,clipped:s}}},{key:"getX1X2",value:function(e,t){var i=this.w,r="x1"===e?t.x:t.x2,a=this.annoCtx.invertAxis?i.globals.minY:i.globals.minX,s=this.annoCtx.invertAxis?i.globals.maxY:i.globals.maxX,n=this.annoCtx.invertAxis?i.globals.yRange[0]:i.globals.xRange,o=!1,l=this.annoCtx.inversedReversedAxis?(s-r)/(n/i.globals.gridWidth):(r-a)/(n/i.globals.gridWidth);return"category"!==i.config.xaxis.type&&!i.config.xaxis.convertedCatToNumeric||this.annoCtx.invertAxis||i.globals.dataFormatXNumeric||i.config.chart.sparkline.enabled||(l=this.getStringX(r)),"string"==typeof r&&r.includes("px")&&(l=parseFloat(r)),null==r&&t.marker&&(l=i.globals.gridWidth),void 0!==t.seriesIndex&&i.globals.barWidth&&!this.annoCtx.invertAxis&&(l-=i.globals.barWidth/2*(i.globals.series.length-1)-i.globals.barWidth*t.seriesIndex),"number"!=typeof l&&(l=0,o=!0),parseFloat(l.toFixed(10))>parseFloat(i.globals.gridWidth.toFixed(10))?(l=i.globals.gridWidth,o=!0):l<0&&(l=0,o=!0),{x:l,clipped:o}}},{key:"getStringX",value:function(e){var t=this.w,i=e;t.config.xaxis.convertedCatToNumeric&&t.globals.categoryLabels.length&&(e=t.globals.categoryLabels.indexOf(e)+1);var r=t.globals.labels.map(function(e){return Array.isArray(e)?e.join(" "):e}).indexOf(e),a=t.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g text:nth-child(".concat(r+1,")"));return a&&(i=parseFloat(a.getAttribute("x"))),i}}]),e}(),Ti=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new Li(this.annoCtx)}return o(e,[{key:"addXaxisAnnotation",value:function(e,t,i){var r,a=this.w,s=this.helpers.getX1X2("x1",e),n=s.x,o=s.clipped,l=!0,c=e.label.text,d=e.strokeDashArray;if(w.isNumber(n)){if(null===e.x2||void 0===e.x2){if(!o){var h=this.annoCtx.graphics.drawLine(n+e.offsetX,0+e.offsetY,n+e.offsetX,a.globals.gridHeight+e.offsetY,e.borderColor,d,e.borderWidth);t.appendChild(h.node),e.id&&h.node.classList.add(e.id)}}else{var u=this.helpers.getX1X2("x2",e);if(r=u.x,l=u.clipped,r<n){var g=n;n=r,r=g}var p=this.annoCtx.graphics.drawRect(n+e.offsetX,0+e.offsetY,r-n,a.globals.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,d);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}if(!o||!l){var f=this.annoCtx.graphics.getTextRects(c,parseFloat(e.label.style.fontSize)),b="top"===e.label.position?4:"center"===e.label.position?a.globals.gridHeight/2+("vertical"===e.label.orientation?f.width/2:0):a.globals.gridHeight,m=this.annoCtx.graphics.drawText({x:n+e.label.offsetX,y:b+e.label.offsetY-("vertical"===e.label.orientation?"top"===e.label.position?f.width/2-12:-f.width/2:0),text:c,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-xaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});m.attr({rel:i}),t.appendChild(m.node),this.annoCtx.helpers.setOrientations(e,i)}}}},{key:"drawXAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return t.config.annotations.xaxis.map(function(t,r){e.addXaxisAnnotation(t,i.node,r)}),i}}]),e}(),Pi=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}return o(e,[{key:"isValidDate",value:function(e){return"number"!=typeof e&&!isNaN(this.parseDate(e))}},{key:"getTimeStamp",value:function(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}},{key:"getDate",value:function(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}},{key:"parseDate",value:function(e){var t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);var i=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return this.getTimeStamp(i)}},{key:"parseDateWithTimezone",value:function(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}},{key:"formatDate",value:function(e,t){var i=this.w.globals.locale,r=this.w.config.xaxis.labels.datetimeUTC,a=["\0"].concat(x(i.months)),s=[""].concat(x(i.shortMonths)),n=[""].concat(x(i.days)),o=[""].concat(x(i.shortDays));function l(e,t){var i=e+"";for(t=t||2;i.length<t;)i="0"+i;return i}var c=r?e.getUTCFullYear():e.getFullYear();t=(t=(t=t.replace(/(^|[^\\])yyyy+/g,"$1"+c)).replace(/(^|[^\\])yy/g,"$1"+c.toString().substr(2,2))).replace(/(^|[^\\])y/g,"$1"+c);var d=(r?e.getUTCMonth():e.getMonth())+1;t=(t=(t=(t=t.replace(/(^|[^\\])MMMM+/g,"$1"+a[0])).replace(/(^|[^\\])MMM/g,"$1"+s[0])).replace(/(^|[^\\])MM/g,"$1"+l(d))).replace(/(^|[^\\])M/g,"$1"+d);var h=r?e.getUTCDate():e.getDate();t=(t=(t=(t=t.replace(/(^|[^\\])dddd+/g,"$1"+n[0])).replace(/(^|[^\\])ddd/g,"$1"+o[0])).replace(/(^|[^\\])dd/g,"$1"+l(h))).replace(/(^|[^\\])d/g,"$1"+h);var u=r?e.getUTCHours():e.getHours(),g=u>12?u-12:0===u?12:u;t=(t=(t=(t=t.replace(/(^|[^\\])HH+/g,"$1"+l(u))).replace(/(^|[^\\])H/g,"$1"+u)).replace(/(^|[^\\])hh+/g,"$1"+l(g))).replace(/(^|[^\\])h/g,"$1"+g);var p=r?e.getUTCMinutes():e.getMinutes();t=(t=t.replace(/(^|[^\\])mm+/g,"$1"+l(p))).replace(/(^|[^\\])m/g,"$1"+p);var f=r?e.getUTCSeconds():e.getSeconds();t=(t=t.replace(/(^|[^\\])ss+/g,"$1"+l(f))).replace(/(^|[^\\])s/g,"$1"+f);var b=r?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+l(b,3)),b=Math.round(b/10),t=t.replace(/(^|[^\\])ff/g,"$1"+l(b)),b=Math.round(b/10);var m=u<12?"AM":"PM";t=(t=(t=t.replace(/(^|[^\\])f/g,"$1"+b)).replace(/(^|[^\\])TT+/g,"$1"+m)).replace(/(^|[^\\])T/g,"$1"+m.charAt(0));var v=m.toLowerCase();t=(t=t.replace(/(^|[^\\])tt+/g,"$1"+v)).replace(/(^|[^\\])t/g,"$1"+v.charAt(0));var y=-e.getTimezoneOffset(),A=r||!y?"Z":y>0?"+":"-";if(!r){var w=(y=Math.abs(y))%60;A+=l(Math.floor(y/60))+":"+l(w)}t=t.replace(/(^|[^\\])K/g,"$1"+A);var k=(r?e.getUTCDay():e.getDay())+1;return(t=(t=(t=(t=t.replace(new RegExp(n[0],"g"),n[k])).replace(new RegExp(o[0],"g"),o[k])).replace(new RegExp(a[0],"g"),a[d])).replace(new RegExp(s[0],"g"),s[d])).replace(/\\(.)/g,"$1")}},{key:"getTimeUnitsfromTimestamp",value:function(e,t,i){var r=this.w;void 0!==r.config.xaxis.min&&(e=r.config.xaxis.min),void 0!==r.config.xaxis.max&&(t=r.config.xaxis.max);var a=this.getDate(e),s=this.getDate(t),n=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(s,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(n[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(n[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(n[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(n[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(n[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(n[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(n[0],10),maxYear:parseInt(o[0],10)}}},{key:"isLeapYear",value:function(e){return e%4==0&&e%100!=0||e%400==0}},{key:"calculcateLastDaysOfMonth",value:function(e,t,i){return this.determineDaysOfMonths(e,t)-i}},{key:"determineDaysOfYear",value:function(e){var t=365;return this.isLeapYear(e)&&(t=366),t}},{key:"determineRemainingDaysOfYear",value:function(e,t,i){var r=this.daysCntOfYear[t]+i;return t>1&&this.isLeapYear()&&r++,r}},{key:"determineDaysOfMonths",value:function(e,t){var i=30;switch(e=w.monthMod(e),!0){case this.months30.indexOf(e)>-1:2===e&&(i=this.isLeapYear(t)?29:28);break;case this.months31.indexOf(e)>-1:default:i=31}return i}}]),e}(),Mi=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.tooltipKeyFormat="dd MMM"}return o(e,[{key:"xLabelFormat",value:function(e,t,i,r){var a=this.w;if("datetime"===a.config.xaxis.type&&void 0===a.config.xaxis.labels.formatter&&void 0===a.config.tooltip.x.formatter){var s=new Pi(this.ctx);return s.formatDate(s.getDate(t),a.config.tooltip.x.format)}return e(t,i,r)}},{key:"defaultGeneralFormatter",value:function(e){return Array.isArray(e)?e.map(function(e){return e}):e}},{key:"defaultYFormatter",value:function(e,t,i){var r=this.w;if(w.isNumber(e))if(0!==r.globals.yValueDecimal)e=e.toFixed(void 0!==t.decimalsInFloat?t.decimalsInFloat:r.globals.yValueDecimal);else{var a=e.toFixed(0);e=e==a?a:e.toFixed(1)}return e}},{key:"setLabelFormatters",value:function(){var e=this,t=this.w;return t.globals.xaxisTooltipFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttKeyFormatter=function(t){return e.defaultGeneralFormatter(t)},t.globals.ttZFormatter=function(e){return e},t.globals.legendFormatter=function(t){return e.defaultGeneralFormatter(t)},void 0!==t.config.xaxis.labels.formatter?t.globals.xLabelFormatter=t.config.xaxis.labels.formatter:t.globals.xLabelFormatter=function(e){if(w.isNumber(e)){if(!t.config.xaxis.convertedCatToNumeric&&"numeric"===t.config.xaxis.type){if(w.isNumber(t.config.xaxis.decimalsInFloat))return e.toFixed(t.config.xaxis.decimalsInFloat);var i=t.globals.maxX-t.globals.minX;return i>0&&i<100?e.toFixed(1):e.toFixed(0)}return t.globals.isBarHorizontal&&t.globals.maxY-t.globals.minYArr<4?e.toFixed(1):e.toFixed(0)}return e},"function"==typeof t.config.tooltip.x.formatter?t.globals.ttKeyFormatter=t.config.tooltip.x.formatter:t.globals.ttKeyFormatter=t.globals.xLabelFormatter,"function"==typeof t.config.xaxis.tooltip.formatter&&(t.globals.xaxisTooltipFormatter=t.config.xaxis.tooltip.formatter),(Array.isArray(t.config.tooltip.y)||void 0!==t.config.tooltip.y.formatter)&&(t.globals.ttVal=t.config.tooltip.y),void 0!==t.config.tooltip.z.formatter&&(t.globals.ttZFormatter=t.config.tooltip.z.formatter),void 0!==t.config.legend.formatter&&(t.globals.legendFormatter=t.config.legend.formatter),t.config.yaxis.forEach(function(i,r){void 0!==i.labels.formatter?t.globals.yLabelFormatters[r]=i.labels.formatter:t.globals.yLabelFormatters[r]=function(a){return t.globals.xyCharts?Array.isArray(a)?a.map(function(t){return e.defaultYFormatter(t,i,r)}):e.defaultYFormatter(a,i,r):a}}),t.globals}},{key:"heatmapLabelFormatters",value:function(){var e=this.w;if("heatmap"===e.config.chart.type){e.globals.yAxisScale[0].result=e.globals.seriesNames.slice();var t=e.globals.seriesNames.reduce(function(e,t){return e.length>t.length?e:t},0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}]),e}(),Ii=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"getLabel",value:function(e,t,i,r){var a,s,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"12px",l=!(arguments.length>6&&void 0!==arguments[6])||arguments[6],c=this.w,d=void 0===e[r]?"":e[r],h=d,u=c.globals.xLabelFormatter,g=c.config.xaxis.labels.formatter,p=!1,f=new Mi(this.ctx),b=d;l&&(h=f.xLabelFormat(u,d,b,{i:r,dateFormatter:new Pi(this.ctx).formatDate,w:c}),void 0!==g&&(h=g(d,e[r],{i:r,dateFormatter:new Pi(this.ctx).formatDate,w:c}))),t.length>0?(a=t[r].unit,s=null,t.forEach(function(e){"month"===e.unit?s="year":"day"===e.unit?s="month":"hour"===e.unit?s="day":"minute"===e.unit&&(s="hour")}),p=s===a,i=t[r].position,h=t[r].value):"datetime"===c.config.xaxis.type&&void 0===g&&(h=""),void 0===h&&(h=""),h=Array.isArray(h)?h:h.toString();var m,x=new Di(this.ctx);m=c.globals.rotateXLabels&&l?x.getTextRects(h,parseInt(o,10),null,"rotate(".concat(c.config.xaxis.labels.rotate," 0 0)"),!1):x.getTextRects(h,parseInt(o,10));var v=!c.config.xaxis.labels.showDuplicates&&this.ctx.timeScale;return!Array.isArray(h)&&("NaN"===String(h)||n.indexOf(h)>=0&&v)&&(h=""),{x:i,text:h,textRect:m,isBold:p}}},{key:"checkLabelBasedOnTickamount",value:function(e,t,i){var r=this.w,a=r.config.xaxis.tickAmount;return"dataPoints"===a&&(a=Math.round(r.globals.gridWidth/120)),a>i||e%Math.round(i/(a+1))==0||(t.text=""),t}},{key:"checkForOverflowingLabels",value:function(e,t,i,r,a){var s=this.w;if(0===e&&s.globals.skipFirstTimelinelabel&&(t.text=""),e===i-1&&s.globals.skipLastTimelinelabel&&(t.text=""),s.config.xaxis.labels.hideOverlappingLabels&&r.length>0){var n=a[a.length-1];if(s.config.xaxis.labels.trim&&"datetime"!==s.config.xaxis.type)return t;t.x<n.textRect.width/(s.globals.rotateXLabels?Math.abs(s.config.xaxis.labels.rotate)/12:1.01)+n.x&&(t.text="")}return t}},{key:"checkForReversedLabels",value:function(e,t){var i=this.w;return i.config.yaxis[e]&&i.config.yaxis[e].reversed&&t.reverse(),t}},{key:"yAxisAllSeriesCollapsed",value:function(e){var t=this.w.globals;return!t.seriesYAxisMap[e].some(function(e){return-1===t.collapsedSeriesIndices.indexOf(e)})}},{key:"translateYAxisIndex",value:function(e){var t=this.w,i=t.globals,r=t.config.yaxis;return i.series.length>r.length||r.some(function(e){return Array.isArray(e.seriesName)})?e:i.seriesYAxisReverseMap[e]}},{key:"isYAxisHidden",value:function(e){var t=this.w,i=t.config.yaxis[e];if(!i.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!i.showForNullSeries){var r=t.globals.seriesYAxisMap[e],a=new Bi(this.ctx);return r.every(function(e){return a.isSeriesNull(e)})}return!1}},{key:"getYAxisForeColor",value:function(e,t){var i=this.w;return Array.isArray(e)&&i.globals.yAxisScale[t]&&this.ctx.theme.pushExtraColors(e,i.globals.yAxisScale[t].result.length,!1),e}},{key:"drawYAxisTicks",value:function(e,t,i,r,a,s,n){var o=this.w,l=new Di(this.ctx),c=o.globals.translateY+o.config.yaxis[a].labels.offsetY;if(o.globals.isBarHorizontal?c=0:"heatmap"===o.config.chart.type&&(c+=s/2),r.show&&t>0){!0===o.config.yaxis[a].opposite&&(e+=r.width);for(var d=t;d>=0;d--){var h=l.drawLine(e+i.offsetX-r.width+r.offsetX,c+r.offsetY,e+i.offsetX+r.offsetX,c+r.offsetY,r.color);n.add(h),c+=s}}}}]),e}(),Ri=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new Li(this.annoCtx),this.axesUtils=new Ii(this.annoCtx)}return o(e,[{key:"addYaxisAnnotation",value:function(e,t,i){var r,a=this.w,s=e.strokeDashArray,n=this.helpers.getY1Y2("y1",e),o=n.yP,l=n.clipped,c=!0,d=!1,h=e.label.text;if(null===e.y2||void 0===e.y2){if(!l){d=!0;var u=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,s,e.borderWidth);t.appendChild(u.node),e.id&&u.node.classList.add(e.id)}}else{if(r=(n=this.helpers.getY1Y2("y2",e)).yP,c=n.clipped,r>o){var g=o;o=r,r=g}if(!l||!c){d=!0;var p=this.annoCtx.graphics.drawRect(0+e.offsetX,r+e.offsetY,this._getYAxisAnnotationWidth(e),o-r,0,e.fillColor,e.opacity,1,e.borderColor,s);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path","url(#gridRectMask".concat(a.globals.cuid,")")),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(d){var f="right"===e.label.position?a.globals.gridWidth:"center"===e.label.position?a.globals.gridWidth/2:0,b=this.annoCtx.graphics.drawText({x:f+e.label.offsetX,y:(null!=r?r:o)+e.label.offsetY-3,text:h,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-yaxis-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});b.attr({rel:i}),t.appendChild(b.node)}}},{key:"_getYAxisAnnotationWidth",value:function(e){var t=this.w;return t.globals.gridWidth,(e.width.indexOf("%")>-1?t.globals.gridWidth*parseInt(e.width,10)/100:parseInt(e.width,10))+e.offsetX}},{key:"drawYAxisAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return t.config.annotations.yaxis.forEach(function(t,r){t.yAxisIndex=e.axesUtils.translateYAxisIndex(t.yAxisIndex),e.axesUtils.isYAxisHidden(t.yAxisIndex)&&e.axesUtils.yAxisAllSeriesCollapsed(t.yAxisIndex)||e.addYaxisAnnotation(t,i.node,r)}),i}}]),e}(),zi=function(){function e(t){s(this,e),this.w=t.w,this.annoCtx=t,this.helpers=new Li(this.annoCtx)}return o(e,[{key:"addPointAnnotation",value:function(e,t,i){if(!(this.w.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)){var r=this.helpers.getX1X2("x1",e),a=r.x,s=r.clipped,n=(r=this.helpers.getY1Y2("y1",e)).yP,o=r.clipped;if(w.isNumber(a)&&!o&&!s){var l={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:"apexcharts-point-annotation-marker ".concat(e.marker.cssClass," ").concat(e.id?e.id:"")},c=this.annoCtx.graphics.drawMarker(a+e.marker.offsetX,n+e.marker.offsetY,l);t.appendChild(c.node);var d=e.label.text?e.label.text:"",h=this.annoCtx.graphics.drawText({x:a+e.label.offsetX,y:n+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:"apexcharts-point-annotation-label ".concat(e.label.style.cssClass," ").concat(e.id?e.id:"")});if(h.attr({rel:i}),t.appendChild(h.node),e.customSVG.SVG){var u=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});u.attr({transform:"translate(".concat(a+e.customSVG.offsetX,", ").concat(n+e.customSVG.offsetY,")")}),u.node.innerHTML=e.customSVG.SVG,t.appendChild(u.node)}if(e.image.path){var g=e.image.width?e.image.width:20,p=e.image.height?e.image.height:20;c=this.annoCtx.addImage({x:a+e.image.offsetX-g/2,y:n+e.image.offsetY-p/2,width:g,height:p,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&c.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&c.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&c.node.addEventListener("click",e.click.bind(this,e))}}}},{key:"drawPointAnnotations",value:function(){var e=this,t=this.w,i=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return t.config.annotations.points.map(function(t,r){e.addPointAnnotation(t,i.node,r)}),i}}]),e}(),Oi={name:"en",options:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}}},Ni=function(){function e(){s(this,e),this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}return o(e,[{key:"init",value:function(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350}},background:"",locales:[Oi],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,injectStyleSheet:!0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}}},parsing:{x:void 0,y:void 0},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0}},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter:function(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter:function(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(e,t){return e+t},0)/e.globals.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter:function(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter:function(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter:function(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter:function(e){return e.globals.seriesTotals.reduce(function(e,t){return e+t},0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter:function(e){return null!==e?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",verticalAlign:"middle",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter:function(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM 'yy",day:"dd MMM",hour:"HH:mm",minute:"HH:mm:ss",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65}}}}}]),e}(),Hi=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.graphics=new Di(this.ctx),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new Li(this),this.xAxisAnnotations=new Ti(this),this.yAxisAnnotations=new Ri(this),this.pointsAnnotations=new zi(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.globals.gridWidth/this.w.globals.dataPoints}return o(e,[{key:"drawAxesAnnotations",value:function(){var e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){for(var t=this.yAxisAnnotations.drawYAxisAnnotations(),i=this.xAxisAnnotations.drawXAxisAnnotations(),r=this.pointsAnnotations.drawPointAnnotations(),a=e.config.chart.animations.enabled,s=[t,i,r],n=[i.node,t.node,r.node],o=0;o<3;o++)e.globals.dom.elGraphical.add(s[o]),!a||e.globals.resized||e.globals.dataChanged||"scatter"!==e.config.chart.type&&"bubble"!==e.config.chart.type&&e.globals.dataPoints>1&&n[o].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:n[o],index:0});this.helpers.annotationsBackground()}}},{key:"drawImageAnnos",value:function(){var e=this;this.w.config.annotations.images.map(function(t,i){e.addImage(t,i)})}},{key:"drawTextAnnos",value:function(){var e=this;this.w.config.annotations.texts.map(function(t,i){e.addText(t,i)})}},{key:"addXaxisAnnotation",value:function(e,t,i){this.xAxisAnnotations.addXaxisAnnotation(e,t,i)}},{key:"addYaxisAnnotation",value:function(e,t,i){this.yAxisAnnotations.addYaxisAnnotation(e,t,i)}},{key:"addPointAnnotation",value:function(e,t,i){this.pointsAnnotations.addPointAnnotation(e,t,i)}},{key:"addText",value:function(e,t){var i=e.x,r=e.y,a=e.text,s=e.textAnchor,n=e.foreColor,o=e.fontSize,l=e.fontFamily,c=e.fontWeight,d=e.cssClass,h=e.backgroundColor,u=e.borderWidth,g=e.strokeDashArray,p=e.borderRadius,f=e.borderColor,b=e.appendTo,m=void 0===b?".apexcharts-svg":b,x=e.paddingLeft,v=void 0===x?4:x,y=e.paddingRight,A=void 0===y?4:y,w=e.paddingBottom,k=void 0===w?2:w,C=e.paddingTop,S=void 0===C?2:C,E=this.w,D=this.graphics.drawText({x:i,y:r,text:a,textAnchor:s||"start",fontSize:o||"12px",fontWeight:c||"regular",fontFamily:l||E.config.chart.fontFamily,foreColor:n||E.config.chart.foreColor,cssClass:d}),B=E.globals.dom.baseEl.querySelector(m);B&&B.appendChild(D.node);var L=D.bbox();if(a){var T=this.graphics.drawRect(L.x-v,L.y-S,L.width+v+A,L.height+k+S,p,h||"transparent",1,u,f,g);B.insertBefore(T.node,D.node)}}},{key:"addImage",value:function(e,t){var i=this.w,r=e.path,a=e.x,s=void 0===a?0:a,n=e.y,o=void 0===n?0:n,l=e.width,c=void 0===l?20:l,d=e.height,h=void 0===d?20:d,u=e.appendTo,g=void 0===u?".apexcharts-svg":u,p=i.globals.dom.Paper.image(r);p.size(c,h).move(s,o);var f=i.globals.dom.baseEl.querySelector(g);return f&&f.appendChild(p.node),p}},{key:"addXaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"xaxis",contextMethod:i.addXaxisAnnotation}),i}},{key:"addYaxisAnnotationExternal",value:function(e,t,i){return this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"yaxis",contextMethod:i.addYaxisAnnotation}),i}},{key:"addPointAnnotationExternal",value:function(e,t,i){return void 0===this.invertAxis&&(this.invertAxis=i.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:i,type:"point",contextMethod:i.addPointAnnotation}),i}},{key:"addAnnotationExternal",value:function(e){var t=e.params,i=e.pushToMemory,r=e.context,a=e.type,s=e.contextMethod,n=r,o=n.w,l=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations")),c=l.childNodes.length+1,d=new Ni,h=Object.assign({},"xaxis"===a?d.xAxisAnnotation:"yaxis"===a?d.yAxisAnnotation:d.pointAnnotation),u=w.extend(h,t);switch(a){case"xaxis":this.addXaxisAnnotation(u,l,c);break;case"yaxis":this.addYaxisAnnotation(u,l,c);break;case"point":this.addPointAnnotation(u,l,c)}var g=o.globals.dom.baseEl.querySelector(".apexcharts-".concat(a,"-annotations .apexcharts-").concat(a,"-annotation-label[rel='").concat(c,"']")),p=this.helpers.addBackgroundToAnno(g,u);return p&&l.insertBefore(p.node,g),i&&o.globals.memory.methodsToExec.push({context:n,id:u.id?u.id:w.randomId(),method:s,label:"addAnnotation",params:t}),r}},{key:"clearAnnotations",value:function(e){for(var t=e.w,i=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations"),r=t.globals.memory.methodsToExec.length-1;r>=0;r--)"addText"!==t.globals.memory.methodsToExec[r].label&&"addAnnotation"!==t.globals.memory.methodsToExec[r].label||t.globals.memory.methodsToExec.splice(r,1);i=w.listToArray(i),Array.prototype.forEach.call(i,function(e){for(;e.firstChild;)e.removeChild(e.firstChild)})}},{key:"removeAnnotation",value:function(e,t){var i=e.w,r=i.globals.dom.baseEl.querySelectorAll(".".concat(t));r&&(i.globals.memory.methodsToExec.map(function(e,r){e.id===t&&i.globals.memory.methodsToExec.splice(r,1)}),Object.keys(i.config.annotations).forEach(function(e){var r=i.config.annotations[e];Array.isArray(r)&&(i.config.annotations[e]=r.filter(function(e){return e.id!==t}))}),Array.prototype.forEach.call(r,function(e){e.parentElement.removeChild(e)}))}}]),e}(),Fi=function(e){var t,i=e.isTimeline,r=e.ctx,a=e.seriesIndex,s=e.dataPointIndex,n=e.y1,o=e.y2,l=e.w,c=l.globals.seriesRangeStart[a][s],d=l.globals.seriesRangeEnd[a][s],h=l.globals.labels[s],u=l.config.series[a].name?l.config.series[a].name:"",g=l.globals.ttKeyFormatter,p=l.config.tooltip.y.title.formatter,f={w:l,seriesIndex:a,dataPointIndex:s,start:c,end:d};"function"==typeof p&&(u=p(u,f)),null!==(t=l.config.series[a].data[s])&&void 0!==t&&t.x&&(h=l.config.series[a].data[s].x),i||"datetime"===l.config.xaxis.type&&(h=new Mi(r).xLabelFormat(l.globals.ttKeyFormatter,h,h,{i:void 0,dateFormatter:new Pi(r).formatDate,w:l})),"function"==typeof g&&(h=g(h,f)),Number.isFinite(n)&&Number.isFinite(o)&&(c=n,d=o);var b="",m="",x=l.globals.colors[a];if(void 0===l.config.tooltip.x.formatter)if("datetime"===l.config.xaxis.type){var v=new Pi(r);b=v.formatDate(v.getDate(c),l.config.tooltip.x.format),m=v.formatDate(v.getDate(d),l.config.tooltip.x.format)}else b=c,m=d;else b=l.config.tooltip.x.formatter(c),m=l.config.tooltip.x.formatter(d);return{start:c,end:d,startVal:b,endVal:m,ylabel:h,color:x,seriesName:u}},_i=function(e){var t=e.color,i=e.seriesName,r=e.ylabel,a=e.start,s=e.end,n=e.seriesIndex,o=e.dataPointIndex,l=e.ctx.tooltip.tooltipLabels.getFormatters(n);a=l.yLbFormatter(a),s=l.yLbFormatter(s);var c=l.yLbFormatter(e.w.globals.series[n][o]),d='<span class="value start-value">\n  '.concat(a,'\n  </span> <span class="separator">-</span> <span class="value end-value">\n  ').concat(s,"\n  </span>");return'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+t+'">'+(i||"")+'</span></div><div> <span class="category">'+r+": </span> "+(e.w.globals.comboCharts?"rangeArea"===e.w.config.series[n].type||"rangeBar"===e.w.config.series[n].type?d:"<span>".concat(c,"</span>"):d)+" </div></div>"},Yi=function(){function e(t){s(this,e),this.opts=t}return o(e,[{key:"hideYAxis",value:function(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}},{key:"line",value:function(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}},{key:"sparkline",value:function(e){return this.hideYAxis(),w.extend(e,{grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}})}},{key:"slope",value:function(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter:function(e,t){var i=t.w.config.series[t.seriesIndex].name;return null!==e?i+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}},{key:"bar",value:function(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}},{key:"funnel",value:function(){return this.hideYAxis(),f(f({},this.bar()),{},{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}},{key:"candlestick",value:function(){var e=this;return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,r=t.dataPointIndex,a=t.w;return e._getBoxTooltip(a,i,r,["Open","High","","Low","Close"],"candlestick")}},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}},{key:"boxPlot",value:function(){var e=this;return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:function(t){var i=t.seriesIndex,r=t.dataPointIndex,a=t.w;return e._getBoxTooltip(a,i,r,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")}},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}},{key:"rangeBar",value:function(){return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter:function(e,t){t.ctx;var i=t.seriesIndex,r=t.dataPointIndex,a=t.w,s=function(){var e=a.globals.seriesRangeStart[i][r];return a.globals.seriesRangeEnd[i][r]-e};return a.globals.comboCharts?"rangeBar"===a.config.series[i].type||"rangeArea"===a.config.series[i].type?s():e:s()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom:function(e){return e.w.config.plotOptions&&e.w.config.plotOptions.bar&&e.w.config.plotOptions.bar.horizontal?function(e){var t=Fi(f(f({},e),{},{isTimeline:!0})),i=t.color,r=t.seriesName,a=t.ylabel,s=t.startVal,n=t.endVal;return _i(f(f({},e),{},{color:i,seriesName:r,ylabel:a,start:s,end:n}))}(e):function(e){var t=Fi(e),i=t.color,r=t.seriesName,a=t.ylabel,s=t.start,n=t.end;return _i(f(f({},e),{},{color:i,seriesName:r,ylabel:a,start:s,end:n}))}(e)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}},{key:"dumbbell",value:function(e){var t,i;return null!==(t=e.plotOptions.bar)&&void 0!==t&&t.barHeight||(e.plotOptions.bar.barHeight=2),null!==(i=e.plotOptions.bar)&&void 0!==i&&i.columnWidth||(e.plotOptions.bar.columnWidth=2),e}},{key:"area",value:function(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}},{key:"rangeArea",value:function(){return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom:function(e){return function(e){var t=Fi(e),i=t.color,r=t.seriesName,a=t.ylabel,s=t.start,n=t.end;return _i(f(f({},e),{},{color:i,seriesName:r,ylabel:a,start:s,end:n}))}(e)}}}}},{key:"brush",value:function(e){return w.extend(e,{chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}})}},{key:"stacked100",value:function(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;var t=e.dataLabels.formatter;return e.yaxis.forEach(function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100}),"bar"===e.chart.type&&(e.dataLabels.formatter=t||function(e){return"number"==typeof e&&e?e.toFixed(0)+"%":e}),e}},{key:"stackedBars",value:function(){var e=this.bar();return f(f({},e),{},{plotOptions:f(f({},e.plotOptions),{},{bar:f(f({},e.plotOptions.bar),{},{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}},{key:"convertCatToNumeric",value:function(e){return e.xaxis.convertedCatToNumeric=!0,e}},{key:"convertCatToNumericXaxis",value:function(e,t,i){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(e){return w.isNumber(e)?Math.floor(e):e};var r=e.xaxis.labels.formatter,a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return i&&i.length&&(a=i.map(function(e){return Array.isArray(e)?e:String(e)})),a&&a.length&&(e.xaxis.labels.formatter=function(e){return w.isNumber(e)?r(a[Math.floor(e)-1]):r(e)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}},{key:"bubble",value:function(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}},{key:"scatter",value:function(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}},{key:"heatmap",value:function(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}},{key:"treemap",value:function(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}},{key:"pie",value:function(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"donut",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"polarArea",value:function(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter:function(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"radar",value:function(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:function(e){return e},style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}},{key:"radialBar",value:function(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}},{key:"_getBoxTooltip",value:function(e,t,i,r,a){var s=e.globals.seriesCandleO[t][i],n=e.globals.seriesCandleH[t][i],o=e.globals.seriesCandleM[t][i],l=e.globals.seriesCandleL[t][i],c=e.globals.seriesCandleC[t][i];return e.config.series[t].type&&e.config.series[t].type!==a?'<div class="apexcharts-custom-tooltip">\n          '.concat(e.config.series[t].name?e.config.series[t].name:"series-"+(t+1),": <strong>").concat(e.globals.series[t][i],"</strong>\n        </div>"):'<div class="apexcharts-tooltip-box apexcharts-tooltip-'.concat(e.config.chart.type,'">')+"<div>".concat(r[0],': <span class="value">')+s+"</span></div>"+"<div>".concat(r[1],': <span class="value">')+n+"</span></div>"+(o?"<div>".concat(r[2],': <span class="value">')+o+"</span></div>":"")+"<div>".concat(r[3],': <span class="value">')+l+"</span></div>"+"<div>".concat(r[4],': <span class="value">')+c+"</span></div></div>"}}]),e}(),Xi=function(){function e(t){s(this,e),this.opts=t}return o(e,[{key:"init",value:function(e){var t=e.responsiveOverride,i=this.opts,r=new Ni,a=new Yi(i);this.chartType=i.chart.type,i=this.extendYAxis(i),i=this.extendAnnotations(i);var s=r.init(),n={};if(i&&"object"===y(i)){var o,l,c,d,h,u,g,p,f,b,m={};m=-1!==["line","area","bar","candlestick","boxPlot","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"].indexOf(i.chart.type)?a[i.chart.type]():a.line(),null!==(o=i.plotOptions)&&void 0!==o&&null!==(l=o.bar)&&void 0!==l&&l.isFunnel&&(m=a.funnel()),i.chart.stacked&&"bar"===i.chart.type&&(m=a.stackedBars()),null!==(c=i.chart.brush)&&void 0!==c&&c.enabled&&(m=a.brush(m)),null!==(d=i.plotOptions)&&void 0!==d&&null!==(h=d.line)&&void 0!==h&&h.isSlopeChart&&(m=a.slope()),i.chart.stacked&&"100%"===i.chart.stackType&&(i=a.stacked100(i)),null!==(u=i.plotOptions)&&void 0!==u&&null!==(g=u.bar)&&void 0!==g&&g.isDumbbell&&(i=a.dumbbell(i)),this.checkForDarkTheme(window.Apex),this.checkForDarkTheme(i),i.xaxis=i.xaxis||window.Apex.xaxis||{},t||(i.xaxis.convertedCatToNumeric=!1),(null!==(p=(i=this.checkForCatToNumericXAxis(this.chartType,m,i)).chart.sparkline)&&void 0!==p&&p.enabled||null!==(f=window.Apex.chart)&&void 0!==f&&null!==(b=f.sparkline)&&void 0!==b&&b.enabled)&&(m=a.sparkline(m)),n=w.extend(s,m)}var x=w.extend(n,window.Apex);return s=w.extend(x,i),this.handleUserInputErrors(s)}},{key:"checkForCatToNumericXAxis",value:function(e,t,i){var r,a,s=new Yi(i),n=("bar"===e||"boxPlot"===e)&&(null===(r=i.plotOptions)||void 0===r||null===(a=r.bar)||void 0===a?void 0:a.horizontal),o="pie"===e||"polarArea"===e||"donut"===e||"radar"===e||"radialBar"===e||"heatmap"===e,l="datetime"!==i.xaxis.type&&"numeric"!==i.xaxis.type,c=i.xaxis.tickPlacement?i.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return n||o||!l||"between"===c||(i=s.convertCatToNumeric(i)),i}},{key:"extendYAxis",value:function(e,t){var i=new Ni;(void 0===e.yaxis||!e.yaxis||Array.isArray(e.yaxis)&&0===e.yaxis.length)&&(e.yaxis={}),e.yaxis.constructor!==Array&&window.Apex.yaxis&&window.Apex.yaxis.constructor!==Array&&(e.yaxis=w.extend(e.yaxis,window.Apex.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[w.extend(i.yAxis,e.yaxis)]:e.yaxis=w.extendArray(e.yaxis,i.yAxis);var r=!1;e.yaxis.forEach(function(e){e.logarithmic&&(r=!0)});var a=e.series;return t&&!a&&(a=t.config.series),r&&a.length!==e.yaxis.length&&a.length&&(e.yaxis=a.map(function(t,r){if(t.name||(a[r].name="series-".concat(r+1)),e.yaxis[r])return e.yaxis[r].seriesName=a[r].name,e.yaxis[r];var s=w.extend(i.yAxis,e.yaxis[0]);return s.show=!1,s})),r&&a.length>1&&a.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}},{key:"extendAnnotations",value:function(e){return void 0===e.annotations&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),this.extendPointAnnotations(e)}},{key:"extendYAxisAnnotations",value:function(e){var t=new Ni;return e.annotations.yaxis=w.extendArray(void 0!==e.annotations.yaxis?e.annotations.yaxis:[],t.yAxisAnnotation),e}},{key:"extendXAxisAnnotations",value:function(e){var t=new Ni;return e.annotations.xaxis=w.extendArray(void 0!==e.annotations.xaxis?e.annotations.xaxis:[],t.xAxisAnnotation),e}},{key:"extendPointAnnotations",value:function(e){var t=new Ni;return e.annotations.points=w.extendArray(void 0!==e.annotations.points?e.annotations.points:[],t.pointAnnotation),e}},{key:"checkForDarkTheme",value:function(e){e.theme&&"dark"===e.theme.mode&&(e.tooltip||(e.tooltip={}),"light"!==e.tooltip.theme&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}},{key:"handleUserInputErrors",value:function(e){var t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if("bar"===t.chart.type&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return"bar"!==t.chart.type&&"rangeBar"!==t.chart.type||t.tooltip.shared&&"barWidth"===t.xaxis.crosshairs.width&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),"candlestick"!==t.chart.type&&"boxPlot"!==t.chart.type||t.yaxis[0].reversed&&(console.warn("Reversed y-axis in ".concat(t.chart.type," chart is not supported.")),t.yaxis[0].reversed=!1),t}}]),e}(),Wi=function(){function e(){s(this,e)}return o(e,[{key:"initGlobalVars",value:function(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.dataWasParsed=!1,e.originalSeries=null,e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0}},{key:"globalVars",value:function(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],clientX:null,clientY:null,fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},animationEnded:!1,isTouchDevice:"ontouchstart"in window||navigator.msMaxTouchPoints,isDirty:!1,isExecCalled:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],columnSeries:null,labels:[],timescaleLabels:[],noLabelsProvided:!1,allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],dataFormatXNumeric:!1,capturedSeriesIndex:-1,capturedDataPointIndex:-1,selectedDataPoints:[],invalidLogScale:!1,ignoreYAxisIndexes:[],maxValsInArrayIndex:0,radialSize:0,selection:void 0,zoomEnabled:"zoom"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:"pan"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.pan,selectionEnabled:"selection"===e.chart.toolbar.autoSelected&&e.chart.toolbar.tools.selection,yaxis:null,mousedown:!1,lastClientPosition:{},visibleXRange:void 0,yValueDecimal:0,total:0,SVGNS:"http://www.w3.org/2000/svg",svgWidth:0,svgHeight:0,noData:!1,locale:{},dom:{},memory:{methodsToExec:[]},shouldAnimate:!0,skipLastTimelinelabel:!1,skipFirstTimelinelabel:!1,delayedElements:[],axisCharts:!0,isDataXYZ:!1,isSlopeChart:e.plotOptions.line.isSlopeChart,resized:!1,resizeTimer:null,comboCharts:!1,dataChanged:!1,previousPaths:[],allSeriesHasEqualX:!0,pointsArray:[],dataLabelsRects:[],lastDrawnDataLabelsIndexes:[],hasNullValues:!1,zoomed:!1,gridWidth:0,gridHeight:0,rotateXLabels:!1,defaultLabels:!1,xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,LINE_HEIGHT_RATIO:1.618,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateX:0,translateY:0,translateYAxisX:[],yAxisWidths:[],translateXAxisY:0,translateXAxisX:0,tooltip:null,niceScaleAllowedMagMsd:[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],niceScaleDefaultTicks:[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24],seriesYAxisMap:[],seriesYAxisReverseMap:[]}}},{key:"init",value:function(e){var t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=w.extend({},e),t.initialSeries=w.clone(e.series),t.lastXAxis=w.clone(t.initialConfig.xaxis),t.lastYAxis=w.clone(t.initialConfig.yaxis),t}}]),e}(),qi=function(){function e(t){s(this,e),this.opts=t}return o(e,[{key:"init",value:function(){var e=new Xi(this.opts).init({responsiveOverride:!1});return{config:e,globals:(new Wi).init(e)}}}]),e}(),ji=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}return o(e,[{key:"clippedImgArea",value:function(e){var t=this.w,i=t.config,r=parseInt(t.globals.gridWidth,10),a=parseInt(t.globals.gridHeight,10),s=r>a?r:a,n=e.image,o=0,l=0;void 0===e.width&&void 0===e.height?void 0!==i.fill.image.width&&void 0!==i.fill.image.height?(o=i.fill.image.width+1,l=i.fill.image.height):(o=s+1,l=s):(o=e.width,l=e.height);var c=document.createElementNS(t.globals.SVGNS,"pattern");Di.setAttrs(c,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:o+"px",height:l+"px"});var d=document.createElementNS(t.globals.SVGNS,"image");c.appendChild(d),d.setAttributeNS(window.SVG.xlink,"href",n),Di.setAttrs(d,{x:0,y:0,preserveAspectRatio:"none",width:o+"px",height:l+"px"}),d.style.opacity=e.opacity,t.globals.dom.elDefs.node.appendChild(c)}},{key:"getSeriesIndex",value:function(e){var t=this.w,i=t.config.chart.type;return("bar"===i||"rangeBar"===i)&&t.config.plotOptions.bar.distributed||"heatmap"===i||"treemap"===i?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.globals.series.length,this.seriesIndex}},{key:"computeColorStops",value:function(e,t){var i,r=this.w,a=null,s=null,n=l(e);try{for(n.s();!(i=n.n()).done;){var o=i.value;o>=t.threshold?(null===a||o>a)&&(a=o):(null===s||o<s)&&(s=o)}}catch(e){n.e(e)}finally{n.f()}null===a&&(a=t.threshold),null===s&&(s=t.threshold);var c=a-t.threshold+(t.threshold-s);0===c&&(c=1);var d=100-(t.threshold-s)/c*100;return[{offset:d=Math.max(0,Math.min(d,100)),color:t.colorAboveThreshold,opacity:r.config.fill.opacity},{offset:0,color:t.colorBelowThreshold,opacity:r.config.fill.opacity}]}},{key:"fillPath",value:function(e){var t,i,r,a=this.w;this.opts=e;var s,n,o,l=this.w.config;this.seriesIndex=this.getSeriesIndex(e);var c=l.plotOptions.line.colors.colorAboveThreshold&&l.plotOptions.line.colors.colorBelowThreshold,d=this.getFillColors()[this.seriesIndex];void 0!==a.globals.seriesColors[this.seriesIndex]&&(d=a.globals.seriesColors[this.seriesIndex]),"function"==typeof d&&(d=d({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:a}));var h,u,g,p=e.fillType?e.fillType:this.getFillType(this.seriesIndex),f=Array.isArray(l.fill.opacity)?l.fill.opacity[this.seriesIndex]:l.fill.opacity,b="gradient"===p||c;e.color&&(d=e.color),null!==(t=a.config.series[this.seriesIndex])&&void 0!==t&&null!==(i=t.data)&&void 0!==i&&null!==(r=i[e.dataPointIndex])&&void 0!==r&&r.fillColor&&(d=null===(h=a.config.series[this.seriesIndex])||void 0===h||null===(u=h.data)||void 0===u||null===(g=u[e.dataPointIndex])||void 0===g?void 0:g.fillColor),d||(d="#fff",console.warn("undefined color - ApexCharts"));var m=d;if(-1===d.indexOf("rgb")?-1===d.indexOf("#")?m=d:d.length<9&&(m=w.hexToRgba(d,f)):d.indexOf("rgba")>-1?f=w.getOpacityFromRGBA(d):m=w.hexToRgba(w.rgb2hex(d),f),e.opacity&&(f=e.opacity),"pattern"===p&&(n=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:n,fillColor:d,fillOpacity:f,defaultColor:m})),b){var v=x(l.fill.gradient.colorStops)||[],y=l.fill.gradient.type;c&&(v[this.seriesIndex]=this.computeColorStops(a.globals.series[this.seriesIndex],l.plotOptions.line.colors),y="vertical"),o=this.handleGradientFill({type:y,fillConfig:e.fillConfig,fillColor:d,fillOpacity:f,colorStops:v,i:this.seriesIndex})}if("image"===p){var A=l.fill.image.src,k=e.patternID?e.patternID:"",C="pattern".concat(a.globals.cuid).concat(e.seriesNumber+1).concat(k);-1===this.patternIDs.indexOf(C)&&(this.clippedImgArea({opacity:f,image:Array.isArray(A)?e.seriesNumber<A.length?A[e.seriesNumber]:A[0]:A,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:C}),this.patternIDs.push(C)),s="url(#".concat(C,")")}else s=b?o:"pattern"===p?n:m;return e.solid&&(s=m),s}},{key:"getFillType",value:function(e){var t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}},{key:"getFillColors",value:function(){var e=this.w,t=e.config,i=this.opts,r=[];return e.globals.comboCharts?"line"===e.config.series[this.seriesIndex].type?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors):"line"===t.chart.type?Array.isArray(e.globals.stroke.colors)?r=e.globals.stroke.colors:r.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?r=e.globals.fill.colors:r.push(e.globals.fill.colors),void 0!==i.fillColors&&(r=[],Array.isArray(i.fillColors)?r=i.fillColors.slice():r.push(i.fillColors)),r}},{key:"handlePatternFill",value:function(e){var t=e.fillConfig,i=(e.patternFill,e.fillColor),r=e.fillOpacity,a=e.defaultColor,s=this.w.config.fill;t&&(s=t);var n=this.opts,o=new Di(this.ctx),l=Array.isArray(s.pattern.strokeWidth)?s.pattern.strokeWidth[this.seriesIndex]:s.pattern.strokeWidth,c=i;return Array.isArray(s.pattern.style)?void 0!==s.pattern.style[n.seriesNumber]?o.drawPattern(s.pattern.style[n.seriesNumber],s.pattern.width,s.pattern.height,c,l,r):a:o.drawPattern(s.pattern.style,s.pattern.width,s.pattern.height,c,l,r)}},{key:"handleGradientFill",value:function(e){var t=e.type,i=e.fillColor,r=e.fillOpacity,a=e.fillConfig,s=e.colorStops,n=e.i,o=this.w.config.fill;a&&(o=f(f({},o),a));var l=this.opts,c=new Di(this.ctx),d=new w;t=t||o.gradient.type;var h,u=i,g=void 0===o.gradient.opacityFrom?r:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[n]:o.gradient.opacityFrom;u.indexOf("rgba")>-1&&(g=w.getOpacityFromRGBA(u));var p=void 0===o.gradient.opacityTo?r:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[n]:o.gradient.opacityTo;if(void 0===o.gradient.gradientToColors||0===o.gradient.gradientToColors.length)h="dark"===o.gradient.shade?d.shadeColor(-1*parseFloat(o.gradient.shadeIntensity),i.indexOf("rgb")>-1?w.rgb2hex(i):i):d.shadeColor(parseFloat(o.gradient.shadeIntensity),i.indexOf("rgb")>-1?w.rgb2hex(i):i);else if(o.gradient.gradientToColors[l.seriesNumber]){var b=o.gradient.gradientToColors[l.seriesNumber];h=b,b.indexOf("rgba")>-1&&(p=w.getOpacityFromRGBA(b))}else h=i;if(o.gradient.gradientFrom&&(u=o.gradient.gradientFrom),o.gradient.gradientTo&&(h=o.gradient.gradientTo),o.gradient.inverseColors){var m=u;u=h,h=m}return u.indexOf("rgb")>-1&&(u=w.rgb2hex(u)),h.indexOf("rgb")>-1&&(h=w.rgb2hex(h)),c.drawGradient(t,u,h,g,p,l.size,o.gradient.stops,s,n)}}]),e}(),Ui=function(){function e(t,i){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"setGlobalMarkerSize",value:function(){var e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.globals.series.length+1)for(var t=0;t<=e.globals.series.length;t++)void 0===e.globals.markers.size[t]&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(function(t){return e.config.markers.size})}},{key:"plotChartMarkers",value:function(e){var t=e.pointsPos,i=e.seriesIndex,r=e.j,a=e.pSize,s=e.alwaysDrawMarker,n=void 0!==s&&s,o=e.isVirtualPoint,l=void 0!==o&&o,c=this.w,d=i,h=t,u=null,g=new Di(this.ctx),p=c.config.markers.discrete&&c.config.markers.discrete.length;if(Array.isArray(h.x))for(var f=0;f<h.x.length;f++){var b=void 0,m=r,x=!w.isNumber(h.y[f]);0===c.globals.markers.largestSize&&c.globals.hasNullValues&&null!==c.globals.series[d][r+1]&&!l&&(x=!0),1===r&&0===f&&(m=0),1===r&&1===f&&(m=1);var v="apexcharts-marker";if("line"!==c.config.chart.type&&"area"!==c.config.chart.type||c.globals.comboCharts||c.config.tooltip.intersect||(v+=" no-pointer-events"),(Array.isArray(c.config.markers.size)?c.globals.markers.size[i]>0:c.config.markers.size>0)||n||p){x||(v+=" w".concat(w.randomId()));var y=this.getMarkerConfig({cssClass:v,seriesIndex:i,dataPointIndex:m});c.config.series[d].data[m]&&(c.config.series[d].data[m].fillColor&&(y.pointFillColor=c.config.series[d].data[m].fillColor),c.config.series[d].data[m].strokeColor&&(y.pointStrokeColor=c.config.series[d].data[m].strokeColor)),void 0!==a&&(y.pSize=a),(h.x[f]<-c.globals.markers.largestSize||h.x[f]>c.globals.gridWidth+c.globals.markers.largestSize||h.y[f]<-c.globals.markers.largestSize||h.y[f]>c.globals.gridHeight+c.globals.markers.largestSize)&&(y.pSize=0),x||((c.globals.markers.size[i]>0||n||p)&&!u&&(u=g.group({class:n||p?"":"apexcharts-series-markers"})).attr("clip-path","url(#gridRectMarkerMask".concat(c.globals.cuid,")")),(b=g.drawMarker(h.x[f],h.y[f],y)).attr("rel",m),b.attr("j",m),b.attr("index",i),b.node.setAttribute("default-marker-size",y.pSize),new Ei(this.ctx).setSelectionFilter(b,i,m),this.addEvents(b),u&&u.add(b))}else void 0===c.globals.pointsArray[i]&&(c.globals.pointsArray[i]=[]),c.globals.pointsArray[i].push([h.x[f],h.y[f]])}return u}},{key:"getMarkerConfig",value:function(e){var t=e.cssClass,i=e.seriesIndex,r=e.dataPointIndex,a=void 0===r?null:r,s=e.radius,n=void 0===s?null:s,o=e.size,l=void 0===o?null:o,c=e.strokeWidth,d=void 0===c?null:c,h=this.w,u=this.getMarkerStyle(i),g=null===l?h.globals.markers.size[i]:l,p=h.config.markers;return null!==a&&p.discrete.length&&p.discrete.map(function(e){e.seriesIndex===i&&e.dataPointIndex===a&&(u.pointStrokeColor=e.strokeColor,u.pointFillColor=e.fillColor,g=e.size,u.pointShape=e.shape)}),{pSize:null===n?g:n,pRadius:null!==n?n:p.radius,pointStrokeWidth:null!==d?d:Array.isArray(p.strokeWidth)?p.strokeWidth[i]:p.strokeWidth,pointStrokeColor:u.pointStrokeColor,pointFillColor:u.pointFillColor,shape:u.pointShape||(Array.isArray(p.shape)?p.shape[i]:p.shape),class:t,pointStrokeOpacity:Array.isArray(p.strokeOpacity)?p.strokeOpacity[i]:p.strokeOpacity,pointStrokeDashArray:Array.isArray(p.strokeDashArray)?p.strokeDashArray[i]:p.strokeDashArray,pointFillOpacity:Array.isArray(p.fillOpacity)?p.fillOpacity[i]:p.fillOpacity,seriesIndex:i}}},{key:"addEvents",value:function(e){var t=this.w,i=new Di(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",i.pathMouseDown.bind(this.ctx,e),{passive:!0})}},{key:"getMarkerStyle",value:function(e){var t=this.w,i=t.globals.markers.colors,r=t.config.markers.strokeColor||t.config.markers.strokeColors;return{pointStrokeColor:Array.isArray(r)?r[e]:r,pointFillColor:Array.isArray(i)?i[e]:i}}}]),e}(),Gi=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.initialAnim=this.w.config.chart.animations.enabled}return o(e,[{key:"draw",value:function(e,t,i){var r=this.w,a=new Di(this.ctx),s=i.realIndex,n=i.pointsPos,o=i.zRatio,l=i.elParent,c=a.group({class:"apexcharts-series-markers apexcharts-series-".concat(r.config.chart.type)});if(c.attr("clip-path","url(#gridRectMarkerMask".concat(r.globals.cuid,")")),Array.isArray(n.x))for(var d=0;d<n.x.length;d++){var h=t+1,u=!0;0===t&&0===d&&(h=0),0===t&&1===d&&(h=1);var g=r.globals.markers.size[s];if(o!==1/0){var p=r.config.plotOptions.bubble;g=r.globals.seriesZ[s][h],p.zScaling&&(g/=o),p.minBubbleRadius&&g<p.minBubbleRadius&&(g=p.minBubbleRadius),p.maxBubbleRadius&&g>p.maxBubbleRadius&&(g=p.maxBubbleRadius)}var f=n.x[d],b=n.y[d];if(g=g||0,null!==b&&void 0!==r.globals.series[s][h]||(u=!1),u){var m=this.drawPoint(f,b,g,s,h,t);c.add(m)}l.add(c)}}},{key:"drawPoint",value:function(e,t,i,r,a,s){var n=this.w,o=r,l=new k(this.ctx),c=new Ei(this.ctx),d=new ji(this.ctx),h=new Ui(this.ctx),u=new Di(this.ctx),g=h.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:o,dataPointIndex:a,radius:"bubble"===n.config.chart.type||n.globals.comboCharts&&n.config.series[r]&&"bubble"===n.config.series[r].type?i:null}),p=d.fillPath({seriesNumber:r,dataPointIndex:a,color:g.pointFillColor,patternUnits:"objectBoundingBox",value:n.globals.series[r][s]}),f=u.drawMarker(e,t,g);if(n.config.series[o].data[a]&&n.config.series[o].data[a].fillColor&&(p=n.config.series[o].data[a].fillColor),f.attr({fill:p}),n.config.chart.dropShadow.enabled){var b=n.config.chart.dropShadow;c.dropShadow(f,b,r)}if(!this.initialAnim||n.globals.dataChanged||n.globals.resized)n.globals.animationEnded=!0;else{var m=n.config.chart.animations.speed;l.animateMarker(f,m,n.globals.easing,function(){window.setTimeout(function(){l.animationCompleted(f)},100)})}return f.attr({rel:a,j:a,index:r,"default-marker-size":g.pSize}),c.setSelectionFilter(f,r,a),h.addEvents(f),f.node.classList.add("apexcharts-marker"),f}},{key:"centerTextInBubble",value:function(e){var t=this.w;return{y:e+=parseInt(t.config.dataLabels.style.fontSize,10)/4}}}]),e}(),Vi=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"dataLabelsCorrection",value:function(e,t,i,r,a,s,n){var o=this.w,l=!1,c=new Di(this.ctx).getTextRects(i,n),d=c.width,h=c.height;t<0&&(t=0),t>o.globals.gridHeight+h&&(t=o.globals.gridHeight+h/2),void 0===o.globals.dataLabelsRects[r]&&(o.globals.dataLabelsRects[r]=[]),o.globals.dataLabelsRects[r].push({x:e,y:t,width:d,height:h});var u=o.globals.dataLabelsRects[r].length-2,g=void 0!==o.globals.lastDrawnDataLabelsIndexes[r]?o.globals.lastDrawnDataLabelsIndexes[r][o.globals.lastDrawnDataLabelsIndexes[r].length-1]:0;if(void 0!==o.globals.dataLabelsRects[r][u]){var p=o.globals.dataLabelsRects[r][g];(e>p.x+p.width||t>p.y+p.height||t+h<p.y||e+d<p.x)&&(l=!0)}return(0===a||s)&&(l=!0),{x:e,y:t,textRects:c,drawnextLabel:l}}},{key:"drawDataLabel",value:function(e){var t=this,i=e.type,r=e.pos,a=e.i,s=e.j,n=e.isRangeStart,o=e.strokeWidth,l=void 0===o?2:o,c=this.w,d=new Di(this.ctx),h=c.config.dataLabels,u=0,g=0,p=s,f=null;if(-1!==c.globals.collapsedSeriesIndices.indexOf(a)||!h.enabled||!Array.isArray(r.x))return f;f=d.group({class:"apexcharts-data-labels"});for(var b=0;b<r.x.length;b++)if(u=r.x[b]+h.offsetX,g=r.y[b]+h.offsetY+l,!isNaN(u)){1===s&&0===b&&(p=0),1===s&&1===b&&(p=1);var m=c.globals.series[a][p];"rangeArea"===i&&(m=n?c.globals.seriesRangeStart[a][p]:c.globals.seriesRangeEnd[a][p]);var x="",v=function(e){return c.config.dataLabels.formatter(e,{ctx:t.ctx,seriesIndex:a,dataPointIndex:p,w:c})};"bubble"===c.config.chart.type?(x=v(m=c.globals.seriesZ[a][p]),g=r.y[b],g=new Gi(this.ctx).centerTextInBubble(g,a,p).y):void 0!==m&&(x=v(m));var y=c.config.dataLabels.textAnchor;c.globals.isSlopeChart&&(y=0===p?"end":p===c.config.series[a].data.length-1?"start":"middle"),this.plotDataLabelsText({x:u,y:g,text:x,i:a,j:p,parent:f,offsetCorrection:!0,dataLabelsConfig:c.config.dataLabels,textAnchor:y})}return f}},{key:"plotDataLabelsText",value:function(e){var t=this.w,i=new Di(this.ctx),r=e.x,a=e.y,s=e.i,n=e.j,o=e.text,l=e.textAnchor,c=e.fontSize,d=e.parent,h=e.dataLabelsConfig,u=e.color,g=e.alwaysDrawDataLabel,p=e.offsetCorrection,f=e.className,b=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(s)<0)return b;var m={x:r,y:a,drawnextLabel:!0,textRects:null};p&&(m=this.dataLabelsCorrection(r,a,o,s,n,g,parseInt(h.style.fontSize,10))),t.globals.zoomed||(r=m.x,a=m.y),m.textRects&&(r<-20-m.textRects.width||r>t.globals.gridWidth+m.textRects.width+30)&&(o="");var x=t.globals.dataLabels.style.colors[s];(("bar"===t.config.chart.type||"rangeBar"===t.config.chart.type)&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(x=t.globals.dataLabels.style.colors[n]),"function"==typeof x&&(x=x({series:t.globals.series,seriesIndex:s,dataPointIndex:n,w:t})),u&&(x=u);var v=h.offsetX,y=h.offsetY;if("bar"!==t.config.chart.type&&"rangeBar"!==t.config.chart.type||(v=0,y=0),t.globals.isSlopeChart&&(0!==n&&(v=-2*h.offsetX+5),0!==n&&n!==t.config.series[s].data.length-1&&(v=0)),m.drawnextLabel){if("middle"===l&&r===t.globals.gridWidth&&(l="end"),(b=i.drawText({width:100,height:parseInt(h.style.fontSize,10),x:r+v,y:a+y,foreColor:x,textAnchor:l||h.textAnchor,text:o,fontSize:c||h.style.fontSize,fontFamily:h.style.fontFamily,fontWeight:h.style.fontWeight||"normal"})).attr({class:f||"apexcharts-datalabel",cx:r,cy:a}),h.dropShadow.enabled){var A=h.dropShadow;new Ei(this.ctx).dropShadow(b,A)}d.add(b),void 0===t.globals.lastDrawnDataLabelsIndexes[s]&&(t.globals.lastDrawnDataLabelsIndexes[s]=[]),t.globals.lastDrawnDataLabelsIndexes[s].push(n)}return b}},{key:"addBackgroundToDataLabel",value:function(e,t){var i=this.w,r=i.config.dataLabels.background,a=r.padding,s=r.padding/2,n=t.width,o=t.height,l=new Di(this.ctx).drawRect(t.x-a,t.y-s/2,n+2*a,o+s,r.borderRadius,"transparent"!==i.config.chart.background&&i.config.chart.background?i.config.chart.background:"#fff",r.opacity,r.borderWidth,r.borderColor);return r.dropShadow.enabled&&new Ei(this.ctx).dropShadow(l,r.dropShadow),l}},{key:"dataLabelsBackground",value:function(){var e=this.w;if("bubble"!==e.config.chart.type)for(var t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels text"),i=0;i<t.length;i++){var r=t[i],a=r.getBBox(),s=null;if(a.width&&a.height&&(s=this.addBackgroundToDataLabel(r,a)),s){r.parentNode.insertBefore(s.node,r);var n=e.config.dataLabels.background.backgroundColor||r.getAttribute("fill");!e.config.chart.animations.enabled||e.globals.resized||e.globals.dataChanged?s.attr({fill:n}):s.animate().attr({fill:n}),r.setAttribute("fill",e.config.dataLabels.background.foreColor)}}}},{key:"bringForward",value:function(){for(var e=this.w,t=e.globals.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),i=e.globals.dom.baseEl.querySelector(".apexcharts-plot-series:last-child"),r=0;r<t.length;r++)i&&i.insertBefore(t[r],i.nextSibling)}}]),e}(),Zi=".apexcharts-flip-y {\n  transform: scaleY(-1) translateY(-100%);\n  transform-origin: top;\n  transform-box: fill-box;\n}\n.apexcharts-flip-x {\n  transform: scaleX(-1);\n  transform-origin: center;\n  transform-box: fill-box;\n}\n.apexcharts-legend {\n  display: flex;\n  overflow: auto;\n  padding: 0 10px;\n}\n.apexcharts-legend.apexcharts-legend-group-horizontal {\n  flex-direction: column;\n}\n.apexcharts-legend-group {\n  display: flex;\n}\n.apexcharts-legend-group-vertical {\n  flex-direction: column-reverse;\n}\n.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {\n  flex-wrap: wrap\n}\n.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n  flex-direction: column;\n  bottom: 0;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {\n  justify-content: flex-start;\n  align-items: flex-start;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {\n  justify-content: center;\n  align-items: center;\n}\n.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {\n  justify-content: flex-end;\n  align-items: flex-end;\n}\n.apexcharts-legend-series {\n  cursor: pointer;\n  line-height: normal;\n  display: flex;\n  align-items: center;\n}\n.apexcharts-legend-text {\n  position: relative;\n  font-size: 14px;\n}\n.apexcharts-legend-text *, .apexcharts-legend-marker * {\n  pointer-events: none;\n}\n.apexcharts-legend-marker {\n  position: relative;\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  cursor: pointer;\n  margin-right: 1px;\n}\n\n.apexcharts-legend-series.apexcharts-no-click {\n  cursor: auto;\n}\n.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {\n  display: none !important;\n}\n.apexcharts-inactive-legend {\n  opacity: 0.45;\n} ",$i=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.legendInactiveClass="legend-mouseover-inactive"}return o(e,[{key:"getAllSeriesEls",value:function(){return this.w.globals.dom.baseEl.getElementsByClassName("apexcharts-series")}},{key:"getSeriesByName",value:function(e){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner .apexcharts-series[seriesName='".concat(w.escapeString(e),"']"))}},{key:"isSeriesHidden",value:function(e){var t=this.getSeriesByName(e),i=parseInt(t.getAttribute("data:realIndex"),10);return{isHidden:t.classList.contains("apexcharts-series-collapsed"),realIndex:i}}},{key:"addCollapsedClassToSeries",value:function(e,t){var i=this.w;function r(i){for(var r=0;r<i.length;r++)i[r].index===t&&e.node.classList.add("apexcharts-series-collapsed")}r(i.globals.collapsedSeries),r(i.globals.ancillaryCollapsedSeries)}},{key:"toggleSeries",value:function(e){var t=this.isSeriesHidden(e);return this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,t.isHidden),t.isHidden}},{key:"showSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden&&this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!0)}},{key:"hideSeries",value:function(e){var t=this.isSeriesHidden(e);t.isHidden||this.ctx.legend.legendHelpers.toggleDataSeries(t.realIndex,!1)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=this.w,a=w.clone(r.globals.initialSeries);r.globals.previousPaths=[],i?(r.globals.collapsedSeries=[],r.globals.ancillaryCollapsedSeries=[],r.globals.collapsedSeriesIndices=[],r.globals.ancillaryCollapsedSeriesIndices=[]):a=this.emptyCollapsedSeries(a),r.config.series=a,e&&(t&&(r.globals.zoomed=!1,this.ctx.updateHelpers.revertDefaultAxisMinMax()),this.ctx.updateHelpers._updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled))}},{key:"emptyCollapsedSeries",value:function(e){for(var t=this.w,i=0;i<e.length;i++)t.globals.collapsedSeriesIndices.indexOf(i)>-1&&(e[i].data=[]);return e}},{key:"highlightSeries",value:function(e){var t=this.w,i=this.getSeriesByName(e),r=parseInt(null==i?void 0:i.getAttribute("data:realIndex"),10),a=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),s=null,n=null,o=null;if(t.globals.axisCharts||"radialBar"===t.config.chart.type)if(t.globals.axisCharts){s=t.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(r,"']")),n=t.globals.dom.baseEl.querySelector(".apexcharts-datalabels[data\\:realIndex='".concat(r,"']"));var l=t.globals.seriesYAxisReverseMap[r];o=t.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(l,"']"))}else s=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"']"));else s=t.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(r+1,"'] path"));for(var c=0;c<a.length;c++)a[c].classList.add(this.legendInactiveClass);if(s)t.globals.axisCharts||s.parentNode.classList.remove(this.legendInactiveClass),s.classList.remove(this.legendInactiveClass),null!==n&&n.classList.remove(this.legendInactiveClass),null!==o&&o.classList.remove(this.legendInactiveClass);else for(var d=0;d<a.length;d++)a[d].classList.remove(this.legendInactiveClass)}},{key:"toggleSeriesOnHover",value:function(e,t){var i=this.w;t||(t=e.target);var r=i.globals.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if("mousemove"===e.type){var a=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(i.globals.seriesNames[a])}else if("mouseout"===e.type)for(var s=0;s<r.length;s++)r[s].classList.remove(this.legendInactiveClass)}},{key:"highlightRangeInSeries",value:function(e,t){var i=this,r=this.w,a=r.globals.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),s=function(e){for(var t=0;t<a.length;t++)a[t].classList[e](i.legendInactiveClass)};if("mousemove"===e.type){var n=parseInt(t.getAttribute("rel"),10)-1;s("add");var o=r.config.plotOptions.heatmap.colorScale.ranges;!function(e,t){for(var r=0;r<a.length;r++){var s=Number(a[r].getAttribute("val"));s>=e.from&&(s<e.to||e.to===t&&s===t)&&a[r].classList.remove(i.legendInactiveClass)}}(o[n],o.reduce(function(e,t){return Math.max(e,t.to)},0))}else"mouseout"===e.type&&s("remove")}},{key:"getActiveConfigSeriesIndex",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"asc",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=this.w,r=0;if(i.config.series.length>1)for(var a=i.config.series.map(function(e,r){return e.data&&e.data.length>0&&-1===i.globals.collapsedSeriesIndices.indexOf(r)&&(!i.globals.comboCharts||0===t.length||t.length&&t.indexOf(i.config.series[r].type)>-1)?r:-1}),s="asc"===e?0:a.length-1;"asc"===e?s<a.length:s>=0;"asc"===e?s++:s--)if(-1!==a[s]){r=a[s];break}return r}},{key:"getBarSeriesIndices",value:function(){return this.w.globals.comboCharts?this.w.config.series.map(function(e,t){return"bar"===e.type||"column"===e.type?t:-1}).filter(function(e){return-1!==e}):this.w.config.series.map(function(e,t){return t})}},{key:"getPreviousPaths",value:function(){var e=this.w;function t(t,i,r){for(var a=t[i].childNodes,s={type:r,paths:[],realIndex:t[i].getAttribute("data:realIndex")},n=0;n<a.length;n++)if(a[n].hasAttribute("pathTo")){var o=a[n].getAttribute("pathTo");s.paths.push({d:o})}e.globals.previousPaths.push(s)}e.globals.previousPaths=[],["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(function(i){for(var r,a=(r=i,e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(r,"-series .apexcharts-series"))),s=0;s<a.length;s++)t(a,s,i)});var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series"));if(i.length>0)for(var r=function(t){for(var i=e.globals.dom.baseEl.querySelectorAll(".apexcharts-".concat(e.config.chart.type," .apexcharts-series[data\\:realIndex='").concat(t,"'] rect")),r=[],a=function(e){var t=function(t){return i[e].getAttribute(t)},a={x:parseFloat(t("x")),y:parseFloat(t("y")),width:parseFloat(t("width")),height:parseFloat(t("height"))};r.push({rect:a,color:i[e].getAttribute("color")})},s=0;s<i.length;s++)a(s);e.globals.previousPaths.push(r)},a=0;a<i.length;a++)r(a);e.globals.axisCharts||(e.globals.previousPaths=e.globals.series)}},{key:"clearPreviousPaths",value:function(){var e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}},{key:"handleNoData",value:function(){var e=this.w,t=e.config.noData,i=new Di(this.ctx),r=e.globals.svgWidth/2,a=e.globals.svgHeight/2,s="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,"left"===t.align?(r=10,s="start"):"right"===t.align&&(r=e.globals.svgWidth-10,s="end"),"top"===t.verticalAlign?a=50:"bottom"===t.verticalAlign&&(a=e.globals.svgHeight-50),r+=t.offsetX,a=a+parseInt(t.style.fontSize,10)+2+t.offsetY,void 0!==t.text&&""!==t.text){var n=i.drawText({x:r,y:a,text:t.text,textAnchor:s,fontSize:t.style.fontSize,fontFamily:t.style.fontFamily,foreColor:t.style.color,opacity:1,class:"apexcharts-text-nodata"});e.globals.dom.Paper.add(n)}}},{key:"setNullSeriesToZeroValues",value:function(e){for(var t=this.w,i=0;i<e.length;i++)if(0===e[i].length)for(var r=0;r<e[t.globals.maxValsInArrayIndex].length;r++)e[i].push(0);return e}},{key:"hasAllSeriesEqualX",value:function(){for(var e=!0,t=this.w,i=this.filteredSeriesX(),r=0;r<i.length-1;r++)if(i[r][0]!==i[r+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}},{key:"filteredSeriesX",value:function(){return this.w.globals.seriesX.map(function(e){return e.length>0?e:[]})}}]),e}(),Qi=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new Bi(this.ctx)}return o(e,[{key:"isMultiFormat",value:function(){return this.isFormatXY()||this.isFormat2DArray()}},{key:"isFormatXY",value:function(){var e=this.w.config.series.slice(),t=new $i(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&null!==e[this.activeSeriesIndex].data[0]&&void 0!==e[this.activeSeriesIndex].data[0].x&&null!==e[this.activeSeriesIndex].data[0])return!0}},{key:"isFormat2DArray",value:function(){var e=this.w.config.series.slice(),t=new $i(this.ctx);if(this.activeSeriesIndex=t.getActiveConfigSeriesIndex(),void 0!==e[this.activeSeriesIndex].data&&e[this.activeSeriesIndex].data.length>0&&void 0!==e[this.activeSeriesIndex].data[0]&&null!==e[this.activeSeriesIndex].data[0]&&e[this.activeSeriesIndex].data[0].constructor===Array)return!0}},{key:"handleFormat2DArray",value:function(e,t){for(var i=this.w.config,r=this.w.globals,a="boxPlot"===i.chart.type||"boxPlot"===i.series[t].type,s=0;s<e[t].data.length;s++)if(void 0!==e[t].data[s][1]&&(Array.isArray(e[t].data[s][1])&&4===e[t].data[s][1].length&&!a?this.twoDSeries.push(w.parseNumber(e[t].data[s][1][3])):e[t].data[s].length>=5?this.twoDSeries.push(w.parseNumber(e[t].data[s][4])):this.twoDSeries.push(w.parseNumber(e[t].data[s][1])),r.dataFormatXNumeric=!0),"datetime"===i.xaxis.type){var n=new Date(e[t].data[s][0]);n=new Date(n).getTime(),this.twoDSeriesX.push(n)}else this.twoDSeriesX.push(e[t].data[s][0]);for(var o=0;o<e[t].data.length;o++)void 0!==e[t].data[o][2]&&(this.threeDSeries.push(e[t].data[o][2]),r.isDataXYZ=!0)}},{key:"handleFormatXY",value:function(e,t){var i=this.w.config,r=this.w.globals,a=new Pi(this.ctx),s=t;r.collapsedSeriesIndices.indexOf(t)>-1&&(s=this.activeSeriesIndex);for(var n=0;n<e[t].data.length;n++)void 0!==e[t].data[n].y&&(Array.isArray(e[t].data[n].y)?this.twoDSeries.push(w.parseNumber(e[t].data[n].y[e[t].data[n].y.length-1])):this.twoDSeries.push(w.parseNumber(e[t].data[n].y))),void 0!==e[t].data[n].goals&&Array.isArray(e[t].data[n].goals)?(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(e[t].data[n].goals)):(void 0===this.seriesGoals[t]&&(this.seriesGoals[t]=[]),this.seriesGoals[t].push(null));for(var o=0;o<e[s].data.length;o++){var l="string"==typeof e[s].data[o].x,c=Array.isArray(e[s].data[o].x),d=!c&&!!a.isValidDate(e[s].data[o].x);if(l||d)if(l||i.xaxis.convertedCatToNumeric){var h=r.isBarHorizontal&&r.isRangeData;"datetime"!==i.xaxis.type||h?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[s].data[o].x),isNaN(e[s].data[o].x)||"category"===this.w.config.xaxis.type||"string"==typeof e[s].data[o].x||(r.isXNumeric=!0)):this.twoDSeriesX.push(a.parseDate(e[s].data[o].x))}else"datetime"===i.xaxis.type?this.twoDSeriesX.push(a.parseDate(e[s].data[o].x.toString())):(r.dataFormatXNumeric=!0,r.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(e[s].data[o].x)));else c?(this.fallbackToCategory=!0,this.twoDSeriesX.push(e[s].data[o].x)):(r.isXNumeric=!0,r.dataFormatXNumeric=!0,this.twoDSeriesX.push(e[s].data[o].x))}if(e[t].data[0]&&void 0!==e[t].data[0].z){for(var u=0;u<e[t].data.length;u++)this.threeDSeries.push(e[t].data[u].z);r.isDataXYZ=!0}}},{key:"handleRangeData",value:function(e,t){var i=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",e,t)),i.seriesRangeStart[t]=void 0===r.start?[]:r.start,i.seriesRangeEnd[t]=void 0===r.end?[]:r.end,i.seriesRange[t]=r.rangeUniques,i.seriesRange.forEach(function(e,t){e&&e.forEach(function(e,t){e.y.forEach(function(t,i){for(var r=0;r<e.y.length;r++)if(i!==r){var a=t.y1,s=t.y2,n=e.y[r].y1;a<=e.y[r].y2&&n<=s&&(e.overlaps.indexOf(t.rangeName)<0&&e.overlaps.push(t.rangeName),e.overlaps.indexOf(e.y[r].rangeName)<0&&e.overlaps.push(e.y[r].rangeName))}})})}),r}},{key:"handleCandleStickBoxData",value:function(e,t){var i=this.w.globals,r={};return this.isFormat2DArray()?r=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleCandleStickBoxDataFormat("xy",e,t)),i.seriesCandleO[t]=r.o,i.seriesCandleH[t]=r.h,i.seriesCandleM[t]=r.m,i.seriesCandleL[t]=r.l,i.seriesCandleC[t]=r.c,r}},{key:"handleRangeDataFormat",value:function(e,t,i){var r=[],a=[],s=t[i].data.filter(function(e,t,i){return t===i.findIndex(function(t){return t.x===e.x})}).map(function(e,t){return{x:e.x,overlaps:[],y:[]}});if("array"===e)for(var n=0;n<t[i].data.length;n++)Array.isArray(t[i].data[n])?(r.push(t[i].data[n][1][0]),a.push(t[i].data[n][1][1])):(r.push(t[i].data[n]),a.push(t[i].data[n]));else if("xy"===e)for(var o=function(e){var n=Array.isArray(t[i].data[e].y),o=w.randomId(),l=t[i].data[e].x,c={y1:n?t[i].data[e].y[0]:t[i].data[e].y,y2:n?t[i].data[e].y[1]:t[i].data[e].y,rangeName:o};t[i].data[e].rangeName=o;var d=s.findIndex(function(e){return e.x===l});s[d].y.push(c),r.push(c.y1),a.push(c.y2)},l=0;l<t[i].data.length;l++)o(l);return{start:r,end:a,rangeUniques:s}}},{key:"handleCandleStickBoxDataFormat",value:function(e,t,i){var r=this.w,a="boxPlot"===r.config.chart.type||"boxPlot"===r.config.series[i].type,s=[],n=[],o=[],l=[],c=[];if("array"===e)if(a&&6===t[i].data[0].length||!a&&5===t[i].data[0].length)for(var d=0;d<t[i].data.length;d++)s.push(t[i].data[d][1]),n.push(t[i].data[d][2]),a?(o.push(t[i].data[d][3]),l.push(t[i].data[d][4]),c.push(t[i].data[d][5])):(l.push(t[i].data[d][3]),c.push(t[i].data[d][4]));else for(var h=0;h<t[i].data.length;h++)Array.isArray(t[i].data[h][1])&&(s.push(t[i].data[h][1][0]),n.push(t[i].data[h][1][1]),a?(o.push(t[i].data[h][1][2]),l.push(t[i].data[h][1][3]),c.push(t[i].data[h][1][4])):(l.push(t[i].data[h][1][2]),c.push(t[i].data[h][1][3])));else if("xy"===e)for(var u=0;u<t[i].data.length;u++)Array.isArray(t[i].data[u].y)&&(s.push(t[i].data[u].y[0]),n.push(t[i].data[u].y[1]),a?(o.push(t[i].data[u].y[2]),l.push(t[i].data[u].y[3]),c.push(t[i].data[u].y[4])):(l.push(t[i].data[u].y[2]),c.push(t[i].data[u].y[3])));return{o:s,h:n,m:o,l,c}}},{key:"parseDataAxisCharts",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.ctx,r=this.w.config,a=this.w.globals,s=new Pi(i),n=r.labels.length>0?r.labels.slice():r.xaxis.categories.slice();a.isRangeBar="rangeBar"===r.chart.type&&a.isBarHorizontal,a.hasXaxisGroups="category"===r.xaxis.type&&r.xaxis.group.groups.length>0,a.hasXaxisGroups&&(a.groups=r.xaxis.group.groups),e.forEach(function(e,t){void 0!==e.name?a.seriesNames.push(e.name):a.seriesNames.push("series-"+parseInt(t+1,10))}),this.coreUtils.setSeriesYAxisMappings();var o=[],l=x(new Set(r.series.map(function(e){return e.group})));r.series.forEach(function(e,t){var i=l.indexOf(e.group);o[i]||(o[i]=[]),o[i].push(a.seriesNames[t])}),a.seriesGroups=o;for(var c=function(){for(var e=0;e<n.length;e++)if("string"==typeof n[e]){if(!s.isValidDate(n[e]))throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");t.twoDSeriesX.push(s.parseDate(n[e]))}else t.twoDSeriesX.push(n[e])},d=0;d<e.length;d++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],void 0===e[d].data)return void console.error("It is a possibility that you may have not included 'data' property in series.");if("rangeBar"!==r.chart.type&&"rangeArea"!==r.chart.type&&"rangeBar"!==e[d].type&&"rangeArea"!==e[d].type||(a.isRangeData=!0,this.handleRangeData(e,d)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,d):this.isFormatXY()&&this.handleFormatXY(e,d),"candlestick"!==r.chart.type&&"candlestick"!==e[d].type&&"boxPlot"!==r.chart.type&&"boxPlot"!==e[d].type||this.handleCandleStickBoxData(e,d),a.series.push(this.twoDSeries),a.labels.push(this.twoDSeriesX),a.seriesX.push(this.twoDSeriesX),a.seriesGoals=this.seriesGoals,d!==this.activeSeriesIndex||this.fallbackToCategory||(a.isXNumeric=!0);else{"datetime"===r.xaxis.type?(a.isXNumeric=!0,c(),a.seriesX.push(this.twoDSeriesX)):"numeric"===r.xaxis.type&&(a.isXNumeric=!0,n.length>0&&(this.twoDSeriesX=n,a.seriesX.push(this.twoDSeriesX))),a.labels.push(this.twoDSeriesX);var h=e[d].data.map(function(e){return w.parseNumber(e)});a.series.push(h)}a.seriesZ.push(this.threeDSeries),void 0!==e[d].color?a.seriesColors.push(e[d].color):a.seriesColors.push(void 0)}return this.w}},{key:"parseDataNonAxisCharts",value:function(e){var t=this.w.globals,i=this.w.config,r=Array.isArray(e)&&e.every(function(e){return"number"==typeof e})&&i.labels.length>0,a=Array.isArray(e)&&e.some(function(e){return e&&"object"===y(e)&&e.data||e&&"object"===y(e)&&e.parsing});if(r&&a&&console.warn("ApexCharts: Both old format (numeric series + labels) and new format (series objects with data/parsing) detected. Using old format for backward compatibility."),r){t.series=e.slice(),t.seriesNames=i.labels.slice();for(var s=0;s<t.series.length;s++)void 0===t.seriesNames[s]&&t.seriesNames.push("series-"+(s+1));return this.w}if(Array.isArray(e)&&e.every(function(e){return"number"==typeof e})){t.series=e.slice(),t.seriesNames=[];for(var n=0;n<t.series.length;n++)t.seriesNames.push(i.labels[n]||"series-".concat(n+1));return this.w}var o=this.extractPieDataFromSeries(e);t.series=o.values,t.seriesNames=o.labels,"radialBar"===i.chart.type&&(t.series=t.series.map(function(e){var t=w.parseNumber(e);return t>100&&console.warn("ApexCharts: RadialBar value ".concat(t," > 100, consider using percentage values (0-100)")),t}));for(var l=0;l<t.series.length;l++)void 0===t.seriesNames[l]&&t.seriesNames.push("series-"+(l+1));return this.w}},{key:"resetParsingFlags",value:function(){var e=this.w;e.globals.dataWasParsed=!1,e.globals.originalSeries=null,e.config.series&&e.config.series.forEach(function(e){e.__apexParsed&&delete e.__apexParsed})}},{key:"extractPieDataFromSeries",value:function(e){var t=[],i=[];if(!Array.isArray(e))return console.warn("ApexCharts: Expected array for series data"),{values:[],labels:[]};if(0===e.length)return console.warn("ApexCharts: Empty series array"),{values:[],labels:[]};var r=e[0];return"object"===y(r)&&null!==r&&r.data?(this.extractPieDataFromSeriesObjects(e,t,i),{values:t,labels:i}):(console.warn("ApexCharts: Unsupported series format for pie/donut/radialBar. Expected series objects with data property."),{values:[],labels:[]})}},{key:"extractPieDataFromSeriesObjects",value:function(e,t,i){e.forEach(function(e,r){e.data&&Array.isArray(e.data)?e.data.forEach(function(e){"object"===y(e)&&null!==e?void 0!==e.x&&void 0!==e.y?(i.push(String(e.x)),t.push(w.parseNumber(e.y))):console.warn("ApexCharts: Invalid data point format for pie chart. Expected {x, y} format:",e):console.warn("ApexCharts: Expected object data point, got:",y(e))}):console.warn("ApexCharts: Series ".concat(r," has no valid data array"))})}},{key:"handleExternalLabelsData",value:function(e){var t=this.w.config,i=this.w.globals;t.xaxis.categories.length>0?i.labels=t.xaxis.categories:t.labels.length>0?i.labels=t.labels.slice():this.fallbackToCategory?(i.labels=i.labels[0],i.seriesRange.length&&(i.seriesRange.map(function(e){e.forEach(function(e){i.labels.indexOf(e.x)<0&&e.x&&i.labels.push(e.x)})}),i.labels=Array.from(new Set(i.labels.map(JSON.stringify)),JSON.parse)),t.xaxis.convertedCatToNumeric&&(new Yi(t).convertCatToNumericXaxis(t,this.ctx,i.seriesX[0]),this._generateExternalLabels(e))):this._generateExternalLabels(e)}},{key:"_generateExternalLabels",value:function(e){var t=this.w.globals,i=this.w.config,r=[];if(t.axisCharts){if(t.series.length>0)if(this.isFormatXY())for(var a=i.series.map(function(e,t){return e.data.filter(function(e,t,i){return i.findIndex(function(t){return t.x===e.x})===t})}),s=a.reduce(function(e,t,i,r){return r[e].length>t.length?e:i},0),n=0;n<a[s].length;n++)r.push(n+1);else for(var o=0;o<t.series[t.maxValsInArrayIndex].length;o++)r.push(o+1);t.seriesX=[];for(var l=0;l<e.length;l++)t.seriesX.push(r);this.w.globals.isBarHorizontal||(t.isXNumeric=!0)}if(0===r.length){r=t.axisCharts?[]:t.series.map(function(e,t){return t+1});for(var c=0;c<e.length;c++)t.seriesX.push(r)}t.labels=r,i.xaxis.convertedCatToNumeric&&(t.categoryLabels=r.map(function(e){return i.xaxis.labels.formatter(e)})),t.noLabelsProvided=!0}},{key:"parseRawDataIfNeeded",value:function(e){var t=this,i=this.w.config,r=this.w.globals,a=i.parsing;if(r.dataWasParsed)return e;if(!a&&!e.some(function(e){return e.parsing}))return e;var s=e.map(function(e,i){var r,s,n;if(!e.data||!Array.isArray(e.data)||0===e.data.length)return e;var o={x:(null===(r=e.parsing)||void 0===r?void 0:r.x)||(null==a?void 0:a.x),y:(null===(s=e.parsing)||void 0===s?void 0:s.y)||(null==a?void 0:a.y),z:(null===(n=e.parsing)||void 0===n?void 0:n.z)||(null==a?void 0:a.z)};if(!o.x&&!o.y)return e;var l=e.data[0];if("object"===y(l)&&null!==l&&(l.hasOwnProperty("x")||l.hasOwnProperty("y"))||Array.isArray(l))return e;if(!o.x||!o.y||Array.isArray(o.y)&&0===o.y.length)return console.warn("ApexCharts: Series ".concat(i," has parsing config but missing x or y field specification")),e;var c=e.data.map(function(e,r){if("object"!==y(e)||null===e)return console.warn("ApexCharts: Series ".concat(i,", data point ").concat(r," is not an object, skipping parsing")),e;var a,s=t.getNestedValue(e,o.x),n=void 0;if(Array.isArray(o.y)){var l=o.y.map(function(i){return t.getNestedValue(e,i)});a="bubble"===t.w.config.chart.type&&2===l.length?l[0]:l}else a=t.getNestedValue(e,o.y);o.z&&(n=t.getNestedValue(e,o.z)),void 0===s&&console.warn("ApexCharts: Series ".concat(i,", data point ").concat(r," missing field '").concat(o.x,"'")),void 0===a&&console.warn("ApexCharts: Series ".concat(i,", data point ").concat(r," missing field '").concat(o.y,"'"));var c={x:s,y:a};if("bubble"===t.w.config.chart.type&&Array.isArray(o.y)&&2===o.y.length){var d=t.getNestedValue(e,o.y[1]);void 0!==d&&(c.z=d)}return void 0!==n&&(c.z=n),c});return f(f({},e),{},{data:c,__apexParsed:!0})});return r.dataWasParsed=!0,r.originalSeries||(r.originalSeries=w.clone(e)),s}},{key:"getNestedValue",value:function(e,t){if(e&&"object"===y(e)&&t){if(-1===t.indexOf("."))return e[t];for(var i=t.split("."),r=e,a=0;a<i.length;a++){if(null==r||"object"!==y(r))return;r=r[i[a]]}return r}}},{key:"parseData",value:function(e){var t=this.w,i=t.config,r=t.globals;if(e=this.parseRawDataIfNeeded(e),i.series=e,r.initialSeries=w.clone(e),this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.ctx.core.resetGlobals(),this.ctx.core.isMultipleY(),r.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),i.chart.stacked){var a=new $i(this.ctx);r.series=a.setNullSeriesToZeroValues(r.series)}this.coreUtils.getSeriesTotals(),r.axisCharts&&(r.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),r.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),r.dataFormatXNumeric||r.isXNumeric&&("numeric"!==i.xaxis.type||0!==i.labels.length||0!==i.xaxis.categories.length)||this.handleExternalLabelsData(e);for(var s=this.coreUtils.getCategoryLabels(r.labels),n=0;n<s.length;n++)if(Array.isArray(s[n])){r.isMultiLineX=!0;break}}},{key:"excludeCollapsedSeriesInYAxis",value:function(){var e=this.w,t=[];e.globals.seriesYAxisMap.forEach(function(i,r){var a=0;i.forEach(function(t){-1!==e.globals.collapsedSeriesIndices.indexOf(t)&&a++}),a>0&&a==i.length&&t.push(r)}),e.globals.ignoreYAxisIndexes=t.map(function(e){return e})}}]),e}(),Ji=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"svgStringToNode",value:function(e){return(new DOMParser).parseFromString(e,"image/svg+xml").documentElement}},{key:"scaleSvgNode",value:function(e,t){var i=parseFloat(e.getAttributeNS(null,"width")),r=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",i*t),e.setAttributeNS(null,"height",r*t),e.setAttributeNS(null,"viewBox","0 0 "+i+" "+r)}},{key:"getSvgString",value:function(e){var t=this;return new Promise(function(i){var r=t.w,a=e||r.config.chart.toolbar.export.scale||r.config.chart.toolbar.export.width/r.globals.svgWidth;a||(a=1);var s=r.globals.svgWidth*a,n=r.globals.svgHeight*a,o=r.globals.dom.elWrap.cloneNode(!0);o.style.width=s+"px",o.style.height=n+"px";var l=(new XMLSerializer).serializeToString(o),c="\n        .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {\n          display: none;\n        }\n      ";r.config.legend.show&&r.globals.dom.elLegendWrap&&r.globals.dom.elLegendWrap.children.length>0&&(c+=Zi);var d='\n        <svg xmlns="http://www.w3.org/2000/svg"\n          version="1.1"\n          xmlns:xlink="http://www.w3.org/1999/xlink"\n          class="apexcharts-svg"\n          xmlns:data="ApexChartsNS"\n          transform="translate(0, 0)"\n          width="'.concat(r.globals.svgWidth,'px" height="').concat(r.globals.svgHeight,'px">\n          <foreignObject width="100%" height="100%">\n            <div xmlns="http://www.w3.org/1999/xhtml" style="width:').concat(s,"px; height:").concat(n,'px;">\n            <style type="text/css">\n              ').concat(c,"\n            </style>\n              ").concat(l,"\n            </div>\n          </foreignObject>\n        </svg>\n      "),h=t.svgStringToNode(d);1!==a&&t.scaleSvgNode(h,a),t.convertImagesToBase64(h).then(function(){d=(new XMLSerializer).serializeToString(h),i(d.replace(/&nbsp;/g,"&#160;"))})})}},{key:"convertImagesToBase64",value:function(e){var t=this,i=e.getElementsByTagName("image"),r=Array.from(i).map(function(e){var i=e.getAttributeNS("http://www.w3.org/1999/xlink","href");return i&&!i.startsWith("data:")?t.getBase64FromUrl(i).then(function(t){e.setAttributeNS("http://www.w3.org/1999/xlink","href",t)}).catch(function(e){console.error("Error converting image to base64:",e)}):Promise.resolve()});return Promise.all(r)}},{key:"getBase64FromUrl",value:function(e){return new Promise(function(t,i){var r=new Image;r.crossOrigin="Anonymous",r.onload=function(){var e=document.createElement("canvas");e.width=r.width,e.height=r.height,e.getContext("2d").drawImage(r,0,0),t(e.toDataURL())},r.onerror=i,r.src=e})}},{key:"svgUrl",value:function(){var e=this;return new Promise(function(t){e.getSvgString().then(function(e){var i=new Blob([e],{type:"image/svg+xml;charset=utf-8"});t(URL.createObjectURL(i))})})}},{key:"dataURI",value:function(e){var t=this;return new Promise(function(i){var r=t.w,a=e?e.scale||e.width/r.globals.svgWidth:1,s=document.createElement("canvas");s.width=r.globals.svgWidth*a,s.height=parseInt(r.globals.dom.elWrap.style.height,10)*a;var n="transparent"!==r.config.chart.background&&r.config.chart.background?r.config.chart.background:"#fff",o=s.getContext("2d");o.fillStyle=n,o.fillRect(0,0,s.width*a,s.height*a),t.getSvgString(a).then(function(e){var t="data:image/svg+xml,"+encodeURIComponent(e),r=new Image;r.crossOrigin="anonymous",r.onload=function(){if(o.drawImage(r,0,0),s.msToBlob){var e=s.msToBlob();i({blob:e})}else{var t=s.toDataURL("image/png");i({imgURI:t})}},r.src=t})})}},{key:"exportToSVG",value:function(){var e=this;this.svgUrl().then(function(t){e.triggerDownload(t,e.w.config.chart.toolbar.export.svg.filename,".svg")})}},{key:"exportToPng",value:function(){var e=this,t=this.w.config.chart.toolbar.export.scale,i=this.w.config.chart.toolbar.export.width,r=t?{scale:t}:i?{width:i}:void 0;this.dataURI(r).then(function(t){var i=t.imgURI,r=t.blob;r?navigator.msSaveOrOpenBlob(r,e.w.globals.chartID+".png"):e.triggerDownload(i,e.w.config.chart.toolbar.export.png.filename,".png")})}},{key:"exportToCSV",value:function(e){var t=this,i=e.series,r=e.fileName,a=e.columnDelimiter,s=void 0===a?",":a,n=e.lineDelimiter,o=void 0===n?"\n":n,l=this.w;i||(i=l.config.series);var c=[],d=[],h="",u=l.globals.series.map(function(e,t){return-1===l.globals.collapsedSeriesIndices.indexOf(t)?e:[]}),g=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.categoryFormatter?l.config.chart.toolbar.export.csv.categoryFormatter(e):"datetime"===l.config.xaxis.type&&String(e).length>=10?new Date(e).toDateString():w.isNumber(e)?e:e.split(s).join("")},p=function(e){return"function"==typeof l.config.chart.toolbar.export.csv.valueFormatter?l.config.chart.toolbar.export.csv.valueFormatter(e):e},f=Math.max.apply(Math,x(i.map(function(e){return e.data?e.data.length:0}))),b=new Qi(this.ctx),m=new Ii(this.ctx),v=function(e){var i="";if(l.globals.axisCharts){if("category"===l.config.xaxis.type||l.config.xaxis.convertedCatToNumeric)if(l.globals.isBarHorizontal){var r=l.globals.yLabelFormatters[0],a=new $i(t.ctx).getActiveConfigSeriesIndex();i=r(l.globals.labels[e],{seriesIndex:a,dataPointIndex:e,w:l})}else i=m.getLabel(l.globals.labels,l.globals.timescaleLabels,0,e).text;"datetime"===l.config.xaxis.type&&(l.config.xaxis.categories.length?i=l.config.xaxis.categories[e]:l.config.labels.length&&(i=l.config.labels[e]))}else i=l.config.labels[e];return null===i?"nullvalue":(Array.isArray(i)&&(i=i.join(" ")),w.isNumber(i)?i:i.split(s).join(""))};c.push(l.config.chart.toolbar.export.csv.headerCategory),"boxPlot"===l.config.chart.type?(c.push("minimum"),c.push("q1"),c.push("median"),c.push("q3"),c.push("maximum")):"candlestick"===l.config.chart.type?(c.push("open"),c.push("high"),c.push("low"),c.push("close")):"rangeBar"===l.config.chart.type?(c.push("minimum"),c.push("maximum")):i.map(function(e,t){var i=(e.name?e.name:"series-".concat(t))+"";l.globals.axisCharts&&c.push(i.split(s).join("")?i.split(s).join(""):"series-".concat(t))}),l.globals.axisCharts||(c.push(l.config.chart.toolbar.export.csv.headerValue),d.push(c.join(s))),l.globals.allSeriesHasEqualX||!l.globals.axisCharts||l.config.xaxis.categories.length||l.config.labels.length?i.map(function(e,t){l.globals.axisCharts?function(e,t){if(c.length&&0===t&&d.push(c.join(s)),e.data){e.data=e.data.length&&e.data||x(Array(f)).map(function(){return""});for(var r=0;r<e.data.length;r++){c=[];var a=v(r);if("nullvalue"!==a){if(a||(b.isFormatXY()?a=i[t].data[r].x:b.isFormat2DArray()&&(a=i[t].data[r]?i[t].data[r][0]:"")),0===t){c.push(g(a));for(var n=0;n<l.globals.series.length;n++){var o,h=b.isFormatXY()?null===(o=i[n].data[r])||void 0===o?void 0:o.y:u[n][r];c.push(p(h))}}("candlestick"===l.config.chart.type||e.type&&"candlestick"===e.type)&&(c.pop(),c.push(l.globals.seriesCandleO[t][r]),c.push(l.globals.seriesCandleH[t][r]),c.push(l.globals.seriesCandleL[t][r]),c.push(l.globals.seriesCandleC[t][r])),("boxPlot"===l.config.chart.type||e.type&&"boxPlot"===e.type)&&(c.pop(),c.push(l.globals.seriesCandleO[t][r]),c.push(l.globals.seriesCandleH[t][r]),c.push(l.globals.seriesCandleM[t][r]),c.push(l.globals.seriesCandleL[t][r]),c.push(l.globals.seriesCandleC[t][r])),"rangeBar"===l.config.chart.type&&(c.pop(),c.push(l.globals.seriesRangeStart[t][r]),c.push(l.globals.seriesRangeEnd[t][r])),c.length&&d.push(c.join(s))}}}}(e,t):((c=[]).push(g(l.globals.labels[t])),c.push(p(u[t])),d.push(c.join(s)))}):function(){var e=new Set,t={};i.forEach(function(r,a){null==r||r.data.forEach(function(r){var s,n;if(b.isFormatXY())s=r.x,n=r.y;else{if(!b.isFormat2DArray())return;s=r[0],n=r[1]}t[s]||(t[s]=Array(i.length).fill("")),t[s][a]=p(n),e.add(s)})}),c.length&&d.push(c.join(s)),Array.from(e).sort().forEach(function(e){d.push([g(e),t[e].join(s)])})}(),h+=d.join(o),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent("\ufeff"+h),r||l.config.chart.toolbar.export.csv.filename,".csv")}},{key:"triggerDownload",value:function(e,t,i){var r=document.createElement("a");r.href=e,r.download=(t||this.w.globals.chartID)+i,document.body.appendChild(r),r.click(),document.body.removeChild(r)}}]),e}(),Ki=function(){function e(t,i){s(this,e),this.ctx=t,this.elgrid=i,this.w=t.w;var r=this.w;this.axesUtils=new Ii(t),this.xaxisLabels=r.globals.labels.slice(),r.globals.timescaleLabels.length>0&&!r.globals.isBarHorizontal&&(this.xaxisLabels=r.globals.timescaleLabels.slice()),r.config.xaxis.overwriteCategories&&(this.xaxisLabels=r.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],"top"===r.config.xaxis.position?this.offY=0:this.offY=r.globals.gridHeight,this.offY=this.offY+r.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.xaxisBorderWidth=r.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=r.config.yaxis[0].axisBorder.width.toString()),String(this.xaxisBorderWidth).indexOf("%")>-1?this.xaxisBorderWidth=r.globals.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=r.config.xaxis.axisBorder.height,this.yaxis=r.config.yaxis[0]}return o(e,[{key:"drawXaxis",value:function(){var e=this.w,t=new Di(this.ctx),i=t.group({class:"apexcharts-xaxis",transform:"translate(".concat(e.config.xaxis.offsetX,", ").concat(e.config.xaxis.offsetY,")")}),r=t.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(e.globals.translateXAxisX,", ").concat(e.globals.translateXAxisY,")")});i.add(r);for(var a=[],s=0;s<this.xaxisLabels.length;s++)a.push(this.xaxisLabels[s]);if(this.drawXAxisLabelAndGroup(!0,t,r,a,e.globals.isXNumeric,function(e,t){return t}),e.globals.hasXaxisGroups){var n=e.globals.groups;a=[];for(var o=0;o<n.length;o++)a.push(n[o].title);var l={};e.config.xaxis.group.style&&(l.xaxisFontSize=e.config.xaxis.group.style.fontSize,l.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,l.xaxisForeColors=e.config.xaxis.group.style.colors,l.fontWeight=e.config.xaxis.group.style.fontWeight,l.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,r,a,!1,function(e,t){return n[e].cols*t},l)}if(void 0!==e.config.xaxis.title.text){var c=t.group({class:"apexcharts-xaxis-title"}),d=t.drawText({x:e.globals.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+("bottom"===e.config.xaxis.position?e.globals.xAxisLabelsHeight:-e.globals.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});c.add(d),i.add(c)}if(e.config.xaxis.axisBorder.show){var h=e.globals.barPadForNumericAxis,u=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-h,this.offY,this.xaxisBorderWidth+h,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(u):i.add(u)}return i}},{key:"drawXAxisLabelAndGroup",value:function(e,t,i,r,a,s){var n,o=this,l=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},c=[],d=[],h=this.w,u=l.xaxisFontSize||this.xaxisFontSize,g=l.xaxisFontFamily||this.xaxisFontFamily,p=l.xaxisForeColors||this.xaxisForeColors,f=l.fontWeight||h.config.xaxis.labels.style.fontWeight,b=l.cssClass||h.config.xaxis.labels.style.cssClass,m=h.globals.padHorizontal,x=r.length,v="category"===h.config.xaxis.type?h.globals.dataPoints:x;if(0===v&&x>v&&(v=x),a){var y=Math.max(Number(h.config.xaxis.tickAmount)||1,v>1?v-1:v);n=h.globals.gridWidth/Math.min(y,x-1),m=m+s(0,n)/2+h.config.xaxis.labels.offsetX}else n=h.globals.gridWidth/v,m=m+s(0,n)+h.config.xaxis.labels.offsetX;for(var A=function(a){var l=m-s(a,n)/2+h.config.xaxis.labels.offsetX;0===a&&1===x&&n/2===m&&1===v&&(l=h.globals.gridWidth/2);var y=o.axesUtils.getLabel(r,h.globals.timescaleLabels,l,a,c,u,e),A=28;if(h.globals.rotateXLabels&&e&&(A=22),h.config.xaxis.title.text&&"top"===h.config.xaxis.position&&(A+=parseFloat(h.config.xaxis.title.style.fontSize)+2),e||(A=A+parseFloat(u)+(h.globals.xAxisLabelsHeight-h.globals.xAxisGroupLabelsHeight)+(h.globals.rotateXLabels?10:0)),y=void 0!==h.config.xaxis.tickAmount&&"dataPoints"!==h.config.xaxis.tickAmount&&"datetime"!==h.config.xaxis.type?o.axesUtils.checkLabelBasedOnTickamount(a,y,x):o.axesUtils.checkForOverflowingLabels(a,y,x,c,d),h.config.xaxis.labels.show){var w=t.drawText({x:y.x,y:o.offY+h.config.xaxis.labels.offsetY+A-("top"===h.config.xaxis.position?h.globals.xAxisHeight+h.config.xaxis.axisTicks.height-2:0),text:y.text,textAnchor:"middle",fontWeight:y.isBold?600:f,fontSize:u,fontFamily:g,foreColor:Array.isArray(p)?e&&h.config.xaxis.convertedCatToNumeric?p[h.globals.minX+a-1]:p[a]:p,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+b});if(i.add(w),w.on("click",function(e){if("function"==typeof h.config.chart.events.xAxisLabelClick){var t=Object.assign({},h,{labelIndex:a});h.config.chart.events.xAxisLabelClick(e,o.ctx,t)}}),e){var k=document.createElementNS(h.globals.SVGNS,"title");k.textContent=Array.isArray(y.text)?y.text.join(" "):y.text,w.node.appendChild(k),""!==y.text&&(c.push(y.text),d.push(y))}}a<x-1&&(m+=s(a+1,n))},w=0;w<=x-1;w++)A(w)}},{key:"drawXaxisInversed",value:function(e){var t,i,r=this,a=this.w,s=new Di(this.ctx),n=a.config.yaxis[0].opposite?a.globals.translateYAxisX[e]:0,o=s.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),l=s.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+n+", 0)"});o.add(l);var c=[];if(a.config.yaxis[e].show)for(var d=0;d<this.xaxisLabels.length;d++)c.push(this.xaxisLabels[d]);t=a.globals.gridHeight/c.length,i=-t/2.2;var h=a.globals.yLabelFormatters[0],u=a.config.yaxis[0].labels;if(u.show)for(var g=function(n){var o=void 0===c[n]?"":c[n];o=h(o,{seriesIndex:e,dataPointIndex:n,w:a});var d=r.axesUtils.getYAxisForeColor(u.style.colors,e),g=0;Array.isArray(o)&&(g=o.length/2*parseInt(u.style.fontSize,10));var p=u.offsetX-15,f="end";r.yaxis.opposite&&(f="start"),"left"===a.config.yaxis[0].labels.align?(p=u.offsetX,f="start"):"center"===a.config.yaxis[0].labels.align?(p=u.offsetX,f="middle"):"right"===a.config.yaxis[0].labels.align&&(f="end");var b=s.drawText({x:p,y:i+t+u.offsetY-g,text:o,textAnchor:f,foreColor:Array.isArray(d)?d[n]:d,fontSize:u.style.fontSize,fontFamily:u.style.fontFamily,fontWeight:u.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+u.style.cssClass,maxWidth:u.maxWidth});l.add(b),b.on("click",function(e){if("function"==typeof a.config.chart.events.xAxisLabelClick){var t=Object.assign({},a,{labelIndex:n});a.config.chart.events.xAxisLabelClick(e,r.ctx,t)}});var m=document.createElementNS(a.globals.SVGNS,"title");if(m.textContent=Array.isArray(o)?o.join(" "):o,b.node.appendChild(m),0!==a.config.yaxis[e].labels.rotate){var x=s.rotateAroundCenter(b.node);b.node.setAttribute("transform","rotate(".concat(a.config.yaxis[e].labels.rotate," 0 ").concat(x.y,")"))}i+=t},p=0;p<=c.length-1;p++)g(p);if(void 0!==a.config.yaxis[0].title.text){var f=s.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+n+", 0)"}),b=s.drawText({x:a.config.yaxis[0].title.offsetX,y:a.globals.gridHeight/2+a.config.yaxis[0].title.offsetY,text:a.config.yaxis[0].title.text,textAnchor:"middle",foreColor:a.config.yaxis[0].title.style.color,fontSize:a.config.yaxis[0].title.style.fontSize,fontWeight:a.config.yaxis[0].title.style.fontWeight,fontFamily:a.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+a.config.yaxis[0].title.style.cssClass});f.add(b),o.add(f)}var m=0;this.isCategoryBarHorizontal&&a.config.yaxis[0].opposite&&(m=a.globals.gridWidth);var x=a.config.xaxis.axisBorder;if(x.show){var v=s.drawLine(a.globals.padHorizontal+x.offsetX+m,1+x.offsetY,a.globals.padHorizontal+x.offsetX+m,a.globals.gridHeight+x.offsetY,x.color,0);this.elgrid&&this.elgrid.elGridBorders&&a.config.grid.show?this.elgrid.elGridBorders.add(v):o.add(v)}return a.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(m,c.length,a.config.yaxis[0].axisBorder,a.config.yaxis[0].axisTicks,0,t,o),o}},{key:"drawXaxisTicks",value:function(e,t,i){var r=this.w,a=e;if(!(e<0||e-2>r.globals.gridWidth)){var s=this.offY+r.config.xaxis.axisTicks.offsetY;if(t=t+s+r.config.xaxis.axisTicks.height,"top"===r.config.xaxis.position&&(t=s-r.config.xaxis.axisTicks.height),r.config.xaxis.axisTicks.show){var n=new Di(this.ctx).drawLine(e+r.config.xaxis.axisTicks.offsetX,s+r.config.xaxis.offsetY,a+r.config.xaxis.axisTicks.offsetX,t+r.config.xaxis.offsetY,r.config.xaxis.axisTicks.color);i.add(n),n.node.classList.add("apexcharts-xaxis-tick")}}}},{key:"getXAxisTicksPositions",value:function(){var e=this.w,t=[],i=this.xaxisLabels.length,r=e.globals.padHorizontal;if(e.globals.timescaleLabels.length>0)for(var a=0;a<i;a++)r=this.xaxisLabels[a].position,t.push(r);else for(var s=i,n=0;n<s;n++){var o=s;e.globals.isXNumeric&&"bar"!==e.config.chart.type&&(o-=1),r+=e.globals.gridWidth/o,t.push(r)}return t}},{key:"xAxisLabelCorrections",value:function(){var e=this.w,t=new Di(this.ctx),i=e.globals.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),a=e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),s=e.globals.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(e.globals.rotateXLabels||e.config.xaxis.labels.rotateAlways)for(var n=0;n<r.length;n++){var o=t.rotateAroundCenter(r[n]);o.y=o.y-1,o.x=o.x+1,r[n].setAttribute("transform","rotate(".concat(e.config.xaxis.labels.rotate," ").concat(o.x," ").concat(o.y,")")),r[n].setAttribute("text-anchor","end"),i.setAttribute("transform","translate(0, ".concat(-10,")"));var l=r[n].childNodes;e.config.xaxis.labels.trim&&Array.prototype.forEach.call(l,function(i){t.placeTextWithEllipsis(i,i.textContent,e.globals.xAxisLabelsHeight-("bottom"===e.config.legend.position?20:10))})}else!function(){for(var i=e.globals.gridWidth/(e.globals.labels.length+1),a=0;a<r.length;a++){var s=r[a].childNodes;e.config.xaxis.labels.trim&&"datetime"!==e.config.xaxis.type&&Array.prototype.forEach.call(s,function(e){t.placeTextWithEllipsis(e,e.textContent,i)})}}();if(a.length>0){var c=a[a.length-1].getBBox(),d=a[0].getBBox();c.x<-20&&a[a.length-1].parentNode.removeChild(a[a.length-1]),d.x+d.width>e.globals.gridWidth&&!e.globals.isBarHorizontal&&a[0].parentNode.removeChild(a[0]);for(var h=0;h<s.length;h++)t.placeTextWithEllipsis(s[h],s[h].textContent,e.config.yaxis[0].labels.maxWidth-(e.config.yaxis[0].title.text?2*parseFloat(e.config.yaxis[0].title.style.fontSize):0)-15)}}}]),e}(),er=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.xaxisLabels=i.globals.labels.slice(),this.axesUtils=new Ii(t),this.isRangeBar=i.globals.seriesRange.length&&i.globals.isBarHorizontal,i.globals.timescaleLabels.length>0&&(this.xaxisLabels=i.globals.timescaleLabels.slice())}return o(e,[{key:"drawGridArea",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.w,i=new Di(this.ctx);e||(e=i.group({class:"apexcharts-grid"}));var r=i.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.globals.gridHeight,"transparent"),a=i.drawLine(t.globals.padHorizontal,t.globals.gridHeight,t.globals.gridWidth,t.globals.gridHeight,"transparent");return e.add(a),e.add(r),e}},{key:"drawGrid",value:function(){if(this.w.globals.axisCharts){var e=this.renderGrid();return this.drawGridArea(e.el),e}return null}},{key:"createGridMask",value:function(){var e=this.w,t=e.globals,i=new Di(this.ctx),r=Array.isArray(e.config.stroke.width)?Math.max.apply(Math,x(e.config.stroke.width)):e.config.stroke.width,a=function(e){var i=document.createElementNS(t.SVGNS,"clipPath");return i.setAttribute("id",e),i};t.dom.elGridRectMask=a("gridRectMask".concat(t.cuid)),t.dom.elGridRectBarMask=a("gridRectBarMask".concat(t.cuid)),t.dom.elGridRectMarkerMask=a("gridRectMarkerMask".concat(t.cuid)),t.dom.elForecastMask=a("forecastMask".concat(t.cuid)),t.dom.elNonForecastMask=a("nonForecastMask".concat(t.cuid));var s=0,n=0;(["bar","rangeBar","candlestick","boxPlot"].includes(e.config.chart.type)||e.globals.comboBarCount>0)&&e.globals.isXNumeric&&!e.globals.isBarHorizontal&&(s=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),n=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),t.dom.elGridRect=i.drawRect(-r/2-2,-r/2-2,t.gridWidth+r+4,t.gridHeight+r+4,0,"#fff"),t.dom.elGridRectBar=i.drawRect(-r/2-s-2,-r/2-2,t.gridWidth+r+n+s+4,t.gridHeight+r+4,0,"#fff");var o=e.globals.markers.largestSize;t.dom.elGridRectMarker=i.drawRect(Math.min(-r/2-s-2,-o),-o,t.gridWidth+Math.max(r+n+s+4,2*o),t.gridHeight+2*o,0,"#fff"),t.dom.elGridRectMask.appendChild(t.dom.elGridRect.node),t.dom.elGridRectBarMask.appendChild(t.dom.elGridRectBar.node),t.dom.elGridRectMarkerMask.appendChild(t.dom.elGridRectMarker.node);var l=t.dom.baseEl.querySelector("defs");l.appendChild(t.dom.elGridRectMask),l.appendChild(t.dom.elGridRectBarMask),l.appendChild(t.dom.elGridRectMarkerMask),l.appendChild(t.dom.elForecastMask),l.appendChild(t.dom.elNonForecastMask)}},{key:"_drawGridLines",value:function(e){var t=e.i,i=e.x1,r=e.y1,a=e.x2,s=e.y2,n=e.xCount,o=e.parent,l=this.w;if(!(0===t&&l.globals.skipFirstTimelinelabel||t===n-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||"radar"===l.config.chart.type)){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:t,x1:i,y1:r,x2:a,y2:s,xCount:n,parent:o});var c=0;if(l.globals.hasXaxisGroups&&"between"===l.config.xaxis.tickPlacement){var d=l.globals.groups;if(d){for(var h=0,u=0;h<t&&u<d.length;u++)h+=d[u].cols;h===t&&(c=.6*l.globals.xAxisLabelsHeight)}}new Ki(this.ctx).drawXaxisTicks(i,c,l.globals.dom.elGraphical)}}},{key:"_drawGridLine",value:function(e){var t=e.i,i=e.x1,r=e.y1,a=e.x2,s=e.y2,n=e.xCount,o=e.parent,l=this.w,c=o.node.classList.contains("apexcharts-gridlines-horizontal"),d=l.globals.barPadForNumericAxis,h=0===r&&0===s||0===i&&0===a||r===l.globals.gridHeight&&s===l.globals.gridHeight||l.globals.isBarHorizontal&&(0===t||t===n-1),u=new Di(this).drawLine(i-(c?d:0),r,a+(c?d:0),s,l.config.grid.borderColor,l.config.grid.strokeDashArray);u.node.classList.add("apexcharts-gridline"),h&&l.config.grid.show?this.elGridBorders.add(u):o.add(u)}},{key:"_drawGridBandRect",value:function(e){var t=e.c,i=e.x1,r=e.y1,a=e.x2,s=e.y2,n=e.type,o=this.w,l=new Di(this.ctx),c=o.globals.barPadForNumericAxis,d=o.config.grid[n].colors[t],h=l.drawRect(i-("row"===n?c:0),r,a+("row"===n?2*c:0),s,0,d,o.config.grid[n].opacity);this.elg.add(h),h.attr("clip-path","url(#gridRectMask".concat(o.globals.cuid,")")),h.node.classList.add("apexcharts-grid-".concat(n))}},{key:"_drawXYLines",value:function(e){var t=this,i=e.xCount,r=e.tickAmount,a=this.w;if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){var s,n=a.globals.padHorizontal,o=a.globals.gridHeight;a.globals.timescaleLabels.length?function(e){for(var r=e.xC,a=e.x1,s=e.y1,n=e.x2,o=e.y2,l=0;l<r;l++)a=t.xaxisLabels[l].position,n=t.xaxisLabels[l].position,t._drawGridLines({i:l,x1:a,y1:s,x2:n,y2:o,xCount:i,parent:t.elgridLinesV})}({xC:i,x1:n,y1:0,x2:s,y2:o}):(a.globals.isXNumeric&&(i=a.globals.xAxisScale.result.length),function(e){for(var r=e.xC,s=e.x1,n=e.y1,o=e.x2,l=e.y2,c=0;c<r+(a.globals.isXNumeric?0:1);c++)0===c&&1===r&&1===a.globals.dataPoints&&(o=s=a.globals.gridWidth/2),t._drawGridLines({i:c,x1:s,y1:n,x2:o,y2:l,xCount:i,parent:t.elgridLinesV}),o=s+=a.globals.gridWidth/(a.globals.isXNumeric?r-1:r)}({xC:i,x1:n,y1:0,x2:s,y2:o}))}if(a.config.grid.yaxis.lines.show){var l=0,c=0,d=a.globals.gridWidth,h=r+1;this.isRangeBar&&(h=a.globals.labels.length);for(var u=0;u<h+(this.isRangeBar?1:0);u++)this._drawGridLine({i:u,xCount:h+(this.isRangeBar?1:0),x1:0,y1:l,x2:d,y2:c,parent:this.elgridLinesH}),c=l+=a.globals.gridHeight/(this.isRangeBar?h:r)}}},{key:"_drawInvertedXYLines",value:function(e){var t=e.xCount,i=this.w;if(i.config.grid.xaxis.lines.show||i.config.xaxis.axisTicks.show)for(var r,a=i.globals.padHorizontal,s=i.globals.gridHeight,n=0;n<t+1;n++)i.config.grid.xaxis.lines.show&&this._drawGridLine({i:n,xCount:t+1,x1:a,y1:0,x2:r,y2:s,parent:this.elgridLinesV}),new Ki(this.ctx).drawXaxisTicks(a,0,i.globals.dom.elGraphical),r=a+=i.globals.gridWidth/t;if(i.config.grid.yaxis.lines.show)for(var o=0,l=0,c=i.globals.gridWidth,d=0;d<i.globals.dataPoints+1;d++)this._drawGridLine({i:d,xCount:i.globals.dataPoints+1,x1:0,y1:o,x2:c,y2:l,parent:this.elgridLinesH}),l=o+=i.globals.gridHeight/i.globals.dataPoints}},{key:"renderGrid",value:function(){var e=this.w,t=e.globals,i=new Di(this.ctx);this.elg=i.group({class:"apexcharts-grid"}),this.elgridLinesH=i.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=i.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=i.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),e.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());for(var r=0;r<t.seriesYAxisMap.length&&t.ignoreYAxisIndexes.includes(r);)r++;r===t.seriesYAxisMap.length&&(r=0);var a,s,n,o,l=t.yAxisScale[r].result.length-1;return!t.isBarHorizontal||this.isRangeBar?(a=this.xaxisLabels.length,this.isRangeBar&&(l=t.labels.length,e.config.xaxis.tickAmount&&e.config.xaxis.labels.formatter&&(a=e.config.xaxis.tickAmount),(null===(s=t.yAxisScale)||void 0===s||null===(n=s[r])||void 0===n||null===(o=n.result)||void 0===o?void 0:o.length)>0&&"datetime"!==e.config.xaxis.type&&(a=t.yAxisScale[r].result.length-1)),this._drawXYLines({xCount:a,tickAmount:l})):(a=l,l=t.xTickAmount,this._drawInvertedXYLines({xCount:a,tickAmount:l})),this.drawGridBands(a,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:t.gridWidth/a}}},{key:"drawGridBands",value:function(e,t){var i,r,a=this,s=this.w;if((null===(i=s.config.grid.row.colors)||void 0===i?void 0:i.length)>0&&function(e,i,r,n,o,l){for(var c=0,d=0;c<i;c++,d++)d>=s.config.grid.row.colors.length&&(d=0),a._drawGridBandRect({c:d,x1:0,y1:n,x2:o,y2:l,type:"row"}),n+=s.globals.gridHeight/t}(0,t,0,0,s.globals.gridWidth,s.globals.gridHeight/t),(null===(r=s.config.grid.column.colors)||void 0===r?void 0:r.length)>0){var n=s.globals.isBarHorizontal||"on"!==s.config.xaxis.tickPlacement||"category"!==s.config.xaxis.type&&!s.config.xaxis.convertedCatToNumeric?e:e-1;s.globals.isXNumeric&&(n=s.globals.xAxisScale.result.length-1);for(var o=s.globals.padHorizontal,l=s.globals.padHorizontal+s.globals.gridWidth/n,c=s.globals.gridHeight,d=0,h=0;d<e;d++,h++){var u;h>=s.config.grid.column.colors.length&&(h=0),"datetime"===s.config.xaxis.type&&(o=this.xaxisLabels[d].position,l=((null===(u=this.xaxisLabels[d+1])||void 0===u?void 0:u.position)||s.globals.gridWidth)-this.xaxisLabels[d].position),this._drawGridBandRect({c:h,x1:o,y1:0,x2:l,y2:c,type:"column"}),o+=s.globals.gridWidth/n}}}}]),e}(),tr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.coreUtils=new Bi(this.ctx)}return o(e,[{key:"niceScale",value:function(e,t){var i,r,a,s,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=1e-11,l=this.w,c=l.globals;c.isBarHorizontal?(i=l.config.xaxis,r=Math.max((c.svgWidth-100)/25,2)):(i=l.config.yaxis[n],r=Math.max((c.svgHeight-100)/15,2)),w.isNumber(r)||(r=10),a=void 0!==i.min&&null!==i.min,s=void 0!==i.max&&null!==i.min;var d=void 0!==i.stepSize&&null!==i.stepSize,h=void 0!==i.tickAmount&&null!==i.tickAmount,u=h?i.tickAmount:c.niceScaleDefaultTicks[Math.min(Math.round(r/2),c.niceScaleDefaultTicks.length-1)];if(c.isMultipleYAxis&&!h&&c.multiAxisTickAmount>0&&(u=c.multiAxisTickAmount,h=!0),u="dataPoints"===u?c.dataPoints-1:Math.abs(Math.round(u)),(e===Number.MIN_VALUE&&0===t||!w.isNumber(e)&&!w.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=w.isNumber(i.min)?i.min:0,t=w.isNumber(i.max)?i.max:e+u,c.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");var g=t;t=e,e=g}else e===t&&(e=0===e?0:e-1,t=0===t?2:t+1);var p=[];u<1&&(u=1);var f=u,b=Math.abs(t-e);!a&&e>0&&e/b<.15&&(e=0,a=!0),!s&&t<0&&-t/b<.15&&(t=0,s=!0);var m=(b=Math.abs(t-e))/f,x=m,v=Math.floor(Math.log10(x)),y=Math.pow(10,v),A=Math.ceil(x/y);if(m=x=(A=c.niceScaleAllowedMagMsd[0===c.yValueDecimal?0:1][A])*y,c.isBarHorizontal&&i.stepSize&&"datetime"!==i.type?(m=i.stepSize,d=!0):d&&(m=i.stepSize),d&&i.forceNiceScale){var k=Math.floor(Math.log10(m));m*=Math.pow(10,v-k)}if(a&&s){var C=b/f;if(h)if(d)if(0!=w.mod(b,m)){var S=w.getGCD(m,C);m=C/S<10?S:C}else 0==w.mod(m,C)?m=C:(C=m,h=!1);else m=C;else if(d)0==w.mod(b,m)?C=m:m=C;else if(0==w.mod(b,m))C=m;else{C=b/(f=Math.ceil(b/m));var E=w.getGCD(b,m);b/E<r&&(C=E),m=C}f=Math.round(b/m)}else{if(a||s){if(s)if(h)e=t-m*f;else{var D=e;e=m*Math.floor(e/m),Math.abs(t-e)/w.getGCD(b,m)>r&&(e=t-m*u,e+=m*Math.floor((D-e)/m))}else if(a)if(h)t=e+m*f;else{var B=t;t=m*Math.ceil(t/m),Math.abs(t-e)/w.getGCD(b,m)>r&&(t=e+m*u,t+=m*Math.ceil((B-t)/m))}}else if(c.isMultipleYAxis&&h){var L=m*Math.floor(e/m),T=L+m*f;T<t&&(m*=2),T=t,t=(e=L)+m*f,b=Math.abs(t-e),e>0&&e<Math.abs(T-t)&&(e=0,t=m*f),t<0&&-t<Math.abs(L-e)&&(t=0,e=-m*f)}else e=m*Math.floor(e/m),t=m*Math.ceil(t/m);b=Math.abs(t-e),m=w.getGCD(b,m),f=Math.round(b/m)}if(h||a||s||(f=Math.ceil((b-o)/(m+o)))>16&&w.getPrimeFactors(f).length<2&&f++,!h&&i.forceNiceScale&&0===c.yValueDecimal&&f>b&&(f=b,m=Math.round(b/f)),f>r&&(!h&&!d||i.forceNiceScale)){var P=w.getPrimeFactors(f),M=P.length-1,I=f;e:for(var R=0;R<M;R++)for(var z=0;z<=M-R;z++){for(var O=Math.min(z+R,M),N=I,H=1,F=z;F<=O;F++)H*=P[F];if((N/=H)<r){I=N;break e}}m=I===f?b:b/I,f=Math.round(b/m)}c.isMultipleYAxis&&0==c.multiAxisTickAmount&&c.ignoreYAxisIndexes.indexOf(n)<0&&(c.multiAxisTickAmount=f);var _=e-m,Y=m*o;do{_+=m,p.push(w.stripNumber(_,7))}while(t-_>Y);return{result:p,niceMin:p[0],niceMax:p[p.length-1]}}},{key:"linearScale",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0,s=Math.abs(t-e),n=[];if(e===t)return{result:n=[e],niceMin:n[0],niceMax:n[n.length-1]};"dataPoints"===(i=this._adjustTicksForSmallRange(i,r,s))&&(i=this.w.globals.dataPoints-1),a||(a=s/i),a=Math.round(100*(a+Number.EPSILON))/100,i===Number.MAX_VALUE&&(i=5,a=1);for(var o=e;i>=0;)n.push(o),o=w.preciseAddition(o,a),i-=1;return{result:n,niceMin:n[0],niceMax:n[n.length-1]}}},{key:"logarithmicScaleNice",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var r=[],a=Math.ceil(Math.log(t)/Math.log(i)+1),s=Math.floor(Math.log(e)/Math.log(i));s<a;s++)r.push(Math.pow(i,s));return{result:r,niceMin:r[0],niceMax:r[r.length-1]}}},{key:"logarithmicScale",value:function(e,t,i){t<=0&&(t=Math.max(e,i)),e<=0&&(e=Math.min(t,i));for(var r=[],a=Math.log(t)/Math.log(i),s=Math.log(e)/Math.log(i),n=a-s,o=Math.round(n),l=n/o,c=0,d=s;c<o;c++,d+=l)r.push(Math.pow(i,d));return r.push(Math.pow(i,a)),{result:r,niceMin:e,niceMax:t}}},{key:"_adjustTicksForSmallRange",value:function(e,t,i){var r=e;if(void 0!==t&&this.w.config.yaxis[t].labels.formatter&&void 0===this.w.config.yaxis[t].tickAmount){var a=Number(this.w.config.yaxis[t].labels.formatter(1));w.isNumber(a)&&0===this.w.globals.yValueDecimal&&(r=Math.ceil(i))}return r<e?r:e}},{key:"setYScaleForIndex",value:function(e,t,i){var r=this.w.globals,a=this.w.config,s=r.isBarHorizontal?a.xaxis:a.yaxis[e];void 0===r.yAxisScale[e]&&(r.yAxisScale[e]=[]);var n=Math.abs(i-t);s.logarithmic&&n<=5&&(r.invalidLogScale=!0),s.logarithmic&&n>5?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=s.forceNiceScale?this.logarithmicScaleNice(t,i,s.logBase):this.logarithmicScale(t,i,s.logBase)):i!==-Number.MAX_VALUE&&w.isNumber(i)&&t!==Number.MAX_VALUE&&w.isNumber(t)?(r.allSeriesCollapsed=!1,r.yAxisScale[e]=this.niceScale(t,i,e)):r.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e)}},{key:"setXScale",value:function(e,t){var i=this.w,r=i.globals;if(t!==-Number.MAX_VALUE&&w.isNumber(t)){var a=r.xTickAmount;r.xAxisScale=this.linearScale(e,t,a,0,void 0===i.config.xaxis.max?i.config.xaxis.stepSize:void 0)}else r.xAxisScale=this.linearScale(0,10,10);return r.xAxisScale}},{key:"scaleMultipleYAxes",value:function(){var e=this,t=this.w.config,i=this.w.globals;this.coreUtils.setSeriesYAxisMappings();var r=i.seriesYAxisMap,a=i.minYArr,s=i.maxYArr;i.allSeriesCollapsed=!0,i.barGroups=[],r.forEach(function(r,n){var o=[];r.forEach(function(e){var i,r=null===(i=t.series[e])||void 0===i?void 0:i.group;o.indexOf(r)<0&&o.push(r)}),r.length>0?function(){var l,c,d=Number.MAX_VALUE,h=-Number.MAX_VALUE,u=d,g=h;if(t.chart.stacked)!function(){var e=new Array(i.dataPoints).fill(0),a=[],s=[],p=[];o.forEach(function(){a.push(e.map(function(){return Number.MIN_VALUE})),s.push(e.map(function(){return Number.MIN_VALUE})),p.push(e.map(function(){return Number.MIN_VALUE}))});for(var f=function(e){!l&&t.series[r[e]].type&&(l=t.series[r[e]].type);var d=r[e];c=t.series[d].group?t.series[d].group:"axis-".concat(n),!(i.collapsedSeriesIndices.indexOf(d)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(d)<0)||(i.allSeriesCollapsed=!1,o.forEach(function(e,r){if(t.series[d].group===e)for(var n=0;n<i.series[d].length;n++){var o=i.series[d][n];o>=0?s[r][n]+=o:p[r][n]+=o,a[r][n]+=o,u=Math.min(u,o),g=Math.max(g,o)}})),"bar"!==l&&"column"!==l||i.barGroups.push(c)},b=0;b<r.length;b++)f(b);l||(l=t.chart.type),"bar"===l||"column"===l?o.forEach(function(e,t){d=Math.min(d,Math.min.apply(null,p[t])),h=Math.max(h,Math.max.apply(null,s[t]))}):(o.forEach(function(e,t){u=Math.min(u,Math.min.apply(null,a[t])),g=Math.max(g,Math.max.apply(null,a[t]))}),d=u,h=g),d===Number.MIN_VALUE&&h===Number.MIN_VALUE&&(h=-Number.MAX_VALUE)}();else for(var p=0;p<r.length;p++){var f=r[p];d=Math.min(d,a[f]),h=Math.max(h,s[f]),!(i.collapsedSeriesIndices.indexOf(f)<0&&i.ancillaryCollapsedSeriesIndices.indexOf(f)<0)||(i.allSeriesCollapsed=!1)}void 0!==t.yaxis[n].min&&(d="function"==typeof t.yaxis[n].min?t.yaxis[n].min(d):t.yaxis[n].min),void 0!==t.yaxis[n].max&&(h="function"==typeof t.yaxis[n].max?t.yaxis[n].max(h):t.yaxis[n].max),i.barGroups=i.barGroups.filter(function(e,t,i){return i.indexOf(e)===t}),e.setYScaleForIndex(n,d,h),r.forEach(function(e){a[e]=i.yAxisScale[n].niceMin,s[e]=i.yAxisScale[n].niceMax})}():e.setYScaleForIndex(n,0,-Number.MAX_VALUE)})}}]),e}(),ir=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.scales=new tr(t)}return o(e,[{key:"init",value:function(){this.setYRange(),this.setXRange(),this.setZRange()}},{key:"getMinYMaxY",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-Number.MAX_VALUE,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this.w.config,s=this.w.globals,n=-Number.MAX_VALUE,o=Number.MIN_VALUE;null===r&&(r=e+1);var l=s.series,c=l,d=l;"candlestick"===a.chart.type?(c=s.seriesCandleL,d=s.seriesCandleH):"boxPlot"===a.chart.type?(c=s.seriesCandleO,d=s.seriesCandleC):s.isRangeData&&(c=s.seriesRangeStart,d=s.seriesRangeEnd);var h=!1;if(s.seriesX.length>=r){var u,g=null===(u=s.brushSource)||void 0===u?void 0:u.w.config.chart.brush;(a.chart.zoom.enabled&&a.chart.zoom.autoScaleYaxis||null!=g&&g.enabled&&null!=g&&g.autoScaleYaxis)&&(h=!0)}for(var p=e;p<r;p++){s.dataPoints=Math.max(s.dataPoints,l[p].length);var f=a.series[p].type;s.categoryLabels.length&&(s.dataPoints=s.categoryLabels.filter(function(e){return void 0!==e}).length),s.labels.length&&"datetime"!==a.xaxis.type&&0!==s.series.reduce(function(e,t){return e+t.length},0)&&(s.dataPoints=Math.max(s.dataPoints,s.labels.length));var b=0,m=l[p].length-1;if(h){if(a.xaxis.min)for(;b<m&&s.seriesX[p][b]<a.xaxis.min;b++);if(a.xaxis.max)for(;m>b&&s.seriesX[p][m]>a.xaxis.max;m--);}for(var x=b;x<=m&&x<s.series[p].length;x++){var v=l[p][x];if(null!==v&&w.isNumber(v)){var y,A,k,C;switch(void 0!==(null===(y=d[p])||void 0===y?void 0:y[x])&&(n=Math.max(n,d[p][x]),t=Math.min(t,d[p][x])),void 0!==(null===(A=c[p])||void 0===A?void 0:A[x])&&(t=Math.min(t,c[p][x]),i=Math.max(i,c[p][x])),f){case"candlestick":void 0!==s.seriesCandleC[p][x]&&(n=Math.max(n,s.seriesCandleH[p][x]),t=Math.min(t,s.seriesCandleL[p][x]));break;case"boxPlot":void 0!==s.seriesCandleC[p][x]&&(n=Math.max(n,s.seriesCandleC[p][x]),t=Math.min(t,s.seriesCandleO[p][x]))}f&&"candlestick"!==f&&"boxPlot"!==f&&"rangeArea"!==f&&"rangeBar"!==f&&(n=Math.max(n,s.series[p][x]),t=Math.min(t,s.series[p][x])),s.seriesGoals[p]&&s.seriesGoals[p][x]&&Array.isArray(s.seriesGoals[p][x])&&s.seriesGoals[p][x].forEach(function(e){n=Math.max(n,e.value),t=Math.min(t,e.value)}),i=n,v=w.noExponents(v),w.isFloat(v)&&(s.yValueDecimal=Math.max(s.yValueDecimal,v.toString().split(".")[1].length)),o>(null===(k=c[p])||void 0===k?void 0:k[x])&&(null===(C=c[p])||void 0===C?void 0:C[x])<0&&(o=c[p][x])}else s.hasNullValues=!0}"bar"!==f&&"column"!==f||(o<0&&n<0&&(n=0,i=Math.max(i,0)),o===Number.MIN_VALUE&&(o=0,t=Math.min(t,0)))}return"rangeBar"===a.chart.type&&s.seriesRangeStart.length&&s.isBarHorizontal&&(o=t),"bar"===a.chart.type&&(o<0&&n<0&&(n=0),o===Number.MIN_VALUE&&(o=0)),{minY:o,maxY:n,lowestY:t,highestY:i}}},{key:"setYRange",value:function(){var e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;var i,r=Number.MAX_VALUE;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(var a=0;a<e.series.length;a++)i=this.getMinYMaxY(a),e.minYArr[a]=i.lowestY,e.maxYArr[a]=i.highestY,r=Math.min(r,i.lowestY)}return i=this.getMinYMaxY(0,r,null,e.series.length),"bar"===t.chart.type?(e.minY=i.minY,e.maxY=i.maxY):(e.minY=i.lowestY,e.maxY=i.highestY),r=i.lowestY,t.chart.stacked&&this._setStackedMinMax(),"line"===t.chart.type||"area"===t.chart.type||"scatter"===t.chart.type||"candlestick"===t.chart.type||"boxPlot"===t.chart.type||"rangeBar"===t.chart.type&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&r!==-Number.MAX_VALUE&&r!==e.maxY&&(e.minY=r):e.minY=e.minY!==Number.MIN_VALUE?Math.min(i.minY,e.minY):i.minY,t.yaxis.forEach(function(t,i){void 0!==t.max&&("number"==typeof t.max?e.maxYArr[i]=t.max:"function"==typeof t.max&&(e.maxYArr[i]=t.max(e.isMultipleYAxis?e.maxYArr[i]:e.maxY)),e.maxY=e.maxYArr[i]),void 0!==t.min&&("number"==typeof t.min?e.minYArr[i]=t.min:"function"==typeof t.min&&(e.minYArr[i]=t.min(e.isMultipleYAxis?e.minYArr[i]===Number.MIN_VALUE?0:e.minYArr[i]:e.minY)),e.minY=e.minYArr[i])}),e.isBarHorizontal&&["min","max"].forEach(function(i){void 0!==t.xaxis[i]&&"number"==typeof t.xaxis[i]&&("min"===i?e.minY=t.xaxis[i]:e.maxY=t.xaxis[i])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=r):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(function(i){switch(i.type||t.chart.type){case"bar":case"column":e.barGroups.push(i.group);break;case"line":e.lineGroups.push(i.group);break;case"area":e.areaGroups.push(i.group)}}),e.barGroups=e.barGroups.filter(function(e,t,i){return i.indexOf(e)===t}),e.lineGroups=e.lineGroups.filter(function(e,t,i){return i.indexOf(e)===t}),e.areaGroups=e.areaGroups.filter(function(e,t,i){return i.indexOf(e)===t}),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}},{key:"setXRange",value:function(){var e=this.w.globals,t=this.w.config,i="numeric"===t.xaxis.type||"datetime"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided||e.noLabelsProvided||e.isXNumeric;if(e.isXNumeric&&function(){for(var t=0;t<e.series.length;t++)if(e.labels[t])for(var i=0;i<e.labels[t].length;i++)null!==e.labels[t][i]&&w.isNumber(e.labels[t][i])&&(e.maxX=Math.max(e.maxX,e.labels[t][i]),e.initialMaxX=Math.max(e.maxX,e.labels[t][i]),e.minX=Math.min(e.minX,e.labels[t][i]),e.initialMinX=Math.min(e.minX,e.labels[t][i]))}(),e.noLabelsProvided&&0===t.xaxis.categories.length&&(e.maxX=e.labels[e.labels.length-1],e.initialMaxX=e.labels[e.labels.length-1],e.minX=1,e.initialMinX=1),e.isXNumeric||e.noLabelsProvided||e.dataFormatXNumeric){var r=10;if(void 0===t.xaxis.tickAmount)r=Math.round(e.svgWidth/150),"numeric"===t.xaxis.type&&e.dataPoints<30&&(r=e.dataPoints-1),r>e.dataPoints&&0!==e.dataPoints&&(r=e.dataPoints-1);else if("dataPoints"===t.xaxis.tickAmount){if(e.series.length>1&&(r=e.series[e.maxValsInArrayIndex].length-1),e.isXNumeric){var a=Math.round(e.maxX-e.minX);a<30&&(r=a)}}else r=t.xaxis.tickAmount;if(e.xTickAmount=r,void 0!==t.xaxis.max&&"number"==typeof t.xaxis.max&&(e.maxX=t.xaxis.max),void 0!==t.xaxis.min&&"number"==typeof t.xaxis.min&&(e.minX=t.xaxis.min),void 0!==t.xaxis.range&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!e.dataFormatXNumeric){for(var s=[],n=e.minX-1;n<e.maxX;n++)s.push(n+1);e.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,r,r,0,t.xaxis.stepSize),e.noLabelsProvided&&e.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,e.labels.length,r-1,0,t.xaxis.stepSize),e.seriesX=e.labels.slice());i&&(e.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&e.labels.length&&(e.xTickAmount=e.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}},{key:"setZRange",value:function(){var e=this.w.globals;if(e.isDataXYZ)for(var t=0;t<e.series.length;t++)if(void 0!==e.seriesZ[t])for(var i=0;i<e.seriesZ[t].length;i++)null!==e.seriesZ[t][i]&&w.isNumber(e.seriesZ[t][i])&&(e.maxZ=Math.max(e.maxZ,e.seriesZ[t][i]),e.minZ=Math.min(e.minZ,e.seriesZ[t][i]))}},{key:"_handleSingleDataPoint",value:function(){var e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){var i=new Pi(this.ctx);if("datetime"===t.xaxis.type){var r=i.getDate(e.minX);t.xaxis.labels.datetimeUTC?r.setUTCDate(r.getUTCDate()-2):r.setDate(r.getDate()-2),e.minX=new Date(r).getTime();var a=i.getDate(e.maxX);t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()+2):a.setDate(a.getDate()+2),e.maxX=new Date(a).getTime()}else("numeric"===t.xaxis.type||"category"===t.xaxis.type&&!e.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}},{key:"_getMinXDiff",value:function(){var e=this.w.globals;e.isXNumeric&&e.seriesX.forEach(function(t,i){if(t.length){1===t.length&&t.push(e.seriesX[e.maxValsInArrayIndex][e.seriesX[e.maxValsInArrayIndex].length-1]);var r=t.slice();r.sort(function(e,t){return e-t}),r.forEach(function(t,i){if(i>0){var a=t-r[i-1];a>0&&(e.minXDiff=Math.min(a,e.minXDiff))}}),1!==e.dataPoints&&e.minXDiff!==Number.MAX_VALUE||(e.minXDiff=.5)}})}},{key:"_setStackedMinMax",value:function(){var e=this,t=this.w.globals;if(t.series.length){var i=t.seriesGroups;i.length||(i=[this.w.globals.seriesNames.map(function(e){return e})]);var r={},a={};i.forEach(function(i){r[i]=[],a[i]=[],e.w.config.series.map(function(e,r){return i.indexOf(t.seriesNames[r])>-1?r:null}).filter(function(e){return null!==e}).forEach(function(s){for(var n=0;n<t.series[t.maxValsInArrayIndex].length;n++){var o,l,c,d;void 0===r[i][n]&&(r[i][n]=0,a[i][n]=0),(e.w.config.chart.stacked&&!t.comboCharts||e.w.config.chart.stacked&&t.comboCharts&&(!e.w.config.chart.stackOnlyBar||"bar"===(null===(o=e.w.config.series)||void 0===o||null===(l=o[s])||void 0===l?void 0:l.type)||"column"===(null===(c=e.w.config.series)||void 0===c||null===(d=c[s])||void 0===d?void 0:d.type)))&&null!==t.series[s][n]&&w.isNumber(t.series[s][n])&&(t.series[s][n]>0?r[i][n]+=parseFloat(t.series[s][n])+1e-4:a[i][n]+=parseFloat(t.series[s][n]))}})}),Object.entries(r).forEach(function(e){var i=m(e,1)[0];r[i].forEach(function(e,s){t.maxY=Math.max(t.maxY,r[i][s]),t.minY=Math.min(t.minY,a[i][s])})})}}}]),e}(),rr=function(){function e(t,i){s(this,e),this.ctx=t,this.elgrid=i,this.w=t.w;var r=this.w;this.xaxisFontSize=r.config.xaxis.labels.style.fontSize,this.axisFontFamily=r.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=r.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal="bar"===r.config.chart.type&&r.config.plotOptions.bar.horizontal,this.xAxisoffX="bottom"===r.config.xaxis.position?r.globals.gridHeight:0,this.drawnLabels=[],this.axesUtils=new Ii(t)}return o(e,[{key:"drawYaxis",value:function(e){var t=this.w,i=new Di(this.ctx),r=t.config.yaxis[e].labels.style,a=r.fontSize,s=r.fontFamily,n=r.fontWeight,o=i.group({class:"apexcharts-yaxis",rel:e,transform:"translate(".concat(t.globals.translateYAxisX[e],", 0)")});if(this.axesUtils.isYAxisHidden(e))return o;var l=i.group({class:"apexcharts-yaxis-texts-g"});o.add(l);var c=t.globals.yAxisScale[e].result.length-1,d=t.globals.gridHeight/c,h=t.globals.yLabelFormatters[e],u=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){var g=t.globals.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?g=0:"heatmap"===t.config.chart.type&&(g-=d/2),g+=parseInt(a,10)/3;for(var p=c;p>=0;p--){var f=h(u[p],p,t),b=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&0!==t.config.yaxis.length&&(b*=-1);var m=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),x=this.axesUtils.getYAxisForeColor(r.colors,e),v=Array.isArray(x)?x[p]:x,y=w.listToArray(t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-label tspan"))).map(function(e){return e.textContent}),A=i.drawText({x:b,y:g,text:y.includes(f)&&!t.config.yaxis[e].labels.showDuplicates?"":f,textAnchor:m,fontSize:a,fontFamily:s,fontWeight:n,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:v,isPlainText:!1,cssClass:"apexcharts-yaxis-label ".concat(r.cssClass)});l.add(A),this.addTooltip(A,f),0!==t.config.yaxis[e].labels.rotate&&this.rotateLabel(i,A,firstLabel,t.config.yaxis[e].labels.rotate),g+=d}}return this.addYAxisTitle(i,o,e),this.addAxisBorder(i,o,e,c,d),o}},{key:"getTextAnchor",value:function(e,t){return"left"===e?"start":"center"===e?"middle":"right"===e?"end":t?"start":"end"}},{key:"addTooltip",value:function(e,t){var i=document.createElementNS(this.w.globals.SVGNS,"title");i.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(i)}},{key:"rotateLabel",value:function(e,t,i,r){var a=e.rotateAroundCenter(i.node),s=e.rotateAroundCenter(t.node);t.node.setAttribute("transform","rotate(".concat(r," ").concat(a.x," ").concat(s.y,")"))}},{key:"addYAxisTitle",value:function(e,t,i){var r=this.w;if(void 0!==r.config.yaxis[i].title.text){var a=e.group({class:"apexcharts-yaxis-title"}),s=r.config.yaxis[i].opposite?r.globals.translateYAxisX[i]:0,n=e.drawText({x:s,y:r.globals.gridHeight/2+r.globals.translateY+r.config.yaxis[i].title.offsetY,text:r.config.yaxis[i].title.text,textAnchor:"end",foreColor:r.config.yaxis[i].title.style.color,fontSize:r.config.yaxis[i].title.style.fontSize,fontWeight:r.config.yaxis[i].title.style.fontWeight,fontFamily:r.config.yaxis[i].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text ".concat(r.config.yaxis[i].title.style.cssClass)});a.add(n),t.add(a)}}},{key:"addAxisBorder",value:function(e,t,i,r,a){var s=this.w,n=s.config.yaxis[i].axisBorder,o=31+n.offsetX;if(s.config.yaxis[i].opposite&&(o=-31-n.offsetX),n.show){var l=e.drawLine(o,s.globals.translateY+n.offsetY-2,o,s.globals.gridHeight+s.globals.translateY+n.offsetY+2,n.color,0,n.width);t.add(l)}s.config.yaxis[i].axisTicks.show&&this.axesUtils.drawYAxisTicks(o,r,n,s.config.yaxis[i].axisTicks,i,a,t)}},{key:"drawYaxisInversed",value:function(e){var t=this.w,i=new Di(this.ctx),r=i.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),a=i.group({class:"apexcharts-xaxis-texts-g",transform:"translate(".concat(t.globals.translateXAxisX,", ").concat(t.globals.translateXAxisY,")")});r.add(a);var s=t.globals.yAxisScale[e].result.length-1,n=t.globals.gridWidth/s+.1,o=n+t.config.xaxis.labels.offsetX,l=t.globals.xLabelFormatter,c=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice()),d=t.globals.timescaleLabels;if(d.length>0&&(this.xaxisLabels=d.slice(),s=(c=d.slice()).length),t.config.xaxis.labels.show)for(var h=d.length?0:s;d.length?h<d.length:h>=0;d.length?h++:h--){var u=l(c[h],h,t),g=t.globals.gridWidth+t.globals.padHorizontal-(o-n+t.config.xaxis.labels.offsetX);if(d.length){var p=this.axesUtils.getLabel(c,d,g,h,this.drawnLabels,this.xaxisFontSize);g=p.x,u=p.text,this.drawnLabels.push(p.text),0===h&&t.globals.skipFirstTimelinelabel&&(u=""),h===c.length-1&&t.globals.skipLastTimelinelabel&&(u="")}var f=i.drawText({x:g,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-("top"===t.config.xaxis.position?t.globals.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:u,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.xaxisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-xaxis-label ".concat(t.config.xaxis.labels.style.cssClass)});a.add(f),f.tspan(u),this.addTooltip(f,u),o+=n}return this.inversedYAxisTitleText(r),this.inversedYAxisBorder(r),r}},{key:"inversedYAxisBorder",value:function(e){var t=this.w,i=new Di(this.ctx),r=t.config.xaxis.axisBorder;if(r.show){var a=0;"bar"===t.config.chart.type&&t.globals.isXNumeric&&(a-=15);var s=i.drawLine(t.globals.padHorizontal+a+r.offsetX,this.xAxisoffX,t.globals.gridWidth,this.xAxisoffX,r.color,0,r.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(s):e.add(s)}}},{key:"inversedYAxisTitleText",value:function(e){var t=this.w,i=new Di(this.ctx);if(void 0!==t.config.xaxis.title.text){var r=i.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),a=i.drawText({x:t.globals.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text ".concat(t.config.xaxis.title.style.cssClass)});r.add(a),e.add(r)}}},{key:"yAxisTitleRotate",value:function(e,t){var i=this.w,r=new Di(this.ctx),a=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-texts-g")),s=a?a.getBoundingClientRect():{width:0,height:0},n=i.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(e,"'] .apexcharts-yaxis-title text")),o=n?n.getBoundingClientRect():{width:0,height:0};if(n){var l=this.xPaddingForYAxisTitle(e,s,o,t);n.setAttribute("x",l.xPos-(t?10:0));var c=r.rotateAroundCenter(n);n.setAttribute("transform","rotate(".concat(t?-1*i.config.yaxis[e].title.rotate:i.config.yaxis[e].title.rotate," ").concat(c.x," ").concat(c.y,")"))}}},{key:"xPaddingForYAxisTitle",value:function(e,t,i,r){var a=this.w,s=0,n=10;return void 0===a.config.yaxis[e].title.text||e<0?{xPos:s,padd:0}:(r?s=t.width+a.config.yaxis[e].title.offsetX+i.width/2+n/2:(s=-1*t.width+a.config.yaxis[e].title.offsetX+n/2+i.width/2,a.globals.isBarHorizontal&&(n=25,s=-1*t.width-a.config.yaxis[e].title.offsetX-n)),{xPos:s,padd:n})}},{key:"setYAxisXPosition",value:function(e,t){var i=this.w,r=0,a=0,s=18,n=1;i.config.yaxis.length>1&&(this.multipleYs=!0),i.config.yaxis.forEach(function(o,l){var c=i.globals.ignoreYAxisIndexes.includes(l)||!o.show||o.floating||0===e[l].width,d=e[l].width+t[l].width;o.opposite?i.globals.isBarHorizontal?(a=i.globals.gridWidth+i.globals.translateX-1,i.globals.translateYAxisX[l]=a-o.labels.offsetX):(a=i.globals.gridWidth+i.globals.translateX+n,c||(n+=d+20),i.globals.translateYAxisX[l]=a-o.labels.offsetX+20):(r=i.globals.translateX-s,c||(s+=d+20),i.globals.translateYAxisX[l]=r+o.labels.offsetX)})}},{key:"setYAxisTextAlignments",value:function(){var e=this.w;w.listToArray(e.globals.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach(function(t,i){var r=e.config.yaxis[i];if(r&&!r.floating&&void 0!==r.labels.align){var a=e.globals.dom.baseEl.querySelector(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-texts-g")),s=w.listToArray(e.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxis[rel='".concat(i,"'] .apexcharts-yaxis-label"))),n=a.getBoundingClientRect();s.forEach(function(e){e.setAttribute("text-anchor",r.labels.align)}),"left"!==r.labels.align||r.opposite?"center"===r.labels.align?a.setAttribute("transform","translate(".concat(n.width/2*(r.opposite?1:-1),", 0)")):"right"===r.labels.align&&r.opposite&&a.setAttribute("transform","translate(".concat(n.width,", 0)")):a.setAttribute("transform","translate(-".concat(n.width,", 0)"))}})}}]),e}(),ar=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.documentEvent=w.bind(this.documentEvent,this)}return o(e,[{key:"addEventListener",value:function(e,t){var i=this.w;i.globals.events.hasOwnProperty(e)?i.globals.events[e].push(t):i.globals.events[e]=[t]}},{key:"removeEventListener",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){var r=i.globals.events[e].indexOf(t);-1!==r&&i.globals.events[e].splice(r,1)}}},{key:"fireEvent",value:function(e,t){var i=this.w;if(i.globals.events.hasOwnProperty(e)){t&&t.length||(t=[]);for(var r=i.globals.events[e],a=r.length,s=0;s<a;s++)r[s].apply(null,t)}}},{key:"setupEventHandlers",value:function(){var e=this,t=this.w,i=this.ctx,r=t.globals.dom.baseEl.querySelector(t.globals.chartClass);this.ctx.eventList.forEach(function(e){r.addEventListener(e,function(e){var r=null===e.target.getAttribute("i")&&-1!==t.globals.capturedSeriesIndex?t.globals.capturedSeriesIndex:e.target.getAttribute("i"),a=null===e.target.getAttribute("j")&&-1!==t.globals.capturedDataPointIndex?t.globals.capturedDataPointIndex:e.target.getAttribute("j"),s=Object.assign({},t,{seriesIndex:t.globals.axisCharts?r:0,dataPointIndex:a});"mousemove"===e.type||"touchmove"===e.type?"function"==typeof t.config.chart.events.mouseMove&&t.config.chart.events.mouseMove(e,i,s):"mouseleave"===e.type||"touchleave"===e.type?"function"==typeof t.config.chart.events.mouseLeave&&t.config.chart.events.mouseLeave(e,i,s):("mouseup"===e.type&&1===e.which||"touchend"===e.type)&&("function"==typeof t.config.chart.events.click&&t.config.chart.events.click(e,i,s),i.ctx.events.fireEvent("click",[e,i,s]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(function(i){t.globals.dom.baseEl.addEventListener(i,e.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}},{key:"documentEvent",value:function(e){var t=this.w,i=e.target.className;if("click"===e.type){var r=t.globals.dom.baseEl.querySelector(".apexcharts-menu");r&&r.classList.contains("apexcharts-menu-open")&&"apexcharts-menu-icon"!==i&&r.classList.remove("apexcharts-menu-open")}t.globals.clientX="touchmove"===e.type?e.touches[0].clientX:e.clientX,t.globals.clientY="touchmove"===e.type?e.touches[0].clientY:e.clientY}}]),e}(),sr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"setCurrentLocaleValues",value:function(e){var t=this.w.config.chart.locales;window.Apex.chart&&window.Apex.chart.locales&&window.Apex.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(window.Apex.chart.locales));var i=t.filter(function(t){return t.name===e})[0];if(!i)throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options");var r=w.extend(Oi,i);this.w.globals.locale=r.options}}]),e}(),nr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"drawAxis",value:function(e,t){var i,r,a=this,s=this.w.globals,n=this.w.config,o=new Ki(this.ctx,t),l=new rr(this.ctx,t);s.axisCharts&&"radar"!==e&&(s.isBarHorizontal?(r=l.drawYaxisInversed(0),i=o.drawXaxisInversed(0),s.dom.elGraphical.add(i),s.dom.elGraphical.add(r)):(i=o.drawXaxis(),s.dom.elGraphical.add(i),n.yaxis.map(function(e,t){if(-1===s.ignoreYAxisIndexes.indexOf(t)&&(r=l.drawYaxis(t),s.dom.Paper.add(r),"back"===a.w.config.grid.position)){var i=s.dom.Paper.children()[1];i.remove(),s.dom.Paper.add(i)}})))}}]),e}(),or=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"drawXCrosshairs",value:function(){var e=this.w,t=new Di(this.ctx),i=new Ei(this.ctx),r=e.config.xaxis.crosshairs.fill.gradient,a=e.config.xaxis.crosshairs.dropShadow,s=e.config.xaxis.crosshairs.fill.type,n=r.colorFrom,o=r.colorTo,l=r.opacityFrom,c=r.opacityTo,d=r.stops,h=a.enabled,u=a.left,g=a.top,p=a.blur,f=a.color,b=a.opacity,m=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){"gradient"===s&&(m=t.drawGradient("vertical",n,o,l,c,null,d,null));var x=t.drawRect();1===e.config.xaxis.crosshairs.width&&(x=t.drawLine());var v=e.globals.gridHeight;(!w.isNumber(v)||v<0)&&(v=0);var y=e.config.xaxis.crosshairs.width;(!w.isNumber(y)||y<0)&&(y=0),x.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:v,width:y,height:v,fill:m,filter:"none","fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),h&&(x=i.dropShadow(x,{left:u,top:g,blur:p,color:f,opacity:b})),e.globals.dom.elGraphical.add(x)}}},{key:"drawYCrosshairs",value:function(){var e=this.w,t=new Di(this.ctx),i=e.config.yaxis[0].crosshairs,r=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){var a=t.drawLine(-r,0,e.globals.gridWidth+r,0,i.stroke.color,i.stroke.dashArray,i.stroke.width);a.attr({class:"apexcharts-ycrosshairs"}),e.globals.dom.elGraphical.add(a)}var s=t.drawLine(-r,0,e.globals.gridWidth+r,0,i.stroke.color,0,0);s.attr({class:"apexcharts-ycrosshairs-hidden"}),e.globals.dom.elGraphical.add(s)}}]),e}(),lr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"checkResponsiveConfig",value:function(e){var t=this,i=this.w,r=i.config;if(0!==r.responsive.length){var a=r.responsive.slice();a.sort(function(e,t){return e.breakpoint>t.breakpoint?1:t.breakpoint>e.breakpoint?-1:0}).reverse();var s=new Xi({}),n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=a[0].breakpoint,n=window.innerWidth>0?window.innerWidth:screen.width;if(n>r){var o=w.clone(i.globals.initialConfig);o.series=w.clone(i.config.series);var l=Bi.extendArrayProps(s,o,i);e=w.extend(l,e),e=w.extend(i.config,e),t.overrideResponsiveOptions(e)}else for(var c=0;c<a.length;c++)n<a[c].breakpoint&&(e=Bi.extendArrayProps(s,a[c].options,i),e=w.extend(i.config,e),t.overrideResponsiveOptions(e))};if(e){var o=Bi.extendArrayProps(s,e,i);o=w.extend(i.config,o),n(o=w.extend(o,e))}else n({})}}},{key:"overrideResponsiveOptions",value:function(e){var t=new Xi(e).init({responsiveOverride:!0});this.w.config=t}}]),e}(),cr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}return o(e,[{key:"checkHeatmapDistributed",value:function(){var e=this.w.config,t=e.chart,i=e.plotOptions;return"treemap"===t.type&&i.treemap&&i.treemap.distributed||"heatmap"===t.type&&i.heatmap&&i.heatmap.distributed}},{key:"checkBarDistributed",value:function(){var e=this.w.config,t=e.chart,i=e.plotOptions;return i.bar&&i.bar.distributed&&("bar"===t.type||"rangeBar"===t.type)}},{key:"init",value:function(){this.setDefaultColors()}},{key:"setDefaultColors",value:function(){var e=this.w,t=new w;e.globals.dom.elWrap.classList.add("apexcharts-theme-".concat(e.config.theme.mode||"light"));var i=x(e.config.colors||e.config.fill.colors||[]);e.globals.colors=this.getColors(i),this.applySeriesColors(e.globals.seriesColors,e.globals.colors),e.config.theme.monochrome.enabled&&(e.globals.colors=this.getMonochromeColors(e.config.theme.monochrome,e.globals.series,t));var r=e.globals.colors.slice();this.pushExtraColors(e.globals.colors),this.applyColorTypes(["fill","stroke"],r),this.applyDataLabelsColors(r),this.applyRadarPolygonsColors(),this.applyMarkersColors(r)}},{key:"getColors",value:function(e){var t=this,i=this.w;return e&&0!==e.length?Array.isArray(e)&&e.length>0&&"function"==typeof e[0]?(this.isColorFn=!0,i.config.series.map(function(r,a){var s=e[a]||e[0];return"function"==typeof s?s({value:i.globals.axisCharts?i.globals.series[a][0]||0:i.globals.series[a],seriesIndex:a,dataPointIndex:a,w:t.w}):s})):e:this.predefined()}},{key:"applySeriesColors",value:function(e,t){e.forEach(function(e,i){e&&(t[i]=e)})}},{key:"getMonochromeColors",value:function(e,t,i){var r=e.color,a=e.shadeIntensity,s=e.shadeTo,n=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,o=1/(n/a),l=0;return Array.from({length:n},function(){var e="dark"===s?i.shadeColor(-1*l,r):i.shadeColor(l,r);return l+=o,e})}},{key:"applyColorTypes",value:function(e,t){var i=this,r=this.w;e.forEach(function(e){r.globals[e].colors=void 0===r.config[e].colors?i.isColorFn?r.config.colors:t:r.config[e].colors.slice(),i.pushExtraColors(r.globals[e].colors)})}},{key:"applyDataLabelsColors",value:function(e){var t=this.w;t.globals.dataLabels.style.colors=void 0===t.config.dataLabels.style.colors?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}},{key:"applyRadarPolygonsColors",value:function(){var e=this.w;e.globals.radarPolygons.fill.colors=void 0===e.config.plotOptions.radar.polygons.fill.colors?["dark"===e.config.theme.mode?"#343A3F":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}},{key:"applyMarkersColors",value:function(e){var t=this.w;t.globals.markers.colors=void 0===t.config.markers.colors?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}},{key:"pushExtraColors",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,a=t||r.globals.series.length;if(null===i&&(i=this.isBarDistributed||this.isHeatmapDistributed||"heatmap"===r.config.chart.type&&r.config.plotOptions.heatmap&&r.config.plotOptions.heatmap.colorScale.inverse),i&&r.globals.series.length&&(a=r.globals.series[r.globals.maxValsInArrayIndex].length*r.globals.series.length),e.length<a)for(var s=a-e.length,n=0;n<s;n++)e.push(e[n])}},{key:"updateThemeOptions",value:function(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};var t=e.theme.mode,i="dark"===t?"palette4":"light"===t?"palette1":e.theme.palette||"palette1",r="dark"===t?"#f6f7f8":"light"===t?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=r,e.theme.palette=i,e}},{key:"predefined",value:function(){var e=this.w.config.theme.palette,t=this.ctx.constructor.getThemePalettes();return t[e]||t.palette1}}]),e}(),dr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"draw",value:function(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}},{key:"drawTitleSubtitle",value:function(e){var t=this.w,i="title"===e?t.config.title:t.config.subtitle,r=t.globals.svgWidth/2,a=i.offsetY,s="middle";if("left"===i.align?(r=10,s="start"):"right"===i.align&&(r=t.globals.svgWidth-10,s="end"),r+=i.offsetX,a=a+parseInt(i.style.fontSize,10)+i.margin/2,void 0!==i.text){var n=new Di(this.ctx).drawText({x:r,y:a,text:i.text,textAnchor:s,fontSize:i.style.fontSize,fontFamily:i.style.fontFamily,fontWeight:i.style.fontWeight,foreColor:i.style.color,opacity:1});n.node.setAttribute("class","apexcharts-".concat(e,"-text")),t.globals.dom.Paper.add(n)}}}]),e}(),hr=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"getTitleSubtitleCoords",value:function(e){var t=this.w,i=0,r=0,a="title"===e?t.config.title.floating:t.config.subtitle.floating,s=t.globals.dom.baseEl.querySelector(".apexcharts-".concat(e,"-text"));if(null!==s&&!a){var n=s.getBoundingClientRect();i=n.width,r=t.globals.axisCharts?n.height+5:n.height}return{width:i,height:r}}},{key:"getLegendsRect",value:function(){var e=this.w,t=e.globals.dom.elLegendWrap;e.config.legend.height||"top"!==e.config.legend.position&&"bottom"!==e.config.legend.position||(t.style.maxHeight=e.globals.svgHeight/2+"px");var i=Object.assign({},w.getBoundingClientRect(t));return null!==t&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:i.x,y:i.y,height:i.height,width:0===i.height?0:i.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},"left"!==e.config.legend.position&&"right"!==e.config.legend.position||1.5*this.dCtx.lgRect.width>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}},{key:"getDatalabelsRect",value:function(){var e=this,t=this.w,i=[];t.config.series.forEach(function(a,s){a.data.forEach(function(a,n){var o;o=t.globals.series[s][n],r=t.config.dataLabels.formatter(o,{ctx:e.dCtx.ctx,seriesIndex:s,dataPointIndex:n,w:t}),i.push(r)})});var r=w.getLargestStringFromArr(i),a=new Di(this.dCtx.ctx),s=t.config.dataLabels.style,n=a.getTextRects(r,parseInt(s.fontSize),s.fontFamily);return{width:1.05*n.width,height:n.height}}},{key:"getLargestStringFromMultiArr",value:function(e,t){var i=e;if(this.w.globals.isMultiLineX){var r=t.map(function(e,t){return Array.isArray(e)?e.length:1}),a=Math.max.apply(Math,x(r));i=t[r.indexOf(a)]}return i}}]),e}(),ur=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"getxAxisLabelsCoords",value:function(){var e,t=this.w,i=t.globals.labels.slice();if(t.config.xaxis.convertedCatToNumeric&&0===i.length&&(i=t.globals.categoryLabels),t.globals.timescaleLabels.length>0){var r=this.getxAxisTimeScaleLabelsCoords();e={width:r.width,height:r.height},t.globals.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends="left"!==t.config.legend.position&&"right"!==t.config.legend.position||t.config.legend.floating?0:this.dCtx.lgRect.width;var a=t.globals.xLabelFormatter,s=w.getLargestStringFromArr(i),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,i);t.globals.isBarHorizontal&&(n=s=t.globals.yAxisScale[0].result.reduce(function(e,t){return e.length>t.length?e:t},0));var o=new Mi(this.dCtx.ctx),l=s;s=o.xLabelFormat(a,s,l,{i:void 0,dateFormatter:new Pi(this.dCtx.ctx).formatDate,w:t}),n=o.xLabelFormat(a,n,l,{i:void 0,dateFormatter:new Pi(this.dCtx.ctx).formatDate,w:t}),(t.config.xaxis.convertedCatToNumeric&&void 0===s||""===String(s).trim())&&(n=s="1");var c=new Di(this.dCtx.ctx),d=c.getTextRects(s,t.config.xaxis.labels.style.fontSize),h=d;if(s!==n&&(h=c.getTextRects(n,t.config.xaxis.labels.style.fontSize)),(e={width:d.width>=h.width?d.width:h.width,height:d.height>=h.height?d.height:h.height}).width*i.length>t.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&0!==t.config.xaxis.labels.rotate||t.config.xaxis.labels.rotateAlways){if(!t.globals.isBarHorizontal){t.globals.rotateXLabels=!0;var u=function(e){return c.getTextRects(e,t.config.xaxis.labels.style.fontSize,t.config.xaxis.labels.style.fontFamily,"rotate(".concat(t.config.xaxis.labels.rotate," 0 0)"),!1)};d=u(s),s!==n&&(h=u(n)),e.height=(d.height>h.height?d.height:h.height)/1.5,e.width=d.width>h.width?d.width:h.width}}else t.globals.rotateXLabels=!1}return t.config.xaxis.labels.show||(e={width:0,height:0}),{width:e.width,height:e.height}}},{key:"getxAxisGroupLabelsCoords",value:function(){var e,t=this.w;if(!t.globals.hasXaxisGroups)return{width:0,height:0};var i,r=(null===(e=t.config.xaxis.group.style)||void 0===e?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,a=t.globals.groups.map(function(e){return e.title}),s=w.getLargestStringFromArr(a),n=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,a),o=new Di(this.dCtx.ctx),l=o.getTextRects(s,r),c=l;return s!==n&&(c=o.getTextRects(n,r)),i={width:l.width>=c.width?l.width:c.width,height:l.height>=c.height?l.height:c.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}},{key:"getxAxisTitleCoords",value:function(){var e=this.w,t=0,i=0;if(void 0!==e.config.xaxis.title.text){var r=new Di(this.dCtx.ctx).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=r.width,i=r.height}return{width:t,height:i}}},{key:"getxAxisTimeScaleLabelsCoords",value:function(){var e,t=this.w;this.dCtx.timescaleLabels=t.globals.timescaleLabels.slice();var i=this.dCtx.timescaleLabels.map(function(e){return e.value}),r=i.reduce(function(e,t){return void 0===e?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):e.length>t.length?e:t},0);return 1.05*(e=new Di(this.dCtx.ctx).getTextRects(r,t.config.xaxis.labels.style.fontSize)).width*i.length>t.globals.gridWidth&&0!==t.config.xaxis.labels.rotate&&(t.globals.overlappingXLabels=!0),e}},{key:"additionalPaddingXLabels",value:function(e){var t=this,i=this.w,r=i.globals,a=i.config,s=a.xaxis.type,n=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;var o=i.config.yaxis[0].opposite&&i.globals.isBarHorizontal,l=function(e,o){a.yaxis.length>1&&function(e){return-1!==r.collapsedSeriesIndices.indexOf(e)}(o)||function(e){if(t.dCtx.timescaleLabels&&t.dCtx.timescaleLabels.length){var o=t.dCtx.timescaleLabels[0],l=t.dCtx.timescaleLabels[t.dCtx.timescaleLabels.length-1].position+n/1.75-t.dCtx.yAxisWidthRight,c=o.position-n/1.75+t.dCtx.yAxisWidthLeft,d="right"===i.config.legend.position&&t.dCtx.lgRect.width>0?t.dCtx.lgRect.width:0;l>r.svgWidth-r.translateX-d&&(r.skipLastTimelinelabel=!0),c<-(e.show&&!e.floating||"bar"!==a.chart.type&&"candlestick"!==a.chart.type&&"rangeBar"!==a.chart.type&&"boxPlot"!==a.chart.type?10:n/1.75)&&(r.skipFirstTimelinelabel=!0)}else"datetime"===s?t.dCtx.gridPad.right<n&&!r.rotateXLabels&&(r.skipLastTimelinelabel=!0):"datetime"!==s&&t.dCtx.gridPad.right<n/2-t.dCtx.yAxisWidthRight&&!r.rotateXLabels&&!i.config.xaxis.labels.trim&&(t.dCtx.xPadRight=n/2+1)}(e)};a.yaxis.forEach(function(e,i){o?(t.dCtx.gridPad.left<n&&(t.dCtx.xPadLeft=n/2+1),t.dCtx.xPadRight=n/2+1):l(e,i)})}}]),e}(),gr=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"getyAxisLabelsCoords",value:function(){var e=this,t=this.w,i=[],r=10,a=new Ii(this.dCtx.ctx);return t.config.yaxis.map(function(s,n){var o={seriesIndex:n,dataPointIndex:-1,w:t},l=t.globals.yAxisScale[n],c=0;if(!a.isYAxisHidden(n)&&s.labels.show&&void 0!==s.labels.minWidth&&(c=s.labels.minWidth),!a.isYAxisHidden(n)&&s.labels.show&&l.result.length){var d=t.globals.yLabelFormatters[n],h=l.niceMin===Number.MIN_VALUE?0:l.niceMin,u=l.result.reduce(function(e,t){var i,r;return(null===(i=String(d(e,o)))||void 0===i?void 0:i.length)>(null===(r=String(d(t,o)))||void 0===r?void 0:r.length)?e:t},h),g=u=d(u,o);if(void 0!==u&&0!==u.length||(u=l.niceMax),t.globals.isBarHorizontal){r=0;var p=t.globals.labels.slice();u=w.getLargestStringFromArr(p),u=d(u,{seriesIndex:n,dataPointIndex:-1,w:t}),g=e.dCtx.dimHelpers.getLargestStringFromMultiArr(u,p)}var f=new Di(e.dCtx.ctx),b="rotate(".concat(s.labels.rotate," 0 0)"),m=f.getTextRects(u,s.labels.style.fontSize,s.labels.style.fontFamily,b,!1),x=m;u!==g&&(x=f.getTextRects(g,s.labels.style.fontSize,s.labels.style.fontFamily,b,!1)),i.push({width:(c>x.width||c>m.width?c:x.width>m.width?x.width:m.width)+r,height:x.height>m.height?x.height:m.height})}else i.push({width:0,height:0})}),i}},{key:"getyAxisTitleCoords",value:function(){var e=this,t=this.w,i=[];return t.config.yaxis.map(function(t,r){if(t.show&&void 0!==t.title.text){var a=new Di(e.dCtx.ctx),s="rotate(".concat(t.title.rotate," 0 0)"),n=a.getTextRects(t.title.text,t.title.style.fontSize,t.title.style.fontFamily,s,!1);i.push({width:n.width,height:n.height})}else i.push({width:0,height:0})}),i}},{key:"getTotalYAxisWidth",value:function(){var e=this.w,t=0,i=0,r=0,a=e.globals.yAxisScale.length>1?10:0,s=new Ii(this.dCtx.ctx),n=function(n,o){var l=e.config.yaxis[o].floating,c=0;n.width>0&&!l?(c=n.width+a,function(t){return e.globals.ignoreYAxisIndexes.indexOf(t)>-1}(o)&&(c=c-n.width-a)):c=l||s.isYAxisHidden(o)?0:5,e.config.yaxis[o].opposite?r+=c:i+=c,t+=c};return e.globals.yLabelsCoords.map(function(e,t){n(e,t)}),e.globals.yTitleCoords.map(function(e,t){n(e,t)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.globals.yLabelsCoords[0].width+e.globals.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=i,this.dCtx.yAxisWidthRight=r,t}}]),e}(),pr=function(){function e(t){s(this,e),this.w=t.w,this.dCtx=t}return o(e,[{key:"gridPadForColumnsInNumericAxis",value:function(e){var t=this.w,i=t.config,r=t.globals;if(r.noData||r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===i.series.length)return 0;var a=function(e){return["bar","rangeBar","candlestick","boxPlot"].includes(e)},s=i.chart.type,n=0,o=a(s)?i.series.length:1;r.comboBarCount>0&&(o=r.comboBarCount),r.collapsedSeries.forEach(function(e){a(e.type)&&(o-=1)}),i.chart.stacked&&(o=1);var l=a(s)||r.comboBarCount>0,c=Math.abs(r.initialMaxX-r.initialMinX);if(l&&r.isXNumeric&&!r.isBarHorizontal&&o>0&&0!==c){c<=3&&(c=r.dataPoints);var d=c/e,h=r.minXDiff&&r.minXDiff/d>0?r.minXDiff/d:0;h>e/2&&(h/=2),(n=h*parseInt(i.plotOptions.bar.columnWidth,10)/100)<1&&(n=1),r.barPadForNumericAxis=n}return n}},{key:"gridPadFortitleSubtitle",value:function(){var e=this,t=this.w,i=t.globals,r=this.dCtx.isSparkline||!i.axisCharts?0:10;["title","subtitle"].forEach(function(a){void 0!==t.config[a].text?r+=t.config[a].margin:r+=e.dCtx.isSparkline||!i.axisCharts?0:5}),!t.config.legend.show||"bottom"!==t.config.legend.position||t.config.legend.floating||i.axisCharts||(r+=10);var a=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),s=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");i.gridHeight-=a.height+s.height+r,i.translateY+=a.height+s.height+r}},{key:"setGridXPosForDualYAxis",value:function(e,t){var i=this.w,r=new Ii(this.dCtx.ctx);i.config.yaxis.forEach(function(a,s){-1!==i.globals.ignoreYAxisIndexes.indexOf(s)||a.floating||r.isYAxisHidden(s)||(a.opposite&&(i.globals.translateX-=t[s].width+e[s].width+parseInt(a.labels.style.fontSize,10)/1.2+12),i.globals.translateX<2&&(i.globals.translateX=2))})}}]),e}(),fr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new hr(this),this.dimYAxis=new gr(this),this.dimXAxis=new ur(this),this.dimGrid=new pr(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0}return o(e,[{key:"plotCoords",value:function(){var e=this,t=this.w,i=t.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};var r=Array.isArray(t.config.stroke.width)?Math.max.apply(Math,x(t.config.stroke.width)):t.config.stroke.width;this.isSparkline&&((t.config.markers.discrete.length>0||t.config.markers.size>0)&&Object.entries(this.gridPad).forEach(function(t){var i=m(t,2),r=i[0],a=i[1];e.gridPad[r]=Math.max(a,e.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(r/2,this.gridPad.top),this.gridPad.bottom=Math.max(r/2,this.gridPad.bottom)),i.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),i.gridHeight=i.gridHeight-this.gridPad.top-this.gridPad.bottom,i.gridWidth=i.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;var a=this.dimGrid.gridPadForColumnsInNumericAxis(i.gridWidth);i.gridWidth=i.gridWidth-2*a,i.translateX=i.translateX+this.gridPad.left+this.xPadLeft+(a>0?a:0),i.translateY=i.translateY+this.gridPad.top}},{key:"setDimensionsForAxisCharts",value:function(){var e=this,t=this.w,i=t.globals,r=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();i.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),t.globals.yLabelsCoords=[],t.globals.yTitleCoords=[],t.config.yaxis.map(function(e,i){t.globals.yLabelsCoords.push({width:r[i].width,index:i}),t.globals.yTitleCoords.push({width:a[i].width,index:i})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();var s=this.dimXAxis.getxAxisLabelsCoords(),n=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(s,o,n),i.translateXAxisY=t.globals.rotateXLabels?this.xAxisHeight/8:-4,i.translateXAxisX=t.globals.rotateXLabels&&t.globals.isXNumeric&&t.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,t.globals.isBarHorizontal&&(i.rotateXLabels=!1,i.translateXAxisY=parseInt(t.config.xaxis.labels.style.fontSize,10)/1.5*-1),i.translateXAxisY=i.translateXAxisY+t.config.xaxis.labels.offsetY,i.translateXAxisX=i.translateXAxisX+t.config.xaxis.labels.offsetX;var l=this.yAxisWidth,c=this.xAxisHeight;i.xAxisLabelsHeight=this.xAxisHeight-o.height,i.xAxisGroupLabelsHeight=i.xAxisLabelsHeight-s.height,i.xAxisLabelsWidth=this.xAxisWidth,i.xAxisHeight=this.xAxisHeight;var d=10;("radar"===t.config.chart.type||this.isSparkline)&&(l=0,c=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||"treemap"===t.config.chart.type)&&(l=0,c=0,d=0),this.isSparkline||"treemap"===t.config.chart.type||this.dimXAxis.additionalPaddingXLabels(s);var h=function(){i.translateX=l+e.datalabelsCoords.width,i.gridHeight=i.svgHeight-e.lgRect.height-c-(e.isSparkline||"treemap"===t.config.chart.type?0:t.globals.rotateXLabels?10:15),i.gridWidth=i.svgWidth-l-2*e.datalabelsCoords.width};switch("top"===t.config.xaxis.position&&(d=i.xAxisHeight-t.config.xaxis.axisTicks.height-5),t.config.legend.position){case"bottom":i.translateY=d,h();break;case"top":i.translateY=this.lgRect.height+d,h();break;case"left":i.translateY=d,i.translateX=this.lgRect.width+l+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width;break;case"right":i.translateY=d,i.translateX=l+this.datalabelsCoords.width,i.gridHeight=i.svgHeight-c-12,i.gridWidth=i.svgWidth-this.lgRect.width-l-2*this.datalabelsCoords.width-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,r),new rr(this.ctx).setYAxisXPosition(r,a)}},{key:"setDimensionsForNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=e.config,r=0;e.config.legend.show&&!e.config.legend.floating&&(r=20);var a="pie"===i.chart.type||"polarArea"===i.chart.type||"donut"===i.chart.type?"pie":"radialBar",s=i.plotOptions[a].offsetY,n=i.plotOptions[a].offsetX;if(!i.legend.show||i.legend.floating){t.gridHeight=t.svgHeight;var o=t.dom.elWrap.getBoundingClientRect().width;return t.gridWidth=Math.min(o,t.gridHeight),t.translateY=s,void(t.translateX=n+(t.svgWidth-t.gridWidth)/2)}switch(i.legend.position){case"bottom":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=s-10,t.translateX=n+(t.svgWidth-t.gridWidth)/2;break;case"top":t.gridHeight=t.svgHeight-this.lgRect.height,t.gridWidth=t.svgWidth,t.translateY=this.lgRect.height+s+10,t.translateX=n+(t.svgWidth-t.gridWidth)/2;break;case"left":t.gridWidth=t.svgWidth-this.lgRect.width-r,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=s,t.translateX=n+this.lgRect.width+r;break;case"right":t.gridWidth=t.svgWidth-this.lgRect.width-r-5,t.gridHeight="auto"!==i.chart.height?t.svgHeight:t.gridWidth,t.translateY=s,t.translateX=n+10;break;default:throw new Error("Legend position not supported")}}},{key:"conditionalChecksForAxisCoords",value:function(e,t,i){var r=this.w,a=r.globals.hasXaxisGroups?2:1,s=i.height+e.height+t.height,n=r.globals.isMultiLineX?1.2:r.globals.LINE_HEIGHT_RATIO,o=r.globals.rotateXLabels?22:10,l=r.globals.rotateXLabels&&"bottom"===r.config.legend.position?10:0;this.xAxisHeight=s*n+a*o+l,this.xAxisWidth=e.width,this.xAxisHeight-t.height>r.config.xaxis.labels.maxHeight&&(this.xAxisHeight=r.config.xaxis.labels.maxHeight),r.config.xaxis.labels.minHeight&&this.xAxisHeight<r.config.xaxis.labels.minHeight&&(this.xAxisHeight=r.config.xaxis.labels.minHeight),r.config.xaxis.floating&&(this.xAxisHeight=0);var c=0,d=0;r.config.yaxis.forEach(function(e){c+=e.labels.minWidth,d+=e.labels.maxWidth}),this.yAxisWidth<c&&(this.yAxisWidth=c),this.yAxisWidth>d&&(this.yAxisWidth=d)}}]),e}(),br=function(){function e(t){s(this,e),this.w=t.w,this.lgCtx=t}return o(e,[{key:"getLegendStyles",value:function(){var e,t,i,r=document.createElement("style");r.setAttribute("type","text/css");var a=(null===(e=this.lgCtx.ctx)||void 0===e||null===(t=e.opts)||void 0===t||null===(i=t.chart)||void 0===i?void 0:i.nonce)||this.w.config.chart.nonce;a&&r.setAttribute("nonce",a);var s=document.createTextNode(Zi);return r.appendChild(s),r}},{key:"getLegendDimensions",value:function(){var e=this.w.globals.dom.baseEl.querySelector(".apexcharts-legend").getBoundingClientRect(),t=e.width;return{clwh:e.height,clww:t}}},{key:"appendToForeignObject",value:function(){var e=this.w.globals;!1!==this.w.config.chart.injectStyleSheet&&e.dom.elLegendForeign.appendChild(this.getLegendStyles())}},{key:"toggleDataSeries",value:function(e,t){var i=this,r=this.w;if(r.globals.axisCharts||"radialBar"===r.config.chart.type){r.globals.resized=!0;var a=null,s=null;r.globals.risingSeries=[],r.globals.axisCharts?(a=r.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(e,"']")),s=parseInt(a.getAttribute("data:realIndex"),10)):(a=r.globals.dom.baseEl.querySelector(".apexcharts-series[rel='".concat(e+1,"']")),s=parseInt(a.getAttribute("rel"),10)-1),t?[{cs:r.globals.collapsedSeries,csi:r.globals.collapsedSeriesIndices},{cs:r.globals.ancillaryCollapsedSeries,csi:r.globals.ancillaryCollapsedSeriesIndices}].forEach(function(e){i.riseCollapsedSeries(e.cs,e.csi,s)}):this.hideSeries({seriesEl:a,realIndex:s})}else{var n=r.globals.dom.Paper.findOne(" .apexcharts-series[rel='".concat(e+1,"'] path")),o=r.config.chart.type;if("pie"===o||"polarArea"===o||"donut"===o){var l=r.config.plotOptions.pie.donut.labels;new Di(this.lgCtx.ctx).pathMouseDown(n,null),this.lgCtx.ctx.pie.printDataLabelsInner(n.node,l)}n.fire("click")}}},{key:"getSeriesAfterCollapsing",value:function(e){var t=e.realIndex,i=this.w,r=i.globals,a=w.clone(i.config.series);if(r.axisCharts){var s=i.config.yaxis[r.seriesYAxisReverseMap[t]],n={index:t,data:a[t].data.slice(),type:a[t].type||i.config.chart.type};if(s&&s.show&&s.showAlways)r.ancillaryCollapsedSeriesIndices.indexOf(t)<0&&(r.ancillaryCollapsedSeries.push(n),r.ancillaryCollapsedSeriesIndices.push(t));else if(r.collapsedSeriesIndices.indexOf(t)<0){r.collapsedSeries.push(n),r.collapsedSeriesIndices.push(t);var o=r.risingSeries.indexOf(t);r.risingSeries.splice(o,1)}}else r.collapsedSeries.push({index:t,data:a[t]}),r.collapsedSeriesIndices.push(t);return r.allSeriesCollapsed=r.collapsedSeries.length+r.ancillaryCollapsedSeries.length===i.config.series.length,this._getSeriesBasedOnCollapsedState(a)}},{key:"hideSeries",value:function(e){for(var t=e.seriesEl,i=e.realIndex,r=this.w,a=this.getSeriesAfterCollapsing({realIndex:i}),s=t.childNodes,n=0;n<s.length;n++)s[n].classList.contains("apexcharts-series-markers-wrap")&&(s[n].classList.contains("apexcharts-hide")?s[n].classList.remove("apexcharts-hide"):s[n].classList.add("apexcharts-hide"));this.lgCtx.ctx.updateHelpers._updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled)}},{key:"riseCollapsedSeries",value:function(e,t,i){var r=this.w,a=w.clone(r.config.series);if(e.length>0){for(var s=0;s<e.length;s++)e[s].index===i&&(r.globals.axisCharts?a[i].data=e[s].data.slice():a[i]=e[s].data,"number"!=typeof a[i]&&(a[i].hidden=!1),e.splice(s,1),t.splice(s,1),r.globals.risingSeries.push(i));a=this._getSeriesBasedOnCollapsedState(a),this.lgCtx.ctx.updateHelpers._updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled)}}},{key:"_getSeriesBasedOnCollapsedState",value:function(e){var t=this.w,i=0;return t.globals.axisCharts?e.forEach(function(r,a){t.globals.collapsedSeriesIndices.indexOf(a)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(a)<0||(e[a].data=[],i++)}):e.forEach(function(r,a){!t.globals.collapsedSeriesIndices.indexOf(a)<0&&(e[a]=0,i++)}),t.globals.allSeriesCollapsed=i===e.length,e}}]),e}(),mr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed="bar"===this.w.config.chart.type&&this.w.config.plotOptions.bar.distributed&&1===this.w.config.series.length,this.legendHelpers=new br(this)}return o(e,[{key:"init",value:function(){var e=this.w,t=e.globals,i=e.config,r=i.legend.showForSingleSeries&&1===t.series.length||this.isBarsDistributed||t.series.length>1;if(this.legendHelpers.appendToForeignObject(),(r||!t.axisCharts)&&i.legend.show){for(;t.dom.elLegendWrap.firstChild;)t.dom.elLegendWrap.removeChild(t.dom.elLegendWrap.firstChild);this.drawLegends(),"bottom"===i.legend.position||"top"===i.legend.position?this.legendAlignHorizontal():"right"!==i.legend.position&&"left"!==i.legend.position||this.legendAlignVertical()}}},{key:"createLegendMarker",value:function(e){var t=e.i,i=e.fillcolor,r=this.w,a=document.createElement("span");a.classList.add("apexcharts-legend-marker");var s=r.config.legend.markers.shape||r.config.markers.shape,n=s;Array.isArray(s)&&(n=s[t]);var o=Array.isArray(r.config.legend.markers.size)?parseFloat(r.config.legend.markers.size[t]):parseFloat(r.config.legend.markers.size),l=Array.isArray(r.config.legend.markers.offsetX)?parseFloat(r.config.legend.markers.offsetX[t]):parseFloat(r.config.legend.markers.offsetX),c=Array.isArray(r.config.legend.markers.offsetY)?parseFloat(r.config.legend.markers.offsetY[t]):parseFloat(r.config.legend.markers.offsetY),d=Array.isArray(r.config.legend.markers.strokeWidth)?parseFloat(r.config.legend.markers.strokeWidth[t]):parseFloat(r.config.legend.markers.strokeWidth),h=a.style;if(h.height=2*(o+d)+"px",h.width=2*(o+d)+"px",h.left=l+"px",h.top=c+"px",r.config.legend.markers.customHTML)h.background="transparent",h.color=i[t],Array.isArray(r.config.legend.markers.customHTML)?r.config.legend.markers.customHTML[t]&&(a.innerHTML=r.config.legend.markers.customHTML[t]()):a.innerHTML=r.config.legend.markers.customHTML();else{var u=new Ui(this.ctx).getMarkerConfig({cssClass:"apexcharts-legend-marker apexcharts-marker apexcharts-marker-".concat(n),seriesIndex:t,strokeWidth:d,size:o}),g=window.SVG().addTo(a).size("100%","100%"),p=new Di(this.ctx).drawMarker(0,0,f(f({},u),{},{pointFillColor:Array.isArray(i)?i[t]:u.pointFillColor,shape:n}));r.globals.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(function(e){e.node.classList.contains("apexcharts-marker-triangle")?e.node.style.transform="translate(50%, 45%)":e.node.style.transform="translate(50%, 50%)"}),g.add(p)}return a}},{key:"drawLegends",value:function(){var e=this,t=this,i=this.w,r=i.config.legend.fontFamily,a=i.globals.seriesNames,s=i.config.legend.markers.fillColors?i.config.legend.markers.fillColors.slice():i.globals.colors.slice();if("heatmap"===i.config.chart.type){var n=i.config.plotOptions.heatmap.colorScale.ranges;a=n.map(function(e){return e.name?e.name:e.from+" - "+e.to}),s=n.map(function(e){return e.color})}else this.isBarsDistributed&&(a=i.globals.labels.slice());i.config.legend.customLegendItems.length&&(a=i.config.legend.customLegendItems);var o=i.globals.legendFormatter,l=i.config.legend.inverseOrder,c=[];i.globals.seriesGroups.length>1&&i.config.legend.clusterGroupedSeries&&i.globals.seriesGroups.forEach(function(e,t){c[t]=document.createElement("div"),c[t].classList.add("apexcharts-legend-group","apexcharts-legend-group-".concat(t)),"horizontal"===i.config.legend.clusterGroupedSeriesOrientation?i.globals.dom.elLegendWrap.classList.add("apexcharts-legend-group-horizontal"):c[t].classList.add("apexcharts-legend-group-vertical")});for(var d=function(t){var n,l=o(a[t],{seriesIndex:t,w:i}),d=!1,h=!1;if(i.globals.collapsedSeries.length>0)for(var u=0;u<i.globals.collapsedSeries.length;u++)i.globals.collapsedSeries[u].index===t&&(d=!0);if(i.globals.ancillaryCollapsedSeriesIndices.length>0)for(var g=0;g<i.globals.ancillaryCollapsedSeriesIndices.length;g++)i.globals.ancillaryCollapsedSeriesIndices[g]===t&&(h=!0);var p=e.createLegendMarker({i:t,fillcolor:s});Di.setAttrs(p,{rel:t+1,"data:collapsed":d||h}),(d||h)&&p.classList.add("apexcharts-inactive-legend");var f=document.createElement("div"),b=document.createElement("span");b.classList.add("apexcharts-legend-text"),b.innerHTML=Array.isArray(l)?l.join(" "):l;var m=i.config.legend.labels.useSeriesColors?i.globals.colors[t]:Array.isArray(i.config.legend.labels.colors)?null===(n=i.config.legend.labels.colors)||void 0===n?void 0:n[t]:i.config.legend.labels.colors;m||(m=i.config.chart.foreColor),b.style.color=m,b.style.fontSize=parseFloat(i.config.legend.fontSize)+"px",b.style.fontWeight=i.config.legend.fontWeight,b.style.fontFamily=r||i.config.chart.fontFamily,Di.setAttrs(b,{rel:t+1,i:t,"data:default-text":encodeURIComponent(l),"data:collapsed":d||h}),f.appendChild(p),f.appendChild(b);var x=new Bi(e.ctx);i.config.legend.showForZeroSeries||0===x.getSeriesTotalByIndex(t)&&x.seriesHaveSameValues(t)&&!x.isSeriesNull(t)&&-1===i.globals.collapsedSeriesIndices.indexOf(t)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(t)&&f.classList.add("apexcharts-hidden-zero-series"),i.config.legend.showForNullSeries||x.isSeriesNull(t)&&-1===i.globals.collapsedSeriesIndices.indexOf(t)&&-1===i.globals.ancillaryCollapsedSeriesIndices.indexOf(t)&&f.classList.add("apexcharts-hidden-null-series"),c.length?i.globals.seriesGroups.forEach(function(e,r){var a;e.includes(null===(a=i.config.series[t])||void 0===a?void 0:a.name)&&(i.globals.dom.elLegendWrap.appendChild(c[r]),c[r].appendChild(f))}):i.globals.dom.elLegendWrap.appendChild(f),i.globals.dom.elLegendWrap.classList.add("apexcharts-align-".concat(i.config.legend.horizontalAlign)),i.globals.dom.elLegendWrap.classList.add("apx-legend-position-"+i.config.legend.position),f.classList.add("apexcharts-legend-series"),f.style.margin="".concat(i.config.legend.itemMargin.vertical,"px ").concat(i.config.legend.itemMargin.horizontal,"px"),i.globals.dom.elLegendWrap.style.width=i.config.legend.width?i.config.legend.width+"px":"",i.globals.dom.elLegendWrap.style.height=i.config.legend.height?i.config.legend.height+"px":"",Di.setAttrs(f,{rel:t+1,seriesName:w.escapeString(a[t]),"data:collapsed":d||h}),(d||h)&&f.classList.add("apexcharts-inactive-legend"),i.config.legend.onItemClick.toggleDataSeries||f.classList.add("apexcharts-no-click")},h=l?a.length-1:0;l?h>=0:h<=a.length-1;l?h--:h++)d(h);i.globals.dom.elWrap.addEventListener("click",t.onLegendClick,!0),i.config.legend.onItemHover.highlightDataSeries&&0===i.config.legend.customLegendItems.length&&(i.globals.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),i.globals.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0))}},{key:"setLegendWrapXY",value:function(e,t){var i=this.w,r=i.globals.dom.elLegendWrap,a=r.clientHeight,s=0,n=0;if("bottom"===i.config.legend.position)n=i.globals.svgHeight-Math.min(a,i.globals.svgHeight/2)-5;else if("top"===i.config.legend.position){var o=new fr(this.ctx),l=o.dimHelpers.getTitleSubtitleCoords("title").height,c=o.dimHelpers.getTitleSubtitleCoords("subtitle").height;n=(l>0?l-10:0)+(c>0?c-10:0)}r.style.position="absolute",s=s+e+i.config.legend.offsetX,n=n+t+i.config.legend.offsetY,r.style.left=s+"px",r.style.top=n+"px","right"===i.config.legend.position&&(r.style.left="auto",r.style.right=25+i.config.legend.offsetX+"px"),["width","height"].forEach(function(e){r.style[e]&&(r.style[e]=parseInt(i.config.legend[e],10)+"px")})}},{key:"legendAlignHorizontal",value:function(){var e=this.w;e.globals.dom.elLegendWrap.style.right=0;var t=new fr(this.ctx),i=t.dimHelpers.getTitleSubtitleCoords("title"),r=t.dimHelpers.getTitleSubtitleCoords("subtitle"),a=0;"top"===e.config.legend.position&&(a=i.height+r.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(20,a)}},{key:"legendAlignVertical",value:function(){var e=this.w,t=this.legendHelpers.getLegendDimensions(),i=0;"left"===e.config.legend.position&&(i=20),"right"===e.config.legend.position&&(i=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(i,20)}},{key:"onLegendHovered",value:function(e){var t=this.w,i=e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker");if("heatmap"===t.config.chart.type||this.isBarsDistributed){if(i){var r=parseInt(e.target.getAttribute("rel"),10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,r,this.w]),new $i(this.ctx).highlightRangeInSeries(e,e.target)}}else!e.target.classList.contains("apexcharts-inactive-legend")&&i&&new $i(this.ctx).toggleSeriesOnHover(e,e.target)}},{key:"onLegendClick",value:function(e){var t=this.w;if(!t.config.legend.customLegendItems.length&&(e.target.classList.contains("apexcharts-legend-series")||e.target.classList.contains("apexcharts-legend-text")||e.target.classList.contains("apexcharts-legend-marker"))){var i=parseInt(e.target.getAttribute("rel"),10)-1,r="true"===e.target.getAttribute("data:collapsed"),a=this.w.config.chart.events.legendClick;"function"==typeof a&&a(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);var s=this.w.config.legend.markers.onClick;"function"==typeof s&&e.target.classList.contains("apexcharts-legend-marker")&&(s(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),"treemap"!==t.config.chart.type&&"heatmap"!==t.config.chart.type&&!this.isBarsDistributed&&t.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,r)}}}]),e}(),xr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=i.globals.minX,this.maxX=i.globals.maxX}return o(e,[{key:"createToolbar",value:function(){var e=this,t=this.w,i=function(){return document.createElement("div")},r=i();if(r.setAttribute("class","apexcharts-toolbar"),r.style.top=t.config.chart.toolbar.offsetY+"px",r.style.right=3-t.config.chart.toolbar.offsetX+"px",t.globals.dom.elWrap.appendChild(r),this.elZoom=i(),this.elZoomIn=i(),this.elZoomOut=i(),this.elPan=i(),this.elSelection=i(),this.elZoomReset=i(),this.elMenuIcon=i(),this.elMenu=i(),this.elCustomIcons=[],this.t=t.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(var a=0;a<this.t.customIcons.length;a++)this.elCustomIcons.push(i());var s=[],n=function(i,r,a){var n=i.toLowerCase();e.t[n]&&t.config.chart.zoom.enabled&&s.push({el:r,icon:"string"==typeof e.t[n]?e.t[n]:a,title:e.localeValues[i],class:"apexcharts-".concat(n,"-icon")})};n("zoomIn",this.elZoomIn,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M13 7h-2v4H7v2h4v4h2v-4h4v-2h-4V7zm-1-5C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n'),n("zoomOut",this.elZoomOut,'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M7 11v2h10v-2H7zm5-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"/>\n</svg>\n');var o=function(i){e.t[i]&&t.config.chart[i].enabled&&s.push({el:"zoom"===i?e.elZoom:e.elSelection,icon:"string"==typeof e.t[i]?e.t[i]:"zoom"===i?'<svg xmlns="http://www.w3.org/2000/svg" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <path d="M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"/>\n    <path d="M0 0h24v24H0V0z" fill="none"/>\n    <path d="M12 10h-2v2H9v-2H7V9h2V7h1v2h2v1z"/>\n</svg>':'<svg fill="#6E8192" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M0 0h24v24H0z" fill="none"/>\n    <path d="M3 5h2V3c-1.1 0-2 .9-2 2zm0 8h2v-2H3v2zm4 8h2v-2H7v2zM3 9h2V7H3v2zm10-6h-2v2h2V3zm6 0v2h2c0-1.1-.9-2-2-2zM5 21v-2H3c0 1.1.9 2 2 2zm-2-4h2v-2H3v2zM9 3H7v2h2V3zm2 18h2v-2h-2v2zm8-8h2v-2h-2v2zm0 8c1.1 0 2-.9 2-2h-2v2zm0-12h2V7h-2v2zm0 8h2v-2h-2v2zm-4 4h2v-2h-2v2zm0-16h2V3h-2v2z"/>\n</svg>',title:e.localeValues["zoom"===i?"selectionZoom":"selection"],class:"apexcharts-".concat(i,"-icon")})};o("zoom"),o("selection"),this.t.pan&&t.config.chart.zoom.enabled&&s.push({el:this.elPan,icon:"string"==typeof this.t.pan?this.t.pan:'<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" fill="#000000" height="24" viewBox="0 0 24 24" width="24">\n    <defs>\n        <path d="M0 0h24v24H0z" id="a"/>\n    </defs>\n    <clipPath id="b">\n        <use overflow="visible" xlink:href="#a"/>\n    </clipPath>\n    <path clip-path="url(#b)" d="M23 5.5V20c0 2.2-1.8 4-4 4h-7.3c-1.08 0-2.1-.43-2.85-1.19L1 14.83s1.26-1.23 1.3-1.25c.22-.19.49-.29.79-.29.22 0 .42.06.6.16.04.01 4.31 2.46 4.31 2.46V4c0-.83.67-1.5 1.5-1.5S11 3.17 11 4v7h1V1.5c0-.83.67-1.5 1.5-1.5S15 .67 15 1.5V11h1V2.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5V11h1V5.5c0-.83.67-1.5 1.5-1.5s1.5.67 1.5 1.5z"/>\n</svg>',title:this.localeValues.pan,class:"apexcharts-pan-icon"}),n("reset",this.elZoomReset,'<svg fill="#000000" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg">\n    <path d="M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z"/>\n    <path d="M0 0h24v24H0z" fill="none"/>\n</svg>'),this.t.download&&s.push({el:this.elMenuIcon,icon:"string"==typeof this.t.download?this.t.download:'<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="none" d="M0 0h24v24H0V0z"/><path d="M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"/></svg>',title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(var l=0;l<this.elCustomIcons.length;l++)s.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});s.forEach(function(e,t){e.index&&w.moveIndexInArray(s,t,e.index)});for(var c=0;c<s.length;c++)Di.setAttrs(s[c].el,{class:s[c].class,title:s[c].title}),s[c].el.innerHTML=s[c].icon,r.appendChild(s[c].el);this._createHamburgerMenu(r),t.globals.zoomEnabled?this.elZoom.classList.add(this.selectedClass):t.globals.panEnabled?this.elPan.classList.add(this.selectedClass):t.globals.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}},{key:"_createHamburgerMenu",value:function(e){this.elMenuItems=[],e.appendChild(this.elMenu),Di.setAttrs(this.elMenu,{class:"apexcharts-menu"});for(var t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}],i=0;i<t.length;i++)this.elMenuItems.push(document.createElement("div")),this.elMenuItems[i].innerHTML=t[i].title,Di.setAttrs(this.elMenuItems[i],{class:"apexcharts-menu-item ".concat(t[i].name),title:t[i].title}),this.elMenu.appendChild(this.elMenuItems[i])}},{key:"addToolbarEventListeners",value:function(){var e=this;this.elZoomReset.addEventListener("click",this.handleZoomReset.bind(this)),this.elSelection.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),this.elZoom.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),this.elZoomIn.addEventListener("click",this.handleZoomIn.bind(this)),this.elZoomOut.addEventListener("click",this.handleZoomOut.bind(this)),this.elPan.addEventListener("click",this.togglePanning.bind(this)),this.elMenuIcon.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(function(t){t.classList.contains("exportSVG")?t.addEventListener("click",e.handleDownload.bind(e,"svg")):t.classList.contains("exportPNG")?t.addEventListener("click",e.handleDownload.bind(e,"png")):t.classList.contains("exportCSV")&&t.addEventListener("click",e.handleDownload.bind(e,"csv"))});for(var t=0;t<this.t.customIcons.length;t++)this.elCustomIcons[t].addEventListener("click",this.t.customIcons[t].click.bind(this,this.ctx,this.ctx.w))}},{key:"toggleZoomSelection",value:function(e){this.ctx.getSyncedCharts().forEach(function(t){t.ctx.toolbar.toggleOtherControls();var i="selection"===e?t.ctx.toolbar.elSelection:t.ctx.toolbar.elZoom,r="selection"===e?"selectionEnabled":"zoomEnabled";t.w.globals[r]=!t.w.globals[r],i.classList.contains(t.ctx.toolbar.selectedClass)?i.classList.remove(t.ctx.toolbar.selectedClass):i.classList.add(t.ctx.toolbar.selectedClass)})}},{key:"getToolbarIconsReference",value:function(){var e=this.w;this.elZoom||(this.elZoom=e.globals.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.globals.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.globals.dom.baseEl.querySelector(".apexcharts-selection-icon"))}},{key:"enableZoomPanFromToolbar",value:function(e){this.toggleOtherControls(),"pan"===e?this.w.globals.panEnabled=!0:this.w.globals.zoomEnabled=!0;var t="pan"===e?this.elPan:this.elZoom,i="pan"===e?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),i&&i.classList.remove(this.selectedClass)}},{key:"togglePanning",value:function(){this.ctx.getSyncedCharts().forEach(function(e){e.ctx.toolbar.toggleOtherControls(),e.w.globals.panEnabled=!e.w.globals.panEnabled,e.ctx.toolbar.elPan.classList.contains(e.ctx.toolbar.selectedClass)?e.ctx.toolbar.elPan.classList.remove(e.ctx.toolbar.selectedClass):e.ctx.toolbar.elPan.classList.add(e.ctx.toolbar.selectedClass)})}},{key:"toggleOtherControls",value:function(){var e=this,t=this.w;t.globals.panEnabled=!1,t.globals.zoomEnabled=!1,t.globals.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(function(t){t&&t.classList.remove(e.selectedClass)})}},{key:"handleZoomIn",value:function(){var e=this.w;e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY);var t=(this.minX+this.maxX)/2,i=(this.minX+t)/2,r=(this.maxX+t)/2,a=this._getNewMinXMaxX(i,r);e.globals.disableZoomIn||this.zoomUpdateOptions(a.minX,a.maxX)}},{key:"handleZoomOut",value:function(){var e=this.w;if(e.globals.isRangeBar&&(this.minX=e.globals.minY,this.maxX=e.globals.maxY),!("datetime"===e.config.xaxis.type&&new Date(this.minX).getUTCFullYear()<1e3)){var t=(this.minX+this.maxX)/2,i=this.minX-(t-this.minX),r=this.maxX-(t-this.maxX),a=this._getNewMinXMaxX(i,r);e.globals.disableZoomOut||this.zoomUpdateOptions(a.minX,a.maxX)}}},{key:"_getNewMinXMaxX",value:function(e,t){var i=this.w.config.xaxis.convertedCatToNumeric;return{minX:i?Math.floor(e):e,maxX:i?Math.floor(t):t}}},{key:"zoomUpdateOptions",value:function(e,t){var i=this.w;if(void 0!==e||void 0!==t){if(!(i.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=i.globals.dataPoints),t-e<2))){var r={min:e,max:t},a=this.getBeforeZoomRange(r);a&&(r=a.xaxis);var s={xaxis:r},n=w.clone(i.globals.initialConfig.yaxis);i.config.chart.group||(s.yaxis=n),this.w.globals.zoomed=!0,this.ctx.updateHelpers._updateOptions(s,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(r,n)}}else this.handleZoomReset()}},{key:"zoomCallback",value:function(e,t){"function"==typeof this.ev.zoomed&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t}),this.ctx.events.fireEvent("zoomed",{xaxis:e,yaxis:t}))}},{key:"getBeforeZoomRange",value:function(e,t){var i=null;return"function"==typeof this.ev.beforeZoom&&(i=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),i}},{key:"toggleMenu",value:function(){var e=this;window.setTimeout(function(){e.elMenu.classList.contains("apexcharts-menu-open")?e.elMenu.classList.remove("apexcharts-menu-open"):e.elMenu.classList.add("apexcharts-menu-open")},0)}},{key:"handleDownload",value:function(e){var t=this.w,i=new Ji(this.ctx);switch(e){case"svg":i.exportToSVG(this.ctx);break;case"png":i.exportToPng(this.ctx);break;case"csv":i.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter})}}},{key:"handleZoomReset",value:function(e){this.ctx.getSyncedCharts().forEach(function(e){var t=e.w;if(t.globals.lastXAxis.min=t.globals.initialConfig.xaxis.min,t.globals.lastXAxis.max=t.globals.initialConfig.xaxis.max,e.updateHelpers.revertDefaultAxisMinMax(),"function"==typeof t.config.chart.events.beforeResetZoom){var i=t.config.chart.events.beforeResetZoom(e,t);i&&e.updateHelpers.revertDefaultAxisMinMax(i)}"function"==typeof t.config.chart.events.zoomed&&e.ctx.toolbar.zoomCallback({min:t.config.xaxis.min,max:t.config.xaxis.max}),t.globals.zoomed=!1;var r=e.ctx.series.emptyCollapsedSeries(w.clone(t.globals.initialSeries));e.updateHelpers._updateSeries(r,t.config.chart.animations.dynamicAnimation.enabled)})}},{key:"destroy",value:function(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}]),e}(),vr=function(){u(t,xr);var e=c(t);function t(i){var r;return s(this,t),(r=e.call(this,i)).ctx=i,r.w=i.w,r.dragged=!1,r.graphics=new Di(r.ctx),r.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],r.clientX=0,r.clientY=0,r.startX=0,r.endX=0,r.dragX=0,r.startY=0,r.endY=0,r.dragY=0,r.moveDirection="none",r.debounceTimer=null,r.debounceDelay=100,r.wheelDelay=400,r}return o(t,[{key:"init",value:function(e){var t=this,i=e.xyRatios,r=this.w,a=this;this.xyRatios=i,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=r.globals.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new Se(0,0,r.globals.gridWidth,r.globals.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),r.globals.dom.Paper.add(this.zoomRect),r.globals.dom.Paper.add(this.selectionRect),"x"===r.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:r.globals.gridWidth,maxY:r.globals.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):"y"===r.config.chart.selection.type?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:r.globals.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=r.globals.dom.baseEl.querySelector("".concat(r.globals.chartClass," .apexcharts-svg")),this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(function(e){t.hoverArea.addEventListener(e,a.svgMouseEvents.bind(a,i),{capture:!1,passive:!0})}),r.config.chart.zoom.enabled&&r.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",a.mouseWheelEvent.bind(a),{capture:!1,passive:!1})}},{key:"destroy",value:function(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}},{key:"svgMouseEvents",value:function(e,t){var i=this.w,r=this.ctx.toolbar,a=i.globals.zoomEnabled?i.config.chart.zoom.type:i.config.chart.selection.type,s=i.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,r.enableZoomPanFromToolbar("pan"===s?"zoom":"pan")):this.shiftWasPressed&&(r.enableZoomPanFromToolbar(s),this.shiftWasPressed=!1),t.target){var n,o=t.target.classList;if(t.target.parentNode&&null!==t.target.parentNode&&(n=t.target.parentNode.classList),!(o.contains("apexcharts-legend-marker")||o.contains("apexcharts-legend-text")||n&&n.contains("apexcharts-toolbar"))){if(this.clientX="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientX:"touchend"===t.type?t.changedTouches[0].clientX:t.clientX,this.clientY="touchmove"===t.type||"touchstart"===t.type?t.touches[0].clientY:"touchend"===t.type?t.changedTouches[0].clientY:t.clientY,"mousedown"===t.type&&1===t.which||"touchstart"===t.type){var l=this.gridRect.getBoundingClientRect();this.startX=this.clientX-l.left-i.globals.barPadForNumericAxis,this.startY=this.clientY-l.top,this.dragged=!1,this.w.globals.mousedown=!0}("mousemove"===t.type&&1===t.which||"touchmove"===t.type)&&(this.dragged=!0,i.globals.panEnabled?(i.globals.selection=null,this.w.globals.mousedown&&this.panDragging({context:this,zoomtype:a,xyRatios:e})):(this.w.globals.mousedown&&i.globals.zoomEnabled||this.w.globals.mousedown&&i.globals.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:a}))),"mouseup"!==t.type&&"touchend"!==t.type&&"mouseleave"!==t.type||this.handleMouseUp({zoomtype:a}),this.makeSelectionRectDraggable()}}}},{key:"handleMouseUp",value:function(e){var t,i=e.zoomtype,r=e.isResized,a=this.w,s=null===(t=this.gridRect)||void 0===t?void 0:t.getBoundingClientRect();s&&(this.w.globals.mousedown||r)&&(this.endX=this.clientX-s.left-a.globals.barPadForNumericAxis,this.endY=this.clientY-s.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(a.globals.zoomEnabled||a.globals.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:i})),a.globals.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.globals.mousedown=!1}},{key:"mouseWheelEvent",value:function(e){var t=this,i=this.w;e.preventDefault();var r=Date.now();r-i.globals.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),i.globals.lastWheelExecution=r),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(function(){r-i.globals.lastWheelExecution>t.wheelDelay&&(t.executeMouseWheelZoom(e),i.globals.lastWheelExecution=r)},this.debounceDelay)}},{key:"executeMouseWheelZoom",value:function(e){var t,i=this.w;this.minX=i.globals.isRangeBar?i.globals.minY:i.globals.minX,this.maxX=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;var r=null===(t=this.gridRect)||void 0===t?void 0:t.getBoundingClientRect();if(r){var a,s,n,o=(e.clientX-r.left)/r.width,l=this.minX,c=this.maxX,d=c-l;if(e.deltaY<0){var h=l+o*d;s=h-(a=.5*d)/2,n=h+a/2}else s=l-(a=1.5*d)/2,n=c+a/2;if(!i.globals.isRangeBar){s=Math.max(s,i.globals.initialMinX),n=Math.min(n,i.globals.initialMaxX);var u=.01*(i.globals.initialMaxX-i.globals.initialMinX);if(n-s<u){var g=(s+n)/2;s=g-u/2,n=g+u/2}}var p=this._getNewMinXMaxX(s,n);isNaN(p.minX)||isNaN(p.maxX)||this.zoomUpdateOptions(p.minX,p.maxX)}}},{key:"makeSelectionRectDraggable",value:function(){var e=this,t=this.w;if(this.selectionRect){var i=this.selectionRect.node.getBoundingClientRect();i.width>0&&i.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:function(){},updateRot:function(){},createHandle:function(e,t,i,r,a){return"l"===a||"r"===a?e.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):e.circle(0)},updateHandle:function(e,t){return e.center(t[0],t[1])}}).resize().on("resize",function(){var i=t.globals.zoomEnabled?t.config.chart.zoom.type:t.config.chart.selection.type;e.handleMouseUp({zoomtype:i,isResized:!0})}))}}},{key:"preselectedSelection",value:function(){var e=this.w,t=this.xyRatios;if(!e.globals.zoomEnabled)if(void 0!==e.globals.selection&&null!==e.globals.selection)this.drawSelectionRect(f(f({},e.globals.selection),{},{translateX:e.globals.translateX,translateY:e.globals.translateY}));else if(void 0!==e.config.chart.selection.xaxis.min&&void 0!==e.config.chart.selection.xaxis.max){var i=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,r=e.globals.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-i;e.globals.isRangeBar&&(i=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,r=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);var a={x:i,y:0,width:r,height:e.globals.gridHeight,translateX:e.globals.translateX,translateY:e.globals.translateY,selectionEnabled:!0};this.drawSelectionRect(a),this.makeSelectionRectDraggable(),"function"==typeof e.config.chart.events.selection&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}},{key:"drawSelectionRect",value:function(e){var t=e.x,i=e.y,r=e.width,a=e.height,s=e.translateX,n=void 0===s?0:s,o=e.translateY,l=void 0===o?0:o,c=this.w,d=this.zoomRect,h=this.selectionRect;if(this.dragged||null!==c.globals.selection){var u={transform:"translate("+n+", "+l+")"};c.globals.zoomEnabled&&this.dragged&&(r<0&&(r=1),d.attr({x:t,y:i,width:r,height:a,fill:c.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":c.config.chart.zoom.zoomedArea.fill.opacity,stroke:c.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":c.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":c.config.chart.zoom.zoomedArea.stroke.opacity}),Di.setAttrs(d.node,u)),c.globals.selectionEnabled&&(h.attr({x:t,y:i,width:r>0?r:0,height:a>0?a:0,fill:c.config.chart.selection.fill.color,"fill-opacity":c.config.chart.selection.fill.opacity,stroke:c.config.chart.selection.stroke.color,"stroke-width":c.config.chart.selection.stroke.width,"stroke-dasharray":c.config.chart.selection.stroke.dashArray,"stroke-opacity":c.config.chart.selection.stroke.opacity}),Di.setAttrs(h.node,u))}}},{key:"hideSelectionRect",value:function(e){e&&e.attr({x:0,y:0,width:0,height:0})}},{key:"selectionDrawing",value:function(e){var t=e.context,i=e.zoomtype,r=this.w,a=t,s=this.gridRect.getBoundingClientRect(),n=a.startX-1,o=a.startY,l=!1,c=!1,d=a.clientX-s.left-r.globals.barPadForNumericAxis,h=a.clientY-s.top,u=d-n,g=h-o,p={translateX:r.globals.translateX,translateY:r.globals.translateY};return Math.abs(u+n)>r.globals.gridWidth?u=r.globals.gridWidth-n:d<0&&(u=n),n>d&&(l=!0,u=Math.abs(u)),o>h&&(c=!0,g=Math.abs(g)),p=f(f({},p="x"===i?{x:l?n-u:n,y:0,width:u,height:r.globals.gridHeight}:"y"===i?{x:0,y:c?o-g:o,width:r.globals.gridWidth,height:g}:{x:l?n-u:n,y:c?o-g:o,width:u,height:g}),{},{translateX:r.globals.translateX,translateY:r.globals.translateY}),a.drawSelectionRect(p),a.selectionDragging("resizing"),p}},{key:"selectionDragging",value:function(e,t){var i=this,r=this.w;if(t){t.preventDefault();var a=t.detail,s=a.handler,n=a.box,o=n.x,l=n.y;o<this.constraints.x&&(o=this.constraints.x),l<this.constraints.y&&(l=this.constraints.y),n.x2>this.constraints.x2&&(o=this.constraints.x2-n.w),n.y2>this.constraints.y2&&(l=this.constraints.y2-n.h),s.move(o,l);var c=this.xyRatios,d=this.selectionRect,h=0;"resizing"===e&&(h=30);var u=function(e){return parseFloat(d.node.getAttribute(e))},g={x:u("x"),y:u("y"),width:u("width"),height:u("height")};r.globals.selection=g,"function"==typeof r.config.chart.events.selection&&r.globals.selectionEnabled&&(clearTimeout(this.w.globals.selectionResizeTimer),this.w.globals.selectionResizeTimer=window.setTimeout(function(){var e,t,a,s,n=i.gridRect.getBoundingClientRect(),o=d.node.getBoundingClientRect();r.globals.isRangeBar?(e=r.globals.yAxisScale[0].niceMin+(o.left-n.left)*c.invertedYRatio,t=r.globals.yAxisScale[0].niceMin+(o.right-n.left)*c.invertedYRatio,a=0,s=1):(e=r.globals.xAxisScale.niceMin+(o.left-n.left)*c.xRatio,t=r.globals.xAxisScale.niceMin+(o.right-n.left)*c.xRatio,a=r.globals.yAxisScale[0].niceMin+(n.bottom-o.bottom)*c.yRatio[0],s=r.globals.yAxisScale[0].niceMax-(o.top-n.top)*c.yRatio[0]);var l={xaxis:{min:e,max:t},yaxis:{min:a,max:s}};r.config.chart.events.selection(i.ctx,l),r.config.chart.brush.enabled&&void 0!==r.config.chart.events.brushScrolled&&r.config.chart.events.brushScrolled(i.ctx,l)},h))}}},{key:"selectionDrawn",value:function(e){var t,i,r=e.context,a=e.zoomtype,s=this.w,n=r,o=this.xyRatios,l=this.ctx.toolbar,c=s.globals.zoomEnabled?n.zoomRect.node.getBoundingClientRect():n.selectionRect.node.getBoundingClientRect(),d=n.gridRect.getBoundingClientRect(),h=c.left-d.left-s.globals.barPadForNumericAxis,u=c.right-d.left-s.globals.barPadForNumericAxis,g=c.top-d.top,p=c.bottom-d.top;s.globals.isRangeBar?(t=s.globals.yAxisScale[0].niceMin+h*o.invertedYRatio,i=s.globals.yAxisScale[0].niceMin+u*o.invertedYRatio):(t=s.globals.xAxisScale.niceMin+h*o.xRatio,i=s.globals.xAxisScale.niceMin+u*o.xRatio);var f=[],b=[];if(s.config.yaxis.forEach(function(e,t){var i=s.globals.seriesYAxisMap[t][0],r=s.globals.yAxisScale[t].niceMax-o.yRatio[i]*g,a=s.globals.yAxisScale[t].niceMax-o.yRatio[i]*p;f.push(r),b.push(a)}),n.dragged&&(n.dragX>10||n.dragY>10)&&t!==i)if(s.globals.zoomEnabled){var m=w.clone(s.globals.initialConfig.yaxis),x=w.clone(s.globals.initialConfig.xaxis);if(s.globals.zoomed=!0,s.config.xaxis.convertedCatToNumeric&&(t=Math.floor(t),i=Math.floor(i),t<1&&(t=1,i=s.globals.dataPoints),i-t<2&&(i=t+1)),"xy"!==a&&"x"!==a||(x={min:t,max:i}),"xy"!==a&&"y"!==a||m.forEach(function(e,t){m[t].min=b[t],m[t].max=f[t]}),l){var v=l.getBeforeZoomRange(x,m);v&&(x=v.xaxis?v.xaxis:x,m=v.yaxis?v.yaxis:m)}var y={xaxis:x};s.config.chart.group||(y.yaxis=m),n.ctx.updateHelpers._updateOptions(y,!1,n.w.config.chart.animations.dynamicAnimation.enabled),"function"==typeof s.config.chart.events.zoomed&&l.zoomCallback(x,m)}else if(s.globals.selectionEnabled){var A,k=null;A={min:t,max:i},"xy"!==a&&"y"!==a||(k=w.clone(s.config.yaxis)).forEach(function(e,t){k[t].min=b[t],k[t].max=f[t]}),s.globals.selection=n.selection,"function"==typeof s.config.chart.events.selection&&s.config.chart.events.selection(n.ctx,{xaxis:A,yaxis:k})}}},{key:"panDragging",value:function(e){var t=e.context,i=this.w,r=t;if(void 0!==i.globals.lastClientPosition.x){var a=i.globals.lastClientPosition.x-r.clientX,s=i.globals.lastClientPosition.y-r.clientY;Math.abs(a)>Math.abs(s)&&a>0?this.moveDirection="left":Math.abs(a)>Math.abs(s)&&a<0?this.moveDirection="right":Math.abs(s)>Math.abs(a)&&s>0?this.moveDirection="up":Math.abs(s)>Math.abs(a)&&s<0&&(this.moveDirection="down")}i.globals.lastClientPosition={x:r.clientX,y:r.clientY};var n=i.globals.isRangeBar?i.globals.minY:i.globals.minX,o=i.globals.isRangeBar?i.globals.maxY:i.globals.maxX;r.panScrolled(n,o)}},{key:"panScrolled",value:function(e,t){var i=this.w,r=this.xyRatios,a=w.clone(i.globals.initialConfig.yaxis),s=r.xRatio,n=i.globals.minX,o=i.globals.maxX;i.globals.isRangeBar&&(s=r.invertedYRatio,n=i.globals.minY,o=i.globals.maxY),"left"===this.moveDirection?(e=n+i.globals.gridWidth/15*s,t=o+i.globals.gridWidth/15*s):"right"===this.moveDirection&&(e=n-i.globals.gridWidth/15*s,t=o-i.globals.gridWidth/15*s),i.globals.isRangeBar||(e<i.globals.initialMinX||t>i.globals.initialMaxX)&&(e=n,t=o);var l={xaxis:{min:e,max:t}};i.config.chart.group||(l.yaxis=a),this.updateScrolledChart(l,e,t)}},{key:"updateScrolledChart",value:function(e,t,i){var r=this.w;if(this.ctx.updateHelpers._updateOptions(e,!1,!1),"function"==typeof r.config.chart.events.scrolled){var a={xaxis:{min:t,max:i}};r.config.chart.events.scrolled(this.ctx,a),this.ctx.events.fireEvent("scrolled",a)}}}]),t}(),yr=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx}return o(e,[{key:"getNearestValues",value:function(e){var t=e.hoverArea,i=e.elGrid,r=e.clientX,a=e.clientY,s=this.w,n=i.getBoundingClientRect(),o=n.width,l=n.height,c=o/(s.globals.dataPoints-1),d=l/s.globals.dataPoints,h=this.hasBars();!s.globals.comboCharts&&!h||s.config.xaxis.convertedCatToNumeric||(c=o/s.globals.dataPoints);var u=r-n.left-s.globals.barPadForNumericAxis,g=a-n.top;u<0||g<0||u>o||g>l?(t.classList.remove("hovering-zoom"),t.classList.remove("hovering-pan")):s.globals.zoomEnabled?(t.classList.remove("hovering-pan"),t.classList.add("hovering-zoom")):s.globals.panEnabled&&(t.classList.remove("hovering-zoom"),t.classList.add("hovering-pan"));var p=Math.round(u/c),f=Math.floor(g/d);h&&!s.config.xaxis.convertedCatToNumeric&&(p=Math.ceil(u/c),p-=1);var b=null,m=null,x=s.globals.seriesXvalues.map(function(e){return e.filter(function(e){return w.isNumber(e)})}),v=s.globals.seriesYvalues.map(function(e){return e.filter(function(e){return w.isNumber(e)})});if(s.globals.isXNumeric){var y=this.ttCtx.getElGrid().getBoundingClientRect(),A=u*(y.width/o),k=g*(y.height/l);b=(m=this.closestInMultiArray(A,k,x,v)).index,p=m.j,null!==b&&s.globals.hasNullValues&&(x=s.globals.seriesXvalues[b],p=(m=this.closestInArray(A,x)).j)}return s.globals.capturedSeriesIndex=null===b?-1:b,(!p||p<1)&&(p=0),s.globals.isBarHorizontal?s.globals.capturedDataPointIndex=f:s.globals.capturedDataPointIndex=p,{capturedSeries:b,j:s.globals.isBarHorizontal?f:p,hoverX:u,hoverY:g}}},{key:"getFirstActiveXArray",value:function(e){for(var t=this.w,i=0,r=e.map(function(e,t){return e.length>0?t:-1}),a=0;a<r.length;a++)if(-1!==r[a]&&-1===t.globals.collapsedSeriesIndices.indexOf(a)&&-1===t.globals.ancillaryCollapsedSeriesIndices.indexOf(a)){i=r[a];break}return i}},{key:"closestInMultiArray",value:function(e,t,i,r){for(var a,s=this.w,n=1/0,o=null,l=null,c=0;c<i.length;c++)if(a=c,-1===s.globals.collapsedSeriesIndices.indexOf(a)&&-1===s.globals.ancillaryCollapsedSeriesIndices.indexOf(a))for(var d=i[c],h=r[c],u=Math.min(d.length,h.length),g=0;g<u;g++){var p=e-d[g],f=Math.sqrt(p*p);if(!s.globals.allSeriesHasEqualX){var b=t-h[g];f=Math.sqrt(p*p+b*b)}f<n&&(n=f,o=c,l=g)}return{index:o,j:l}}},{key:"closestInArray",value:function(e,t){for(var i=t[0],r=null,a=Math.abs(e-i),s=0;s<t.length;s++){var n=Math.abs(e-t[s]);n<a&&(a=n,r=s)}return{j:r}}},{key:"isXoverlap",value:function(e){var t=[],i=this.w.globals.seriesX.filter(function(e){return void 0!==e[0]});if(i.length>0)for(var r=0;r<i.length-1;r++)void 0!==i[r][e]&&void 0!==i[r+1][e]&&i[r][e]!==i[r+1][e]&&t.push("unEqual");return 0===t.length}},{key:"isInitialSeriesSameLen",value:function(){for(var e=!0,t=this.w.globals.initialSeries,i=0;i<t.length-1;i++)if(t[i].data.length!==t[i+1].data.length){e=!1;break}return e}},{key:"getBarsHeight",value:function(e){return x(e).reduce(function(e,t){return e+t.getBBox().height},0)}},{key:"getElMarkers",value:function(e){return"number"==typeof e?this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-series-markers-wrap > *")):this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}},{key:"getAllMarkers",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap");i=x(i),t&&(i=i.filter(function(t){var i=Number(t.getAttribute("data:realIndex"));return-1===e.w.globals.collapsedSeriesIndices.indexOf(i)})),i.sort(function(e,t){var i=Number(e.getAttribute("data:realIndex")),r=Number(t.getAttribute("data:realIndex"));return r<i?1:r>i?-1:0});var r=[];return i.forEach(function(e){r.push(e.querySelector(".apexcharts-marker"))}),r}},{key:"hasMarkers",value:function(e){return this.getElMarkers(e).length>0}},{key:"getPathFromPoint",value:function(e,t){var i=Number(e.getAttribute("cx")),r=Number(e.getAttribute("cy")),a=e.getAttribute("shape");return new Di(this.ctx).getMarkerPath(i,r,a,t)}},{key:"getElBars",value:function(){return this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-rangebar-series")}},{key:"hasBars",value:function(){return this.getElBars().length>0}},{key:"getHoverMarkerSize",value:function(e){var t=this.w,i=t.config.markers.hover.size;return void 0===i&&(i=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),i}},{key:"toggleAllTooltipSeriesGroups",value:function(e){var t=this.w,i=this.ttCtx;0===i.allTooltipSeriesGroups.length&&(i.allTooltipSeriesGroups=t.globals.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));for(var r=i.allTooltipSeriesGroups,a=0;a<r.length;a++)"enable"===e?(r[a].classList.add("apexcharts-active"),r[a].style.display=t.config.tooltip.items.display):(r[a].classList.remove("apexcharts-active"),r[a].style.display="none")}}]),e}(),Ar=function(){function e(t){s(this,e),this.w=t.w,this.ctx=t.ctx,this.ttCtx=t,this.tooltipUtil=new yr(t)}return o(e,[{key:"drawSeriesTexts",value:function(e){var t=e.shared,i=void 0===t||t,r=e.ttItems,a=e.i,s=void 0===a?0:a,n=e.j,o=void 0===n?null:n,l=e.y1,c=e.y2,d=e.e,h=this.w;void 0!==h.config.tooltip.custom?this.handleCustomTooltip({i:s,j:o,y1:l,y2:c,w:h}):this.toggleActiveInactiveSeries(i,s);var u=this.getValuesToPrint({i:s,j:o});this.printLabels({i:s,j:o,values:u,ttItems:r,shared:i,e:d});var g=this.ttCtx.getElTooltip();this.ttCtx.tooltipRect.ttWidth=g.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=g.getBoundingClientRect().height}},{key:"printLabels",value:function(e){var t,i=this,r=e.i,a=e.j,s=e.values,n=e.ttItems,o=e.shared,l=e.e,c=this.w,d=[],h=function(e){return c.globals.seriesGoals[e]&&c.globals.seriesGoals[e][a]&&Array.isArray(c.globals.seriesGoals[e][a])},u=s.xVal,g=s.zVal,p=s.xAxisTTVal,b="",m=c.globals.colors[r];null!==a&&c.config.plotOptions.bar.distributed&&(m=c.globals.colors[a]);for(var x=function(e,s){var x=i.getFormatters(r);b=i.getSeriesName({fn:x.yLbTitleFormatter,index:r,seriesIndex:r,j:a}),"treemap"===c.config.chart.type&&(b=x.yLbTitleFormatter(String(c.config.series[r].data[a].x),{series:c.globals.series,seriesIndex:r,dataPointIndex:a,w:c}));var v=c.config.tooltip.inverseOrder?s:e;if(c.globals.axisCharts){var y=function(e){var t,i,r,s;return c.globals.isRangeData?x.yLbFormatter(null===(t=c.globals.seriesRangeStart)||void 0===t||null===(i=t[e])||void 0===i?void 0:i[a],{series:c.globals.seriesRangeStart,seriesIndex:e,dataPointIndex:a,w:c})+" - "+x.yLbFormatter(null===(r=c.globals.seriesRangeEnd)||void 0===r||null===(s=r[e])||void 0===s?void 0:s[a],{series:c.globals.seriesRangeEnd,seriesIndex:e,dataPointIndex:a,w:c}):x.yLbFormatter(c.globals.series[e][a],{series:c.globals.series,seriesIndex:e,dataPointIndex:a,w:c})};if(o)x=i.getFormatters(v),b=i.getSeriesName({fn:x.yLbTitleFormatter,index:v,seriesIndex:r,j:a}),m=c.globals.colors[v],t=y(v),h(v)&&(d=c.globals.seriesGoals[v][a].map(function(e){return{attrs:e,val:x.yLbFormatter(e.value,{seriesIndex:v,dataPointIndex:a,w:c})}}));else{var A,w=null==l||null===(A=l.target)||void 0===A?void 0:A.getAttribute("fill");w&&(-1!==w.indexOf("url")?-1!==w.indexOf("Pattern")&&(m=c.globals.dom.baseEl.querySelector(w.substr(4).slice(0,-1)).childNodes[0].getAttribute("stroke")):m=w),t=y(r),h(r)&&Array.isArray(c.globals.seriesGoals[r][a])&&(d=c.globals.seriesGoals[r][a].map(function(e){return{attrs:e,val:x.yLbFormatter(e.value,{seriesIndex:r,dataPointIndex:a,w:c})}}))}}null===a&&(t=x.yLbFormatter(c.globals.series[r],f(f({},c),{},{seriesIndex:r,dataPointIndex:r}))),i.DOMHandling({i:r,t:v,j:a,ttItems:n,values:{val:t,goalVals:d,xVal:u,xAxisTTVal:p,zVal:g},seriesName:b,shared:o,pColor:m})},v=0,y=c.globals.series.length-1;v<c.globals.series.length;v++,y--)x(v,y)}},{key:"getFormatters",value:function(e){var t,i=this.w,r=i.globals.yLabelFormatters[e];return void 0!==i.globals.ttVal?Array.isArray(i.globals.ttVal)?(r=i.globals.ttVal[e]&&i.globals.ttVal[e].formatter,t=i.globals.ttVal[e]&&i.globals.ttVal[e].title&&i.globals.ttVal[e].title.formatter):(r=i.globals.ttVal.formatter,"function"==typeof i.globals.ttVal.title.formatter&&(t=i.globals.ttVal.title.formatter)):t=i.config.tooltip.y.title.formatter,"function"!=typeof r&&(r=i.globals.yLabelFormatters[0]?i.globals.yLabelFormatters[0]:function(e){return e}),"function"!=typeof t&&(t=function(e){return e?e+": ":""}),{yLbFormatter:r,yLbTitleFormatter:t}}},{key:"getSeriesName",value:function(e){var t=e.fn,i=e.index,r=e.seriesIndex,a=e.j,s=this.w;return t(String(s.globals.seriesNames[i]),{series:s.globals.series,seriesIndex:r,dataPointIndex:a,w:s})}},{key:"DOMHandling",value:function(e){e.i;var t=e.t,i=e.j,r=e.ttItems,a=e.values,s=e.seriesName,n=e.shared,o=e.pColor,l=this.w,c=this.ttCtx,d=a.val,h=a.goalVals,u=a.xVal,g=a.xAxisTTVal,p=a.zVal,f=null;f=r[t].children,l.config.tooltip.fillSeriesColor&&(r[t].style.backgroundColor=o,f[0].style.display="none"),c.showTooltipTitle&&(null===c.tooltipTitle&&(c.tooltipTitle=l.globals.dom.baseEl.querySelector(".apexcharts-tooltip-title")),c.tooltipTitle.innerHTML=u),c.isXAxisTooltipEnabled&&(c.xaxisTooltipText.innerHTML=""!==g?g:u);var b=r[t].querySelector(".apexcharts-tooltip-text-y-label");b&&(b.innerHTML=s||"");var m=r[t].querySelector(".apexcharts-tooltip-text-y-value");m&&(m.innerHTML=void 0!==d?d:""),f[0]&&f[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[t]),l.config.tooltip.fillSeriesColor?f[0].style.backgroundColor=o:f[0].style.color=o),l.config.tooltip.marker.show||(f[0].style.display="none");var x=r[t].querySelector(".apexcharts-tooltip-text-goals-label"),v=r[t].querySelector(".apexcharts-tooltip-text-goals-value");if(h.length&&l.globals.seriesGoals[t]){var y=function(){var e="<div>",t="<div>";h.forEach(function(i,r){e+=' <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: '.concat(i.attrs.strokeColor,'; height: 3px; border-radius: 0; top: 5px;"></span> ').concat(i.attrs.name,"</div>"),t+="<div>".concat(i.val,"</div>")}),x.innerHTML=e+"</div>",v.innerHTML=t+"</div>"};n?l.globals.seriesGoals[t][i]&&Array.isArray(l.globals.seriesGoals[t][i])?y():(x.innerHTML="",v.innerHTML=""):y()}else x.innerHTML="",v.innerHTML="";if(null!==p&&(r[t].querySelector(".apexcharts-tooltip-text-z-label").innerHTML=l.config.tooltip.z.title,r[t].querySelector(".apexcharts-tooltip-text-z-value").innerHTML=void 0!==p?p:""),n&&f[0]){if(l.config.tooltip.hideEmptySeries){var A=r[t].querySelector(".apexcharts-tooltip-marker"),w=r[t].querySelector(".apexcharts-tooltip-text");0==parseFloat(d)?(A.style.display="none",w.style.display="none"):(A.style.display="block",w.style.display="block")}null==d||l.globals.ancillaryCollapsedSeriesIndices.indexOf(t)>-1||l.globals.collapsedSeriesIndices.indexOf(t)>-1||Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)?f[0].parentNode.style.display="none":f[0].parentNode.style.display=l.config.tooltip.items.display}else Array.isArray(c.tConfig.enabledOnSeries)&&-1===c.tConfig.enabledOnSeries.indexOf(t)&&(f[0].parentNode.style.display="none")}},{key:"toggleActiveInactiveSeries",value:function(e,t){var i=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");var r=i.globals.dom.baseEl.querySelector(".apexcharts-tooltip-series-group-".concat(t));r&&(r.classList.add("apexcharts-active"),r.style.display=i.config.tooltip.items.display)}}},{key:"getValuesToPrint",value:function(e){var t=e.i,i=e.j,r=this.w,a=this.ctx.series.filteredSeriesX(),s="",n="",o=null,l=null,c={series:r.globals.series,seriesIndex:t,dataPointIndex:i,w:r},d=r.globals.ttZFormatter;null===i?l=r.globals.series[t]:r.globals.isXNumeric&&"treemap"!==r.config.chart.type?(s=a[t][i],0===a[t].length&&(s=a[this.tooltipUtil.getFirstActiveXArray(a)][i])):s=new Qi(this.ctx).isFormatXY()?void 0!==r.config.series[t].data[i]?r.config.series[t].data[i].x:"":void 0!==r.globals.labels[i]?r.globals.labels[i]:"";var h=s;return s=r.globals.isXNumeric&&"datetime"===r.config.xaxis.type?new Mi(this.ctx).xLabelFormat(r.globals.ttKeyFormatter,h,h,{i:void 0,dateFormatter:new Pi(this.ctx).formatDate,w:this.w}):r.globals.isBarHorizontal?r.globals.yLabelFormatters[0](h,c):r.globals.xLabelFormatter(h,c),void 0!==r.config.tooltip.x.formatter&&(s=r.globals.ttKeyFormatter(h,c)),r.globals.seriesZ.length>0&&r.globals.seriesZ[t].length>0&&(o=d(r.globals.seriesZ[t][i],r)),n="function"==typeof r.config.xaxis.tooltip.formatter?r.globals.xaxisTooltipFormatter(h,c):s,{val:Array.isArray(l)?l.join(" "):l,xVal:Array.isArray(s)?s.join(" "):s,xAxisTTVal:Array.isArray(n)?n.join(" "):n,zVal:o}}},{key:"handleCustomTooltip",value:function(e){var t=e.i,i=e.j,r=e.y1,a=e.y2,s=e.w,n=this.ttCtx.getElTooltip(),o=s.config.tooltip.custom;Array.isArray(o)&&o[t]&&(o=o[t]);var l=o({ctx:this.ctx,series:s.globals.series,seriesIndex:t,dataPointIndex:i,y1:r,y2:a,w:s});"string"==typeof l||"number"==typeof l?n.innerHTML=l:(l instanceof Element||"string"==typeof l.nodeName)&&(n.innerHTML="",n.appendChild(l.cloneNode(!0)))}}]),e}(),wr=function(){function e(t){s(this,e),this.ttCtx=t,this.ctx=t.ctx,this.w=t.w}return o(e,[{key:"moveXCrosshairs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=this.ttCtx,r=this.w,a=i.getElXCrosshairs(),s=e-i.xcrosshairsWidth/2,n=r.globals.labels.slice().length;if(null!==t&&(s=r.globals.gridWidth/n*t),null===a||r.globals.isBarHorizontal||(a.setAttribute("x",s),a.setAttribute("x1",s),a.setAttribute("x2",s),a.setAttribute("y2",r.globals.gridHeight),a.classList.add("apexcharts-active")),s<0&&(s=0),s>r.globals.gridWidth&&(s=r.globals.gridWidth),i.isXAxisTooltipEnabled){var o=s;"tickWidth"!==r.config.xaxis.crosshairs.width&&"barWidth"!==r.config.xaxis.crosshairs.width||(o=s+i.xcrosshairsWidth/2),this.moveXAxisTooltip(o)}}},{key:"moveYCrosshairs",value:function(e){var t=this.ttCtx;null!==t.ycrosshairs&&Di.setAttrs(t.ycrosshairs,{y1:e,y2:e}),null!==t.ycrosshairsHidden&&Di.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}},{key:"moveXAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;if(null!==i.xaxisTooltip&&0!==i.xcrosshairsWidth){i.xaxisTooltip.classList.add("apexcharts-active");var r,a=i.xaxisOffY+t.config.xaxis.tooltip.offsetY+t.globals.translateY+1+t.config.xaxis.offsetY;e-=i.xaxisTooltip.getBoundingClientRect().width/2,isNaN(e)||(e+=t.globals.translateX,r=new Di(this.ctx).getTextRects(i.xaxisTooltipText.innerHTML),i.xaxisTooltipText.style.minWidth=r.width+"px",i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=a+"px")}}},{key:"moveYAxisTooltip",value:function(e){var t=this.w,i=this.ttCtx;null===i.yaxisTTEls&&(i.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));var r=parseInt(i.ycrosshairsHidden.getAttribute("y1"),10),a=t.globals.translateY+r,s=i.yaxisTTEls[e].getBoundingClientRect(),n=s.height,o=t.globals.translateYAxisX[e]-2;t.config.yaxis[e].opposite&&(o-=s.width),a-=n/2,-1===t.globals.ignoreYAxisIndexes.indexOf(e)&&a>0&&a<t.globals.gridHeight?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=a+"px",i.yaxisTTEls[e].style.left=o+t.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}},{key:"moveTooltip",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.w,a=this.ttCtx,s=a.getElTooltip(),n=a.tooltipRect,o=null!==i?parseFloat(i):1,l=parseFloat(e)+o+5,c=parseFloat(t)+o/2;if(l>r.globals.gridWidth/2&&(l=l-n.ttWidth-o-10),l>r.globals.gridWidth-n.ttWidth-10&&(l=r.globals.gridWidth-n.ttWidth),l<-20&&(l=-20),r.config.tooltip.followCursor){var d=a.getElGrid().getBoundingClientRect();(l=a.e.clientX-d.left)>r.globals.gridWidth/2&&(l-=a.tooltipRect.ttWidth),(c=a.e.clientY+r.globals.translateY-d.top)>r.globals.gridHeight/2&&(c-=a.tooltipRect.ttHeight)}else r.globals.isBarHorizontal||n.ttHeight/2+c>r.globals.gridHeight&&(c=r.globals.gridHeight-n.ttHeight+r.globals.translateY);isNaN(l)||(l+=r.globals.translateX,s.style.left=l+"px",s.style.top=c+"px")}},{key:"moveMarkers",value:function(e,t){var i=this.w,r=this.ttCtx;if(i.globals.markers.size[e]>0)for(var a=i.globals.dom.baseEl.querySelectorAll(" .apexcharts-series[data\\:realIndex='".concat(e,"'] .apexcharts-marker")),s=0;s<a.length;s++)parseInt(a[s].getAttribute("rel"),10)===t&&(r.marker.resetPointsSize(),r.marker.enlargeCurrentPoint(t,a[s]));else r.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}},{key:"moveDynamicPointOnHover",value:function(e,t){var i,r,a,s,n=this.w,o=this.ttCtx,l=new Di(this.ctx),c=n.globals.pointsArray,d=o.tooltipUtil.getHoverMarkerSize(t),h=n.config.series[t].type;if(!h||"column"!==h&&"candlestick"!==h&&"boxPlot"!==h){a=null===(i=c[t][e])||void 0===i?void 0:i[0],s=(null===(r=c[t][e])||void 0===r?void 0:r[1])||0;var u=n.globals.dom.baseEl.querySelector(".apexcharts-series[data\\:realIndex='".concat(t,"'] .apexcharts-series-markers path"));if(u&&s<n.globals.gridHeight&&s>0){var g=u.getAttribute("shape"),p=l.getMarkerPath(a,s,g,1.5*d);u.setAttribute("d",p)}this.moveXCrosshairs(a),o.fixedTooltip||this.moveTooltip(a,s,d)}}},{key:"moveDynamicPointsOnHover",value:function(e){var t,i=this.ttCtx,r=i.w,a=0,s=0,n=r.globals.pointsArray,o=new $i(this.ctx),l=new Di(this.ctx);t=o.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);var c=i.tooltipUtil.getHoverMarkerSize(t);if(n[t]&&(a=n[t][e][0],s=n[t][e][1]),!isNaN(a)){var d=i.tooltipUtil.getAllMarkers();if(d.length)for(var h=0;h<r.globals.series.length;h++){var u=n[h];if(r.globals.comboCharts&&void 0===u&&d.splice(h,0,null),u&&u.length){var g=n[h][e][1],p=void 0;d[h].setAttribute("cx",a);var f=d[h].getAttribute("shape");if("rangeArea"===r.config.chart.type&&!r.globals.comboCharts){var b=e+r.globals.series[h].length;p=n[h][b][1],g-=Math.abs(g-p)/2}if(null!==g&&!isNaN(g)&&g<r.globals.gridHeight+c&&g+c>0){var m=l.getMarkerPath(a,g,f,c);d[h].setAttribute("d",m)}else d[h].setAttribute("d","")}}this.moveXCrosshairs(a),i.fixedTooltip||this.moveTooltip(a,s||r.globals.gridHeight,c)}}},{key:"moveStickyTooltipOverBars",value:function(e,t){var i=this.w,r=this.ttCtx,a=i.globals.columnSeries?i.globals.columnSeries.length:i.globals.series.length;i.config.chart.stacked&&(a=i.globals.barGroups.length);var s=a>=2&&a%2==0?Math.floor(a/2):Math.floor(a/2)+1;i.globals.isBarHorizontal&&(s=new $i(this.ctx).getActiveConfigSeriesIndex("desc")+1);var n=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[rel='".concat(s,"'] path[j='").concat(e,"'], .apexcharts-candlestick-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-boxPlot-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"'], .apexcharts-rangebar-series .apexcharts-series[rel='").concat(s,"'] path[j='").concat(e,"']"));n||"number"!=typeof t||(n=i.globals.dom.baseEl.querySelector(".apexcharts-bar-series .apexcharts-series[data\\:realIndex='".concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"'],\n        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='").concat(t,"'] path[j='").concat(e,"']")));var o=n?parseFloat(n.getAttribute("cx")):0,l=n?parseFloat(n.getAttribute("cy")):0,c=n?parseFloat(n.getAttribute("barWidth")):0,d=r.getElGrid().getBoundingClientRect(),h=n&&(n.classList.contains("apexcharts-candlestick-area")||n.classList.contains("apexcharts-boxPlot-area"));i.globals.isXNumeric?(n&&!h&&(o-=a%2!=0?c/2:0),n&&h&&(o-=c/2)):i.globals.isBarHorizontal||(o=r.xAxisTicksPositions[e-1]+r.dataPointsDividedWidth/2,isNaN(o)&&(o=r.xAxisTicksPositions[e]-r.dataPointsDividedWidth/2)),i.globals.isBarHorizontal?l-=r.tooltipRect.ttHeight:i.config.tooltip.followCursor?l=r.e.clientY-d.top-r.tooltipRect.ttHeight/2:l+r.tooltipRect.ttHeight+15>i.globals.gridHeight&&(l=i.globals.gridHeight),i.globals.isBarHorizontal||this.moveXCrosshairs(o),r.fixedTooltip||this.moveTooltip(o,l||i.globals.gridHeight)}}]),e}(),kr=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t,this.ctx=t.ctx,this.tooltipPosition=new wr(t)}return o(e,[{key:"drawDynamicPoints",value:function(){var e=this.w,t=new Di(this.ctx),i=new Ui(this.ctx),r=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");r=x(r),e.config.chart.stacked&&r.sort(function(e,t){return parseFloat(e.getAttribute("data:realIndex"))-parseFloat(t.getAttribute("data:realIndex"))});for(var a=0;a<r.length;a++){var s=r[a].querySelector(".apexcharts-series-markers-wrap");if(null!==s){var n=void 0,o="apexcharts-marker w".concat((Math.random()+1).toString(36).substring(4));"line"!==e.config.chart.type&&"area"!==e.config.chart.type||e.globals.comboCharts||e.config.tooltip.intersect||(o+=" no-pointer-events");var l=i.getMarkerConfig({cssClass:o,seriesIndex:Number(s.getAttribute("data:realIndex"))});(n=t.drawMarker(0,0,l)).node.setAttribute("default-marker-size",0);var c=document.createElementNS(e.globals.SVGNS,"g");c.classList.add("apexcharts-series-markers"),c.appendChild(n.node),s.appendChild(c)}}}},{key:"enlargeCurrentPoint",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=this.w;"bubble"!==a.config.chart.type&&this.newPointSize(e,t);var s=t.getAttribute("cx"),n=t.getAttribute("cy");if(null!==i&&null!==r&&(s=i,n=r),this.tooltipPosition.moveXCrosshairs(s),!this.fixedTooltip){if("radar"===a.config.chart.type){var o=this.ttCtx.getElGrid().getBoundingClientRect();s=this.ttCtx.e.clientX-o.left}this.tooltipPosition.moveTooltip(s,n,a.config.markers.hover.size)}}},{key:"enlargePoints",value:function(e){for(var t=this.w,i=this,r=this.ttCtx,a=e,s=t.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),n=t.config.markers.hover.size,o=0;o<s.length;o++){var l=s[o].getAttribute("rel"),c=s[o].getAttribute("index");if(void 0===n&&(n=t.globals.markers.size[c]+t.config.markers.hover.sizeOffset),a===parseInt(l,10)){i.newPointSize(a,s[o]);var d=s[o].getAttribute("cx"),h=s[o].getAttribute("cy");i.tooltipPosition.moveXCrosshairs(d),r.fixedTooltip||i.tooltipPosition.moveTooltip(d,h,n)}else i.oldPointSize(s[o])}}},{key:"newPointSize",value:function(e,t){var i=this.w,r=i.config.markers.hover.size,a=0===e?t.parentNode.firstChild:t.parentNode.lastChild;if("0"!==a.getAttribute("default-marker-size")){var s=parseInt(a.getAttribute("index"),10);void 0===r&&(r=i.globals.markers.size[s]+i.config.markers.hover.sizeOffset),r<0&&(r=0);var n=this.ttCtx.tooltipUtil.getPathFromPoint(t,r);t.setAttribute("d",n)}}},{key:"oldPointSize",value:function(e){var t=parseFloat(e.getAttribute("default-marker-size")),i=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",i)}},{key:"resetPointsSize",value:function(){for(var e=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker"),t=0;t<e.length;t++){var i=parseFloat(e[t].getAttribute("default-marker-size"));if(w.isNumber(i)&&i>0){var r=this.ttCtx.tooltipUtil.getPathFromPoint(e[t],i);e[t].setAttribute("d",r)}else e[t].setAttribute("d","M0,0")}}}]),e}(),Cr=function(){function e(t){s(this,e),this.w=t.w;var i=this.w;this.ttCtx=t,this.isVerticalGroupedRangeBar=!i.globals.isBarHorizontal&&"rangeBar"===i.config.chart.type&&i.config.plotOptions.bar.rangeBarGroupRows}return o(e,[{key:"getAttr",value:function(e,t){return parseFloat(e.target.getAttribute(t))}},{key:"handleHeatTreeTooltip",value:function(e){var t=e.e,i=e.opt,r=e.x,a=e.y,s=e.type,n=this.ttCtx,o=this.w;if(t.target.classList.contains("apexcharts-".concat(s,"-rect"))){var l=this.getAttr(t,"i"),c=this.getAttr(t,"j"),d=this.getAttr(t,"cx"),h=this.getAttr(t,"cy"),u=this.getAttr(t,"width"),g=this.getAttr(t,"height");if(n.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:l,j:c,shared:!1,e:t}),o.globals.capturedSeriesIndex=l,o.globals.capturedDataPointIndex=c,r=d+n.tooltipRect.ttWidth/2+u,a=h+n.tooltipRect.ttHeight/2-g/2,n.tooltipPosition.moveXCrosshairs(d+u/2),r>o.globals.gridWidth/2&&(r=d-n.tooltipRect.ttWidth/2+u),n.w.config.tooltip.followCursor){var p=o.globals.dom.elWrap.getBoundingClientRect();r=o.globals.clientX-p.left-(r>o.globals.gridWidth/2?n.tooltipRect.ttWidth:0),a=o.globals.clientY-p.top-(a>o.globals.gridHeight/2?n.tooltipRect.ttHeight:0)}}return{x:r,y:a}}},{key:"handleMarkerTooltip",value:function(e){var t,i,r=e.e,a=e.opt,s=e.x,n=e.y,o=this.w,l=this.ttCtx;if(r.target.classList.contains("apexcharts-marker")){var c=parseInt(a.paths.getAttribute("cx"),10),d=parseInt(a.paths.getAttribute("cy"),10),h=parseFloat(a.paths.getAttribute("val"));if(i=parseInt(a.paths.getAttribute("rel"),10),t=parseInt(a.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,l.intersect){var u=w.findAncestor(a.paths,"apexcharts-series");u&&(t=parseInt(u.getAttribute("data:realIndex"),10))}if(l.tooltipLabels.drawSeriesTexts({ttItems:a.ttItems,i:t,j:i,shared:!l.showOnIntersect&&o.config.tooltip.shared,e:r}),"mouseup"===r.type&&l.markerClick(r,t,i),o.globals.capturedSeriesIndex=t,o.globals.capturedDataPointIndex=i,s=c,n=d+o.globals.translateY-1.4*l.tooltipRect.ttHeight,l.w.config.tooltip.followCursor){var g=l.getElGrid().getBoundingClientRect();n=l.e.clientY+o.globals.translateY-g.top}h<0&&(n=d),l.marker.enlargeCurrentPoint(i,a.paths,s,n)}return{x:s,y:n}}},{key:"handleBarTooltip",value:function(e){var t,i,r=e.e,a=e.opt,s=this.w,n=this.ttCtx,o=n.getElTooltip(),l=0,c=0,d=0,h=this.getBarTooltipXY({e:r,opt:a});if(null!==h.j||0!==h.barHeight||0!==h.barWidth){t=h.i;var u=h.j;if(s.globals.capturedSeriesIndex=t,s.globals.capturedDataPointIndex=u,s.globals.isBarHorizontal&&n.tooltipUtil.hasBars()||!s.config.tooltip.shared?(c=h.x,d=h.y,i=Array.isArray(s.config.stroke.width)?s.config.stroke.width[t]:s.config.stroke.width,l=c):s.globals.comboCharts||s.config.tooltip.shared||(l/=2),isNaN(d)&&(d=s.globals.svgHeight-n.tooltipRect.ttHeight),parseInt(a.paths.parentNode.getAttribute("data:realIndex"),10),c+n.tooltipRect.ttWidth>s.globals.gridWidth?c-=n.tooltipRect.ttWidth:c<0&&(c=0),n.w.config.tooltip.followCursor){var g=n.getElGrid().getBoundingClientRect();d=n.e.clientY-g.top}null===n.tooltip&&(n.tooltip=s.globals.dom.baseEl.querySelector(".apexcharts-tooltip")),s.config.tooltip.shared||(s.globals.comboBarCount>0?n.tooltipPosition.moveXCrosshairs(l+i/2):n.tooltipPosition.moveXCrosshairs(l)),!n.fixedTooltip&&(!s.config.tooltip.shared||s.globals.isBarHorizontal&&n.tooltipUtil.hasBars())&&(d=d+s.globals.translateY-n.tooltipRect.ttHeight/2,o.style.left=c+s.globals.translateX+"px",o.style.top=d+"px")}}},{key:"getBarTooltipXY",value:function(e){var t=this,i=e.e,r=e.opt,a=this.w,s=null,n=this.ttCtx,o=0,l=0,c=0,d=0,h=0,u=i.target.classList;if(u.contains("apexcharts-bar-area")||u.contains("apexcharts-candlestick-area")||u.contains("apexcharts-boxPlot-area")||u.contains("apexcharts-rangebar-area")){var g=i.target,p=g.getBoundingClientRect(),f=r.elGrid.getBoundingClientRect(),b=p.height;h=p.height;var m=p.width,x=parseInt(g.getAttribute("cx"),10),v=parseInt(g.getAttribute("cy"),10);d=parseFloat(g.getAttribute("barWidth"));var y="touchmove"===i.type?i.touches[0].clientX:i.clientX;s=parseInt(g.getAttribute("j"),10),o=parseInt(g.parentNode.getAttribute("rel"),10)-1;var A=g.getAttribute("data-range-y1"),w=g.getAttribute("data-range-y2");a.globals.comboCharts&&(o=parseInt(g.parentNode.getAttribute("data:realIndex"),10));var k=function(e){return a.globals.isXNumeric?x-m/2:t.isVerticalGroupedRangeBar?x+m/2:x-n.dataPointsDividedWidth+m/2},C=function(){return v-n.dataPointsDividedHeight+b/2-n.tooltipRect.ttHeight/2};n.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:o,j:s,y1:A?parseInt(A,10):null,y2:w?parseInt(w,10):null,shared:!n.showOnIntersect&&a.config.tooltip.shared,e:i}),a.config.tooltip.followCursor?a.globals.isBarHorizontal?(l=y-f.left+15,c=C()):(l=k(),c=i.clientY-f.top-n.tooltipRect.ttHeight/2-15):a.globals.isBarHorizontal?((l=x)<n.xyRatios.baseLineInvertedY&&(l=x-n.tooltipRect.ttWidth),c=C()):(l=k(),c=v)}return{x:l,y:c,barHeight:h,barWidth:d,i:o,j:s}}}]),e}(),Sr=function(){function e(t){s(this,e),this.w=t.w,this.ttCtx=t}return o(e,[{key:"drawXaxisTooltip",value:function(){var e=this.w,t=this.ttCtx,i="bottom"===e.config.xaxis.position;t.xaxisOffY=i?e.globals.gridHeight+1:-e.globals.xAxisHeight-e.config.xaxis.axisTicks.height+3;var r=i?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",a=e.globals.dom.elWrap;t.isXAxisTooltipEnabled&&null===e.globals.dom.baseEl.querySelector(".apexcharts-xaxistooltip")&&(t.xaxisTooltip=document.createElement("div"),t.xaxisTooltip.setAttribute("class",r+" apexcharts-theme-"+e.config.tooltip.theme),a.appendChild(t.xaxisTooltip),t.xaxisTooltipText=document.createElement("div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}},{key:"drawYaxisTooltip",value:function(){for(var e=this.w,t=this.ttCtx,i=0;i<e.config.yaxis.length;i++){var r=e.config.yaxis[i].opposite||e.config.yaxis[i].crosshairs.opposite;t.yaxisOffX=r?e.globals.gridWidth+1:1;var a="apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i,r?" apexcharts-yaxistooltip-right":" apexcharts-yaxistooltip-left"),s=e.globals.dom.elWrap;null===e.globals.dom.baseEl.querySelector(".apexcharts-yaxistooltip apexcharts-yaxistooltip-".concat(i))&&(t.yaxisTooltip=document.createElement("div"),t.yaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.yaxisTooltip),0===i&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[i]=document.createElement("div"),t.yaxisTooltipText[i].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[i]))}}},{key:"setXCrosshairWidth",value:function(){var e=this.w,t=this.ttCtx,i=t.getElXCrosshairs();if(t.xcrosshairsWidth=parseInt(e.config.xaxis.crosshairs.width,10),e.globals.comboCharts){var r=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==r&&"barWidth"===e.config.xaxis.crosshairs.width){var a=parseFloat(r.getAttribute("barWidth"));t.xcrosshairsWidth=a}else if("tickWidth"===e.config.xaxis.crosshairs.width){var s=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/s}}else if("tickWidth"===e.config.xaxis.crosshairs.width){var n=e.globals.labels.length;t.xcrosshairsWidth=e.globals.gridWidth/n}else if("barWidth"===e.config.xaxis.crosshairs.width){var o=e.globals.dom.baseEl.querySelector(".apexcharts-bar-area");if(null!==o){var l=parseFloat(o.getAttribute("barWidth"));t.xcrosshairsWidth=l}else t.xcrosshairsWidth=1}e.globals.isBarHorizontal&&(t.xcrosshairsWidth=0),null!==i&&t.xcrosshairsWidth>0&&i.setAttribute("width",t.xcrosshairsWidth)}},{key:"handleYCrosshair",value:function(){var e=this.w,t=this.ttCtx;t.ycrosshairs=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.globals.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}},{key:"drawYaxisTooltipText",value:function(e,t,i){var r=this.ttCtx,a=this.w,s=a.globals,n=s.seriesYAxisMap[e];if(r.yaxisTooltips[e]&&n.length>0){var o=s.yLabelFormatters[e],l=r.getElGrid().getBoundingClientRect(),c=n[0],d=0;i.yRatio.length>1&&(d=c);var h=(t-l.top)*i.yRatio[d],u=s.maxYArr[c]-s.minYArr[c],g=s.minYArr[c]+(u-h);a.config.yaxis[e].reversed&&(g=s.maxYArr[c]-(u-h)),r.tooltipPosition.moveYCrosshairs(t-l.top),r.yaxisTooltipText[e].innerHTML=o(g),r.tooltipPosition.moveYAxisTooltip(e)}}}]),e}(),Er=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.tConfig=i.config.tooltip,this.tooltipUtil=new yr(this),this.tooltipLabels=new Ar(this),this.tooltipPosition=new wr(this),this.marker=new kr(this),this.intersect=new Cr(this),this.axesTooltip=new Sr(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.yaxisTTEls=null,this.isBarShared=!i.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now()}return o(e,[{key:"getElTooltip",value:function(e){return e||(e=this),e.w.globals.dom.baseEl?e.w.globals.dom.baseEl.querySelector(".apexcharts-tooltip"):null}},{key:"getElXCrosshairs",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}},{key:"getElGrid",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-grid")}},{key:"drawTooltip",value:function(e){var t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(function(e,i){return!!(e.show&&e.tooltip.enabled&&t.globals.axisCharts)}),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);var i=document.createElement("div");if(i.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&i.classList.add(t.config.tooltip.cssClass),i.classList.add("apexcharts-theme-".concat(this.tConfig.theme||"light")),t.globals.dom.elWrap.appendChild(i),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();var r=new Ki(this.ctx);this.xAxisTicksPositions=r.getXAxisTicksPositions()}if(!t.globals.comboCharts&&!this.tConfig.intersect&&"rangeBar"!==t.config.chart.type||this.tConfig.shared||(this.showOnIntersect=!0),0!==t.config.markers.size&&0!==t.globals.markers.largestSize||this.marker.drawDynamicPoints(this),t.globals.collapsedSeries.length!==t.globals.series.length){this.dataPointsDividedHeight=t.globals.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.globals.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=document.createElement("div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,i.appendChild(this.tooltipTitle));var a=t.globals.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(a=this.showOnIntersect?1:t.globals.series.length),this.legendLabels=t.globals.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(a),this.addSVGEvents()}}},{key:"createTTElements",value:function(e){for(var t=this,i=this.w,r=[],a=this.getElTooltip(),s=function(s){var n=document.createElement("div");n.classList.add("apexcharts-tooltip-series-group","apexcharts-tooltip-series-group-".concat(s)),n.style.order=i.config.tooltip.inverseOrder?e-s:s+1;var o=document.createElement("span");o.classList.add("apexcharts-tooltip-marker"),i.config.tooltip.fillSeriesColor?o.style.backgroundColor=i.globals.colors[s]:o.style.color=i.globals.colors[s];var l=i.config.markers.shape,c=l;Array.isArray(l)&&(c=l[s]),o.setAttribute("shape",c),n.appendChild(o);var d=document.createElement("div");d.classList.add("apexcharts-tooltip-text"),d.style.fontFamily=t.tConfig.style.fontFamily||i.config.chart.fontFamily,d.style.fontSize=t.tConfig.style.fontSize,["y","goals","z"].forEach(function(e){var t=document.createElement("div");t.classList.add("apexcharts-tooltip-".concat(e,"-group"));var i=document.createElement("span");i.classList.add("apexcharts-tooltip-text-".concat(e,"-label")),t.appendChild(i);var r=document.createElement("span");r.classList.add("apexcharts-tooltip-text-".concat(e,"-value")),t.appendChild(r),d.appendChild(t)}),n.appendChild(d),a.appendChild(n),r.push(n)},n=0;n<e;n++)s(n);return r}},{key:"addSVGEvents",value:function(){var e=this.w,t=e.config.chart.type,i=this.getElTooltip(),r=!("bar"!==t&&"candlestick"!==t&&"boxPlot"!==t&&"rangeBar"!==t),a="area"===t||"line"===t||"scatter"===t||"bubble"===t||"radar"===t,s=e.globals.dom.Paper.node,n=this.getElGrid();n&&(this.seriesBound=n.getBoundingClientRect());var o,l=[],c=[],d={hoverArea:s,elGrid:n,tooltipEl:i,tooltipY:l,tooltipX:c,ttItems:this.ttItems};if(e.globals.axisCharts&&(a?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):r?o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-rangebar-area"):"heatmap"!==t&&"treemap"!==t||(o=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),o&&o.length))for(var h=0;h<o.length;h++)l.push(o[h].getAttribute("cy")),c.push(o[h].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||r&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([s],d);else if(r&&!e.globals.comboCharts||a&&this.showOnIntersect)this.addDatapointEventsListeners(d);else if(!e.globals.axisCharts||"heatmap"===t||"treemap"===t){var u=e.globals.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(u,d)}if(this.showOnIntersect){var g=e.globals.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");g.length>0&&this.addPathsEventListeners(g,d),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(d)}}},{key:"drawFixedTooltipRect",value:function(){var e=this.w,t=this.getElTooltip(),i=t.getBoundingClientRect(),r=i.width+10,a=i.height+10,s=this.tConfig.fixed.offsetX,n=this.tConfig.fixed.offsetY,o=this.tConfig.fixed.position.toLowerCase();return o.indexOf("right")>-1&&(s=s+e.globals.svgWidth-r+10),o.indexOf("bottom")>-1&&(n=n+e.globals.svgHeight-a-10),t.style.left=s+"px",t.style.top=n+"px",{x:s,y:n,ttWidth:r,ttHeight:a}}},{key:"addDatapointEventsListeners",value:function(e){var t=this.w.globals.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(t,e)}},{key:"addPathsEventListeners",value:function(e,t){for(var i=this,r=function(r){var a={paths:e[r],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(function(t){return e[r].addEventListener(t,i.onSeriesHover.bind(i,a),{capture:!1,passive:!0})})},a=0;a<e.length;a++)r(a)}},{key:"onSeriesHover",value:function(e,t){var i=this,r=Date.now()-this.lastHoverTime;r>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(function(){i.seriesHover(e,t)},20-r))}},{key:"seriesHover",value:function(e,t){var i=this;this.lastHoverTime=Date.now();var r=[],a=this.w;a.config.chart.group&&(r=this.ctx.getGroupedCharts()),a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||0===a.globals.dataPoints)||(r.length?r.forEach(function(r){var a=i.getElTooltip(r),s={paths:e.paths,tooltipEl:a,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:r.w.globals.tooltip.ttItems};r.w.globals.minX===i.w.globals.minX&&r.w.globals.maxX===i.w.globals.maxX&&r.w.globals.tooltip.seriesHoverByContext({chartCtx:r,ttCtx:r.w.globals.tooltip,opt:s,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}},{key:"seriesHoverByContext",value:function(e){var t=e.chartCtx,i=e.ttCtx,r=e.opt,a=e.e,s=t.w,n=this.getElTooltip(t);n&&(i.tooltipRect={x:0,y:0,ttWidth:n.getBoundingClientRect().width,ttHeight:n.getBoundingClientRect().height},i.e=a,!i.tooltipUtil.hasBars()||s.globals.comboCharts||i.isBarShared||this.tConfig.onDatasetHover.highlightDataSeries&&new $i(t).toggleSeriesOnHover(a,a.target.parentNode),s.globals.axisCharts?i.axisChartsTooltips({e:a,opt:r,tooltipRect:i.tooltipRect}):i.nonAxisChartsTooltips({e:a,opt:r,tooltipRect:i.tooltipRect}),i.fixedTooltip&&i.drawFixedTooltipRect())}},{key:"axisChartsTooltips",value:function(e){var t,i,r=e.e,a=e.opt,s=this.w,n=a.elGrid.getBoundingClientRect(),o="touchmove"===r.type?r.touches[0].clientX:r.clientX,l="touchmove"===r.type?r.touches[0].clientY:r.clientY;if(this.clientY=l,this.clientX=o,s.globals.capturedSeriesIndex=-1,s.globals.capturedDataPointIndex=-1,l<n.top||l>n.top+n.height)this.handleMouseOut(a);else{if(Array.isArray(this.tConfig.enabledOnSeries)&&!s.config.tooltip.shared){var c=parseInt(a.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(c)<0)return void this.handleMouseOut(a)}var d=this.getElTooltip(),h=this.getElXCrosshairs(),u=[];s.config.chart.group&&(u=this.ctx.getSyncedCharts());var g=s.globals.xyCharts||"bar"===s.config.chart.type&&!s.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||s.globals.comboCharts&&this.tooltipUtil.hasBars();if("mousemove"===r.type||"touchmove"===r.type||"mouseup"===r.type){if(s.globals.collapsedSeries.length+s.globals.ancillaryCollapsedSeries.length===s.globals.series.length)return;null!==h&&h.classList.add("apexcharts-active");var p=this.yaxisTooltips.filter(function(e){return!0===e});if(null!==this.ycrosshairs&&p.length&&this.ycrosshairs.classList.add("apexcharts-active"),g&&!this.showOnIntersect||u.length>1)this.handleStickyTooltip(r,o,l,a);else if("heatmap"===s.config.chart.type||"treemap"===s.config.chart.type){var f=this.intersect.handleHeatTreeTooltip({e:r,opt:a,x:t,y:i,type:s.config.chart.type});t=f.x,i=f.y,d.style.left=t+"px",d.style.top=i+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e:r,opt:a}),this.tooltipUtil.hasMarkers()&&this.intersect.handleMarkerTooltip({e:r,opt:a,x:t,y:i});if(this.yaxisTooltips.length)for(var b=0;b<s.config.yaxis.length;b++)this.axesTooltip.drawYaxisTooltipText(b,l,this.xyRatios);s.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),a.tooltipEl.classList.add("apexcharts-active")}else"mouseout"!==r.type&&"touchend"!==r.type||this.handleMouseOut(a)}}},{key:"nonAxisChartsTooltips",value:function(e){var t=e.e,i=e.opt,r=e.tooltipRect,a=this.w,s=i.paths.getAttribute("rel"),n=this.getElTooltip(),o=a.globals.dom.elWrap.getBoundingClientRect();if("mousemove"===t.type||"touchmove"===t.type){a.globals.dom.baseEl.classList.add("apexcharts-tooltip-active"),n.classList.add("apexcharts-active"),this.tooltipLabels.drawSeriesTexts({ttItems:i.ttItems,i:parseInt(s,10)-1,shared:!1});var l=a.globals.clientX-o.left-r.ttWidth/2,c=a.globals.clientY-o.top-r.ttHeight-10;if(n.style.left=l+"px",n.style.top=c+"px",a.config.legend.tooltipHoverFormatter){var d=s-1,h=(0,a.config.legend.tooltipHoverFormatter)(this.legendLabels[d].getAttribute("data:default-text"),{seriesIndex:d,dataPointIndex:d,w:a});this.legendLabels[d].innerHTML=h}}else"mouseout"!==t.type&&"touchend"!==t.type||(n.classList.remove("apexcharts-active"),a.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),a.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)}))}},{key:"handleStickyTooltip",value:function(e,t,i,r){var a=this.w,s=this.tooltipUtil.getNearestValues({context:this,hoverArea:r.hoverArea,elGrid:r.elGrid,clientX:t,clientY:i}),n=s.j,o=s.capturedSeries;a.globals.collapsedSeriesIndices.includes(o)&&(o=null);var l=r.elGrid.getBoundingClientRect();if(s.hoverX<0||s.hoverX>l.width)this.handleMouseOut(r);else if(null!==o)this.handleStickyCapturedSeries(e,o,r,n);else if(this.tooltipUtil.isXoverlap(n)||a.globals.isBarHorizontal){var c=a.globals.series.findIndex(function(e,t){return!a.globals.collapsedSeriesIndices.includes(t)});this.create(e,this,c,n,r.ttItems)}}},{key:"handleStickyCapturedSeries",value:function(e,t,i,r){var a=this.w;if(this.tConfig.shared||null!==a.globals.series[t][r]){if(void 0!==a.globals.series[t][r])this.tConfig.shared&&this.tooltipUtil.isXoverlap(r)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,r,i.ttItems):this.create(e,this,t,r,i.ttItems,!1);else if(this.tooltipUtil.isXoverlap(r)){var s=a.globals.series.findIndex(function(e,t){return!a.globals.collapsedSeriesIndices.includes(t)});this.create(e,this,s,r,i.ttItems)}}else this.handleMouseOut(i)}},{key:"deactivateHoverFilter",value:function(){for(var e=this.w,t=new Di(this.ctx),i=e.globals.dom.Paper.find(".apexcharts-bar-area"),r=0;r<i.length;r++)t.pathMouseLeave(i[r])}},{key:"handleMouseOut",value:function(e){var t=this.w,i=this.getElXCrosshairs();if(t.globals.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),this.deactivateHoverFilter(),"bubble"!==t.config.chart.type&&this.marker.resetPointsSize(),null!==i&&i.classList.remove("apexcharts-active"),null!==this.ycrosshairs&&this.ycrosshairs.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&this.xaxisTooltip.classList.remove("apexcharts-active"),this.yaxisTooltips.length){null===this.yaxisTTEls&&(this.yaxisTTEls=t.globals.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip"));for(var r=0;r<this.yaxisTTEls.length;r++)this.yaxisTTEls[r].classList.remove("apexcharts-active")}t.config.legend.tooltipHoverFormatter&&this.legendLabels.forEach(function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)})}},{key:"markerClick",value:function(e,t,i){var r=this.w;"function"==typeof r.config.chart.events.markerClick&&r.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:r}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:i,w:r}])}},{key:"create",value:function(e,t,i,r,a){var s,n,o,l,c,d,h,u,g,p,b,m,x,v,y,A,w=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,k=this.w,C=t;"mouseup"===e.type&&this.markerClick(e,i,r),null===w&&(w=this.tConfig.shared);var S=this.tooltipUtil.hasMarkers(i),E=this.tooltipUtil.getElBars(),D=function(){k.globals.markers.largestSize>0?C.marker.enlargePoints(r):C.tooltipPosition.moveDynamicPointsOnHover(r)};if(k.config.legend.tooltipHoverFormatter){var B=k.config.legend.tooltipHoverFormatter,L=Array.from(this.legendLabels);L.forEach(function(e){var t=e.getAttribute("data:default-text");e.innerHTML=decodeURIComponent(t)});for(var T=0;T<L.length;T++){var P=L[T],M=parseInt(P.getAttribute("i"),10),I=decodeURIComponent(P.getAttribute("data:default-text")),R=B(I,{seriesIndex:w?M:i,dataPointIndex:r,w:k});if(w)P.innerHTML=k.globals.collapsedSeriesIndices.indexOf(M)<0?R:I;else if(P.innerHTML=M===i?R:I,i===M)break}}var z=f(f({ttItems:a,i,j:r},void 0!==(null===(s=k.globals.seriesRange)||void 0===s||null===(n=s[i])||void 0===n||null===(o=n[r])||void 0===o||null===(l=o.y[0])||void 0===l?void 0:l.y1)&&{y1:null===(c=k.globals.seriesRange)||void 0===c||null===(d=c[i])||void 0===d||null===(h=d[r])||void 0===h||null===(u=h.y[0])||void 0===u?void 0:u.y1}),void 0!==(null===(g=k.globals.seriesRange)||void 0===g||null===(p=g[i])||void 0===p||null===(b=p[r])||void 0===b||null===(m=b.y[0])||void 0===m?void 0:m.y2)&&{y2:null===(x=k.globals.seriesRange)||void 0===x||null===(v=x[i])||void 0===v||null===(y=v[r])||void 0===y||null===(A=y.y[0])||void 0===A?void 0:A.y2});if(w){if(C.tooltipLabels.drawSeriesTexts(f(f({},z),{},{shared:!this.showOnIntersect&&this.tConfig.shared})),S)D();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight(E),this.barSeriesHeight>0)){var O=new Di(this.ctx),N=k.globals.dom.Paper.find(".apexcharts-bar-area[j='".concat(r,"']"));this.deactivateHoverFilter(),C.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&D(),C.tooltipPosition.moveStickyTooltipOverBars(r,i);for(var H=0;H<N.length;H++)O.pathMouseEnter(N[H])}}else C.tooltipLabels.drawSeriesTexts(f({shared:!1},z)),this.tooltipUtil.hasBars()&&C.tooltipPosition.moveStickyTooltipOverBars(r,i),S&&C.tooltipPosition.moveMarkers(i,r)}}]),e}(),Dr=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}return o(e,[{key:"handleBarDataLabels",value:function(e){var t,i,r=e.x,a=e.y,s=e.y1,n=e.y2,o=e.i,l=e.j,c=e.realIndex,d=e.columnGroupIndex,h=e.series,u=e.barHeight,g=e.barWidth,p=e.barXPosition,b=e.barYPosition,m=e.visibleSeries,x=this.w,v=new Di(this.barCtx.ctx),y=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[c]:this.barCtx.strokeWidth;x.globals.isXNumeric&&!x.globals.isBarHorizontal?(t=r+parseFloat(g*(m+1)),i=a+parseFloat(u*(m+1))-y):(t=r+parseFloat(g*m),i=a+parseFloat(u*m));var A,w,k=null,C=r,S=a,E=x.config.dataLabels,D=this.barCtx.barOptions.dataLabels,B=this.barCtx.barOptions.dataLabels.total;void 0!==b&&this.barCtx.isRangeBar&&(i=b,S=b),void 0!==p&&this.barCtx.isVerticalGroupedRangeBar&&(t=p,C=p);var L=E.offsetX,T=E.offsetY,P={width:0,height:0};if(x.config.dataLabels.enabled){var M=x.globals.series[o][l];P=v.getTextRects(x.config.dataLabels.formatter?x.config.dataLabels.formatter(M,f(f({},x),{},{seriesIndex:o,dataPointIndex:l,w:x})):x.globals.yLabelFormatters[0](M),parseFloat(E.style.fontSize))}var I={x:r,y:a,i:o,j:l,realIndex:c,columnGroupIndex:d,bcx:t,bcy:i,barHeight:u,barWidth:g,textRects:P,strokeWidth:y,dataLabelsX:C,dataLabelsY:S,dataLabelsConfig:E,barDataLabelsConfig:D,barTotalDataLabelsConfig:B,offX:L,offY:T};return w=this.barCtx.isHorizontal?this.calculateBarsDataLabelsPosition(I):this.calculateColumnsDataLabelsPosition(I),A=this.drawCalculatedDataLabels({x:w.dataLabelsX,y:w.dataLabelsY,val:this.barCtx.isRangeBar?[s,n]:"100%"===x.config.chart.stackType?h[c][l]:x.globals.series[c][l],i:c,j:l,barWidth:g,barHeight:u,textRects:P,dataLabelsConfig:E}),x.config.chart.stacked&&B.enabled&&(k=this.drawTotalDataLabels({x:w.totalDataLabelsX,y:w.totalDataLabelsY,barWidth:g,barHeight:u,realIndex:c,textAnchor:w.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:c,j:l}),dataLabelsConfig:E,barTotalDataLabelsConfig:B})),{dataLabelsPos:w,dataLabels:A,totalDataLabels:k}}},{key:"getStackedTotalDataLabel",value:function(e){var t=e.realIndex,i=e.j,r=this.w,a=this.barCtx.stackedSeriesTotals[i];return this.totalFormatter&&(a=this.totalFormatter(a,f(f({},r),{},{seriesIndex:t,dataPointIndex:i,w:r}))),a}},{key:"calculateColumnsDataLabelsPosition",value:function(e){var t=this,i=this.w,r=e.i,a=e.j,s=e.realIndex;e.columnGroupIndex;var n,o,l=e.y,c=e.bcx,d=e.barWidth,h=e.barHeight,u=e.textRects,g=e.dataLabelsX,p=e.dataLabelsY,f=e.dataLabelsConfig,b=e.barDataLabelsConfig,m=e.barTotalDataLabelsConfig,x=e.strokeWidth,v=e.offX,y=e.offY,A=c;h=Math.abs(h);var w="vertical"===i.config.plotOptions.bar.dataLabels.orientation,k=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:a}).zeroEncounters;c-=x/2;var C=i.globals.gridWidth/i.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?g+=d/2:(g=i.globals.isXNumeric?c-d/2+v:c-C+d/2+v,!i.config.chart.stacked&&k>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(g-=d*k)),w&&(g=g+u.height/2-x/2-2);var S=i.globals.series[r][a]<0,E=l;switch(this.barCtx.isReversed&&(E=l+(S?h:-h)),b.position){case"center":p=w?S?E-h/2+y:E+h/2-y:S?E-h/2+u.height/2+y:E+h/2+u.height/2-y;break;case"bottom":p=w?S?E-h+y:E+h-y:S?E-h+u.height+x+y:E+h-u.height/2+x-y;break;case"top":p=w?S?E+y:E-y:S?E-u.height/2-y:E+u.height+y}var D=E;if(i.globals.seriesGroups.forEach(function(e){var i;null===(i=t.barCtx[e.join(",")])||void 0===i||i.prevY.forEach(function(e){D=S?Math.max(e[a],D):Math.min(e[a],D)})}),this.barCtx.lastActiveBarSerieIndex===s&&m.enabled){var B=new Di(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:s,j:a}),f.fontSize);n=S?D-B.height/2-y-m.offsetY+18:D+B.height+y+m.offsetY-18;var L=C;o=A+(i.globals.isXNumeric?-d*i.globals.barGroups.length/2:i.globals.barGroups.length*d/2-(i.globals.barGroups.length-1)*d-L)+m.offsetX}return i.config.chart.stacked||(p<0?p=0+x:p+u.height/3>i.globals.gridHeight&&(p=i.globals.gridHeight-x)),{bcx:c,bcy:l,dataLabelsX:g,dataLabelsY:p,totalDataLabelsX:o,totalDataLabelsY:n,totalDataLabelsAnchor:"middle"}}},{key:"calculateBarsDataLabelsPosition",value:function(e){var t=this,i=this.w,r=e.x,a=e.i,s=e.j,n=e.realIndex,o=e.bcy,l=e.barHeight,c=e.barWidth,d=e.textRects,h=e.dataLabelsX,u=e.strokeWidth,g=e.dataLabelsConfig,p=e.barDataLabelsConfig,f=e.barTotalDataLabelsConfig,b=e.offX,m=e.offY,x=i.globals.gridHeight/i.globals.dataPoints,v=this.barCtx.barHelpers.getZeroValueEncounters({i:a,j:s}).zeroEncounters;c=Math.abs(c);var y,A,w=o-(this.barCtx.isRangeBar?0:x)+l/2+d.height/2+m-3;!i.config.chart.stacked&&v>0&&i.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(w-=l*v);var k="start",C=i.globals.series[a][s]<0,S=r;switch(this.barCtx.isReversed&&(S=r+(C?-c:c),k=C?"start":"end"),p.position){case"center":h=C?S+c/2-b:Math.max(d.width/2,S-c/2)+b;break;case"bottom":h=C?S+c-u-b:S-c+u+b;break;case"top":h=C?S-u-b:S-u+b}var E=S;if(i.globals.seriesGroups.forEach(function(e){var i;null===(i=t.barCtx[e.join(",")])||void 0===i||i.prevX.forEach(function(e){E=C?Math.min(e[s],E):Math.max(e[s],E)})}),this.barCtx.lastActiveBarSerieIndex===n&&f.enabled){var D=new Di(this.barCtx.ctx).getTextRects(this.getStackedTotalDataLabel({realIndex:n,j:s}),g.fontSize);C?(y=E-u-b-f.offsetX,k="end"):y=E+b+f.offsetX+(this.barCtx.isReversed?-(c+u):u),A=w-d.height/2+D.height/2+f.offsetY+u,i.globals.barGroups.length>1&&(A-=i.globals.barGroups.length/2*(l/2))}return i.config.chart.stacked||("start"===g.textAnchor?h-d.width<0?h=C?d.width+u:u:h+d.width>i.globals.gridWidth&&(h=C?i.globals.gridWidth-u:i.globals.gridWidth-d.width-u):"middle"===g.textAnchor?h-d.width/2<0?h=d.width/2+u:h+d.width/2>i.globals.gridWidth&&(h=i.globals.gridWidth-d.width/2-u):"end"===g.textAnchor&&(h<1?h=d.width+u:h+1>i.globals.gridWidth&&(h=i.globals.gridWidth-d.width-u))),{bcx:r,bcy:o,dataLabelsX:h,dataLabelsY:w,totalDataLabelsX:y,totalDataLabelsY:A,totalDataLabelsAnchor:k}}},{key:"drawCalculatedDataLabels",value:function(e){var t=e.x,i=e.y,r=e.val,a=e.i,s=e.j,n=e.textRects,o=e.barHeight,l=e.barWidth,c=e.dataLabelsConfig,d=this.w,h="rotate(0)";"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&(h="rotate(-90, ".concat(t,", ").concat(i,")"));var u=new Vi(this.barCtx.ctx),g=new Di(this.barCtx.ctx),p=c.formatter,b=null,m=d.globals.collapsedSeriesIndices.indexOf(a)>-1;if(c.enabled&&!m){b=g.group({class:"apexcharts-data-labels",transform:h});var x="";void 0!==r&&(x=p(r,f(f({},d),{},{seriesIndex:a,dataPointIndex:s,w:d}))),!r&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(x="");var v=d.globals.series[a][s]<0,y=d.config.plotOptions.bar.dataLabels.position;"vertical"===d.config.plotOptions.bar.dataLabels.orientation&&("top"===y&&(c.textAnchor=v?"end":"start"),"center"===y&&(c.textAnchor="middle"),"bottom"===y&&(c.textAnchor=v?"end":"start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&l<g.getTextRects(x,parseFloat(c.style.fontSize)).width&&(x=""),d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?n.width/1.6>Math.abs(l)&&(x=""):n.height/1.6>Math.abs(o)&&(x=""));var A=f({},c);this.barCtx.isHorizontal&&r<0&&("start"===c.textAnchor?A.textAnchor="end":"end"===c.textAnchor&&(A.textAnchor="start")),u.plotDataLabelsText({x:t,y:i,text:x,i:a,j:s,parent:b,dataLabelsConfig:A,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return b}},{key:"drawTotalDataLabels",value:function(e){var t=e.x,i=e.y,r=e.val,a=e.realIndex,s=e.textAnchor,n=e.barTotalDataLabelsConfig;this.w;var o,l=new Di(this.barCtx.ctx);return n.enabled&&void 0!==t&&void 0!==i&&this.barCtx.lastActiveBarSerieIndex===a&&(o=l.drawText({x:t,y:i,foreColor:n.style.color,text:r,textAnchor:s,fontFamily:n.style.fontFamily,fontSize:n.style.fontSize,fontWeight:n.style.fontWeight})),o}}]),e}(),Br=function(){function e(t){s(this,e),this.w=t.w,this.barCtx=t}return o(e,[{key:"initVariables",value:function(e){var t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(var i=0;i<e.length;i++)if(e[i].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[i].length),t.globals.isXNumeric)for(var r=0;r<e[i].length;r++)t.globals.seriesX[i][r]>t.globals.minX&&t.globals.seriesX[i][r]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.globals.series),w.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(function(e){return e.map(function(e){return"none"})})),0===this.barCtx.seriesLen&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}},{key:"initialPositions",value:function(e){var t,i,r,a,s,n,o,l,c=this.w,d=c.globals.dataPoints;this.barCtx.isRangeBar&&(d=c.globals.labels.length);var h=this.barCtx.seriesLen;if(c.config.plotOptions.bar.rangeBarGroupRows&&(h=1),this.barCtx.isHorizontal)s=(r=c.globals.gridHeight/d)/h,c.globals.isXNumeric&&(s=(r=c.globals.gridHeight/this.barCtx.totalItems)/this.barCtx.seriesLen),s=s*parseInt(this.barCtx.barOptions.barHeight,10)/100,-1===String(this.barCtx.barOptions.barHeight).indexOf("%")&&(s=parseInt(this.barCtx.barOptions.barHeight,10)),l=this.barCtx.baseLineInvertedY+c.globals.padHorizontal+(this.barCtx.isReversed?c.globals.gridWidth:0)-(this.barCtx.isReversed?2*this.barCtx.baseLineInvertedY:0),this.barCtx.isFunnel&&(l=c.globals.gridWidth/2),i=(r-s*this.barCtx.seriesLen)/2;else{if(a=c.globals.gridWidth/this.barCtx.visibleItems,c.config.xaxis.convertedCatToNumeric&&(a=c.globals.gridWidth/c.globals.dataPoints),n=a/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100,c.globals.isXNumeric){var u=this.barCtx.xRatio;c.globals.minXDiff&&.5!==c.globals.minXDiff&&c.globals.minXDiff/u>0&&(a=c.globals.minXDiff/u),(n=a/h*parseInt(this.barCtx.barOptions.columnWidth,10)/100)<1&&(n=1)}-1===String(this.barCtx.barOptions.columnWidth).indexOf("%")&&(n=parseInt(this.barCtx.barOptions.columnWidth,10)),o=c.globals.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?c.globals.gridHeight:0)+(this.barCtx.isReversed?2*this.barCtx.baseLineY[this.barCtx.translationsIndex]:0),t=c.globals.isXNumeric?this.barCtx.getBarXForNumericXAxis({x:t,j:0,realIndex:e,barWidth:n}).x:c.globals.padHorizontal+w.noExponents(a-n*this.barCtx.seriesLen)/2}return c.globals.barHeight=s,c.globals.barWidth=n,{x:t,y:i,yDivision:r,xDivision:a,barHeight:s,barWidth:n,zeroH:o,zeroW:l}}},{key:"initializeStackedPrevVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].prevY=[],e[t].prevX=[],e[t].prevYF=[],e[t].prevXF=[],e[t].prevYVal=[],e[t].prevXVal=[]})}},{key:"initializeStackedXYVars",value:function(e){e.w.globals.seriesGroups.forEach(function(t){e[t]||(e[t]={}),e[t].xArrj=[],e[t].xArrjF=[],e[t].xArrjVal=[],e[t].yArrj=[],e[t].yArrjF=[],e[t].yArrjVal=[]})}},{key:"getPathFillColor",value:function(e,t,i,r){var a,s,n,o,l=this.w,c=this.barCtx.ctx.fill,d=null,h=this.barCtx.barOptions.distributed?i:t,u=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(function(r){e[t][i]>=r.from&&e[t][i]<=r.to&&(d=r.color,u=!0)}),{color:c.fillPath({seriesNumber:this.barCtx.barOptions.distributed?h:r,dataPointIndex:i,color:d,value:e[t][i],fillConfig:null===(a=l.config.series[t].data[i])||void 0===a?void 0:a.fill,fillType:null!==(s=l.config.series[t].data[i])&&void 0!==s&&null!==(n=s.fill)&&void 0!==n&&n.type?null===(o=l.config.series[t].data[i])||void 0===o?void 0:o.fill.type:Array.isArray(l.config.fill.type)?l.config.fill.type[r]:l.config.fill.type}),useRangeColor:u}}},{key:"getStrokeWidth",value:function(e,t,i){var r=0,a=this.w;return void 0===this.barCtx.series[e][t]||null===this.barCtx.series[e][t]||"bar"===a.config.chart.type&&!this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,a.config.stroke.show&&(this.barCtx.isNullValue||(r=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[i]:this.barCtx.strokeWidth)),r}},{key:"createBorderRadiusArr",value:function(e){var t,i=this.w,r=!this.w.config.chart.stacked||i.config.plotOptions.bar.borderRadius<=0,a=e.length,s=0|(null===(t=e[0])||void 0===t?void 0:t.length),n=Array.from({length:a},function(){return Array(s).fill(r?"top":"none")});if(r)return n;for(var o=0;o<s;o++){for(var c=[],d=[],h=0,u=0;u<a;u++){var g=e[u][o];g>0?(c.push(u),h++):g<0&&(d.push(u),h++)}if(c.length>0&&0===d.length)if(1===c.length)n[c[0]][o]="both";else{var p,f=c[0],b=c[c.length-1],m=l(c);try{for(m.s();!(p=m.n()).done;){var x=p.value;n[x][o]=x===f?"bottom":x===b?"top":"none"}}catch(e){m.e(e)}finally{m.f()}}else if(d.length>0&&0===c.length)if(1===d.length)n[d[0]][o]="both";else{var v,y=Math.max.apply(Math,d),A=Math.min.apply(Math,d),w=l(d);try{for(w.s();!(v=w.n()).done;){var k=v.value;n[k][o]=k===y?"bottom":k===A?"top":"none"}}catch(e){w.e(e)}finally{w.f()}}else if(c.length>0&&d.length>0){var C,S=c[c.length-1],E=l(c);try{for(E.s();!(C=E.n()).done;){var D=C.value;n[D][o]=D===S?"top":"none"}}catch(e){E.e(e)}finally{E.f()}var B,L=Math.max.apply(Math,d),T=l(d);try{for(T.s();!(B=T.n()).done;){var P=B.value;n[P][o]=P===L?"bottom":"none"}}catch(e){T.e(e)}finally{T.f()}}else 1===h&&(n[c[0]||d[0]][o]="both")}return n}},{key:"barBackground",value:function(e){var t=e.j,i=e.i,r=e.x1,a=e.x2,s=e.y1,n=e.y2,o=e.elSeries,l=this.w,c=new Di(this.barCtx.ctx),d=new $i(this.barCtx.ctx).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&d===i){t>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(t%=this.barCtx.barOptions.colors.backgroundBarColors.length);var h=this.barCtx.barOptions.colors.backgroundBarColors[t],u=c.drawRect(void 0!==r?r:0,void 0!==s?s:0,void 0!==a?a:l.globals.gridWidth,void 0!==n?n:l.globals.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,h,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(u),u.node.classList.add("apexcharts-backgroundBar")}}},{key:"getColumnPaths",value:function(e){var t,i=e.barWidth,r=e.barXPosition,a=e.y1,s=e.y2,n=e.strokeWidth,o=e.isReversed,l=e.series,c=e.seriesGroup,d=e.realIndex,h=e.i,u=e.j,g=e.w,p=new Di(this.barCtx.ctx);(n=Array.isArray(n)?n[d]:n)||(n=0);var f=i,b=r;null!==(t=g.config.series[d].data[u])&&void 0!==t&&t.columnWidthOffset&&(b=r-g.config.series[d].data[u].columnWidthOffset/2,f=i+g.config.series[d].data[u].columnWidthOffset);var m=n/2,x=b+m,v=b+f-m,y=(l[h][u]>=0?1:-1)*(o?-1:1);a+=.001-m*y,s+=.001+m*y;var A=p.move(x,a),w=p.move(x,a),k=p.line(v,a);if(g.globals.previousPaths.length>0&&(w=this.barCtx.getPreviousPath(d,u,!1)),A=A+p.line(x,s)+p.line(v,s)+k+("around"===g.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[d][u]?" Z":" z"),w=w+p.line(x,a)+k+k+k+k+k+p.line(x,a)+("around"===g.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[d][u]?" Z":" z"),"none"!==this.arrBorderRadius[d][u]&&(A=p.roundPathCorners(A,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var C=this.barCtx;(C=this.barCtx[c]).yArrj.push(s-m*y),C.yArrjF.push(Math.abs(a-s+n*y)),C.yArrjVal.push(this.barCtx.series[h][u])}return{pathTo:A,pathFrom:w}}},{key:"getBarpaths",value:function(e){var t,i=e.barYPosition,r=e.barHeight,a=e.x1,s=e.x2,n=e.strokeWidth,o=e.isReversed,l=e.series,c=e.seriesGroup,d=e.realIndex,h=e.i,u=e.j,g=e.w,p=new Di(this.barCtx.ctx);(n=Array.isArray(n)?n[d]:n)||(n=0);var f=i,b=r;null!==(t=g.config.series[d].data[u])&&void 0!==t&&t.barHeightOffset&&(f=i-g.config.series[d].data[u].barHeightOffset/2,b=r+g.config.series[d].data[u].barHeightOffset);var m=n/2,x=f+m,v=f+b-m,y=(l[h][u]>=0?1:-1)*(o?-1:1);a+=.001+m*y,s+=.001-m*y;var A=p.move(a,x),w=p.move(a,x);g.globals.previousPaths.length>0&&(w=this.barCtx.getPreviousPath(d,u,!1));var k=p.line(a,v);if(A=A+p.line(s,x)+p.line(s,v)+k+("around"===g.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[d][u]?" Z":" z"),w=w+p.line(a,x)+k+k+k+k+k+p.line(a,x)+("around"===g.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[d][u]?" Z":" z"),"none"!==this.arrBorderRadius[d][u]&&(A=p.roundPathCorners(A,g.config.plotOptions.bar.borderRadius)),g.config.chart.stacked){var C=this.barCtx;(C=this.barCtx[c]).xArrj.push(s+m*y),C.xArrjF.push(Math.abs(a-s-n*y)),C.xArrjVal.push(this.barCtx.series[h][u])}return{pathTo:A,pathFrom:w}}},{key:"checkZeroSeries",value:function(e){for(var t=e.series,i=this.w,r=0;r<t.length;r++){for(var a=0,s=0;s<t[i.globals.maxValsInArrayIndex].length;s++)a+=t[r][s];0===a&&this.barCtx.zeroSerieses.push(r)}}},{key:"getXForValue",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?null:t;return null!=e&&(i=t+e/this.barCtx.invertedYRatio-2*(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)),i}},{key:"getYForValue",value:function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]&&!arguments[3]?null:t;return null!=e&&(r=t-e/this.barCtx.yRatio[i]+2*(this.barCtx.isReversed?e/this.barCtx.yRatio[i]:0)),r}},{key:"getGoalValues",value:function(e,t,i,r,a,s){var n=this,o=this.w,l=[],c=function(r,a){var o;l.push((d(o={},e,"x"===e?n.getXForValue(r,t,!1):n.getYForValue(r,i,s,!1)),d(o,"attrs",a),o))};if(o.globals.seriesGoals[r]&&o.globals.seriesGoals[r][a]&&Array.isArray(o.globals.seriesGoals[r][a])&&o.globals.seriesGoals[r][a].forEach(function(e){c(e.value,e)}),this.barCtx.barOptions.isDumbbell&&o.globals.seriesRange.length){var h=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,u={strokeHeight:"x"===e?0:o.globals.markers.size[r],strokeWidth:"x"===e?o.globals.markers.size[r]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(h[r])?h[r][0]:h[r]};c(o.globals.seriesRangeStart[r][a],u),c(o.globals.seriesRangeEnd[r][a],f(f({},u),{},{strokeColor:Array.isArray(h[r])?h[r][1]:h[r]}))}return l}},{key:"drawGoalLine",value:function(e){var t=e.barXPosition,i=e.barYPosition,r=e.goalX,a=e.goalY,s=e.barWidth,n=e.barHeight,o=new Di(this.barCtx.ctx),l=o.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path","url(#gridRectMarkerMask".concat(this.barCtx.w.globals.cuid,")"));var c=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach(function(e){if(e.x>=-1&&e.x<=o.w.globals.gridWidth+1){var t=void 0!==e.attrs.strokeHeight?e.attrs.strokeHeight:n/2,r=i+t+n/2;c=o.drawLine(e.x,r-2*t,e.x,r,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeWidth?e.attrs.strokeWidth:2,e.attrs.strokeLineCap),l.add(c)}}):Array.isArray(a)&&a.forEach(function(e){if(e.y>=-1&&e.y<=o.w.globals.gridHeight+1){var i=void 0!==e.attrs.strokeWidth?e.attrs.strokeWidth:s/2,r=t+i+s/2;c=o.drawLine(r-2*i,e.y,r,e.y,e.attrs.strokeColor?e.attrs.strokeColor:void 0,e.attrs.strokeDashArray,e.attrs.strokeHeight?e.attrs.strokeHeight:2,e.attrs.strokeLineCap),l.add(c)}}),l}},{key:"drawBarShadow",value:function(e){var t=e.prevPaths,i=e.currPaths,r=e.color,a=this.w,s=t.x,n=t.x1,o=t.barYPosition,l=i.x,c=i.x1,d=i.barYPosition,h=o+i.barHeight,u=new Di(this.barCtx.ctx),g=new w,p=u.move(n,h)+u.line(s,h)+u.line(l,d)+u.line(c,d)+u.line(n,h)+("around"===a.config.plotOptions.bar.borderRadiusApplication||"both"===this.arrBorderRadius[realIndex][j]?" Z":" z");return u.drawPath({d:p,fill:g.shadeColor(.5,w.rgb2hex(r)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}},{key:"getZeroValueEncounters",value:function(e){var t,i=e.i,r=e.j,a=this.w,s=0,n=0;return(a.config.plotOptions.bar.horizontal?a.globals.series.map(function(e,t){return t}):(null===(t=a.globals.columnSeries)||void 0===t?void 0:t.i.map(function(e){return e}))||[]).forEach(function(e){var t=a.globals.seriesPercent[e][r];t&&s++,e<i&&0===t&&n++}),{nonZeroColumns:s,zeroEncounters:n}}},{key:"getGroupIndex",value:function(e){var t=this.w,i=t.globals.seriesGroups.findIndex(function(i){return i.indexOf(t.globals.seriesNames[e])>-1}),r=this.barCtx.columnGroupIndices,a=r.indexOf(i);return a<0&&(r.push(i),a=r.length-1),{groupIndex:i,columnGroupIndex:a}}}]),e}(),Lr=function(){function e(t,i){s(this,e),this.ctx=t,this.w=t.w;var r=this.w;this.barOptions=r.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=r.config.stroke.width,this.isNullValue=!1,this.isRangeBar=r.globals.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!r.globals.isBarHorizontal&&r.globals.seriesRange.length&&r.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.xyRatios=i,null!==this.xyRatios&&(this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.invertedXRatio=i.invertedXRatio,this.invertedYRatio=i.invertedYRatio,this.baseLineY=i.baseLineY,this.baseLineInvertedY=i.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[];var a=new $i(this.ctx);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];var n=a.getBarSeriesIndices(),o=new Bi(this.ctx);this.stackedSeriesTotals=o.getStackedSeriesTotals(this.w.config.series.map(function(e,t){return-1===n.indexOf(t)?t:-1}).filter(function(e){return-1!==e})),this.barHelpers=new Br(this)}return o(e,[{key:"draw",value:function(e,t){var i=this.w,r=new Di(this.ctx),a=new Bi(this.ctx,i);e=a.getLogSeries(e),this.series=e,this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);var s=r.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(var n=0,o=0;n<e.length;n++,o++){var l,c,d,h,u=void 0,g=void 0,p=[],b=[],m=i.globals.comboCharts?t[n]:n,x=this.barHelpers.getGroupIndex(m).columnGroupIndex,v=r.group({class:"apexcharts-series",rel:n+1,seriesName:w.escapeString(i.globals.seriesNames[m]),"data:realIndex":m});this.ctx.series.addCollapsedClassToSeries(v,m),e[n].length>0&&(this.visibleI=this.visibleI+1);var y=0,A=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[m],this.translationsIndex=m);var k=this.translationsIndex;this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed;var C=this.barHelpers.initialPositions(m);g=C.y,y=C.barHeight,c=C.yDivision,h=C.zeroW,u=C.x,A=C.barWidth,l=C.xDivision,d=C.zeroH,this.isHorizontal||b.push(u+A/2);var S=r.group({class:"apexcharts-datalabels","data:realIndex":m});i.globals.delayedElements.push({el:S.node}),S.node.classList.add("apexcharts-element-hidden");var E=r.group({class:"apexcharts-bar-goals-markers"}),D=r.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:D.node}),D.node.classList.add("apexcharts-element-hidden");for(var B=0;B<e[n].length;B++){var L=this.barHelpers.getStrokeWidth(n,B,m),T=null,P={indexes:{i:n,j:B,realIndex:m,translationsIndex:k,bc:o},x:u,y:g,strokeWidth:L,elSeries:v};this.isHorizontal?(T=this.drawBarPaths(f(f({},P),{},{barHeight:y,zeroW:h,yDivision:c})),A=this.series[n][B]/this.invertedYRatio):(T=this.drawColumnPaths(f(f({},P),{},{xDivision:l,barWidth:A,zeroH:d})),y=this.series[n][B]/this.yRatio[k]);var M=this.barHelpers.getPathFillColor(e,n,B,m);if(this.isFunnel&&this.barOptions.isFunnel3d&&this.pathArr.length&&B>0){var I,R=this.barHelpers.drawBarShadow({color:"string"==typeof M.color&&-1===(null===(I=M.color)||void 0===I?void 0:I.indexOf("url"))?M.color:w.hexToRgba(i.globals.colors[n]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:T});D.add(R),i.config.chart.dropShadow.enabled&&new Ei(this.ctx).dropShadow(R,i.config.chart.dropShadow,m)}this.pathArr.push(T);var z=this.barHelpers.drawGoalLine({barXPosition:T.barXPosition,barYPosition:T.barYPosition,goalX:T.goalX,goalY:T.goalY,barHeight:y,barWidth:A});z&&E.add(z),g=T.y,u=T.x,B>0&&b.push(u+A/2),p.push(g),this.renderSeries(f(f({realIndex:m,pathFill:M.color},M.useRangeColor?{lineFill:M.color}:{}),{},{j:B,i:n,columnGroupIndex:x,pathFrom:T.pathFrom,pathTo:T.pathTo,strokeWidth:L,elSeries:v,x:u,y:g,series:e,barHeight:Math.abs(T.barHeight?T.barHeight:y),barWidth:Math.abs(T.barWidth?T.barWidth:A),elDataLabelsWrap:S,elGoalsMarkers:E,elBarShadows:D,visibleSeries:this.visibleI,type:"bar"}))}i.globals.seriesXvalues[m]=b,i.globals.seriesYvalues[m]=p,s.add(v)}return s}},{key:"renderSeries",value:function(e){var t=e.realIndex,i=e.pathFill,r=e.lineFill,a=e.j,s=e.i,n=e.columnGroupIndex,o=e.pathFrom,l=e.pathTo,c=e.strokeWidth,d=e.elSeries,h=e.x,u=e.y,g=e.y1,p=e.y2,f=e.series,b=e.barHeight,m=e.barWidth,x=e.barXPosition,v=e.barYPosition,y=e.elDataLabelsWrap,A=e.elGoalsMarkers,w=e.elBarShadows,k=e.visibleSeries,C=e.type,S=e.classes,E=this.w,D=new Di(this.ctx),B=!1;if(!r){var L="function"==typeof E.globals.stroke.colors[t]?function(e){var t,i=E.config.stroke.colors;return Array.isArray(i)&&i.length>0&&((t=i[e])||(t=""),"function"==typeof t)?t({value:E.globals.series[e][a],dataPointIndex:a,w:E}):t}(t):E.globals.stroke.colors[t];r=this.barOptions.distributed?E.globals.stroke.colors[a]:L}var T=new Dr(this).handleBarDataLabels({x:h,y:u,y1:g,y2:p,i:s,j:a,series:f,realIndex:t,columnGroupIndex:n,barHeight:b,barWidth:m,barXPosition:x,barYPosition:v,visibleSeries:k});E.globals.isBarHorizontal||(T.dataLabelsPos.dataLabelsX+Math.max(m,E.globals.barPadForNumericAxis)<0||T.dataLabelsPos.dataLabelsX-Math.max(m,E.globals.barPadForNumericAxis)>E.globals.gridWidth)&&(B=!0),E.config.series[s].data[a]&&E.config.series[s].data[a].strokeColor&&(r=E.config.series[s].data[a].strokeColor),this.isNullValue&&(i="none");var P=a/E.config.chart.animations.animateGradually.delay*(E.config.chart.animations.speed/E.globals.dataPoints)/2.4;if(!B){var M=D.renderPaths({i:s,j:a,realIndex:t,pathFrom:o,pathTo:l,stroke:r,strokeWidth:c,strokeLineCap:E.config.stroke.lineCap,fill:i,animationDelay:P,initialSpeed:E.config.chart.animations.speed,dataChangeSpeed:E.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(C,"-area ").concat(S),chartType:C});M.attr("clip-path","url(#gridRectBarMask".concat(E.globals.cuid,")"));var I=E.config.forecastDataPoints;I.count>0&&a>=E.globals.dataPoints-I.count&&(M.node.setAttribute("stroke-dasharray",I.dashArray),M.node.setAttribute("stroke-width",I.strokeWidth),M.node.setAttribute("fill-opacity",I.fillOpacity)),void 0!==g&&void 0!==p&&(M.attr("data-range-y1",g),M.attr("data-range-y2",p)),new Ei(this.ctx).setSelectionFilter(M,t,a),d.add(M),M.attr({cy:T.dataLabelsPos.bcy,cx:T.dataLabelsPos.bcx,j:a,val:E.globals.series[s][a],barHeight:b,barWidth:m}),null!==T.dataLabels&&y.add(T.dataLabels),T.totalDataLabels&&y.add(T.totalDataLabels),d.add(y),A&&d.add(A),w&&d.add(w)}return d}},{key:"drawBarPaths",value:function(e){var t,i=e.indexes,r=e.barHeight,a=e.strokeWidth,s=e.zeroW,n=e.x,o=e.y,l=e.yDivision,c=e.elSeries,d=this.w,h=i.i,u=i.j;if(d.globals.isXNumeric)t=(o=(d.globals.seriesX[h][u]-d.globals.minX)/this.invertedXRatio-r)+r*this.visibleI;else if(d.config.plotOptions.bar.hideZeroBarsWhenGrouped){var g=this.barHelpers.getZeroValueEncounters({i:h,j:u}),p=g.nonZeroColumns,f=g.zeroEncounters;p>0&&(r=this.seriesLen*r/p),t=o+r*this.visibleI,t-=r*f}else t=o+r*this.visibleI;this.isFunnel&&(s-=(this.barHelpers.getXForValue(this.series[h][u],s)-s)/2),n=this.barHelpers.getXForValue(this.series[h][u],s);var b=this.barHelpers.getBarpaths({barYPosition:t,barHeight:r,x1:s,x2:n,strokeWidth:a,isReversed:this.isReversed,series:this.series,realIndex:i.realIndex,i:h,j:u,w:d});return d.globals.isXNumeric||(o+=l),this.barHelpers.barBackground({j:u,i:h,y1:t-r*this.visibleI,y2:r*this.seriesLen,elSeries:c}),{pathTo:b.pathTo,pathFrom:b.pathFrom,x1:s,x:n,y:o,goalX:this.barHelpers.getGoalValues("x",s,null,h,u),barYPosition:t,barHeight:r}}},{key:"drawColumnPaths",value:function(e){var t,i=e.indexes,r=e.x,a=e.y,s=e.xDivision,n=e.barWidth,o=e.zeroH,l=e.strokeWidth,c=e.elSeries,d=this.w,h=i.realIndex,u=i.translationsIndex,g=i.i,p=i.j,f=i.bc;if(d.globals.isXNumeric){var b=this.getBarXForNumericXAxis({x:r,j:p,realIndex:h,barWidth:n});r=b.x,t=b.barXPosition}else if(d.config.plotOptions.bar.hideZeroBarsWhenGrouped){var m=this.barHelpers.getZeroValueEncounters({i:g,j:p}),x=m.nonZeroColumns,v=m.zeroEncounters;x>0&&(n=this.seriesLen*n/x),t=r+n*this.visibleI,t-=n*v}else t=r+n*this.visibleI;a=this.barHelpers.getYForValue(this.series[g][p],o,u);var y=this.barHelpers.getColumnPaths({barXPosition:t,barWidth:n,y1:o,y2:a,strokeWidth:l,isReversed:this.isReversed,series:this.series,realIndex:h,i:g,j:p,w:d});return d.globals.isXNumeric||(r+=s),this.barHelpers.barBackground({bc:f,j:p,i:g,x1:t-l/2-n*this.visibleI,x2:n*this.seriesLen+l/2,elSeries:c}),{pathTo:y.pathTo,pathFrom:y.pathFrom,x:r,y:a,goalY:this.barHelpers.getGoalValues("y",null,o,g,p,u),barXPosition:t,barWidth:n}}},{key:"getBarXForNumericXAxis",value:function(e){var t=e.x,i=e.barWidth,r=e.realIndex,a=e.j,s=this.w,n=r;return s.globals.seriesX[r].length||(n=s.globals.maxValsInArrayIndex),w.isNumber(s.globals.seriesX[n][a])&&(t=(s.globals.seriesX[n][a]-s.globals.minX)/this.xRatio-i*this.seriesLen/2),{barXPosition:t+i*this.visibleI,x:t}}},{key:"getPreviousPath",value:function(e,t){for(var i=this.w,r="M 0 0",a=0;a<i.globals.previousPaths.length;a++){var s=i.globals.previousPaths[a];s.paths&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(e,10)&&void 0!==i.globals.previousPaths[a].paths[t]&&(r=i.globals.previousPaths[a].paths[t].d)}return r}}]),e}(),Tr=function(){u(t,Lr);var e=c(t);function t(){return s(this,t),e.apply(this,arguments)}return o(t,[{key:"draw",value:function(e,t){var i=this,r=this.w;this.graphics=new Di(this.ctx),this.bar=new Lr(this.ctx,this.xyRatios);var a=new Bi(this.ctx,r);e=a.getLogSeries(e),this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),"100%"===r.config.chart.stackType&&(e=r.globals.comboCharts?t.map(function(e){return r.globals.seriesPercent[e]}):r.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);for(var s=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"}),n=0,o=0,l=function(a,l){var c=void 0,d=void 0,h=void 0,u=void 0,g=r.globals.comboCharts?t[a]:a,p=i.barHelpers.getGroupIndex(g),b=p.groupIndex,m=p.columnGroupIndex;i.groupCtx=i[r.globals.seriesGroups[b]];var x=[],v=[],y=0;i.yRatio.length>1&&(i.yaxisIndex=r.globals.seriesYAxisReverseMap[g][0],y=g),i.isReversed=r.config.yaxis[i.yaxisIndex]&&r.config.yaxis[i.yaxisIndex].reversed;var A=i.graphics.group({class:"apexcharts-series",seriesName:w.escapeString(r.globals.seriesNames[g]),rel:a+1,"data:realIndex":g});i.ctx.series.addCollapsedClassToSeries(A,g);var k=i.graphics.group({class:"apexcharts-datalabels","data:realIndex":g}),C=i.graphics.group({class:"apexcharts-bar-goals-markers"}),S=0,E=0,D=i.initialPositions(n,o,c,d,h,u,y);o=D.y,S=D.barHeight,d=D.yDivision,u=D.zeroW,n=D.x,E=D.barWidth,c=D.xDivision,h=D.zeroH,r.globals.barHeight=S,r.globals.barWidth=E,i.barHelpers.initializeStackedXYVars(i),1===i.groupCtx.prevY.length&&i.groupCtx.prevY[0].every(function(e){return isNaN(e)})&&(i.groupCtx.prevY[0]=i.groupCtx.prevY[0].map(function(){return h}),i.groupCtx.prevYF[0]=i.groupCtx.prevYF[0].map(function(){return 0}));for(var B=0;B<r.globals.dataPoints;B++){var L=i.barHelpers.getStrokeWidth(a,B,g),T={indexes:{i:a,j:B,realIndex:g,translationsIndex:y,bc:l},strokeWidth:L,x:n,y:o,elSeries:A,columnGroupIndex:m,seriesGroup:r.globals.seriesGroups[b]},P=null;i.isHorizontal?(P=i.drawStackedBarPaths(f(f({},T),{},{zeroW:u,barHeight:S,yDivision:d})),E=i.series[a][B]/i.invertedYRatio):(P=i.drawStackedColumnPaths(f(f({},T),{},{xDivision:c,barWidth:E,zeroH:h})),S=i.series[a][B]/i.yRatio[y]);var M=i.barHelpers.drawGoalLine({barXPosition:P.barXPosition,barYPosition:P.barYPosition,goalX:P.goalX,goalY:P.goalY,barHeight:S,barWidth:E});M&&C.add(M),o=P.y,n=P.x,x.push(n),v.push(o);var I=i.barHelpers.getPathFillColor(e,a,B,g),R="",z=r.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";("bottom"===i.barHelpers.arrBorderRadius[g][B]&&r.globals.series[g][B]>0||"top"===i.barHelpers.arrBorderRadius[g][B]&&r.globals.series[g][B]<0)&&(R=z),A=i.renderSeries(f(f({realIndex:g,pathFill:I.color},I.useRangeColor?{lineFill:I.color}:{}),{},{j:B,i:a,columnGroupIndex:m,pathFrom:P.pathFrom,pathTo:P.pathTo,strokeWidth:L,elSeries:A,x:n,y:o,series:e,barHeight:S,barWidth:E,elDataLabelsWrap:k,elGoalsMarkers:C,type:"bar",visibleSeries:m,classes:R}))}r.globals.seriesXvalues[g]=x,r.globals.seriesYvalues[g]=v,i.groupCtx.prevY.push(i.groupCtx.yArrj),i.groupCtx.prevYF.push(i.groupCtx.yArrjF),i.groupCtx.prevYVal.push(i.groupCtx.yArrjVal),i.groupCtx.prevX.push(i.groupCtx.xArrj),i.groupCtx.prevXF.push(i.groupCtx.xArrjF),i.groupCtx.prevXVal.push(i.groupCtx.xArrjVal),s.add(A)},c=0,d=0;c<e.length;c++,d++)l(c,d);return s}},{key:"initialPositions",value:function(e,t,i,r,a,s,n){var o,l,c=this.w;if(this.isHorizontal){r=c.globals.gridHeight/c.globals.dataPoints;var d=c.config.plotOptions.bar.barHeight;o=-1===String(d).indexOf("%")?parseInt(d,10):r*parseInt(d,10)/100,s=c.globals.padHorizontal+(this.isReversed?c.globals.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(r-o)/2}else{l=i=c.globals.gridWidth/c.globals.dataPoints;var h=c.config.plotOptions.bar.columnWidth;c.globals.isXNumeric&&c.globals.dataPoints>1?l=(i=c.globals.minXDiff/this.xRatio)*parseInt(this.barOptions.columnWidth,10)/100:-1===String(h).indexOf("%")?l=parseInt(h,10):l*=parseInt(h,10)/100,a=this.isReversed?this.baseLineY[n]:c.globals.gridHeight-this.baseLineY[n],e=c.globals.padHorizontal+(i-l)/2}var u=c.globals.barGroups.length||1;return{x:e,y:t,yDivision:r,xDivision:i,barHeight:o/u,barWidth:l/u,zeroH:a,zeroW:s}}},{key:"drawStackedBarPaths",value:function(e){for(var t,i=e.indexes,r=e.barHeight,a=e.strokeWidth,s=e.zeroW,n=e.x,o=e.y,l=e.columnGroupIndex,c=e.seriesGroup,d=e.yDivision,h=e.elSeries,u=this.w,g=o+l*r,p=i.i,f=i.j,b=i.realIndex,m=i.translationsIndex,x=0,v=0;v<this.groupCtx.prevXF.length;v++)x+=this.groupCtx.prevXF[v][f];var y=p;if(u.config.series[b].name&&(y=c.indexOf(u.config.series[b].name)),y>0){var A=s;this.groupCtx.prevXVal[y-1][f]<0?A=this.series[p][f]>=0?this.groupCtx.prevX[y-1][f]+x-2*(this.isReversed?x:0):this.groupCtx.prevX[y-1][f]:this.groupCtx.prevXVal[y-1][f]>=0&&(A=this.series[p][f]>=0?this.groupCtx.prevX[y-1][f]:this.groupCtx.prevX[y-1][f]-x+2*(this.isReversed?x:0)),t=A}else t=s;n=null===this.series[p][f]?t:t+this.series[p][f]/this.invertedYRatio-2*(this.isReversed?this.series[p][f]/this.invertedYRatio:0);var w=this.barHelpers.getBarpaths({barYPosition:g,barHeight:r,x1:t,x2:n,strokeWidth:a,isReversed:this.isReversed,series:this.series,realIndex:i.realIndex,seriesGroup:c,i:p,j:f,w:u});return this.barHelpers.barBackground({j:f,i:p,y1:g,y2:r,elSeries:h}),o+=d,{pathTo:w.pathTo,pathFrom:w.pathFrom,goalX:this.barHelpers.getGoalValues("x",s,null,p,f,m),barXPosition:t,barYPosition:g,x:n,y:o}}},{key:"drawStackedColumnPaths",value:function(e){var t=e.indexes,i=e.x,r=e.y,a=e.xDivision,s=e.barWidth,n=e.zeroH,o=e.columnGroupIndex,l=e.seriesGroup,c=e.elSeries,d=this.w,h=t.i,u=t.j,g=t.bc,p=t.realIndex,f=t.translationsIndex;if(d.globals.isXNumeric){var b=d.globals.seriesX[p][u];b||(b=0),i=(b-d.globals.minX)/this.xRatio-s/2*d.globals.barGroups.length}for(var m,x=i+o*s,v=0,y=0;y<this.groupCtx.prevYF.length;y++)v+=isNaN(this.groupCtx.prevYF[y][u])?0:this.groupCtx.prevYF[y][u];var A=h;if(l&&(A=l.indexOf(d.globals.seriesNames[p])),A>0&&!d.globals.isXNumeric||A>0&&d.globals.isXNumeric&&d.globals.seriesX[p-1][u]===d.globals.seriesX[p][u]){var w,k,C,S=Math.min(this.yRatio.length+1,p+1);if(void 0!==this.groupCtx.prevY[A-1]&&this.groupCtx.prevY[A-1].length)for(var E=1;E<S;E++){var D;if(!isNaN(null===(D=this.groupCtx.prevY[A-E])||void 0===D?void 0:D[u])){C=this.groupCtx.prevY[A-E][u];break}}for(var B=1;B<S;B++){var L,T;if((null===(L=this.groupCtx.prevYVal[A-B])||void 0===L?void 0:L[u])<0){k=this.series[h][u]>=0?C-v+2*(this.isReversed?v:0):C;break}if((null===(T=this.groupCtx.prevYVal[A-B])||void 0===T?void 0:T[u])>=0){k=this.series[h][u]>=0?C:C+v-2*(this.isReversed?v:0);break}}void 0===k&&(k=d.globals.gridHeight),m=null!==(w=this.groupCtx.prevYF[0])&&void 0!==w&&w.every(function(e){return 0===e})&&this.groupCtx.prevYF.slice(1,A).every(function(e){return e.every(function(e){return isNaN(e)})})?n:k}else m=n;r=this.series[h][u]?m-this.series[h][u]/this.yRatio[f]+2*(this.isReversed?this.series[h][u]/this.yRatio[f]:0):m;var P=this.barHelpers.getColumnPaths({barXPosition:x,barWidth:s,y1:m,y2:r,yRatio:this.yRatio[f],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:l,realIndex:t.realIndex,i:h,j:u,w:d});return this.barHelpers.barBackground({bc:g,j:u,i:h,x1:x,x2:s,elSeries:c}),{pathTo:P.pathTo,pathFrom:P.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,n,h,u),barXPosition:x,x:d.globals.isXNumeric?i:i+a,y:r}}}]),t}(),Pr=function(){u(t,Lr);var e=c(t);function t(){return s(this,t),e.apply(this,arguments)}return o(t,[{key:"draw",value:function(e,t,i){var r=this,a=this.w,s=new Di(this.ctx),n=a.globals.comboCharts?t:a.config.chart.type,o=new ji(this.ctx);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=a.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&"ohlc"===this.candlestickOptions.type;var l=new Bi(this.ctx,a);e=l.getLogSeries(e),this.series=e,this.yRatio=l.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);for(var c=s.group({class:"apexcharts-".concat(n,"-series apexcharts-plot-series")}),d=function(t){r.isBoxPlot="boxPlot"===a.config.chart.type||"boxPlot"===a.config.series[t].type;var n,l,d,h,u=void 0,g=void 0,p=[],b=[],m=a.globals.comboCharts?i[t]:t,x=r.barHelpers.getGroupIndex(m).columnGroupIndex,v=s.group({class:"apexcharts-series",seriesName:w.escapeString(a.globals.seriesNames[m]),rel:t+1,"data:realIndex":m});r.ctx.series.addCollapsedClassToSeries(v,m),e[t].length>0&&(r.visibleI=r.visibleI+1);var y,A,k=0;r.yRatio.length>1&&(r.yaxisIndex=a.globals.seriesYAxisReverseMap[m][0],k=m);var C=r.barHelpers.initialPositions(m);g=C.y,y=C.barHeight,l=C.yDivision,h=C.zeroW,u=C.x,A=C.barWidth,n=C.xDivision,d=C.zeroH,b.push(u+A/2);for(var S=s.group({class:"apexcharts-datalabels","data:realIndex":m}),E=s.group({class:"apexcharts-bar-goals-markers"}),D=function(i){var s=r.barHelpers.getStrokeWidth(t,i,m),c=null,w={indexes:{i:t,j:i,realIndex:m,translationsIndex:k},x:u,y:g,strokeWidth:s,elSeries:v};c=r.isHorizontal?r.drawHorizontalBoxPaths(f(f({},w),{},{yDivision:l,barHeight:y,zeroW:h})):r.drawVerticalBoxPaths(f(f({},w),{},{xDivision:n,barWidth:A,zeroH:d})),g=c.y,u=c.x;var C=r.barHelpers.drawGoalLine({barXPosition:c.barXPosition,barYPosition:c.barYPosition,goalX:c.goalX,goalY:c.goalY,barHeight:y,barWidth:A});C&&E.add(C),i>0&&b.push(u+A/2),p.push(g),c.pathTo.forEach(function(n,l){var d=!r.isBoxPlot&&r.candlestickOptions.wick.useFillColor?c.color[l]:a.globals.stroke.colors[t],h=o.fillPath({seriesNumber:m,dataPointIndex:i,color:c.color[l],value:e[t][i]});r.renderSeries({realIndex:m,pathFill:h,lineFill:d,j:i,i:t,pathFrom:c.pathFrom,pathTo:n,strokeWidth:s,elSeries:v,x:u,y:g,series:e,columnGroupIndex:x,barHeight:y,barWidth:A,elDataLabelsWrap:S,elGoalsMarkers:E,visibleSeries:r.visibleI,type:a.config.chart.type})})},B=0;B<a.globals.dataPoints;B++)D(B);a.globals.seriesXvalues[m]=b,a.globals.seriesYvalues[m]=p,c.add(v)},h=0;h<e.length;h++)d(h);return c}},{key:"drawVerticalBoxPaths",value:function(e){var t=e.indexes,i=e.x;e.y;var r=e.xDivision,a=e.barWidth,s=e.zeroH,n=e.strokeWidth,o=this.w,l=new Di(this.ctx),c=t.i,d=t.j,h=o.config.plotOptions.candlestick.colors,u=this.boxOptions.colors,g=t.realIndex,p=function(e){return Array.isArray(e)?e[g]:e},f=p(h.upward),b=p(h.downward),m=this.yRatio[t.translationsIndex],x=this.getOHLCValue(g,d),v=s,y=s,A=x.o<x.c?[f]:[b];this.isBoxPlot&&(A=[p(u.lower),p(u.upper)]);var w=Math.min(x.o,x.c),k=Math.max(x.o,x.c),C=x.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[g][d]-o.globals.minX)/this.xRatio-a/2);var S=i+a*this.visibleI;void 0===this.series[c][d]||null===this.series[c][d]?(w=s,k=s):(w=s-w/m,k=s-k/m,v=s-x.h/m,y=s-x.l/m,C=s-x.m/m);var E=l.move(S,s),D=l.move(S+a/2,w);if(o.globals.previousPaths.length>0&&(D=this.getPreviousPath(g,d,!0)),this.isOHLC){var B=S+a/2,L=s-x.o/m,T=s-x.c/m;E=[l.move(B,v)+l.line(B,y)+l.move(B,L)+l.line(S,L)+l.move(B,T)+l.line(S+a,T)]}else E=this.isBoxPlot?[l.move(S,w)+l.line(S+a/2,w)+l.line(S+a/2,v)+l.line(S+a/4,v)+l.line(S+a-a/4,v)+l.line(S+a/2,v)+l.line(S+a/2,w)+l.line(S+a,w)+l.line(S+a,C)+l.line(S,C)+l.line(S,w+n/2),l.move(S,C)+l.line(S+a,C)+l.line(S+a,k)+l.line(S+a/2,k)+l.line(S+a/2,y)+l.line(S+a-a/4,y)+l.line(S+a/4,y)+l.line(S+a/2,y)+l.line(S+a/2,k)+l.line(S,k)+l.line(S,C)+"z"]:[l.move(S,k)+l.line(S+a/2,k)+l.line(S+a/2,v)+l.line(S+a/2,k)+l.line(S+a,k)+l.line(S+a,w)+l.line(S+a/2,w)+l.line(S+a/2,y)+l.line(S+a/2,w)+l.line(S,w)+l.line(S,k-n/2)];return D+=l.move(S,w),o.globals.isXNumeric||(i+=r),{pathTo:E,pathFrom:D,x:i,y:k,goalY:this.barHelpers.getGoalValues("y",null,s,c,d,t.translationsIndex),barXPosition:S,color:A}}},{key:"drawHorizontalBoxPaths",value:function(e){var t=e.indexes;e.x;var i=e.y,r=e.yDivision,a=e.barHeight,s=e.zeroW,n=e.strokeWidth,o=this.w,l=new Di(this.ctx),c=t.i,d=t.j,h=this.boxOptions.colors.lower;this.isBoxPlot&&(h=[this.boxOptions.colors.lower,this.boxOptions.colors.upper]);var u=this.invertedYRatio,g=t.realIndex,p=this.getOHLCValue(g,d),f=s,b=s,m=Math.min(p.o,p.c),x=Math.max(p.o,p.c),v=p.m;o.globals.isXNumeric&&(i=(o.globals.seriesX[g][d]-o.globals.minX)/this.invertedXRatio-a/2);var y=i+a*this.visibleI;void 0===this.series[c][d]||null===this.series[c][d]?(m=s,x=s):(m=s+m/u,x=s+x/u,f=s+p.h/u,b=s+p.l/u,v=s+p.m/u);var A=l.move(s,y),w=l.move(m,y+a/2);return o.globals.previousPaths.length>0&&(w=this.getPreviousPath(g,d,!0)),A=[l.move(m,y)+l.line(m,y+a/2)+l.line(f,y+a/2)+l.line(f,y+a/2-a/4)+l.line(f,y+a/2+a/4)+l.line(f,y+a/2)+l.line(m,y+a/2)+l.line(m,y+a)+l.line(v,y+a)+l.line(v,y)+l.line(m+n/2,y),l.move(v,y)+l.line(v,y+a)+l.line(x,y+a)+l.line(x,y+a/2)+l.line(b,y+a/2)+l.line(b,y+a-a/4)+l.line(b,y+a/4)+l.line(b,y+a/2)+l.line(x,y+a/2)+l.line(x,y)+l.line(v,y)+"z"],w+=l.move(m,y),o.globals.isXNumeric||(i+=r),{pathTo:A,pathFrom:w,x,y:i,goalX:this.barHelpers.getGoalValues("x",s,null,c,d),barYPosition:y,color:h}}},{key:"getOHLCValue",value:function(e,t){var i=this.w,r=new Bi(this.ctx,i),a=r.getLogValAtSeriesIndex(i.globals.seriesCandleH[e][t],e),s=r.getLogValAtSeriesIndex(i.globals.seriesCandleO[e][t],e),n=r.getLogValAtSeriesIndex(i.globals.seriesCandleM[e][t],e),o=r.getLogValAtSeriesIndex(i.globals.seriesCandleC[e][t],e),l=r.getLogValAtSeriesIndex(i.globals.seriesCandleL[e][t],e);return{o:this.isBoxPlot?a:s,h:this.isBoxPlot?s:a,m:n,l:this.isBoxPlot?o:l,c:this.isBoxPlot?l:o}}}]),t}(),Mr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"checkColorRange",value:function(){var e=this.w,t=!1,i=e.config.plotOptions[e.config.chart.type];return i.colorScale.ranges.length>0&&i.colorScale.ranges.map(function(e,i){e.from<=0&&(t=!0)}),t}},{key:"getShadeColor",value:function(e,t,i,r){var a=this.w,s=1,n=a.config.plotOptions[e].shadeIntensity,o=this.determineColor(e,t,i);a.globals.hasNegs||r?s=a.config.plotOptions[e].reverseNegativeShade?o.percent<0?o.percent/100*(1.25*n):(1-o.percent/100)*(1.25*n):o.percent<=0?1-(1+o.percent/100)*n:(1-o.percent/100)*n:(s=1-o.percent/100,"treemap"===e&&(s=(1-o.percent/100)*(1.25*n)));var l=o.color,c=new w;if(a.config.plotOptions[e].enableShades)if("dark"===this.w.config.theme.mode){var d=c.shadeColor(-1*s,o.color);l=w.hexToRgba(w.isColorHex(d)?d:w.rgb2hex(d),a.config.fill.opacity)}else{var h=c.shadeColor(s,o.color);l=w.hexToRgba(w.isColorHex(h)?h:w.rgb2hex(h),a.config.fill.opacity)}return{color:l,colorProps:o}}},{key:"determineColor",value:function(e,t,i){var r=this.w,a=r.globals.series[t][i],s=r.config.plotOptions[e],n=s.colorScale.inverse?i:t;s.distributed&&"treemap"===r.config.chart.type&&(n=i);var o=r.globals.colors[n],l=null,c=Math.min.apply(Math,x(r.globals.series[t])),d=Math.max.apply(Math,x(r.globals.series[t]));s.distributed||"heatmap"!==e||(c=r.globals.minY,d=r.globals.maxY),void 0!==s.colorScale.min&&(c=s.colorScale.min<r.globals.minY?s.colorScale.min:r.globals.minY,d=s.colorScale.max>r.globals.maxY?s.colorScale.max:r.globals.maxY);var h=Math.abs(d)+Math.abs(c),u=100*a/(0===h?h-1e-6:h);return s.colorScale.ranges.length>0&&s.colorScale.ranges.map(function(e,t){if(a>=e.from&&a<=e.to){o=e.color,l=e.foreColor?e.foreColor:null,c=e.from,d=e.to;var i=Math.abs(d)+Math.abs(c);u=100*a/(0===i?i-1e-6:i)}}),{color:o,foreColor:l,percent:u}}},{key:"calculateDataLabels",value:function(e){var t=e.text,i=e.x,r=e.y,a=e.i,s=e.j,n=e.colorProps,o=e.fontSize,l=this.w.config.dataLabels,c=new Di(this.ctx),d=new Vi(this.ctx),h=null;if(l.enabled){h=c.group({class:"apexcharts-data-labels"});var u=l.offsetX,g=l.offsetY,p=i+u,f=r+parseFloat(l.style.fontSize)/3+g;d.plotDataLabelsText({x:p,y:f,text:t,i:a,j:s,color:n.foreColor,parent:h,fontSize:o,dataLabelsConfig:l})}return h}},{key:"addListeners",value:function(e){var t=new Di(this.ctx);e.node.addEventListener("mouseenter",t.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",t.pathMouseLeave.bind(this,e)),e.node.addEventListener("mousedown",t.pathMouseDown.bind(this,e))}}]),e}(),Ir=function(){function e(t,i){s(this,e),this.ctx=t,this.w=t.w,this.xRatio=i.xRatio,this.yRatio=i.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Mr(t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}return o(e,[{key:"draw",value:function(e){var t=this.w,i=new Di(this.ctx),r=i.group({class:"apexcharts-heatmap"});r.attr("clip-path","url(#gridRectMask".concat(t.globals.cuid,")"));var a=t.globals.gridWidth/t.globals.dataPoints,s=t.globals.gridHeight/t.globals.series.length,n=0,o=!1;this.negRange=this.helpers.checkColorRange();var l=e.slice();t.config.yaxis[0].reversed&&(o=!0,l.reverse());for(var c=o?0:l.length-1;o?c<l.length:c>=0;o?c++:c--){var d=i.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:w.escapeString(t.globals.seriesNames[c]),rel:c+1,"data:realIndex":c});if(this.ctx.series.addCollapsedClassToSeries(d,c),t.config.chart.dropShadow.enabled){var h=t.config.chart.dropShadow;new Ei(this.ctx).dropShadow(d,h,c)}for(var u=0,g=t.config.plotOptions.heatmap.shadeIntensity,p=0,f=0;f<t.globals.dataPoints;f++)if(t.globals.seriesX.length&&!t.globals.allSeriesHasEqualX&&t.globals.minX+t.globals.minXDiff*f<t.globals.seriesX[c][p])u+=a;else{if(p>=l[c].length)break;var b=this.helpers.getShadeColor(t.config.chart.type,c,p,this.negRange),m=b.color,x=b.colorProps;"image"===t.config.fill.type&&(m=new ji(this.ctx).fillPath({seriesNumber:c,dataPointIndex:p,opacity:t.globals.hasNegs?x.percent<0?1-(1+x.percent/100):g+x.percent/100:x.percent/100,patternID:w.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:a,height:t.config.fill.image.height?t.config.fill.image.height:s}));var v=this.rectRadius,y=i.drawRect(u,n,a,s,v);if(y.attr({cx:u,cy:n}),y.node.classList.add("apexcharts-heatmap-rect"),d.add(y),y.attr({fill:m,i:c,index:c,j:p,val:e[c][p],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?m:t.globals.stroke.colors[0],color:m}),this.helpers.addListeners(y),t.config.chart.animations.enabled&&!t.globals.dataChanged){var A=1;t.globals.resized||(A=t.config.chart.animations.speed),this.animateHeatMap(y,u,n,a,s,A)}if(t.globals.dataChanged){var k=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){k=this.dynamicAnim.speed;var C=t.globals.previousPaths[c]&&t.globals.previousPaths[c][p]&&t.globals.previousPaths[c][p].color;C||(C="rgba(255, 255, 255, 0)"),this.animateHeatColor(y,w.isColorHex(C)?C:w.rgb2hex(C),w.isColorHex(m)?m:w.rgb2hex(m),k)}}var S=(0,t.config.dataLabels.formatter)(t.globals.series[c][p],{value:t.globals.series[c][p],seriesIndex:c,dataPointIndex:p,w:t}),E=this.helpers.calculateDataLabels({text:S,x:u+a/2,y:n+s/2,i:c,j:p,colorProps:x,series:l});null!==E&&d.add(E),u+=a,p++}n+=s,r.add(d)}var D=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?D.unshift(""):D.push(""),t.globals.yAxisScale[0].result=D,r}},{key:"animateHeatMap",value:function(e,t,i,r,a,s){var n=new k(this.ctx);n.animateRect(e,{x:t+r/2,y:i+a/2,width:0,height:0},{x:t,y:i,width:r,height:a},s,function(){n.animationCompleted(e)})}},{key:"animateHeatColor",value:function(e,t,i,r){e.attr({fill:t}).animate(r).attr({fill:i})}}]),e}(),Rr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"drawYAxisTexts",value:function(e,t,i,r){var a=this.w,s=a.config.yaxis[0],n=a.globals.yLabelFormatters[0];return new Di(this.ctx).drawText({x:e+s.labels.offsetX,y:t+s.labels.offsetY,text:n(r,i),textAnchor:"middle",fontSize:s.labels.style.fontSize,fontFamily:s.labels.style.fontFamily,foreColor:Array.isArray(s.labels.style.colors)?s.labels.style.colors[i]:s.labels.style.colors})}}]),e}(),zr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w;var i=this.w;this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=Math.min(i.globals.gridWidth,i.globals.gridHeight),this.centerY=this.defaultSize/2,this.centerX=i.globals.gridWidth/2,"radialBar"===i.config.chart.type?this.fullAngle=360:this.fullAngle=Math.abs(i.config.plotOptions.pie.endAngle-i.config.plotOptions.pie.startAngle),this.initialAngle=i.config.plotOptions.pie.startAngle%this.fullAngle,i.globals.radialSize=this.defaultSize/2.05-i.config.stroke.width-(i.config.chart.sparkline.enabled?0:i.config.chart.dropShadow.blur),this.donutSize=i.globals.radialSize*parseInt(i.config.plotOptions.pie.donut.size,10)/100;var r=i.config.plotOptions.pie.customScale,a=i.globals.gridWidth/2,n=i.globals.gridHeight/2;this.translateX=a-a*r,this.translateY=n-n*r,this.dataLabelsGroup=new Di(this.ctx).group({class:"apexcharts-datalabels-group",transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(r,")")}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}return o(e,[{key:"draw",value:function(e){var t=this,i=this.w,r=new Di(this.ctx),a=r.group({class:"apexcharts-pie"});if(i.globals.noData)return a;for(var s=0,n=0;n<e.length;n++)s+=w.negToZero(e[n]);var o=[],l=r.group();0===s&&(s=1e-5),e.forEach(function(e){t.maxY=Math.max(t.maxY,e)}),i.config.yaxis[0].max&&(this.maxY=i.config.yaxis[0].max),"back"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(a);for(var c=0;c<e.length;c++){var d=this.fullAngle*w.negToZero(e[c])/s;o.push(d),"polarArea"===this.chartType?(o[c]=this.fullAngle/e.length,this.sliceSizes.push(i.globals.radialSize*e[c]/this.maxY)):this.sliceSizes.push(i.globals.radialSize)}if(i.globals.dataChanged){for(var h,u=0,g=0;g<i.globals.previousPaths.length;g++)u+=w.negToZero(i.globals.previousPaths[g]);for(var p=0;p<i.globals.previousPaths.length;p++)h=this.fullAngle*w.negToZero(i.globals.previousPaths[p])/u,this.prevSectorAngleArr.push(h)}if(this.donutSize<0&&(this.donutSize=0),"donut"===this.chartType){var f=r.drawCircle(this.donutSize);f.attr({cx:this.centerX,cy:this.centerY,fill:i.config.plotOptions.pie.donut.background?i.config.plotOptions.pie.donut.background:"transparent"}),l.add(f)}var b=this.drawArcs(o,e);if(this.sliceLabels.forEach(function(e){b.add(e)}),l.attr({transform:"translate(".concat(this.translateX,", ").concat(this.translateY,") scale(").concat(i.config.plotOptions.pie.customScale,")")}),l.add(b),a.add(l),this.donutDataLabels.show){var m=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});a.add(m)}return"front"===i.config.grid.position&&"polarArea"===this.chartType&&this.drawPolarElements(a),a}},{key:"drawArcs",value:function(e,t){var i=this.w,r=new Ei(this.ctx),a=new Di(this.ctx),s=new ji(this.ctx),n=a.group({class:"apexcharts-slices"}),o=this.initialAngle,l=this.initialAngle,c=this.initialAngle,d=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;for(var h=0;h<e.length;h++){var u=a.group({class:"apexcharts-series apexcharts-pie-series",seriesName:w.escapeString(i.globals.seriesNames[h]),rel:h+1,"data:realIndex":h});n.add(u),l=d,c=(o=c)+e[h],d=l+this.prevSectorAngleArr[h];var g=c<o?this.fullAngle+c-o:c-o,p=s.fillPath({seriesNumber:h,size:this.sliceSizes[h],value:t[h]}),f=this.getChangedPath(l,d),b=a.drawPath({d:f,stroke:Array.isArray(this.lineColorArr)?this.lineColorArr[h]:this.lineColorArr,strokeWidth:0,fill:p,fillOpacity:i.config.fill.opacity,classes:"apexcharts-pie-area apexcharts-".concat(this.chartType.toLowerCase(),"-slice-").concat(h)});if(b.attr({index:0,j:h}),r.setSelectionFilter(b,0,h),i.config.chart.dropShadow.enabled){var m=i.config.chart.dropShadow;r.dropShadow(b,m,h)}this.addListeners(b,this.donutDataLabels),Di.setAttrs(b.node,{"data:angle":g,"data:startAngle":o,"data:strokeWidth":this.strokeWidth,"data:value":t[h]});var x={x:0,y:0};"pie"===this.chartType||"polarArea"===this.chartType?x=w.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,(o+g/2)%this.fullAngle):"donut"===this.chartType&&(x=w.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,(o+g/2)%this.fullAngle)),u.add(b);var v=0;if(!this.initialAnim||i.globals.resized||i.globals.dataChanged?this.animBeginArr.push(0):(0===(v=g/this.fullAngle*i.config.chart.animations.speed)&&(v=1),this.animDur=v+this.animDur,this.animBeginArr.push(this.animDur)),this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(b,{size:this.sliceSizes[h],endAngle:c,startAngle:o,prevStartAngle:l,prevEndAngle:d,animateStartingPos:!0,i:h,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(b,{size:this.sliceSizes[h],endAngle:c,startAngle:o,i:h,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:v}),i.config.plotOptions.pie.expandOnClick&&"polarArea"!==this.chartType&&b.node.addEventListener("mouseup",this.pieClicked.bind(this,h)),void 0!==i.globals.selectedDataPoints[0]&&i.globals.selectedDataPoints[0].indexOf(h)>-1&&this.pieClicked(h),i.config.dataLabels.enabled){var y=x.x,A=x.y,k=100*g/this.fullAngle+"%";if(0!==g&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[h]){var C=i.config.dataLabels.formatter;void 0!==C&&(k=C(i.globals.seriesPercent[h][0],{seriesIndex:h,w:i}));var S=i.globals.dataLabels.style.colors[h],E=a.group({class:"apexcharts-datalabels"}),D=a.drawText({x:y,y:A,text:k,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:S});if(E.add(D),i.config.dataLabels.dropShadow.enabled){var B=i.config.dataLabels.dropShadow;r.dropShadow(D,B)}D.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&!1===i.globals.resized&&(D.node.classList.add("apexcharts-pie-label-delay"),D.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(E)}}}return n}},{key:"addListeners",value:function(e,t){var i=new Di(this.ctx);e.node.addEventListener("mouseenter",i.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",i.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",i.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}},{key:"animatePaths",value:function(e,t){var i=this.w,r=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,a=r,s=t.startAngle,n=t.startAngle;void 0!==t.prevStartAngle&&void 0!==t.prevEndAngle&&(s=t.prevEndAngle,a=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===i.config.series.length-1&&(r+n>this.fullAngle?t.endAngle=t.endAngle-(r+n):r+n<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(r+n)))),r===this.fullAngle&&(r=this.fullAngle-.01),this.animateArc(e,s,n,r,a,t)}},{key:"animateArc",value:function(e,t,i,r,a,s){var n,o=this,l=this.w,c=new k(this.ctx),d=s.size;(isNaN(t)||isNaN(a))&&(t=i,a=r,s.dur=0);var h=r,u=i,g=t<i?this.fullAngle+t-i:t-i;l.globals.dataChanged&&s.shouldSetPrevPaths&&s.prevEndAngle&&(n=o.getPiePath({me:o,startAngle:s.prevStartAngle,angle:s.prevEndAngle<s.prevStartAngle?this.fullAngle+s.prevEndAngle-s.prevStartAngle:s.prevEndAngle-s.prevStartAngle,size:d}),e.attr({d:n})),0!==s.dur?e.animate(s.dur,s.animBeginArr[s.i]).after(function(){"pie"!==o.chartType&&"donut"!==o.chartType&&"polarArea"!==o.chartType||this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),s.i===l.config.series.length-1&&c.animationCompleted(e)}).during(function(l){h=g+(r-g)*l,s.animateStartingPos&&(h=a+(r-a)*l,u=t-a+(i-(t-a))*l),n=o.getPiePath({me:o,startAngle:u,angle:h,size:d}),e.node.setAttribute("data:pathOrig",n),e.attr({d:n})}):(n=o.getPiePath({me:o,startAngle:u,angle:r,size:d}),s.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",n),e.attr({d:n,"stroke-width":o.strokeWidth}))}},{key:"pieClicked",value:function(e){var t,i=this.w,r=this,a=r.sliceSizes[e]+(i.config.plotOptions.pie.expandOnClick?4:0),s=i.globals.dom.Paper.findOne(".apexcharts-".concat(r.chartType.toLowerCase(),"-slice-").concat(e));if("true"!==s.attr("data:pieClicked")){var n=i.globals.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(n,function(e){e.setAttribute("data:pieClicked","false");var t=e.getAttribute("data:pathOrig");t&&e.setAttribute("d",t)}),i.globals.capturedDataPointIndex=e,s.attr("data:pieClicked","true");var o=parseInt(s.attr("data:startAngle"),10),l=parseInt(s.attr("data:angle"),10);t=r.getPiePath({me:r,startAngle:o,angle:l,size:a}),360!==l&&s.plot(t)}else{s.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner(s.node,this.donutDataLabels);var c=s.attr("data:pathOrig");s.attr({d:c})}}},{key:"getChangedPath",value:function(e,t){var i="";return this.dynamicAnim&&this.w.globals.dataChanged&&(i=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),i}},{key:"getPiePath",value:function(e){var t,i=e.me,r=e.startAngle,a=e.angle,s=e.size,n=new Di(this.ctx),o=r,l=Math.PI*(o-90)/180,c=a+r;Math.ceil(c)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(c=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(c)>this.fullAngle&&(c-=this.fullAngle);var d=Math.PI*(c-90)/180,h=i.centerX+s*Math.cos(l),u=i.centerY+s*Math.sin(l),g=i.centerX+s*Math.cos(d),p=i.centerY+s*Math.sin(d),f=w.polarToCartesian(i.centerX,i.centerY,i.donutSize,c),b=w.polarToCartesian(i.centerX,i.centerY,i.donutSize,o),m=a>180?1:0,x=["M",h,u,"A",s,s,0,m,1,g,p];return t="donut"===i.chartType?[].concat(x,["L",f.x,f.y,"A",i.donutSize,i.donutSize,0,m,0,b.x,b.y,"L",h,u,"z"]).join(" "):"pie"===i.chartType||"polarArea"===i.chartType?[].concat(x,["L",i.centerX,i.centerY,"L",h,u]).join(" "):[].concat(x).join(" "),n.roundPathCorners(t,2*this.strokeWidth)}},{key:"drawPolarElements",value:function(e){var t=this.w,i=new tr(this.ctx),r=new Di(this.ctx),a=new Rr(this.ctx),s=r.group(),n=r.group(),o=i.niceScale(0,Math.ceil(this.maxY),0),l=o.result.reverse(),c=o.result.length;this.maxY=o.niceMax;for(var d=t.globals.radialSize,h=d/(c-1),u=0;u<c-1;u++){var g=r.drawCircle(d);if(g.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){var p=a.drawYAxisTexts(this.centerX,this.centerY-d+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,u,l[u]);n.add(p)}s.add(g),d-=h}this.drawSpokes(e),e.add(s),e.add(n)}},{key:"renderInnerDataLabels",value:function(e,t,i){var r=this.w,a=new Di(this.ctx),s=t.total.show;e.node.innerHTML="",e.node.style.opacity=i.opacity;var n,o,l=i.centerX,c=this.donutDataLabels.total.label?i.centerY:i.centerY-i.centerY/6;n=void 0===t.name.color?r.globals.colors[0]:t.name.color;var d=t.name.fontSize,h=t.name.fontFamily,u=t.name.fontWeight;o=void 0===t.value.color?r.config.chart.foreColor:t.value.color;var g=t.value.formatter,p="",f="";if(s?(n=t.total.color,d=t.total.fontSize,h=t.total.fontFamily,u=t.total.fontWeight,f=this.donutDataLabels.total.label?t.total.label:"",p=t.total.formatter(r)):1===r.globals.series.length&&(p=g(r.globals.series[0],r),f=r.globals.seriesNames[0]),f&&(f=t.name.formatter(f,t.total.show,r)),t.name.show){var b=a.drawText({x:l,y:c+parseFloat(t.name.offsetY),text:f,textAnchor:"middle",foreColor:n,fontSize:d,fontWeight:u,fontFamily:h});b.node.classList.add("apexcharts-datalabel-label"),e.add(b)}if(t.value.show){var m=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,x=a.drawText({x:l,y:c+m,text:p,textAnchor:"middle",foreColor:o,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});x.node.classList.add("apexcharts-datalabel-value"),e.add(x)}return e}},{key:"printInnerLabels",value:function(e,t,i,r){var a,s=this.w;r?a=void 0===e.name.color?s.globals.colors[parseInt(r.parentNode.getAttribute("rel"),10)-1]:e.name.color:s.globals.series.length>1&&e.total.show&&(a=e.total.color);var n=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-label"),o=s.globals.dom.baseEl.querySelector(".apexcharts-datalabel-value");i=(0,e.value.formatter)(i,s),r||"function"!=typeof e.total.formatter||(i=e.total.formatter(s));var l=t===e.total.label;t=this.donutDataLabels.total.label?e.name.formatter(t,l,s):"",null!==n&&(n.textContent=t),null!==o&&(o.textContent=i),null!==n&&(n.style.fill=a)}},{key:"printDataLabelsInner",value:function(e,t){var i=this.w,r=e.getAttribute("data:value"),a=i.globals.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];i.globals.series.length>1&&this.printInnerLabels(t,a,r,e);var s=i.globals.dom.baseEl.querySelector(".apexcharts-datalabels-group");null!==s&&(s.style.opacity=1)}},{key:"drawSpokes",value:function(e){var t=this,i=this.w,r=new Di(this.ctx),a=i.config.plotOptions.polarArea.spokes;if(0!==a.strokeWidth){for(var s=[],n=360/i.globals.series.length,o=0;o<i.globals.series.length;o++)s.push(w.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize,i.config.plotOptions.pie.startAngle+n*o));s.forEach(function(i,s){var n=r.drawLine(i.x,i.y,t.centerX,t.centerY,Array.isArray(a.connectorColors)?a.connectorColors[s]:a.connectorColors);e.add(n)})}}},{key:"revertDataLabelsInner",value:function(){var e=this.w;if(this.donutDataLabels.show){var t=e.globals.dom.Paper.findOne(".apexcharts-datalabels-group"),i=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.globals.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(i)}}}]),e}(),Or=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0;var i=this.w;this.graphics=new Di(this.ctx),this.lineColorArr=void 0!==i.globals.stroke.colors?i.globals.stroke.colors:i.globals.colors,this.defaultSize=i.globals.svgHeight<i.globals.svgWidth?i.globals.gridHeight:i.globals.gridWidth,this.isLog=i.config.yaxis[0].logarithmic,this.logBase=i.config.yaxis[0].logBase,this.coreUtils=new Bi(this.ctx),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,i.globals.maxY,0):i.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):i.globals.minY,this.polygons=i.config.plotOptions.radar.polygons,this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-i.config.chart.dropShadow.blur,i.config.xaxis.labels.show&&(this.size=this.size-i.globals.xAxisLabelsWidth/1.75),void 0!==i.config.plotOptions.radar.size&&(this.size=i.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.yaxisLabelsTextsPos=[]}return o(e,[{key:"draw",value:function(e){var t=this,i=this.w,r=new ji(this.ctx),a=[],s=new Vi(this.ctx);e.length&&(this.dataPointsLen=e[i.globals.maxValsInArrayIndex].length),this.disAngle=2*Math.PI/this.dataPointsLen;var n=i.globals.gridWidth/2,o=i.globals.gridHeight/2,l=n+i.config.plotOptions.radar.offsetX,c=o+i.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:"translate(".concat(l||0,", ").concat(c||0,")")}),h=[],u=null,g=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach(function(e,n){var o=e.length===i.globals.dataPoints,l=t.graphics.group().attr({class:"apexcharts-series","data:longestSeries":o,seriesName:w.escapeString(i.globals.seriesNames[n]),rel:n+1,"data:realIndex":n});t.dataRadiusOfPercent[n]=[],t.dataRadius[n]=[],t.angleArr[n]=[],e.forEach(function(e,i){var r=Math.abs(t.maxValue-t.minValue);e-=t.minValue,t.isLog&&(e=t.coreUtils.getLogVal(t.logBase,e,0)),t.dataRadiusOfPercent[n][i]=e/r,t.dataRadius[n][i]=t.dataRadiusOfPercent[n][i]*t.size,t.angleArr[n][i]=i*t.disAngle}),h=t.getDataPointsPos(t.dataRadius[n],t.angleArr[n]);var c=t.createPaths(h,{x:0,y:0});u=t.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),g=t.graphics.group({class:"apexcharts-datalabels","data:realIndex":n}),i.globals.delayedElements.push({el:u.node,index:n});var d={i:n,realIndex:n,animationDelay:n,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:i.globals.stroke.colors[n],strokeLineCap:i.config.stroke.lineCap},p=null;i.globals.previousPaths.length>0&&(p=t.getPreviousPath(n));for(var b=0;b<c.linePathsTo.length;b++){var m=t.graphics.renderPaths(f(f({},d),{},{pathFrom:null===p?c.linePathsFrom[b]:p,pathTo:c.linePathsTo[b],strokeWidth:Array.isArray(t.strokeWidth)?t.strokeWidth[n]:t.strokeWidth,fill:"none",drawShadow:!1}));l.add(m);var x=r.fillPath({seriesNumber:n}),v=t.graphics.renderPaths(f(f({},d),{},{pathFrom:null===p?c.areaPathsFrom[b]:p,pathTo:c.areaPathsTo[b],strokeWidth:0,fill:x,drawShadow:!1}));if(i.config.chart.dropShadow.enabled){var y=new Ei(t.ctx),A=i.config.chart.dropShadow;y.dropShadow(v,Object.assign({},A,{noUserSpaceOnUse:!0}),n)}l.add(v)}e.forEach(function(e,r){var a=new Ui(t.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:n,dataPointIndex:r}),o=t.graphics.drawMarker(h[r].x,h[r].y,a);o.attr("rel",r),o.attr("j",r),o.attr("index",n),o.node.setAttribute("default-marker-size",a.pSize);var c=t.graphics.group({class:"apexcharts-series-markers"});c&&c.add(o),u.add(c),l.add(u);var d=i.config.dataLabels;if(d.enabled){var p=d.formatter(i.globals.series[n][r],{seriesIndex:n,dataPointIndex:r,w:i});s.plotDataLabelsText({x:h[r].x,y:h[r].y,text:p,textAnchor:"middle",i:n,j:n,parent:g,offsetCorrection:!1,dataLabelsConfig:f({},d)})}l.add(g)}),a.push(l)}),this.drawPolygons({parent:d}),i.config.xaxis.labels.show){var p=this.drawXAxisTexts();d.add(p)}return a.forEach(function(e){d.add(e)}),d.add(this.yaxisLabels),d}},{key:"drawPolygons",value:function(e){for(var t=this,i=this.w,r=e.parent,a=new Rr(this.ctx),s=i.globals.yAxisScale[0].result.reverse(),n=s.length,o=[],l=this.size/(n-1),c=0;c<n;c++)o[c]=l*c;o.reverse();var d=[],h=[];o.forEach(function(e,i){var r=w.getPolygonPos(e,t.dataPointsLen),a="";r.forEach(function(e,r){if(0===i){var s=t.graphics.drawLine(e.x,e.y,0,0,Array.isArray(t.polygons.connectorColors)?t.polygons.connectorColors[r]:t.polygons.connectorColors);h.push(s)}0===r&&t.yaxisLabelsTextsPos.push({x:e.x,y:e.y}),a+=e.x+","+e.y+" "}),d.push(a)}),d.forEach(function(e,a){var s=t.polygons.strokeColors,n=t.polygons.strokeWidth,o=t.graphics.drawPolygon(e,Array.isArray(s)?s[a]:s,Array.isArray(n)?n[a]:n,i.globals.radarPolygons.fill.colors[a]);r.add(o)}),h.forEach(function(e){r.add(e)}),i.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach(function(e,i){var r=a.drawYAxisTexts(e.x,e.y,i,s[i]);t.yaxisLabels.add(r)})}},{key:"drawXAxisTexts",value:function(){var e=this,t=this.w,i=t.config.xaxis.labels,r=this.graphics.group({class:"apexcharts-xaxis"}),a=w.getPolygonPos(this.size,this.dataPointsLen);return t.globals.labels.forEach(function(s,n){var o=t.config.xaxis.labels.formatter,l=new Vi(e.ctx);if(a[n]){var c=e.getTextPos(a[n],e.size),d=o(s,{seriesIndex:-1,dataPointIndex:n,w:t});l.plotDataLabelsText({x:c.newX,y:c.newY,text:d,textAnchor:c.textAnchor,i:n,j:n,parent:r,className:"apexcharts-xaxis-label",color:Array.isArray(i.style.colors)&&i.style.colors[n]?i.style.colors[n]:"#a8a8a8",dataLabelsConfig:f({textAnchor:c.textAnchor,dropShadow:{enabled:!1}},i),offsetCorrection:!1}).on("click",function(i){if("function"==typeof t.config.chart.events.xAxisLabelClick){var r=Object.assign({},t,{labelIndex:n});t.config.chart.events.xAxisLabelClick(i,e.ctx,r)}})}}),r}},{key:"createPaths",value:function(e,t){var i=this,r=[],a=[],s=[],n=[];if(e.length){a=[this.graphics.move(t.x,t.y)],n=[this.graphics.move(t.x,t.y)];var o=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach(function(t,r){o+=i.graphics.line(t.x,t.y),l+=i.graphics.line(t.x,t.y),r===e.length-1&&(o+="Z",l+="Z")}),r.push(o),s.push(l)}return{linePathsFrom:a,linePathsTo:r,areaPathsFrom:n,areaPathsTo:s}}},{key:"getTextPos",value:function(e,t){var i="middle",r=e.x,a=e.y;return Math.abs(e.x)>=10?e.x>0?(i="start",r+=10):e.x<0&&(i="end",r-=10):i="middle",Math.abs(e.y)>=t-10&&(e.y<0?a-=10:e.y>0&&(a+=10)),{textAnchor:i,newX:r,newY:a}}},{key:"getPreviousPath",value:function(e){for(var t=this.w,i=null,r=0;r<t.globals.previousPaths.length;r++){var a=t.globals.previousPaths[r];a.paths.length>0&&parseInt(a.realIndex,10)===parseInt(e,10)&&void 0!==t.globals.previousPaths[r].paths[0]&&(i=t.globals.previousPaths[r].paths[0].d)}return i}},{key:"getDataPointsPos",value:function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.dataPointsLen;e=e||[],t=t||[];for(var r=[],a=0;a<i;a++){var s={};s.x=e[a]*Math.sin(t[a]),s.y=-e[a]*Math.cos(t[a]),r.push(s)}return r}}]),e}(),Nr=function(){u(t,zr);var e=c(t);function t(i){var r;s(this,t),(r=e.call(this,i)).ctx=i,r.w=i.w,r.animBeginArr=[0],r.animDur=0;var n=r.w;return r.startAngle=n.config.plotOptions.radialBar.startAngle,r.endAngle=n.config.plotOptions.radialBar.endAngle,r.totalAngle=Math.abs(n.config.plotOptions.radialBar.endAngle-n.config.plotOptions.radialBar.startAngle),r.trackStartAngle=n.config.plotOptions.radialBar.track.startAngle,r.trackEndAngle=n.config.plotOptions.radialBar.track.endAngle,r.barLabels=r.w.config.plotOptions.radialBar.barLabels,r.donutDataLabels=r.w.config.plotOptions.radialBar.dataLabels,r.radialDataLabels=r.donutDataLabels,r.trackStartAngle||(r.trackStartAngle=r.startAngle),r.trackEndAngle||(r.trackEndAngle=r.endAngle),360===r.endAngle&&(r.endAngle=359.99),r.margin=parseInt(n.config.plotOptions.radialBar.track.margin,10),r.onBarLabelClick=r.onBarLabelClick.bind(a(r)),r}return o(t,[{key:"draw",value:function(e){var t=this.w,i=new Di(this.ctx),r=i.group({class:"apexcharts-radialbar"});if(t.globals.noData)return r;var a=i.group(),s=this.defaultSize/2,n=t.globals.gridWidth/2,o=this.defaultSize/2.05;t.config.chart.sparkline.enabled||(o=o-t.config.stroke.width-t.config.chart.dropShadow.blur);var l=t.globals.fill.colors;if(t.config.plotOptions.radialBar.track.show){var c=this.drawTracks({size:o,centerX:n,centerY:s,colorArr:l,series:e});a.add(c)}var d=this.drawArcs({size:o,centerX:n,centerY:s,colorArr:l,series:e}),h=360;t.config.plotOptions.radialBar.startAngle<0&&(h=this.totalAngle);var u=(360-h)/360;if(t.globals.radialSize=o-o*u,this.radialDataLabels.value.show){var g=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);t.globals.radialSize+=g*u}return a.add(d.g),"front"===t.config.plotOptions.radialBar.hollow.position&&(d.g.add(d.elHollow),d.dataLabels&&d.g.add(d.dataLabels)),r.add(a),r}},{key:"drawTracks",value:function(e){var t=this.w,i=new Di(this.ctx),r=i.group({class:"apexcharts-tracks"}),a=new Ei(this.ctx),s=new ji(this.ctx),n=this.getStrokeWidth(e);e.size=e.size-n/2;for(var o=0;o<e.series.length;o++){var l=i.group({class:"apexcharts-radialbar-track apexcharts-track"});r.add(l),l.attr({rel:o+1}),e.size=e.size-n-this.margin;var c=t.config.plotOptions.radialBar.track,d=s.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(c.background)?c.background[o]:c.background,solid:!0}),h=this.trackStartAngle,u=this.trackEndAngle;Math.abs(u)+Math.abs(h)>=360&&(u=360-Math.abs(this.startAngle)-.1);var g=i.drawPath({d:"",stroke:d,strokeWidth:n*parseInt(c.strokeWidth,10)/100,fill:"none",strokeOpacity:c.opacity,classes:"apexcharts-radialbar-area"});if(c.dropShadow.enabled){var p=c.dropShadow;a.dropShadow(g,p)}l.add(g),g.attr("id","apexcharts-radialbarTrack-"+o),this.animatePaths(g,{centerX:e.centerX,centerY:e.centerY,endAngle:u,startAngle:h,size:e.size,i:o,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return r}},{key:"drawArcs",value:function(e){var t=this.w,i=new Di(this.ctx),r=new ji(this.ctx),a=new Ei(this.ctx),s=i.group(),n=this.getStrokeWidth(e);e.size=e.size-n/2;var o=t.config.plotOptions.radialBar.hollow.background,l=e.size-n*e.series.length-this.margin*e.series.length-n*parseInt(t.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,c=l-t.config.plotOptions.radialBar.hollow.margin;void 0!==t.config.plotOptions.radialBar.hollow.image&&(o=this.drawHollowImage(e,s,l,o));var d=this.drawHollow({size:c,centerX:e.centerX,centerY:e.centerY,fill:o||"transparent"});if(t.config.plotOptions.radialBar.hollow.dropShadow.enabled){var h=t.config.plotOptions.radialBar.hollow.dropShadow;a.dropShadow(d,h)}var u=1;!this.radialDataLabels.total.show&&t.globals.series.length>1&&(u=0);var g=null;if(this.radialDataLabels.show){var p=t.globals.dom.Paper.findOne(".apexcharts-datalabels-group");g=this.renderInnerDataLabels(p,this.radialDataLabels,{hollowSize:l,centerX:e.centerX,centerY:e.centerY,opacity:u})}"back"===t.config.plotOptions.radialBar.hollow.position&&(s.add(d),g&&s.add(g));var f=!1;t.config.plotOptions.radialBar.inverseOrder&&(f=!0);for(var b=f?e.series.length-1:0;f?b>=0:b<e.series.length;f?b--:b++){var m=i.group({class:"apexcharts-series apexcharts-radial-series",seriesName:w.escapeString(t.globals.seriesNames[b])});s.add(m),m.attr({rel:b+1,"data:realIndex":b}),this.ctx.series.addCollapsedClassToSeries(m,b),e.size=e.size-n-this.margin;var x=r.fillPath({seriesNumber:b,size:e.size,value:e.series[b]}),v=this.startAngle,y=void 0,A=w.negToZero(e.series[b]>100?100:e.series[b])/100,k=Math.round(this.totalAngle*A)+this.startAngle,C=void 0;t.globals.dataChanged&&(y=this.startAngle,C=Math.round(this.totalAngle*w.negToZero(t.globals.previousPaths[b])/100)+y),Math.abs(k)+Math.abs(v)>360&&(k-=.01),Math.abs(C)+Math.abs(y)>360&&(C-=.01);var S=k-v,E=Array.isArray(t.config.stroke.dashArray)?t.config.stroke.dashArray[b]:t.config.stroke.dashArray,D=i.drawPath({d:"",stroke:x,strokeWidth:n,fill:"none",fillOpacity:t.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+b,strokeDashArray:E});if(Di.setAttrs(D.node,{"data:angle":S,"data:value":e.series[b]}),t.config.chart.dropShadow.enabled){var B=t.config.chart.dropShadow;a.dropShadow(D,B,b)}if(a.setSelectionFilter(D,0,b),this.addListeners(D,this.radialDataLabels),m.add(D),D.attr({index:0,j:b}),this.barLabels.enabled){var L=w.polarToCartesian(e.centerX,e.centerY,e.size,v),T=this.barLabels.formatter(t.globals.seriesNames[b],{seriesIndex:b,w:t}),P=["apexcharts-radialbar-label"];this.barLabels.onClick||P.push("apexcharts-no-click");var M=this.barLabels.useSeriesColors?t.globals.colors[b]:t.config.chart.foreColor;M||(M=t.config.chart.foreColor);var I=L.x+this.barLabels.offsetX,R=L.y+this.barLabels.offsetY,z=i.drawText({x:I,y:R,text:T,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:M,cssClass:P.join(" ")});z.on("click",this.onBarLabelClick),z.attr({rel:b+1}),0!==v&&z.attr({"transform-origin":"".concat(I," ").concat(R),transform:"rotate(".concat(v," 0 0)")}),m.add(z)}var O=0;!this.initialAnim||t.globals.resized||t.globals.dataChanged||(O=t.config.chart.animations.speed),t.globals.dataChanged&&(O=t.config.chart.animations.dynamicAnimation.speed),this.animDur=O/(1.2*e.series.length)+this.animDur,this.animBeginArr.push(this.animDur),this.animatePaths(D,{centerX:e.centerX,centerY:e.centerY,endAngle:k,startAngle:v,prevEndAngle:C,prevStartAngle:y,size:e.size,i:b,totalItems:2,animBeginArr:this.animBeginArr,dur:O,shouldSetPrevPaths:!0})}return{g:s,elHollow:d,dataLabels:g}}},{key:"drawHollow",value:function(e){var t=new Di(this.ctx).drawCircle(2*e.size);return t.attr({class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill}),t}},{key:"drawHollowImage",value:function(e,t,i,r){var a=this.w,s=new ji(this.ctx),n=w.randomId(),o=a.config.plotOptions.radialBar.hollow.image;if(a.config.plotOptions.radialBar.hollow.imageClipped)s.clippedImgArea({width:i,height:i,image:o,patternID:"pattern".concat(a.globals.cuid).concat(n)}),r="url(#pattern".concat(a.globals.cuid).concat(n,")");else{var l=a.config.plotOptions.radialBar.hollow.imageWidth,c=a.config.plotOptions.radialBar.hollow.imageHeight;if(void 0===l&&void 0===c){var d=a.globals.dom.Paper.image(o,function(t){this.move(e.centerX-t.width/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-t.height/2+a.config.plotOptions.radialBar.hollow.imageOffsetY)});t.add(d)}else{var h=a.globals.dom.Paper.image(o,function(t){this.move(e.centerX-l/2+a.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-c/2+a.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(l,c)});t.add(h)}}return r}},{key:"getStrokeWidth",value:function(e){var t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}},{key:"onBarLabelClick",value:function(e){var t=parseInt(e.target.getAttribute("rel"),10)-1,i=this.barLabels.onClick,r=this.w;i&&i(r.globals.seriesNames[t],{w:r,seriesIndex:t})}}]),t}(),Hr=function(){u(t,Lr);var e=c(t);function t(){return s(this,t),e.apply(this,arguments)}return o(t,[{key:"draw",value:function(e,t){var i=this.w,r=new Di(this.ctx);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=i.globals.seriesRangeStart,this.seriesRangeEnd=i.globals.seriesRangeEnd,this.barHelpers.initVariables(e);for(var a=r.group({class:"apexcharts-rangebar-series apexcharts-plot-series"}),s=0;s<e.length;s++){var n,o,l,c,d=void 0,h=void 0,u=i.globals.comboCharts?t[s]:s,g=this.barHelpers.getGroupIndex(u).columnGroupIndex,p=r.group({class:"apexcharts-series",seriesName:w.escapeString(i.globals.seriesNames[u]),rel:s+1,"data:realIndex":u});this.ctx.series.addCollapsedClassToSeries(p,u),e[s].length>0&&(this.visibleI=this.visibleI+1);var b=0,m=0,x=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[u][0],x=u);var v=this.barHelpers.initialPositions(u);h=v.y,c=v.zeroW,d=v.x,m=v.barWidth,b=v.barHeight,n=v.xDivision,o=v.yDivision,l=v.zeroH;for(var y=r.group({class:"apexcharts-datalabels","data:realIndex":u}),A=r.group({class:"apexcharts-rangebar-goals-markers"}),k=0;k<i.globals.dataPoints;k++){var C=this.barHelpers.getStrokeWidth(s,k,u),S=this.seriesRangeStart[s][k],E=this.seriesRangeEnd[s][k],D=null,B=null,L=null,T={x:d,y:h,strokeWidth:C,elSeries:p},P=this.seriesLen;if(i.config.plotOptions.bar.rangeBarGroupRows&&(P=1),void 0===i.config.series[s].data[k])break;if(this.isHorizontal){L=h+b*this.visibleI;var M=(o-b*P)/2;if(i.config.series[s].data[k].x){var I=this.detectOverlappingBars({i:s,j:k,barYPosition:L,srty:M,barHeight:b,yDivision:o,initPositions:v});b=I.barHeight,L=I.barYPosition}m=(D=this.drawRangeBarPaths(f({indexes:{i:s,j:k,realIndex:u},barHeight:b,barYPosition:L,zeroW:c,yDivision:o,y1:S,y2:E},T))).barWidth}else{i.globals.isXNumeric&&(d=(i.globals.seriesX[s][k]-i.globals.minX)/this.xRatio-m/2),B=d+m*this.visibleI;var R=(n-m*P)/2;if(i.config.series[s].data[k].x){var z=this.detectOverlappingBars({i:s,j:k,barXPosition:B,srtx:R,barWidth:m,xDivision:n,initPositions:v});m=z.barWidth,B=z.barXPosition}b=(D=this.drawRangeColumnPaths(f({indexes:{i:s,j:k,realIndex:u,translationsIndex:x},barWidth:m,barXPosition:B,zeroH:l,xDivision:n},T))).barHeight}var O=this.barHelpers.drawGoalLine({barXPosition:D.barXPosition,barYPosition:L,goalX:D.goalX,goalY:D.goalY,barHeight:b,barWidth:m});O&&A.add(O),h=D.y,d=D.x;var N=this.barHelpers.getPathFillColor(e,s,k,u);this.renderSeries({realIndex:u,pathFill:N.color,lineFill:N.useRangeColor?N.color:i.globals.stroke.colors[u],j:k,i:s,x:d,y:h,y1:S,y2:E,pathFrom:D.pathFrom,pathTo:D.pathTo,strokeWidth:C,elSeries:p,series:e,barHeight:b,barWidth:m,barXPosition:B,barYPosition:L,columnGroupIndex:g,elDataLabelsWrap:y,elGoalsMarkers:A,visibleSeries:this.visibleI,type:"rangebar"})}a.add(p)}return a}},{key:"detectOverlappingBars",value:function(e){var t=e.i,i=e.j,r=e.barYPosition,a=e.barXPosition,s=e.srty,n=e.srtx,o=e.barHeight,l=e.barWidth,c=e.yDivision,d=e.xDivision,h=e.initPositions,u=this.w,g=[],p=u.config.series[t].data[i].rangeName,f=u.config.series[t].data[i].x,b=Array.isArray(f)?f.join(" "):f,m=u.globals.labels.map(function(e){return Array.isArray(e)?e.join(" "):e}).indexOf(b),x=u.globals.seriesRange[t].findIndex(function(e){return e.x===b&&e.overlaps.length>0});return this.isHorizontal?(r=u.config.plotOptions.bar.rangeBarGroupRows?s+c*m:s+o*this.visibleI+c*m,x>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(g=u.globals.seriesRange[t][x].overlaps).indexOf(p)>-1&&(r=(o=h.barHeight/g.length)*this.visibleI+c*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+g.indexOf(p))+c*m)):(m>-1&&!u.globals.timescaleLabels.length&&(a=u.config.plotOptions.bar.rangeBarGroupRows?n+d*m:n+l*this.visibleI+d*m),x>-1&&!u.config.plotOptions.bar.rangeBarOverlap&&(g=u.globals.seriesRange[t][x].overlaps).indexOf(p)>-1&&(a=(l=h.barWidth/g.length)*this.visibleI+d*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+g.indexOf(p))+d*m)),{barYPosition:r,barXPosition:a,barHeight:o,barWidth:l}}},{key:"drawRangeColumnPaths",value:function(e){var t=e.indexes,i=e.x,r=e.xDivision,a=e.barWidth,s=e.barXPosition,n=e.zeroH,o=this.w,l=t.i,c=t.j,d=t.realIndex,h=t.translationsIndex,u=this.yRatio[h],g=this.getRangeValue(d,c),p=Math.min(g.start,g.end),f=Math.max(g.start,g.end);void 0===this.series[l][c]||null===this.series[l][c]?p=n:(p=n-p/u,f=n-f/u);var b=Math.abs(f-p),m=this.barHelpers.getColumnPaths({barXPosition:s,barWidth:a,y1:p,y2:f,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:d,i:d,j:c,w:o});if(o.globals.isXNumeric){var x=this.getBarXForNumericXAxis({x:i,j:c,realIndex:d,barWidth:a});i=x.x,s=x.barXPosition}else i+=r;return{pathTo:m.pathTo,pathFrom:m.pathFrom,barHeight:b,x:i,y:g.start<0&&g.end<0?p:f,goalY:this.barHelpers.getGoalValues("y",null,n,l,c,h),barXPosition:s}}},{key:"preventBarOverflow",value:function(e){var t=this.w;return e<0&&(e=0),e>t.globals.gridWidth&&(e=t.globals.gridWidth),e}},{key:"drawRangeBarPaths",value:function(e){var t=e.indexes,i=e.y,r=e.y1,a=e.y2,s=e.yDivision,n=e.barHeight,o=e.barYPosition,l=e.zeroW,c=this.w,d=t.realIndex,h=t.j,u=this.preventBarOverflow(l+r/this.invertedYRatio),g=this.preventBarOverflow(l+a/this.invertedYRatio),p=this.getRangeValue(d,h),f=Math.abs(g-u),b=this.barHelpers.getBarpaths({barYPosition:o,barHeight:n,x1:u,x2:g,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:d,realIndex:d,j:h,w:c});return c.globals.isXNumeric||(i+=s),{pathTo:b.pathTo,pathFrom:b.pathFrom,barWidth:f,x:p.start<0&&p.end<0?u:g,goalX:this.barHelpers.getGoalValues("x",l,null,d,h),y:i}}},{key:"getRangeValue",value:function(e,t){var i=this.w;return{start:i.globals.seriesRangeStart[e][t],end:i.globals.seriesRangeEnd[e][t]}}}]),t}(),Fr=function(){function e(t){s(this,e),this.w=t.w,this.lineCtx=t}return o(e,[{key:"sameValueSeriesFix",value:function(e,t){var i=this.w;if(("gradient"===i.config.fill.type||"gradient"===i.config.fill.type[e])&&new Bi(this.lineCtx.ctx,i).seriesHaveSameValues(e)){var r=t[e].slice();r[r.length-1]=r[r.length-1]+1e-6,t[e]=r}return t}},{key:"calculatePoints",value:function(e){var t=e.series,i=e.realIndex,r=e.x,a=e.y,s=e.i,n=e.j,o=e.prevY,l=this.w,c=[],d=[],h=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;return l.globals.isXNumeric&&(h=(l.globals.seriesX[i][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),0===n&&(c.push(h),d.push(w.isNumber(t[s][0])?o+l.config.markers.offsetY:null)),c.push(r+l.config.markers.offsetX),d.push(w.isNumber(t[s][n+1])?a+l.config.markers.offsetY:null),{x:c,y:d}}},{key:"checkPreviousPaths",value:function(e){for(var t=e.pathFromLine,i=e.pathFromArea,r=e.realIndex,a=this.w,s=0;s<a.globals.previousPaths.length;s++){var n=a.globals.previousPaths[s];("line"===n.type||"area"===n.type)&&n.paths.length>0&&parseInt(n.realIndex,10)===parseInt(r,10)&&("line"===n.type?(this.lineCtx.appendPathFrom=!1,t=a.globals.previousPaths[s].paths[0].d):"area"===n.type&&(this.lineCtx.appendPathFrom=!1,i=a.globals.previousPaths[s].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[s].paths[1]&&(t=a.globals.previousPaths[s].paths[1].d)))}return{pathFromLine:t,pathFromArea:i}}},{key:"determineFirstPrevY",value:function(e){var t,i,r,a=e.i,s=e.realIndex,n=e.series,o=e.prevY,l=e.lineYPosition,c=e.translationsIndex,d=this.w,h=d.config.chart.stacked&&!d.globals.comboCharts||d.config.chart.stacked&&d.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[s])||void 0===t?void 0:t.type)||"column"===(null===(i=this.w.config.series[s])||void 0===i?void 0:i.type));if(void 0!==(null===(r=n[a])||void 0===r?void 0:r[0]))o=(l=h&&a>0?this.lineCtx.prevSeriesY[a-1][0]:this.lineCtx.zeroY)-n[a][0]/this.lineCtx.yRatio[c]+2*(this.lineCtx.isReversed?n[a][0]/this.lineCtx.yRatio[c]:0);else if(h&&a>0&&void 0===n[a][0])for(var u=a-1;u>=0;u--)if(null!==n[u][0]&&void 0!==n[u][0]){o=l=this.lineCtx.prevSeriesY[u][0];break}return{prevY:o,lineYPosition:l}}}]),e}(),_r=function(e,t,i){var r=e.slice(t,i);if(t){if(i-t>1&&r[1].length<6){var a=r[0].length;r[1]=[2*r[0][a-2]-r[0][a-4],2*r[0][a-1]-r[0][a-3]].concat(r[1])}r[0]=r[0].slice(-2)}return r};function Yr(e,t){return(t[1]-e[1])/(t[0]-e[0])}var Xr=function(){function e(t,i,r){s(this,e),this.ctx=t,this.w=t.w,this.xyRatios=i,this.pointsChart=!("bubble"!==this.w.config.chart.type&&"scatter"!==this.w.config.chart.type)||r,this.scatter=new Gi(this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new Fr(this),this.markers=new Ui(this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0}return o(e,[{key:"draw",value:function(e,t,i,r){var a,s=this.w,n=new Di(this.ctx),o=s.globals.comboCharts?t:s.config.chart.type,l=n.group({class:"apexcharts-".concat(o,"-series apexcharts-plot-series")}),c=new Bi(this.ctx,s);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=c.getLogSeries(e),this.yRatio=c.getLogYRatios(this.yRatio),this.prevSeriesY=[];for(var d=[],h=0;h<e.length;h++){e=this.lineHelpers.sameValueSeriesFix(h,e);var u=s.globals.comboCharts?i[h]:h,g=this.yRatio.length>1?u:0;this._initSerieVariables(e,h,u);var p=[],b=[],m=[],x=s.globals.padHorizontal+this.categoryAxisCorrection;this.ctx.series.addCollapsedClassToSeries(this.elSeries,u),s.globals.isXNumeric&&s.globals.seriesX.length>0&&(x=(s.globals.seriesX[u][0]-s.globals.minX)/this.xRatio),m.push(x);var v,y=x,A=void 0,w=y,k=this.zeroY,C=this.zeroY;k=this.lineHelpers.determineFirstPrevY({i:h,realIndex:u,series:e,prevY:k,lineYPosition:0,translationsIndex:g}).prevY,"monotoneCubic"===s.config.stroke.curve&&null===e[h][0]?p.push(null):p.push(k),v=k,"rangeArea"===o&&(A=C=this.lineHelpers.determineFirstPrevY({i:h,realIndex:u,series:r,prevY:C,lineYPosition:0,translationsIndex:g}).prevY,b.push(null!==p[0]?C:null));var S=this._calculatePathsFrom({type:o,series:e,i:h,realIndex:u,translationsIndex:g,prevX:w,prevY:k,prevY2:C}),E=[p[0]],D=[b[0]],B={type:o,series:e,realIndex:u,translationsIndex:g,i:h,x,y:1,pX:y,pY:v,pathsFrom:S,linePaths:[],areaPaths:[],seriesIndex:i,lineYPosition:0,xArrj:m,yArrj:p,y2Arrj:b,seriesRangeEnd:r},L=this._iterateOverDataPoints(f(f({},B),{},{iterations:"rangeArea"===o?e[h].length-1:void 0,isRangeStart:!0}));if("rangeArea"===o){for(var T=this._calculatePathsFrom({series:r,i:h,realIndex:u,prevX:w,prevY:C}),P=this._iterateOverDataPoints(f(f({},B),{},{series:r,xArrj:[x],yArrj:E,y2Arrj:D,pY:A,areaPaths:L.areaPaths,pathsFrom:T,iterations:r[h].length-1,isRangeStart:!1})),M=L.linePaths.length/2,I=0;I<M;I++)L.linePaths[I]=P.linePaths[I+M]+L.linePaths[I];L.linePaths.splice(M),L.pathFromLine=P.pathFromLine+L.pathFromLine}else L.pathFromArea+="z";this._handlePaths({type:o,realIndex:u,i:h,paths:L}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),d.push(this.elSeries)}if(void 0!==(null===(a=s.config.series[0])||void 0===a?void 0:a.zIndex)&&d.sort(function(e,t){return Number(e.node.getAttribute("zIndex"))-Number(t.node.getAttribute("zIndex"))}),s.config.chart.stacked)for(var R=d.length-1;R>=0;R--)l.add(d[R]);else for(var z=0;z<d.length;z++)l.add(d[z]);return l}},{key:"_initSerieVariables",value:function(e,t,i){var r=this.w,a=new Di(this.ctx);this.xDivision=r.globals.gridWidth/(r.globals.dataPoints-("on"===r.config.xaxis.tickPlacement?1:0)),this.strokeWidth=Array.isArray(r.config.stroke.width)?r.config.stroke.width[i]:r.config.stroke.width;var s=0;if(this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[i],s=i),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed,this.zeroY=r.globals.gridHeight-this.baseLineY[s]-(this.isReversed?r.globals.gridHeight:0)+(this.isReversed?2*this.baseLineY[s]:0),this.areaBottomY=this.zeroY,(this.zeroY>r.globals.gridHeight||"end"===r.config.plotOptions.area.fillTo)&&(this.areaBottomY=r.globals.gridHeight),this.categoryAxisCorrection=this.xDivision/2,this.elSeries=a.group({class:"apexcharts-series",zIndex:void 0!==r.config.series[i].zIndex?r.config.series[i].zIndex:i,seriesName:w.escapeString(r.globals.seriesNames[i])}),this.elPointsMain=a.group({class:"apexcharts-series-markers-wrap","data:realIndex":i}),r.globals.hasNullValues){var n=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[r.globals.gridHeight+r.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});null!==n&&this.elPointsMain.add(n)}this.elDataLabelsWrap=a.group({class:"apexcharts-datalabels","data:realIndex":i});var o=e[t].length===r.globals.dataPoints;this.elSeries.attr({"data:longestSeries":o,rel:t+1,"data:realIndex":i}),this.appendPathFrom=!0}},{key:"_calculatePathsFrom",value:function(e){var t,i,r,a,s=e.type,n=e.series,o=e.i,l=e.realIndex,c=e.translationsIndex,d=e.prevX,h=e.prevY,u=e.prevY2,g=this.w,p=new Di(this.ctx);if(null===n[o][0]){for(var f=0;f<n[o].length;f++)if(null!==n[o][f]){d=this.xDivision*f,h=this.zeroY-n[o][f]/this.yRatio[c],t=p.move(d,h),i=p.move(d,this.areaBottomY);break}}else t=p.move(d,h),"rangeArea"===s&&(t=p.move(d,u)+p.line(d,h)),i=p.move(d,this.areaBottomY)+p.line(d,h);if(r=p.move(0,this.areaBottomY)+p.line(0,this.areaBottomY),a=p.move(0,this.areaBottomY)+p.line(0,this.areaBottomY),g.globals.previousPaths.length>0){var b=this.lineHelpers.checkPreviousPaths({pathFromLine:r,pathFromArea:a,realIndex:l});r=b.pathFromLine,a=b.pathFromArea}return{prevX:d,prevY:h,linePath:t,areaPath:i,pathFromLine:r,pathFromArea:a}}},{key:"_handlePaths",value:function(e){var t=e.type,i=e.realIndex,r=e.i,a=e.paths,s=this.w,n=new Di(this.ctx),o=new ji(this.ctx);this.prevSeriesY.push(a.yArrj),s.globals.seriesXvalues[i]=a.xArrj,s.globals.seriesYvalues[i]=a.yArrj;var l=s.config.forecastDataPoints;if(l.count>0&&"rangeArea"!==t){var c=s.globals.seriesXvalues[i][s.globals.seriesXvalues[i].length-l.count-1],d=n.drawRect(c,0,s.globals.gridWidth,s.globals.gridHeight,0);s.globals.dom.elForecastMask.appendChild(d.node);var h=n.drawRect(0,0,c,s.globals.gridHeight,0);s.globals.dom.elNonForecastMask.appendChild(h.node)}this.pointsChart||s.globals.delayedElements.push({el:this.elPointsMain.node,index:i});var u={i:r,realIndex:i,animationDelay:r,initialSpeed:s.config.chart.animations.speed,dataChangeSpeed:s.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-".concat(t)};if("area"===t)for(var g=o.fillPath({seriesNumber:i}),p=0;p<a.areaPaths.length;p++){var b=n.renderPaths(f(f({},u),{},{pathFrom:a.pathFromArea,pathTo:a.areaPaths[p],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:g}));this.elSeries.add(b)}if(s.config.stroke.show&&!this.pointsChart){var m=null;if("line"===t)m=o.fillPath({seriesNumber:i,i:r});else if("solid"===s.config.stroke.fill.type)m=s.globals.stroke.colors[i];else{var x=s.config.fill;s.config.fill=s.config.stroke.fill,m=o.fillPath({seriesNumber:i,i:r}),s.config.fill=x}for(var v=0;v<a.linePaths.length;v++){var y=m;"rangeArea"===t&&(y=o.fillPath({seriesNumber:i}));var A=f(f({},u),{},{pathFrom:a.pathFromLine,pathTo:a.linePaths[v],stroke:m,strokeWidth:this.strokeWidth,strokeLineCap:s.config.stroke.lineCap,fill:"rangeArea"===t?y:"none"}),w=n.renderPaths(A);if(this.elSeries.add(w),w.attr("fill-rule","evenodd"),l.count>0&&"rangeArea"!==t){var k=n.renderPaths(A);k.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&k.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(k),k.attr("clip-path","url(#forecastMask".concat(s.globals.cuid,")")),w.attr("clip-path","url(#nonForecastMask".concat(s.globals.cuid,")"))}}}}},{key:"_iterateOverDataPoints",value:function(e){var t,i,r=this,a=e.type,s=e.series,n=e.iterations,o=e.realIndex,l=e.translationsIndex,c=e.i,d=e.x,h=e.y,u=e.pX,g=e.pY,p=e.pathsFrom,f=e.linePaths,b=e.areaPaths,m=e.seriesIndex,x=e.lineYPosition,v=e.xArrj,y=e.yArrj,A=e.y2Arrj,k=e.isRangeStart,C=e.seriesRangeEnd,S=this.w,E=new Di(this.ctx),D=this.yRatio,B=p.prevY,L=p.linePath,T=p.areaPath,P=p.pathFromLine,M=p.pathFromArea,I=w.isNumber(S.globals.minYArr[o])?S.globals.minYArr[o]:S.globals.minY;n||(n=S.globals.dataPoints>1?S.globals.dataPoints-1:S.globals.dataPoints);var R=function(e,t){return t-e/D[l]+2*(r.isReversed?e/D[l]:0)},z=h,O=S.config.chart.stacked&&!S.globals.comboCharts||S.config.chart.stacked&&S.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||"bar"===(null===(t=this.w.config.series[o])||void 0===t?void 0:t.type)||"column"===(null===(i=this.w.config.series[o])||void 0===i?void 0:i.type)),N=S.config.stroke.curve;Array.isArray(N)&&(N=Array.isArray(m)?N[m[c]]:N[c]);for(var H,F=0,_=0;_<n&&0!==s[c].length;_++){var Y=void 0===s[c][_+1]||null===s[c][_+1];if(S.globals.isXNumeric){var X=S.globals.seriesX[o][_+1];void 0===S.globals.seriesX[o][_+1]&&(X=S.globals.seriesX[o][n-1]),d=(X-S.globals.minX)/this.xRatio}else d+=this.xDivision;x=O&&c>0&&S.globals.collapsedSeries.length<S.config.series.length-1?this.prevSeriesY[function(e){for(var t=e;t>0;t--){if(!(S.globals.collapsedSeriesIndices.indexOf((null==m?void 0:m[t])||t)>-1))return t;t--}return 0}(c-1)][_+1]:this.zeroY,Y?h=R(I,x):(h=R(s[c][_+1],x),"rangeArea"===a&&(z=R(C[c][_+1],x))),v.push(null===s[c][_+1]?null:d),!Y||"smooth"!==S.config.stroke.curve&&"monotoneCubic"!==S.config.stroke.curve?(y.push(h),A.push(z)):(y.push(null),A.push(null));var W=this.lineHelpers.calculatePoints({series:s,x:d,y:h,realIndex:o,i:c,j:_,prevY:B}),q=this._createPaths({type:a,series:s,i:c,realIndex:o,j:_,x:d,y:h,y2:z,xArrj:v,yArrj:y,y2Arrj:A,pX:u,pY:g,pathState:F,segmentStartX:H,linePath:L,areaPath:T,linePaths:f,areaPaths:b,curve:N,isRangeStart:k});b=q.areaPaths,f=q.linePaths,u=q.pX,g=q.pY,F=q.pathState,H=q.segmentStartX,T=q.areaPath,L=q.linePath,!this.appendPathFrom||S.globals.hasNullValues||"monotoneCubic"===N&&"rangeArea"===a||(P+=E.line(d,this.areaBottomY),M+=E.line(d,this.areaBottomY)),this.handleNullDataPoints(s,W,c,_,o),this._handleMarkersAndLabels({type:a,pointsPos:W,i:c,j:_,realIndex:o,isRangeStart:k})}return{yArrj:y,xArrj:v,pathFromArea:M,areaPaths:b,pathFromLine:P,linePaths:f,linePath:L,areaPath:T}}},{key:"_handleMarkersAndLabels",value:function(e){var t=e.type,i=e.pointsPos,r=e.isRangeStart,a=e.i,s=e.j,n=e.realIndex,o=this.w,l=new Vi(this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,s,{realIndex:n,pointsPos:i,zRatio:this.zRatio,elParent:this.elPointsMain});else{o.globals.series[a].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");var c=this.markers.plotChartMarkers({pointsPos:i,seriesIndex:n,j:s+1});null!==c&&this.elPointsMain.add(c)}var d=l.drawDataLabel({type:t,isRangeStart:r,pos:i,i:n,j:s+1});null!==d&&this.elDataLabelsWrap.add(d)}},{key:"_createPaths",value:function(e){var t=e.type,i=e.series,r=e.i;e.realIndex;var a,s=e.j,n=e.x,o=e.y,l=e.xArrj,c=e.yArrj,d=e.y2,h=e.y2Arrj,u=e.pX,g=e.pY,p=e.pathState,f=e.segmentStartX,b=e.linePath,m=e.areaPath,x=e.linePaths,v=e.areaPaths,y=e.curve,A=e.isRangeStart,w=new Di(this.ctx),k=this.areaBottomY,C="rangeArea"===t,S="rangeArea"===t&&A;switch(y){case"monotoneCubic":var E=A?c:h;switch(p){case 0:if(null===E[s+1])break;p=1;case 1:if(!(C?l.length===i[r].length:s===i[r].length-2))break;case 2:var D=A?l:l.slice().reverse(),B=A?E:E.slice().reverse(),L=(a=B,D.map(function(e,t){return[e,a[t]]}).filter(function(e){return null!==e[1]})),T=L.length>1?function(e){var t=function(e){for(var t,i,r,a,s=function(e){for(var t=[],i=e[0],r=e[1],a=t[0]=Yr(i,r),s=1,n=e.length-1;s<n;s++)i=r,r=e[s+1],t[s]=.5*(a+(a=Yr(i,r)));return t[s]=a,t}(e),n=e.length-1,o=[],l=0;l<n;l++)r=Yr(e[l],e[l+1]),Math.abs(r)<1e-6?s[l]=s[l+1]=0:(a=(t=s[l]/r)*t+(i=s[l+1]/r)*i)>9&&(a=3*r/Math.sqrt(a),s[l]=a*t,s[l+1]=a*i);for(var c=0;c<=n;c++)a=(e[Math.min(n,c+1)][0]-e[Math.max(0,c-1)][0])/(6*(1+s[c]*s[c])),o.push([a||0,s[c]*a||0]);return o}(e),i=e[1],r=e[0],a=[],s=t[1],n=t[0];a.push(r,[r[0]+n[0],r[1]+n[1],i[0]-s[0],i[1]-s[1],i[0],i[1]]);for(var o=2,l=t.length;o<l;o++){var c=e[o],d=t[o];a.push([c[0]-d[0],c[1]-d[1],c[0],c[1]])}return a}(L):L,P=[];C&&(S?v=L:P=v.reverse());var M=0,I=0;if(function(e,t){for(var i=function(e){var t=[],i=0;return e.forEach(function(e){null!==e?i++:i>0&&(t.push(i),i=0)}),i>0&&t.push(i),t}(e),r=[],a=0,s=0;a<i.length;s+=i[a++])r[a]=_r(t,s,s+i[a]);return r}(B,T).forEach(function(e){M++;var t=function(e){for(var t="",i=0;i<e.length;i++){var r=e[i],a=r.length;a>4?(t+="C".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]),t+=", ".concat(r[4],", ").concat(r[5])):a>2&&(t+="S".concat(r[0],", ").concat(r[1]),t+=", ".concat(r[2],", ").concat(r[3]))}return t}(e),i=I,r=(I+=e.length)-1;S?b=w.move(L[i][0],L[i][1])+t:C?b=w.move(P[i][0],P[i][1])+w.line(L[i][0],L[i][1])+t+w.line(P[r][0],P[r][1]):(b=w.move(L[i][0],L[i][1])+t,m=b+w.line(L[r][0],k)+w.line(L[i][0],k)+"z",v.push(m)),x.push(b)}),C&&M>1&&!S){var R=x.slice(M).reverse();x.splice(M),R.forEach(function(e){return x.push(e)})}p=0}break;case"smooth":var z=.35*(n-u);if(null===i[r][s])p=0;else switch(p){case 0:if(f=u,b=S?w.move(u,h[s])+w.line(u,g):w.move(u,g),m=w.move(u,g),null===i[r][s+1]||void 0===i[r][s+1]){x.push(b),v.push(m);break}if(p=1,s<i[r].length-2){var O=w.curve(u+z,g,n-z,o,n,o);b+=O,m+=O;break}case 1:if(null===i[r][s+1])b+=S?w.line(u,d):w.move(u,g),m+=w.line(u,k)+w.line(f,k)+"z",x.push(b),v.push(m),p=-1;else{var N=w.curve(u+z,g,n-z,o,n,o);b+=N,m+=N,s>=i[r].length-2&&(S&&(b+=w.curve(n,o,n,o,n,d)+w.move(n,d)),m+=w.curve(n,o,n,o,n,k)+w.line(f,k)+"z",x.push(b),v.push(m),p=-1)}}u=n,g=o;break;default:var H=function(e,t,i){var r=[];switch(e){case"stepline":r=w.line(t,null,"H")+w.line(null,i,"V");break;case"linestep":r=w.line(null,i,"V")+w.line(t,null,"H");break;case"straight":r=w.line(t,i)}return r};if(null===i[r][s])p=0;else switch(p){case 0:if(f=u,b=S?w.move(u,h[s])+w.line(u,g):w.move(u,g),m=w.move(u,g),null===i[r][s+1]||void 0===i[r][s+1]){x.push(b),v.push(m);break}if(p=1,s<i[r].length-2){var F=H(y,n,o);b+=F,m+=F;break}case 1:if(null===i[r][s+1])b+=S?w.line(u,d):w.move(u,g),m+=w.line(u,k)+w.line(f,k)+"z",x.push(b),v.push(m),p=-1;else{var _=H(y,n,o);b+=_,m+=_,s>=i[r].length-2&&(S&&(b+=w.line(n,d)),m+=w.line(n,k)+w.line(f,k)+"z",x.push(b),v.push(m),p=-1)}}u=n,g=o}return{linePaths:x,areaPaths:v,pX:u,pY:g,pathState:p,segmentStartX:f,linePath:b,areaPath:m}}},{key:"handleNullDataPoints",value:function(e,t,i,r,a){var s=this.w;if(null===e[i][r]&&s.config.markers.showNullDataPoints||1===e[i].length){var n=this.strokeWidth-s.config.markers.strokeWidth/2;n>0||(n=0);var o=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:a,j:r+1,pSize:n,alwaysDrawMarker:!0});null!==o&&this.elPointsMain.add(o)}}}]),e}();window.TreemapSquared={},window.TreemapSquared.generate=function(){function e(t,i,r,a){this.xoffset=t,this.yoffset=i,this.height=a,this.width=r,this.shortestEdge=function(){return Math.min(this.height,this.width)},this.getCoordinates=function(e){var t,i=[],r=this.xoffset,a=this.yoffset,n=s(e)/this.height,o=s(e)/this.width;if(this.width>=this.height)for(t=0;t<e.length;t++)i.push([r,a,r+n,a+e[t]/n]),a+=e[t]/n;else for(t=0;t<e.length;t++)i.push([r,a,r+e[t]/o,a+o]),r+=e[t]/o;return i},this.cutArea=function(t){var i;if(this.width>=this.height){var r=t/this.height,a=this.width-r;i=new e(this.xoffset+r,this.yoffset,a,this.height)}else{var s=t/this.width,n=this.height-s;i=new e(this.xoffset,this.yoffset+s,this.width,n)}return i}}function t(t,r,a,n,o){n=void 0===n?0:n,o=void 0===o?0:o;var l=i(function(e,t){var i,r=[],a=t/s(e);for(i=0;i<e.length;i++)r[i]=e[i]*a;return r}(t,r*a),[],new e(n,o,r,a),[]);return function(e){var t,i,r=[];for(t=0;t<e.length;t++)for(i=0;i<e[t].length;i++)r.push(e[t][i]);return r}(l)}function i(e,t,a,n){var o,l,c;if(0!==e.length)return o=a.shortestEdge(),function(e,t,i){var a;return 0===e.length||((a=e.slice()).push(t),r(e,i)>=r(a,i))}(t,l=e[0],o)?(t.push(l),i(e.slice(1),t,a,n)):(c=a.cutArea(s(t),n),n.push(a.getCoordinates(t)),i(e,[],c,n)),n;n.push(a.getCoordinates(t))}function r(e,t){var i=Math.min.apply(Math,e),r=Math.max.apply(Math,e),a=s(e);return Math.max(Math.pow(t,2)*r/Math.pow(a,2),Math.pow(a,2)/(Math.pow(t,2)*i))}function a(e){return e&&e.constructor===Array}function s(e){var t,i=0;for(t=0;t<e.length;t++)i+=e[t];return i}function n(e){var t,i=0;if(a(e[0]))for(t=0;t<e.length;t++)i+=n(e[t]);else i=s(e);return i}return function e(i,r,s,o,l){o=void 0===o?0:o,l=void 0===l?0:l;var c,d,h=[],u=[];if(a(i[0])){for(d=0;d<i.length;d++)h[d]=n(i[d]);for(c=t(h,r,s,o,l),d=0;d<i.length;d++)u.push(e(i[d],c[d][2]-c[d][0],c[d][3]-c[d][1],c[d][0],c[d][1]))}else u=t(i,r,s,o,l);return u}}();var Wr=function(){function e(t,i){s(this,e),this.ctx=t,this.w=t.w,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Mr(t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}return o(e,[{key:"draw",value:function(e){var t=this,i=this.w,r=new Di(this.ctx),a=new ji(this.ctx),s=r.group({class:"apexcharts-treemap"});if(i.globals.noData)return s;var n=[];return e.forEach(function(e){var t=e.map(function(e){return Math.abs(e)});n.push(t)}),this.negRange=this.helpers.checkColorRange(),i.config.series.forEach(function(e,i){e.data.forEach(function(e){Array.isArray(t.labels[i])||(t.labels[i]=[]),t.labels[i].push(e.x)})}),window.TreemapSquared.generate(n,i.globals.gridWidth,i.globals.gridHeight).forEach(function(n,o){var l=r.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:w.escapeString(i.globals.seriesNames[o]),rel:o+1,"data:realIndex":o});if(i.config.chart.dropShadow.enabled){var c=i.config.chart.dropShadow;new Ei(t.ctx).dropShadow(s,c,o)}var d=r.group({class:"apexcharts-data-labels"}),h={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0};n.forEach(function(s,n){var c=s[0],d=s[1],u=s[2],g=s[3];h.xMin=Math.min(h.xMin,c),h.yMin=Math.min(h.yMin,d),h.xMax=Math.max(h.xMax,u),h.yMax=Math.max(h.yMax,g);var p=t.helpers.getShadeColor(i.config.chart.type,o,n,t.negRange),f=p.color,b=a.fillPath({color:f,seriesNumber:o,dataPointIndex:n}),m=r.drawRect(c,d,u-c,g-d,i.config.plotOptions.treemap.borderRadius,"#fff",1,t.strokeWidth,i.config.plotOptions.treemap.useFillColorAsStroke?f:i.globals.stroke.colors[o]);m.attr({cx:c,cy:d,index:o,i:o,j:n,width:u-c,height:g-d,fill:b}),m.node.classList.add("apexcharts-treemap-rect"),t.helpers.addListeners(m);var x={x:c+(u-c)/2,y:d+(g-d)/2,width:0,height:0},v={x:c,y:d,width:u-c,height:g-d};if(i.config.chart.animations.enabled&&!i.globals.dataChanged){var y=1;i.globals.resized||(y=i.config.chart.animations.speed),t.animateTreemap(m,x,v,y)}if(i.globals.dataChanged){var A=1;t.dynamicAnim.enabled&&i.globals.shouldAnimate&&(A=t.dynamicAnim.speed,i.globals.previousPaths[o]&&i.globals.previousPaths[o][n]&&i.globals.previousPaths[o][n].rect&&(x=i.globals.previousPaths[o][n].rect),t.animateTreemap(m,x,v,A))}var w=t.getFontSize(s),k=i.config.dataLabels.formatter(t.labels[o][n],{value:i.globals.series[o][n],seriesIndex:o,dataPointIndex:n,w:i});"truncate"===i.config.plotOptions.treemap.dataLabels.format&&(w=parseInt(i.config.dataLabels.style.fontSize,10),k=t.truncateLabels(k,w,c,d,u,g));var C=null;i.globals.series[o][n]&&(C=t.helpers.calculateDataLabels({text:k,x:(c+u)/2,y:(d+g)/2+t.strokeWidth/2+w/3,i:o,j:n,colorProps:p,fontSize:w,series:e})),i.config.dataLabels.enabled&&C&&t.rotateToFitLabel(C,w,k,c,d,u,g),l.add(m),null!==C&&l.add(C)});var u=i.config.plotOptions.treemap.seriesTitle;if(i.config.series.length>1&&u&&u.show){var g=i.config.series[o].name||"";if(g&&h.xMin<1/0&&h.yMin<1/0){var p=u.offsetX,f=u.offsetY,b=u.borderColor,m=u.borderWidth,x=u.borderRadius,v=u.style,y=v.color||i.config.chart.foreColor,A={left:v.padding.left,right:v.padding.right,top:v.padding.top,bottom:v.padding.bottom},k=r.getTextRects(g,v.fontSize,v.fontFamily),C=k.width+A.left+A.right,S=k.height+A.top+A.bottom,E=h.xMin+(p||0),D=h.yMin+(f||0),B=r.drawRect(E,D,C,S,x,v.background,1,m,b),L=r.drawText({x:E+A.left,y:D+A.top+.75*k.height,text:g,fontSize:v.fontSize,fontFamily:v.fontFamily,fontWeight:v.fontWeight,foreColor:y,cssClass:v.cssClass||""});l.add(B),l.add(L)}}l.add(d),s.add(l)}),s}},{key:"getFontSize",value:function(e){var t=this.w,i=function e(t){var i,r=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)r+=e(t[i]);else for(i=0;i<t.length;i++)r+=t[i].length;return r}(this.labels)/function e(t){var i,r=0;if(Array.isArray(t[0]))for(i=0;i<t.length;i++)r+=e(t[i]);else for(i=0;i<t.length;i++)r+=1;return r}(this.labels);return function(e,r){var a=e*r,s=Math.pow(a,.5);return Math.min(s/i,parseInt(t.config.dataLabels.style.fontSize,10))}(e[2]-e[0],e[3]-e[1])}},{key:"rotateToFitLabel",value:function(e,t,i,r,a,s,n){var o=new Di(this.ctx),l=o.getTextRects(i,t);if(l.width+this.w.config.stroke.width+5>s-r&&l.width<=n-a){var c=o.rotateAroundCenter(e.node);e.node.setAttribute("transform","rotate(-90 ".concat(c.x," ").concat(c.y,") translate(").concat(l.height/3,")"))}}},{key:"truncateLabels",value:function(e,t,i,r,a,s){var n=new Di(this.ctx),o=n.getTextRects(e,t).width+this.w.config.stroke.width+5>a-i&&s-r>a-i?s-r:a-i,l=n.getTextBasedOnMaxWidth({text:e,maxWidth:o,fontSize:t});return e.length!==l.length&&o/t<5?"":l}},{key:"animateTreemap",value:function(e,t,i,r){var a=new k(this.ctx);a.animateRect(e,t,i,r,function(){a.animationCompleted(e)})}}]),e}(),qr=10/86400,jr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w,this.timeScaleArray=[],this.utc=this.w.config.xaxis.labels.datetimeUTC}return o(e,[{key:"calculateTimeScaleTicks",value:function(e,t){var i=this,r=this.w;if(r.globals.allSeriesCollapsed)return r.globals.labels=[],r.globals.timescaleLabels=[],[];var a=new Pi(this.ctx),s=(t-e)/864e5;this.determineInterval(s),r.globals.disableZoomIn=!1,r.globals.disableZoomOut=!1,s<qr?r.globals.disableZoomIn=!0:s>5e4&&(r.globals.disableZoomOut=!0);var n=a.getTimeUnitsfromTimestamp(e,t,this.utc),o=r.globals.gridWidth/s,l=o/24,c=l/60,d=c/60,h=Math.floor(24*s),u=Math.floor(1440*s),g=Math.floor(86400*s),p=Math.floor(s),b=Math.floor(s/30),m=Math.floor(s/365),x={minMillisecond:n.minMillisecond,minSecond:n.minSecond,minMinute:n.minMinute,minHour:n.minHour,minDate:n.minDate,minMonth:n.minMonth,minYear:n.minYear},v={firstVal:x,currentMillisecond:x.minMillisecond,currentSecond:x.minSecond,currentMinute:x.minMinute,currentHour:x.minHour,currentMonthDate:x.minDate,currentDate:x.minDate,currentMonth:x.minMonth,currentYear:x.minYear,daysWidthOnXAxis:o,hoursWidthOnXAxis:l,minutesWidthOnXAxis:c,secondsWidthOnXAxis:d,numberOfSeconds:g,numberOfMinutes:u,numberOfHours:h,numberOfDays:p,numberOfMonths:b,numberOfYears:m};switch(this.tickInterval){case"years":this.generateYearScale(v);break;case"months":case"half_year":this.generateMonthScale(v);break;case"months_days":case"months_fortnight":case"days":case"week_days":this.generateDayScale(v);break;case"hours":this.generateHourScale(v);break;case"minutes_fives":case"minutes":this.generateMinuteScale(v);break;case"seconds_tens":case"seconds_fives":case"seconds":this.generateSecondScale(v)}var y=this.timeScaleArray.map(function(e){var t={position:e.position,unit:e.unit,year:e.year,day:e.day?e.day:1,hour:e.hour?e.hour:0,month:e.month+1};return"month"===e.unit?f(f({},t),{},{day:1,value:e.value+1}):"day"===e.unit||"hour"===e.unit?f(f({},t),{},{value:e.value}):"minute"===e.unit?f(f({},t),{},{value:e.value,minute:e.value}):"second"===e.unit?f(f({},t),{},{value:e.value,minute:e.minute,second:e.second}):e});return y.filter(function(e){var t=1,a=Math.ceil(r.globals.gridWidth/120),s=e.value;void 0!==r.config.xaxis.tickAmount&&(a=r.config.xaxis.tickAmount),y.length>a&&(t=Math.floor(y.length/a));var n=!1,o=!1;switch(i.tickInterval){case"years":"year"===e.unit&&(n=!0);break;case"half_year":t=7,"year"===e.unit&&(n=!0);break;case"months":t=1,"year"===e.unit&&(n=!0);break;case"months_fortnight":t=15,"year"!==e.unit&&"month"!==e.unit||(n=!0),30===s&&(o=!0);break;case"months_days":t=10,"month"===e.unit&&(n=!0),30===s&&(o=!0);break;case"week_days":t=8,"month"===e.unit&&(n=!0);break;case"days":t=1,"month"===e.unit&&(n=!0);break;case"hours":"day"===e.unit&&(n=!0);break;case"minutes_fives":case"seconds_fives":s%5!=0&&(o=!0);break;case"seconds_tens":s%10!=0&&(o=!0)}if("hours"===i.tickInterval||"minutes_fives"===i.tickInterval||"seconds_tens"===i.tickInterval||"seconds_fives"===i.tickInterval){if(!o)return!0}else if((s%t==0||n)&&!o)return!0})}},{key:"recalcDimensionsBasedOnFormat",value:function(e,t){var i=this.w,r=this.formatDates(e),a=this.removeOverlappingTS(r);i.globals.timescaleLabels=a.slice(),new fr(this.ctx).plotCoords()}},{key:"determineInterval",value:function(e){var t=24*e,i=60*t;switch(!0){case e/365>5:this.tickInterval="years";break;case e>800:this.tickInterval="half_year";break;case e>180:this.tickInterval="months";break;case e>90:this.tickInterval="months_fortnight";break;case e>60:this.tickInterval="months_days";break;case e>30:this.tickInterval="week_days";break;case e>2:this.tickInterval="days";break;case t>2.4:this.tickInterval="hours";break;case i>15:this.tickInterval="minutes_fives";break;case i>5:this.tickInterval="minutes";break;case i>1:this.tickInterval="seconds_tens";break;case 60*i>20:this.tickInterval="seconds_fives";break;default:this.tickInterval="seconds"}}},{key:"generateYearScale",value:function(e){var t=e.firstVal,i=e.currentMonth,r=e.currentYear,a=e.daysWidthOnXAxis,s=e.numberOfYears,n=t.minYear,o=0,l=new Pi(this.ctx),c="year";if(t.minDate>1||t.minMonth>0){var d=l.determineRemainingDaysOfYear(t.minYear,t.minMonth,t.minDate);o=(l.determineDaysOfYear(t.minYear)-d+1)*a,n=t.minYear+1,this.timeScaleArray.push({position:o,value:n,unit:c,year:n,month:w.monthMod(i+1)})}else 1===t.minDate&&0===t.minMonth&&this.timeScaleArray.push({position:o,value:n,unit:c,year:r,month:w.monthMod(i+1)});for(var h=n,u=o,g=0;g<s;g++)h++,u=l.determineDaysOfYear(h-1)*a+u,this.timeScaleArray.push({position:u,value:h,unit:c,year:h,month:1})}},{key:"generateMonthScale",value:function(e){var t=e.firstVal,i=e.currentMonthDate,r=e.currentMonth,a=e.currentYear,s=e.daysWidthOnXAxis,n=e.numberOfMonths,o=r,l=0,c=new Pi(this.ctx),d="month",h=0;if(t.minDate>1){l=(c.determineDaysOfMonths(r+1,t.minYear)-i+1)*s,o=w.monthMod(r+1);var u=a+h,g=w.monthMod(o),p=o;0===o&&(d="year",p=u,g=1,u+=h+=1),this.timeScaleArray.push({position:l,value:p,unit:d,year:u,month:g})}else this.timeScaleArray.push({position:l,value:o,unit:d,year:a,month:w.monthMod(r)});for(var f=o+1,b=l,m=0,x=1;m<n;m++,x++){0===(f=w.monthMod(f))?(d="year",h+=1):d="month";var v=this._getYear(a,f,h);b=c.determineDaysOfMonths(f,v)*s+b;var y=0===f?v:f;this.timeScaleArray.push({position:b,value:y,unit:d,year:v,month:0===f?1:f}),f++}}},{key:"generateDayScale",value:function(e){var t=e.firstVal,i=e.currentMonth,r=e.currentYear,a=e.hoursWidthOnXAxis,s=e.numberOfDays,n=new Pi(this.ctx),o="day",l=t.minDate+1,c=l,d=function(e,t,i){return e>n.determineDaysOfMonths(t+1,i)?(c=1,o="month",u=t+=1,t):t},h=(24-t.minHour)*a,u=l,g=d(c,i,r);0===t.minHour&&1===t.minDate?(h=0,u=w.monthMod(t.minMonth),o="month",c=t.minDate):1!==t.minDate&&0===t.minHour&&0===t.minMinute&&(h=0,l=t.minDate,u=l,g=d(c=l,i,r),1!==u&&(o="day")),this.timeScaleArray.push({position:h,value:u,unit:o,year:this._getYear(r,g,0),month:w.monthMod(g),day:c});for(var p=h,f=0;f<s;f++){o="day",g=d(c+=1,g,this._getYear(r,g,0));var b=this._getYear(r,g,0);p=24*a+p;var m=1===c?w.monthMod(g):c;this.timeScaleArray.push({position:p,value:m,unit:o,year:b,month:w.monthMod(g),day:m})}}},{key:"generateHourScale",value:function(e){var t=e.firstVal,i=e.currentDate,r=e.currentMonth,a=e.currentYear,s=e.minutesWidthOnXAxis,n=e.numberOfHours,o=new Pi(this.ctx),l="hour",c=function(e,t){return e>o.determineDaysOfMonths(t+1,a)&&(f=1,t+=1),{month:t,date:f}},d=function(e,t){return e>o.determineDaysOfMonths(t+1,a)?t+=1:t},h=60-(t.minMinute+t.minSecond/60),u=h*s,g=t.minHour+1,p=g;60===h&&(u=0,p=g=t.minHour);var f=i;p>=24&&(p=0,l="day",g=f+=1);var b=c(f,r).month;b=d(f,b),g>31&&(g=f=1),this.timeScaleArray.push({position:u,value:g,unit:l,day:f,hour:p,year:a,month:w.monthMod(b)}),p++;for(var m=u,x=0;x<n;x++){l="hour",p>=24&&(p=0,l="day",b=c(f+=1,b).month,b=d(f,b));var v=this._getYear(a,b,0);m=60*s+m;var y=0===p?f:p;this.timeScaleArray.push({position:m,value:y,unit:l,hour:p,day:f,year:v,month:w.monthMod(b)}),p++}}},{key:"generateMinuteScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,r=e.currentMinute,a=e.currentHour,s=e.currentDate,n=e.currentMonth,o=e.currentYear,l=e.minutesWidthOnXAxis,c=e.secondsWidthOnXAxis,d=e.numberOfMinutes,h=r+1,u=s,g=n,p=o,f=a,b=(60-i-t/1e3)*c,m=0;m<d;m++)h>=60&&(h=0,24===(f+=1)&&(f=0)),this.timeScaleArray.push({position:b,value:h,unit:"minute",hour:f,minute:h,day:u,year:this._getYear(p,g,0),month:w.monthMod(g)}),b+=l,h++}},{key:"generateSecondScale",value:function(e){for(var t=e.currentMillisecond,i=e.currentSecond,r=e.currentMinute,a=e.currentHour,s=e.currentDate,n=e.currentMonth,o=e.currentYear,l=e.secondsWidthOnXAxis,c=e.numberOfSeconds,d=i+1,h=r,u=s,g=n,p=o,f=a,b=(1e3-t)/1e3*l,m=0;m<c;m++)d>=60&&(d=0,++h>=60&&(h=0,24===++f&&(f=0))),this.timeScaleArray.push({position:b,value:d,unit:"second",hour:f,minute:h,second:d,day:u,year:this._getYear(p,g,0),month:w.monthMod(g)}),b+=l,d++}},{key:"createRawDateString",value:function(e,t){var i=e.year;return 0===e.month&&(e.month=1),i+="-"+("0"+e.month.toString()).slice(-2),"day"===e.unit?i+="day"===e.unit?"-"+("0"+t).slice(-2):"-01":i+="-"+("0"+(e.day?e.day:"1")).slice(-2),"hour"===e.unit?i+="hour"===e.unit?"T"+("0"+t).slice(-2):"T00":i+="T"+("0"+(e.hour?e.hour:"0")).slice(-2),"minute"===e.unit?i+=":"+("0"+t).slice(-2):i+=":"+(e.minute?("0"+e.minute).slice(-2):"00"),"second"===e.unit?i+=":"+("0"+t).slice(-2):i+=":00",this.utc&&(i+=".000Z"),i}},{key:"formatDates",value:function(e){var t=this,i=this.w;return e.map(function(e){var r=e.value.toString(),a=new Pi(t.ctx),s=t.createRawDateString(e,r),n=a.getDate(a.parseDate(s));if(t.utc||(n=a.getDate(a.parseDateWithTimezone(s))),void 0===i.config.xaxis.labels.format){var o="dd MMM",l=i.config.xaxis.labels.datetimeFormatter;"year"===e.unit&&(o=l.year),"month"===e.unit&&(o=l.month),"day"===e.unit&&(o=l.day),"hour"===e.unit&&(o=l.hour),"minute"===e.unit&&(o=l.minute),"second"===e.unit&&(o=l.second),r=a.formatDate(n,o)}else r=a.formatDate(n,i.config.xaxis.labels.format);return{dateString:s,position:e.position,value:r,unit:e.unit,year:e.year,month:e.month}})}},{key:"removeOverlappingTS",value:function(e){var t,i=this,r=new Di(this.ctx),a=!1;e.length>0&&e[0].value&&e.every(function(t){return t.value.length===e[0].value.length})&&(a=!0,t=r.getTextRects(e[0].value).width);var s=0,n=e.map(function(n,o){if(o>0&&i.w.config.xaxis.labels.hideOverlappingLabels){var l=a?t:r.getTextRects(e[s].value).width,c=e[s].position;return n.position>c+l+10?(s=o,n):null}return n});return n.filter(function(e){return null!==e})}},{key:"_getYear",value:function(e,t,i){return e+Math.floor(t/12)+i}}]),e}(),Ur=function(){function e(t,i){s(this,e),this.ctx=i,this.w=i.w,this.el=t}return o(e,[{key:"setupElements",value:function(){var e=this.w,t=e.globals,i=e.config,r=i.chart.type;t.axisCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble","radar","heatmap","treemap"].includes(r),t.xyCharts=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","scatter","bubble"].includes(r),t.isBarHorizontal=["bar","rangeBar","boxPlot"].includes(r)&&i.plotOptions.bar.horizontal,t.chartClass=".apexcharts".concat(t.chartID),t.dom.baseEl=this.el,t.dom.elWrap=document.createElement("div"),Di.setAttrs(t.dom.elWrap,{id:t.chartClass.substring(1),class:"apexcharts-canvas ".concat(t.chartClass.substring(1))}),this.el.appendChild(t.dom.elWrap),t.dom.Paper=window.SVG().addTo(t.dom.elWrap),t.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:"translate(".concat(i.chart.offsetX,", ").concat(i.chart.offsetY,")")}),t.dom.Paper.node.style.background="dark"!==i.theme.mode||i.chart.background?"light"!==i.theme.mode||i.chart.background?i.chart.background:"#fff":"#343A3F",this.setSVGDimensions(),t.dom.elLegendForeign=document.createElementNS(t.SVGNS,"foreignObject"),Di.setAttrs(t.dom.elLegendForeign,{x:0,y:0,width:t.svgWidth,height:t.svgHeight}),t.dom.elLegendWrap=document.createElement("div"),t.dom.elLegendWrap.classList.add("apexcharts-legend"),t.dom.elWrap.appendChild(t.dom.elLegendWrap),t.dom.Paper.node.appendChild(t.dom.elLegendForeign),t.dom.elGraphical=t.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),t.dom.elDefs=t.dom.Paper.defs(),t.dom.Paper.add(t.dom.elGraphical),t.dom.elGraphical.add(t.dom.elDefs)}},{key:"plotChartType",value:function(e,t){var i=this.w,r=this.ctx,a=i.config,s=i.globals,n={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},o=a.chart.type||"line",l=null,c=0;s.series.forEach(function(t,r){var a,d,h="column"===(null===(a=e[r])||void 0===a?void 0:a.type)?"bar":(null===(d=e[r])||void 0===d?void 0:d.type)||("column"===o?"bar":o);n[h]?("rangeArea"===h?(n[h].series.push(s.seriesRangeStart[r]),n[h].seriesRangeEnd.push(s.seriesRangeEnd[r])):n[h].series.push(t),n[h].i.push(r),"bar"===h&&(i.globals.columnSeries=n.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(h)?l=h:console.warn("You have specified an unrecognized series type (".concat(h,").")),o!==h&&"scatter"!==h&&c++}),c>0&&(l&&console.warn("Chart or series type ".concat(l," cannot appear with other chart or series types.")),n.bar.series.length>0&&a.plotOptions.bar.horizontal&&(c-=n.bar.series.length,n.bar={series:[],i:[]},i.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),s.comboCharts||(s.comboCharts=c>0);var d=new Xr(r,t),h=new Pr(r,t);r.pie=new zr(r);var u=new Nr(r);r.rangeBar=new Hr(r,t);var g=new Or(r),p=[];if(s.comboCharts){var f,b,m=new Bi(r);if(n.area.series.length>0&&(f=p).push.apply(f,x(m.drawSeriesByGroup(n.area,s.areaGroups,"area",d))),n.bar.series.length>0)if(a.chart.stacked){var v=new Tr(r,t);p.push(v.draw(n.bar.series,n.bar.i))}else r.bar=new Lr(r,t),p.push(r.bar.draw(n.bar.series,n.bar.i));if(n.rangeArea.series.length>0&&p.push(d.draw(n.rangeArea.series,"rangeArea",n.rangeArea.i,n.rangeArea.seriesRangeEnd)),n.line.series.length>0&&(b=p).push.apply(b,x(m.drawSeriesByGroup(n.line,s.lineGroups,"line",d))),n.candlestick.series.length>0&&p.push(h.draw(n.candlestick.series,"candlestick",n.candlestick.i)),n.boxPlot.series.length>0&&p.push(h.draw(n.boxPlot.series,"boxPlot",n.boxPlot.i)),n.rangeBar.series.length>0&&p.push(r.rangeBar.draw(n.rangeBar.series,n.rangeBar.i)),n.scatter.series.length>0){var y=new Xr(r,t,!0);p.push(y.draw(n.scatter.series,"scatter",n.scatter.i))}if(n.bubble.series.length>0){var A=new Xr(r,t,!0);p.push(A.draw(n.bubble.series,"bubble",n.bubble.i))}}else switch(a.chart.type){case"line":p=d.draw(s.series,"line");break;case"area":p=d.draw(s.series,"area");break;case"bar":a.chart.stacked?p=new Tr(r,t).draw(s.series):(r.bar=new Lr(r,t),p=r.bar.draw(s.series));break;case"candlestick":p=new Pr(r,t).draw(s.series,"candlestick");break;case"boxPlot":p=new Pr(r,t).draw(s.series,a.chart.type);break;case"rangeBar":p=r.rangeBar.draw(s.series);break;case"rangeArea":p=d.draw(s.seriesRangeStart,"rangeArea",void 0,s.seriesRangeEnd);break;case"heatmap":p=new Ir(r,t).draw(s.series);break;case"treemap":p=new Wr(r,t).draw(s.series);break;case"pie":case"donut":case"polarArea":p=r.pie.draw(s.series);break;case"radialBar":p=u.draw(s.series);break;case"radar":p=g.draw(s.series);break;default:p=d.draw(s.series)}return p}},{key:"setSVGDimensions",value:function(){var e=this.w,t=e.globals,i=e.config;i.chart.width=i.chart.width||"100%",i.chart.height=i.chart.height||"auto",t.svgWidth=i.chart.width,t.svgHeight=i.chart.height;var r=w.getDimensions(this.el),a=i.chart.width.toString().split(/[0-9]+/g).pop();"%"===a?w.isNumber(r[0])&&(0===r[0].width&&(r=w.getDimensions(this.el.parentNode)),t.svgWidth=r[0]*parseInt(i.chart.width,10)/100):"px"!==a&&""!==a||(t.svgWidth=parseInt(i.chart.width,10));var s=String(i.chart.height).toString().split(/[0-9]+/g).pop();if("auto"!==t.svgHeight&&""!==t.svgHeight)if("%"===s){var n=w.getDimensions(this.el.parentNode);t.svgHeight=n[1]*parseInt(i.chart.height,10)/100}else t.svgHeight=parseInt(i.chart.height,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),Di.setAttrs(t.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),"%"!==s){var o=i.chart.sparkline.enabled?0:t.axisCharts?i.chart.parentHeightOffset:0;t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(t.svgHeight+o,"px")}t.dom.elWrap.style.width="".concat(t.svgWidth,"px"),t.dom.elWrap.style.height="".concat(t.svgHeight,"px")}},{key:"shiftGraphPosition",value:function(){var e=this.w.globals,t=e.translateY,i=e.translateX;Di.setAttrs(e.dom.elGraphical.node,{transform:"translate(".concat(i,", ").concat(t,")")})}},{key:"resizeNonAxisCharts",value:function(){var e=this.w,t=e.globals,i=0,r=e.config.chart.sparkline.enabled?1:15;r+=e.config.grid.padding.bottom,["top","bottom"].includes(e.config.legend.position)&&e.config.legend.show&&!e.config.legend.floating&&(i=new mr(this.ctx).legendHelpers.getLegendDimensions().clwh+7);var a=e.globals.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie"),s=2.05*e.globals.radialSize;if(a&&!e.config.chart.sparkline.enabled&&0!==e.config.plotOptions.radialBar.startAngle){var n=w.getBoundingClientRect(a);s=n.bottom;var o=n.bottom-n.top;s=Math.max(2.05*e.globals.radialSize,o)}var l=Math.ceil(s+t.translateY+i+r);t.dom.elLegendForeign&&t.dom.elLegendForeign.setAttribute("height",l),e.config.chart.height&&String(e.config.chart.height).includes("%")||(t.dom.elWrap.style.height="".concat(l,"px"),Di.setAttrs(t.dom.Paper.node,{height:l}),t.dom.Paper.node.parentNode.parentNode.style.minHeight="".concat(l,"px"))}},{key:"coreCalculations",value:function(){new ir(this.ctx).init()}},{key:"resetGlobals",value:function(){var e=this,t=function(){return e.w.config.series.map(function(){return[]})},i=new Wi,r=this.w.globals,a={dataWasParsed:r.dataWasParsed,originalSeries:r.originalSeries};i.initGlobalVars(r),r.seriesXvalues=t(),r.seriesYvalues=t(),a.dataWasParsed&&(r.dataWasParsed=a.dataWasParsed,r.originalSeries=a.originalSeries)}},{key:"isMultipleY",value:function(){return!!(Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1)&&(this.w.globals.isMultipleYAxis=!0,!0)}},{key:"xySettings",value:function(){var e=this.w,t=null;if(e.globals.axisCharts){if("back"===e.config.xaxis.crosshairs.position&&new or(this.ctx).drawXCrosshairs(),"back"===e.config.yaxis[0].crosshairs.position&&new or(this.ctx).drawYCrosshairs(),"datetime"===e.config.xaxis.type&&void 0===e.config.xaxis.labels.formatter){this.ctx.timeScale=new jr(this.ctx);var i=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(i=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(i)}t=new Bi(this.ctx).getCalculatedRatios()}return t}},{key:"updateSourceChart",value:function(e){this.ctx.w.globals.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}},{key:"setupBrushHandler",value:function(){var e=this,t=this.ctx,i=this.w;if(i.config.chart.brush.enabled&&"function"!=typeof i.config.chart.events.selection){var r=Array.isArray(i.config.chart.brush.targets)?i.config.chart.brush.targets:[i.config.chart.brush.target];r.forEach(function(i){var r=t.constructor.getChartByID(i);r.w.globals.brushSource=e.ctx,"function"!=typeof r.w.config.chart.events.zoomed&&(r.w.config.chart.events.zoomed=function(){return e.updateSourceChart(r)}),"function"!=typeof r.w.config.chart.events.scrolled&&(r.w.config.chart.events.scrolled=function(){return e.updateSourceChart(r)})}),i.config.chart.events.selection=function(e,i){r.forEach(function(e){t.constructor.getChartByID(e).ctx.updateHelpers._updateOptions({xaxis:{min:i.xaxis.min,max:i.xaxis.max}},!1,!1,!1,!1)})}}}}]),e}(),Gr=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"_updateOptions",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=arguments.length>4&&void 0!==arguments[4]&&arguments[4];return new Promise(function(n){var o=[t.ctx];a&&(o=t.ctx.getSyncedCharts()),t.ctx.w.globals.isExecCalled&&(o=[t.ctx],t.ctx.w.globals.isExecCalled=!1),o.forEach(function(a,l){var c=a.w;if(c.globals.shouldAnimate=r,i||(c.globals.resized=!0,c.globals.dataChanged=!0,r&&a.series.getPreviousPaths()),e&&"object"===y(e)&&(a.config=new Xi(e),e=Bi.extendArrayProps(a.config,e,c),a.w.globals.chartID!==t.ctx.w.globals.chartID&&delete e.series,c.config=w.extend(c.config,e),s&&(c.globals.lastXAxis=e.xaxis?w.clone(e.xaxis):[],c.globals.lastYAxis=e.yaxis?w.clone(e.yaxis):[],c.globals.initialConfig=w.extend({},c.config),c.globals.initialSeries=w.clone(c.config.series),e.series))){for(var d=0;d<c.globals.collapsedSeriesIndices.length;d++){var h=c.config.series[c.globals.collapsedSeriesIndices[d]];c.globals.collapsedSeries[d].data=c.globals.axisCharts?h.data.slice():h}for(var u=0;u<c.globals.ancillaryCollapsedSeriesIndices.length;u++){var g=c.config.series[c.globals.ancillaryCollapsedSeriesIndices[u]];c.globals.ancillaryCollapsedSeries[u].data=c.globals.axisCharts?g.data.slice():g}a.series.emptyCollapsedSeries(c.config.series)}return a.update(e).then(function(){l===o.length-1&&n(a)})})})}},{key:"_updateSeries",value:function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return new Promise(function(a){var s=i.w;return s.globals.shouldAnimate=t,s.globals.dataChanged=!0,t&&i.ctx.series.getPreviousPaths(),i.ctx.data.resetParsingFlags(),i.ctx.data.parseData(e),r&&(s.globals.initialConfig.series=w.clone(s.config.series),s.globals.initialSeries=w.clone(s.config.series)),i.ctx.update().then(function(){a(i.ctx)})})}},{key:"_extendSeries",value:function(e,t){var i=this.w,r=i.config.series[t];return f(f({},i.config.series[t]),{},{name:e.name?e.name:null==r?void 0:r.name,color:e.color?e.color:null==r?void 0:r.color,type:e.type?e.type:null==r?void 0:r.type,group:e.group?e.group:null==r?void 0:r.group,hidden:void 0!==e.hidden?e.hidden:null==r?void 0:r.hidden,data:e.data?e.data:null==r?void 0:r.data,zIndex:void 0!==e.zIndex?e.zIndex:t})}},{key:"toggleDataPointSelection",value:function(e,t){var i=this.w,r=null,a=".apexcharts-series[data\\:realIndex='".concat(e,"']");return i.globals.axisCharts?r=i.globals.dom.Paper.findOne("".concat(a," path[j='").concat(t,"'], ").concat(a," circle[j='").concat(t,"'], ").concat(a," rect[j='").concat(t,"']")):void 0===t&&(r=i.globals.dom.Paper.findOne("".concat(a," path[j='").concat(e,"']")),"pie"!==i.config.chart.type&&"polarArea"!==i.config.chart.type&&"donut"!==i.config.chart.type||this.ctx.pie.pieClicked(e)),r?(new Di(this.ctx).pathMouseDown(r,null),r.node?r.node:null):(console.warn("toggleDataPointSelection: Element not found"),null)}},{key:"forceXAxisUpdate",value:function(e){var t=this.w;if(["min","max"].forEach(function(i){void 0!==e.xaxis[i]&&(t.config.xaxis[i]=e.xaxis[i],t.globals.lastXAxis[i]=e.xaxis[i])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric){var i=new Yi(e);e=i.convertCatToNumericXaxis(e,this.ctx)}return e}},{key:"forceYAxisUpdate",value:function(e){return e.chart&&e.chart.stacked&&"100%"===e.chart.stackType&&(Array.isArray(e.yaxis)?e.yaxis.forEach(function(t,i){e.yaxis[i].min=0,e.yaxis[i].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}},{key:"revertDefaultAxisMinMax",value:function(e){var t=this,i=this.w,r=i.globals.lastXAxis,a=i.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(a=e.yaxis),i.config.xaxis.min=r.min,i.config.xaxis.max=r.max,i.config.yaxis.map(function(e,r){i.globals.zoomed||void 0!==a[r]?function(e){void 0!==a[e]&&(i.config.yaxis[e].min=a[e].min,i.config.yaxis[e].max=a[e].max)}(r):void 0!==t.ctx.opts.yaxis[r]&&(e.min=t.ctx.opts.yaxis[r].min,e.max=t.ctx.opts.yaxis[r].max)})}}]),e}();!function(){function e(){for(var e=arguments.length>0&&arguments[0]!==c?arguments[0]:[],a=arguments.length>1?arguments[1]:c,s=arguments.length>2?arguments[2]:c,n=arguments.length>3?arguments[3]:c,o=arguments.length>4?arguments[4]:c,l=arguments.length>5?arguments[5]:c,c=arguments.length>6?arguments[6]:c,d=e.slice(a,s||c),h=n.slice(o,l||c),u=0,g={pos:[0,0],start:[0,0]},p={pos:[0,0],start:[0,0]};d[u]=t.call(g,d[u]),h[u]=t.call(p,h[u]),d[u][0]!=h[u][0]||"M"==d[u][0]||"A"==d[u][0]&&(d[u][4]!=h[u][4]||d[u][5]!=h[u][5])?(Array.prototype.splice.apply(d,[u,1].concat(r.call(g,d[u]))),Array.prototype.splice.apply(h,[u,1].concat(r.call(p,h[u])))):(d[u]=i.call(g,d[u]),h[u]=i.call(p,h[u])),++u!=d.length||u!=h.length;)u==d.length&&d.push(["C",g.pos[0],g.pos[1],g.pos[0],g.pos[1],g.pos[0],g.pos[1]]),u==h.length&&h.push(["C",p.pos[0],p.pos[1],p.pos[0],p.pos[1],p.pos[0],p.pos[1]]);return{start:d,dest:h}}function t(e){switch(e[0]){case"z":case"Z":e[0]="L",e[1]=this.start[0],e[2]=this.start[1];break;case"H":e[0]="L",e[2]=this.pos[1];break;case"V":e[0]="L",e[2]=e[1],e[1]=this.pos[0];break;case"T":e[0]="Q",e[3]=e[1],e[4]=e[2],e[1]=this.reflection[1],e[2]=this.reflection[0];break;case"S":e[0]="C",e[6]=e[4],e[5]=e[3],e[4]=e[2],e[3]=e[1],e[2]=this.reflection[1],e[1]=this.reflection[0]}return e}function i(e){var t=e.length;return this.pos=[e[t-2],e[t-1]],-1!="SCQT".indexOf(e[0])&&(this.reflection=[2*this.pos[0]-e[t-4],2*this.pos[1]-e[t-3]]),e}function r(e){var t=[e];switch(e[0]){case"M":return this.pos=this.start=[e[1],e[2]],t;case"L":e[5]=e[3]=e[1],e[6]=e[4]=e[2],e[1]=this.pos[0],e[2]=this.pos[1];break;case"Q":e[6]=e[4],e[5]=e[3],e[4]=1*e[4]/3+2*e[2]/3,e[3]=1*e[3]/3+2*e[1]/3,e[2]=1*this.pos[1]/3+2*e[2]/3,e[1]=1*this.pos[0]/3+2*e[1]/3;break;case"A":t=function(e,t){var i,r,a,s,n,o,l,c,d,h,u,g,p,f,b,m,x,v,y,A,w,k,C,S,E,D,B=Math.abs(t[1]),L=Math.abs(t[2]),T=t[3]%360,P=t[4],M=t[5],I=t[6],R=t[7],z=new ye(e),O=new ye(I,R),N=[];if(0===B||0===L||z.x===O.x&&z.y===O.y)return[["C",z.x,z.y,O.x,O.y,O.x,O.y]];for((r=(i=new ye((z.x-O.x)/2,(z.y-O.y)/2).transform((new we).rotate(T))).x*i.x/(B*B)+i.y*i.y/(L*L))>1&&(B*=r=Math.sqrt(r),L*=r),a=(new we).rotate(T).scale(1/B,1/L).rotate(-T),z=z.transform(a),o=(s=[(O=O.transform(a)).x-z.x,O.y-z.y])[0]*s[0]+s[1]*s[1],n=Math.sqrt(o),s[0]/=n,s[1]/=n,l=o<4?Math.sqrt(1-o/4):0,P===M&&(l*=-1),c=new ye((O.x+z.x)/2+l*-s[1],(O.y+z.y)/2+l*s[0]),d=new ye(z.x-c.x,z.y-c.y),h=new ye(O.x-c.x,O.y-c.y),u=Math.acos(d.x/Math.sqrt(d.x*d.x+d.y*d.y)),d.y<0&&(u*=-1),g=Math.acos(h.x/Math.sqrt(h.x*h.x+h.y*h.y)),h.y<0&&(g*=-1),M&&u>g&&(g+=2*Math.PI),!M&&u<g&&(g-=2*Math.PI),m=[],x=u,p=(g-u)/(f=Math.ceil(2*Math.abs(u-g)/Math.PI)),b=4*Math.tan(p/4)/3,w=0;w<=f;w++)y=Math.cos(x),v=Math.sin(x),A=new ye(c.x+y,c.y+v),m[w]=[new ye(A.x+b*v,A.y-b*y),A,new ye(A.x-b*v,A.y+b*y)],x+=p;for(m[0][0]=m[0][1].clone(),m[m.length-1][2]=m[m.length-1][1].clone(),a=(new we).rotate(T).scale(B,L).rotate(-T),w=0,k=m.length;w<k;w++)m[w][0]=m[w][0].transform(a),m[w][1]=m[w][1].transform(a),m[w][2]=m[w][2].transform(a);for(w=1,k=m.length;w<k;w++)C=(A=m[w-1][2]).x,S=A.y,E=(A=m[w][0]).x,D=A.y,I=(A=m[w][1]).x,R=A.y,N.push(["C",C,S,E,D,I,R]);return N}(this.pos,e),e=t[0]}return e[0]="C",this.pos=[e[5],e[6]],this.reflection=[2*e[5]-e[3],2*e[6]-e[4]],t}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0;if(!1===t)return!1;for(var i=t,r=e.length;i<r;++i)if("M"==e[i][0])return i;return!1}te(Rt,{morph:function(t,i,r,s,n){for(var o=this.parse(t),l=this.parse(i),c=0,d=0,h=!1,u=!1;!1!==c||!1!==d;){var g;h=a(o,!1!==c&&c+1),u=a(l,!1!==d&&d+1),!1===c&&(c=0==(g=new Rt(p.start).bbox()).height||0==g.width?o.push(o[0])-1:o.push(["M",g.x+g.width/2,g.y+g.height/2])-1),!1===d&&(d=0==(g=new Rt(p.dest).bbox()).height||0==g.width?l.push(l[0])-1:l.push(["M",g.x+g.width/2,g.y+g.height/2])-1);var p=e(o,c,h,l,d,u);o=o.slice(0,c).concat(p.start,!1===h?[]:o.slice(h)),l=l.slice(0,d).concat(p.dest,!1===u?[]:l.slice(u)),c=!1!==h&&c+p.start.length,d=!1!==u&&d+p.dest.length}this._array=o,this.destination=new Rt,this.destination._array=l;var f=this.fromArray(o.map(function(e,t){var i=l[t].map(function(i,a){return 0===a?i:s.step(e[a],l[t][a],r,n[t],n)});return i}));return f}})}();const Vr=e=>(e.changedTouches&&(e=e.changedTouches[0]),{x:e.clientX,y:e.clientY});class Zr{constructor(e){e.remember("_draggable",this),this.el=e,this.drag=this.drag.bind(this),this.startDrag=this.startDrag.bind(this),this.endDrag=this.endDrag.bind(this)}init(e){e?(this.el.on("mousedown.drag",this.startDrag),this.el.on("touchstart.drag",this.startDrag,{passive:!1})):(this.el.off("mousedown.drag"),this.el.off("touchstart.drag"))}startDrag(e){const t=!e.type.indexOf("mouse");if(t&&1!==e.which&&0!==e.buttons)return;if(this.el.dispatch("beforedrag",{event:e,handler:this}).defaultPrevented)return;e.preventDefault(),e.stopPropagation(),this.init(!1),this.box=this.el.bbox(),this.lastClick=this.el.point(Vr(e));const i=(t?"mouseup":"touchend")+".drag";Re(window,(t?"mousemove":"touchmove")+".drag",this.drag,this,{passive:!1}),Re(window,i,this.endDrag,this,{passive:!1}),this.el.fire("dragstart",{event:e,handler:this,box:this.box})}drag(e){const{box:t,lastClick:i}=this,r=this.el.point(Vr(e)),a=r.x-i.x,s=r.y-i.y;if(!a&&!s)return t;const n=t.x+a,o=t.y+s;this.box=new Se(n,o,t.w,t.h),this.lastClick=r,this.el.dispatch("dragmove",{event:e,handler:this,box:this.box}).defaultPrevented||this.move(n,o)}move(e,t){"svg"===this.el.type?gi.prototype.move.call(this.el,e,t):this.el.move(e,t)}endDrag(e){this.drag(e),this.el.fire("dragend",{event:e,handler:this,box:this.box}),ze(window,"mousemove.drag"),ze(window,"touchmove.drag"),ze(window,"mouseup.drag"),ze(window,"touchend.drag"),this.init(!0)}}function $r(e,t,i,r=null){return function(a){a.preventDefault(),a.stopPropagation();var s=a.pageX||a.touches[0].pageX,n=a.pageY||a.touches[0].pageY;t.fire(e,{x:s,y:n,event:a,index:r,points:i})}}function Qr([e,t],{a:i,b:r,c:a,d:s,e:n,f:o}){return[e*i+t*a+n,e*r+t*s+o]}te(qe,{draggable(e=!0){return(this.remember("_draggable")||new Zr(this)).init(e),this}});let Jr=class{constructor(e){this.el=e,e.remember("_selectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=Y();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.createRot=e.createRot||this.createRotFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.updateRot=e.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((e,t,i)=>{const r=this.order[t];this.createHandle.call(this,this.selection,e,t,i,r),this.selection.get(t+1).addClass("svg_select_handle svg_select_handle_"+r).on("mousedown.selection touchstart.selection",$r(r,this.el,this.handlePoints,t))})}createHandleFn(e){e.polyline()}updateHandleFn(e,t,i,r){const a=r.at(i-1),s=r[(i+1)%r.length],n=t,o=[n[0]-a[0],n[1]-a[1]],l=[n[0]-s[0],n[1]-s[1]],c=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=Math.sqrt(l[0]*l[0]+l[1]*l[1]),h=[o[0]/c,o[1]/c],u=[l[0]/d,l[1]/d],g=[n[0]-10*h[0],n[1]-10*h[1]],p=[n[0]-10*u[0],n[1]-10*u[1]];e.plot([g,n,p])}updateResizeHandles(){this.handlePoints.forEach((e,t,i)=>{const r=this.order[t];this.updateHandle.call(this,this.selection.get(t+1),e,t,i,r)})}createRotFn(e){e.line(),e.circle(5)}getPoint(e){return this.handlePoints[this.order.indexOf(e)]}getPointHandle(e){return this.selection.get(this.order.indexOf(e)+1)}updateRotFn(e,t){const i=this.getPoint("t");e.get(0).plot(i[0],i[1],t[0],t[1]),e.get(1).center(t[0],t[1])}createRotationHandle(){const e=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",$r("rot",this.el,this.handlePoints));this.createRot.call(this,e)}updateRotationHandle(){const e=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(e,this.rotationPoint,this.handlePoints)}updatePoints(){const e=this.el.bbox(),t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(e).map(e=>Qr(e,t)),this.rotationPoint=Qr(this.getRotationPoint(e),t)}getHandlePoints({x:e,x2:t,y:i,y2:r,cx:a,cy:s}=this.el.bbox()){return[[e,i],[a,i],[t,i],[t,s],[t,r],[a,r],[e,r],[e,s]]}getRotationPoint({y:e,cx:t}=this.el.bbox()){return[t,e-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}};const Kr=e=>function(t=!0,i={}){"object"==typeof t&&(i=t,t=!0);let r=this.remember("_"+e.name);return r||(t.prototype instanceof Jr?(r=new t(this),t=!0):r=new e(this),this.remember("_"+e.name,r)),r.active(t,i),this};function ea(e,t,i,r=null){return function(a){a.preventDefault(),a.stopPropagation();var s=a.pageX||a.touches[0].pageX,n=a.pageY||a.touches[0].pageY;t.fire(e,{x:s,y:n,event:a,index:r,points:i})}}function ta([e,t],{a:i,b:r,c:a,d:s,e:n,f:o}){return[e*i+t*a+n,e*r+t*s+o]}te(qe,{select:Kr(Jr)}),te([qt,jt,bt],{pointSelect:Kr(class{constructor(e){this.el=e,e.remember("_pointSelectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=Y();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((e,t,i)=>{this.createHandle.call(this,this.selection,e,t,i),this.selection.get(t+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",$r("point",this.el,this.points,t))})}createHandleFn(e){e.circle(5)}updateHandleFn(e,t){e.center(t[0],t[1])}updatePointHandles(){this.points.forEach((e,t,i)=>{this.updateHandle.call(this,this.selection.get(t+1),e,t,i)})}updatePoints(){const e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(t=>Qr(t,e))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});class ia{constructor(e){this.el=e,e.remember("_selectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=Y();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.createRot=e.createRot||this.createRotFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.updateRot=e.updateRot||this.updateRotFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createResizeHandles(),this.updateResizeHandles(),this.createRotationHandle(),this.updateRotationHandle(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.handlePoints).addClass("svg_select_shape")}updateSelection(){this.selection.get(0).plot(this.handlePoints)}createResizeHandles(){this.handlePoints.forEach((e,t,i)=>{const r=this.order[t];this.createHandle.call(this,this.selection,e,t,i,r),this.selection.get(t+1).addClass("svg_select_handle svg_select_handle_"+r).on("mousedown.selection touchstart.selection",ea(r,this.el,this.handlePoints,t))})}createHandleFn(e){e.polyline()}updateHandleFn(e,t,i,r){const a=r.at(i-1),s=r[(i+1)%r.length],n=t,o=[n[0]-a[0],n[1]-a[1]],l=[n[0]-s[0],n[1]-s[1]],c=Math.sqrt(o[0]*o[0]+o[1]*o[1]),d=Math.sqrt(l[0]*l[0]+l[1]*l[1]),h=[o[0]/c,o[1]/c],u=[l[0]/d,l[1]/d],g=[n[0]-10*h[0],n[1]-10*h[1]],p=[n[0]-10*u[0],n[1]-10*u[1]];e.plot([g,n,p])}updateResizeHandles(){this.handlePoints.forEach((e,t,i)=>{const r=this.order[t];this.updateHandle.call(this,this.selection.get(t+1),e,t,i,r)})}createRotFn(e){e.line(),e.circle(5)}getPoint(e){return this.handlePoints[this.order.indexOf(e)]}getPointHandle(e){return this.selection.get(this.order.indexOf(e)+1)}updateRotFn(e,t){const i=this.getPoint("t");e.get(0).plot(i[0],i[1],t[0],t[1]),e.get(1).center(t[0],t[1])}createRotationHandle(){const e=this.selection.group().addClass("svg_select_handle_rot").on("mousedown.selection touchstart.selection",ea("rot",this.el,this.handlePoints));this.createRot.call(this,e)}updateRotationHandle(){const e=this.selection.findOne("g.svg_select_handle_rot");this.updateRot(e,this.rotationPoint,this.handlePoints)}updatePoints(){const e=this.el.bbox(),t=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.handlePoints=this.getHandlePoints(e).map(e=>ta(e,t)),this.rotationPoint=ta(this.getRotationPoint(e),t)}getHandlePoints({x:e,x2:t,y:i,y2:r,cx:a,cy:s}=this.el.bbox()){return[[e,i],[a,i],[t,i],[t,s],[t,r],[a,r],[e,r],[e,s]]}getRotationPoint({y:e,cx:t}=this.el.bbox()){return[t,e-20]}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updateResizeHandles(),this.updateRotationHandle()}}const ra=e=>function(t=!0,i={}){"object"==typeof t&&(i=t,t=!0);let r=this.remember("_"+e.name);return r||(t.prototype instanceof ia?(r=new t(this),t=!0):r=new e(this),this.remember("_"+e.name,r)),r.active(t,i),this};te(qe,{select:ra(ia)}),te([qt,jt,bt],{pointSelect:ra(class{constructor(e){this.el=e,e.remember("_pointSelectHandler",this),this.selection=new gi,this.order=["lt","t","rt","r","rb","b","lb","l","rot"],this.mutationHandler=this.mutationHandler.bind(this);const t=Y();this.observer=new t.MutationObserver(this.mutationHandler)}init(e){this.createHandle=e.createHandle||this.createHandleFn,this.updateHandle=e.updateHandle||this.updateHandleFn,this.el.root().put(this.selection),this.updatePoints(),this.createSelection(),this.createPointHandles(),this.updatePointHandles(),this.observer.observe(this.el.node,{attributes:!0})}active(e,t){if(!e)return this.selection.clear().remove(),void this.observer.disconnect();this.init(t)}createSelection(){this.selection.polygon(this.points).addClass("svg_select_shape_pointSelect")}updateSelection(){this.selection.get(0).plot(this.points)}createPointHandles(){this.points.forEach((e,t,i)=>{this.createHandle.call(this,this.selection,e,t,i),this.selection.get(t+1).addClass("svg_select_handle_point").on("mousedown.selection touchstart.selection",ea("point",this.el,this.points,t))})}createHandleFn(e){e.circle(5)}updateHandleFn(e,t){e.center(t[0],t[1])}updatePointHandles(){this.points.forEach((e,t,i)=>{this.updateHandle.call(this,this.selection.get(t+1),e,t,i)})}updatePoints(){const e=this.el.parent().screenCTM().inverseO().multiplyO(this.el.screenCTM());this.points=this.el.array().map(t=>ta(t,e))}mutationHandler(){this.updatePoints(),this.updateSelection(),this.updatePointHandles()}})});const aa=e=>(e.changedTouches&&(e=e.changedTouches[0]),{x:e.clientX,y:e.clientY}),sa=e=>{let t=1/0,i=1/0,r=-1/0,a=-1/0;for(let s=0;s<e.length;s++){const n=e[s];t=Math.min(t,n[0]),i=Math.min(i,n[1]),r=Math.max(r,n[0]),a=Math.max(a,n[1])}return new Se(t,i,r-t,a-i)};class na{constructor(e){this.el=e,e.remember("_ResizeHandler",this),this.lastCoordinates=null,this.eventType="",this.lastEvent=null,this.handleResize=this.handleResize.bind(this),this.resize=this.resize.bind(this),this.endResize=this.endResize.bind(this),this.rotate=this.rotate.bind(this),this.movePoint=this.movePoint.bind(this)}active(e,t){this.preserveAspectRatio=t.preserveAspectRatio??!1,this.aroundCenter=t.aroundCenter??!1,this.grid=t.grid??0,this.degree=t.degree??0,this.el.off(".resize"),e&&(this.el.on(["lt.resize","rt.resize","rb.resize","lb.resize","t.resize","r.resize","b.resize","l.resize","rot.resize","point.resize"],this.handleResize),this.lastEvent&&("rot"===this.eventType?this.rotate(this.lastEvent):"point"===this.eventType?this.movePoint(this.lastEvent):this.resize(this.lastEvent)))}handleResize(e){this.eventType=e.type;const{event:t,index:i,points:r}=e.detail,a=!t.type.indexOf("mouse");if(a&&1!==(t.which||t.buttons))return;if(this.el.dispatch("beforeresize",{event:e,handler:this}).defaultPrevented)return;this.box=this.el.bbox(),this.startPoint=this.el.point(aa(t)),this.index=i,this.points=r.slice();const s=(a?"mousemove":"touchmove")+".resize",n=(a?"mouseup":"touchcancel.resize touchend")+".resize";"point"===e.type?Re(window,s,this.movePoint):"rot"===e.type?Re(window,s,this.rotate):Re(window,s,this.resize),Re(window,n,this.endResize)}resize(e){this.lastEvent=e;const t=this.snapToGrid(this.el.point(aa(e)));let i=t.x-this.startPoint.x,r=t.y-this.startPoint.y;this.preserveAspectRatio&&this.aroundCenter&&(i*=2,r*=2);const a=this.box.x+i,s=this.box.y+r,n=this.box.x2+i,o=this.box.y2+r;let l=new Se(this.box);if(this.eventType.includes("l")&&(l.x=Math.min(a,this.box.x2),l.x2=Math.max(a,this.box.x2)),this.eventType.includes("r")&&(l.x=Math.min(n,this.box.x),l.x2=Math.max(n,this.box.x)),this.eventType.includes("t")&&(l.y=Math.min(s,this.box.y2),l.y2=Math.max(s,this.box.y2)),this.eventType.includes("b")&&(l.y=Math.min(o,this.box.y),l.y2=Math.max(o,this.box.y)),l.width=l.x2-l.x,l.height=l.y2-l.y,this.preserveAspectRatio){const e=l.width/this.box.width,t=l.height/this.box.height,i=["lt","t","rt","r","rb","b","lb","l"],r=(i.indexOf(this.eventType)+4)%i.length,a=this.aroundCenter?[this.box.cx,this.box.cy]:this.points[r];let s=this.eventType.includes("t")||this.eventType.includes("b")?t:e;s=2===this.eventType.length?Math.max(e,t):s,l=function(e,t,i){const r=[[e.x,e.y],[e.x+e.width,e.y],[e.x+e.width,e.y+e.height],[e.x,e.y+e.height]].map(([e,r])=>{const a=e-t[0],s=(r-t[1])*i;return[a*i+t[0],s+t[1]]});return sa(r)}(this.box,a,s)}this.el.dispatch("resize",{box:new Se(l),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.size(l.width,l.height).move(l.x,l.y)}movePoint(e){this.lastEvent=e;const{x:t,y:i}=this.snapToGrid(this.el.point(aa(e))),r=this.el.array().slice();r[this.index]=[t,i],this.el.dispatch("resize",{box:sa(r),angle:0,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.plot(r)}rotate(e){this.lastEvent=e;const t=this.startPoint,i=this.el.point(aa(e)),{cx:r,cy:a}=this.box,s=t.x-r,n=t.y-a,o=i.x-r,l=i.y-a,c=Math.sqrt(s*s+n*n)*Math.sqrt(o*o+l*l);if(0===c)return;let d=Math.acos((s*o+n*l)/c)/Math.PI*180;if(!d)return;i.x<t.x&&(d=-d);const h=new we(this.el),{x:u,y:g}=new ye(r,a).transformO(h),{rotate:p}=h.decompose(),f=this.snapToAngle(p+d)-p;this.el.dispatch("resize",{box:this.box,angle:f,eventType:this.eventType,event:e,handler:this}).defaultPrevented||this.el.transform(h.rotateO(f,u,g))}endResize(e){"rot"!==this.eventType&&"point"!==this.eventType&&this.resize(e),this.lastEvent=null,this.eventType="",ze(window,"mousemove.resize touchmove.resize"),ze(window,"mouseup.resize touchend.resize")}snapToGrid(e){return this.grid&&(e.x=Math.round(e.x/this.grid)*this.grid,e.y=Math.round(e.y/this.grid)*this.grid),e}snapToAngle(e){return this.degree&&(e=Math.round(e/this.degree)*this.degree),e}}te(qe,{resize:function(e=!0,t={}){"object"==typeof e&&(t=e,e=!0);let i=this.remember("_ResizeHandler");return i||(e.prototype instanceof na?(i=new e(this),e=!0):i=new na(this),this.remember("_resizeHandler",i)),i.active(e,t),this}}),void 0===window.SVG&&(window.SVG=yi),void 0===window.Apex&&(window.Apex={});var oa=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"initModules",value:function(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend"],this.ctx.animations=new k(this.ctx),this.ctx.axes=new nr(this.ctx),this.ctx.core=new Ur(this.ctx.el,this.ctx),this.ctx.config=new Xi({}),this.ctx.data=new Qi(this.ctx),this.ctx.grid=new er(this.ctx),this.ctx.graphics=new Di(this.ctx),this.ctx.coreUtils=new Bi(this.ctx),this.ctx.crosshairs=new or(this.ctx),this.ctx.events=new ar(this.ctx),this.ctx.exports=new Ji(this.ctx),this.ctx.fill=new ji(this.ctx),this.ctx.localization=new sr(this.ctx),this.ctx.options=new Ni,this.ctx.responsive=new lr(this.ctx),this.ctx.series=new $i(this.ctx),this.ctx.theme=new cr(this.ctx),this.ctx.formatters=new Mi(this.ctx),this.ctx.titleSubtitle=new dr(this.ctx),this.ctx.legend=new mr(this.ctx),this.ctx.toolbar=new xr(this.ctx),this.ctx.tooltip=new Er(this.ctx),this.ctx.dimensions=new fr(this.ctx),this.ctx.updateHelpers=new Gr(this.ctx),this.ctx.zoomPanSelection=new vr(this.ctx),this.ctx.w.globals.tooltip=new Er(this.ctx)}}]),e}(),la=function(){function e(t){s(this,e),this.ctx=t,this.w=t.w}return o(e,[{key:"clear",value:function(e){var t=e.isUpdating;this.ctx.zoomPanSelection&&this.ctx.zoomPanSelection.destroy(),this.ctx.toolbar&&this.ctx.toolbar.destroy(),this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx.zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx.toolbar=null,this.ctx.localization=null,this.ctx.w.globals.tooltip=null,this.clearDomElements({isUpdating:t})}},{key:"killSVG",value:function(e){e.each(function(){this.removeClass("*"),this.off()},!0),e.clear()}},{key:"clearDomElements",value:function(e){var t=this,i=e.isUpdating,r=this.w.globals.dom.Paper.node;r.parentNode&&r.parentNode.parentNode&&!i&&(r.parentNode.parentNode.style.minHeight="unset");var a=this.w.globals.dom.baseEl;a&&this.ctx.eventList.forEach(function(e){a.removeEventListener(e,t.ctx.events.documentEvent)});var s=this.w.globals.dom;if(null!==this.ctx.el)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(s.Paper),s.Paper.remove(),s.elWrap=null,s.elGraphical=null,s.elLegendWrap=null,s.elLegendForeign=null,s.baseEl=null,s.elGridRect=null,s.elGridRectMask=null,s.elGridRectBarMask=null,s.elGridRectMarkerMask=null,s.elForecastMask=null,s.elNonForecastMask=null,s.elDefs=null}}]),e}(),ca=new WeakMap,da=function(){function e(t,i){s(this,e),this.opts=i,this.ctx=this,this.w=new qi(i).init(),this.el=t,this.w.globals.cuid=w.randomId(),this.w.globals.chartID=this.w.config.chart.id?w.escapeString(this.w.config.chart.id):this.w.globals.cuid,new oa(this).initModules(),this.lastUpdateOptions=null,this.create=w.bind(this.create,this),this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this)}return o(e,[{key:"render",value:function(){var e=this;return new Promise(function(t,i){if(w.elementExists(e.el)){void 0===Apex._chartInstances&&(Apex._chartInstances=[]),e.w.config.chart.id&&Apex._chartInstances.push({id:e.w.globals.chartID,group:e.w.config.chart.group,chart:e}),e.setLocale(e.w.config.chart.defaultLocale);var r=e.w.config.chart.events.beforeMount;"function"==typeof r&&r(e,e.w),e.events.fireEvent("beforeMount",[e,e.w]),window.addEventListener("resize",e.windowResizeHandler),function(e,t){var i=!1;if(e.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){var r=e.getBoundingClientRect();"none"!==e.style.display&&0!==r.width||(i=!0)}var a=new ResizeObserver(function(r){i&&t.call(e,r),i=!0});e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(e.children).forEach(function(e){return a.observe(e)}):a.observe(e),ca.set(t,a)}(e.el.parentNode,e.parentResizeHandler);var a=e.el.getRootNode&&e.el.getRootNode(),s=w.is("ShadowRoot",a),n=e.el.ownerDocument,o=s?a.getElementById("apexcharts-css"):n.getElementById("apexcharts-css");if(!o){var l;(o=document.createElement("style")).id="apexcharts-css",o.textContent='@keyframes opaque {\n  0% {\n    opacity: 0\n  }\n\n  to {\n    opacity: 1\n  }\n}\n\n@keyframes resizeanim {\n\n  0%,\n  to {\n    opacity: 0\n  }\n}\n\n.apexcharts-canvas {\n  position: relative;\n  direction: ltr !important;\n  user-select: none\n}\n\n.apexcharts-canvas ::-webkit-scrollbar {\n  -webkit-appearance: none;\n  width: 6px\n}\n\n.apexcharts-canvas ::-webkit-scrollbar-thumb {\n  border-radius: 4px;\n  background-color: rgba(0, 0, 0, .5);\n  box-shadow: 0 0 1px rgba(255, 255, 255, .5);\n  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)\n}\n\n.apexcharts-inner {\n  position: relative\n}\n\n.apexcharts-text tspan {\n  font-family: inherit\n}\n\nrect.legend-mouseover-inactive,\n.legend-mouseover-inactive rect,\n.legend-mouseover-inactive path,\n.legend-mouseover-inactive circle,\n.legend-mouseover-inactive line,\n.legend-mouseover-inactive text.apexcharts-yaxis-title-text,\n.legend-mouseover-inactive text.apexcharts-yaxis-label {\n  transition: .15s ease all;\n  opacity: .2\n}\n\n.apexcharts-legend-text {\n  padding-left: 15px;\n  margin-left: -15px;\n}\n\n.apexcharts-series-collapsed {\n  opacity: 0\n}\n\n.apexcharts-tooltip {\n  border-radius: 5px;\n  box-shadow: 2px 2px 6px -4px #999;\n  cursor: default;\n  font-size: 14px;\n  left: 62px;\n  opacity: 0;\n  pointer-events: none;\n  position: absolute;\n  top: 20px;\n  display: flex;\n  flex-direction: column;\n  overflow: hidden;\n  white-space: nowrap;\n  z-index: 12;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-tooltip.apexcharts-theme-light {\n  border: 1px solid #e3e3e3;\n  background: rgba(255, 255, 255, .96)\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark {\n  color: #fff;\n  background: rgba(30, 30, 30, .8)\n}\n\n.apexcharts-tooltip * {\n  font-family: inherit\n}\n\n.apexcharts-tooltip-title {\n  padding: 6px;\n  font-size: 15px;\n  margin-bottom: 4px\n}\n\n.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title {\n  background: #eceff1;\n  border-bottom: 1px solid #ddd\n}\n\n.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {\n  background: rgba(0, 0, 0, .7);\n  border-bottom: 1px solid #333\n}\n\n.apexcharts-tooltip-text-goals-value,\n.apexcharts-tooltip-text-y-value,\n.apexcharts-tooltip-text-z-value {\n  display: inline-block;\n  margin-left: 5px;\n  font-weight: 600\n}\n\n.apexcharts-tooltip-text-goals-label:empty,\n.apexcharts-tooltip-text-goals-value:empty,\n.apexcharts-tooltip-text-y-label:empty,\n.apexcharts-tooltip-text-y-value:empty,\n.apexcharts-tooltip-text-z-value:empty,\n.apexcharts-tooltip-title:empty {\n  display: none\n}\n\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n  padding: 6px 0 5px\n}\n\n.apexcharts-tooltip-goals-group,\n.apexcharts-tooltip-text-goals-label,\n.apexcharts-tooltip-text-goals-value {\n  display: flex\n}\n\n.apexcharts-tooltip-text-goals-label:not(:empty),\n.apexcharts-tooltip-text-goals-value:not(:empty) {\n  margin-top: -6px\n}\n\n.apexcharts-tooltip-marker {\n  display: inline-block;\n  position: relative;\n  width: 16px;\n  height: 16px;\n  font-size: 16px;\n  line-height: 16px;\n  margin-right: 4px;\n  text-align: center;\n  vertical-align: middle;\n  color: inherit;\n}\n\n.apexcharts-tooltip-marker::before {\n  content: "";\n  display: inline-block;\n  width: 100%;\n  text-align: center;\n  color: currentcolor;\n  text-rendering: optimizeLegibility;\n  -webkit-font-smoothing: antialiased;\n  font-size: 26px;\n  font-family: Arial, Helvetica, sans-serif;\n  line-height: 14px;\n  font-weight: 900;\n}\n\n.apexcharts-tooltip-marker[shape="circle"]::before {\n  content: "\\25CF";\n}\n\n.apexcharts-tooltip-marker[shape="square"]::before,\n.apexcharts-tooltip-marker[shape="rect"]::before {\n  content: "\\25A0";\n  transform: translate(-1px, -2px);\n}\n\n.apexcharts-tooltip-marker[shape="line"]::before {\n  content: "\\2500";\n}\n\n.apexcharts-tooltip-marker[shape="diamond"]::before {\n  content: "\\25C6";\n  font-size: 28px;\n}\n\n.apexcharts-tooltip-marker[shape="triangle"]::before {\n  content: "\\25B2";\n  font-size: 22px;\n}\n\n.apexcharts-tooltip-marker[shape="cross"]::before {\n  content: "\\2715";\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="plus"]::before {\n  content: "\\2715";\n  transform: rotate(45deg) translate(-1px, -1px);\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="star"]::before {\n  content: "\\2605";\n  font-size: 18px;\n}\n\n.apexcharts-tooltip-marker[shape="sparkle"]::before {\n  content: "\\2726";\n  font-size: 20px;\n}\n\n.apexcharts-tooltip-series-group {\n  padding: 0 10px;\n  display: none;\n  text-align: left;\n  justify-content: left;\n  align-items: center\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {\n  opacity: 1\n}\n\n.apexcharts-tooltip-series-group.apexcharts-active,\n.apexcharts-tooltip-series-group:last-child {\n  padding-bottom: 4px\n}\n\n.apexcharts-tooltip-y-group {\n  padding: 6px 0 5px\n}\n\n.apexcharts-custom-tooltip,\n.apexcharts-tooltip-box {\n  padding: 4px 8px\n}\n\n.apexcharts-tooltip-boxPlot {\n  display: flex;\n  flex-direction: column-reverse\n}\n\n.apexcharts-tooltip-box>div {\n  margin: 4px 0\n}\n\n.apexcharts-tooltip-box span.value {\n  font-weight: 700\n}\n\n.apexcharts-tooltip-rangebar {\n  padding: 5px 8px\n}\n\n.apexcharts-tooltip-rangebar .category {\n  font-weight: 600;\n  color: #777\n}\n\n.apexcharts-tooltip-rangebar .series-name {\n  font-weight: 700;\n  display: block;\n  margin-bottom: 5px\n}\n\n.apexcharts-xaxistooltip,\n.apexcharts-yaxistooltip {\n  opacity: 0;\n  pointer-events: none;\n  color: #373d3f;\n  font-size: 13px;\n  text-align: center;\n  border-radius: 2px;\n  position: absolute;\n  z-index: 10;\n  background: #eceff1;\n  border: 1px solid #90a4ae\n}\n\n.apexcharts-xaxistooltip {\n  padding: 9px 10px;\n  transition: .15s ease all\n}\n\n.apexcharts-xaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, .7);\n  border: 1px solid rgba(0, 0, 0, .5);\n  color: #fff\n}\n\n.apexcharts-xaxistooltip:after,\n.apexcharts-xaxistooltip:before {\n  left: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-xaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-left: -6px\n}\n\n.apexcharts-xaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-left: -7px\n}\n\n.apexcharts-xaxistooltip-bottom:after,\n.apexcharts-xaxistooltip-bottom:before {\n  bottom: 100%\n}\n\n.apexcharts-xaxistooltip-top:after,\n.apexcharts-xaxistooltip-top:before {\n  top: 100%\n}\n\n.apexcharts-xaxistooltip-bottom:after {\n  border-bottom-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-bottom:before {\n  border-bottom-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-bottom.apexcharts-theme-dark:before {\n  border-bottom-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip-top:after {\n  border-top-color: #eceff1\n}\n\n.apexcharts-xaxistooltip-top:before {\n  border-top-color: #90a4ae\n}\n\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:after,\n.apexcharts-xaxistooltip-top.apexcharts-theme-dark:before {\n  border-top-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-xaxistooltip.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-yaxistooltip {\n  padding: 4px 10px\n}\n\n.apexcharts-yaxistooltip.apexcharts-theme-dark {\n  background: rgba(0, 0, 0, .7);\n  border: 1px solid rgba(0, 0, 0, .5);\n  color: #fff\n}\n\n.apexcharts-yaxistooltip:after,\n.apexcharts-yaxistooltip:before {\n  top: 50%;\n  border: solid transparent;\n  content: " ";\n  height: 0;\n  width: 0;\n  position: absolute;\n  pointer-events: none\n}\n\n.apexcharts-yaxistooltip:after {\n  border-color: transparent;\n  border-width: 6px;\n  margin-top: -6px\n}\n\n.apexcharts-yaxistooltip:before {\n  border-color: transparent;\n  border-width: 7px;\n  margin-top: -7px\n}\n\n.apexcharts-yaxistooltip-left:after,\n.apexcharts-yaxistooltip-left:before {\n  left: 100%\n}\n\n.apexcharts-yaxistooltip-right:after,\n.apexcharts-yaxistooltip-right:before {\n  right: 100%\n}\n\n.apexcharts-yaxistooltip-left:after {\n  border-left-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-left:before {\n  border-left-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-left.apexcharts-theme-dark:before {\n  border-left-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip-right:after {\n  border-right-color: #eceff1\n}\n\n.apexcharts-yaxistooltip-right:before {\n  border-right-color: #90a4ae\n}\n\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:after,\n.apexcharts-yaxistooltip-right.apexcharts-theme-dark:before {\n  border-right-color: rgba(0, 0, 0, .5)\n}\n\n.apexcharts-yaxistooltip.apexcharts-active {\n  opacity: 1\n}\n\n.apexcharts-yaxistooltip-hidden {\n  display: none\n}\n\n.apexcharts-xcrosshairs,\n.apexcharts-ycrosshairs {\n  pointer-events: none;\n  opacity: 0;\n  transition: .15s ease all\n}\n\n.apexcharts-xcrosshairs.apexcharts-active,\n.apexcharts-ycrosshairs.apexcharts-active {\n  opacity: 1;\n  transition: .15s ease all\n}\n\n.apexcharts-ycrosshairs-hidden {\n  opacity: 0\n}\n\n.apexcharts-selection-rect {\n  cursor: move\n}\n\n.svg_select_shape {\n  stroke-width: 1;\n  stroke-dasharray: 10 10;\n  stroke: black;\n  stroke-opacity: 0.1;\n  pointer-events: none;\n  fill: none;\n}\n\n.svg_select_handle {\n  stroke-width: 3;\n  stroke: black;\n  fill: none;\n}\n\n.svg_select_handle_r {\n  cursor: e-resize;\n}\n\n.svg_select_handle_l {\n  cursor: w-resize;\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-zoom {\n  cursor: crosshair\n}\n\n.apexcharts-svg.apexcharts-zoomable.hovering-pan {\n  cursor: move\n}\n\n.apexcharts-menu-icon,\n.apexcharts-pan-icon,\n.apexcharts-reset-icon,\n.apexcharts-selection-icon,\n.apexcharts-toolbar-custom-icon,\n.apexcharts-zoom-icon,\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  cursor: pointer;\n  width: 20px;\n  height: 20px;\n  line-height: 24px;\n  color: #6e8192;\n  text-align: center\n}\n\n.apexcharts-menu-icon svg,\n.apexcharts-reset-icon svg,\n.apexcharts-zoom-icon svg,\n.apexcharts-zoomin-icon svg,\n.apexcharts-zoomout-icon svg {\n  fill: #6e8192\n}\n\n.apexcharts-selection-icon svg {\n  fill: #444;\n  transform: scale(.76)\n}\n\n.apexcharts-theme-dark .apexcharts-menu-icon svg,\n.apexcharts-theme-dark .apexcharts-pan-icon svg,\n.apexcharts-theme-dark .apexcharts-reset-icon svg,\n.apexcharts-theme-dark .apexcharts-selection-icon svg,\n.apexcharts-theme-dark .apexcharts-toolbar-custom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoom-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomin-icon svg,\n.apexcharts-theme-dark .apexcharts-zoomout-icon svg {\n  fill: #f3f4f5\n}\n\n.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected svg,\n.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected svg {\n  fill: #008ffb\n}\n\n.apexcharts-theme-light .apexcharts-menu-icon:hover svg,\n.apexcharts-theme-light .apexcharts-reset-icon:hover svg,\n.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover svg,\n.apexcharts-theme-light .apexcharts-zoomin-icon:hover svg,\n.apexcharts-theme-light .apexcharts-zoomout-icon:hover svg {\n  fill: #333\n}\n\n.apexcharts-menu-icon,\n.apexcharts-selection-icon {\n  position: relative\n}\n\n.apexcharts-reset-icon {\n  margin-left: 5px\n}\n\n.apexcharts-menu-icon,\n.apexcharts-reset-icon,\n.apexcharts-zoom-icon {\n  transform: scale(.85)\n}\n\n.apexcharts-zoomin-icon,\n.apexcharts-zoomout-icon {\n  transform: scale(.7)\n}\n\n.apexcharts-zoomout-icon {\n  margin-right: 3px\n}\n\n.apexcharts-pan-icon {\n  transform: scale(.62);\n  position: relative;\n  left: 1px;\n  top: 0\n}\n\n.apexcharts-pan-icon svg {\n  fill: #fff;\n  stroke: #6e8192;\n  stroke-width: 2\n}\n\n.apexcharts-pan-icon.apexcharts-selected svg {\n  stroke: #008ffb\n}\n\n.apexcharts-pan-icon:not(.apexcharts-selected):hover svg {\n  stroke: #333\n}\n\n.apexcharts-toolbar {\n  position: absolute;\n  z-index: 11;\n  max-width: 176px;\n  text-align: right;\n  border-radius: 3px;\n  padding: 0 6px 2px;\n  display: flex;\n  justify-content: space-between;\n  align-items: center\n}\n\n.apexcharts-menu {\n  background: #fff;\n  position: absolute;\n  top: 100%;\n  border: 1px solid #ddd;\n  border-radius: 3px;\n  padding: 3px;\n  right: 10px;\n  opacity: 0;\n  min-width: 110px;\n  transition: .15s ease all;\n  pointer-events: none\n}\n\n.apexcharts-menu.apexcharts-menu-open {\n  opacity: 1;\n  pointer-events: all;\n  transition: .15s ease all\n}\n\n.apexcharts-menu-item {\n  padding: 6px 7px;\n  font-size: 12px;\n  cursor: pointer\n}\n\n.apexcharts-theme-light .apexcharts-menu-item:hover {\n  background: #eee\n}\n\n.apexcharts-theme-dark .apexcharts-menu {\n  background: rgba(0, 0, 0, .7);\n  color: #fff\n}\n\n@media screen and (min-width:768px) {\n  .apexcharts-canvas:hover .apexcharts-toolbar {\n    opacity: 1\n  }\n}\n\n.apexcharts-canvas .apexcharts-element-hidden,\n.apexcharts-datalabel.apexcharts-element-hidden,\n.apexcharts-hide .apexcharts-series-points {\n  opacity: 0;\n}\n\n.apexcharts-hidden-element-shown {\n  opacity: 1;\n  transition: 0.25s ease all;\n}\n\n.apexcharts-datalabel,\n.apexcharts-datalabel-label,\n.apexcharts-datalabel-value,\n.apexcharts-datalabels,\n.apexcharts-pie-label {\n  cursor: default;\n  pointer-events: none\n}\n\n.apexcharts-pie-label-delay {\n  opacity: 0;\n  animation-name: opaque;\n  animation-duration: .3s;\n  animation-fill-mode: forwards;\n  animation-timing-function: ease\n}\n\n.apexcharts-radialbar-label {\n  cursor: pointer;\n}\n\n.apexcharts-annotation-rect,\n.apexcharts-area-series .apexcharts-area,\n.apexcharts-gridline,\n.apexcharts-line,\n.apexcharts-point-annotation-label,\n.apexcharts-radar-series path:not(.apexcharts-marker),\n.apexcharts-radar-series polygon,\n.apexcharts-toolbar svg,\n.apexcharts-tooltip .apexcharts-marker,\n.apexcharts-xaxis-annotation-label,\n.apexcharts-yaxis-annotation-label,\n.apexcharts-zoom-rect,\n.no-pointer-events {\n  pointer-events: none\n}\n\n.apexcharts-tooltip-active .apexcharts-marker {\n  transition: .15s ease all\n}\n\n.apexcharts-radar-series .apexcharts-yaxis {\n  pointer-events: none;\n}\n\n.resize-triggers {\n  animation: 1ms resizeanim;\n  visibility: hidden;\n  opacity: 0;\n  height: 100%;\n  width: 100%;\n  overflow: hidden\n}\n\n.contract-trigger:before,\n.resize-triggers,\n.resize-triggers>div {\n  content: " ";\n  display: block;\n  position: absolute;\n  top: 0;\n  left: 0\n}\n\n.resize-triggers>div {\n  height: 100%;\n  width: 100%;\n  background: #eee;\n  overflow: auto\n}\n\n.contract-trigger:before {\n  overflow: hidden;\n  width: 200%;\n  height: 200%\n}\n\n.apexcharts-bar-goals-markers {\n  pointer-events: none\n}\n\n.apexcharts-bar-shadows {\n  pointer-events: none\n}\n\n.apexcharts-rangebar-goals-markers {\n  pointer-events: none\n}\n\n.apexcharts-disable-transitions * {\n  transition: none !important;\n}';var c=(null===(l=e.opts.chart)||void 0===l?void 0:l.nonce)||e.w.config.chart.nonce;c&&o.setAttribute("nonce",c),s?a.prepend(o):!1!==e.w.config.chart.injectStyleSheet&&n.head.appendChild(o)}var d=e.create(e.w.config.series,{});if(!d)return t(e);e.mount(d).then(function(){"function"==typeof e.w.config.chart.events.mounted&&e.w.config.chart.events.mounted(e,e.w),e.events.fireEvent("mounted",[e,e.w]),t(d)}).catch(function(e){i(e)})}else i(new Error("Element not found"))})}},{key:"create",value:function(e,t){var i=this,r=this.w;new oa(this).initModules();var a=this.w.globals;if(a.noData=!1,a.animationEnded=!1,!w.elementExists(this.el))return a.animationEnded=!0,null;if(this.responsive.checkResponsiveConfig(t),r.config.xaxis.convertedCatToNumeric&&new Yi(r.config).convertCatToNumericXaxis(r.config,this.ctx),this.core.setupElements(),"treemap"===r.config.chart.type&&(r.config.grid.show=!1,r.config.yaxis[0].show=!1),0===a.svgWidth)return a.animationEnded=!0,null;var s=e;e.forEach(function(e,t){e.hidden&&(s=i.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:t}))});var n=Bi.checkComboSeries(s,r.config.chart.type);a.comboCharts=n.comboCharts,a.comboBarCount=n.comboBarCount;var o=s.every(function(e){return e.data&&0===e.data.length});(0===s.length||o&&a.collapsedSeries.length<1)&&this.series.handleNoData(),this.events.setupEventHandlers(),this.data.parseData(s),this.theme.init(),new Ui(this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),a.noData&&a.collapsedSeries.length!==a.series.length&&!r.config.legend.showForSingleSeries||this.legend.init(),this.series.hasAllSeriesEqualX(),a.axisCharts&&(this.core.coreCalculations(),"category"!==r.config.xaxis.type&&this.formatters.setLabelFormatters(),this.ctx.toolbar.minX=r.globals.minX,this.ctx.toolbar.maxX=r.globals.maxX),this.formatters.heatmapLabelFormatters(),new Bi(this).getLargestMarkerSize(),this.dimensions.plotCoords();var l=this.core.xySettings();this.grid.createGridMask();var c=this.core.plotChartType(s,l),d=new Vi(this);return d.bringForward(),r.config.dataLabels.background.enabled&&d.dataLabelsBackground(),this.core.shiftGraphPosition(),r.globals.dataPoints>50&&r.globals.dom.elWrap.classList.add("apexcharts-disable-transitions"),{elGraph:c,xyRatios:l,dimensions:{plot:{left:r.globals.translateX,top:r.globals.translateY,width:r.globals.gridWidth,height:r.globals.gridHeight}}}}},{key:"mount",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=this,r=i.w;return new Promise(function(a,s){if(null===i.el)return s(new Error("Not enough data to display or target element not found"));(null===t||r.globals.allSeriesCollapsed)&&i.series.handleNoData(),i.grid=new er(i);var n,o,l=i.grid.drawGrid();if(i.annotations=new Hi(i),i.annotations.drawImageAnnos(),i.annotations.drawTextAnnos(),"back"===r.config.grid.position&&(l&&r.globals.dom.elGraphical.add(l.el),null!=l&&null!==(n=l.elGridBorders)&&void 0!==n&&n.node&&r.globals.dom.elGraphical.add(l.elGridBorders)),Array.isArray(t.elGraph))for(var c=0;c<t.elGraph.length;c++)r.globals.dom.elGraphical.add(t.elGraph[c]);else r.globals.dom.elGraphical.add(t.elGraph);"front"===r.config.grid.position&&(l&&r.globals.dom.elGraphical.add(l.el),null!=l&&null!==(o=l.elGridBorders)&&void 0!==o&&o.node&&r.globals.dom.elGraphical.add(l.elGridBorders)),"front"===r.config.xaxis.crosshairs.position&&i.crosshairs.drawXCrosshairs(),"front"===r.config.yaxis[0].crosshairs.position&&i.crosshairs.drawYCrosshairs(),"treemap"!==r.config.chart.type&&i.axes.drawAxis(r.config.chart.type,l);var d=new Ki(e.ctx,l),h=new rr(e.ctx,l);if(null!==l&&(d.xAxisLabelCorrections(l.xAxisTickWidth),h.setYAxisTextAlignments(),r.config.yaxis.map(function(e,t){-1===r.globals.ignoreYAxisIndexes.indexOf(t)&&h.yAxisTitleRotate(t,e.opposite)})),i.annotations.drawAxesAnnotations(),!r.globals.noData){if(r.config.tooltip.enabled&&!r.globals.noData&&i.w.globals.tooltip.drawTooltip(t.xyRatios),r.globals.axisCharts&&(r.globals.isXNumeric||r.config.xaxis.convertedCatToNumeric||r.globals.isRangeBar))(r.config.chart.zoom.enabled||r.config.chart.selection&&r.config.chart.selection.enabled||r.config.chart.pan&&r.config.chart.pan.enabled)&&i.zoomPanSelection.init({xyRatios:t.xyRatios});else{var u=r.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(function(e){u[e]=!1})}r.config.chart.toolbar.show&&!r.globals.allSeriesCollapsed&&i.toolbar.createToolbar()}r.globals.memory.methodsToExec.length>0&&r.globals.memory.methodsToExec.forEach(function(e){e.method(e.params,!1,e.context)}),r.globals.axisCharts||r.globals.noData||i.core.resizeNonAxisCharts(),a(i)})}},{key:"destroy",value:function(){window.removeEventListener("resize",this.windowResizeHandler),function(e,t){var i=ca.get(t);i&&(i.disconnect(),ca.delete(t))}(this.el.parentNode,this.parentResizeHandler);var e=this.w.config.chart.id;e&&Apex._chartInstances.forEach(function(t,i){t.id===w.escapeString(e)&&Apex._chartInstances.splice(i,1)}),new la(this.ctx).clear({isUpdating:!1})}},{key:"updateOptions",value:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],s=!(arguments.length>4&&void 0!==arguments[4])||arguments[4],n=this.w;return n.globals.selection=void 0,this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(e)?this:(e.series&&(this.data.resetParsingFlags(),this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map(function(e,i){return t.updateHelpers._extendSeries(e,i)})),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),n.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,i,r,a,s))}},{key:"updateSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];return this.data.resetParsingFlags(),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,i)}},{key:"appendSeries",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this.data.resetParsingFlags();var r=this.w.config.series.slice();return r.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(r,t,i)}},{key:"appendData",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this;i.data.resetParsingFlags(),i.w.globals.dataChanged=!0,i.series.getPreviousPaths();for(var r=i.w.config.series.slice(),a=0;a<r.length;a++)if(null!==e[a]&&void 0!==e[a])for(var s=0;s<e[a].data.length;s++)r[a].data.push(e[a].data[s]);return i.w.config.series=r,t&&(i.w.globals.initialSeries=w.clone(i.w.config.series)),this.update()}},{key:"update",value:function(e){var t=this;return new Promise(function(i,r){if(t.lastUpdateOptions&&JSON.stringify(t.lastUpdateOptions)===JSON.stringify(e))return i(t);t.lastUpdateOptions=w.clone(e),new la(t.ctx).clear({isUpdating:!0});var a=t.create(t.w.config.series,e);if(!a)return i(t);t.mount(a).then(function(){"function"==typeof t.w.config.chart.events.updated&&t.w.config.chart.events.updated(t,t.w),t.events.fireEvent("updated",[t,t.w]),t.w.globals.isDirty=!0,i(t)}).catch(function(e){r(e)})})}},{key:"getSyncedCharts",value:function(){var e=this.getGroupedCharts(),t=[this];return e.length&&(t=[],e.forEach(function(e){t.push(e)})),t}},{key:"getGroupedCharts",value:function(){var e=this;return Apex._chartInstances.filter(function(e){if(e.group)return!0}).map(function(t){return e.w.config.chart.group===t.group?t.chart:e})}},{key:"toggleSeries",value:function(e){return this.series.toggleSeries(e)}},{key:"highlightSeriesOnLegendHover",value:function(e,t){return this.series.toggleSeriesOnHover(e,t)}},{key:"showSeries",value:function(e){this.series.showSeries(e)}},{key:"hideSeries",value:function(e){this.series.hideSeries(e)}},{key:"highlightSeries",value:function(e){this.series.highlightSeries(e)}},{key:"isSeriesHidden",value:function(e){this.series.isSeriesHidden(e)}},{key:"resetSeries",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.series.resetSeries(e,t)}},{key:"addEventListener",value:function(e,t){this.events.addEventListener(e,t)}},{key:"removeEventListener",value:function(e,t){this.events.removeEventListener(e,t)}},{key:"addXaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;i&&(r=i),r.annotations.addXaxisAnnotationExternal(e,t,r)}},{key:"addYaxisAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;i&&(r=i),r.annotations.addYaxisAnnotationExternal(e,t,r)}},{key:"addPointAnnotation",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=this;i&&(r=i),r.annotations.addPointAnnotationExternal(e,t,r)}},{key:"clearAnnotations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=this;e&&(t=e),t.annotations.clearAnnotations(t)}},{key:"removeAnnotation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0,i=this;t&&(i=t),i.annotations.removeAnnotation(i,e)}},{key:"getChartArea",value:function(){return this.w.globals.dom.baseEl.querySelector(".apexcharts-inner")}},{key:"getSeriesTotalXRange",value:function(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}},{key:"getHighestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new ir(this.ctx).getMinYMaxY(e).highestY}},{key:"getLowestValueInSeries",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return new ir(this.ctx).getMinYMaxY(e).lowestY}},{key:"getSeriesTotal",value:function(){return this.w.globals.seriesTotals}},{key:"toggleDataPointSelection",value:function(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}},{key:"zoomX",value:function(e,t){this.ctx.toolbar.zoomUpdateOptions(e,t)}},{key:"setLocale",value:function(e){this.localization.setCurrentLocaleValues(e)}},{key:"dataURI",value:function(e){return new Ji(this.ctx).dataURI(e)}},{key:"getSvgString",value:function(e){return new Ji(this.ctx).getSvgString(e)}},{key:"exportToCSV",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Ji(this.ctx).exportToCSV(e)}},{key:"paper",value:function(){return this.w.globals.dom.Paper}},{key:"_parentResizeCallback",value:function(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}},{key:"_windowResize",value:function(){var e=this;clearTimeout(this.w.globals.resizeTimer),this.w.globals.resizeTimer=window.setTimeout(function(){e.w.globals.resized=!0,e.w.globals.dataChanged=!1,e.ctx.update()},150)}},{key:"_windowResizeHandler",value:function(){var e=this.w.config.chart.redrawOnWindowResize;"function"==typeof e&&(e=e()),e&&this._windowResize()}}],[{key:"getChartByID",value:function(e){var t=w.escapeString(e);if(Apex._chartInstances){var i=Apex._chartInstances.filter(function(e){return e.id===t})[0];return i&&i.chart}}},{key:"initOnLoad",value:function(){for(var t=document.querySelectorAll("[data-apexcharts]"),i=0;i<t.length;i++)new e(t[i],JSON.parse(t[i].getAttribute("data-options"))).render()}},{key:"exec",value:function(e,t){var i=this.getChartByID(e);if(i){i.w.globals.isExecCalled=!0;var r=null;if(-1!==i.publicMethods.indexOf(t)){for(var a=arguments.length,s=new Array(a>2?a-2:0),n=2;n<a;n++)s[n-2]=arguments[n];r=i[t].apply(i,s)}return r}}},{key:"merge",value:function(e,t){return w.extend(e,t)}},{key:"getThemePalettes",value:function(){return{palette1:["#008FFB","#00E396","#FEB019","#FF4560","#775DD0"],palette2:["#3F51B5","#03A9F4","#4CAF50","#F9CE1D","#FF9800"],palette3:["#33B2DF","#546E7A","#D4526E","#13D8AA","#A5978B"],palette4:["#4ECDC4","#C7F464","#81D4FA","#FD6A6A","#546E7A"],palette5:["#2B908F","#F9A3A4","#90EE7E","#FA4443","#69D2E7"],palette6:["#449DD1","#F86624","#EA3546","#662E9B","#C5D86D"],palette7:["#D7263D","#1B998B","#2E294E","#F46036","#E2C044"],palette8:["#662E9B","#F86624","#F9C80E","#EA3546","#43BCCD"],palette9:["#5C4742","#A5978B","#8D5B4C","#5A2A27","#C4BBAF"],palette10:["#A300D6","#7D02EB","#5653FE","#2983FF","#00B1F2"]}}}]),e}()},71089:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addClassName=c,t.addEvent=function(e,t,i,r){if(!e)return;const a={capture:!0,...r};e.addEventListener?e.addEventListener(t,i,a):e.attachEvent?e.attachEvent("on"+t,i):e["on"+t]=i},t.addUserSelectStyles=function(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=".react-draggable-transparent-selection *::-moz-selection {all: inherit;}\n",t.innerHTML+=".react-draggable-transparent-selection *::selection {all: inherit;}\n",e.getElementsByTagName("head")[0].appendChild(t)),e.body&&c(e.body,"react-draggable-transparent-selection")},t.createCSSTransform=function(e,t){const i=o(e,t,"px");return{[(0,a.browserPrefixToKey)("transform",a.default)]:i}},t.createSVGTransform=function(e,t){return o(e,t,"")},t.getTouch=function(e,t){return e.targetTouches&&(0,r.findInArray)(e.targetTouches,e=>t===e.identifier)||e.changedTouches&&(0,r.findInArray)(e.changedTouches,e=>t===e.identifier)},t.getTouchIdentifier=function(e){return e.targetTouches&&e.targetTouches[0]?e.targetTouches[0].identifier:e.changedTouches&&e.changedTouches[0]?e.changedTouches[0].identifier:void 0},t.getTranslation=o,t.innerHeight=function(e){let t=e.clientHeight;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(i.paddingTop),t-=(0,r.int)(i.paddingBottom),t},t.innerWidth=function(e){let t=e.clientWidth;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,r.int)(i.paddingLeft),t-=(0,r.int)(i.paddingRight),t},t.matchesSelector=n,t.matchesSelectorAndParentsTo=function(e,t,i){let r=e;do{if(n(r,t))return!0;if(r===i)return!1;r=r.parentNode}while(r);return!1},t.offsetXYFromParent=function(e,t,i){const r=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect();return{x:(e.clientX+t.scrollLeft-r.left)/i,y:(e.clientY+t.scrollTop-r.top)/i}},t.outerHeight=function(e){let t=e.clientHeight;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(i.borderTopWidth),t+=(0,r.int)(i.borderBottomWidth),t},t.outerWidth=function(e){let t=e.clientWidth;const i=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,r.int)(i.borderLeftWidth),t+=(0,r.int)(i.borderRightWidth),t},t.removeClassName=d,t.removeEvent=function(e,t,i,r){if(!e)return;const a={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,i,a):e.detachEvent?e.detachEvent("on"+t,i):e["on"+t]=null},t.scheduleRemoveUserSelectStyles=function(e){window.requestAnimationFrame?window.requestAnimationFrame(()=>{l(e)}):l(e)};var r=i(77056),a=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var i,r,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t){if(i.has(e))return i.get(e);i.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(a,t,r):a[t]=e[t]);return a}(e)}(i(33514));let s="";function n(e,t){return s||(s=(0,r.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(t){return(0,r.isFunction)(e[t])})),!!(0,r.isFunction)(e[s])&&e[s](t)}function o(e,t,i){let{x:r,y:a}=e,s=`translate(${r}${i},${a}${i})`;return t&&(s=`translate(${"string"==typeof t.x?t.x:t.x+i}, ${"string"==typeof t.y?t.y:t.y+i})`+s),s}function l(e){if(e)try{if(e.body&&d(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&"Caret"!==t.type&&t.removeAllRanges()}}catch(e){}}function c(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp(`(?:^|\\s)${t}(?!\\S)`))||(e.className+=` ${t}`)}function d(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp(`(?:^|\\s)${t}(?!\\S)`,"g"),"")}},71508:e=>{function t(e){var i,r,a="";if("string"==typeof e||"number"==typeof e)a+=e;else if("object"==typeof e)if(Array.isArray(e)){var s=e.length;for(i=0;i<s;i++)e[i]&&(r=t(e[i]))&&(a&&(a+=" "),a+=r)}else for(r in e)e[r]&&(a&&(a+=" "),a+=r);return a}function i(){for(var e,i,r=0,a="",s=arguments.length;r<s;r++)(e=arguments[r])&&(i=t(e))&&(a&&(a+=" "),a+=i);return a}e.exports=i,e.exports.clsx=i},72384:(e,t,i)=>{"use strict";i.d(t,{A_:()=>c,Bs:()=>o,yc:()=>l});var r=i(83845),a=i(4425),s=i(86038),n=i(67749);const o={id:"restartWeb",displayName:"Restart web server",access:s.US.ADMIN,icon:a.A.REFRESH_COLORED,confirmation:{content:"When changing the binding options, it's recommended to restart the web server only \n                when you are able to access the server for troubleshooting. If                  the web server won't come back online, you should start the application \n                manually to see if there are any error messages. The configuration file is located in your                 user directory by default (inside .airdc++ directory) in case you need to edit it manually.",approveCaption:"Continue and restart",rejectCaption:"Don't restart"},handler:({socket:e})=>e.post(r.A.MODULE_URL+"/restart_web")},l={id:"shutdown",displayName:"Shut down application",access:s.US.ADMIN,icon:a.A.POWER,confirmation:{content:"Are you sure that you wish to shut down the application?",approveCaption:"Continue and shut down",rejectCaption:"Cancel"},handler:({socket:e})=>e.post(r.A.MODULE_URL+"/shutdown")},c={moduleId:n.KV.COMMON,subId:"system"}},72590:e=>{e.exports=function(e,t,i){return e===t||e.className===t.className&&i(e.style,t.style)&&e.width===t.width&&e.autoSize===t.autoSize&&e.cols===t.cols&&e.draggableCancel===t.draggableCancel&&e.draggableHandle===t.draggableHandle&&i(e.verticalCompact,t.verticalCompact)&&i(e.compactType,t.compactType)&&i(e.layout,t.layout)&&i(e.margin,t.margin)&&i(e.containerPadding,t.containerPadding)&&e.rowHeight===t.rowHeight&&e.maxRows===t.maxRows&&e.isBounded===t.isBounded&&e.isDraggable===t.isDraggable&&e.isResizable===t.isResizable&&e.allowOverlap===t.allowOverlap&&e.preventCollision===t.preventCollision&&e.useCSSTransforms===t.useCSSTransforms&&e.transformScale===t.transformScale&&e.isDroppable===t.isDroppable&&i(e.resizeHandles,t.resizeHandles)&&i(e.resizeHandle,t.resizeHandle)&&e.onLayoutChange===t.onLayoutChange&&e.onDragStart===t.onDragStart&&e.onDrag===t.onDrag&&e.onDragStop===t.onDragStop&&e.onResizeStart===t.onResizeStart&&e.onResize===t.onResize&&e.onResizeStop===t.onResizeStop&&e.onDrop===t.onDrop&&i(e.droppingItem,t.droppingItem)&&i(e.innerRef,t.innerRef)}},76865:(e,t,i)=>{"use strict";i.d(t,{A:()=>a});const r="web_users",a={MODULE_URL:r,USERS_URL:r,ADDED:"web_user_added",UPDATED:"web_user_updated",REMOVED:"web_user_removed"}},77056:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dontSetMe=function(e,t,i){if(e[t])return new Error(`Invalid prop ${t} passed to ${i} - do not set this, set it on the child.`)},t.findInArray=function(e,t){for(let i=0,r=e.length;i<r;i++)if(t.apply(t,[e[i],i,e]))return e[i]},t.int=function(e){return parseInt(e,10)},t.isFunction=function(e){return"function"==typeof e||"[object Function]"===Object.prototype.toString.call(e)},t.isNum=function(e){return"number"==typeof e&&!isNaN(e)}},80634:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resizeHandleType=t.resizeHandleAxesType=t.default=void 0;var r=s(i(5556)),a=s(i(96540));function s(e){return e&&e.__esModule?e:{default:e}}const n=t.resizeHandleAxesType=r.default.arrayOf(r.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),o=t.resizeHandleType=r.default.oneOfType([r.default.node,r.default.func]);t.default={className:r.default.string,style:r.default.object,width:r.default.number,autoSize:r.default.bool,cols:r.default.number,draggableCancel:r.default.string,draggableHandle:r.default.string,verticalCompact:function(e){e.verticalCompact},compactType:r.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;void 0!==t&&i(38426).validateLayout(t,"layout")},margin:r.default.arrayOf(r.default.number),containerPadding:r.default.arrayOf(r.default.number),rowHeight:r.default.number,maxRows:r.default.number,isBounded:r.default.bool,isDraggable:r.default.bool,isResizable:r.default.bool,allowOverlap:r.default.bool,preventCollision:r.default.bool,useCSSTransforms:r.default.bool,transformScale:r.default.number,isDroppable:r.default.bool,resizeHandles:n,resizeHandle:o,onLayoutChange:r.default.func,onDragStart:r.default.func,onDrag:r.default.func,onDragStop:r.default.func,onResizeStart:r.default.func,onResize:r.default.func,onResizeStop:r.default.func,onDrop:r.default.func,droppingItem:r.default.shape({i:r.default.string.isRequired,w:r.default.number.isRequired,h:r.default.number.isRequired}),children:function(e,t){const i=e[t],r={};a.default.Children.forEach(i,function(e){if(null!=e?.key){if(r[e.key])throw new Error('Duplicate child key "'+e.key+'" found! This will cause problems in ReactGridLayout.');r[e.key]=!0}})},innerRef:r.default.any}},81726:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canDragX=function(e){return"both"===e.props.axis||"x"===e.props.axis},t.canDragY=function(e){return"both"===e.props.axis||"y"===e.props.axis},t.createCoreData=function(e,t,i){const a=!(0,r.isNum)(e.lastX),n=s(e);return a?{node:n,deltaX:0,deltaY:0,lastX:t,lastY:i,x:t,y:i}:{node:n,deltaX:t-e.lastX,deltaY:i-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:i}},t.createDraggableData=function(e,t){const i=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/i,y:e.state.y+t.deltaY/i,deltaX:t.deltaX/i,deltaY:t.deltaY/i,lastX:e.state.x,lastY:e.state.y}},t.getBoundPosition=function(e,t,i){if(!e.props.bounds)return[t,i];let{bounds:n}=e.props;n="string"==typeof n?n:function(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}(n);const o=s(e);if("string"==typeof n){const{ownerDocument:e}=o,t=e.defaultView;let i;if(i="parent"===n?o.parentNode:o.getRootNode().querySelector(n),!(i instanceof t.HTMLElement))throw new Error('Bounds selector "'+n+'" could not find an element.');const s=i,l=t.getComputedStyle(o),c=t.getComputedStyle(s);n={left:-o.offsetLeft+(0,r.int)(c.paddingLeft)+(0,r.int)(l.marginLeft),top:-o.offsetTop+(0,r.int)(c.paddingTop)+(0,r.int)(l.marginTop),right:(0,a.innerWidth)(s)-(0,a.outerWidth)(o)-o.offsetLeft+(0,r.int)(c.paddingRight)-(0,r.int)(l.marginRight),bottom:(0,a.innerHeight)(s)-(0,a.outerHeight)(o)-o.offsetTop+(0,r.int)(c.paddingBottom)-(0,r.int)(l.marginBottom)}}return(0,r.isNum)(n.right)&&(t=Math.min(t,n.right)),(0,r.isNum)(n.bottom)&&(i=Math.min(i,n.bottom)),(0,r.isNum)(n.left)&&(t=Math.max(t,n.left)),(0,r.isNum)(n.top)&&(i=Math.max(i,n.top)),[t,i]},t.getControlPosition=function(e,t,i){const r="number"==typeof t?(0,a.getTouch)(e,t):null;if("number"==typeof t&&!r)return null;const n=s(i),o=i.props.offsetParent||n.offsetParent||n.ownerDocument.body;return(0,a.offsetXYFromParent)(r||e,o,i.props.scale)},t.snapToGrid=function(e,t,i){return[Math.round(t/e[0])*e[0],Math.round(i/e[1])*e[1]]};var r=i(77056),a=i(71089);function s(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}},82134:(e,t)=>{"use strict";function i(e){const{margin:t,containerPadding:i,containerWidth:r,cols:a}=e;return(r-t[0]*(a-1)-2*i[0])/a}function r(e,t,i){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*i):e}function a(e,t,i){return Math.max(Math.min(e,i),t)}Object.defineProperty(t,"__esModule",{value:!0}),t.calcGridColWidth=i,t.calcGridItemPosition=function(e,t,a,s,n,o){const{margin:l,containerPadding:c,rowHeight:d}=e,h=i(e),u={};return o&&o.resizing?(u.width=Math.round(o.resizing.width),u.height=Math.round(o.resizing.height)):(u.width=r(s,h,l[0]),u.height=r(n,d,l[1])),o&&o.dragging?(u.top=Math.round(o.dragging.top),u.left=Math.round(o.dragging.left)):o&&o.resizing&&"number"==typeof o.resizing.top&&"number"==typeof o.resizing.left?(u.top=Math.round(o.resizing.top),u.left=Math.round(o.resizing.left)):(u.top=Math.round((d+l[1])*a+c[1]),u.left=Math.round((h+l[0])*t+c[0])),u},t.calcGridItemWHPx=r,t.calcWH=function(e,t,r,s,n,o){const{margin:l,maxRows:c,cols:d,rowHeight:h}=e,u=i(e);let g=Math.round((t+l[0])/(u+l[0])),p=Math.round((r+l[1])/(h+l[1])),f=a(g,0,d-s),b=a(p,0,c-n);return-1!==["sw","w","nw"].indexOf(o)&&(f=a(g,0,d)),-1!==["nw","n","ne"].indexOf(o)&&(b=a(p,0,c)),{w:f,h:b}},t.calcXY=function(e,t,r,s,n){const{margin:o,containerPadding:l,cols:c,rowHeight:d,maxRows:h}=e,u=i(e);let g=Math.round((r-l[0])/(u+o[0])),p=Math.round((t-l[1])/(d+o[1]));return g=a(g,0,c-s),p=a(p,0,h-n),{x:g,y:p}},t.clamp=a},85240:(e,t,i)=>{"use strict";i.r(t),i.d(t,{default:()=>Yi});var r=i(74848),a=i(96540),s=i(42049),n=i(59250),o=i(32728);const l=()=>isDemoInstance()?(0,r.jsx)(o.A,{title:"Welcome to AirDC++ Web Demo",description:(0,r.jsxs)("div",{className:"demo-message",children:[(0,r.jsx)("p",{children:"Edit permissions are limited in order to keep the content somewhat persistent."}),(0,r.jsx)("p",{children:"Note that this is a locally installed application that is usually run by a single user. Most changes, such as browsing of filelists, are propagated to all active sessions."}),(0,r.jsxs)("p",{children:["Please visit the"," ",(0,r.jsx)(s.A,{url:n.A.HOME_PAGE_URL,children:"home page"})," for more information about the client and its features."]})]})}):null;var c=i(98397),d=i(13017),h=i(68514),u=i(62048),g=i(4425),p=i(78062),f=i(19718),b=i(86038),m=i(67749);const x={id:"newUserIntroSeen",displayName:"Close and don't show again",access:b.US.SETTINGS_EDIT,icon:g.A.SAVE_COLORED,handler:({socket:e,appStore:t})=>(t.login.onNewUserIntroSeen(),e.post(f.Ay.ITEMS_SET_URL,{[p.A.WIZARD_PENDING]:!1}))},v={moduleId:m.KV.COMMON,subId:"login"};var y=i(39364),A=i(32389),w=i(42695);const k=()=>(0,y.wV)().wizard_pending?(0,r.jsx)(o.A,{title:(0,r.jsx)(A.x6,{i18nKey:(0,w.j2)("newUserIntro",m.KV.HOME),children:"Information for new user"}),description:(0,r.jsxs)("div",{className:"new-user-message",children:[(0,r.jsxs)(A.x6,{i18nKey:(0,w.j2)("newUserIntroDesc",m.KV.HOME),children:[(0,r.jsxs)("ul",{children:[(0,r.jsxs)("li",{children:["Add a few directories that are shared to other users from the ",(0,r.jsx)(d.N_,{to:"/share",children:"Share"})," page."]}),(0,r.jsxs)("li",{children:["You might want to go through at least each main page of ",(0,r.jsx)(d.N_,{to:"/settings",children:"the client settings"})," before you start.  ",(0,r.jsxs)("strong",{children:["It's important that you ",(0,r.jsx)(d.N_,{to:"/settings/speed-limits/speed",children:"configure your connection speed"})," correctly because the client won't be able to utilize your bandwidth efficiently otherwise."]})]}),(0,r.jsx)("li",{children:"There is no listing of public hubs yet so you need to know the hub addresses where you wish to connect to."})]}),(0,r.jsxs)("p",{children:["Visit the ",(0,r.jsx)(s.A,{url:n.A.HOME_PAGE_URL,children:"home page"})," for more information about the client and its features."]}),(0,r.jsxs)("p",{children:["If you have questions, you may post them on the ",(0,r.jsx)(s.A,{url:n.A.ISSUE_TRACKER_URL,children:"GitHub tracker"})," or join the dev/support hub: ",(0,r.jsx)(u.PW,{text:n.A.DEV_HUB_URL})]})]}),(0,r.jsx)(h.A,{action:x,moduleData:v})]})}):null;var C=i(20311),S=i.n(C),E=i(66816),D=i(38461),B=i(8098);const L=e=>`widget_${e}`,T=e=>`${L(e)}_state`,P=(e,t)=>{const i=(e=>{const t=e.indexOf("_");return-1!==t?e.substring(0,t):e})(e);return t.find(e=>e.typeId===i)},M=(e,t)=>(0,w.lw)(t,[m.KV.WIDGETS,e.typeId]),I=(e,t)=>t((0,w.j2)("widgetName",[m.KV.WIDGETS,e.typeId]),e.name),R={name:"",widget:{}},z=(e,t)=>{const i=(0,B.H5)(L(e),R);return t&&t.formSettings&&t.formSettings.forEach(e=>{i.widget.hasOwnProperty(e.key)||(i.widget[e.key]=e.default_value)}),i},O=(e,t)=>{(0,B.MS)(L(e),t)};var N=i(1076),H=i(90425),F=i(27725),_=i(17911);const Y={id:"create",displayName:"Add widget",icon:g.A.CREATE,handler:({itemData:e,navigate:t})=>{t(`/home/widget/${e.typeId}`)}},X={id:"edit",displayName:"Edit widget",icon:g.A.EDIT,handler:({itemData:{id:e,widgetInfo:t},navigate:i})=>{i(`/home/widget/${t.typeId}/${e}`)}},W={id:"remove",displayName:"Remove widget",filter:({itemData:{widgetInfo:e}})=>!e.alwaysShow,icon:g.A.REMOVE,confirmation:{content:"Are you sure that you want to remove the widget {{item.settings.name}}?",approveCaption:"Remove widget",rejectCaption:"Don't remove"},handler:({itemData:{id:e,layoutStore:t}})=>{t.removeWidget(e)}},q={moduleId:m.KV.WIDGETS},j={moduleData:q,actions:{edit:X,remove:W}},U=({componentId:e,widgetT:t})=>(0,r.jsx)(H.A,{caption:t.translate("Add widget..."),className:"create-widget",button:!0,contextElement:`.${e}`,children:(0,r.jsx)(_.M,{children:({onClickAction:e})=>li.filter(e=>!e.alwaysShow).map(i=>((e,t,i)=>(0,r.jsx)(F.A,{onClick:()=>i({action:Y,itemData:e,moduleData:q,entity:void 0}),icon:e.icon,children:I(e,t)},e.typeId))(i,t.plainT,e))})});var G=i(83845),V=i(2253),Z=i(85072),$=i.n(Z),Q=i(97825),J=i.n(Q),K=i(77659),ee=i.n(K),te=i(55056),ie=i.n(te),re=i(10540),ae=i.n(re),se=i(41113),ne=i.n(se),oe=i(67468),le={};le.styleTagTransform=ne(),le.setAttributes=ie(),le.insert=ee().bind(null,"head"),le.domAPI=J(),le.insertStyleElement=ae(),$()(oe.A,le),oe.A&&oe.A.locals&&oe.A.locals;var ce=i(74416);const de=(0,N.A)(({stats:e,widgetT:t})=>{const{system_info:i,user:a}=(0,y.wV)(),{formatRelativeTime:s}=(0,ce.k)();return(0,r.jsxs)("div",{className:"ui list",children:[(0,r.jsx)(V.c,{header:t.translate("Logged in as"),description:a.username}),(0,r.jsx)(V.c,{header:t.translate("Client started"),description:s(i.client_started)}),(0,r.jsx)(V.c,{header:t.translate("Active sessions"),description:e.active_sessions})]})},G.A.STATS_URL,null,10);class he extends a.PureComponent{render(){const{widgetT:e}=this.props;return(0,r.jsxs)("div",{className:"application-container",children:[(0,r.jsx)(de,{widgetT:e}),(0,r.jsx)(U,{componentId:this.props.componentId,widgetT:e})]})}}const ue=he;var ge=i(18536);const pe={typeId:"application",component:ue,name:"Application",icon:"blue info",alwaysShow:!0,size:{w:2,h:5,minW:2,minH:4},actionMenu:{actions:{actions:{shutdown:ge.yc},moduleData:ge.A_}}};var fe=i(95093),be=i.n(fe),me=i(30271),xe=i(15911);const ve=({packageInfo:e,moduleT:t})=>{const i=t.t("updatedAgo",{defaultValue:"Updated {{date}}",replace:{version:e.version,date:be()(e.date).from(be()())}});return(0,r.jsx)(r.Fragment,{children:i})},ye=({npmPackage:e,installedPackage:t,moduleT:i})=>{const a=!!t&&(0,xe.Z)(t.version,e.version)<0;return(0,r.jsxs)("div",{className:"item extension",children:[(0,r.jsx)(me.A,{installedPackage:t,hasUpdate:a,size:"big"}),(0,r.jsxs)("div",{className:"content",children:[(0,r.jsx)(d.N_,{className:"header",to:t?"/settings/extensions/manage":"/settings/extensions/packages",children:e.name}),(0,r.jsx)("div",{className:"description",children:(0,r.jsx)(ve,{packageInfo:e,moduleT:i})})]})]})};var Ae=i(2141),we=i(56484),ke=i(88569),Ce=(i(61302),i(68578)),Se={};Se.styleTagTransform=ne(),Se.setAttributes=ie(),Se.insert=ee().bind(null,"head"),Se.domAPI=J(),Se.insertStyleElement=ae(),$()(Ce.A,Se),Ce.A&&Ce.A.locals&&Ce.A.locals;const Ee=(e,t)=>{const i=e.package.date.localeCompare(t.package.date);return 0===i?0:i>0?-1:1},De={typeId:"extensions",component:(0,we.A)(({packageCatalog:e,widgetT:t,installedPackages:i})=>(0,r.jsx)("div",{className:"extension-layout",children:e.length>0&&(0,r.jsx)("div",{className:"ui divided list",children:e.slice().sort(Ee).map(e=>((e,t,i)=>{const a=i.find(t=>t.name===e.name);return(0,r.jsx)(ye,{npmPackage:e,installedPackage:a,moduleT:t},e.name)})(e.package,t,i))})}),{urls:{installedPackages:Ae.A.EXTENSIONS_URL,packageCatalog:({session:e})=>(0,ke.H)(Ae.A.NPM_PACKAGES_URL,e)},dataConverters:{packageCatalog:({objects:e})=>e}}),name:"Extension releases",nameKey:"extensions",icon:"green puzzle",access:b.US.SETTINGS_VIEW,size:{w:4,h:5,minW:2,minH:3}};var Be=i(30557),Le={};Le.styleTagTransform=ne(),Le.setAttributes=ie(),Le.insert=ee().bind(null,"head"),Le.domAPI=J(),Le.insertStyleElement=ae(),$()(Be.A,Le),Be.A&&Be.A.locals&&Be.A.locals;class Te extends a.PureComponent{constructor(e){super(e),this.handleChange=e=>{const t={content:e.target.value};(0,B.MS)(this.storageKey,t),this.setState(t)},this.getStoredState=()=>(0,B.H5)(this.storageKey,{content:""});const{componentId:t}=this.props;this.storageKey=T(t),this.state=this.getStoredState()}render(){const{content:e}=this.state;return(0,r.jsx)("div",{className:"notepad-container ui input fluid",children:(0,r.jsx)("textarea",{onChange:this.handleChange,value:e})})}}const Pe={typeId:"notepad",component:Te,name:"Notepad",icon:"pen",size:{w:3,h:5,minW:2,minH:4}};var Me=i(99347),Ie=i(71352);const Re={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,i){return e},captureMetaData:!1},ze=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Oe=new RegExp("^["+ze+"]["+ze+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$");function Ne(e,t){const i=[];let r=t.exec(e);for(;r;){const a=[];a.startIndex=t.lastIndex-r[0].length;const s=r.length;for(let e=0;e<s;e++)a.push(r[e]);i.push(a),r=t.exec(e)}return i}const He=function(e){return!(null==Oe.exec(e))};let Fe;Fe="function"!=typeof Symbol?"@@xmlMetadata":Symbol("XML Node Metadata");class _e{constructor(e){this.tagname=e,this.child=[],this[":@"]={}}add(e,t){"__proto__"===e&&(e="#__proto__"),this.child.push({[e]:t})}addChild(e,t){"__proto__"===e.tagname&&(e.tagname="#__proto__"),e[":@"]&&Object.keys(e[":@"]).length>0?this.child.push({[e.tagname]:e.child,":@":e[":@"]}):this.child.push({[e.tagname]:e.child}),void 0!==t&&(this.child[this.child.length-1][Fe]={startIndex:t})}static getMetaDataSymbol(){return Fe}}function Ye(e,t){const i={};if("O"!==e[t+3]||"C"!==e[t+4]||"T"!==e[t+5]||"Y"!==e[t+6]||"P"!==e[t+7]||"E"!==e[t+8])throw new Error("Invalid Tag instead of DOCTYPE");{t+=9;let r=1,a=!1,s=!1,n="";for(;t<e.length;t++)if("<"!==e[t]||s)if(">"===e[t]){if(s?"-"===e[t-1]&&"-"===e[t-2]&&(s=!1,r--):r--,0===r)break}else"["===e[t]?a=!0:n+=e[t];else{if(a&&Ge(e,"!ENTITY",t)){let r,a;t+=7,[r,a,t]=We(e,t+1),-1===a.indexOf("&")&&(i[r]={regx:RegExp(`&${r};`,"g"),val:a})}else if(a&&Ge(e,"!ELEMENT",t)){t+=8;const{index:i}=Ue(e,t+1);t=i}else if(a&&Ge(e,"!ATTLIST",t))t+=8;else if(a&&Ge(e,"!NOTATION",t)){t+=9;const{index:i}=qe(e,t+1);t=i}else{if(!Ge(e,"!--",t))throw new Error("Invalid DOCTYPE");s=!0}r++,n=""}if(0!==r)throw new Error("Unclosed DOCTYPE")}return{entities:i,i:t}}const Xe=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function We(e,t){t=Xe(e,t);let i="";for(;t<e.length&&!/\s/.test(e[t])&&'"'!==e[t]&&"'"!==e[t];)i+=e[t],t++;if(Ve(i),t=Xe(e,t),"SYSTEM"===e.substring(t,t+6).toUpperCase())throw new Error("External entities are not supported");if("%"===e[t])throw new Error("Parameter entities are not supported");let r="";return[t,r]=je(e,t,"entity"),[i,r,--t]}function qe(e,t){t=Xe(e,t);let i="";for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;Ve(i),t=Xe(e,t);const r=e.substring(t,t+6).toUpperCase();if("SYSTEM"!==r&&"PUBLIC"!==r)throw new Error(`Expected SYSTEM or PUBLIC, found "${r}"`);t+=r.length,t=Xe(e,t);let a=null,s=null;if("PUBLIC"===r)[t,a]=je(e,t,"publicIdentifier"),'"'!==e[t=Xe(e,t)]&&"'"!==e[t]||([t,s]=je(e,t,"systemIdentifier"));else if("SYSTEM"===r&&([t,s]=je(e,t,"systemIdentifier"),!s))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:i,publicIdentifier:a,systemIdentifier:s,index:--t}}function je(e,t,i){let r="";const a=e[t];if('"'!==a&&"'"!==a)throw new Error(`Expected quoted string, found "${a}"`);for(t++;t<e.length&&e[t]!==a;)r+=e[t],t++;if(e[t]!==a)throw new Error(`Unterminated ${i} value`);return[++t,r]}function Ue(e,t){t=Xe(e,t);let i="";for(;t<e.length&&!/\s/.test(e[t]);)i+=e[t],t++;if(!Ve(i))throw new Error(`Invalid element name: "${i}"`);let r="";if("E"===e[t=Xe(e,t)]&&Ge(e,"MPTY",t))t+=4;else if("A"===e[t]&&Ge(e,"NY",t))t+=2;else{if("("!==e[t])throw new Error(`Invalid Element Expression, found "${e[t]}"`);for(t++;t<e.length&&")"!==e[t];)r+=e[t],t++;if(")"!==e[t])throw new Error("Unterminated content model")}return{elementName:i,contentModel:r.trim(),index:t}}function Ge(e,t,i){for(let r=0;r<t.length;r++)if(t[r]!==e[i+r+1])return!1;return!0}function Ve(e){if(He(e))return e;throw new Error(`Invalid entity name ${e}`)}const Ze=/^[-+]?0x[a-fA-F0-9]+$/,$e=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,Qe={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};const Je=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;class Ke{constructor(e){var t;this.options=e,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(e,t)=>String.fromCodePoint(Number.parseInt(t,16))}},this.addExternalEntities=et,this.parseXml=st,this.parseTextData=tt,this.resolveNameSpace=it,this.buildAttributesMap=at,this.isItStopNode=ct,this.replaceEntitiesValue=ot,this.readStopNodeData=ut,this.saveTextToParentTag=lt,this.addChild=nt,this.ignoreAttributesFn="function"==typeof(t=this.options.ignoreAttributes)?t:Array.isArray(t)?e=>{for(const i of t){if("string"==typeof i&&e===i)return!0;if(i instanceof RegExp&&i.test(e))return!0}}:()=>!1}}function et(e){const t=Object.keys(e);for(let i=0;i<t.length;i++){const r=t[i];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function tt(e,t,i,r,a,s,n){if(void 0!==e&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){n||(e=this.replaceEntitiesValue(e));const r=this.options.tagValueProcessor(t,e,i,a,s);return null==r?e:typeof r!=typeof e||r!==e?r:this.options.trimValues||e.trim()===e?gt(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function it(e){if(this.options.removeNSPrefix){const t=e.split(":"),i="/"===e.charAt(0)?"/":"";if("xmlns"===t[0])return"";2===t.length&&(e=i+t[1])}return e}const rt=new RegExp("([^\\s=]+)\\s*(=\\s*(['\"])([\\s\\S]*?)\\3)?","gm");function at(e,t,i){if(!0!==this.options.ignoreAttributes&&"string"==typeof e){const i=Ne(e,rt),r=i.length,a={};for(let e=0;e<r;e++){const r=this.resolveNameSpace(i[e][1]);if(this.ignoreAttributesFn(r,t))continue;let s=i[e][4],n=this.options.attributeNamePrefix+r;if(r.length)if(this.options.transformAttributeName&&(n=this.options.transformAttributeName(n)),"__proto__"===n&&(n="#__proto__"),void 0!==s){this.options.trimValues&&(s=s.trim()),s=this.replaceEntitiesValue(s);const e=this.options.attributeValueProcessor(r,s,t);a[n]=null==e?s:typeof e!=typeof s||e!==s?e:gt(s,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(a[n]=!0)}if(!Object.keys(a).length)return;if(this.options.attributesGroupName){const e={};return e[this.options.attributesGroupName]=a,e}return a}}const st=function(e){e=e.replace(/\r\n?/g,"\n");const t=new _e("!xml");let i=t,r="",a="";for(let s=0;s<e.length;s++)if("<"===e[s])if("/"===e[s+1]){const t=dt(e,">",s,"Closing Tag is not closed.");let n=e.substring(s+2,t).trim();if(this.options.removeNSPrefix){const e=n.indexOf(":");-1!==e&&(n=n.substr(e+1))}this.options.transformTagName&&(n=this.options.transformTagName(n)),i&&(r=this.saveTextToParentTag(r,i,a));const o=a.substring(a.lastIndexOf(".")+1);if(n&&-1!==this.options.unpairedTags.indexOf(n))throw new Error(`Unpaired tag can not be used as closing tag: </${n}>`);let l=0;o&&-1!==this.options.unpairedTags.indexOf(o)?(l=a.lastIndexOf(".",a.lastIndexOf(".")-1),this.tagsNodeStack.pop()):l=a.lastIndexOf("."),a=a.substring(0,l),i=this.tagsNodeStack.pop(),r="",s=t}else if("?"===e[s+1]){let t=ht(e,s,!1,"?>");if(!t)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,i,a),this.options.ignoreDeclaration&&"?xml"===t.tagName||this.options.ignorePiTags);else{const e=new _e(t.tagName);e.add(this.options.textNodeName,""),t.tagName!==t.tagExp&&t.attrExpPresent&&(e[":@"]=this.buildAttributesMap(t.tagExp,a,t.tagName)),this.addChild(i,e,a,s)}s=t.closeIndex+1}else if("!--"===e.substr(s+1,3)){const t=dt(e,"--\x3e",s+4,"Comment is not closed.");if(this.options.commentPropName){const n=e.substring(s+4,t-2);r=this.saveTextToParentTag(r,i,a),i.add(this.options.commentPropName,[{[this.options.textNodeName]:n}])}s=t}else if("!D"===e.substr(s+1,2)){const t=Ye(e,s);this.docTypeEntities=t.entities,s=t.i}else if("!["===e.substr(s+1,2)){const t=dt(e,"]]>",s,"CDATA is not closed.")-2,n=e.substring(s+9,t);r=this.saveTextToParentTag(r,i,a);let o=this.parseTextData(n,i.tagname,a,!0,!1,!0,!0);null==o&&(o=""),this.options.cdataPropName?i.add(this.options.cdataPropName,[{[this.options.textNodeName]:n}]):i.add(this.options.textNodeName,o),s=t+2}else{let n=ht(e,s,this.options.removeNSPrefix),o=n.tagName;const l=n.rawTagName;let c=n.tagExp,d=n.attrExpPresent,h=n.closeIndex;this.options.transformTagName&&(o=this.options.transformTagName(o)),i&&r&&"!xml"!==i.tagname&&(r=this.saveTextToParentTag(r,i,a,!1));const u=i;u&&-1!==this.options.unpairedTags.indexOf(u.tagname)&&(i=this.tagsNodeStack.pop(),a=a.substring(0,a.lastIndexOf("."))),o!==t.tagname&&(a+=a?"."+o:o);const g=s;if(this.isItStopNode(this.options.stopNodes,a,o)){let t="";if(c.length>0&&c.lastIndexOf("/")===c.length-1)"/"===o[o.length-1]?(o=o.substr(0,o.length-1),a=a.substr(0,a.length-1),c=o):c=c.substr(0,c.length-1),s=n.closeIndex;else if(-1!==this.options.unpairedTags.indexOf(o))s=n.closeIndex;else{const i=this.readStopNodeData(e,l,h+1);if(!i)throw new Error(`Unexpected end of ${l}`);s=i.i,t=i.tagContent}const r=new _e(o);o!==c&&d&&(r[":@"]=this.buildAttributesMap(c,a,o)),t&&(t=this.parseTextData(t,o,a,!0,d,!0,!0)),a=a.substr(0,a.lastIndexOf(".")),r.add(this.options.textNodeName,t),this.addChild(i,r,a,g)}else{if(c.length>0&&c.lastIndexOf("/")===c.length-1){"/"===o[o.length-1]?(o=o.substr(0,o.length-1),a=a.substr(0,a.length-1),c=o):c=c.substr(0,c.length-1),this.options.transformTagName&&(o=this.options.transformTagName(o));const e=new _e(o);o!==c&&d&&(e[":@"]=this.buildAttributesMap(c,a,o)),this.addChild(i,e,a,g),a=a.substr(0,a.lastIndexOf("."))}else{const e=new _e(o);this.tagsNodeStack.push(i),o!==c&&d&&(e[":@"]=this.buildAttributesMap(c,a,o)),this.addChild(i,e,a,g),i=e}r="",s=h}}else r+=e[s];return t.child};function nt(e,t,i,r){this.options.captureMetaData||(r=void 0);const a=this.options.updateTag(t.tagname,i,t[":@"]);!1===a||("string"==typeof a?(t.tagname=a,e.addChild(t,r)):e.addChild(t,r))}const ot=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const i=this.docTypeEntities[t];e=e.replace(i.regx,i.val)}for(let t in this.lastEntities){const i=this.lastEntities[t];e=e.replace(i.regex,i.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const i=this.htmlEntities[t];e=e.replace(i.regex,i.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function lt(e,t,i,r){return e&&(void 0===r&&(r=0===t.child.length),void 0!==(e=this.parseTextData(e,t.tagname,i,!1,!!t[":@"]&&0!==Object.keys(t[":@"]).length,r))&&""!==e&&t.add(this.options.textNodeName,e),e=""),e}function ct(e,t,i){const r="*."+i;for(const i in e){const a=e[i];if(r===a||t===a)return!0}return!1}function dt(e,t,i,r){const a=e.indexOf(t,i);if(-1===a)throw new Error(r);return a+t.length-1}function ht(e,t,i,r=">"){const a=function(e,t,i=">"){let r,a="";for(let s=t;s<e.length;s++){let t=e[s];if(r)t===r&&(r="");else if('"'===t||"'"===t)r=t;else if(t===i[0]){if(!i[1])return{data:a,index:s};if(e[s+1]===i[1])return{data:a,index:s}}else"\t"===t&&(t=" ");a+=t}}(e,t+1,r);if(!a)return;let s=a.data;const n=a.index,o=s.search(/\s/);let l=s,c=!0;-1!==o&&(l=s.substring(0,o),s=s.substring(o+1).trimStart());const d=l;if(i){const e=l.indexOf(":");-1!==e&&(l=l.substr(e+1),c=l!==a.data.substr(e+1))}return{tagName:l,tagExp:s,closeIndex:n,attrExpPresent:c,rawTagName:d}}function ut(e,t,i){const r=i;let a=1;for(;i<e.length;i++)if("<"===e[i])if("/"===e[i+1]){const s=dt(e,">",i,`${t} is not closed`);if(e.substring(i+2,s).trim()===t&&(a--,0===a))return{tagContent:e.substring(r,i),i:s};i=s}else if("?"===e[i+1])i=dt(e,"?>",i+1,"StopNode is not closed.");else if("!--"===e.substr(i+1,3))i=dt(e,"--\x3e",i+3,"StopNode is not closed.");else if("!["===e.substr(i+1,2))i=dt(e,"]]>",i,"StopNode is not closed.")-2;else{const r=ht(e,i,">");r&&((r&&r.tagName)===t&&"/"!==r.tagExp[r.tagExp.length-1]&&a++,i=r.closeIndex)}}function gt(e,t,i){if(t&&"string"==typeof e){const t=e.trim();return"true"===t||"false"!==t&&function(e,t={}){if(t=Object.assign({},Qe,t),!e||"string"!=typeof e)return e;let i=e.trim();if(void 0!==t.skipLike&&t.skipLike.test(i))return e;if("0"===e)return 0;if(t.hex&&Ze.test(i))return function(e){if(parseInt)return parseInt(e,16);if(Number.parseInt)return Number.parseInt(e,16);if(window&&window.parseInt)return window.parseInt(e,16);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}(i);if(-1!==i.search(/.+[eE].+/))return function(e,t,i){if(!i.eNotation)return e;const r=t.match(Je);if(r){let a=r[1]||"";const s=-1===r[3].indexOf("e")?"E":"e",n=r[2],o=a?e[n.length+1]===s:e[n.length]===s;return n.length>1&&o?e:1!==n.length||!r[3].startsWith(`.${s}`)&&r[3][0]!==s?i.leadingZeros&&!o?(t=(r[1]||"")+r[3],Number(t)):e:Number(t)}return e}(e,i,t);{const a=$e.exec(i);if(a){const s=a[1]||"",n=a[2];let o=(r=a[3])&&-1!==r.indexOf(".")?("."===(r=r.replace(/0+$/,""))?r="0":"."===r[0]?r="0"+r:"."===r[r.length-1]&&(r=r.substring(0,r.length-1)),r):r;const l=s?"."===e[n.length+1]:"."===e[n.length];if(!t.leadingZeros&&(n.length>1||1===n.length&&!l))return e;{const r=Number(i),a=String(r);if(0===r)return r;if(-1!==a.search(/[eE]/))return t.eNotation?r:e;if(-1!==i.indexOf("."))return"0"===a||a===o||a===`${s}${o}`?r:e;let l=n?o:i;return n?l===a||s+l===a?r:e:l===a||l===s+a?r:e}}return e}var r}(e,i)}return void 0!==e?e:""}const pt=_e.getMetaDataSymbol();function ft(e,t){return bt(e,t)}function bt(e,t,i){let r;const a={};for(let s=0;s<e.length;s++){const n=e[s],o=mt(n);let l="";if(l=void 0===i?o:i+"."+o,o===t.textNodeName)void 0===r?r=n[o]:r+=""+n[o];else{if(void 0===o)continue;if(n[o]){let e=bt(n[o],t,l);const i=vt(e,t);void 0!==n[pt]&&(e[pt]=n[pt]),n[":@"]?xt(e,n[":@"],l,t):1!==Object.keys(e).length||void 0===e[t.textNodeName]||t.alwaysCreateTextNode?0===Object.keys(e).length&&(t.alwaysCreateTextNode?e[t.textNodeName]="":e=""):e=e[t.textNodeName],void 0!==a[o]&&a.hasOwnProperty(o)?(Array.isArray(a[o])||(a[o]=[a[o]]),a[o].push(e)):t.isArray(o,l,i)?a[o]=[e]:a[o]=e}}}return"string"==typeof r?r.length>0&&(a[t.textNodeName]=r):void 0!==r&&(a[t.textNodeName]=r),a}function mt(e){const t=Object.keys(e);for(let e=0;e<t.length;e++){const i=t[e];if(":@"!==i)return i}}function xt(e,t,i,r){if(t){const a=Object.keys(t),s=a.length;for(let n=0;n<s;n++){const s=a[n];r.isArray(s,i+"."+s,!0,!0)?e[s]=[t[s]]:e[s]=t[s]}}}function vt(e,t){const{textNodeName:i}=t,r=Object.keys(e).length;return 0===r||!(1!==r||!e[i]&&"boolean"!=typeof e[i]&&0!==e[i])}const yt={allowBooleanAttributes:!1,unpairedTags:[]};function At(e){return" "===e||"\t"===e||"\n"===e||"\r"===e}function wt(e,t){const i=t;for(;t<e.length;t++)if("?"==e[t]||" "==e[t]){const r=e.substr(i,t-i);if(t>5&&"xml"===r)return Bt("InvalidXml","XML declaration allowed only at the start of the document.",Pt(e,t));if("?"==e[t]&&">"==e[t+1]){t++;break}continue}return t}function kt(e,t){if(e.length>t+5&&"-"===e[t+1]&&"-"===e[t+2]){for(t+=3;t<e.length;t++)if("-"===e[t]&&"-"===e[t+1]&&">"===e[t+2]){t+=2;break}}else if(e.length>t+8&&"D"===e[t+1]&&"O"===e[t+2]&&"C"===e[t+3]&&"T"===e[t+4]&&"Y"===e[t+5]&&"P"===e[t+6]&&"E"===e[t+7]){let i=1;for(t+=8;t<e.length;t++)if("<"===e[t])i++;else if(">"===e[t]&&(i--,0===i))break}else if(e.length>t+9&&"["===e[t+1]&&"C"===e[t+2]&&"D"===e[t+3]&&"A"===e[t+4]&&"T"===e[t+5]&&"A"===e[t+6]&&"["===e[t+7])for(t+=8;t<e.length;t++)if("]"===e[t]&&"]"===e[t+1]&&">"===e[t+2]){t+=2;break}return t}function Ct(e,t){let i="",r="",a=!1;for(;t<e.length;t++){if('"'===e[t]||"'"===e[t])""===r?r=e[t]:r!==e[t]||(r="");else if(">"===e[t]&&""===r){a=!0;break}i+=e[t]}return""===r&&{value:i,index:t,tagClosed:a}}const St=new RegExp("(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['\"])(([\\s\\S])*?)\\5)?","g");function Et(e,t){const i=Ne(e,St),r={};for(let e=0;e<i.length;e++){if(0===i[e][1].length)return Bt("InvalidAttr","Attribute '"+i[e][2]+"' has no space in starting.",Mt(i[e]));if(void 0!==i[e][3]&&void 0===i[e][4])return Bt("InvalidAttr","Attribute '"+i[e][2]+"' is without value.",Mt(i[e]));if(void 0===i[e][3]&&!t.allowBooleanAttributes)return Bt("InvalidAttr","boolean attribute '"+i[e][2]+"' is not allowed.",Mt(i[e]));const a=i[e][2];if(!Lt(a))return Bt("InvalidAttr","Attribute '"+a+"' is an invalid name.",Mt(i[e]));if(r.hasOwnProperty(a))return Bt("InvalidAttr","Attribute '"+a+"' is repeated.",Mt(i[e]));r[a]=1}return!0}function Dt(e,t){if(";"===e[++t])return-1;if("#"===e[t])return function(e,t){let i=/\d/;for("x"===e[t]&&(t++,i=/[\da-fA-F]/);t<e.length;t++){if(";"===e[t])return t;if(!e[t].match(i))break}return-1}(e,++t);let i=0;for(;t<e.length;t++,i++)if(!(e[t].match(/\w/)&&i<20)){if(";"===e[t])break;return-1}return t}function Bt(e,t,i){return{err:{code:e,msg:t,line:i.line||i,col:i.col}}}function Lt(e){return He(e)}function Tt(e){return He(e)}function Pt(e,t){const i=e.substring(0,t).split(/\r?\n/);return{line:i.length,col:i[i.length-1].length+1}}function Mt(e){return e.startIndex+e[1].length}class It{constructor(e){this.externalEntities={},this.options=function(e){return Object.assign({},Re,e)}(e)}parse(e,t){if("string"==typeof e);else{if(!e.toString)throw new Error("XML data is accepted in String or Bytes[] form.");e=e.toString()}if(t){!0===t&&(t={});const i=function(e,t){t=Object.assign({},yt,t);const i=[];let r=!1,a=!1;"\ufeff"===e[0]&&(e=e.substr(1));for(let s=0;s<e.length;s++)if("<"===e[s]&&"?"===e[s+1]){if(s+=2,s=wt(e,s),s.err)return s}else{if("<"!==e[s]){if(At(e[s]))continue;return Bt("InvalidChar","char '"+e[s]+"' is not expected.",Pt(e,s))}{let n=s;if(s++,"!"===e[s]){s=kt(e,s);continue}{let o=!1;"/"===e[s]&&(o=!0,s++);let l="";for(;s<e.length&&">"!==e[s]&&" "!==e[s]&&"\t"!==e[s]&&"\n"!==e[s]&&"\r"!==e[s];s++)l+=e[s];if(l=l.trim(),"/"===l[l.length-1]&&(l=l.substring(0,l.length-1),s--),!Tt(l)){let t;return t=0===l.trim().length?"Invalid space after '<'.":"Tag '"+l+"' is an invalid name.",Bt("InvalidTag",t,Pt(e,s))}const c=Ct(e,s);if(!1===c)return Bt("InvalidAttr","Attributes for '"+l+"' have open quote.",Pt(e,s));let d=c.value;if(s=c.index,"/"===d[d.length-1]){const i=s-d.length;d=d.substring(0,d.length-1);const a=Et(d,t);if(!0!==a)return Bt(a.err.code,a.err.msg,Pt(e,i+a.err.line));r=!0}else if(o){if(!c.tagClosed)return Bt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Pt(e,s));if(d.trim().length>0)return Bt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Pt(e,n));if(0===i.length)return Bt("InvalidTag","Closing tag '"+l+"' has not been opened.",Pt(e,n));{const t=i.pop();if(l!==t.tagName){let i=Pt(e,t.tagStartPos);return Bt("InvalidTag","Expected closing tag '"+t.tagName+"' (opened in line "+i.line+", col "+i.col+") instead of closing tag '"+l+"'.",Pt(e,n))}0==i.length&&(a=!0)}}else{const o=Et(d,t);if(!0!==o)return Bt(o.err.code,o.err.msg,Pt(e,s-d.length+o.err.line));if(!0===a)return Bt("InvalidXml","Multiple possible root nodes found.",Pt(e,s));-1!==t.unpairedTags.indexOf(l)||i.push({tagName:l,tagStartPos:n}),r=!0}for(s++;s<e.length;s++)if("<"===e[s]){if("!"===e[s+1]){s++,s=kt(e,s);continue}if("?"!==e[s+1])break;if(s=wt(e,++s),s.err)return s}else if("&"===e[s]){const t=Dt(e,s);if(-1==t)return Bt("InvalidChar","char '&' is not expected.",Pt(e,s));s=t}else if(!0===a&&!At(e[s]))return Bt("InvalidXml","Extra text at the end",Pt(e,s));"<"===e[s]&&s--}}}return r?1==i.length?Bt("InvalidTag","Unclosed tag '"+i[0].tagName+"'.",Pt(e,i[0].tagStartPos)):!(i.length>0)||Bt("InvalidXml","Invalid '"+JSON.stringify(i.map(e=>e.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1}):Bt("InvalidXml","Start tag expected.",1)}(e,t);if(!0!==i)throw Error(`${i.err.msg}:${i.err.line}:${i.err.col}`)}const i=new Ke(this.options);i.addExternalEntities(this.externalEntities);const r=i.parseXml(e);return this.options.preserveOrder||void 0===r?r:ft(r,this.options)}addEntity(e,t){if(-1!==t.indexOf("&"))throw new Error("Entity value can't have '&'");if(-1!==e.indexOf("&")||-1!==e.indexOf(";"))throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if("&"===t)throw new Error("An entity with value '&' is not permitted");this.externalEntities[e]=t}static getMetaDataSymbol(){return _e.getMetaDataSymbol()}}var Rt=i(66067);const zt=e=>"string"==typeof e?e:e.text,Ot={attributesGroupName:"attr",textNodeName:"text",parseAttributeValue:!0,ignoreAttributes:!1,attributeNamePrefix:"",attributeValueProcessor:(e,t)=>(0,Rt.decode)(t,{isAttributeValue:!0}),tagValueProcessor:(e,t)=>(0,Rt.decode)(t)};var Nt=i(44054);const Ht={openLink:{id:"openLink",displayName:"Open link",icon:g.A.EXTERNAL,filter:({itemData:e})=>!!e.entry.link,handler:({itemData:e})=>{var t;const{entry:i,feedUrl:r}=e;let a;if("string"==typeof i.link)a=i.link;else if((null===(t=null==i?void 0:i.link)||void 0===t?void 0:t.attr.href)&&i.link.attr.href.length>2&&(a=i.link.attr.href,a.startsWith("//"))){const e=(e=>{const t=e.match(/^(https?:)\/\/(([^:/?#]*)(?::([0-9]+))?)(\/[^?#]*)(\?[^#]*|)(#.*|)$/);return t&&{protocol:t[1],host:t[2],hostname:t[3],port:t[4],pathname:t[5],search:t[6],hash:t[7]}})(r);e&&(a=e.protocol+"//"+e.host+a)}window.open(a)}},search:{id:"search",displayName:"Search",access:b.US.SEARCH,icon:g.A.SEARCH,handler:({itemData:e,location:t,navigate:i})=>{if(!e.entry.title)return;const r=zt(e.entry.title);return(0,Nt.P)(r,t,i)},filter:({itemData:e})=>!!e.entry.title}},Ft=e=>{if(!e.title)return"(title missing)";let t=zt(e.title);return"string"!=typeof t&&(t="(unsupported title format)"),t},_t=({entry:e,feedUrl:t,widgetT:i})=>{const{formatRelativeTime:a}=(0,ce.k)(),s=e.pubDate?e.pubDate:e.updated;return(0,r.jsxs)("div",{className:"item",children:[(0,r.jsx)("div",{className:"header",children:(0,r.jsx)(Ie.Wy,{leftIcon:!0,caption:Ft(e),actions:{actions:Ht,moduleData:{moduleId:i.moduleId}},itemData:{id:t,entry:e,feedUrl:t}})}),(0,r.jsx)("div",{className:"description",children:!!s&&a(Date.parse(zt(s))/1e3)})]})};var Yt=i(83994);const Xt=(0,i(53632).A)(({lastUpdated:e,handleUpdate:t,widgetT:i})=>{const{formatRelativeTime:a}=(0,ce.k)();return(0,r.jsxs)("div",{className:"extra content",children:[(0,r.jsx)(Yt.A,{icon:g.A.REFRESH_PLAIN,onClick:t}),!!e&&(0,r.jsxs)(A.x6,{i18nKey:i.toI18nKey("lastUpdated"),children:["Last updated: ",{time:a(e/1e3)}]})]})},60);var Wt=i(48249),qt=i(54750),jt={};jt.styleTagTransform=ne(),jt.setAttributes=ie(),jt.insert=ee().bind(null,"head"),jt.domAPI=J(),jt.insertStyleElement=ae(),$()(qt.A,jt),qt.A&&qt.A.locals&&qt.A.locals;const Ut=e=>`rss_feed_cache_${e}`,Gt=e=>{const{settings:t,widgetT:i,componentId:r}=e,s=(0,Wt.F)().logger,n=(0,y.wV)(),[o,l]=(0,a.useState)(((e,t,i)=>{const r=(0,B.wO)(Ut(e)),{feed_url:a,feed_cache_minutes:s}=t;if(r){const e=new Date(r.date).getTime()+60*s*1e3;if(e>=Date.now())return i.info(`RSS: cached feed will be used (expires in ${(e-Date.now())/60/1e3} minutes)`,a),r;i.info(`RSS: cached feed had expired ${(Date.now()-e)/60/1e3} minutes ago`,a)}else i.info("RSS: no cached feed",a);return null})(r,t,s)),[c,d]=(0,a.useState)(null),h=e=>{return t=void 0,a=void 0,u=function*(){if(e.startsWith("http://")||e.startsWith("https://")){(null==o?void 0:o.entries)&&l(null),c&&d(null);try{const t=yield((e,t)=>{return i=void 0,r=void 0,s=function*(){const i=yield(0,ke.H)(e,t,{isJSON:!1});return new It(Ot).parse(i)},new((a=void 0)||(a=Promise))(function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a(function(e){e(i)})).then(n,o)}l((s=s.apply(i,r||[])).next())});var i,r,a,s})(e,n);s.info("RSS feed received",e),(e=>{const t=((e,t)=>{let i=[];const r=e=>{throw console.log(`Invalid feed: ${e}`),new Error(t.t("invalidFeed",{error:e}))},{rss:a,feed:s}=e;return a?(a.channel&&a.channel.item||r("No channel/item"),i=a.channel.item):s?(s.entry||r("No feed entry"),i=s.entry):r('No "rss" or "feed" tag was found'),Array.isArray(i)||("object"!=typeof i&&r("Entries is not an array or an object"),i=[i]),i})(e,i);(0,B.xu)(Ut(r),{entries:t,date:Date.now()}),l({entries:t,date:Date.now()})})(t)}catch(t){s.warn("RSS feed download failed",e,t),d(t.message)}}else d(i.translate("Invalid URL"))},new((h=void 0)||(h=Promise))(function(e,i){function r(e){try{n(u.next(e))}catch(e){i(e)}}function s(e){try{n(u.throw(e))}catch(e){i(e)}}function n(t){var i;t.done?e(t.value):(i=t.value,i instanceof h?i:new h(function(e){e(i)})).then(r,s)}n((u=u.apply(t,a||[])).next())});var t,a,h,u},u=()=>{h(t.feed_url)};return(0,a.useEffect)(()=>{(null==o?void 0:o.entries)||u()},[]),(0,a.useEffect)(()=>{h(t.feed_url)},[t.feed_url]),{error:c,feedInfo:o,handleUpdate:u}},Vt={typeId:"rss",component:e=>{const{settings:t,widgetT:i,componentId:a}=e,{error:s,feedInfo:n,handleUpdate:l}=Gt(e);if(s)return(0,r.jsx)(o.A,{description:s});if(!n)return(0,r.jsx)(Me.A,{text:i.translate("Loading feed"),inline:!0});const{entries:c,date:d}=n;return(0,r.jsxs)("div",{className:"rss-container",children:[(0,r.jsx)("div",{className:"ui divided list rss",children:c.map(e=>(0,r.jsx)(_t,{entry:e,componentId:a,feedUrl:t.feed_url,widgetT:i},(e=>e.guid?zt(e.guid):e.id?zt(e.id):"DUMMY")(e)))}),(0,r.jsx)(Xt,{lastUpdated:d,handleUpdate:l,widgetT:i})]})},name:"RSS feed",nameKey:"rssFeed",icon:"orange rss",formSettings:[{key:"feed_url",title:"Feed URL",type:b.OP.URL,help:"RSS and Atom feeds are supported",default_value:""},{key:"feed_cache_minutes",title:"Minimum refetch interval (minutes)",type:b.OP.NUMBER,default_value:60}],size:{w:3,h:5,minW:2,minH:3}};var Zt=i(27415),$t=i(6137);const Qt=({stats:e,widgetT:t})=>{const{formatSize:i}=(0,ce.k)();return(0,r.jsxs)("div",{className:"ui list info tiny stats",children:[(0,r.jsx)(V.c,{header:t.translate("Downloads"),description:e.downloads}),(0,r.jsx)(V.c,{header:t.translate("Uploads"),description:e.uploads}),(0,r.jsx)("div",{className:"section-separator"}),(0,r.jsx)(V.c,{header:t.translate("Downloaded"),description:i(e.session_downloaded)}),(0,r.jsx)(V.c,{header:t.translate("Uploaded"),description:i(e.session_uploaded)}),(0,r.jsx)("div",{className:"section-separator"}),(0,r.jsx)(V.c,{header:t.translate("Download limit"),description:(0,r.jsx)($t.q,{limit:e.limit_down,unit:"KiB",settingKey:"download_limit_main"})}),(0,r.jsx)(V.c,{header:t.translate("Upload limit"),description:(0,r.jsx)($t.q,{limit:e.limit_up,unit:"KiB",settingKey:"upload_limit_main"})})]})};var Jt=i(17242),Kt=i(16653);const ei=(0,a.memo)(({trafficSeries:e,maxDownload:t,maxUpload:i})=>{const{formatSpeed:s,formatDateTime:n}=(0,ce.k)(),o=(0,a.useMemo)(()=>({chart:{id:"area-datetime",toolbar:{show:!1},animations:{enabled:!1}},legend:{show:!1},stroke:{curve:"smooth",width:1},dataLabels:{enabled:!1},tooltip:{enabled:!0},xaxis:{type:"datetime",labels:{show:!1,formatter:(e,t)=>n(t/1e3)},axisTicks:{show:!1},tooltip:{enabled:!1}},yaxis:{labels:{formatter:e=>s(Math.abs(e))},max:t+t/10,min:-i-i/10,tickAmount:4,stepSize:1e6,opposite:!0}}),[i,t]),l=[{name:"Download",color:"#0ea432",data:e.map(e=>({y:e[1],x:e[0]}))},{name:"Upload",color:"#b21e1e",data:e.map(e=>({y:-e[2],x:e[0]}))}],[c,d]=(0,Kt.A)({debounce:100});return(0,r.jsx)("div",{ref:c,className:"graph",children:(0,r.jsx)(Jt.A,{options:o,series:l,type:"area",width:null==d?void 0:d.width,height:null==d?void 0:d.height})})});var ti=i(98147),ii=i(36671);const ri=({points:e,maxDownload:t,maxUpload:i},r,a,s=1800)=>{const n=[...e,[Date.now(),r,a]];return n.length>s&&n.shift(),{points:n,maxDownload:Math.max(r,t),maxUpload:Math.max(a,i)}},ai=(e,t,i=1800)=>{const[r,s]=(0,a.useState)({series:{points:[[Date.now(),0,0]],maxDownload:0,maxUpload:0},stats:void 0}),n=()=>{s(e=>{return(t=e.series.points)[t.length-1][0]+2800<=Date.now()?Object.assign(Object.assign({},e),{series:ri(e.series,0,0,i)}):e;var t})},o=e=>{s(t=>{var r,a;return{series:ri(t.series,e.speed_down||(null===(r=t.stats)||void 0===r?void 0:r.speed_down)||0,e.speed_up||(null===(a=t.stats)||void 0===a?void 0:a.speed_up)||0,i),stats:Object.assign(Object.assign({},t.stats),e)}})},l=e=>{o(e)};return(0,a.useEffect)(()=>{var i,r,a,s;i=void 0,r=void 0,s=function*(){try{const t=yield e.get(ii.A.STATISTICS_URL);o(t)}catch(e){console.error("Failed to fetch transfer statistics",e.message)}t(ii.A.MODULE_URL,ii.A.STATISTICS,l)},new((a=void 0)||(a=Promise))(function(e,t){function n(e){try{l(s.next(e))}catch(e){t(e)}}function o(e){try{l(s.throw(e))}catch(e){t(e)}}function l(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a(function(e){e(i)})).then(n,o)}l((s=s.apply(i,r||[])).next())});const c=window.setInterval(n,3e3);return()=>{clearInterval(c)}},[]),r};var si=i(35654),ni={};ni.styleTagTransform=ne(),ni.setAttributes=ie(),ni.insert=ee().bind(null,"head"),ni.domAPI=J(),ni.insertStyleElement=ae(),$()(si.A,ni),si.A&&si.A.locals&&si.A.locals;const oi={typeId:"transfers",component:(0,ti.k)(({settings:e,socket:t,addSocketListener:i,widgetT:a})=>{const[s,n]=(0,Kt.A)({debounce:100}),{stats:o,series:l}=ai(t,i,e.maxEvents);if(!o)return(0,r.jsx)(Me.A,{inline:!0});const{points:c,maxDownload:d,maxUpload:h}=l;return(0,r.jsxs)("div",{ref:s,className:"transfers-container",children:[(0,r.jsx)(ei,{trafficSeries:c,maxDownload:d,maxUpload:h,widgetT:a}),n.width>=300&&(0,r.jsx)(Qt,{stats:o,widgetT:a}),(0,r.jsx)("div",{"data-testid":"transfer-widget-event-count",style:{display:"none"},children:c.length})]})}),access:b.US.TRANSFERS,name:"Transfers",icon:"exchange",size:{w:5,h:5,minW:2,minH:5},actionMenu:{actions:Zt.f$,ids:["resume","pause"]}},li=[pe,Vt,Pe,oi,De];var ci=i(2543),di=i(71323);const hi={lg:14,md:10,sm:6,xs:4,xxs:2},ui={lg:1600,md:1100,sm:768,xs:480,xxs:0},gi=(e,t,i,r,a)=>Object.keys(hi).reduce((s,n)=>(s[n]=e[n]||[],s[n]=s[n].concat(Object.assign({i,x:r||2*s[n].length%(hi[n]||12),y:a||0},t.size)),s),{}),pi=(e,t,i,r,a,s,n="_default")=>{const o=t.typeId+n,l=gi(e,t,o,i,r);return O(o,{name:a,widget:s}),l},fi=e=>0!==Object.keys(e).length?e:(e=>(e=pi(e,pe,0,0),e=pi(e,Vt,pe.size.w,0,"News",{feed_url:"https://airdcpp-web.github.io/feed.xml"},"_releases"),e=pi(e,De,pe.size.w+Vt.size.w,0),e=pi(e,oi,pe.size.w+Vt.size.w+De.size.w,0),pi(e,Pe,0,5)))(e),bi="home_layout";var mi=i(46942),xi=i.n(mi),vi=i(70756);const yi=a.forwardRef(function(e,t){var{widgetInfo:i,settings:a,componentId:s,children:n,className:o,rootWidgetT:l,layoutStore:c}=e,d=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(i[r[a]]=e[r[a]])}return i}(e,["widgetInfo","settings","componentId","children","className","rootWidgetT","layoutStore"]);const h=((e,t,i,r)=>e.formSettings&&!t.widget?i.t("settingsMissing","Widget settings missing"):e.access&&!(0,vi.z)(r,e.access)?i.t("accessDenied","You aren't allowed to access this widget"):null)(i,a,l,(0,y.wV)()),u=i.component,g=M(i,l.plainT);return(0,r.jsxs)("div",Object.assign({},d,{ref:t,className:xi()("card","widget",o,s,i.typeId),children:[(0,r.jsxs)("div",{className:"content header-row",children:[(0,r.jsxs)("div",{className:"header",children:[(0,r.jsx)("i",{className:xi()("left floated large icon",i.icon)}),a.name?a.name:I(i,l.plainT)]}),(0,r.jsx)(Ie.Wy,{className:"widget-menu right top pointing",actions:j,itemData:{id:s,widgetInfo:i,settings:a,layoutStore:c},children:!!i.actionMenu&&(0,r.jsx)(Ie.Wy,{actions:i.actionMenu.actions,ids:i.actionMenu.ids})})]}),(0,r.jsx)("div",{className:"main content",children:h||(0,r.jsx)(u,{componentId:s,settings:a.widget||{},widgetT:g,rootWidgetT:l})}),n]}))}),Ai=a.memo(yi);var wi=i(99671),ki=i(94413),Ci=i(65385),Si=i(47456),Ei=function(e,t){var i={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(i[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var a=0;for(r=Object.getOwnPropertySymbols(e);a<r.length;a++)t.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(e,r[a])&&(i[r[a]]=e[r[a]])}return i};const Di=(e,t)=>{if(!e)return;const i=z(e,t);return Object.assign({name:i.name},i.widget)},Bi=(e,t)=>{const i=(0,Si.Nn)([{key:"name",title:"Name",type:b.OP.STRING,default_value:e.name,optional:!0}],t);if(e.formSettings){const r=M(e,t.plainT);i.push(...(0,Si.Nn)(e.formSettings,r))}return i},Li=(0,Ci.A)(({rootWidgetT:e,layoutStore:t})=>{const i=(0,a.useRef)(null),s=(0,d.g)(),n=(0,a.useMemo)(()=>{const{typeId:t,widgetId:i}=s,r=P(t,li);return r?{value:Di(i,r),definitions:Bi(r,e),widgetInfo:r}:null},[]),l=(0,a.useCallback)((e,i)=>{const{name:r}=i,a={name:r,widget:Ei(i,["name"])},{typeId:n,widgetId:o}=s;return o?t.getState().updateWidget(o,a):t.getState().createWidget((e=>`${e}_${(0,D.h)(1,1e6)}`)(n),a,n),Promise.resolve()},[]);if(!n)return null;const{value:c,widgetInfo:h,definitions:u}=n,{icon:p}=h,{t:f}=e;return(0,r.jsxs)(wi.A,{className:"home-widget",title:I(h,e.plainT),onApprove:()=>i.current.save(),icon:p,children:[(0,r.jsx)(ki.A,{ref:i,sourceValue:c,fieldDefinitions:u,onSave:l}),(0,r.jsx)(o.A,{description:f("widgetPositionHint","Widgets and their positions are browser-specific"),icon:g.A.INFO})]})},"/widget/:typeId/:widgetId?");var Ti=i(50051),Pi={};Pi.styleTagTransform=ne(),Pi.setAttributes=ie(),Pi.insert=ee().bind(null,"head"),Pi.domAPI=J(),Pi.insertStyleElement=ae(),$()(Ti.A,Pi),Ti.A&&Ti.A.locals&&Ti.A.locals;var Mi=i(30291),Ii={};Ii.styleTagTransform=ne(),Ii.setAttributes=ie(),Ii.insert=ee().bind(null,"head"),Ii.domAPI=J(),Ii.insertStyleElement=ae(),$()(Mi.A,Ii),Mi.A&&Mi.A.locals&&Mi.A.locals;var Ri=i(11837),zi={};zi.styleTagTransform=ne(),zi.setAttributes=ie(),zi.insert=ee().bind(null,"head"),zi.domAPI=J(),zi.insertStyleElement=ae(),$()(Ri.A,zi),Ri.A&&Ri.A.locals&&Ri.A.locals;const Oi=(0,E.WidthProvider)(E.Responsive),Ni=(0,a.memo)(function(){const[e,t]=(0,a.useState)("lg"),{t:i}=(0,A.Bd)(),s=(0,w.lw)(i,m.KV.WIDGETS,li.map(e=>e.typeId)),n=(0,a.useMemo)(()=>{const e=(0,di.v)()((e,t)=>({layouts:{},init:function(){let t={};const i=(0,B.H5)(bi);i&&i.items&&4===i.version&&(t=i.items),e({layouts:fi(t)})},createWidget:(i,r,a)=>{O(i,r),e({layouts:gi(t().layouts,P(a,li),i)})},updateWidget:(i,r)=>{O(i,r),e({layouts:Object.assign({},t().layouts)})},removeWidget:i=>{(0,B.N_)(L(i)),(0,B.N_)(T(i));const r=Object.keys(hi).reduce((e,r)=>(t().layouts[r]&&(e[r]=(0,ci.reject)(t().layouts[r],{i})),e),{});e({layouts:r})},onLayoutChange:(t,i)=>{(0,B.MS)(bi,{version:4,items:i}),e({layouts:Object.assign({},i)})}}));return e.getState().init(),e},[]),o=n(e=>e.layouts),l=(0,a.useMemo)(()=>o[e].map(e=>((e,t,i)=>{const a=P(e.i,li);if(S()(a,"Widget info missing"),!a)return null;const s=z(e.i,a);return(0,r.jsx)(Ai,{componentId:e.i,widgetInfo:a,settings:s,rootWidgetT:t,layoutStore:i},e.i)})(e,s,n.getState())).filter(e=>e),[o,e]);return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Oi,{className:"ui cards layout",rowHeight:50,onLayoutChange:(e,t)=>{n.getState().onLayoutChange(e,t)},onBreakpointChange:e=>{t(e)},breakpoints:ui,cols:hi,draggableHandle:".react-grid-item .header-row .header",layouts:o,useCSSTransforms:!1,measureBeforeMount:!1,children:l}),(0,r.jsx)(Li,{rootWidgetT:s,layoutStore:n})]})});var Hi=i(61021),Fi={};Fi.styleTagTransform=ne(),Fi.setAttributes=ie(),Fi.insert=ee().bind(null,"head"),Fi.domAPI=J(),Fi.insertStyleElement=ae(),$()(Hi.A,Fi),Hi.A&&Hi.A.locals&&Hi.A.locals;class _i extends a.Component{render(){return(0,r.jsxs)("div",{id:"home",children:[(0,r.jsx)(l,{}),(0,r.jsx)(k,{}),(0,r.jsx)(c.A,{}),(0,r.jsx)(Ni,Object.assign({},this.props))]})}}_i.displayName="Home";const Yi=_i},86027:(e,t,i)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),t.default=void 0;var r=function(e){if("function"==typeof WeakMap){var t=new WeakMap;new WeakMap}return function(e){if(e&&e.__esModule)return e;var i,r,a={__proto__:null,default:e};if(null===e||"object"!=typeof e&&"function"!=typeof e)return a;if(i=t){if(i.has(e))return i.get(e);i.set(e,a)}for(const t in e)"default"!==t&&{}.hasOwnProperty.call(e,t)&&((r=(i=Object.defineProperty)&&Object.getOwnPropertyDescriptor(e,t))&&(r.get||r.set)?i(a,t,r):a[t]=e[t]);return a}(e)}(i(96540)),a=u(i(5556)),s=u(i(40961)),n=i(71508),o=i(71089),l=i(81726),c=i(77056),d=u(i(6888)),h=u(i(18696));function u(e){return e&&e.__esModule?e:{default:e}}function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)({}).hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},g.apply(null,arguments)}function p(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}class f extends r.Component{static getDerivedStateFromProps(e,t){let{position:i}=e,{prevPropsPosition:r}=t;return!i||r&&i.x===r.x&&i.y===r.y?null:((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:i,prevPropsPosition:r}),{x:i.x,y:i.y,prevPropsPosition:{...i}})}constructor(e){super(e),p(this,"onDragStart",(e,t)=>{if((0,h.default)("Draggable: onDragStart: %j",t),!1===this.props.onStart(e,(0,l.createDraggableData)(this,t)))return!1;this.setState({dragging:!0,dragged:!0})}),p(this,"onDrag",(e,t)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",t);const i=(0,l.createDraggableData)(this,t),r={x:i.x,y:i.y,slackX:0,slackY:0};if(this.props.bounds){const{x:e,y:t}=r;r.x+=this.state.slackX,r.y+=this.state.slackY;const[a,s]=(0,l.getBoundPosition)(this,r.x,r.y);r.x=a,r.y=s,r.slackX=this.state.slackX+(e-r.x),r.slackY=this.state.slackY+(t-r.y),i.x=r.x,i.y=r.y,i.deltaX=r.x-this.state.x,i.deltaY=r.y-this.state.y}if(!1===this.props.onDrag(e,i))return!1;this.setState(r)}),p(this,"onDragStop",(e,t)=>{if(!this.state.dragging)return!1;if(!1===this.props.onStop(e,(0,l.createDraggableData)(this,t)))return!1;(0,h.default)("Draggable: onDragStop: %j",t);const i={dragging:!1,slackX:0,slackY:0};if(Boolean(this.props.position)){const{x:e,y:t}=this.props.position;i.x=e,i.y=t}this.setState(i)}),this.state={dragging:!1,dragged:!1,x:e.position?e.position.x:e.defaultPosition.x,y:e.position?e.position.y:e.defaultPosition.y,prevPropsPosition:{...e.position},slackX:0,slackY:0,isElementSVG:!1},!e.position||e.onDrag||e.onStop||console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){void 0!==window.SVGElement&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.state.dragging&&this.setState({dragging:!1})}findDOMNode(){return this.props?.nodeRef?.current??s.default.findDOMNode(this)}render(){const{axis:e,bounds:t,children:i,defaultPosition:a,defaultClassName:s,defaultClassNameDragging:c,defaultClassNameDragged:h,position:u,positionOffset:p,scale:f,...b}=this.props;let m={},x=null;const v=!Boolean(u)||this.state.dragging,y=u||a,A={x:(0,l.canDragX)(this)&&v?this.state.x:y.x,y:(0,l.canDragY)(this)&&v?this.state.y:y.y};this.state.isElementSVG?x=(0,o.createSVGTransform)(A,p):m=(0,o.createCSSTransform)(A,p);const w=(0,n.clsx)(i.props.className||"",s,{[c]:this.state.dragging,[h]:this.state.dragged});return r.createElement(d.default,g({},b,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),r.cloneElement(r.Children.only(i),{className:w,style:{...i.props.style,...m},transform:x}))}}t.default=f,p(f,"displayName","Draggable"),p(f,"propTypes",{...d.default.propTypes,axis:a.default.oneOf(["both","x","y","none"]),bounds:a.default.oneOfType([a.default.shape({left:a.default.number,right:a.default.number,top:a.default.number,bottom:a.default.number}),a.default.string,a.default.oneOf([!1])]),defaultClassName:a.default.string,defaultClassNameDragging:a.default.string,defaultClassNameDragged:a.default.string,defaultPosition:a.default.shape({x:a.default.number,y:a.default.number}),positionOffset:a.default.shape({x:a.default.oneOfType([a.default.number,a.default.string]),y:a.default.oneOfType([a.default.number,a.default.string])}),position:a.default.shape({x:a.default.number,y:a.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),p(f,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})},88569:(e,t,i)=>{"use strict";i.d(t,{H:()=>n,U:()=>s});var r=i(41110),a=function(e,t,i,r){return new(i||(i=Promise))(function(a,s){function n(e){try{l(r.next(e))}catch(e){s(e)}}function o(e){try{l(r.throw(e))}catch(e){s(e)}}function l(e){var t;e.done?a(e.value):(t=e.value,t instanceof i?t:new i(function(e){e(t)})).then(n,o)}l((r=r.apply(e,t||[])).next())})};const s=(e,t)=>a(void 0,void 0,void 0,function*(){try{return(yield(0,r.F)(`${getBasePath()}temp`,{method:"POST",headers:{"X-Authorization":t,Authorization:t},body:e})).headers.get("Location")}catch(e){throw e}}),n=(e,t,...i)=>a(void 0,[e,t,...i],void 0,function*(e,t,i={isJSON:!0}){try{const a=yield(0,r.F)((e=>`${window.location.origin}${getBasePath()}proxy?url=${encodeURIComponent(e)}`)(e),Object.assign({headers:{"X-Authorization":t.auth_token,"Cache-Control":"no-store, must-revalidate, max-age=0"}},i));return(yield i.isJSON)?a.json():a.text()}catch(t){throw console.error(`CORS HTTP request failed (${e})`,t),t}})},89478:(e,t,i)=>{"use strict";i.d(t,{Hi:()=>u,ew:()=>d});var r=i(58059),a=i(4425),s=i(86038),n=i(67749),o=i(44054);const l={id:"search",displayName:"Search (foreground)",access:s.US.SEARCH,icon:a.A.SEARCH,handler:({itemData:e,location:t,navigate:i})=>(0,o.e)(e,t,i)},c={id:"searchAlternates",displayName:"Search for alternates",access:s.US.QUEUE_EDIT,icon:a.A.SEARCH_ALTERNATES,filter:({itemData:e})=>0===e.time_finished,handler:({itemData:e,socket:t})=>t.post(`${r.A.FILES_URL}/${e.id}/search`)},d={id:"remove",displayName:"Remove",access:s.US.QUEUE_EDIT,icon:a.A.REMOVE,confirmation:{content:"Are you sure that you want to remove the file {{item.name}}?",approveCaption:"Remove file",rejectCaption:"Don't remove",checkboxCaption:"Remove on disk"},handler:({itemData:e,socket:t},i)=>t.post(`${r.A.FILES_URL}/${e.id}/remove`,{remove_finished:i}),notifications:{onSuccess:"File {{item.name}} was removed from queue"}},h={search:l,searchAlternates:c,remove:d},u={moduleData:{moduleId:n.KV.QUEUE,subId:"file"},actions:h}},94030:(e,t,i)=>{"use strict";t.__esModule=!0,t.cloneElement=function(e,t){return t.style&&e.props.style&&(t.style=n(n({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),a.default.cloneElement(e,t)};var r,a=(r=i(96540))&&r.__esModule?r:{default:r};function s(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,r)}return i}function n(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?s(Object(i),!0).forEach(function(t){o(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):s(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function o(e,t,i){return(t=function(e){var t=function(e){if("object"!=typeof e||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},98397:(e,t,i)=>{"use strict";i.d(t,{A:()=>p});var r=i(74848),a=i(96540),s=i(32728),n=i(96529),o=i(4425),l=i(57969),c=i(67749),d=i(42695),h=i(32389),u=i(39364),g=i(80377);const p=({alwaysShow:e})=>{const t=(0,u.li)(e=>e.settings.getValue(g.x.NO_INSTALL_PROMPT)),i=(0,u.CU)(),p=(0,a.useContext)(l.J),{t:f}=(0,h.Bd)();return p?!e&&t?null:(0,r.jsx)(s.A,{title:(0,d.Tl)("Install as local application",f,c.KV.COMMON),description:(0,r.jsxs)("div",{className:"install-prompt",children:[(0,r.jsx)("p",{children:f((0,d.j2)("pwaInstallDesc",c.KV.COMMON),"This web application can be installed locally, providing a better user experience")}),(0,r.jsx)(n.A,{className:"primary",caption:(0,d.Tl)("Install",f,c.KV.COMMON),onClick:()=>p(),icon:o.A.CREATE}),!e&&(0,r.jsx)(n.A,{caption:(0,d.Tl)("Don't install",f,c.KV.COMMON),onClick:()=>i.settings.setValue(g.x.NO_INSTALL_PROMPT,!0)})]})}):null}}}]);
//# sourceMappingURL=home.759e86dc641515d465d4.chunk.js.map