1/*! 2 * 3 * Premium Financial Widgets 4 * ------------------------- 5 * Version 4.6.2, built on Monday, June 15, 2026 6 * Copyright (c) FinancialPlugins.com <[email protected]>. All rights reserved 7 * Demo: https://widgets.financialplugins.com 8 * Purchase (WordPress version): https://1.envato.market/az97R 9 * Purchase (PHP version): https://1.envato.market/AQ17o 10 * 11 */ 12"use strict";(self.psmw25793=self.psmw25793||[]).push([[7623],{3235:(e,t,i)=>{i.d(t,{I:()=>o});var s=i(83460),a=i(78135),r=i(3569),n=i(43545);function o(e,t){if(null!=t){t=""+t;let i,s=(t=n.g.escape(t)).match(/\{([^}]+)\}/g);if(s)for(i=0;i<s.length;i++){let a=l(e,s[i].replace(/\{([^}]+)\}/,"$1"),"");null==a&&(a=""),t=t.split(s[i]).join(a)}t=n.g.unescape(t)}else t="";return t}function l(e,t,i){let r;const n=e.dataItem;let o,h=[],u=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g;for(;o=u.exec(t),null!==o;)if(o[3]){h.push({prop:o[3]});const t=e.getDateFormatter().get("dateFields",[]),i=e.getNumberFormatter().get("numericFields",[]),s=e.getDurationFormatter().get("durationFields",[]);-1!==t.indexOf(o[3])?h.push({method:"formatDate",params:[]}):-1!==i.indexOf(o[3])?h.push({method:"formatNumber",params:[]}):-1!==s.indexOf(o[3])&&h.push({method:"formatDuration",params:[]})}else{let e=[];if(""!=a.Bq(o[2])){let t,i=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g;for(;t=i.exec(o[2]),null!==t;)e.push(t[1]||t[2]||t[3])}h.push({method:o[1],params:e})}if(n){r=d(e,h,n._settings),(null==r||s.Gv(r))&&(r=d(e,h,n));let a=n.dataContext;null==r&&a&&(r=d(e,h,a),null==r&&(r=d(e,[{prop:t}],a)),null==r&&a.dataContext&&(r=d(e,h,a.dataContext))),null==r&&n.component&&n.component.dataItem!==n&&(r=l(n.component,t,i))}return null==r&&(r=d(e,h,e)),null==r&&e.parent&&(r=l(e.parent,t,i)),r}function h(e,t){const i=e.getPrivate("customData");if(s.Gv(i))return i[t]}function d(e,t,i,n){let o=i,l=!1;for(let a=0,d=t.length;a<d;a++){let d=t[a];if(d.prop){if(o instanceof r.k){let e=o.get(d.prop);null==e&&(e=o.getPrivate(d.prop)),null==e&&(e=h(o,d.prop)),null==e&&(e=o[d.prop]),o=e}else if(o.get){let e=o.get(d.prop);null==e&&(e=o[d.prop]),o=e}else o=o[d.prop];if(null==o)return}else switch(d.method){case"formatNumber":let t=s.Ro(o);null!=t&&(o=e.getNumberFormatter().format(t,n||d.params[0]||void 0),l=!0);break;case"formatDate":let a=s.ay(o);if(!s.$P(a)||s.yr(a.getTime()))return;null!=a&&(o=e.getDateFormatter().format(a,n||d.params[0]||void 0),l=!0);break;case"formatDuration":let r=s.Ro(o);null!=r&&(o=e.getDurationFormatter().format(r,n||d.params[0]||void 0,d.params[1]||void 0),l=!0);break;case"urlEncode":case"encodeURIComponent":o=encodeURIComponent(o);break;default:o[d.method]&&o[d.method].apply(i,d.params)}}if(!l){let t=[{method:"",params:n}];if(null==n)s.Et(o)?(t[0].method="formatNumber",t[0].params=""):s.$P(o)&&(t[0].method="formatDate",t[0].params="");else{let e=a.gV(n);"number"===e?t[0].method="formatNumber":"date"===e?t[0].method="formatDate":"duration"===e&&(t[0].method="formatDuration")}t[0].method&&(o=d(e,t,o))}return o}},3569:(e,t,i)=>{i.d(t,{k:()=>m});var s=i(15215),a=i(34647),r=i(77742),n=i(16611),o=i(29799),l=i(97529),h=i(92420),d=i(78135),u=i(98379),c=i(83460),g=i(72971),p=i(21050);class _ extends o.Q{constructor(e){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=e}_makePointerEvent(e,t){return{type:e,originalEvent:t.event,point:t.point,simulated:t.simulated,native:t.native,target:this._sprite}}_onRenderer(e,t){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[e];if(void 0===i){const s=this._sprite._display.on(e,e=>{t.call(this,e)});i=this._rendererDisposers[e]=new l.Wr(()=>{delete this._rendererDisposers[e],s.dispose()})}return i.increment()}_on(e,t,i,s,a,r){const n=super._on(e,t,i,s,a,r),o=_.RENDERER_EVENTS[t];return void 0!==o&&(n.disposer=new l.ZT([n.disposer,this._onRenderer(t,o)])),n}stopParentDispatch(){this._dispatchParents=!1}
vendor: 6,569 bytes, line 12
12dispatchParents(e,t){const i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(e,t),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(e,t)}finally{this._dispatchParents=i}}}Object.defineProperty(_,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{click:function(e){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",e))&&this.dispatch("click",this._makePointerEvent("click",e))},rightclick:function(e){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",e))},middleclick:function(e){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",e))},dblclick:function(e){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",e))},pointerover:function(e){const t=this._sprite;let i=!0;if(t.getPrivate("trustBounds")){t._getBounds();const s=t.globalBounds();if(t.isType("Graphics")){const e=t.get("strokeWidth",1)/2;e>=1&&(s.left-=e,s.right+=e,s.top-=e,s.bottom+=e)}p.HQ(e.point,s)||(i=!1,t._root._renderer.removeHovering(t._display))}i&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",e))},pointerout:function(e){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",e))},pointerdown:function(e){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",e))},pointerup:function(e){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",e))},globalpointerup:function(e){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",e))},globalpointermove:function(e){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",e))},wheel:function(e){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:e.event,point:e.point})}}});class m extends a.wC{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_statesHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(e){this._markDirtyKey(e)}_markDirtyKey(e){super._markDirtyKey(e),"x"!=e&&"y"!=e&&"dx"!=e&&"dy"!=e||(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(e){super._markDirtyPrivateKey(e),"x"!=e&&"y"!=e||this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new _(this)}_processTemplateField(){let e;const t=this.get("templateField");if(t){const i=this.dataItem;if(i){const s=i.dataContext;s&&(e=s[t],e instanceof r.Bj||!e||(e=r.Bj.new(e)))}}this._templateField!==e&&(this._removeTemplateField(),this._templateField=e,e&&e._setObjectTemplate(this),this._applyTemplates())}_setDataItem(e){const t=this._dataItem;this._dataItem=e,this._processTemplateField();const i="dataitemchanged";e!=t&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:t,newDataItem:e})}set dataItem(e){this._setDataItem(e)}get dataItem(){if(this._dataItem)return this._dataItem;{let e=this._parent;for(;e;){if(e._dataItem)return e._dataItem;e=e._parent}}}_addPercentageSizeChildren(){let e=this.parent;e&&(this.get("width")instanceof n.QE||this.get("height")instanceof n.QE?u.JJ(e._percentageSizeChildren,this):u.dm(e._percentageSizeChildren,this))}_addPercentagePositionChildren(){let e=this.parent;e&&(this.get("x")instanceof n.QE||this.get("y")instanceof n.QE?u.JJ(e._percentagePositionChildren,this):u.dm(e._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){const e=this._localBounds;if(e){const t=this.get("centerX");null!=t&&(this._display.pivot.x=e.left+d.JY(t,e.right-e.left));const i=this.get("centerY");null!=i&&(this._display.pivot.y=e.top+d.JY(i,e.bottom-e.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){const e=this._prevSettings.tooltip;e&&e.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){const e=this._tooltipMoveDp;
12e&&(e.dispose(),this._tooltipMoveDp=void 0);const t=this._tooltipPointerDp;t&&(t.dispose(),this._tooltipPointerDp=void 0),"pointer"==this.get("tooltipPosition")&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",e=>{this.showTooltip(e.point)})),this._tooltipPointerDp=new l.ZT([this.events.on("pointerover",()=>{this._tooltipMoveDp=this.events.on("globalpointermove",e=>{this.showTooltip(e.point)})}),this.events.on("pointerout",()=>{const e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0)})]))}}_handleStates(){this._statesHandled||(this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility()),this._statesHandled=!0)}_changed(){super._changed();const e=this._display,t=this.events;if(this.isDirty("draggable")){const i=this.get("draggable");i?(this.set("interactive",!0),this._dragDp=new l.ZT([t.on("pointerdown",e=>{this.dragStart(e)}),t.on("globalpointermove",e=>{this.dragMove(e)}),t.on("globalpointerup",e=>{this.dragStop(e)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),e.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){const e=this.get("tooltipText"),i=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(e||i)&&("click"==s?(this._tooltipDp=new l.ZT([t.on("click",()=>{this.setTimeout(()=>{const e=this.getTooltip();e&&!e.isHidden()&&e.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()},10)}),d.q2(document,"click",e=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):"always"==s||(this._tooltipDp=new l.ZT([t.on("pointerover",()=>{this.showTooltip()}),t.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let e=this.get("toggleKey");e&&"none"!=e?this._toggleDp=t.on("click",()=>{this._isDragging||this.set(e,!this.get(e))}):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(e.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),e.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),e.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?e.visible=!0:(e.visible=!1,this.hideTooltip()),this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();const e=this.parent;e&&(this.isDirty("width")&&this.get("width")instanceof n.QE||this.isDirty("height")&&this.get("height")instanceof n.QE)&&(e.markDirty(),e._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){const t=this.get("wheelable");t&&this.set("interactive",!0),e.wheelable=!!t}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(e.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){const e=this.get("blur",0);0!=e&&(i+=" blur("+e+"px)")}if(this.isDirty("saturate")){const e=this.get("saturate",1);1!=e&&(i+=" saturate("+e+")")}if(this.isDirty("brightness")){const e=this.get("brightness",1);1!=e&&(i+=" brightness("+e+")")}if(this.isDirty("contrast")){const e=this.get("contrast",1);1!=e&&(i+=" contrast("+e+")")}if(this.isDirty("sepia")){const e=this.get("sepia",0);0!=e&&(i+=" sepia("+e+")")}if(this.isDirty("hue")){const e=this.get("hue",0);0!=e&&(i+=" hue-rotate("+e+"deg)")}if(this.isDirty("invert")){const e=this.get("invert",0);0!=e&&(i+=" invert("+e+")")}if(i&&(e.filter=i),this.isDirty("cursorOverStyle")&&(e.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new l.ZT([t.on("focus",()=>{this.showTooltip()}),t.on("blur",()=>{this.hideTooltip()})]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(t.on("blur",()=>{this.setPrivateRaw("touchHovering",!1)})),this._disposers.push(t.once("boundschanged",()=>{this.markDirtyAccessibility()}))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControl
12s"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(e.exportable=this.get("exportable")),this.isDirty("interactive")){const e=this.events;this.get("interactive")&&!e.isDisposed()?this._hoverDp=new l.ZT([e.on("click",e=>{d.kH(e.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout(()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})},10))}),e.on("globalpointerup",e=>{d.kH(e.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:e.target,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})),this._isDown&&this._handleUp(e)}),e.on("pointerover",()=>{this._handleOver()}),e.on("pointerout",()=>{this._handleOut()}),e.on("pointerdown",e=>{this._handleDown(e)})]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),"always"==this.get("showTooltipOn")&&this._display.visible&&this.showTooltip()}dragStart(e){this._dragEvent=e,this.events.stopParentDispatch()}dragStop(e){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;const t="dragstop";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(e){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;const t=d.Dn(e.originalEvent);delete this._downPoints[t],0==g.HP(this._downPoints).length&&(this._isDown=!1)}}_hasMoved(e){const t=d.Dn(e.originalEvent),i=this._downPoints[t];if(i){const t=Math.abs(i.x-e.point.x),s=Math.abs(i.y-e.point.y);return t>5||s>5}return!1}_hasDown(){return g.HP(this._downPoints).length>0}_handleDown(e){const t=this.parent;if(t&&!this.get("draggable")&&t._handleDown(e),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:e.point.x,y:e.point.y},this._isDown=!0;const t=d.Dn(e.originalEvent);this._downPoints[t]={x:e.point.x,y:e.point.y}}}dragMove(e){let t=this._dragEvent;if(t){if(t.simulated&&!e.simulated)return!0;let i=0,s=this.parent,a=1;for(;null!=s;)i+=s.get("rotation",0),s=s.parent,s&&(a*=s.get("scale",1));let r=(e.point.x-t.point.x)/a,n=(e.point.y-t.point.y)/a;const o=this.events;if(t.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}if(this._isDragging){let t=this._dragPoint;this.set("x",t.x+r*p.gn(i)+n*p.F8(i)),this.set("y",t.y+n*p.gn(i)-r*p.F8(i));const s="dragged";o.isEnabled(s)&&o.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}else if(Math.hypot(r,n)>5){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};const t="dragstart";o.isEnabled(t)&&o.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let e=this.parent,t=0;for(;;){if(!e)return t;++t,e=e.parent}}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){const e=this._display;
vendor: 5,042 bytes, line 12
12if(this.get("isMeasured")){this._root._addDirtyBounds(this),e.isMeasured=!0,e.invalidateBounds();const t=this.parent;t&&"absolute"!=this.get("position")&&(null==t.get("width")||null==t.get("height")||t.get("layout"))&&t.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){const e=this._adjustedLocalBounds;let t;if(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden")?(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),t=this._adjustedLocalBounds):(t={left:0,right:0,top:0,bottom:0},this._localBounds=t,this._adjustedLocalBounds=t),!e||e.left!==t.left||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom){const e="boundschanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(e){let t=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));c.Et(t)&&e.right-e.left<t&&(e.right=e.left+t),c.Et(i)&&e.bottom-e.top<i&&(e.bottom=e.top+i);let s=this.getPrivate("width"),a=this.getPrivate("height");c.Et(s)&&(s>0?e.right=e.left+s:e.left=e.right+s),c.Et(a)&&(a>0?e.bottom=e.top+a:e.top=e.bottom+a)}_removeParent(e){e&&(e.children.removeValue(this),u.dm(e._percentageSizeChildren,this),u.dm(e._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._statesHandled=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(e){if(!this.isDisposed()){const t=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&t){const a=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if("fixed"!=a&&e||(this._display._setMatrix(),e=this.toGlobal(r._getTooltipPoint())),"pointer"==a){const t=this.getPrivate("lastTooltipCoords");if(t&&t.x==e.x&&t.y==e.y)return;this.setPrivate("lastTooltipCoords",e)}t.set("pointTo",e),t.set("tooltipTarget",r),t.get("x")||t.set("x",e.x),t.get("y")||t.set("y",e.y),i&&t.label.set("text",i),s&&t.label.set("html",s);const n=this.dataItem;if(n&&t.label._setDataItem(n),"always"==this.get("showTooltipOn")&&(e.x<0||e.x>this._root.width()||e.y<0||e.y>this._root.height()))return void this.hideTooltip();t.label.text.markDirtyText();const o=t.show();return this.setPrivateRaw("showingTooltip",!0),o}}}hideTooltip(){const e=this.getTooltip();if(e&&(this.removePrivate("lastTooltipCoords"),e.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==e)){let t=e.get("keepTargetHover")&&0==e.get("stateAnimationDuration",0)?400:void 0;const i=e.hide(t);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){const e=this._localBounds;if(e){let t=0,i=0;return this.get("isMeasured")?(t=e.left+d.JY(this.get("tooltipX",0),e.right-e.left),i=e.top+d.JY(this.get("tooltipY",0),e.bottom-e.top)):(t=d.JY(this.get("tooltipX",0),this.width()),i=d.JY(this.get("tooltipY",0),this.height())),{x:t,y:i}}return{x:0,y:0}}getTooltip(){let e=this.get("tooltip");if(e)return e;{let e=this.parent;if(e)return e.getTooltip()}}_updatePosition(){const e=this.parent;let t=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),a=this.getPrivate("x"),r=0,o=0;const l=this.get("position");s instanceof n.QE&&(s=e?e.innerWidth()*s.value+e.get("paddingLeft",0):0),c.Et(s)?r=s+t:null!=a?r=a:e&&"relative"==l&&(r=e.get("paddingLeft",0)+t);let h=this.get("y"),d=this.getPrivate("y");h instanceof n.QE&&(h=e?e.innerHeight()*h.value+e.get("paddingTop",0):0),c.Et(h)?o=h+i:null!=d?o=d:e&&"relative"==l&&(o=e.get("paddingTop",0)+i);const u=this._display;if(u.x!=r||u.y!=o){u.invalidateBounds(),u.x=r,u.y=o;const e="positionchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let e=this.get("x"),t=this.getPrivate("x");const i=this.parent;return i?e instanceof n.QE?d.JY(e,i.innerWidth())+i.get("paddingLeft",0):c.Et(e)?e:null!=t?t:i.get("paddingLeft",this._display.x):this._display.x}y(){let e=this.getPrivate("y");if(null!=e)return e;let t=this.get("y");const i=this.parent;return i?t instanceof n.QE?d.JY(t,i.innerHeight())+i.get("paddingTop",0):c.Et(t)?t:null!=e?e:i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);const e=this.get("tooltip");e&&e.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){const e=this._adjustedLocalBounds,t=this.x(),i=this.y();
12return{left:e.left+t,right:e.right+t,top:e.top+i,bottom:e.bottom+i}}globalBounds(){const e=this.localBounds(),t=this.toGlobal({x:e.left,y:e.top}),i=this.toGlobal({x:e.right,y:e.top}),s=this.toGlobal({x:e.right,y:e.bottom}),a=this.toGlobal({x:e.left,y:e.bottom});return{left:Math.min(t.x,i.x,s.x,a.x),top:Math.min(t.y,i.y,s.y,a.y),right:Math.max(t.x,i.x,s.x,a.x),bottom:Math.max(t.y,i.y,s.y,a.y)}}_onShow(e){}_onHide(e){}appear(e,t){return(0,s.sH)(this,void 0,void 0,function*(){return yield this.hide(0),t?new Promise((i,s)=>{this.setTimeout(()=>{i(this.show(e))},t)}):this.show(e)})}show(e){return(0,s.sH)(this,void 0,void 0,function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(e);const t=this.states.applyAnimate("default",e);yield(0,h.M9)(t),this._isShowing=!1}})}hide(e){return(0,s.sH)(this,void 0,void 0,function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let t=this.states.lookup("hidden");t||(t=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(e);const i=this.states.applyAnimate("hidden",e);yield(0,h.M9)(i),this._isHiding=!1}})}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){const e=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*e:e}compositeScale(){const e=this.get("scale",1);return this._parent?this._parent.compositeScale()*e:e}compositeRotation(){const e=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+e:e}width(){let e=this.get("width"),t=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),a=0;if(c.Et(s))a=s;else if(null==e)this._adjustedLocalBounds&&(a=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(e instanceof n.QE){const t=this.parent;a=t?t.innerWidth()*e.value:this._root.width()*e.value}else c.Et(e)&&(a=e);return c.Et(i)&&(a=Math.max(i,a)),c.Et(t)&&(a=Math.min(t,a)),a}maxWidth(){let e=this.get("maxWidth",this.getPrivate("maxWidth"));if(c.Et(e))return e;{let e=this.get("width");if(c.Et(e))return e}const t=this.parent;return t?t.innerWidth():this._root.width()}maxHeight(){let e=this.get("maxHeight",this.getPrivate("maxHeight"));if(c.Et(e))return e;{let e=this.get("height");if(c.Et(e))return e}const t=this.parent;return t?t.innerHeight():this._root.height()}height(){let e=this.get("height"),t=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),a=0;if(c.Et(s))a=s;else if(null==e)this._adjustedLocalBounds&&(a=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(e instanceof n.QE){const t=this.parent;a=t?t.innerHeight()*e.value:this._root.height()*e.value}else c.Et(e)&&(a=e);return c.Et(i)&&(a=Math.max(i,a)),c.Et(t)&&(a=Math.min(t,a)),a}_findStaticTemplate(e){return this._templateField&&e(this._templateField)?this._templateField:super._findStaticTemplate(e)}_walkParents(e){this._parent&&this._walkParent(e)}_walkParent(e){this._parent&&this._parent._walkParent(e),e(this)}get parent(){return this._parent}_setParent(e,t=!1){const i=this._parent;e!==i&&(this.markDirtyBounds(),e.markDirty(),this._parent=e,t&&(this._removeParent(i),e&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(e){return this._display.toGlobal(e)}toLocal(e){return this._display.toLocal(e)}_getDownPoint(){const e=this._getDownPointId();if(e)return this._downPoints[e]}_getDownPointId(){if(this._downPoints)return g.M2(this._downPoints,(e,t)=>e>t?1:e<t?-1:0)[0]}toFront(){const e=this.parent;e&&e.children.moveValue(this,e.children.length-1)}toBack(){const e=this.parent;e&&e.children.moveValue(this,0)}}Object.defineProperty(m,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"}),Object.defineProperty(m,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.wC.classNames.c
12oncat([m.className])})},14350:(e,t,i)=>{function s(e){return e}function a(e){return e*e*e}function r(e){return function(t){return 1-e(1-t)}}i.d(t,{FD:()=>r,sn:()=>s,tA:()=>a});let n=2*Math.PI,o=.3/n;Math.asin(1)},15152:(e,t,i)=>{i.d(t,{c:()=>c});var s=i(73635),a=i(32270),r=i(83460),n=i(21050),o=i(35530),l=i(98379),h=i(72971),d=i(78135),u=i(98849);class c extends a.F{constructor(){super(...arguments),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_seriesDataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_groupingCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_intervalDuration",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_baseDuration",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_intervalMax",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_intervalMin",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_afterNew(){this._settings.themeTags=d.kE(this._settings.themeTags,["axis"]),super._afterNew(),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(e){this.setPrivateRaw("baseInterval",e),this._baseDuration=u.SJ(e)}_fixZoomFactor(){const e=this.get("maxZoomFactor");null!=e&&e!=1/0?this.setPrivateRaw("maxZoomFactor",e):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(r.Et(e)&&r.Et(t)){this._fixZoomFactor();const e=this.getPrivate("groupInterval");if(e?this._setBaseInterval(e):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let e=this.get("groupInterval");e&&(this.setRaw("groupIntervals",[e]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))l.__(this.series,e=>
12{this._groupSeriesData(e)}),this._handleRangeChange();else{let e=this.get("baseInterval"),t=e.timeUnit+e.count;l.__(this.series,e=>{e.setDataSet(t),e.resetGrouping()}),this._setBaseInterval(e),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(e){if(this.get("groupData")&&!e.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let t=[],i=this.baseMainDuration(),a=this.get("groupIntervals");l.__(a,e=>{u.SJ(e)>i&&t.push(e)}),e._dataSets={};const n=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let o;const d=e.get("baseAxis");e.get("xAxis")===d?o=e._valueYFields:e.get("yAxis")===d&&(o=e._valueXFields);let c=e._mainDataItems,g=this.get("baseInterval"),p=g.timeUnit+g.count;e._dataSets[p]=c;const _=e.get("groupDataCallback");let m=e.get("groupDataWithOriginals",!1);_&&(m=!0),l.__(t,t=>{let i,a=-1/0,d=t.timeUnit+t.count;e._dataSets[d]=[];let g={},p={},b={},f={};l.__(o,t=>{g[t]=0,p[t]=0,b[t]=e.get(t+"Grouped"),f[t]=t+"Working"});let v,y,x=u.Ds(t.timeUnit);c[0]&&(v=c[0].get(n)),l.__(c,c=>{let w,P=c.get(n),D=u.d_(P,t.timeUnit,t.count,this._root,v);a<D-x/24?(w=h.C(c.dataContext),i=new s.s(e,w,e._makeDataItem(w)),i.setRaw(n,D),e._dataSets[d].push(i),l.__(o,e=>{let t=c.get(e);r.Et(t)?(i.setRaw(e,t),i.setRaw(f[e],t),p[e]=1,g[e]=t):(g[e]=0,p[e]=0)}),m&&i.set("originals",[c]),_&&y&&_(y,t),y=i):(l.__(o,e=>{let t=b[e],s=c.get(e);if(null!=s){let a=i.get(e);switch(t){case"close":i.setRaw(e,s);break;case"sum":i.setRaw(e,a+s);break;case"open":break;case"low":s<a&&i.setRaw(e,s);break;case"high":s>a&&i.setRaw(e,s);break;case"average":p[e]++,g[e]+=s;let t=g[e]/p[e];i.setRaw(e,t);break;case"extreme":Math.abs(s)>Math.abs(a)&&i.setRaw(e,s)}i.setRaw(f[e],i.get(e));let r=h.C(c.dataContext);r[n]=D,i.dataContext=r}}),m&&i.get("originals").push(c)),a=D}),_&&y&&_(y,t)}),e._dataSetId&&e.setDataSet(e._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",()=>{this.markDirtySize()})}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(e){let t=this.get("baseInterval"),i=u.T9(0,e,this.get("groupCount",1/0),this.get("groupIntervals"));return u.SJ(i)<u.SJ(t)&&(i=Object.assign({},t)),i}getIntervalMax(e){return this._intervalMax[e.timeUnit+e.count]}getIntervalMin(e){return this._intervalMin[e.timeUnit+e.count]}_handleRangeChange(){super._handleRangeChange();let e=Math.round(this.getPrivate("selectionMin")),t=Math.round(this.getPrivate("selectionMax"));if(r.Et(e)&&r.Et(t)){if(0==this.get("endLocation")&&(t+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let i=this.get("groupInterval"),s=this.getPrivate("groupInterval"),a=t-e+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this.baseDuration());if(s){let e=u.SJ(s);a=Math.ceil(a/e)*e}if(i||(i=this.getGroupInterval(a)),i&&(!s||s.timeUnit!==i.timeUnit||s.count!==i.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",i),this._setBaseInterval(i);let e=i.timeUnit+i.count;l.__(this.series,t=>{t.get("baseAxis")===this&&t.setDataSet(e)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{const e="groupintervalchanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})})})}}l.__(this.series,i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter");let a=l.wo(i.dataItems,t=>o.UD(t.get(s),e)).index;a>0&&(a-=1),t+=this.baseDuration()*(1-this.get("endLocation",1));let r=l.IU(i.dataItems,e=>o.UD(e.get(s),t)).index,n=r;n>1&&n--;const h=i.dataItems[a],d=i.dataItems[n];let u,c;h&&(c=h.get(s)),d&&(u=d.get(s));let g=!1;null!=u&&null!=c&&(u<e||c>t)&&(g=!0),i.setPrivate("outOfSelection",g),i.setPrivate("startIndex",a),i.setPrivate("adjustedStartIndex",i._adjustStartIndex(a)),i.setPrivate("endIndex",r),this.root.events.once("frameended",()=>{i._markDirtyPrivateKey("adjustedStartIndex")})}})}}_adjustMinMax(e,t,i,s){return{min:e,max:t,step:(t-e)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(e,t){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=e,this._intervalMax[s]=t}_getM(e){return"month"==e||"year"==e||"day"==e?1.05:1.01}_getMinorInterval(e){var t;let i,s=e.count,a=e.timeUnit;return s>1&&(10==s||15==s?s=5:12==s?s=2:6==s?s=1:30==s?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),"week"==a&&(i="week"!=(null===(t=this.getPrivate("baseInterval"))||void 0===t?void 0:t.t
12imeUnit)?{timeUnit:"day",count:1}:{timeUnit:"week",count:1}),i}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(r.Et(e)&&r.Et(t)){const t=this._root,i=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),o=this.getPrivate("baseInterval");let h=i,d=0;const c=this.get("gridIntervals");let g=u.T9(0,a-i,n.gridCount(),c);u.SJ(g)<this.baseDuration()&&(g=Object.assign({},o));const p=u.SJ(g);this._intervalDuration=p;const _=u.qG(g.timeUnit),m=t.utc,b=t.timezone;h=u.d_(i-p,g.timeUnit,g.count,t,e);let f,v=h-p;const y=this.get("dateFormats");this.setPrivateRaw("gridInterval",g);const x=n.get("minorLabelsEnabled"),w=n.get("minorGridEnabled",x);let P,D=0;w&&(P=this._getMinorInterval(g),D=u.SJ(P));let k=0;for(;h<a+p;){let e;this.dataItems.length<d+1?(e=new s.s(this,void 0,{}),this._dataItems.push(e),this.processDataItem(e)):e=this.dataItems[d],this._createAssets(e,[]),this._toggleDataItem(e,!0),e.setRaw("value",h),e.setRaw("labelEndValue",void 0);let i=h+u.Ds(g.timeUnit,g.count*this._getM(g.timeUnit));i=u.d_(i,g.timeUnit,1,t),e.setRaw("endValue",i);let a=new Date(h);f=y[g.timeUnit],_&&this.get("markUnitChange")&&r.Et(v)&&"year"!=g.timeUnit&&u.$_(h,v,_,m,b)&&(f=this.get("periodChangeDateFormats")[g.timeUnit]);const n=e.get("label");n&&n.set("text",t.dateFormatter.format(a,f));let o=g.count;if("week"==g.timeUnit&&e.setRaw("labelEndValue",h),w){o=1;let i=g.timeUnit;"week"==i&&(i="day");let s=h+u.Ds(i,this._getM(i));s=u.d_(s,i,1,t),e.setRaw("labelEndValue",s)}if(this._prepareDataItem(e,o),v=h,h=i,P){const e=P.timeUnit,i=P.count,a=this._getM(e);let r,n=u.d_(v+D*a,e,i,t,v),o=this.get("minorDateFormats",this.get("dateFormats"));for(;n<h-.01*D;){let l;this.minorDataItems.length<k+1?(l=new s.s(this,void 0,{}),this.minorDataItems.push(l),this.processDataItem(l)):l=this.minorDataItems[k],this._createAssets(l,["minor"],!0),this._toggleDataItem(l,!0),l.setRaw("value",n);let h=n+u.Ds(e,i*a);h=u.d_(h,e,1,t),l.setRaw("endValue",h);let d=new Date(n);f=o[e];const c=l.get("label");if(c&&(x?c.set("text",t.dateFormatter.format(d,f)):c.setPrivate("visible",!1)),this._prepareDataItem(l,1),n==r)break;r=n,n=h,k++}}if(h==v)break;d++}for(let e=d;e<this.dataItems.length;e++)this._toggleDataItem(this.dataItems[e],!1);for(let e=k;e<this.minorDataItems.length;e++)this._toggleDataItem(this.minorDataItems[e],!1);l.__(this.series,e=>{e.inited&&e._markDirtyAxes()})}this._updateGhost()}_updateFinals(e,t){this.setPrivateRaw("selectionMinFinal",this.positionToValue(e)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(t))}_getDelta(){this._deltaMinMax=this.baseDuration()/2}_fixMin(e){const t=this.getPrivate("baseInterval"),i=t.timeUnit;let s=u.d_(e,i,t.count,this._root),a=s+u.Ds(i,t.count*this._getM(i));return a=u.d_(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(e){const t=this.getPrivate("baseInterval"),i=t.timeUnit;let s=u.d_(e,i,t.count,this._root),a=s+u.Ds(i,t.count*this._getM(i));return a=u.d_(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(e,t){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return u.SJ(this.get("baseInterval"))}processSeriesDataItem(e,t){const i=this.getPrivate("baseInterval");e.open||(e.open={}),e.close||(e.close={}),l.__(t,t=>{let s=e.get(t);if(r.Et(s)){let a=e.open[t],r=e.close[t];if(s>=a&&s<=r);else{const n=i.timeUnit,o=i.count;a=u.d_(s,n,o,this._root),r=a+u.Ds(n,o*this._getM(n)),r=u.d_(r,n,1,this._root),e.open[t]=a,e.close[t]=r}this._updateDates(a,e.component)}})}_handleSizeDirty(){}getDataItemPositionX(e,t,i,s,a){let r,n,o;return a?o=e.get(t):(e.open&&e.close?(r=e.open[t],n=e.close[t]):(r=e.get(t),n=r),o=r+(n-r)*i,o=this._baseValue+(o-this._baseValue)*s),this.valueToPosition(o)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionY(e,t,i,s,a){let r,n,o;return a?o=e.get(t):(e.open&&e.close?(r=e.open[t],n=e.close[t]):(r=e.get(t),n=r),o=r+(n-r)*i,o=this._baseValue+(o-this._baseValue)*s),this.valueToPosition(o)}
12getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}roundAxisPosition(e,t){let i=this.positionToValue(e);i-=(t-.5)*this.baseDuration();let s=this.getPrivate("baseInterval");if(!r.yr(i)){const e=this._root.locale.firstDayOfWeek,a=s.timeUnit,r=this._root.utc,n=this._root.timezone,o=s.count;i=u.d_(i,a,o,this._root,this.getPrivate("min",0));let l=u.Iq(s,new Date(i),e,r,n);return n&&(i=u.d_(i+.05*this.baseDuration(),a,o,this._root,this.getPrivate("min",0)),l=u.Iq(s,new Date(i+l*t),e,r,n)),this.valueToPosition(i+l*t)}return NaN}getTooltipText(e,t){if(null!=this.getPrivate("min")){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(e);if(r.Et(s)){let e=new Date(s),a=this.getPrivate("baseInterval"),r=u.Iq(a,e,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return!1!==t&&(e=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*r)),this._root.dateFormatter.format(e,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(e,t,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),r=this.positionToValue(t);null==i&&(i=.5),r-=(i-.5)*this.baseDuration();const n=l.IU(e.dataItems,e=>{let t=0;return e.open&&(t=e.open[a]),o.UD(t,r)});if(s||e.get("snapTooltip")){let t=e.dataItems[n.index-1],i=e.dataItems[n.index];if(t&&i&&t.open&&i.close){let e=t.open[a],s=i.close[a];if(Math.abs(r-e)>Math.abs(r-s))return i}if(t)return t;if(i)return i}else{const t=e.dataItems[n.index-1];if(t&&t.open&&t.close){let e=t.open[a],i=t.close[a];if(r>=e&&r<=i)return t}}}shouldGap(e,t,i,s){const a=e.get(s);return t.get(s)-a>this.baseDuration()*i}zoomToDates(e,t,i){this.zoomToValues(e.getTime(),t.getTime(),i)}zoomToValues(e,t,i){const s=this.getPrivate("minFinal",0),a=this.getPrivate("maxFinal",0);if(null!=this.getPrivate("min")&&null!=this.getPrivate("max"))if(this.get("groupData")){const s=this.getGroupInterval(t-e),a=this.get("baseInterval");let r=this.getIntervalMin(a),n=this.getIntervalMax(a)-1;n=u.d_(n,s.timeUnit,s.count,this.root),n+=this._getM(s.timeUnit)*u.SJ(s),n=u.d_(n,s.timeUnit,s.count,this.root);let o=u.d_(r,s.timeUnit,s.count,this.root),l=u.d_(n,s.timeUnit,s.count,this.root),h=(e-o)/(l-o),d=(t-o)/(l-o);this.zoom(h,d,i)}else this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}positionToDate(e){return new Date(this.positionToValue(e))}dateToPosition(e){return this.valueToPosition(e.getTime())}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return r.Et(e)&&r.Et(t)?this._intervalDuration/(e-t):.05}nextPosition(e){null==e&&(e=1);let t=this.get("tooltipLocation",.5)*this.baseDuration();"Y"==this.get("renderer").getPrivate("letter")&&(e*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0));const s=this.getPrivate("baseInterval");let a=this._nextTime(i,e,s),r=this.getPrivate("selectionMin",0),o=this.getPrivate("selectionMax",0),l=u.d_(r,s.timeUnit,s.count,this._root),h=u.d_(o,s.timeUnit,s.count,this._root);return a+=t,a=n.s_(a,l+t,h-t),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(e,t,i){return u.d_(e+t*this.baseDuration(),i.timeUnit,i.count,this._root)}}Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"DateAxis"}),Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.F.classNames.concat([c.className])})},15263:(e,t,i)=>{i.d(t,{E:()=>l});var s=i(3569),a=i(3235),r=i(98379),n=i(78135),o=i(97529);class l extends s.k{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text")){super._updateBounds();let e=this.get("fillGradient");
12e&&(this._display.style.fill=e.getFill(this))}else{let e={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=e}}_changed(){super._changed(),this._display.clear();let e=this.textStyle;if(this.isDirty("opacity")){let e=this.get("opacity",1);this._display.alpha=e}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),"tooltip"==this.get("role")&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")){this.getPrivate("tooltipElement")&&this._disposers.push(new o.W_(()=>{this._root._removeTooltipElement(this)}))}if(this.isDirty("width")&&(e.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(e.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(e.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(e.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(e.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(e.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){const t=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(t){const e=i.get("stops",[]);e.length&&r.__(e,e=>{e.color&&!e.colorInherited||!t||(e.color=t,e.colorInherited=!0),(null==e.opacity||e.opacityInherited)&&(e.opacity=s,e.opacityInherited=!0)})}e.fill=i.getFill(this)}else t&&(e.fill=t)}if(this.isDirty("fillOpacity")){let t=this.get("fillOpacity",1);t&&(e.fillOpacity=t)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(e.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(e.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),r.__(this._textStyles,t=>{this._dirty[t]&&(e[t]=this.get(t),this.markDirtyBounds())}),e.fontSize=this.get("fontSize"),e.fontFamily=this.get("fontFamily"),this._display.style=e,this.isDirty("role")&&"tooltip"==this.get("role")&&this._root.updateTooltip(this)}_getText(){let e=this.get("text","");return this.get("maxChars")&&(e=n.FZ(e,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?(0,a.I)(this,e):e}_getAccessibleText(){const e=this.get("ariaLabel");return void 0!==e?this.get("populateText")?(0,a.I)(this,e):e:this._getText()}markDirtyText(){this._display.text=this._getText(),"tooltip"==this.get("role")&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(e){super._setDataItem(e),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.k.classNames.concat([l.className])})},16611:(e,t,i)=>{i.d(t,{KN:()=>a,Q2:()=>r,QE:()=>s,_3:()=>o,yP:()=>n});class s{constructor(e){Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=e}get value(){return this._value/100}get percent(){return this._value}toString(){return this._value+"%"}interpolate(e,t){return e+this.value*(t-e)}static normalize(e,t,i){return e instanceof s?e:new s(t===i?0:100*Math.min(Math.max(1/(i-t)*(e-t),0),1))}}function a(e){return new s(e)}a(0);const r=a(100),n=a(50);function o(e){return e instanceof s}},20100:(e,t,i)=>{i.d(t,{B8:()=>n,TS:()=>l,fo:()=>o});var s=i(29799),a=i(98379);function r(e,t){if(!(e>=0&&e<t))throw new Error("Index out of bounds: "+e)}class n{constructor(e=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new s.Q}),this._values=e}get values(){return this._values}contains(e){return-1!==this._values.indexOf(e)}removeValue(e){let t=0,i=this._values.length;for(;t<i;)this._values[t]===e?(this.removeIndex(t),--i):++t}indexOf(e){return a.qh(this._values,e)}get length(){return this._values.length}hasIndex(e){return e>=0&&e<this._values.length}getIndex(e){return this._values[e]}_onPush(e){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:e})}_onInsertIndex(e,t){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t})}_onSetIndex(e,t,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:e,oldValue:t,newValue:i})}_onSwap(e,t){this.events.isEnabled("swap")&&this.events.dispatch("swap",{type:"swap",target:this,a:e,b:t})}_onRemoveIndex(e,t){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:t})}_onMoveIndex(e,t,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:e,newIndex:t,value:i})}_onClear(e){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:e})}setIndex(e,t){r(e,this._values.length);const i=this._values[e];return i!==t&&(this._values[e]=t,this._onSetIndex(e,i,t)),i}insertIndex(e,t){return r(e,this._values.length+1),a.At(this._values,e,t),this._onInsertIndex(e,t),t}swap(e,t){const i=this._values.length;if(r(e,i),r(t,i),e!==t){const i=this._values[e],s=this._values[t];this._values[e]=s,this._values[t]=i,this._onSwap(i,s)}}removeIndex(e){r(e,this._values.length);const t=this._values[e];return a.xR(this._values,e),this._onRemoveIndex(e,t),t}moveValue(e,t){let i=this.indexOf(e);if(-1!==i)if(a.xR(this._values,i),null==t){const t=this._values.length;this._values.push(e),this._onMoveIndex(i,t,e)}else a.At(this._values,t,e),this._onMoveIndex(i,t,e);else null==t?(this._values.push(e),this._onPush(e)):(a.At(this._values,t,e),this._onInsertIndex(t,e));return e}push(e){return this._values.push(e),this._onPush(e),e}unshift(e){return this.insertIndex(0,e),e}pushAll(e){a.__(e,e=>{this.push(e)})}copyFrom(e){this.pushAll(e._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(e){const t=this._values;this._values=[],this._onClear(t),a.__(e,e=>{this._values.push(e),this._onPush(e)})}clear(){this.setAll([])}*[Symbol.iterator](){const e=this._values.length;for(let t=0;t<e;++t)yield this._values[t]}each(e){a.__(this._values,e)}eachReverse(e){a.W$(this._values,e)}}class o extends n{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}swap(e,t){const i=this.autoDispose;this.autoDispose=!1,super.swap(e,t),this.autoDispose=i}_onSetIndex(e,t,i){this.autoDispose&&t.dispose(),super._onSetIndex(e,t,i)}_onRemoveIndex(e,t){this.autoDispose&&t.dispose(),super._onRemoveIndex(e,t)}_onClear(e){this.autoDispose&&a.__(e,e=>{e.dispose()}),super._onClear(e)}_dispose(){this.autoDispose&&a.__(this._values,e=>{e.dispose()})}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class l extends o{constructor(e,t){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=e,this.make=t}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}}},21050:(e,t,i)=>{i.d(t,{F8:()=>d,HQ:()=>_,Ki:()=>g,LI:()=>o,gn:()=>u,iR:()=>n,mk:()=>l,n0:()=>c,s_:()=>h});var s=i(83460);const a=Math.PI,r=a/180,n=180/a;function o(e,t,i){if(!(0,s.Et)(t)||t<=0){let t=Math.round(e);return i&&t-e==.5&&t--,t}{let i=Math.pow(10,t);return Math.round(e*i)/i}}function l(e,t){if(!(0,s.Et)(t)||t<=0)return Math.ceil(e);{let i=Math.pow(10,t);return Math.ceil(e*i)/i}}function h(e,t,i){return Math.min(Math.max(e,t),i)}function d(e){return Math.sin(r*e)}function u(e){return Math.cos(r*e)}function c(e){return(e%=360)<0&&(e+=360),e}function g(e,t,i,s,a){let r=Number.MAX_VALUE,n=Number.MAX_VALUE,o=-Number.MAX_VALUE,l=-Number.MAX_VALUE,h=[];h.push(p(a,i)),h.push(p(a,s));
12let d=Math.min(90*Math.floor(i/90),90*Math.floor(s/90)),u=Math.max(90*Math.ceil(i/90),90*Math.ceil(s/90));for(let e=d;e<=u;e+=90)e>=i&&e<=s&&h.push(p(a,e));for(let e=0;e<h.length;e++){let t=h[e];t.x<r&&(r=t.x),t.y<n&&(n=t.y),t.x>o&&(o=t.x),t.y>l&&(l=t.y)}return{left:e+r,top:t+n,right:e+o,bottom:t+l}}function p(e,t){return{x:e*u(t),y:e*d(t)}}function _(e,t){return e.x>=t.left&&e.y>=t.top&&e.x<=t.right&&e.y<=t.bottom}},22475:(e,t,i)=>{i.d(t,{P:()=>d});var s=i(97064);class a{constructor(e,t){Object.defineProperty(this,"_line",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_point",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_x1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y1",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_t0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tension",{enumerable:!0,configurable:!0,writable:!0,value:0}),this._context=e,this._tension=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0}lineEnd(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:h(this,this._t0,l(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line}point(e,t){let i=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,h(this,l(this,i=o(this,e,t)),i);break;default:h(this,this._t0,i=o(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=i}}}function r(e){return function(t){return new a(t,e)}}function n(e){return e<0?-1:1}function o(e,t,i){let s=e._x1-e._x0,a=t-e._x1,r=(e._y1-e._y0)/(s||a<0&&-0),o=(i-e._y1)/(a||s<0&&-0),l=(r*a+o*s)/(s+a);return(n(r)+n(o))*Math.min(Math.abs(r),Math.abs(o),.5*Math.abs(l))||0}function l(e,t){let i=e._x1-e._x0;return i?(3*(e._y1-e._y0)/i-t)/2:t}function h(e,t,i){let s=e._x0,a=e._y0,r=e._x1,n=e._y1,o=(r-s)/1.5*(1-e._tension);e._context.bezierCurveTo(s+o,a+o*t,r-o,n-o*i,r,n)}class d extends s.I{_afterNew(){this._setDefault("curveFactory",r(this.get("tension",.5))),super._afterNew()}_updateChildren(){this.isDirty("tension")&&(this.set("curveFactory",r(this.get("tension",.5))),this._valuesDirty=!0),super._updateChildren()}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SmoothedXLineSeries"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.I.classNames.concat([d.className])})},25017:(e,t,i)=>{i.d(t,{A:()=>r});var s=i(67140);class a extends s.S{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}}const r=a},29799:(e,t,i)=>{i.d(t,{Q:()=>n});var s=i(97529),a=i(98379),r=i(83460);class n{constructor(){Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_killed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_iterating",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_enabled",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;const e=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{a.__(e,e=>{e.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}}hasListeners(){return 0!==this._listeners.length}hasListenersByType(e){return a.bz(this._listeners,t=>(null===t.type||t.type===e)&&!t.killed)}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(e){delete this._disabled[e]}disableType(e,t=1/0){this._disabled[e]=t}_removeListener(e){if(0===this._iterating){const t=this._listeners.indexOf(e);if(-1===t)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(e)}_removeExistingListener(e,t,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(a=>{a.once!==e||a.type!==t||void 0!==i&&a.callback!==i||a.context!==s||a.disposer.dispose()})}isEnabled(e){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(e)&&void 0===this._disabled[e]}removeType(e){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(t=>{t.type===e&&t.disposer.dispose()})}has(e,t,i){return-1!==a.SL(this._listeners,s=>
12!0!==s.once&&s.type===e&&(void 0===t||s.callback===t)&&s.context===i)}_shouldDispatch(e){if(this._disposed)throw new Error("EventDispatcher is disposed");const t=this._disabled[e];return r.Et(t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled}_eachListener(e){++this._iterating;try{a.__(this._listeners,e)}finally{--this._iterating,0===this._iterating&&0!==this._killed.length&&(a.__(this._killed,e=>{this._removeListener(e)}),this._killed.length=0)}}dispatch(e,t){this._shouldDispatch(e)&&this._eachListener(i=>{i.killed||null!==i.type&&i.type!==e||i.dispatch(e,t)})}_on(e,t,i,a,r,n){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,i,a);const o={type:t,callback:i,context:a,shouldClone:r,dispatch:n,killed:!1,once:e,disposer:new s.W_(()=>{o.killed=!0,this._removeListener(o)})};return this._listeners.push(o),o}onAll(e,t,i=!0){return this._on(!1,null,e,t,i,(i,s)=>e.call(t,s)).disposer}on(e,t,i,s=!0){return this._on(!1,e,t,i,s,(e,s)=>t.call(i,s)).disposer}once(e,t,i,s=!0){const a=this._on(!0,e,t,i,s,(e,s)=>{a.disposer.dispose(),t.call(i,s)});return a.disposer}off(e,t,i){this._removeExistingListener(!1,e,t,i)}copyFrom(e){if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");const t=[];return a.__(e._listeners,e=>{!e.killed&&e.shouldClone&&(null===e.type?t.push(this.onAll(e.callback,e.context)):e.once?t.push(this.once(e.type,e.callback,e.context)):t.push(this.on(e.type,e.callback,e.context)))}),new s.ZT(t)}}},30437:(e,t,i)=>{i.d(t,{m:()=>g});var s=i(97529),a=i(97716),r=i(50979),n=i(21050);class o extends r.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let e=this.width(),t=this.height();if(e>0&&t>0){let i=this.get("cornerRadius",8);i=n.s_(i,0,Math.min(e/2,t/2));let s=this.get("pointerX",0),a=this.get("pointerY",0),r=this.get("pointerBaseWidth",15)/2,o=0,l=0,h=0,d=(s-o)*(t-l)-(a-l)*(e-o),u=(s-h)*(0-t)-(a-t)*(e-h);const c=this._display;if(c.moveTo(i,0),d>0&&u>0){let t=Math.round(n.s_(s,i+r,e-r-i));a=n.s_(a,-1/0,0),c.lineTo(t-r,0),c.lineTo(s,a),c.lineTo(t+r,0)}if(c.lineTo(e-i,0),c.arcTo(e,0,e,i,i),d>0&&u<0){let o=Math.round(n.s_(a,i+r,t-r-i));s=n.s_(s,e,1/0),c.lineTo(e,i),c.lineTo(e,Math.max(o-r,i)),c.lineTo(s,a),c.lineTo(e,o+r)}if(c.lineTo(e,t-i),c.arcTo(e,t,e-i,t,i),d<0&&u<0){let o=Math.round(n.s_(s,i+r,e-r-i));a=n.s_(a,t,1/0),c.lineTo(e-i,t),c.lineTo(o+r,t),c.lineTo(s,a),c.lineTo(o-r,t)}if(c.lineTo(i,t),c.arcTo(0,t,0,t-i,i),d<0&&u>0){let e=Math.round(n.s_(a,i+r,t-i-r));s=n.s_(s,-1/0,0),c.lineTo(0,t-i),c.lineTo(0,e+r),c.lineTo(s,a),c.lineTo(0,Math.max(e-r,i))}c.lineTo(0,i),c.arcTo(0,0,i,0,i),c.closePath()}}}}Object.defineProperty(o,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PointedRectangle"}),Object.defineProperty(o,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.A.classNames.concat([o.className])});var l=i(51947),h=i(16611),d=i(80937),u=i(98379),c=i(78135);class g extends l.m{constructor(e,t,i,s=[]){super(e,t,i,s),Object.defineProperty(this,"_fx",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_fy",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_label",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fillDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fillGrDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_labelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_w",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_h",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_keepHoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlContentHovered",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._settings.themeTags=c.kE(this._settings.themeTags,["tooltip"]),super._afterNew();this._setDefaultFn("background",()=>o.new(this._root,{})).set("themeTags",["tooltip","background"]),this._label=this.children.push(a.J.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",()=>
12{this._updateBackground()})),this._disposers.push(this.on("bounds",()=>{this._updateBackground()})),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",e=>{e&&(this._disposers.push(c.q2(e,"pointerover",e=>{this._htmlContentHovered=!0})),this._disposers.push(c.q2(e,"pointerout",e=>{this._htmlContentHovered=!1})))})),this.on("visible",e=>{this._handleReaderAnnouncement()}),this.label.events.on("dataitemchanged",e=>{this._handleReaderAnnouncement()}),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),u.TF(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width");null!=this.get("labelText")&&this.label.set("text",this.get("labelText"));null!=this.get("labelHTML")&&this.label.set("html",this.get("labelHTML"));null!=this.get("labelAriaLabel")&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackgroun
12d(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover")){if(this.get("keepTargetHover")){const e=this.get("background");this._keepHoverDp=new s.ZT([e.events.on("pointerover",e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),t.hover())}),e.events.on("pointerout",e=>{let t=this.get("tooltipTarget");t&&(t.parent&&t.parent.getPrivate("tooltipTarget")==t&&(t=t.parent),this._htmlContentHovered||t.unhover())})]),this.label.onPrivate("htmlElement",t=>{this._keepHoverDp&&t&&this._keepHoverDp.disposers.push(c.q2(t,"pointerleave",t=>{const i=this.root._renderer.getEvent(t);e.events.dispatch("pointerout",{type:"pointerout",originalEvent:i.event,point:i.point,simulated:!1,target:e})}))})}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let e=this.get("tooltipTarget");const t=this.get("background");let i,s;if(e&&t){if(i=e.get("fill"),s=e.get("stroke"),null==i&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),null!=i&&t.set("fill",i),this._fillDp=e.on("fill",e=>{null!=e&&(t.set("fill",e),this._updateTextColor(e))}),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let i=e.get("fillGradient");null!=i&&t.set("fillGradient",i),this._fillGrDp=e.on("fillGradient",e=>{null!=e&&t.set("fillGradient",e)}),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),null!=i&&t.set("stroke",i),this._strokeDp=e.on("fill",e=>{null!=e&&t.set("stroke",e)}),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),null!=i&&this.label.set("fill",i),this._labelDp=e.on("fill",e=>{null!=e&&this.label.set("fill",e)}),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(e){this.get("autoTextColor")&&(null==e&&(e=this.get("background").get("fill")),null==e&&(e=this._root.interfaceColors.get("background")),e instanceof d.Q1&&this.label.set("fill",d.Q1.alternative(e,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(e){super._setDataItem(e),this.label._setDataItem(e)}
12_updateBackground(){super.updateBackground();const e=this._root.container;if(e){let t=.5,i=.5,s=this.get("centerX");s instanceof h.QE&&(t=s.value);let a=this.get("centerY");a instanceof h.QE&&(i=a.value);let r=e.width(),l=e.height(),d=this.parent,u=0,c=0;if(d){u=d.x(),c=d.y();const e=d.get("layerMargin");e&&(u+=e.left||0,c+=e.top||0,r+=(e.left||0)+(e.right||0),l+=(e.top||0)+(e.bottom||0))}const g=this.get("bounds",{left:-u,top:-c,right:r-u,bottom:l-c});this._updateBounds();let p=this.width(),_=this.height();0===p&&(p=this._w),0===_&&(_=this._h);let m=this.get("pointTo",{x:r/2,y:l/2}),b=m.x,f=m.y,v=this.get("pointerOrientation"),y=this.get("background"),x=0,w=0,P=0;y instanceof o&&(x=y.get("pointerLength",0),w=y.get("strokeWidth",0)/2,P=w,y.set("width",p),y.set("height",_));let D=0,k=0,T=g.right-g.left,O=g.bottom-g.top;"horizontal"==v||"left"==v||"right"==v?(w=0,"horizontal"==v?b>g.left+T/2?(b-=p*(1-t)+x,P*=-1):b+=p*t+x:"left"==v?b+=p*(1-t)+x:(b-=p*t+x,P*=-1)):(P=0,"vertical"==v?f>g.top+_/2+x?f-=_*(1-i)+x:(f+=_*i+x,w*=-1):"down"==v?f-=_*(1-i)+x:(f+=_*i+x,w*=-1)),b=n.s_(b,g.left+p*t,g.left+T-p*(1-t))+P,f=n.s_(f,g.top+_*i,g.top+O-_*(1-i))-w,D=m.x-b+p*t+P,k=m.y-f+_*i-w,this._fx=b,this._fy=f;const M=this.get("animationDuration",0);if(M>0&&this.get("visible")&&this.get("opacity")>.1){const e=this.get("animationEasing");this.animate({key:"x",to:b,duration:M,easing:e}),this.animate({key:"y",to:f,duration:M,easing:e})}else this.set("x",b),this.set("y",f);y instanceof o&&(y.set("pointerX",D),y.set("pointerY",k)),p>0&&(this._w=p),_>0&&(this._h=_)}}}Object.defineProperty(g,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tooltip"}),Object.defineProperty(g,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:l.m.classNames.concat([g.className])})},30820:(e,t,i)=>{i.d(t,{p:()=>h,w:()=>l});var s=i(67140),a=i(16611),r=i(80937),n=i(53650),o=i(14350);function l(e,t,i,s){e.set(t,i.get(s)),i.on(s,i=>{e.set(t,i)})}class h extends s.S{setupDefaultRules(){super.setupDefaultRules();const e=this._root.language,t=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,h=this.rule.bind(this);h("InterfaceColors").setAll({stroke:r.Q1.fromHex(15066597),fill:r.Q1.fromHex(15987699),primaryButton:r.Q1.fromHex(6788316),primaryButtonHover:r.Q1.fromHex(6779356),primaryButtonDown:r.Q1.fromHex(6872182),primaryButtonActive:r.Q1.fromHex(6872182),primaryButtonDisabled:r.Q1.fromHex(14342874),primaryButtonTextDisabled:r.Q1.fromHex(16777215),primaryButtonText:r.Q1.fromHex(16777215),primaryButtonStroke:r.Q1.fromHex(16777215),secondaryButton:r.Q1.fromHex(14277081),secondaryButtonHover:r.Q1.fromHex(10724259),secondaryButtonDown:r.Q1.fromHex(9276813),secondaryButtonActive:r.Q1.fromHex(15132390),secondaryButtonText:r.Q1.fromHex(0),secondaryButtonStroke:r.Q1.fromHex(16777215),grid:r.Q1.fromHex(0),background:r.Q1.fromHex(16777215),alternativeBackground:r.Q1.fromHex(0),text:r.Q1.fromHex(0),alternativeText:r.Q1.fromHex(16777215),disabled:r.Q1.fromHex(11382189),positive:r.Q1.fromHex(5288704),negative:r.Q1.fromHex(11730944)});{const e=h("ColorSet");e.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[r.Q1.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),e.setPrivate("currentStep",0),e.setPrivate("currentPass",0)}h("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:o.FD(o.tA)}),h("Component").setAll({interpolationDuration:0,interpolationEasing:o.FD(o.tA)}),h("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:a.yP,tooltipY:a.yP,tooltipPosition:"fixed",isMeasured:!0}),h("Sprite").states.create("default",{visible:!0,opacity:1}),h("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),h("Graphics").setAll({strokeWidth:1}),h("Chart").setAll({width:a.Q2,height:a.Q2,interactiveChildren:!1}),h("ZoomableContainer").setAll({width:a.Q2,height:a.Q2,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:o.FD(o.tA),animationDuration:600,maxPanOut:.4}),h("Sprite",["horizontal","center"]).setAll({centerX:a.yP,x:a.yP}),h("Sprite",["vertical","center"]).setAll({centerY:a.yP,y:a.yP}),h("Container",["horizontal","layout"]).setAll({layout:i}),h("Container",["vertical","layout"]).setAll({layout:s}),h("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),h("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),h("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),h("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),h("GrainPattern").setAll({width:200,height:200,colors:[r.Q1.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{const e=h("PatternSet");e.setAll({step:1}),l(e,"color",t,"stroke")}h("LinearGradient").setAll({rotation:90}),h("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:n.J.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),h("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:e.translate("Press ENTER to toggle"),role:"checkbox"});{const e=h("Rectangle",["legend","item","background"]);e.setAll({fillOpacity:0}),l(e,"fill",t,"background")}h("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:a.yP,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),h("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:a.Q2,height:a.Q2,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{const e=h("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});l(e,"fill",t,"disabled"),l(e,"stroke",t,"disabled")}h("Label",["legend","label"]).setAll({centerY:a.yP,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});l(h("Label",["legend","label"]).states.create("disabled",{}),"fill",t,"disabled");h("Label",["legend","value","label"]).setAll({centerY:a.yP,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:a.Q2,populateText:!0});l(h("Label",["legend","value","label"]).states.create("disabled",{}),"fill",t,"disabled");h("HeatLegend").setAll({stepCount:1}),h("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),h("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:a.Q2,width:15}),h("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:a.Q2,height:15}),h("HeatLegend",["vertical"]).setAll({height:a.Q2}),h("HeatLegend",["horizontal"]).setAll({width:a.Q2}),h("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),h("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{const e=h("Label");e.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),l(e,"fill",t,"text")}h("RadialLabel").setAll({textType:"regular",centerY:a.yP,centerX:a.yP,inside:!1,radius:0,baseRadius:a.Q2,orientation:"auto",textAlign:"center"}),h("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),h("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:r.Q1.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:r.Q1.fromHex(0)}),h("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),h("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),h("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),h("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{const e=h("Tick");e.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),l(e,"stroke",t,"grid")}h("Bullet").setAll({locationX:.5,locationY:.5}),h("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:a.yP,centerY:a.yP,animationEasing:o.FD(o.tA),exportable:!1}),h("Polygon").setAll({animationEasing:o.FD(o.tA)});h("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:r.Q1.fromHex(16777215)});{const e=h("Label",["tooltip"]);e.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),l(e,"fill",t,"alternativeText")}h("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),h("Button").states.create("hover",{}),h("Button").states.create("down",{stateAnimationDuration:0}),h("Button").states.create("active",{}),h("Button").states.create("disabled",{forceInactive:!0});{const e=h("RoundedRectangle",["button","background"]);l(e,"fill",t,"primaryButton"),l(e,"stroke",t,"primaryButtonStroke")}l(h("RoundedRectangle",["button","background"]).states.create("hover",{}),"fill",t,"primaryButtonHover");l(h("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"primaryButtonDown");l(h("RoundedRectangle",["button","background"]).states.create("active",{}),"fill",t,"primaryButtonActive");l(h("RoundedRectangle",["button","background"]).states.create("disabled",{}),"fill",t,"primaryButtonDisabled");l(h("Graphics",["button","icon"]).states.create("disabled",{}),"fill",t,"primaryButtonTextDisabled");l(h("Label",["button"]).states.create("disabled",{}),"fill",t,"primaryButtonTextDisabled");{const e=h("Graphics",["button","icon"]);e.setAll({forceInactive:!0}),l(e,"stroke",t,"primaryButtonText")}l(h("Label",["button"]),"fill",t,"primaryButtonText");h("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:a.Q2,role:"button",ariaLabel:e.translate("Zoom Out"),layer:30});{const e=h("RoundedRectangle",["background","button","zoom"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",t,"primaryButton")}l(h("RoundedRectangle",["background","button","zoom"]).states.create("hover",{}),"fill",t,"primaryButtonHover");l(h("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"primaryButtonDown");{const e=h("Graphics",["icon","button","zoom"]);e.setAll({crisp:!0,strokeOpacity:.7,draw:e=>{e.moveTo(0,0),e.lineTo(12,0)}}),l(e,"stroke",t,"primaryButtonText")}h("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:a.yP,centerY:a.yP,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:e.translate("Use up and down arrows to move selection")});{const e=h("RoundedRectangle",["background","resize","button"]);e.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),l(e,"fill",t,"secondaryButton"),l(e,"stroke",t,"secondaryButtonStroke")}l(h("RoundedRectangle",["background","resize","button"]).states.create("hover",{}),"fill",t,"secondaryButtonHover");l(h("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"secondaryButtonDown");{const e=h("Graphics",["resize","button","icon"]);e.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),l(e,"stroke",t,"secondaryButtonText")}h("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),h("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),h("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:e.translate("Play"),toggleKey:"active"});{const e=h("RoundedRectangle",["play","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",t,"primaryButton")}{const e=h("Graphics",["play","icon"]);e.setAll({stateAnimationDuration:0,dx:1,draw:e=>{e.moveTo(0,-5),e.lineTo(8,0),e.lineTo(0,5),e.lineTo(0,-5)}}),l(e,"fill",t,"primaryButtonText")}h("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),h("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:e=>{e.moveTo(-4,-5),e.lineTo(-1,-5),e.lineTo(-1,5),e.lineTo(-4,5),e.lineTo(-4,-5),e.moveTo(4,-5),e.lineTo(1,-5),e.lineTo(1,5),e.lineTo(4,5),e.lineTo(4,-5)}}),h("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:e.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{const e=h("RoundedRectangle",["switch","background"]);e.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),l(e,"fill",t,"primaryButton")}{const e=h("Circle",["switch","icon"]);e.setAll({radius:8,centerY:0,centerX:0,dx:0}),l(e,"fill",t,"primaryButtonText")}h("Graphics",["switch","icon"]).states.create("active",{dx:16}),h("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:o.FD(o.tA)}),h("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:a.Q2}),h("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:a.Q2}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{const e=h("RoundedRectangle",["scrollbar","main","background"]);e.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),l(e,"fill",t,"fill")}{const e=h("RoundedRectangle",["scrollbar","thumb"]);e.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),l(e,"fill",t,"secondaryButton")}l(h("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{}),"fill",t,"secondaryButtonHover");l(h("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0}),"fill",t,"secondaryButtonDown");h("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:a.yP,width:a.Q2,centerX:a.yP,ariaLabel:e.translate("Use up and down arrows to move selection")}),h("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:a.yP,centerY:a.yP,height:a.Q2,ariaLabel:e.translate("Use left and right arrows to move selection")});{const e=h("PointedRectangle",["axis","tooltip","background"]);e.setAll({cornerRadius:0}
vendor: 1,301 bytes, line 12
12),l(e,"fill",t,"alternativeBackground")}h("Label",["axis","tooltip"]).setAll({role:void 0}),h("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),h("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),h("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),h("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),h("Star").setAll({spikes:5,innerRadius:5,radius:10}),h("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),h("Tooltip",["indicator"]).setAll({forceHidden:!0}),h("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),h("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),h("SpriteResizer").setAll({rotationStep:10,isMeasured:!1});h("Container",["resizer","grip"]).states.create("hover",{});{const e=h("RoundedRectangle",["resizer","grip"]);e.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),l(e,"fill",t,"background"),l(e,"stroke",t,"alternativeBackground")}{const e=h("RoundedRectangle",["resizer","grip","outline"]);e.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),e.states.create("hover",{fillOpacity:.3}),l(e,"fill",t,"alternativeBackground")}h("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,
12cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),h("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{const e=h("Rectangle",["resizer","rectangle"]);e.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),l(e,"stroke",t,"alternativeBackground")}h("Graphics",["button","plus","icon"]).setAll({x:a.yP,y:a.yP,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0),e.moveTo(0,-4),e.lineTo(0,4)}}),h("Graphics",["button","minus","icon"]).setAll({x:a.yP,y:a.yP,draw:e=>{e.moveTo(-4,0),e.lineTo(4,0)}}),h("Graphics",["button","home","icon"]).setAll({x:a.yP,y:a.yP,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),h("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),h("ZoomTools").setAll({x:a.Q2,centerX:a.Q2,y:a.Q2,centerY:a.Q2,paddingRight:10,paddingBottom:10})}}},32270:(e,t,i)=>{i.d(t,{F:()=>p});var s=i(73635),a=i(51947),r=i(16611),n=i(20100),o=i(50155),l=i(98379),h=i(83460),d=i(78135);class u extends s.u{constructor(){super(...arguments),Object.defineProperty(this,"_series",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_isPanning",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"minorDataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"labelsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a.m.new(this._root,{}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:a.m.new(this._root,{width:r.Q2,height:r.Q2})}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:a.m.new(this._root,{width:r.Q2,height:r.Q2})}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a.m.new(this._root,{isMeasured:!1,width:r.Q2,height:r.Q2,position:"absolute"}))}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rangesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_panStart",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_panEnd",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_sAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_eAnimation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_skipSync",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new n.B8}),Object.defineProperty(this,"_seriesAxisRanges",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"ghostLabel",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_cursorPosition",{enumerable:!0,configurable:!0,writable:!0,value:-1}),Object.defineProperty(this,"_snapToSeries",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_seriesValuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_seriesAdded",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"axisHeader",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(a.m.new(this._root,{themeTags:["axis","header"],position:"absolute",background:o.M.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})}))}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}})}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if("clear"===e.type)l.__(e.oldValues,e=>{e.dispose()});else if("push"===e.type)this._processAxisRange(e.newValue,["range"]);else if("setIndex"===e.type)this._processAxisRange(e.newValue,["range"]);else if("insertIndex"===e.type)this._processAxisRange(e.newValue,["range"]);else if("removeIndex"===e.type)this.disposeDataItem(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(e.value,["range"])}}));const e=this.get("renderer");e&&(e.axis=this,e.processAxis()),this.children.push(e),this.ghostLabel=e.makeLabel(new s.s(this,void 0,{}),[]),this.ghostLabel.adapters.disable("text"),this.ghostLabel.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),this.ghostLabel.events.disable()}_updateFinals(e,t){}zoom(e,t,i,s){if(this.get("zoomable",!0))if(this._updateFinals(e,t),this.get("start")!==e||this.get("end")!=t){let a=this._sAnimation,r=this._eAnimation;e>t&&([e,t]=[t,e]);let n=this.get("maxDeviation",.5)*Math.min(1,t-e);e<-n&&(e=-n),t>1+n&&(t=1+n),h.Et(i)||(i=this.get("interpolationDuration",0)),s||(s="end");let o=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),l=o;1===t&&0!==e&&(s=e<this.get("start",0)?"start":"end"),0===e&&1!==t&&(s=t>this.get("end",1)?"end":"start");let d=this.get("minZoomCount",0),u=this.get("maxZoomCount",1/0);h.Et(d)&&(o=l/d);let c=1;if(h.Et(u)&&(c=l/u),"start"===s?(u>0&&1/(t-e)<c&&(t=e+1/c),1/(t-e)>
vendor: 7,324 bytes, line 12
12o&&(t=e+1/o),t>1&&t-e<1/o&&(e=t-1/o)):(u>0&&1/(t-e)<c&&(e=t-1/c),1/(t-e)>o&&(e=t-1/o),e<0&&t-e<1/o&&(t=e+1/o)),1/(t-e)>o&&(t=e+1/o),1/(t-e)>o&&(e=t-1/o),null!=u&&null!=d&&e==this.get("start")&&t==this.get("end")){const e=this.chart;e&&e._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==e||this.get("start")==e)&&(r&&r.playing&&r.to==t||this.get("end")==t))return;if(i>0){let s,a,r=this.get("interpolationEasing");if(this.get("start")!=e&&(s=this.animate({key:"start",to:e,duration:i,easing:r})),this.get("end")!=t&&(a=this.animate({key:"end",to:t,duration:i,easing:r})),this._sAnimation=s,this._eAnimation=a,s)return s;if(a)return a}else this.set("start",e),this.set("end",t)}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(e,t){e.setRaw("isRange",!0),this._createAssets(e,t),this._rangesDirty=!0,this._prepareDataItem(e);const i=e.get("above"),s=this.topGridContainer,a=e.get("grid");i&&a&&s.children.moveValue(a);const r=e.get("axisFill");i&&r&&s.children.moveValue(r)}_prepareDataItem(e,t){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(e=>{this._prepareDataItem(e)}),l.__(this._seriesAxisRanges,e=>{this._prepareDataItem(e)})}_prepareChildren(){if(super._prepareChildren(),this.get("fixAxisSize")?this.ghostLabel.set("visible",!0):this.ghostLabel.set("visible",!1),this.isDirty("start")||this.isDirty("end")){const e=this.chart;e&&e._updateCursor();let t=this.get("start",0),i=this.get("end",1),s=this.get("maxDeviation",.5)*Math.min(1,i-t);if(t<-s){let e=t+s;t=-s,this.setRaw("start",t),this.isDirty("end")&&this.setRaw("end",i-e)}if(i>1+s){let e=i-1-s;i=1+s,this.setRaw("end",i),this.isDirty("start")&&this.setRaw("start",t-e)}}const e=this.get("renderer");if(e._start=this.get("start"),e._end=this.get("end"),e._inversed=e.get("inversed",!1),e._axisLength=e.axisLength()/(e._end-e._start),e._updateLC(),this.isDirty("tooltip")){const t=this.get("tooltip");if(t){const i=e.get("themeTags");t.addTag("axis"),t.addTag(this.className.toLowerCase()),t._applyThemes(),i&&(t.set("themeTags",d.kE(t.get("themeTags"),i)),t.label._applyThemes())}}}_updateTooltipBounds(){const e=this.get("tooltip");e&&this.get("renderer").updateTooltipBounds(e)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(e){this.chart=e;this.get("renderer").chart=e,e.gridContainer.children.push(this.gridContainer),e.topGridContainer.children.push(this.topGridContainer),e.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{e._handleAxisSelection(this)}),this.on("end",()=>{e._handleAxisSelection(this)}),e.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),e.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),e.processAxis(this)}hideDataItem(e){return this._toggleFHDataItem(e,!0),super.hideDataItem(e)}showDataItem(e){return this._toggleFHDataItem(e,!1),super.showDataItem(e)}_toggleFHDataItem(e,t){const i="forceHidden",s=e.get("label");s&&s.set(i,t);const a=e.get("grid");a&&a.set(i,t);const r=e.get("tick");r&&r.set(i,t);const n=e.get("axisFill");n&&n.set(i,t);const o=e.get("bullet");if(o){const e=o.get("sprite");e&&e.set(i,t)}}_toggleDataItem(e,t){const i=e.get("label"),s="visible";i&&i.setPrivate(s,t);const a=e.get("grid");a&&a.setPrivate(s,t);const r=e.get("tick");r&&r.setPrivate(s,t);const n=e.get("axisFill");n&&n.setPrivate(s,t);const o=e.get("bullet");if(o){const e=o.get("sprite");e&&e.setPrivate(s,t)}}_createAssets(e,t,i){var s,a,r;const n=this.get("renderer");let o="minor";const l=e.get("label");if(l){let a=l.get("themeTags"),r=!1;i?-1==(null==a?void 0:a.indexOf(o))&&(r=!0):-1!=(null==a?void 0:a.indexOf(o))&&(r=!0),r&&(null===(s=l.parent)||void 0===s||s.children.removeValue(l),n.makeLabel(e,t),l.dispose(),n.labels.removeValue(l))}else n.makeLabel(e,t);const h=e.get("grid");if(h){let s=h.get("themeTags"),r=!1;i?-1==(null==s?void 0:s.indexOf(o))&&(r=!0):-1!=(null==s?void 0:s.indexOf(o))&&(r=!0),r&&(null===(a=h.parent)||void 0===a||a.children.removeValue(h),n.makeGrid(e,t),h.dispose(),n.grid.removeValue(h))}else n.makeGrid(e,t);const d=e.get("tick");if(d){let s=!1,a=d.get("themeTags");i?-1==(null==a?void 0:a.indexOf(o))&&(s=!0):-1!=(null==a?void 0:a.indexOf(o))&&(s=!0),s&&(null===(r=d.parent)||void 0===r||r.children.removeValue(d),n.makeTick(e,t),d.dispose(),n.ticks.removeValue(d))}else n.makeTick(e,t);i||e.get("axisFill")||n.makeAxisFill(e,t),this._processBullet(e)}_processBullet(e){let t=e.get("bullet"),i=this.get("bullet");if(t||!i||e.get("isRange")||(t=i(this._root,this,e)),t){t.axis=this;const i=t.get("sprite");i&&(i._setDataItem(e),e.setRaw("bullet",t),i.parent||this.bulletsContainer.children.push(i))}}_afterChanged(){super._afterChanged();const e=this.chart;e&&(e._updateChartLayout(),e.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(e){super.disposeDataItem(e);const t=this.get("renderer"),i=e.get("label");i&&(t.labels.removeValue(i),i.dispose());const s=e.get("tick");s&&(t.ticks.removeValue(s),s.dispose());const a=e.get("grid");a&&(t.grid.removeValue(a),a.dispose());const r=e.get("axisFill");r&&(t.axisFills.removeValue(r),r.dispose());const n=e.get("bullet");n&&n.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());const e=this.ghostLabel;if(!e.isHidden()){const t=e.localBounds(),i=Math.ceil(t.right-t.left);let s=e.get("text");l.__(this.dataItems,e=>{const t=e.get("label");if(t&&!t.isHidden()){const e=t.localBounds();Math.ceil(e.right-e.left)>i&&(s=t.text._getText())}}),e.set("text",s)}let t=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(e,t+.5*(i-t))}_handleCursorPosition(e,t){e=this.get("renderer").toAxisPosition(e),this._cursorPosition=e,this._snapToSeries=t,this.updateTooltip()}updateTooltip(){const e=this._snapToSeries;let t=this._cursorPosition;const i=this.get("tooltip"),s=this.get("renderer");h.Et(t)&&(l.__(this.series,i=>{if(i.get("baseAxis")===this){const s=this.getSeriesItem(i,t,this.get("tooltipLocation"));e&&-1!=e.indexOf(i)?(i.updateLegendMarker(s),i.updateLegendValue(s),i._settings.tooltipDataItem=s):(i.showDataItemTooltip(s),i.setRaw("tooltipDataItem",s))}}),this.get("snapTooltip")&&(t=this.roundAxisPosition(t,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",t),i&&(s.updateTooltipBounds(i),h.yr(t)?i.hide(0):(this._updateTooltipText(i,t),s.positionTooltip(i,t),t<this.get("start",0)||t>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(e,t){e.label.set("text",this.getTooltipText(t))}roundAxisPosition(e,t){return e}_handleSeriesRemoved(){}handleCursorShow(){let e=this.get("tooltip");e&&e.show()}handleCursorHide(){let e=this.get("tooltip");e&&e.hide()}processSeriesDataItem(e,t){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(e){const t=this.get("renderer");return t.toAxisPosition(e/t.axisLength())}toAxisPosition(e){return this.get("renderer").toAxisPosition(e)}toGlobalPosition(e){return this.get("renderer").toGlobalPosition(e)}fixPosition(e){return this.get("renderer").fixPosition(e)}shouldGap(e,t,i,s){return!1}createAxisRange(e){return this.axisRanges.push(e)}
12_groupSeriesData(e){}getCellWidthPosition(){return.05}}Object.defineProperty(u,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Axis"}),Object.defineProperty(u,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.u.classNames.concat([u.className])});var c=i(97529),g=i(21050);class p extends u{constructor(){super(...arguments),Object.defineProperty(this,"_dirtyExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirtySelectionExtremes",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dseHandled",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_deltaMinMax",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_minReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_maxReal",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minRealLog",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseValue",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_syncDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_minLogAdjusted",{enumerable:!0,configurable:!0,writable:!0,value:1})}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=d.kE(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let e=this.get("syncWithAxis");e&&(this._syncDp=new c.ZT([e.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),e.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let e=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(e=!0,this.ghostLabel.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||e||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){const e=this.chart;let t=!1;if(e){const i=this.get("renderer").getPrivate("letter");"Y"==i?e.xAxes.each(e=>{"ValueAxis"!=e.className&&(t=!0)}):"X"==i&&e.yAxes.each(e=>{"ValueAxis"!=e.className&&(t=!0)})}t&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,this.getPrivate("selectionMinFinal")==this.getPrivate("selectionMin")&&this.getPrivate("selectionMaxFinal")==this.getPrivate("selectionMax")||(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(e){const t=this.get("numberFormat"),i=this.getNumberFormatter();let s="";return s=t?i.format(e,t):i.format(e,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){const e=this.getPrivate("min"),t=this.getPrivate("max");if(h.Et(e)&&h.Et(t)){const t=this.get("logarithmic"),i=this.getPrivate("step"),a=this.getPrivate("selectionMin"),r=this.getPrivate("selectionMax")+i;let n=a-i,o=1,d=e;if(t){if(n=this._minLogAdjusted,n<a)for(;n<a;)n+=i;if(d=n,d<=0){let e=this._minRealLog;h.Et(e)||(e=1),d=Math.pow(10,Math.log(e)*Math.LOG10E),i<1&&(d=h.Et(this._minRealLog)?this._minRealLog:Math.pow(10,-50))}o=Math.log(r-i)*Math.LOG10E-Math.log(d)*Math.LOG10E,o>2&&(n=Math.pow(10,Math.log(d)*Math.LOG10E-50))}const u=this.get("renderer"),c=u.get("minorLabelsEnabled"),p=u.get("minorGridEnabled",c);let _=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));const m=Math.round(i/_);let b=2;g.LI(m/5,10)%1==0&&(b=5),g.LI(m/10,10)%1==0&&(b=10);let f=i/b,v=0,y=0,x=-1/0;for(;n<r;){let e;this.dataItems.length<v+1?(e=new s.s(this,void 0,{}),this._dataItems.push(e),this.processDataItem(e)):e=this.dataItems[v],this._createAssets(e,[]),this._toggleDataItem(e,!0),e.setRaw("value",n);const a=e.get("label");a&&a.set("text",this._formatText(n)),this._prepareDataItem(e);let r=n;if(t&&o>2?r=Math.pow(10,Math.log(d)*Math.LOG10E+v-50):r+=i,p){let e=n+f;if(t){if(o>2){f=this._adjustMinMax(n,r,10).step}e=n+f}for(;e<r-1e-11*i;){let t;this.minorDataItems.length<y+1?(t=new s.s(this,void 0,{}),this.minorDataItems.push(t),this.processDataItem(t)):t=this.minorDataItems[y],this._createAssets(t,["minor"],!0),this._toggleDataItem(t,!0),t.setRaw("value",e);const i=t.get("label");i&&(c?i.set("text",this._formatText(e)):i.setPrivate("visible",!1)),this._prepareDataItem(t),e+=f,y++}}if(n=r,x==n)break;let l=Math.pow(10,Math.floor(Math.log(Math.abs(i))*Math.LOG10E));if(l<1&&!t){let e=Math.round(Math.abs(Math.log(Math.abs(l))*Math.LOG10E))+2;n=g.LI(n,e)}v++,t&&o<=2&&n-i<i&&(n=i),x=n}for(let e=v;e<this.dataItems.length;e++)this._toggleDataItem(this.dataItems[e],!1);for(let e=y;e<this.minorDataItems.length;e++)this._toggleDataItem(this.minorDataItems[e],!1);l.__(this.series,e=>{e.inited&&e._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(e,t){let i=this.get("renderer"),s=e.get("value"),a=e.get("endValue"),r=this.valueToPosition(s),n=r,o=this.valueToPosition(s+this.getPrivate("step"));h.Et(a)&&(n=this.valueToPosition(a),o=n),e.get("isRange")&&null==a&&(o=r);let l=n,d=e.get("labelEndValue");null!=d&&(l=this.valueToPosition(d)),i.updateLabel(e.get("label"),r,l,t);const u=e.get("grid");if(i.updateGrid(u,r,n),u&&(s==this.get("baseValue",0)?(u.addTag("base"),u._applyThemes()):u.hasTag("base")&&(u.removeTag("base"),u._applyThemes())
vendor: 9,027 bytes, line 12
12),i.updateTick(e.get("tick"),r,l,t),i.updateFill(e.get("axisFill"),r,o),this._processBullet(e),i.updateBullet(e.get("bullet"),r,n),!e.get("isRange")){const t=this.get("fillRule");t&&t(e)}}_handleRangeChange(){let e=this.positionToValue(this.get("start",0)),t=this.positionToValue(this.get("end",1));const i=this.get("renderer").gridCount();let s=this._adjustMinMax(e,t,i,!0),a=d.w1(s.step);this.setPrivateRaw("stepDecimalPlaces",a),e=g.LI(e,a),t=g.LI(t,a),s=this._adjustMinMax(e,t,i,!0);let r=s.step;e=s.min,t=s.max,this.getPrivate("selectionMin")===e&&this.getPrivate("selectionMax")===t&&this.getPrivate("step")===r||(this.setPrivateRaw("selectionMin",e),this.setPrivateRaw("selectionMax",t),this.setPrivateRaw("step",r))}positionToValue(e){const t=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(e*(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)+Math.log(t)*Math.LOG10E)/Math.LOG10E):e*(i-t)+t}valueToPosition(e){const t=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(e<=0){let t=this.get("treatZeroAs");h.Et(t)&&(e=t)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}return(e-t)/(i-t)}valueToFinalPosition(e){const t=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(e<=0){let t=this.get("treatZeroAs");h.Et(t)&&(e=t)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}return(e-t)/(i-t)}getX(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getY(e,t,i){e=i+(e-i)*t;const s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionX(e,t,i,s){let a=e.get(t);if(e.get("stackToItemX")){a=a*s+e.component.getStackedXValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}getDataItemPositionY(e,t,i,s){let a=e.get(t);if(e.get("stackToItemY")){a=a*s+e.component.getStackedYValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){const e=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),t=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0));let i=this.get("baseValue",0);return i<e&&(i=e),i>t&&(i=t),i}cellEndValue(e){return e}fixSmallStep(e){return 1+e===1?(e*=2,this.fixSmallStep(e)):e}_fixMin(e){return e}_fixMax(e){return e}_calculateTotals(){if(this.get("calculateTotals")){let e=this.series[0];if(e){let t=e.startIndex();if(e.dataItems.length>0){t>0&&t--;let i,s,a=e.endIndex();a<e.dataItems.length&&a++,e.get("yAxis")==this?(i="valueY",s="vcy"):e.get("xAxis")==this&&(i="valueX",s="vcx");let r=i+"Working";if(i)for(let e=t;e<a;e++){let t=0,a=0;l.__(this.series,i=>{if(!i.get("excludeFromTotal")){let n=i.dataItems[e];if(n){let e=n.get(r)*i.get(s);h.yr(e)||(t+=e,a+=Math.abs(e))}}}),l.__(this.series,n=>{if(!n.get("excludeFromTotal")){let o=n.dataItems[e];if(o){let e=o.get(r)*n.get(s);if(!h.yr(e)){o.set(i+"Total",a),o.set(i+"Sum",t);let s=e/a*100;0==a&&(s=0),o.set(i+"TotalPercent",s)}}}})}}}}}_getSelectionMinMax(){const e=this.getPrivate("minFinal"),t=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max");let a=this.get("extraMin",0),r=this.get("extraMax",0);this.get("logarithmic")&&(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(r=.2));const n=this.get("renderer").gridCount(),o=this.get("strictMinMaxSelection");let d=this.get("strictMinMax");if(h.Et(e)&&h.Et(t)){let u=t,c=e;if(l.__(this.series,e=>{if(!e.get("ignoreMinMax")){let t,i;const s=e.getPrivate("outOfSelection");if(e.get("xAxis")===this){if(!s){let s=e.getPrivate("minX"),a=e.getPrivate("maxX");0==e.startIndex()&&e.endIndex()==e.dataItems.length||(s=void 0,a=void 0),t=e.getPrivate("selectionMinX",s),i=e.getPrivate("selectionMaxX",a)}}else if(e.get("yAxis")===this&&!s){let s=e.getPrivate("minY"),a=e.getPrivate("maxY");0==e.startIndex()&&e.endIndex()==e.dataItems.length||(s=void 0,a=void 0),t=e.getPrivate("selectionMinY",s),i=e.getPrivate("selectionMaxY",a)}e.isHidden()||e.isShowing()||(h.Et(t)&&(u=Math.min(u,t)),h.Et(i)&&(c=Math.max(c,i)))}}),this.axisRanges.each(e=>{if(e.get("affectsMinMax")){let t=e.get("value");null!=t&&(u=Math.min(u,t),c=Math.max(c,t)),t=e.get("endValue"),null!=t&&(u=Math.min(u,t),c=Math.max(c,t))}}),u>c&&([u,c]=[c,u]),h.Et(i)?u=d?i:e:d&&h.Et(this._minReal)&&(u=this._minReal),h.Et(s)?c=d?s:t:d&&h.Et(this._maxReal)&&(c=this._maxReal),u===c){let t=u;if(u-=this._deltaMinMax,c+=this._deltaMinMax,u<e){let i=t-e;0==i&&(i=this._deltaMinMax),u=t-i,c=t+i,d=!0}let i=this._adjustMinMax(u,c,n,d);u=i.min,c=i.max}let p=u,_=c,m=c-u;u-=m*a,c+=m*r;let b=this._adjustMinMax(u,c,n);u=b.min,c=b.max,u=g.s_(u,e,t),c=g.s_(c,e,t),b=this._adjustMinMax(u,c,n,!0),d||(u=b.min,c=b.max);const f=this.get("syncWithAxis");if(f&&(b=this._syncAxes(u,c,b.step,f.getPrivate("selectionMinFinal",f.getPrivate("minFinal",0)),f.getPrivate("selectionMaxFinal",f.getPrivate("maxFinal",1)),f.getPrivate("selectionStepFinal",f.getPrivate("step",1))),b.min<e&&(b.min=e),b.max>t&&(b.max=t),u=b.min,c=b.max),d&&(h.Et(i)&&(u=Math.max(u,i)),h.Et(s)&&(c=Math.min(c,s))),o&&(u=p-(_-p)*a,c=_+(_-p)*r),d){u=h.Et(i)?i:p,c=h.Et(s)?s:_,c-u<=1e-8&&(u-=this._deltaMinMax,c+=this._deltaMinMax);let e=c-u;u-=e*a,c+=e*r}this.get("logarithmic")&&(u<=0&&(u=p*(1-Math.min(a,.99))),u<e&&(u=e),c>t&&(c=t));let v=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),y=g.LI(this.valueToFinalPosition(u),v),x=g.LI(this.valueToFinalPosition(c),v);this.setPrivateRaw("selectionMinFinal",u),this.setPrivateRaw("selectionMaxFinal",c),this.setPrivateRaw("selectionStepFinal",b.step),this.zoom(y,x)}}_getMinMax(){let e=this.get("min"),t=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),r=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(null==this.get("extraMin")&&(a=.1),null==this.get("extraMax")&&(r=.2)));let n=1/0;if(l.__(this.series,e=>{if(!e.get("ignoreMinMax")){let t,a;if(e.get("xAxis")===this?(t=e.getPrivate("minX"),a=e.getPrivate("maxX")):e.get("yAxis")===this&&(t=e.getPrivate("minY"),a=e.getPrivate("maxY")),h.Et(t)&&h.Et(a)){i=Math.min(i,t),s=Math.max(s,a);let e=a-t;e<=0&&(e=Math.abs(a/100)),e<n&&(n=e)}}}),this.axisRanges.each(e=>{if(e.get("affectsMinMax")){let t=e.get("value");null!=t&&(i=Math.min(i,t),s=Math.max(s,t)),t=e.get("endValue"),null!=t&&(i=Math.min(i,t),s=Math.max(s,t))}}),this.get("logarithmic")){let e=this.get("treatZeroAs");h.Et(e)&&i<=0&&(i=e),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(0===i&&0===s&&(s=.9,i=-.9),h.Et(e)&&(i=e),h.Et(t)&&(s=t),i===1/0||s===-1/0)return this.setPrivate("minFinal",void 0),void this.setPrivate("maxFinal",void 0);i>s&&([i,s]=[s,i]);const o=i,d=s;let u=this.adapters.fold("min",i),c=this.adapters.fold("max",s);this._minRealLog=i,h.Et(u)&&(i=u),h.Et(c)&&(s=c),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*r,this.get("logarithmic")&&(i<0&&o>=0&&(i=0),s>0&&d<=0&&(s=0)),this._minReal=i,this._maxReal=s;let p=this.get("strictMinMax"),_=this.get("strictMinMaxSelection",!1);_&&(p=_);let m=p;h.Et(t)&&(m=!0);let b=this.get("renderer").gridCount(),f=this._adjustMinMax(i,s,b,m);if(i=f.min,s=f.max,f=this._adjustMinMax(i,s,b,!0),i=f.min,s=f.max,p){i=h.Et(e)?e:this._minReal,s=h.Et(t)?t:this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let n=s-i;i-=n*a,s+=n*r}u=this.adapters.fold("min",i),c=this.adapters.fold("max",s),h.Et(u)&&(i=u),h.Et(c)&&(s=c),n==1/0&&(n=s-i);let v=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=g.LI(i,v),s=g.LI(s,v);const y=this.get("syncWithAxis");if(y&&(f=this._syncAxes(i,s,f.step,y.getPrivate("minFinal",y.getPrivate("min",0)),y.getPrivate("maxFinal",y.getPrivate("max",1)),y.getPrivate("step",1)),i=f.min,s=f.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/n*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=o*(1-Math.min(a,.99)))),h.Et(i)&&h.Et(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);const e=this.get("interpolationDuration",0),t=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:e,easing:t}),this.animatePrivate({key:"max",to:s,duration:e,easing:t})}}_fixZoomFactor(){}_getDelta(e){let t=Math.log(Math.abs(e))*Math.LOG10E,i=Math.pow(10,Math.floor(t));i/=10,this._deltaMinMax=i}
12_saveMinMax(e,t){}_adjustMinMax(e,t,i,s){i<=1&&(i=1),i=Math.round(i);let a=e,r=t,n=t-e;0===n&&(n=Math.abs(t));let o=Math.log(Math.abs(n))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l/=10;let d=l;s&&(d=0),s?(e=Math.floor(e/l)*l,t=Math.ceil(t/l)*l):(e=Math.ceil(e/l)*l-d,t=Math.floor(t/l)*l+d),e<0&&a>=0&&(e=0),t>0&&r<=0&&(t=0),o=Math.log(Math.abs(n))*Math.LOG10E,l=Math.pow(10,Math.floor(o)),l/=100;let u=Math.ceil(n/i/l)*l,c=Math.pow(10,Math.floor(Math.log(Math.abs(u))*Math.LOG10E)),p=Math.ceil(u/c);p>5?p=10:p<=5&&p>2&&(p=5),u=Math.ceil(u/(c*p))*c*p;let _=this.get("maxPrecision");if(h.Et(_)){let e=g.mk(u,_);_<Number.MAX_VALUE&&u!==e&&(u=e,0==u&&(u=1))}let m=0;c<1&&(m=Math.round(Math.abs(Math.log(Math.abs(c))*Math.LOG10E))+1,u=g.LI(u,m));let b,f=Math.floor(e/u);return e=g.LI(u*f,m),b=s?Math.floor(t/u):Math.ceil(t/u),b===f&&b++,(t=g.LI(u*b,m))<r&&(t+=u),e>a&&(e-=u),u=this.fixSmallStep(u),{min:e,max:t,step:u}}getTooltipText(e,t){const i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),r=this.getPrivate("stepDecimalPlaces",0)+a,n=g.LI(this.positionToValue(e),r);return i?s.format(n,i):s.format(n,void 0,r)}getSeriesItem(e,t){let i,s,a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),r=this.positionToValue(t);if(l.__(e.dataItems,(e,t)=>{const n=Math.abs(e.get(a)-r);(void 0===i||n<s)&&(i=t,s=n)}),null!=i)return e.dataItems[i]}zoomToValues(e,t,i){const s=this.getPrivate("minFinal",0),a=this.getPrivate("maxFinal",0);null!=this.getPrivate("min")&&null!=this.getPrivate("max")&&this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}_syncAxes(e,t,i,s,a,r){if(this.get("syncWithAxis")){let n=Math.round(a-s)/r,o=Math.round((t-e)/i),l=this.get("renderer").gridCount();if(h.Et(n)&&h.Et(o)){let s=!1,a=0,r=.01*(t-e),o=e,h=t,d=i;for(;1!=s;)if(s=this._checkSync(o,h,d,n),a++,a>500&&(s=!0),s)e=o,t=h,i=d;else{a/3==Math.round(a/3)?(o=e-r*a,e>=0&&o<0&&(o=0)):(h=t+r*a,h<=0&&h>0&&(h=0));let i=this._adjustMinMax(o,h,l,!0);o=i.min,h=i.max,d=i.step}}}return{min:e,max:t,step:i}}_checkSync(e,t,i,s){let a=(t-e)/i;for(let e=1;e<s;e++)if(g.LI(a/e,1)==s||a*e==s)return!0;return!1}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return h.Et(e)&&h.Et(t)?this.getPrivate("step",1)/(e-t):.05}nextPosition(e){null==e&&(e=1),"Y"==this.get("renderer").getPrivate("letter")&&(e*=-1);let t=this.positionToValue(this.getPrivate("tooltipPosition",0));return t+=this.getPrivate("step",1)*e,t=g.s_(t,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(t))}}Object.defineProperty(p,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ValueAxis"}),Object.defineProperty(p,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:u.classNames.concat([p.className])})},34647:(e,t,i)=>{i.d(t,{wC:()=>b,wB:()=>m});var s=i(97529),a=i(29799),r=i(92420),n=i(72971),o=i(14350);class l{constructor(e,t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e,this._settings=t,n.__(t,e=>{this._userSettings[e]=!0})}get(e,t){const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._settings[e]=t}set(e,t){this._userSettings[e]=!0,this.setRaw(e,t)}remove(e){delete this._userSettings[e],delete this._settings[e]}setAll(e){n.HP(e).forEach(t=>{this.set(t,e[t])})}_eachSetting(e){n.__(this._settings,e)}apply(){const e={stateAnimationEasing:!0,stateAnimationDuration:!0},t=this._entity.states.lookup("default");this._eachSetting((i,s)=>{e[i]||(e[i]=!0,this!==t&&(i in t._settings||(t._settings[i]=this._entity.get(i))),this._entity.set(i,s))})}applyAnimate(e){null==e&&(e=this._settings.stateAnimationDuration),null==e&&(e=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let t=this._settings.stateAnimationEasing;null==t&&(t=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",o.tA)));const i=this._entity.states.lookup("default"),s={stateAnimationEasing:!0,stateAnimationDuration:!0},a={};return this._eachSetting((r,n)=>{if(!s[r]){s[r]=!0,this!=i&&(r in i._settings||(i._settings[r]=this._entity.get(r)));const o=this._entity.animate({key:r,to:n,duration:e,easing:t});o&&(a[r]=o)}}),a}}class h{constructor(e){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=e}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new l(this._entity,t);return this._states[e]=i,i}}remove(e){delete this._states[e]}apply(e){const t=this._states[e];t&&t.apply(),this._entity._applyState(e)}
12applyAnimate(e,t){let i;const s=this._states[e];return s&&(i=s.applyAnimate(t)),this._entity._applyStateAnimated(e,t),i}}var d=i(48494),u=i(98379),c=i(35530);class g{constructor(e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=e}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),this._entity._markDirtyKey(e),new s.W_(()=>{u.dm(i,t)&&this._entity._markDirtyKey(e)})}remove(e){const t=this._callbacks[e];void 0!==t&&(delete this._callbacks[e],0!==t.length&&this._entity._markDirtyKey(e))}enable(e){this._disabled[e]&&(delete this._disabled[e],this._entity._markDirtyKey(e))}disable(e){this._disabled[e]||(this._disabled[e]=!0,this._entity._markDirtyKey(e))}fold(e,t){if(!this._disabled[e]){const i=this._callbacks[e];if(void 0!==i)for(let s=0,a=i.length;s<a;++s)t=i[s](t,this._entity,e)}return t}}class p{constructor(e,t,i,s,n,o,l){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new a.Q}),this._animation=e,this._from=t,this._to=i,this._duration=s,this._easing=n,this._loops=o,this._interpolate=(0,r.Kh)(t,i),this._oldTime=l}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){this._stopped||this._playing||(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise((e,t)=>{if(this._stopped)e();else{const t=()=>{i.dispose(),e()},i=this.events.on("stopped",t)}})}_checkEnded(){return!(this._loops>1)||(--this._loops,!1)}_run(e){null!==this._oldTime&&(this._time+=e-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=e}_reset(e){this._oldTime=e,this._time=0}_value(e){return this._interpolate(this._easing(e),this._from,this._to)}}let _=0;class m{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++_}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"enableDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._settings=e}
12_checkDirty(){n.HP(this._settings).forEach(e=>{this._userProperties[e]=!0,this._markDirtyKey(e)})}resetUserSettings(){this._userProperties={}}_runAnimation(e){let t=r.oA.Stopped;if(!this.isDisposed()){let i=!1,s=!1;n.__(this._animatingSettings,(t,a)=>{if(a.stopped)this._stopAnimation(t);else if(a.playing){a._run(e);const s=a.percentage;s>=1?a._checkEnded()?this.set(t,a._value(1)):(i=!0,a._reset(e),this._set(t,a._value(1))):(i=!0,this._set(t,a._value(s)))}else s=!0}),n.__(this._animatingPrivateSettings,(t,a)=>{if(a.stopped)this._stopAnimationPrivate(t);else if(a.playing){a._run(e);const s=a.percentage;s>=1?a._checkEnded()?this.setPrivate(t,a._value(1)):(i=!0,a._reset(e),this._setPrivate(t,a._value(1))):(i=!0,this._setPrivate(t,a._value(s)))}else s=!0}),i?t=r.oA.Playing:s&&(t=r.oA.Paused)}return t}_markDirtyKey(e){this.markDirty()}_markDirtyPrivateKey(e){this.markDirty()}on(e,t){let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new s.W_(()=>{u.dm(i,t),0===i.length&&delete this._settingEvents[e]})}off(e,t){let i=this._settingEvents[e];void 0!==i&&void 0!==t?u.dm(i,t):delete this._settingEvents[e]}onPrivate(e,t){let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new s.W_(()=>{u.dm(i,t),0===i.length&&delete this._privateSettingEvents[e]})}offPrivate(e,t){let i=this._privateSettingEvents[e];void 0!==i&&void 0!==t?u.dm(i,t):delete this._privateSettingEvents[e]}getRaw(e,t){const i=this._settings[e];return void 0!==i?i:t}has(e){return e in this._settings}get(e,t){return this.getRaw(e,t)}_sendKeyEvent(e,t){const i=this._settingEvents[e];void 0!==i&&u.__(i,i=>{i(t,this,e)})}_sendPrivateKeyEvent(e,t){const i=this._privateSettingEvents[e];void 0!==i&&u.__(i,i=>{i(t,this,e)})}_setRaw(e,t,i){this._prevSettings[e]=t,this._sendKeyEvent(e,i)}setRaw(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&this._setRaw(e,i,t)}_set(e,t){const i=this._settings[e];this._settings[e]=t,i!==t&&(this._setRaw(e,i,t),this._markDirtyKey(e))}_stopAnimation(e){const t=this._animatingSettings[e];t&&(delete this._animatingSettings[e],t.stop())}set(e,t){return this._set(e,t),this._stopAnimation(e),t}remove(e){e in this._settings&&(this._prevSettings[e]=this._settings[e],delete this._settings[e],this._sendKeyEvent(e,void 0),this._markDirtyKey(e)),this._stopAnimation(e)}removeAll(){u.__(n.HP(this._settings),e=>{this.remove(e)})}getPrivate(e,t){const i=this._privateSettings[e];return void 0!==i?i:t}_setPrivateRaw(e,t,i){this._prevPrivateSettings[e]=t,this._sendPrivateKeyEvent(e,i)}setPrivateRaw(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&this._setPrivateRaw(e,i,t)}_setPrivate(e,t){const i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&(this._setPrivateRaw(e,i,t),this._markDirtyPrivateKey(e))}_stopAnimationPrivate(e){const t=this._animatingPrivateSettings[e];t&&(t.stop(),delete this._animatingPrivateSettings[e])}setPrivate(e,t){return this._setPrivate(e,t),this._stopAnimationPrivate(e),t}removePrivate(e){e in this._privateSettings&&(this._prevPrivateSettings[e]=this._privateSettings[e],delete this._privateSettings[e],this._markDirtyPrivateKey(e)),this._stopAnimationPrivate(e)}setAll(e){n.__(e,(e,t)=>{this.set(e,t)})}animate(e){const t=e.key,i=e.to,s=e.duration||0,a=e.loops||1,r=void 0===e.from?this.get(t):e.from,n=void 0===e.easing?o.sn:e.easing;if(0===s)this.set(t,i);else{if(void 0!==r&&r!==i){this.set(t,r);const e=this._animatingSettings[t]=new p(this,r,i,s,n,a,this._animationTime());return this._startAnimation(),e}this.set(t,i)}const l=new p(this,r,i,s,n,a,null);return l.stop(),l}animatePrivate(e){const t=e.key,i=e.to,s=e.duration||0,a=e.loops||1,r=void 0===e.from?this.getPrivate(t):e.from,n=void 0===e.easing?o.sn:e.easing;if(0===s)this.setPrivate(t,i);else{if(void 0!==r&&r!==i){this.setPrivate(t,r);const e=this._animatingPrivateSettings[t]=new p(this,r,i,s,n,a,this._animationTime());return this._startAnimation(),e}this.setPrivate(t,i)}const l=new p(this,r,i,s,n,a,null);return l.stop(),l}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}}class b extends m{constructor(e,t,i,s=[]){if(super(t),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new h(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new g(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=e,this._internalTemplates=s,t.id&&this._registerId(t.id)}static new(e,t,i){const s=new this(e,t,!0);return s._template=i,s._afterNew(),s}static _new(e,t,i=[]){const s=new this(e,t,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let e=!1;const t=this._template;t&&(e=!0,t._setObjectTemplate(this)),u.__(this._internalTemplates,t=>{e=!0,t._setObjectTemplate(this)}),e&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();const e=this._template;e&&e._setObjectTemplate(this),u.__(this._internalTemplates,e=>{e._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new a.Q}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(e,t){const i=this.get(e);if(i)return i;{const i=t();return this.set(e,i),i}}_setDefault(e,t){this.has(e)||super.set(e,t)}_setRawDefault(e,t){this.has(e)||super.setRaw(e,t)}
12_clearDirty(){n.HP(this._dirty).forEach(e=>{this._dirty[e]=!1}),n.HP(this._dirtyPrivate).forEach(e=>{this._dirtyPrivate[e]=!1})}isDirty(e){return!!this._dirty[e]}isPrivateDirty(e){return!!this._dirtyPrivate[e]}_markDirtyKey(e){this._dirty[e]=!0,super._markDirtyKey(e)}_markDirtyPrivateKey(e){this._dirtyPrivate[e]=!0,super._markDirtyKey(e)}isType(e){return-1!==this.classNames.indexOf(e)}_pushPropertyDisposer(e,t){let i=this._disposerProperties[e];return void 0===i&&(i=this._disposerProperties[e]=[]),i.push(t),t}_disposeProperty(e){const t=this._disposerProperties[e];void 0!==t&&(u.__(t,e=>{e.dispose()}),delete this._disposerProperties[e])}set template(e){const t=this._template;t!==e&&(this._template=e,t&&t._removeObjectTemplate(this),e&&e._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(e){}_applyStateAnimated(e,t){}get(e,t){const i=this.adapters.fold(e,this._settings[e]);return void 0!==i?i:t}isUserSetting(e){return this._userProperties[e]||!1}set(e,t){return this._userProperties[e]=!0,super.set(e,t)}setRaw(e,t){this._userProperties[e]=!0,super.setRaw(e,t)}_setSoft(e,t){return this._userProperties[e]?t:super.set(e,t)}remove(e){delete this._userProperties[e],this._removeTemplateProperty(e)}setPrivate(e,t){return this._userPrivateProperties[e]=!0,super.setPrivate(e,t)}setPrivateRaw(e,t){this._userPrivateProperties[e]=!0,super.setPrivateRaw(e,t)}removePrivate(e){delete this._userPrivateProperties[e],this._removeTemplatePrivateProperty(e)}_setTemplateProperty(e,t,i){if(!this._userProperties[t]){e===this._findTemplateByKey(t)&&super.set(t,i)}}_setTemplatePrivateProperty(e,t,i){if(!this._userPrivateProperties[t]){e===this._findTemplateByPrivateKey(t)&&super.setPrivate(t,i)}}_removeTemplateProperty(e){if(!this._userProperties[e]){const t=this._findTemplateByKey(e);t?super.set(e,t._settings[e]):super.remove(e)}}_removeTemplatePrivateProperty(e){if(!this._userPrivateProperties[e]){const t=this._findTemplateByPrivateKey(e);t?super.setPrivate(e,t._privateSettings[e]):super.removePrivate(e)}}_walkParents(e){e(this._root._rootContainer),e(this)}_applyStateByKey(e){const t=this.states.create(e,{}),i={};this._eachTemplate(s=>{const a=s.states.lookup(e);a&&a._apply(t,i)}),n.__(t._settings,e=>{i[e]||t._userSettings[e]||t.remove(e)})}_applyTemplate(e,t){this._templateDisposers.push(e._apply(this,t)),n.__(e._settings,(e,i)=>{t.settings[e]||this._userProperties[e]||(t.settings[e]=!0,super.set(e,i))}),n.__(e._privateSettings,(e,i)=>{t.privateSettings[e]||this._userPrivateProperties[e]||(t.privateSettings[e]=!0,super.setPrivate(e,i))}),this._runSetup&&e.setup&&(this._runSetup=!1,e.setup(this))}_findStaticTemplate(e){if(this._template&&e(this._template))return this._template}_eachTemplate(e){this._findStaticTemplate(t=>(e(t),!1)),u.W$(this._internalTemplates,e),u.__(this._templates,e)}_applyTemplates(e=!0){e&&this._disposeTemplates();const t={settings:{},privateSettings:{},states:{}};this._eachTemplate(e=>{this._applyTemplate(e,t)}),e&&(n.__(this._settings,e=>{this._userProperties[e]||t.settings[e]||super.remove(e)}),n.__(this._privateSettings,e=>{this._userPrivateProperties[e]||t.privateSettings[e]||super.removePrivate(e)}))}_findTemplate(e){const t=this._findStaticTemplate(e);if(void 0===t){const t=u.um(this._internalTemplates,e);return void 0===t?u.I6(this._templates,e):t}return t}_findTemplateByKey(e){return this._findTemplate(t=>e in t._settings)}_findTemplateByPrivateKey(e){return this._findTemplate(t=>e in t._privateSettings)}_disposeTemplates(){u.__(this._templateDisposers,e=>{e.dispose()}),this._templateDisposers.length=0}_removeTemplates(){u.__(this._templates,e=>{e._removeObjectTemplate(this)}),this._templates.length=0}_applyThemes(e=!1){let t=!1;const i=[];let s=[];const a=new Set,r=this.get("themeTagsSelf");return r&&u.__(r,e=>{a.add(e)}),this._walkParents(e=>{e===this._root._rootContainer&&(t=!0),e._defaultThemes.length>0&&i.push(e._defaultThemes);const r=e.get("themes");r&&s.push(r);const n=e.get("themeTags");n&&u.__(n,e=>{a.add(e)})}),s=i.concat(s),this._removeTemplates(),(t||e)&&u.W$(this.classNames,e=>{const t=[];u.__(s,i=>{u.__(i,i=>{const s=i._lookupRules(e);s&&u.W$(s,e=>{if(e.tags.every(e=>a.has(e))){const i=u.wo(t,t=>{const i=c.UD(e.tags.length,t.tags.length);return 0===i?c.HN(e.tags,t.tags,c.UD):i});t.splice(i.index,0,e)}})})}),u.__(t,e=>{this._templates.push(e.template),e.template._setObjectTemplate(this)})}),this._applyTemplates(),(t||e)&&(this._runSetup=!1),t||e}_changed(){}_beforeChanged(){if(this.isDirty("id")){const e=this.get("id");e&&this._registerId(e);const t=this._prevSettings.id;t&&(delete this._root.entitiesById[t],delete d.u5.entitiesById[t])}}_registerId(e){if(this._root.entitiesById[e]&&this._root.entitiesById[e]!==this)throw new Error('An entity with id "'+e+'" already exists.');this._root.entitiesById[e]=this,d.u5.entitiesById[e]=this}_afterChanged(){}addDisposer(e){return this._disposers.push(e),e}_dispose(){super._dispose();const e=this._template;e&&e._removeObjectTemplate(this),u.__(this._internalTemplates,e=>{e._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEac
12h(e=>{e.dispose()}),n.__(this._disposerProperties,(e,t)=>{u.__(t,e=>{e.dispose()})});const t=this.get("id");t&&(delete this._root.entitiesById[t],delete d.u5.entitiesById[t])}setTimeout(e,t){const i=setTimeout(()=>{this.removeDispose(a),e()},t),a=new s.W_(()=>{clearTimeout(i)});return this._disposers.push(a),a}removeDispose(e){if(!this.isDisposed()){let t=u.qh(this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()}hasTag(e){return-1!==u.qh(this.get("themeTags",[]),e)}addTag(e){if(!this.hasTag(e)){const t=this.get("themeTags",[]);t.push(e),this.set("themeTags",t)}}removeTag(e){if(this.hasTag(e)){const t=this.get("themeTags",[]);u.TF(t,e),this.set("themeTags",t)}}_t(e,t,...i){return this._root.language.translate(e,t,...i)}get root(){return this._root}}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]})},35530:(e,t,i)=>{function s(e,t){return e===t?0:e<t?-1:1}function a(e,t,i){const a=e.length,r=t.length,n=Math.min(a,r);for(let s=0;s<n;++s){const a=i(e[s],t[s]);if(0!==a)return a}return s(a,r)}function r(e,t){return e===t?0:e<t?-1:1}i.d(t,{HN:()=>a,UD:()=>s,r9:()=>r})},42553:(e,t,i)=>{i.d(t,{F:()=>_});var s=i(50979),a=i(77742),r=i(20100);function n(e,t){for(let i=0,s=t.length;i<s;i++){const s=t[i];if(s.length>0){let t=s[0];if(t.length>0){let i=t[0];e.moveTo(i.x,i.y);for(let t=0,i=s.length;t<i;t++)o(e,s[t])}}}}function o(e,t){for(let i=0,s=t.length;i<s;i++){const s=t[i];e.lineTo(s.x,s.y)}}class l extends s.A{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let t=e[0];this._display.moveTo(t.x,t.y),n(this._display,[[e]])}else if(t)n(this._display,t);else if(!this.get("draw")){let e=this.width(),t=this.height();this._display.moveTo(0,0),this._display.lineTo(e,t)}}}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.A.classNames.concat([l.className])});class h extends l{}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:l.classNames.concat([h.className])});class d extends h{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisTick"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:h.classNames.concat([d.className])});var u=i(97957),c=i(97716);class g extends c.J{constructor(){super(...arguments),Object.defineProperty(this,"_tickPoints",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}Object.defineProperty(g,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisLabel"}),Object.defineProperty(g,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:c.J.classNames.concat([g.className])});var p=i(78135);class _ extends s.A{constructor(){super(...arguments),Object.defineProperty(this,"_axisLength",{enumerable:!0,configurable:!0,writable:!0,value:100}),Object.defineProperty(this,"_start",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_end",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_inversed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_minSize",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lc",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_ls",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_thumbDownPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEnd",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ticks",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r.TS(a.Bj.new({}),()=>d._new(this._root,{themeTags:p.kE(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template])))}),Object.defineProperty(this,"grid",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r.TS(a.Bj.new({}),()=>u.x._new(this._root,{themeTags:p.kE(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template])))}),Object.defineProperty(this,"axisFills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r.TS(a.Bj.new({}),()=>s.A._new(this._root,{themeTags:p.kE(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template])))}),Object.defineProperty(this,"labels",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r.TS(a.Bj.new({}),()=>g._new(this._root,{themeTags:p.kE(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}),Object.defineProperty(this,"axis",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}makeTick(e,t){const i=this.ticks.make();return i._setDataItem(e),e.setRaw("tick",i),i.set("themeTags",p.kE(i.get("themeTags"),t)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(e,t){const i=this.grid.make();return i._setDataItem(e),e.setRaw("grid",i),i.set("themeTags",p.kE(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(e,t){const i=this.axisFills.make();return i._setDataItem(e),i.set("themeTags",p.kE(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),e.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(e,t){const i=this.labels.make();return i.set("themeTags",p.kE(i.get("themeTags"),t)),this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(e),e.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);const e=this.thumb;e&&(this._disposers.push(e.events.on("pointerdown",e=>{this._handleThumbDown(e)})),this._disposers.push(e.events.on("globalpointerup",e=>{this._handleThumbUp(e)})),this._disposers.push(e.events.on("globalpointermove",e=>{this._handleThumbMove(e)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){const e=this.thumb;if(e){const t=this.axis.labelsContainer,i=this.get("pan");"zoom"==i?t.children.push(e):"none"==i&&t.children.removeValue(e)}}}_handleThumbDown(e){this._thumbDownPoint=this.toLocal(e.point);const t=this.axis;this._downStart=t.get("start"),this._downEnd=t.get("end")}_handleThumbUp(e){this._thumbDownPoint=void 0}_handleThumbMove(e){const t=this._thumbDownPoint;if(t){const i=this.toLocal(e.point),s=this._downStart,a=this._downEnd,r=this._getPan(i,t)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-r,a+r,0)}}_getPan(e,t){return 0}positionToCoordinate(e){return this._inversed?(this._end-e)*this._axisLength:(e-this._start)*this._axisLength}updateTooltipBounds(e){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e*=i-t,e=this.get("inversed")?i-e:t+e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e-=t,e/=i-t}fixPosition(e){return this.get("inversed")?1-e:e}_updateLC(){}toggleVisibility(e,t,i,s){let a=this.axis;const r=a.get("start",0),n=a.get("end",1);t<r+(n-r)*(i-1e-4)||t>r+(n-r)*(s+1e-4)?e.setPrivate("visible",!1):e.setPrivate("visible",!0)}_positionTooltip(e,t){const i=this.chart;i&&(e.set("pointTo",this._display.toGlobal(t)),i.inPlot(t)||e.hide())}processAxis(){}}Object.defineProperty(_,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRenderer"}),Object.defineProperty(_,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.A.classNames.c
12oncat([_.className])})},43545:(e,t,i)=>{i.d(t,{g:()=>r});var s=i(80937),a=i(83460);class r{static escape(e){return e.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(e){return e.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(e,t=!1,i=!1){let s=[];e=this.escape(e);let r=t?e.split("'"):[e];for(let e=0;e<r.length;e++){let t=r[e];if(""!==t)if(e%2==0){t=t.replace(/\]\[/g,"]"+a.Kx+"["),t=t.replace(/\[\]/g,"[ ]");let e=t.split(/[\[\]]+/);for(let t=0;t<e.length;t++){let r=this.cleanUp(this.unescape(e[t]));r!==a.Kx&&(""!==r&&(t%2==0?s.push({type:"value",text:r}):s.push({type:i?"value":"format",text:"["+r+"]"})))}}else{let e=t.split(/[\[\]]+/);for(let t=0;t<e.length;t++){let i=this.cleanUp(this.unescape(e[t]));""!==i&&(t%2==0?s.push({type:"text",text:i}):this.isImage(i)?s.push({type:"image",text:"["+i+"]"}):s.push({type:"format",text:"["+i+"]"}))}}}return s}static isImage(e){return!!e.match(/img[ ]?:/)}static getTextStyle(e){let t={};if(""==e||"[ ]"==e)return{};const i=e.match(/('[^']*')|("[^"]*")/gi);if(i)for(let t=0;t<i.length;t++)e=e.replace(i[t],i[t].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let a=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!a)return{};for(let e=0;e<a.length;e++)if(a[e].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))t.fontWeight=a[e];else if(a[e].match(/^(underline|line-through)$/i))t.textDecoration=a[e];else if("/"==a[e]);else if(a[e].match(/:/)){const i=a[e].replace("+"," ").split(/:[ ]*/);t[i[0]]=i[1]}else t.fill=s.Q1.fromString(a[e]);return t}}Object.defineProperty(r,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"})},48494:(e,t,i)=>{i.d(t,{u5:()=>s});const s=new class{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.13.5"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]})}}},49094:(e,t,i)=>{i.d(t,{A:()=>c});var s=i(51947),a=i(16611),r=i(50979),n=i(97957),o=i(83460),l=i(78135),h=i(21050),d=i(98379),u=i(72971);class c extends s.m{constructor(){super(...arguments),Object.defineProperty(this,"_alwaysShow",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"lineX",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(n.x.new(this._root,{themeTags:["x"]}))}),Object.defineProperty(this,"lineY",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(n.x.new(this._root,{themeTags:["y"]}))}),Object.defineProperty(this,"selection",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(r.A.new(this._root,{themeTags:["selection","cursor"],layer:30}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_lastPoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_lastPoint2",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_tooltipX",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_tooltipY",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_toY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._settings.themeTags=l.kE(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:a.Q2,height:a.Q2,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}
12),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),l.xY("keyboardevents")&&this._disposers.push(l.q2(document,"keydown",e=>{this._handleLineMove(l.K(e),e.ctrlKey)}))}_setUpTouch(){const e=this.chart;e&&(e.plotContainer._display.cancelTouch="none"!=this.get("behavior"))}_handleXLine(){let e=this.lineX.x(),t=!0;(e<0||e>this.width())&&(t=!1),this.lineX.setPrivate("visible",t)}_handleYLine(){let e=this.lineY.y(),t=!0;(e<0||e>this.height())&&(t=!1),this.lineY.setPrivate("visible",t)}_handleLineMove(e,t){let i="";const s=this.chart;let a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let r=1;if(t&&(r=5),a){let t,s=a.get("renderer").get("inversed",!1);"ArrowRight"==e||"ArrowDown"==e?t=1:"ArrowLeft"==e||"ArrowUp"==e?t=-1:"Tab"==e&&(t=0),null!=t&&(s&&(t*=-1),this.set(i,a.nextPosition(t*r)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;const e=this.get("xAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipX=!0,this._disposers.push(t.on("pointTo",()=>{this._updateXLine(t)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;const e=this.get("yAxis");if(e){const t=e.get("tooltip");t&&(this._tooltipY=!0,this._disposers.push(t.on("pointTo",()=>{this._updateYLine(t)})))}}}_handleSyncWith(){const e=this.chart;if(e){const t=this.get("syncWith"),i=[];t&&d.__(t,e=>{const t=e.chart;t&&i.push(t)}),e._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){const e=this.get("positionX"),t=this.get("positionY");null==e&&null==t?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(e){let t=h.LI(this._display.toLocal(e.get("pointTo",{x:0,y:0})).x,3);this._toX!=t&&(this.lineX.animate({key:"x",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toX=t)}_updateYLine(e){let t=h.LI(this._display.toLocal(e.get("pointTo",{x:0,y:0})).y,3);this._toY!=t&&(this.lineY.animate({key:"y",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toY=t)}_drawLines(){this.lineX.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,this.height())}),this.lineY.set("draw",e=>{e.moveTo(0,0),e.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(e){this.chart=e,this._handleSyncWith();const t=e.plotContainer;this.events.on("boundschanged",()=>{this._disposers.push(this.setTimeout(()=>{this.updateCursor()},50))}),l.xY("touchevents")&&(this._disposers.push(t.events.on("click",e=>{l.kH(e.originalEvent)&&this._handleMove(e)})),this._setUpTouch()),this._disposers.push(t.events.on("pointerdown",e=>{this._handleCursorDown(e)})),this._disposers.push(t.events.on("globalpointerup",e=>{this._handleCursorUp(e),e.native||this.isHidden()||this._handleMove(e)})),this._disposers.push(t.events.on("globalpointermove",e=>{(this.get("syncWith")||0!=u.HP(t._downPoints).length||e.native||!this.isHidden())&&(this._handleMove(e),Math.hypot(this._lastPoint2.x-e.point.x,this._lastPoint2.y-e.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=e.point))}));const i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(e){const t=this.chart;return!!t&&t.inPlot(e)}_handleCursorDown(e){if(2==e.originalEvent.button)return;const t=e.point;let i=this._display.toLocal(t);const s=this.chart;if(this.selection.set("draw",()=>{}
12),s&&this._inPlot(i)){if(this._downPoint=i,"none"!=this.get("behavior")){this.selection.show();const t="selectstarted";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}let t=this._getPosition(i).x,s=this._getPosition(i).y;this.setPrivate("downPositionX",t),this.setPrivate("downPositionY",s)}}_handleCursorUp(e){if(this._downPoint){const t=this.get("behavior","none");if("none"!=t){"z"===t.charAt(0)&&this.selection.hide();const i=e.point;let s=this._display.toLocal(i);const a=this._downPoint,r=this.get("moveThreshold",1);if(s&&a){let i=!1;if("zoomX"!==t&&"zoomXY"!==t&&"selectX"!==t&&"selectXY"!==t||Math.abs(s.x-a.x)>r&&(i=!0),"zoomY"!==t&&"zoomXY"!==t&&"selectY"!==t&&"selectXY"!==t||Math.abs(s.y-a.y)>r&&(i=!0),i){const t="selectended";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}else{const t="selectcancelled";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}}}}this._downPoint=void 0}_handleMove(e){if(this.getPrivate("visible")){const t=this.chart;if(t&&u.HP(t.plotContainer._downPoints).length>1)return void this.set("forceHidden",!0);this.set("forceHidden",!1);const i=e.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,e.originalEvent)}}_getPosition(e){return{x:e.x/this.width(),y:e.y/this.height()}}handleMove(e,t,i){e||(e=this._movePoint);const s=this.get("alwaysShow");if(!e)return void this.hide(0);this._movePoint=e;let a=this._display.toLocal(e),r=this.chart;if(r&&(this._inPlot(a)||this._downPoint)){if(r._movePoint=e,this.isHidden()){this.show();"z"==this.get("behavior","").charAt(0)&&this.selection.set("draw",()=>{})}let n=a.x,l=a.y,h=this._getPosition(a);this.setPrivate("point",a);let d=this.get("snapToSeries");this._downPoint&&(d=void 0);let u=this.get("positionX"),c=h.x;o.Et(u)&&(c=u);let g=this.get("positionY"),p=h.y;o.Et(g)&&(p=g),this.setPrivate("positionX",c),this.setPrivate("positionY",p);const _=this._getPoint(c,p);if(n=_.x,l=_.y,r.xAxes.each(e=>{e._handleCursorPosition(c,d),s&&e.handleCursorShow()}),r.yAxes.each(e=>{e._handleCursorPosition(p,d),s&&e.handleCursorShow()}),!t){r._handleCursorPosition();const t="cursormoved";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,point:e,originalEvent:i})}this._updateLines(n,l),r.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);const e="cursorhidden";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this._downPoint&&"none"!=this.get("behavior")&&this._updateSelection(a)}_getPoint(e,t){return{x:this.width()*e,y:this.height()*t}}_updateLines(e,t){this._tooltipX||this.lineX.set("x",e),this._tooltipY||this.lineY.set("y",t),this._drawLines()}_updateSelection(e){const t=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();e.x<0&&(e.x=0),e.x>s&&(e.x=s),e.y<0&&(e.y=0),e.y>a&&(e.y=a),t.set("draw",t=>{const r=this._downPoint;r&&("zoomXY"===i||"selectXY"===i?(t.moveTo(r.x,r.y),t.lineTo(r.x,e.y),t.lineTo(e.x,e.y),t.lineTo(e.x,r.y),t.lineTo(r.x,r.y)):"zoomX"===i||"selectX"===i?(t.moveTo(r.x,0),t.lineTo(r.x,a),t.lineTo(e.x,a),t.lineTo(e.x,0),t.lineTo(r.x,0)):"zoomY"!==i&&"selectY"!==i||(t.moveTo(0,r.y),t.lineTo(s,r.y),t.lineTo(s,e.y),t.lineTo(0,e.y),t.lineTo(0,r.y)))})}_onHide(){if(this.isHidden()){let e=this.chart;e&&(e.xAxes.each(e=>{e.handleCursorHide()}),e.yAxes.each(e=>{e.handleCursorHide()}),e.series.each(e=>{e.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let e=this.chart;e&&(e.xAxes.each(e=>{e.handleCursorShow()}),e.yAxes.each(e=>{e.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}}Object.defineProperty(c,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYCursor"}),Object.defineProperty(c,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.m.classNames.concat([c.className])})},50155:(e,t,i)=>{i.d(t,{M:()=>a});var s=i(50979);class a extends s.A{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let e=this.width(),t=this.height(),i=0,s=0,a=e/Math.abs(e),r=t/Math.abs(t);if(this.get("containStroke",!1)){const n=this.get("strokeWidth",0);e-=n*a,t-=n*r,i+=n/2*a,s+=n/2*r}this._display.drawRect(i,s,e,t)}_updateSize(){this.markDirty(),this._clear=!0}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.A.classNames.c
vendor: 5,887 bytes, line 12
12oncat([a.className])})},50979:(e,t,i)=>{i.d(t,{A:()=>d});var s=i(34647);class a extends s.wC{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){const e=this.get("repetition",""),t=this.get("width",100),i=this.get("height",100),s=this.get("fill"),a=this.get("fillOpacity",1),r=this._backgroundDisplay,n=this._display;n.clear(),r.clear(),s&&a>0&&(r.beginFill(s,a),r.drawRect(0,0,t,i),r.endFill()),n.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(n,r,e,t,i)}this._clear=!1}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.wC.classNames.concat([a.className])});class r extends a{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();const e=this.get("canvas");e&&(this.set("width",e.width),this.set("height",e.height))}_draw(){super._draw();const e=this.get("colorOpacity");void 0!==e&&(this._display.alpha=Math.max(0,e));const t=this._image;if(t){const e=this.get("width",100),i=this.get("height",100),s=this.get("fit","image");let a=0,r=0;"pattern"==s?(a=e,r=i,this.markDirty()):(a=t.width,r=t.height,"image"==s&&(this.set("width",a),this.set("height",r)));let n=0,o=0;this.get("centered",!0)&&(n=e/2-a/2,o=i/2-r/2),this._display.image(t,a,r,n,o)}const i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){const e=this.get("src");if(e){const t=new Image;t.src=e,t.decode().then(()=>{this._image=t,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})}).catch(e=>{})}}}Object.defineProperty(r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"}),Object.defineProperty(r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.classNames.concat([r.className])});var n=i(3569),o=i(98310),l=i(83460),h=i(98379);class d extends n.k{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){const e=this.get("fillGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("fill")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("fill")})))}}if(this.isDirty("strokeGradient")){const e=this.get("strokeGradient");if(e){this._display.isMeasured=!0;const t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("stroke")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("stroke")})))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let e=this.get("strokeDasharray");l.Et(e)&&(e=e<.5?[0]:[e]),this._display.setLineDash(e);const t=this.get("strokeDashoffset");t&&this._display.setLineDashOffset(t);const i=this.get("blendMode",o.N.NORMAL);this._display.blendMode=i;const s=this.get("draw");s&&"function"==typeof s&&s(this._display,this);const a=this.get("svgPath");null!=a&&this._display.svgPath(a)}}_afterChanged(){if(super._afterChanged(),this._clear){const e=this.get("fill"),t=this.get("fillGradient"),i=this.get("fillPattern"),s=this.get("fillOpacity"),a=this.get("stroke"),n=this.get("strokeGradient"),o=this.get("strokePattern"),l=this.get("shadowColor"),d=this.get("shadowBlur"),u=this.get("shadowOffsetX"),c=this.get("shadowOffsetY"),g=this.get("shadowOpacity");if(l&&(d||u||c)&&this._display.shadow(l,d,u,c,g),e&&!t&&(this._display.beginFill(e,s),this._display.endFill()),t){if(e){const i=t.get("stops",[]);i.length&&h.__(i,t=>{t.color&&!t.colorInherited||!e||(t.color=e,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=s,t.opacityInherited=!0)})}
12const i=t.getFill(this);i&&(this._display.beginFill(i,s),this._display.endFill())}if(i){const e=i.pattern;e&&(this._display.beginFill(e,s),this._display.endFill(),i instanceof r&&i.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(a||n||o){const e=this.get("strokeOpacity");let t=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(t/=this.get("scale",1)),this.get("crisp")&&(t/=this._root._renderer.resolution);const i=this.get("lineJoin"),s=this.get("lineCap");if(a&&!n&&(this._display.lineStyle(t,a,e,i,s),this._display.endStroke()),n){const r=n.get("stops",[]);r.length&&h.__(r,t=>{t.color&&!t.colorInherited||!a||(t.color=a,t.colorInherited=!0),(null==t.opacity||t.opacityInherited)&&(t.opacity=e,t.opacityInherited=!0)});const o=n.getFill(this);o&&(this._display.lineStyle(t,o,e,i,s),this._display.endStroke())}if(o){let a=o.pattern;a&&(this._display.lineStyle(t,a,e,i,s),this._display.endStroke(),o instanceof r&&o.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}}Object.defineProperty(d,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"}),Object.defineProperty(d,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n.k.classNames.concat([d.className])})},51089:(e,t,i)=>{i.d(t,{C:()=>k});var s=i(67140),a=i(16611),r=i(80937),n=i(34647);class o extends n.wC{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);const e=this.getPrivate("currentPass"),t=this.get("colors",[this.get("baseColor",r.Q1.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",t.length);const i=this.getPrivate("numColors"),s=this.get("passOptions"),a=this.get("reuse");for(let n=0;n<i;n++)if(a)t.push(t[n]);else{const i=t[n].toHSL();let a=i.h+(s.hue||0)*e;for(;a>1;)a-=1;let o=i.s+(s.saturation||0)*e;o>1&&(o=1),o<0&&(o=0);let l=i.l+(s.lightness||0)*e;for(;l>1;)l-=1;t.push(r.Q1.fromHSL(a,o,l))}}getIndex(e){const t=this.get("colors",[]),i=this.get("saturation");return e>=t.length?(this.generateColors(),this.getIndex(e)):null!=i?r.Q1.saturate(t[e],i):t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}}Object.defineProperty(o,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"}),Object.defineProperty(o,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:n.wC.classNames.concat([o.className])});var l=i(30820),h=i(98849),d=i(83460),u=i(21050),c=i(72971),g=i(98379);class p extends s.S{setupDefaultRules(){super.setupDefaultRules();const e=this._root.interfaceColors,t=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:o.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:r.Q1.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:o.new(this._root,{saturation:0})});{const t=i("Graphics",["scrollbar","overlay"]);t.setAll({fillOpacity:.5}),(0,l.w)(t,"fill",e,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,
vendor: 9,561 bytes, line 12
12cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:a.Q2,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:a.Q2}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:a.Q2}),i("AxisLabel",["y"]).setAll({centerX:a.Q2}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:a.Q2}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{const s=i("Grid",["cursor","x"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use left and right arrows to move selection")}),(0,l.w)(s,"stroke",e,"alternativeBackground")}{const s=i("Grid",["cursor","y"]);s.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use up and down arrows to move selection")}),(0,l.w)(s,"stroke",e,"alternativeBackground")}{const t=i("Graphics",["cursor","selection"]);t.setAll({fillOpacity:.15}),(0,l.w)(t,"fill",e,"alternativeBackground")}i("Axis").setAll({start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:a.yP,centerY:a.yP,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{const t=i("AxisRenderer");t.setAll({crisp:!0,strokeOpacity:0}),(0,l.w)(t,"stroke",e,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:a.Q2}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:a.Q2});{const t=i("Rectangle",["axis","thumb"]);t.setAll({fillOpacity:0}),(0,l.w)(t,"fill",e,"alternativeBackground"),t.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y"]).setAll({cursorOverStyle:"ns-resize"});{const t=i("Grid");t.setAll({location:0,strokeOpacity:.15,crisp:!0}),(0,l.w)(t,"stroke",e,"grid")}{const t=i("Grid",["minor"]);t.setAll({location:0,strokeOpacity:.07,crisp:!0}),(0,l.w)(t,"stroke",e,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{const t=i("Graphics",["axis","fill"]);t.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),(0,l.w)(t,"fill",e,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{const t=i("AxisTick");t.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),(0,l.w)(t,"stroke",e,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(e,t)=>{const i=e.get("axisFill");i&&(d.Et(t)&&t%2!=0?i.setPrivate("visible",!1):i.setPrivate("visible",!0))}});const s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],n={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_hour"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month"),year:t.translate("_date_year")},p={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_day"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month")+" "+t.translate("_date_year"),year:t.translate("_date_year")},_={millisecond:t.translate("_date_millisecond_full"),second:t.translate("_date_second_full"),minute:t.translate("_date_minute_full"),hour:t.translate("_date_hour_full"),day:t.translate("_date_day_full"),week:t.translate("_date_week_full"),month:t.translate("_date_month_full"),year:t.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:g.C(s),dateFormats:c.C(n),periodChangeDateFormats:c.C(p)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,gridIntervals:g.C(s),dateFormats:c.C(n),periodChangeDateFormats:c.C(p),tooltipDateFormats:_,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,s=e.get("value"),a=e.get("endValue"),r=i.intervalDuration(),n=i.getPrivate("baseInterval"),o=i.getPrivate("gridInterval",n);let l=i.getPrivate("min",0);if(l=h.LI(new Date(l),o.timeUnit,o.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),null!=s&&null!=a){const e=Math.round(Math.round((s-l)/r))/2;e==Math.round(e)?t.setPrivate("visible",!0):t.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.get("index");let s=!1;d.Et(i)&&i%2!=0||(s=!0),t.setPrivate("visible",s)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:e=>{const t=e.get("axisFill");if(t){const i=e.component,s=e.get("value"),a=i.getPrivate("step");d.Et(s)&&d.Et(a)&&(u.LI(s/a/2,5)==Math.round(s/a/2)?t.setPrivate("visible",!1):t.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:(0,a.KN)(70),height:(0,a.KN)(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),s=i.width();e.moveTo(0,t/2),e.lineTo(s,t/2)}}});{const t=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});(0,l.w)(t,"stroke",e,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(e,t)=>{const i=t.parent;if(i){const t=i.height(),s=i.width();e.moveTo(0,0),e.lineTo(s,0),e.lineTo(s,t),e.lineTo(0,t),e.lineTo(0,0)}}});{const t=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});(0,l.w)(t,"stroke",e,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:(0,a.KN)(50),height:(0,a.KN)(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,
12cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:(0,a.KN)(80),height:(0,a.KN)(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{const t=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});(0,l.w)(t,"fill",e,"positive"),(0,l.w)(t,"stroke",e,"positive")}{const t=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});(0,l.w)(t,"fill",e,"negative"),(0,l.w)(t,"stroke",e,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{const t=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});(0,l.w)(t,"fill",e,"positive"),(0,l.w)(t,"stroke",e,"positive")}{const t=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});(0,l.w)(t,"fill",e,"negative"),(0,l.w)(t,"stroke",e,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{const t=i("Graphics",["rangegrip","button","icon"]);t.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:e=>{e.moveTo(0,.5),e.lineTo(0,12.5),e.moveTo(2,.5),e.lineTo(2,12.5),e.moveTo(4,.5),e.lineTo(4,12.5)}}),(0,l.w)(t,"stroke",e,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:a.yP}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:a.yP}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:a.Q2}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:a.Q2})}}var _=i(51947),m=i(50155);class b extends _.m{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(_.m.new(this._root,{width:a.Q2,height:a.Q2,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:_.m.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:a.Q2,height:a.Q2})})}}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_.m.classNames.concat([b.className])});var f=i(20100);class v extends b{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:_.m.new(this._root,{width:a.Q2,height:a.Q2,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new f.fo})}_afterNew(){super._afterNew(),this._disposers.push(this.series);const e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll(t=>{if("clear"===t.type){g.__(t.oldValues,e=>{this._removeSeries(e)});const e=this.get("colors");e&&e.reset();const i=this.get("patterns");i&&i.reset()}else if("push"===t.type)e.moveValue(t.newValue),this._processSeries(t.newValue);else if("setIndex"===t.type)e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("insertIndex"===t.type)e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if("removeIndex"===t.type)this._removeSeries(t.oldValue);else if("moveIndex"===t.type)e.moveValue(t.value,t.newIndex),this._processSeries(t.value);else{if("swap"!==t.type)throw new Error("Unknown IListEvent type");{const i=t.a,s=t.b,a=this.series.indexOf(i),r=this.series.indexOf(s);e.moveValue(i,r),e.moveValue(s,a),this.series.each(e=>{this._processSeries(e),e.markDirtyValues()})}}}))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e._handleRemoved(),e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}}Object.defineProperty(v,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"}),Object.defineProperty(v,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:b.classNames.c
12oncat([v.className])});var y=i(78135);class x extends m.M{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),i=e/Math.abs(e),s=t/Math.abs(t),a=0,r=0;const n=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=i*n,t-=s*n,a+=i*n/2,r+=s*n/2);let o=e,l=t;if(d.Et(o)&&d.Et(l)){let e=Math.min(o,l)/2,t=y.JY(this.get("cornerRadiusTL",8),e),n=y.JY(this.get("cornerRadiusTR",8),e),h=y.JY(this.get("cornerRadiusBR",8),e),d=y.JY(this.get("cornerRadiusBL",8),e),c=Math.min(Math.abs(o/2),Math.abs(l/2));t=u.s_(t,0,c),n=u.s_(n,0,c),h=u.s_(h,0,c),d=u.s_(d,0,c);const g=this._display;g.moveTo(a+t*i,r),g.lineTo(a+o-n*i,r),n>0&&g.arcTo(a+o,r,a+o,r+n*s,n),g.lineTo(a+o,r+l-h*s),h>0&&g.arcTo(a+o,r+l,a+o-h*i,r+l,h),g.lineTo(a+d*i,r+l),d>0&&g.arcTo(a,r+l,a,r+l-d*s,d),g.lineTo(a,r+t*s),t>0&&g.arcTo(a,r,a+t*i,r,t),g.closePath()}}}Object.defineProperty(x,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RoundedRectangle"}),Object.defineProperty(x,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:m.M.classNames.concat([x.className])});class w extends _.m{_afterNew(){this._settings.themeTags=y.kE(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",x.new(this._root,{themeTags:y.kE(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){const e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){const e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}}Object.defineProperty(w,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Button"}),Object.defineProperty(w,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_.m.classNames.concat([w.className])});var P=i(50979),D=i(35530);class k extends v{constructor(){super(...arguments),Object.defineProperty(this,"xAxes",{enumerable:!0,configurable:!0,writable:!0,value:new f.fo}),Object.defineProperty(this,"yAxes",{enumerable:!0,configurable:!0,writable:!0,value:new f.fo}),Object.defineProperty(this,"topAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(_.m.new(this._root,{width:a.Q2,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"yAxesAndPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(_.m.new(this._root,{width:a.Q2,height:a.Q2,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"bottomAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.chartContainer.children.push(_.m.new(this._root,{width:a.Q2,layout:this._root.verticalLayout}))}),Object.defineProperty(this,"leftAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(_.m.new(this._root,{height:a.Q2,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"plotsContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(_.m.new(this._root,{width:a.Q2,height:a.Q2,maskContent:!1}))}),Object.defineProperty(this,"plotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(_.m.new(this._root,{width:a.Q2,height:a.Q2}))}),Object.defineProperty(this,"topPlotContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotsContainer.children.push(_.m.new(this._root,{width:a.Q2,height:a.Q2}))}),Object.defineProperty(this,"gridContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(_.m.new(this._root,{width:a.Q2,height:a.Q2,isMeasured:!1}))}),Object.defineProperty(this,"topGridContainer",{enumerable:!0,configurable:!0,writable:!0,value:_.m.new(this._root,{width:a.Q2,height:a.Q2,isMeasured:!1})}),Object.defineProperty(this,"rightAxesContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.yAxesAndPlotContainer.children.push(_.m.new(this._root,{height:a.Q2,layout:this._root.horizontalLayout}))}),Object.defineProperty(this,"axisHeadersContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.plotContainer.children.push(_.m.new(this._root,{}))}),Object.defineProperty(this,"zoomOutButton",{enumerable:!0,configurable:!0,writable:!0,value:this.topPlotContainer.children.push(w.new(this._root,{themeTags:["zoom"],icon:P.A.new(this._root,{themeTags:["button","icon"]})}))}),Object.defineProperty(this,"_movePoint",{enumerable:!0,configurable:!0,writable:!0,value:{x:0,y:0}}),Object.defineProperty(this,"_wheelDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_otherCharts",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_movePoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_downStartX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downStartY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downEndY",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this._defaultThemes.push(p.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);const e=this._root;let t=this._root.verticalLayout;const i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",t);const s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",m.M.new(e,{themeTags:["plotbackground","xy","background"]}
vendor: 6,334 bytes, line 12
12)),this._disposers.push(s.events.on("pointerdown",e=>{this._handlePlotDown(e)})),this._disposers.push(s.events.on("globalpointerup",e=>{this._handlePlotUp(e)})),this._disposers.push(s.events.on("globalpointermove",e=>{this._handlePlotMove(e)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(e){e._unstack(),e._posXDp&&e._posXDp.dispose(),e._posYDp&&e._posYDp.dispose(),e.set("baseAxis",void 0);const t=e.get("xAxis");t&&(g.TF(t.series,e),t.markDirtyExtremes());const i=e.get("yAxis");i&&(g.TF(i.series,e),i.markDirtyExtremes());const s=this.get("cursor");if(s){const t=s.get("snapToSeries");t&&g.TF(t,e)}super._removeSeries(e)}handleWheel(e){const t=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=e.originalEvent;let r=!1;if(!y.ay(a,this))return;r=!0;const n=s.toLocal(e.point),o=this.get("wheelStep",.2),l=a.deltaY/100,h=a.deltaX/100,d=this.get("wheelZoomPositionX"),u=this.get("wheelZoomPositionY");"zoomX"!==t&&"zoomXY"!==t||0==h||this.xAxes.each(e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.x/s.width());null!=d&&(a=d);let l=e.get("maxDeviation",0),u=Math.min(1+l,Math.max(-l,t-o*(i-t)*h*a)),c=Math.max(-l,Math.min(1+l,i+o*(i-t)*h*(1-a)));u==t&&c==i&&(r=!1),1/(c-u)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(u,c)):r=!1}}),"zoomX"!==i&&"zoomXY"!==i||0==l||this.xAxes.each(e=>{if(e.get("zoomX")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.x/s.width());null!=d&&(a=d);let h=e.get("maxDeviation",0),u=Math.min(1+h,Math.max(-h,t-o*(i-t)*l*a)),c=Math.max(-h,Math.min(1+h,i+o*(i-t)*l*(1-a)));u==t&&c==i&&(r=!1),1/(c-u)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(u,c)):r=!1}}),"zoomY"!==t&&"zoomXY"!==t||0==h||this.yAxes.each(e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.y/s.height());null!=u&&(a=u);let l=e.get("maxDeviation",0),d=Math.min(1+l,Math.max(-l,t-o*(i-t)*h*a)),c=Math.max(-l,Math.min(1+l,i+o*(i-t)*h*(1-a)));d==t&&c==i&&(r=!1),1/(c-d)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(d,c)):r=!1}}),"zoomY"!==i&&"zoomXY"!==i||0==l||this.yAxes.each(e=>{if(e.get("zoomY")){let t=e.get("start"),i=e.get("end"),a=e.fixPosition(n.y/s.height());null!=u&&(a=u);let h=e.get("maxDeviation",0),d=Math.min(1+h,Math.max(-h,t-o*(i-t)*l*a)),c=Math.max(-h,Math.min(1+h,i+o*(i-t)*l*(1-a)));d==t&&c==i&&(r=!1),1/(c-d)<e.getPrivate("maxZoomFactor",1/0)/e.get("minZoomCount",1)?this._handleWheelAnimation(e.zoom(d,c)):r=!1}}),"panX"!==t&&"panXY"!==t||0==h||this.xAxes.each(e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*o*(i-t)*h,a=t+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==t&&n==i&&(r=!1),this._handleWheelAnimation(e.zoom(a,n))}}),"panX"!==i&&"panXY"!==i||0==l||this.xAxes.each(e=>{if(e.get("panX")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*o*(i-t)*l,a=t+s,n=i+s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==t&&n==i&&(r=!1),this._handleWheelAnimation(e.zoom(a,n))}}),"panY"!==t&&"panXY"!==t||0==h||this.yAxes.each(e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*o*(i-t)*h,a=t+s,n=i+s,l=this._fixWheel(a,n);a=l[0],n=l[1],a==t&&n==i&&(r=!1),this._handleWheelAnimation(e.zoom(a,n))}}),"panY"!==i&&"panXY"!==i||0==l||this.yAxes.each(e=>{if(e.get("panY")){let t=e.get("start"),i=e.get("end"),s=this._getWheelSign(e)*o*(i-t)*l,a=t-s,n=i-s,h=this._fixWheel(a,n);a=h[0],n=h[1],a==t&&n==i&&(r=!1),this._handleWheelAnimation(e.zoom(a,n))}}),r&&a.preventDefault()}_handleSetWheel(){const e=this.get("wheelX"),t=this.get("wheelY"),i=this.plotContainer;"none"!==e||"none"!==t?(this._wheelDp=i.events.on("wheel",i=>{const s=i.originalEvent;("none"!==e&&0!=Math.abs(s.deltaX)||"none"!==t&&0!=Math.abs(s.deltaY))&&this.handleWheel(i)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(e){let t=1;return e.get("renderer").get("inversed")&&(t=-1),t}_fixWheel(e,t){const i=t-e;return e<0&&(t=(e=0)+i),t>1&&(e=(t=1)-i),[e,t]}_handlePlotDown(e){const t=e.originalEvent;if(2==t.button)return;const i=this.plotContainer;let s=i.toLocal(e.point);if(this.get("pinchZoomX")||this.get("pinchZoomY")){if(t.pointerId&&c.HP(i._downPoints).length>0){const e=this.xAxes.getIndex(0),t=this.yAxes.getIndex(0);e&&(this._downStartX=e.get("start",0),this._downEndX=e.get("end",1)),t&&(this._downStartY=t.get("start",0),this._downEndY=t.get("end",1))}}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:t.clientX,y:t.clientY};const i=this.get("panX"),s=this.get("panY");i&&this.xAxes.each(e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")}),s&&this.yAxes.each(e=>{e._panStart=e.get("start"),e._panEnd=e.get("end")});const a="panstarted";this.events.isEnabled(a)&&this.events.dispatch(a,{type:a,target:this,originalEvent:e.originalEvent})}}_handleWheelAnimation(e){e?e.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){const e="wheelended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}_handlePlotUp(e){const t=this._downPoint;if(t&&(this.get("panX")||this.get("panY"))){if(e.originalEvent.clientX==t.x&&e.originalEvent.clientY==t.y){const t="pancancelled";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent})}const i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:e.originalEvent})}this._downPoint=void 0,this.xAxes.each(e=>{e._isPanning=!1}),this.yAxes.each(e=>{e._isPanning=!1})}_handlePlotMove(e){const t=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){const i=e.originalEvent.pointerId;if(i&&(this._movePoints[i]=e.point,c.HP(t._downPoints).length>1))return void this._handlePinch()}let i=this._downPoint;
12if(i){i=t.toLocal(this._root.documentPointToRoot(i));let s=t.toLocal(e.point);const a=this.get("panX"),r=this.get("panY");if(a){let e=this.get("scrollbarX");e&&e.events.disableType("rangechanged"),this.xAxes.each(e=>{if(e.get("panX")){e._isPanning=!0;let a=e._panStart,r=e._panEnd,n=(r-a)*(i.x-s.x)/t.width();e.get("renderer").get("inversed")&&(n*=-1);let o=a+n,l=r+n;l-o<1+2*e.get("maxDeviation",1)&&(e.set("start",o),e.set("end",l))}}),e&&e.events.enableType("rangechanged")}if(r){let e=this.get("scrollbarY");e&&e.events.disableType("rangechanged"),this.yAxes.each(e=>{if(e.get("panY")){e._isPanning=!0;let a=e._panStart,r=e._panEnd,n=(r-a)*(i.y-s.y)/t.height();e.get("renderer").get("inversed")&&(n*=-1);let o=a-n,l=r-n;l-o<1+2*e.get("maxDeviation",1)&&(e.set("start",o),e.set("end",l))}}),e&&e.events.enableType("rangechanged")}}}_handlePinch(){const e=this.plotContainer;let t=0,i=[],s=[];if(c.__(e._downPoints,(e,a)=>{i[t]=a;let r=this._movePoints[e];r&&(s[t]=r),t++}),i.length>1&&s.length>1){const t=e.width(),a=e.height();let r=i[0],n=i[1],o=s[0],l=s[1];if(r&&n&&o&&l){if(o=e.toLocal(o),l=e.toLocal(l),r=e.toLocal(r),n=e.toLocal(n),this.get("pinchZoomX")){const e=this._downStartX,i=this._downEndX;if(null!=e&&null!=i){r.x>n.x&&([r,n]=[n,r],[o,l]=[l,o]);let s=e+r.x/t*(i-e),a=e+n.x/t*(i-e),h=e+o.x/t*(i-e),d=e+l.x/t*(i-e),u=Math.max(.001,a-s)/Math.max(.001,d-h),c=e*u+s-h*u,g=i*u+a-d*u;this.xAxes.each(e=>{let t=e.fixPosition(c),i=e.fixPosition(g);e.zoom(t,i,0)})}}if(this.get("pinchZoomY")){const e=this._downStartY,t=this._downEndY;if(null!=e&&null!=t){r.y<n.y&&([r,n]=[n,r],[o,l]=[l,o]);let i=e+(1-r.y/a)*(t-e),s=e+(1-n.y/a)*(t-e),h=e+(1-o.y/a)*(t-e),d=e+(1-l.y/a)*(t-e),u=Math.max(.001,s-i)/Math.max(.001,d-h),c=e*u+i-h*u,g=t*u+s-d*u;this.yAxes.each(e=>{let t=e.fixPosition(c),i=e.fixPosition(g);e.zoom(t,i,0)})}}}}}_handleCursorPosition(){const e=this.get("cursor");if(e){const t=e.getPrivate("point");let i=e.get("snapToSeries");if(e._downPoint&&(i=void 0),i&&t){const s=e.get("snapToSeriesBy"),a=[];g.__(i,e=>{if(!e.isHidden()&&!e.isHiding())if("x!"!=s&&"y!"!=s){const t=e.startIndex(),i=e.endIndex();for(let s=t;s<i;s++){const t=e.dataItems[s];t&&!t.isHidden()&&a.push(t)}}else{const t=e.get("tooltipDataItem");t&&a.push(t)}});let r,n=1/0;if(g.__(a,e=>{const i=e.get("point");if(i){let a=0;a="x"==s||"x!"==s?Math.abs(t.x-i.x):"y"==s||"y!"==s?Math.abs(t.y-i.y):Math.hypot(t.x-i.x,t.y-i.y),a<n&&(n=a,r=e)}}),g.__(i,e=>{const t=e.get("tooltip");t&&t._setDataItem(void 0)}),r){let t=r.component;t.showDataItemTooltip(r),t.setRaw("tooltipDataItem",r);const i=r.get("point");i&&e.handleMove(t.toGlobal({x:i.x-t.x(),y:i.y-t.y()}),!0)}}}}_updateCursor(){let e=this.get("cursor");e&&e.updateCursor()}_addCursor(e){this.plotContainer.children.push(e)}_prepareChildren(){if(super._prepareChildren(),this.series.each(e=>{this._colorize(e)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){const e=this._prevSettings.cursor,t=this.get("cursor");t!==e&&(this._disposeProperty("cursor"),e&&e.dispose(),t&&(t._setChart(this),this._addCursor(t),this._pushPropertyDisposer("cursor",t.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=t)}if(this.isDirty("scrollbarX")){const e=this._prevSettings.scrollbarX,t=this.get("scrollbarX");t!==e&&(this._disposeProperty("scrollbarX"),e&&e.dispose(),t&&(t.parent||this.topAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarX",t.events.on("rangechanged",e=>{this._handleScrollbar(this.xAxes,e.start,e.end,e.grip)})),this._pushPropertyDisposer("scrollbarX",t.events.on("released",()=>{this.xAxes.each(e=>{e.get("zoomable")&&this._handleAxisSelection(e)})})),t.setPrivate("positionTextFunction",e=>{const t=this.xAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""})),this._prevSettings.scrollbarX=t)}if(this.isDirty("scrollbarY")){const e=this._prevSettings.scrollbarY,t=this.get("scrollbarY");t!==e&&(this._disposeProperty("scrollbarY"),e&&e.dispose(),t&&(t.parent||this.rightAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarY",t.events.on("rangechanged",e=>{this._handleScrollbar(this.yAxes,e.start,e.end,e.grip)})),this._pushPropertyDisposer("scrollbarY",t.events.on("released",()=>{this.yAxes.each(e=>{e.get("zoomable")&&this._handleAxisSelection(e)})})),t.setPrivate("positionTextFunction",e=>{const t=this.yAxes.getIndex(0);return t&&t.getTooltipText(e,!1)||""})),this._prevSettings.scrollbarY=t)}this._handleZoomOut()}_processSeries(e){super._processSeries(e);const t=e.get("xAxis"),i=e.get("yAxis");g.Cy(t.series,e),g.Cy(i.series,e),e._posXDp=e.addDisposer(t.events.on("positionchanged",()=>{e._fixPosition()})),e._posXDp=e.addDisposer(i.events.on("positionchanged",()=>{e._fixPosition()}
12)),e.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?e.set("baseAxis",i):e.set("baseAxis",t)),e.get("stacked")&&(e._markDirtyKey("stacked"),g.__(e.dataItems,e=>{e.set("stackToItemY",void 0),e.set("stackToItemX",void 0)})),e._markDirtyAxes(),i.markDirtyExtremes(),t.markDirtyExtremes(),t._seriesAdded=!0,i._seriesAdded=!0,this._colorize(e)}_colorize(e){const t=this.get("colors");if(t&&null==e.get("fill")){const i=t.next();e._setSoft("stroke",i),e._setSoft("fill",i)}const i=this.get("patterns");if(i&&null==e.get("fillPattern")){const t=i.next();e._setSoft("fillPattern",t)}}_handleCursorSelectEnd(){const e=this.get("cursor"),t=e.get("behavior"),i=e.getPrivate("downPositionX",0),s=e.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,e.getPrivate("positionX",.5))),r=Math.min(1,Math.max(0,e.getPrivate("positionY",.5)));this.xAxes.each(e=>{if("zoomX"===t||"zoomXY"===t){let t=e.toAxisPosition(i),s=e.toAxisPosition(a);e.zoom(t,s)}e.setPrivate("updateScrollbar",!0)}),this.yAxes.each(e=>{if("zoomY"===t||"zoomXY"===t){let t=e.toAxisPosition(s),i=e.toAxisPosition(r);e.zoom(t,i)}e.setPrivate("updateScrollbar",!0)})}_handleScrollbar(e,t,i,s){e.each(e=>{let a=e.fixPosition(t),r=e.fixPosition(i),n=e.zoom(a,r,void 0,s);const o="updateScrollbar";e.setPrivateRaw(o,!1),n?n.events.on("stopped",()=>{e.setPrivateRaw(o,!0)}):e.setPrivateRaw(o,!0)})}_processAxis(e,t){return e.events.onAll(e=>{if("clear"===e.type)g.__(e.oldValues,e=>{this._removeAxis(e)});else if("push"===e.type)t.children.push(e.newValue),e.newValue.processChart(this);else if("setIndex"===e.type)t.children.setIndex(e.index,e.newValue),e.newValue.processChart(this);else if("insertIndex"===e.type)t.children.insertIndex(e.index,e.newValue),e.newValue.processChart(this);else if("removeIndex"===e.type)this._removeAxis(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");t.children.moveValue(e.value,e.newIndex),e.value.processChart(this)}})}_removeAxis(e){if(!e.isDisposed()){const t=e.parent;t&&t.children.removeValue(e);const i=e.gridContainer,s=i.parent;s&&s.children.removeValue(i);const a=e.topGridContainer,r=a.parent;r&&r.children.removeValue(a)}}_updateChartLayout(){const e=this.leftAxesContainer.width(),t=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",e),i.set("paddingRight",t);const s=this.topAxesContainer;s.set("paddingLeft",e),s.set("paddingRight",t)}processAxis(e){this.get("cursor")&&(this.addDisposer(e.on("start",()=>{this._updateCursor()})),this.addDisposer(e.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(e,t){let i=e.fixPosition(e.get("start",0)),s=e.fixPosition(e.get("end",1));if(i>s&&([i,s]=[s,i]),-1!=this.xAxes.indexOf(e)){if(t||e.getPrivate("updateScrollbar")){let e=this.get("scrollbarX");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",s),e.updateGrips())}}else if(-1!=this.yAxes.indexOf(e)&&(t||e.getPrivate("updateScrollbar"))){let e=this.get("scrollbarY");!e||e.getPrivate("isBusy")&&!t||(e.setRaw("start",i),e.setRaw("end",s),e.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let e=this.zoomOutButton;if(e&&e.parent){let t=!1;this.xAxes.each(e=>{0==u.LI(e.get("start",0),5)&&1==u.LI(e.get("end",1),5)||(t=!0)}),this.yAxes.each(e=>{0==u.LI(e.get("start",0),5)&&1==u.LI(e.get("end",1),5)||(t=!0)}),t?e.isHidden()&&e.show():e.hide()}}inPlot(e){const t=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=t.toGlobal(e);if(e.x>=-.5&&e.y>=-.5&&e.x<=t.width()+.5&&e.y<=t.height()+.5)return!0;if(i)for(let e=i.length-1;e>=0;e--){const t=i[e];if(t!=this){const e=t.plotContainer,i=this._root.rootPointToDocument(s),a=t._root.documentPointToRoot(i),r=e.toLocal(a);if(r.x>=-.1&&r.y>=-.1&&r.x<=e.width()+.1&&r.y<=e.height()+.1)return!0}}return!1}arrangeTooltips(){const e=this.plotContainer,t=e.width(),i=e.height();let s=this.height();const r=this._root.tooltipContainer.get("layerMargin");r&&r.bottom>s&&(s=r.bottom);let n=e._display.toGlobal({x:0,y:0}),o=e._display.toGlobal({x:t,y:i});const l=[];let h,u,c=0,p=1/0,_=this._movePoint,m=this.get("maxTooltipDistance"),b=this.get("maxTooltipDistanceBy","xy");d.Et(m)&&this.series.each(e=>{if(!e.isHidden()){const t=e.get("tooltip");if(t){let i=t.get("pointTo");if(i){let t=Math.hypot(_.x-i.x,_.y-i.y);
12"x"==b?t=Math.abs(_.x-i.x):"y"==b&&(t=Math.abs(_.y-i.y)),t<p&&(p=t,h=e,u=i)}}}});const f=[];if(this.series.each(e=>{const t=e.get("tooltip");if(t&&!t.get("forceHidden")){let i=!1,s=t.get("pointTo");if(s){if(m>=0){let s=t.get("pointTo");if(s&&u&&e!=h){let e=Math.hypot(u.x-s.x,u.y-s.y);"x"==b?e=Math.abs(u.x-s.x):"y"==b&&(e=Math.abs(u.y-s.y)),e>m&&(i=!0)}}else-1==m&&e!=h&&(i=!0);this.inPlot(this._tooltipToLocal(s))&&t.dataItem?i||(c+=s.y):i=!0,i||e.isHidden()||e.isHiding()?t.hide(0):(t.show(),l.push(t),f.push(e))}}}),this.setPrivate("tooltipSeries",f),this.get("arrangeTooltips")){let e=0,t=0;const r=this._root.tooltipContainer,h=l.length;if(c/h>i/2+n.y){l.sort((e,t)=>D.r9(t.get("pointTo").y,e.get("pointTo").y));let i=o.y;if(g.__(l,s=>{let l=s.height();t++,e+=l;let h=s.get("centerY");h instanceof a.QE&&(l*=h.value),l+=s.get("marginBottom",0),s.set("bounds",{left:n.x,top:n.y,right:o.x,bottom:i}),s.setPrivate("customData",{left:n.x,top:n.y,right:o.x,bottom:i}),i=Math.min(i-l,s._fy-l),s.parent==r&&r.children.moveValue(s,0)}),i<0){l.reverse();let e=i;g.__(l,s=>{t++;let a=s.get("bounds");if(a){let t=a.top-i,r=a.bottom-i;t<e&&(t=e,r=t+s.height()),s.set("bounds",{left:a.left,top:t,right:a.right,bottom:r}),e=a.bottom-i+s.get("marginBottom",0)}})}}else{l.reverse(),l.sort((e,t)=>D.r9(e.get("pointTo").y,t.get("pointTo").y));let i=0;if(g.__(l,l=>{t++;let h=l.height();e+=h;let d=l.get("centerY");d instanceof a.QE&&(h*=d.value),h+=l.get("marginBottom",0),l.set("bounds",{left:n.x,top:i,right:o.x,bottom:Math.max(n.y+s,i+h)}),l.parent==r&&r.children.moveValue(l,0),i=Math.max(i+h,l._fy+h)}),i>s){l.reverse();let e=s;g.__(l,a=>{t++;let r=a.get("bounds");if(r){let t=r.top-(s-i),n=r.bottom-(s-i);n>e&&(n=e,t=n-a.height()),a.set("bounds",{left:r.left,top:t,right:r.right,bottom:n}),e=n-a.height()-a.get("marginBottom",0)}})}}0==e&&t>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(e){return this.plotContainer.toLocal(e)}zoomOut(){this.xAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)}),this.yAxes.each(e=>{e.setPrivate("updateScrollbar",!0),e.zoom(0,1)})}_dispose(){super._dispose();const e=this.get("cursor");e&&e.dispose()}}Object.defineProperty(k,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYChart"}),Object.defineProperty(k,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:v.classNames.concat([k.className])})},51947:(e,t,i)=>{i.d(t,{m:()=>_});var s=i(20100),a=i(98379);class r extends s.B8{constructor(e){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=e,this._events=this.events.onAll(e=>{if("clear"===e.type)a.__(e.oldValues,e=>{this._onRemoved(e)});else if("push"===e.type)this._onInserted(e.newValue);else if("setIndex"===e.type)this._onRemoved(e.oldValue),this._onInserted(e.newValue,e.index);else if("insertIndex"===e.type)this._onInserted(e.newValue,e.index);else if("removeIndex"===e.type)this._onRemoved(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._onRemoved(e.value),this._onInserted(e.value,e.newIndex)}})}_onInserted(e,t){e._setParent(this._container,!0);const i=this._container._childrenDisplay;void 0===t?i.addChild(e._display):i.addChildAt(e._display,t)}_onRemoved(e){this._container._childrenDisplay.removeChild(e._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),a.__(this.values,e=>{e.dispose()}))}}var n=i(16611),o=i(3569),l=i(50155),h=i(91806),d=i(98160),u=i(53650),c=i(3235),g=i(83460),p=i(78135);class _ extends o.k{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new r(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_dispose(){a.W$(this.allChildren(),e=>{e.dispose()}),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each(e=>{e.removePrivate("x"),e.removePrivate("y")})),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each(e=>{e.markDirtyPosition()}),this.isDirty("maskContent")){const e=this._childrenDisplay;let t=this._contentMask;this.get("maskContent")?t||(t=l.M.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=t,e.addChildAt(t._display,0),e.mask=t._display):t&&(e.removeChild(t._display),e.mask=null,t.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),a.__(this._percentageSizeChildren,e=>{e._updateSize()}),a.__(this._percentagePositionChildren,e=>{e.markDirtyPosition(),e._updateSize()}
vendor: 2,851 bytes, line 12
12),this.updateBackground()}updateBackground(){const e=this.get("background");let t=this._localBounds;if(t&&!this.isHidden()){let i=t.left,s=t.top,a=t.right-i,r=t.bottom-s,n=this.get("maxWidth"),o=this.get("maxHeight");o&&r>o&&(r=o),n&&a>n&&(a=n);let l=this.width(),h=this.height();e&&(e.setAll({width:a,height:r,x:i,y:s}),this._display.interactive&&(e._display.interactive=!0));const d=this._contentMask;d&&d.setAll({width:l+1,height:h+1});const u=this.get("verticalScrollbar");if(u){u.set("height",h),u.set("x",l-u.width()-u.get("marginRight",0)),u.set("end",u.get("start",0)+h/this._contentHeight);const e=u.get("background");e&&e.setAll({width:u.width(),height:h});let t=!0;this._contentHeight<=h&&(t=!1),u.setPrivate("visible",t)}}}_applyThemes(e=!1){return!!super._applyThemes(e)&&(this.eachChildren(t=>{t._applyThemes(e)}),!0)}_applyState(e){super._applyState(e),this.get("setStateOnChildren")&&this.eachChildren(t=>{t.states.apply(e)})}_applyStateAnimated(e,t){super._applyStateAnimated(e,t),this.get("setStateOnChildren")&&this.eachChildren(i=>{i.states.applyAnimate(e,t)})}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let e=this._localBounds;e&&(this._contentWidth=e.right-e.left,this._contentHeight=e.bottom-e.top)}else{let e=this.get("width"),t=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),a={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),n=!1,o=!1;if((r instanceof h.b||r instanceof u.J)&&(n=!0),r instanceof d.N&&(o=!0),null==e&&null==i||null==t&&null==s||this.get("verticalScrollbar")){let e=Number.MAX_VALUE,t=e,i=-e,s=e,r=-e;const l=this.get("paddingLeft",0),h=this.get("paddingTop",0),d=this.get("paddingRight",0),u=this.get("paddingBottom",0);this.children.each(e=>{if("absolute"!=e.get("position")&&e.get("isMeasured")){let a=e.adjustedLocalBounds(),l=e.x(),h=e.y(),d=l+a.left,u=l+a.right,c=h+a.top,g=h+a.bottom;n&&(d-=e.get("marginLeft",0),u+=e.get("marginRight",0)),o&&(c-=e.get("marginTop",0),g+=e.get("marginBottom",0)),d<t&&(t=d),u>i&&(i=u),c<s&&(s=c),g>r&&(r=g)}}),t==e&&(t=0),i==-e&&(i=0),s==e&&(s=0),r==-e&&(r=0),a.left=t-l,a.top=s-h,a.right=i+d,a.bottom=r+u;const c=this.get("minWidth");g.Et(c)&&c>0&&a.right-a.left<c&&(a.right>=c?a.left=a.right-c:a.right=a.left+c);const p=this.get("minHeight");g.Et(p)&&p>0&&a.bottom-a.top<p&&(a.bottom>=p?a.top=a.bottom-p:a.bottom=a.top+p)}else;this._contentWidth=a.right-a.left,this._contentHeight=a.bottom-a.top,g.Et(e)&&(a.left=0,a.right=e),g.Et(i)&&(a.left=0,a.right=i),g.Et(t)&&(a.top=0,a.bottom=t),g.Et(s)&&(a.top=0,a.bottom=s),this._localBounds=a}}_updateBounds(){const e=this.get("layout");e&&e.updateContainer(this),super._updateBounds(),this.updateBackgroun
12d()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){const e=this.innerWidth(),t=this.innerHeight();if(e!=this._prevWidth||t!=this._prevHeight){let i=this.get("layout"),s=!1,r=!1;i&&((i instanceof h.b||i instanceof u.J)&&(s=!0),i instanceof d.N&&(r=!0)),a.__(this._percentageSizeChildren,i=>{if(!s){let t=i.get("width");t instanceof n.QE&&i.setPrivate("width",t.value*e)}if(!r){let e=i.get("height");e instanceof n.QE&&i.setPrivate("height",e.value*t)}}),a.__(this._percentagePositionChildren,e=>{e.markDirtyPosition(),e.markDirtyBounds()}),this._prevWidth=e,this._prevHeight=t,this._sizeDirty=!0,this.updateBackground()}this._handleStates()}_updateHTMLContent(){const e=this.get("html","");e&&""!==e?this._root._setHTMLContent(this,(0,c.I)(this,e)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(e){const t=this.get("verticalScrollbar");if(t){let i=e.y(),s=this.innerHeight(),a=e.height(),r=this._contentHeight,n=1-(s-a/2)/r;if(i+.7*a+this._childrenDisplay.y>s||i-.3*a+this._childrenDisplay.y<0){let e=Math.max(0,Math.min(n,(i-a/2)/r));t.animate({key:"start",to:e,duration:t.get("animationDuration",0),easing:t.get("animationEasing")})}}}_updateChildren(){if(this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){const e=this.get("verticalScrollbar");
12if(e){e._setParent(this),e.startGrip.setPrivate("visible",!1),e.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",e.width()+e.get("marginRight",0)+e.get("marginLeft",0));let t=this.get("background");t||(t=this.set("background",l.M.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",t=>{const i=t.originalEvent;if(!p.ay(i,this))return;i.preventDefault();let s=i.deltaY/5e3;const a=e.get("start",0),r=e.get("end",1);a+s<=0&&(s=-a),r+s>=1&&(s=1-r),a+s>=0&&r+s<=1&&(e.set("start",a+s),e.set("end",r+s))}),this._disposers.push(this._vsbd0),this._vsbd1=e.events.on("rangechanged",()=>{let t=this._contentHeight;const i=this._childrenDisplay,s=this._contentMask;i.y=-e.get("start",0)*t,i.markDirtyLayer(),s&&(s._display.y=-i.y,i.mask=s._display)}),this._disposers.push(this._vsbd1),this._display.addChild(e._display)}else{const e=this._prevSettings.verticalScrollbar;if(e){this._display.removeChild(e._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose();this._childrenDisplay.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}}}if(this.isDirty("background")){const e=this._prevSettings.background;e&&this._display.removeChild(e._display);const t=this.get("background");t instanceof o.k&&(t.set("isMeasured",!1),t._setParent(this),this._display.addChildAt(t._display,0))}if(this.isDirty("mask")){const e=this.get("mask"),t=this._prevSettings.mask;if(t&&(this._display.removeChild(t._display),t!=e&&t.dispose()),e){const t=e.parent;t&&t.children.removeValue(e),e._setParent(this),this._display.addChildAt(e._display,0),this._childrenDisplay.mask=e._display}}}_processTemplateField(){super._processTemplateField(),this.children.each(e=>{e._processTemplateField()})}walkChildren(e){this.children.each(t=>{t instanceof _&&t.walkChildren(e),e(t)})}eachChildren(e){const t=this.get("background");t&&e(t);const i=this.get("verticalScrollbar");i&&e(i);const s=this.get("mask");s&&e(s),this.children.values.forEach(t=>{e(t)})}allChildren(){const e=[];return this.eachChildren(t=>{e.push(t)}),e}_setDataItem(e){const t=e!==this._dataItem;super._setDataItem(e);const i=this.get("html","");i&&""!==i&&t&&this._root._setHTMLContent(this,(0,c.I)(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}}Object.defineProperty(_,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"}),Object.defineProperty(_,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:o.k.classNames.concat([_.className])})},52736:(e,t,i)=>{i.d(t,{Q:()=>l});var s=i(42553),a=i(16611),r=i(83460),n=i(78135),o=i(50155);class l extends s.F{constructor(){super(...arguments),Object.defineProperty(this,"_downY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:o.M.new(this._root,{height:a.Q2,isMeasured:!1,themeTags:["axis","y","thumb"]})})}_afterNew(){this._settings.themeTags=n.kE(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");const e=this.grid.template;e.set("width",a.Q2),e.set("height",0),e.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(t.width(),0)}),this.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(0,t.height())})}_getPan(e,t){return(e.y-t.y)/this.height()}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("y",-1e3);const t=this.thumb,i="opposite",s="inside",a=this.chart;if(this.isDirty(i)||this.isDirty(s)){const t=e.children;if(this.get(s)?e.addTag(s):e.removeTag(s),a){if(this.get(i)){const s=a.rightAxesContainer.children;-1==s.indexOf(e)&&s.moveValue(e,0),e.addTag(i),t.moveValue(this,0)}else{const s=a.leftAxesContainer.children;-1==s.indexOf(e)&&s.moveValue(e),e.removeTag(i),t.moveValue(this)}e.ghostLabel._applyThemes(),this.labels.each(e=>{e._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}const r=e.labelsContainer.width();a&&(this.get(i)?t.set("centerX",0):t.set("centerX",r)),t.setPrivate("width",r)}processAxis(){super.processAxis();const e=this.axis;null==e.get("height")&&e.set("height",a.Q2);const t=this._root.horizontalLayout;e.set("layout",t),e.labelsContainer.set("height",a.Q2),e.axisHeader.set("layout",t)}_updatePositions(){const e=this.axis,t=e.y()-n.JY(e.get("centerY",0),e.height());e.gridContainer.set("y",t),e.topGridContainer.set("y",t),e.bulletsContainer.set("x",this.x());const i=e.chart;if(i){const t=i.plotContainer,s=e.axisHeader;let a=e.get("marginTop",0);s.children.length>0?(a=e.axisHeader.height(),e.set("marginTop",a+1)):s.set("height",a),s.setAll({y:e.y()-a,x:-1,width:t.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(e){return{x:0,y:this.positionToCoordinate(e)}}updateLabel(e,t,i,s){if(e){r.Et(t)||(t=0);let a=.5;a=r.Et(s)&&s>1?e.get("multiLocation",a):e.get("location",a);const n=this.get("opposite"),o=e.get("inside",this.get("inside",!1));n?(e.set("x",0),o?e.set("position","absolute"):e.set("position","relative")):o?(e.set("x",0),e.set("position","absolute")):(e.set("x",void 0),e.set("position","relative")),r.Et(i)&&i!=t&&(t+=(i-t)*a),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){r.Et(t)||(t=0);let s=e.get("location",.5);r.Et(i)&&i!=t&&(t+=(i-t)*s),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateTick(e,t,i,s){if(e){r.Et(t)||(t=0);let a=.5;a=r.Et(s)&&s>1?e.get("multiLocation",a):e.get("location",a),r.Et(i)&&i!=t&&(t+=(i-t)*a),e.set("y",this.positionToCoordinate(t));let n=e.get("length",0);const o=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("x",0),o&&(n*=-1)):o||(n*=-1),e.set("draw",e=>{e.moveTo(0,0),e.lineTo(n,0)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){r.Et(t)||(t=0);let a=e.get("location",.5);r.Et(i)&&i!=t&&(t+=(i-t)*a);let n=this.axis.roundAxisPosition(t,a),o=this.axis._bullets[n],l=1;if(this.get("opposite")&&(l=-1),e.get("stacked"))if(o){let e=o.get("sprite");e&&s.set("x",e.x()+e.width()*l)}else s.set("x",0);this.axis._bullets[n]=e,s.set("y",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){r.Et(t)||(t=0),r.Et(i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",e=>{const s=this.axis.gridContainer.width(),a=this.height();i<t&&([i,t]=[t,i]),t>a||i<0||(e.moveTo(0,t),e.lineTo(s,t),e.lineTo(s,i),e.lineTo(0,i),e.lineTo(0,t))})}positionToCoordinate(e){return this._inversed?(e-this._start)*this._axisLength:(this._end-e)*this._axisLength}positionTooltip(e,t){this._positionTooltip(e,{x:0,y:this.positionToCoordinate(t)})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.y,r=0,o=this.axisLength(),l=i,h="right";this.get("opposite")?t?(h="right",r=s.x-i,l=i):(h="left",r=s.x,l=i):t?(h="left",r=s.x,l=i):(h="right",r=s.x-i,l=i);const d={left:r,right:r+l,top:a,bottom:a+o},u=e.get("bounds");n.MI(d,u)||(e.set("bounds",d),e.set("pointerOrientation",h))}_updateLC(){const e=this.axis,t=e.parent;
12if(t){const i=t.innerHeight();this._lc=this.axisLength()/i,this._ls=e.y()/i}}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e=(e-=this._ls)*(i-t)/this._lc,e=this.get("inversed")?t+e:i-e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e-=t:e=i-e,e=e/(i-t)*this._lc,e+=this._ls}fixPosition(e){return this.get("inversed")?e:1-e}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererY"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.F.classNames.concat([l.className])})},53650:(e,t,i)=>{i.d(t,{J:()=>n});var s=i(95926),a=i(98379),r=i(21050);class n extends s.P{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(e){let t=e.get("paddingLeft",0),i=e.get("paddingRight",0),a=e.get("paddingTop",0),n=e.maxWidth()-t-i,o=n,l=1;(0,s.l)(e,e=>{if(e.get("visible")&&e.getPrivate("visible")&&!e.get("forceHidden")&&"absolute"!=e.get("position")){let t=e.width();t<o&&(o=t),t>l&&(l=t)}}),o=r.s_(o,1,n),l=r.s_(l,1,n);let h=1;h=this.get("fixedWidthGrid")?n/l:n/o,h=Math.max(1,Math.floor(h)),h=Math.min(this.get("maxColumns",Number.MAX_VALUE),h);let d=this.getColumnWidths(e,h,l,n),u=a,c=0,g=0;h=d.length;let p=t;(0,s.l)(e,e=>{if("relative"==e.get("position")&&e.isVisible()){const i=e.get("marginTop",0),s=e.get("marginBottom",0);let a=e.adjustedLocalBounds(),r=e.get("marginLeft",0),n=e.get("marginRight",0),o=p+r-a.left,l=u+i-a.top;e.setPrivate("x",o),e.setPrivate("y",l),p+=d[c]+n,g=Math.max(g,e.height()+i+s),c++,c>=h&&(c=0,p=t,u+=g,g=0)}})}getColumnWidths(e,t,i,r){let n=0,o=[],l=0;return(0,s.l)(e,s=>{let a=s.adjustedLocalBounds();"absolute"!=s.get("position")&&s.isVisible()&&(this.get("fixedWidthGrid")?o[l]=i:o[l]=Math.max(0|o[l],a.right-a.left+s.get("marginLeft",0)+s.get("marginRight",0)),l<e.children.length-1&&(l++,l==t&&(l=0)))}),a.__(o,e=>{n+=e}),n>r?t>2?(t-=1,this.getColumnWidths(e,t,i,r)):[r]:o}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.P.classNames.concat([n.className])})},67140:(e,t,i)=>{i.d(t,{S:()=>n});
12var s=i(77742),a=i(35530),r=i(98379);class n{constructor(e,t){if(Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rules",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._root=e,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(e){const t=new this(e,!0);return t.setupDefaultRules(),t}setupDefaultRules(){}_lookupRules(e){return this._rules[e]}ruleRaw(e,t=[]){let i=this._rules[e];i||(i=this._rules[e]=[]),t.sort(a.UD);const{index:n,found:o}=r.IU(i,e=>{const i=a.UD(e.tags.length,t.length);return 0===i?a.HN(e.tags,t,a.UD):i});if(o)return i[n].template;{const e=s.Bj.new({});return i.splice(n,0,{tags:t,template:e}),e}}rule(e,t=[]){return this.ruleRaw(e,t)}}},67863:(e,t,i)=>{i.d(t,{j:()=>l});var s=i(42553),a=i(16611),r=i(83460),n=i(78135),o=i(50155);class l extends s.F{constructor(){super(...arguments),Object.defineProperty(this,"thumb",{enumerable:!0,configurable:!0,writable:!0,value:o.M.new(this._root,{width:a.Q2,isMeasured:!1,themeTags:["axis","x","thumb"]})})}_afterNew(){this._settings.themeTags=n.kE(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");const e=this.grid.template;e.set("height",a.Q2),e.set("width",0),e.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(0,t.height())}),this.set("draw",(e,t)=>{e.moveTo(0,0),e.lineTo(t.width(),0)})}_changed(){super._changed();const e=this.axis;e.ghostLabel.setPrivate("visible",!this.get("inside")),e.ghostLabel.set("x",-1e3);const t="opposite",i="inside";if(this.isDirty(t)||this.isDirty(i)){const s=this.chart,a=e.children;if(this.get(i)?e.addTag(i):e.removeTag(i),s){if(this.get(t)){const i=s.topAxesContainer.children;-1==i.indexOf(e)&&i.insertIndex(0,e),e.addTag(t),a.moveValue(this)}else{const i=s.bottomAxesContainer.children;-1==i.indexOf(e)&&i.moveValue(e),e.removeTag(t),a.moveValue(this,0)}e.ghostLabel._applyThemes(),this.labels.each(e=>{e._applyThemes()}),this.root._markDirtyRedraw()}e.markDirtySize()}this.thumb.setPrivate("height",e.labelsContainer.height())}_getPan(e,t){return(t.x-e.x)/this.width()}toAxisPosition(e){const t=this._start||0,i=this._end||1;return e=(e-=this._ls)*(i-t)/this._lc,e=this.get("inversed")?i-e:t+e}toGlobalPosition(e){const t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e-=t,e=e/(i-t)*this._lc,e+=this._ls}_updateLC(){const e=this.axis,t=e.parent;if(t){const i=t.innerWidth();this._lc=this.axisLength()/i,this._ls=(e.x()-t.get("paddingLeft",0))/i}}_updatePositions(){const e=this.axis,t=e.x()-n.JY(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0);e.gridContainer.set("x",t),e.topGridContainer.set("x",t),e.bulletsContainer.set("y",this.y());const i=e.chart;if(i){const t=i.plotContainer,s=e.axisHeader;let a=e.get("marginLeft",0),r=e.x()-a;const n=e.parent;n&&(r-=n.get("paddingLeft",0)),s.children.length>0?(a=e.axisHeader.width(),e.set("marginLeft",a+1)):s.set("width",a),s.setAll({x:r,y:-1,height:t.height()+2})}}processAxis(){super.processAxis();const e=this.axis;null==e.get("width")&&e.set("width",a.Q2);const t=this._root.verticalLayout;e.set("layout",t),e.labelsContainer.set("width",a.Q2),e.axisHeader.setAll({layout:t})}axisLength(){return this.axis.width()}positionToPoint(e){return{x:this.positionToCoordinate(e),y:0}}updateTick(e,t,i,s){if(e){r.Et(t)||(t=0);let n=.5;n=r.Et(s)&&s>1?e.get("multiLocation",n):e.get("location",n),r.Et(i)&&i!=t&&(t+=(i-t)*n),e.set("x",this.positionToCoordinate(t));let o=e.get("length",0);const l=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("y",a.Q2),l||(o*=-1)):(e.set("y",0),l&&(o*=-1)),e.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,o)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateLabel(e,t,i,s){if(e){let n=.5;n=r.Et(s)&&s>1?e.get("multiLocation",n):e.get("location",n),r.Et(t)||(t=0);const o=e.get("inside",this.get("inside",!1));this.get("opposite")?o?(e.set("position","absolute"),e.set("y",0)):(e.set("position","relative"),e.set("y",a.Q2)):o?(e.set("y",0),e.set("position","absolute")):(e.set("y",void 0),e.set("position","relative")),r.Et(i)&&i!=t&&(t+=(i-t)*n),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){r.Et(t)||(t=0);let s=e.get("location",.5);r.Et(i)&&i!=t&&(t+=(i-t)*s),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateBullet(e,t,i){if(e){const s=e.get("sprite");if(s){r.Et(t)||(t=0);let a=e.get("location",.5);r.Et(i)&&i!=t&&(t+=(i-t)*a);let n=this.axis.roundAxisPosition(t,a),o=this.axis._bullets[n],l=-1;if(this.get("opposite")&&(l=1),e.get("stacked"))if(o){let e=o.get("sprite");e&&s.set("y",e.y()+e.height()*l)}else s.set("y",0);this.axis._bullets[n]=e,s.set("x",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){r.Et(t)||(t=0),r.Et(i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",e=>{const s=this.axis.gridContainer.height(),a=this.width();i<t&&([i,t]=[t,i]),t>a||i<0||(e.moveTo(t,0),e.lineTo(i,0),e.lineTo(i,s),e.lineTo(t,s),e.lineTo(t,0))})}positionTooltip(e,t){this._positionTooltip(e,{x:this.positionToCoordinate(t),y:0})}updateTooltipBounds(e){const t=this.get("inside"),i=1e5;let s=this._display.toGlobal({x:0,y:0}),a=s.x,r=0,o=this.axisLength(),l=i,h="up";this.get("opposite")?t?(h="up",r=s.y,l=i):(h="down",r=s.y-i,l=i):t?(h="down",r=s.y-i,l=i):(h="up",r=s.y,l=i);const d={left:a,right:a+o,top:r,bottom:r+l},u=e.get("bounds");n.MI(d,u)||(e.set("bounds",d),e.set("pointerOrientation",h))}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"AxisRendererX"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.F.classNames.c
12oncat([l.className])})},71944:(e,t,i)=>{i.d(t,{b:()=>je});var s=i(92420),a=i(51947),r=i(15263),n=i(91806),o=i(98160),l=i(53650),h=i(97529),d=i(98379),u=i(78135);class c{constructor(){Object.defineProperty(this,"_observer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]}),this._observer=new ResizeObserver(e=>{d.__(e,e=>{d.__(this._targets,t=>{t.target===e.target&&t.callback()})})})}addTarget(e,t){this._observer.observe(e,{box:"border-box"}),this._targets.push({target:e,callback:t})}removeTarget(e){this._observer.unobserve(e),d.TW(this._targets,t=>t.target!==e)}}class g{constructor(){Object.defineProperty(this,"_timer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_targets",{enumerable:!0,configurable:!0,writable:!0,value:[]})}addTarget(e,t){if(null===this._timer){let e=null;const t=()=>{const i=Date.now();(null===e||i>e+g.delay)&&(e=i,d.__(this._targets,e=>{let t=e.target.getBoundingClientRect();t.width===e.size.width&&t.height===e.size.height||(e.size=t,e.callback())})),0===this._targets.length?this._timer=null:this._timer=requestAnimationFrame(t)};this._timer=requestAnimationFrame(t)}this._targets.push({target:e,callback:t,size:{width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0}})}removeTarget(e){d.TW(this._targets,t=>t.target!==e),0===this._targets.length&&null!==this._timer&&(cancelAnimationFrame(this._timer),this._timer=null)}}Object.defineProperty(g,"delay",{enumerable:!0,configurable:!0,writable:!0,value:200});let p=null;class _{constructor(e,t){Object.defineProperty(this,"_sensor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_element",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_listener",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),this._sensor=(null===p&&(p="undefined"!=typeof ResizeObserver?new c:new g),p),this._element=e,this._listener=u.n_(t),this._sensor.addTarget(e,t)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}}var m=i(34647);class b extends m.wC{}Object.defineProperty(b,"className",{enumerable:!0,configurable:!0,writable:!0,value:"InterfaceColors"}),Object.defineProperty(b,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:m.wC.classNames.concat([b.className])});var f=i(50979),v=i(50155),y=i(30437),x=i(43545),w=i(72971),P=i(83460);class D extends m.wC{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);const e="_big_number_suffix_",t="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(e+"3")},{number:1e6,suffix:this._t(e+"6")},{number:1e9,suffix:this._t(e+"9")},{number:1e12,suffix:this._t(e+"12")},{number:1e15,suffix:this._t(e+"15")},{number:1e18,suffix:this._t(e+"18")},{number:1e21,suffix:this._t(e+"21")},{number:1e24,suffix:this._t(e+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(t+"24")},{number:1e-21,suffix:this._t(t+"21")},{number:1e-18,suffix:this._t(t+"18")},{number:1e-15,suffix:this._t(t+"15")},{number:1e-12,suffix:this._t(t+"12")},{number:1e-9,suffix:this._t(t+"9")},{number:1e-6,suffix:this._t(t+"6")},{number:.001,suffix:this._t(t+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let s;(null==t||P.Kg(t)&&"number"===t.toLowerCase())&&(t=this.get("numberFormat",""));let a=Number(e);if(P.Gv(t))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),t).format(a):new Intl.NumberFormat(void 0,t).format(a)}catch(e){return"Invalid"}else{t=u.fZ(t);let e,r=this.parseFormat(t,this._root.language);e=a>this.get("negativeBase")?r.positive:a<this.get("negativeBase")?r.negative:r.zero,null==i||e.mod||(e=w.C(e),e.decimals.active=0==a?0:i),s=e.template.split(P.Kx).join(this.applyFormat(a,e))}return!0===this.get("forceLTR")&&(s="‎"+s),s}parseFormat(e,t){const i=t.translateEmpty("_thousandSeparator"),s=t.translateEmpty("_decimalSeparator");
vendor: 74,551 bytes, line 12
12let a={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1}},r=(e=e.replace("||",P.cb)).split("|");return a.positive.source=r[0],void 0===r[2]?a.zero=a.positive:a.zero.source=r[2],void 0===r[1]?a.negative=a.positive:a.negative.source=r[1],w.__(a,(e,t)=>{if(t.parsed)return;let i=t.source;"number"===i.toLowerCase()&&(i=this.get("numberFormat","#,###.#####"));let s=x.g.chunk(i,!0);for(let e=0;e<s.length;e++){let i=s[e];if(i.text=i.text.replace(P.cb,"|"),"value"===i.type){let e=i.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(e)if(null===e||""===e[0])t.template+=i.text;else{let s=e[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);s&&(t.mod=s[0].toLowerCase(),t.modSpacing=!!e[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));let a=e[0].split(".");if(""===a[0]);else{t.thousands.active=(a[0].match(/0/g)||[]).length,t.thousands.passive=(a[0].match(/\#/g)||[]).length+t.thousands.active;let e=a[0].split(",");1===e.length||(t.thousands.interval=(e.pop()||"").length,0===t.thousands.interval&&(t.thousands.interval=-1))}void 0===a[1]||(t.decimals.active=(a[1].match(/0/g)||[]).length,t.decimals.passive=(a[1].match(/\#/g)||[]).length+t.decimals.active),t.template+=i.text.split(e[0]).join(P.Kx)}}else t.template+=i.text}t.parsed=!0}),a}applyFormat(e,t){let i=e<0;e=Math.abs(e);let s="",a="",r=t.mod?t.mod.split(""):[];if(-1!==r.indexOf("b")){let i=this.applyPrefix(e,this.get("bytePrefixes"),-1!==r.indexOf("!"));e=i[0],s=i[1],a=i[2],t.modSpacing&&(a=" "+a)}else if(-1!==r.indexOf("a")){let i=this.applyPrefix(e,e<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),-1!==r.indexOf("!"));e=i[0],s=i[1],a=i[2],t.modSpacing&&(a=" "+a)}else if(-1!==r.indexOf("p")){let t=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(t)),s=this._root.language.translate("_percentPrefix"),a=this._root.language.translate("_percentSuffix"),""==s&&""==a&&(a="%")}else if(-1!==r.indexOf("%")){let t=Math.min(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(t)),a="%"}else if(-1!==r.indexOf("‰")){let t=Math.min(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(t)),a="‰"}if(-1!==r.indexOf("e")){let i;i=t.decimals.passive>=0?e.toExponential(t.decimals.passive).split("e"):e.toExponential().split("e"),e=Number(i[0]),a="e"+i[1],t.modSpacing&&(a=" "+a)}else if(0===t.decimals.passive)e=Math.round(e);else if(t.decimals.passive>0){const i=u.w1(e);if(i>0){const s=Math.pow(10,t.decimals.passive);e=Math.round(parseFloat((e*s).toFixed(i)))/s}}let n="",o=P.um(e).split("."),l=o[0];if(l.length<t.thousands.active&&(l=Array(t.thousands.active-l.length+1).join("0")+l),t.thousands.interval>0){let e=[],i=l.split("").reverse().join("");for(let s=0,a=l.length;s<=a;s+=t.thousands.interval){let a=i.substr(s,t.thousands.interval).split("").reverse().join("");""!==a&&e.unshift(a)}l=e.join(t.thousands.separator)}n+=l,1===o.length&&o.push("");let h=o[1];return h.length<t.decimals.active&&(h+=Array(t.decimals.active-h.length+1).join("0")),""!==h&&(n+=t.decimals.separator+h),""===n&&(n="0"),0!==e&&i&&-1===r.indexOf("s")&&(n="-"+n),s&&(n=s+n),a&&(n+=a),n}applyPrefix(e,t,i=!1){let s=e,a="",r="",n=!1,o=1;for(let i=0,l=t.length;i<l;i++)t[i].number<=e&&(0===t[i].number?s=0:(s=e/t[i].number,o=t[i].number),a=t[i].prefix,r=t[i].suffix,n=!0);return!n&&i&&t.length&&0!=e&&(s=e/t[0].number,a=t[0].prefix,r=t[0].suffix,n=!0),n&&(s=parseFloat(s.toPrecision(Math.min(o.toString().length+Math.floor(s).toString().replace(/[^0-9]*/g,"").length,21)))),[s,a,r]}escape(e){return e.replace("||",P.cb)}unescape(e){return e.replace(P.cb,"|")}}function k(e,t){let i=0,s=0,a=1,r=0,n=0,o=0,l=0,h=0;return e.formatToParts(t).forEach(e=>{switch(e.type){case"year":i=+e.value;break;case"month":s=+e.value-1;break;case"day":a=+e.value;break;case"hour":r=+e.value;break;case"minute":n=+e.value;break;case"second":o=+e.value;break;case"fractionalSecond":l=+e.value;break;case"weekday":switch(e.value){case"Sun":h=0;break;case"Mon":h=1;break;case"Tue":h=2;break;case"Wed":h=3;break;case"Thu":h=4;break;case"Fri":h=5;break;case"Sat":h=6}}}),24===r&&(r=0),{year:i,month:s,day:a,hour:r,minute:n,second:o,millisecond:l,weekday:h}}function T(e,t){const{year:i,month:s,day:a,hour:r,minute:n,second:o,millisecond:l}=k(e,t);return Date.UTC(i,s,a,r,n,o,l)}class O{constructor(e,t){if(Object.defineProperty(this,"_utc",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dtf",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=e,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(e){return new this(e,!0)}convertLocal(e){const t=this.offsetUTC(e),i=e.getTimezoneOffset(),s=new Date(e);s.setUTCMinutes(s.getUTCMinutes()-(t-i));const a=s.getTimezoneOffset();return i!=a&&s.setUTCMinutes(s.getUTCMinutes()+a-i),s}offsetUTC(e){return(T(this._utc,e)-T(this._dtf,e))/6e4}parseDate(e){return k(this._dtf,e)}}class M extends m.wC{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i=!1){let s;void 0!==t&&""!==t||(t=this.get("dateFormat","yyyy-MM-dd"));let a=e;if(P.Gv(t))try{const e=this.get("intlLocales");return e?new Intl.DateTimeFormat(e,t).format(a):new Intl.DateTimeFormat(void 0,t).format(a)}catch(e){return"Invalid"}let r=this.parseFormat(t);const n=this._root.timezone;let o=a;return!n||this._root.utc||i||(a=n.convertLocal(a)),P.Et(a.getTime())?(s=this.applyFormat(a,r,i,o),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(e,t,i=!1,s){let a,r,n,o,l,h,d,c,g=t.template,p=e.getTime();this._root.utc&&!i?(a=e.getUTCFullYear(),r=e.getUTCMonth(),n=e.getUTCDay(),o=e.getUTCDate(),l=e.getUTCHours(),h=e.getUTCMinutes(),d=e.getUTCSeconds(),c=e.getUTCMilliseconds()):(a=e.getFullYear(),r=e.getMonth(),n=e.getDay(),o=e.getDate(),l=e.getHours(),h=e.getMinutes(),d=e.getSeconds(),c=e.getMilliseconds());for(let i=0,_=t.parts.length;i<_;i++){let _="";switch(t.parts[i]){case"G":_=this._t(a<0?"_era_bc":"_era_ad");break;case"yyyy":_=Math.abs(a).toString(),a<0&&(_+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":_=Math.abs(a).toString().substr(-t.parts[i].length),a<0&&(_+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let g=u.Ao(e,this._root.utc);_="YYYY"==t.parts[i]?Math.abs(g).toString():Math.abs(g).toString().substr(-t.parts[i].length),g<0&&(_+=this._t("_era_bc"));break;case"u":case"F":case"g":break;case"q":_=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":_=this._t(this._getMonth(r)).substr(0,1);break;case"MMMM":_=this._t(this._getMonth(r));break;case"MMM":_=this._t(this._getShortMonth(r));break;case"MM":_=u.tr(r+1,2,"0");break;case"M":_=(r+1).toString();break;case"ww":_=u.tr(u.Nr(e,this._root.utc),2,"0");break;case"w":_=u.Nr(e,this._root.utc).toString();break;case"W":_=u.L_(e,this._root.utc).toString();break;case"dd":_=u.tr(o,2,"0");break;case"d":_=o.toString();break;case"DD":case"DDD":_=u.tr(u._Q(e,this._root.utc).toString(),t.parts[i].length,"0");break;case"D":_=u._Q(e,this._root.utc).toString();break;case"t":_=this._root.language.translateFunc("_dateOrd").call(this,o);break;case"E":_=(n||7).toString();break;case"EE":_=u.tr((n||7).toString(),2,"0");break;case"EEE":case"eee":_=this._t(this._getShortWeekday(n));break;case"EEEE":case"eeee":_=this._t(this._getWeekday(n));break;case"EEEEE":case"eeeee":_=this._t(this._getShortWeekday(n)).substr(0,1);break;case"e":case"ee":_=(n-(this._root.locale.firstDayOfWeek||1)+1).toString(),"ee"==t.parts[i]&&(_=u.tr(_,2,"0"));break;case"a":_=l>=12?this._t("PM"):this._t("AM");break;case"aa":_=l>=12?this._t("P.M."):this._t("A.M.");break;case"aaa":_=l>=12?this._t("P"):this._t("A");break;case"h":_=u.Jx(l).toString();break;case"hh":_=u.tr(u.Jx(l),2,"0");break;case"H":_=l.toString();break;case"HH":_=u.tr(l,2,"0");break;case"K":_=u.Jx(l,0).toString();break;case"KK":_=u.tr(u.Jx(l,0),2,"0");break;case"k":_=(l+1).toString();break;case"kk":_=u.tr(l+1,2,"0");break;case"m":_=h.toString();break;case"mm":_=u.tr(h,2,"0");break;case"s":_=d.toString();break;case"ss":_=u.tr(d,2,"0");break;case"S":case"SS":case"SSS":_=Math.round(c/1e3*Math.pow(10,t.parts[i].length)).toString();break;case"x":_=p.toString();break;case"n":case"nn":case"nnn":_=u.tr(c,t.parts[i].length,"0");break;case"z":_=u.O(s||e,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":_=u.O(s||e,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":_=u.O(s||e,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":_=u.O(s||e,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let m=this._root.utc?"UTC":this._root.timezone;m instanceof O&&(m=m.name);const b=m?u.Zn(m,s||e):e.getTimezoneOffset();let f=Math.abs(b)/60,v=Math.floor(f),y=60*f-60*v;this._root.utc&&(v=0,y=0),"Z"==t.parts[i]?(_="GMT",_+=b>0?"-":"+",_+=u.tr(v,2)+":"+u.tr(y,2)):(_=b>0?"-":"+",_+=u.tr(v,2)+u.tr(y,2));break;case"i":_=e.toISOString();break;case"I":_=e.toUTCString()}g=g.replace(P.Kx,_)}return g}parseFormat(e){let t={template:"",parts:[]},i=x.g.chunk(e,!0);for(let e=0;e<i.length;e++){let s=i[e];if("value"===s.type){if(s.text.match(/^date$/i)){let e=this.get("dateFormat","yyyy-MM-dd");P.Kg(e)||(e="yyyy-MM-dd"),s.text=e}let e=s.text.match(/G|yyyy|yyy|yy|y|YYYY|YYY|YY|Y|u|q|MMMMM|MMMM|MMM|MM|M|ww|w|W|dd|d|DDD|DD|D|F|g|EEEEE|EEEE|EEE|EE|E|eeeee|eeee|eee|ee|e|aaa|aa|a|hh|h|HH|H|KK|K|kk|k|mm|m|ss|s|SSS|SS|S|A|zzzz|zzz|zz|z|ZZ|Z|t|x|nnn|nn|n|i|I/g);if(e)for(let i=0;i<e.length;i++)t.parts.push(e[i]),s.text=s.text.replace(e[i],P.Kx)}t.template+=s.text}return t}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(e){return this._months()[e]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(e){return this._shortMonths()[e]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}_getWeekday(e){return this._weekdays()[e]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(e){return this._shortWeekdays()[e]}parse(e,t,i){if(void 0===i&&(i=this._root.utc),e instanceof Date)return e;if(P.Et(e))return new Date(e);if("x"==t)return new Date(parseInt(e));let s;P.Kg(e)||(e=e.toString());let a="";t=(t=u.fZ(t)).substr(0,e.length);let r=this.parseFormat(t),n={year:-1,year3:-1,year2:-1,year1:-1,month:-1,monthShort:-1,monthLong:-1,weekdayShort:-1,weekdayLong:-1,day:-1,yearDay:-1,week:-1,hourBase0:-1,hour12Base0:-1,hourBase1:-1,hour12Base1:-1,minute:-1,second:-1,millisecond:-1,millisecondDigits:-1,am:-1,zone:-1,timestamp:-1,iso:-1},o={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:i},l=0,h=0;for(let e=0;e<r.parts.length;e++){switch(h=e+l+1,r.parts[e]){case"yyyy":case"YYYY":a+="([0-9]{4})",n.year=h;break;case"yyy":case"YYY":a+="([0-9]{3})",n.year3=h;break;case"yy":case"YY":a+="([0-9]{2})",n.year2=h;break;case"y":case"Y":a+="([0-9]{1})",n.year1=h;break;case"MMMM":a+="("+this.getStringList(this._months()).join("|")+")",n.monthLong=h;break;case"MMM":a+="("+this.getStringList(this._shortMonths()).join("|")+")",n.monthShort=h;break;case"MM":case"M":a+="([0-9]{2}|[0-9]{1})",n.month=h;break;case"ww":case"w":a+="([0-9]{2}|[0-9]{1})",n.week=h;break;case"dd":case"d":a+="([0-9]{2}|[0-9]{1})",n.day=h;break;case"DDD":case"DD":case"D":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",n.yearDay=h;break;case"dddd":a+="("+this.getStringList(this._weekdays()).join("|")+")",n.weekdayLong=h;break;case"ddd":a+="("+this.getStringList(this._shortWeekdays()).join("|")+")",n.weekdayShort=h;break;case"aaa":case"aa":case"a":a+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",n.am=h;break;case"hh":case"h":a+="([0-9]{2}|[0-9]{1})",n.hour12Base1=h;break;case"HH":case"H":a+="([0-9]{2}|[0-9]{1})",n.hourBase0=h;break;case"KK":case"K":a+="([0-9]{2}|[0-9]{1})",n.hour12Base0=h;break;case"kk":case"k":a+="([0-9]{2}|[0-9]{1})",n.hourBase1=h;break;case"mm":case"m":a+="([0-9]{2}|[0-9]{1})",n.minute=h;break;case"ss":case"s":a+="([0-9]{2}|[0-9]{1})",n.second=h;break;case"SSS":case"SS":case"S":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",n.millisecond=h,n.millisecondDigits=r.parts[e].length;break;case"nnn":case"nn":case"n":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",n.millisecond=h;break;case"x":a+="([0-9]{1,})",n.timestamp=h;break;case"Z":a+="GMT([-+]+[0-9]{2}:[0-9]{2})",n.zone=h;break;case"ZZ":a+="([\\-+]+[0-9]{2}[0-9]{2})",n.zone=h;break;case"i":a+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",n.iso=h,l+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":l--}a+="[^0-9]*"}let d=new RegExp(a),c=e.match(d);if(c){if(n.year>-1&&(o.year=parseInt(c[n.year])),n.year3>-1){let e=parseInt(c[n.year3]);e+=1e3,o.year=e}if(n.year2>-1){let e=parseInt(c[n.year2]);e+=e>50?1e3:2e3,o.year=e}if(n.year1>-1){let e=parseInt(c[n.year1]);e=10*Math.floor((new Date).getFullYear()/10)+e,o.year=e}if(n.monthLong>-1&&(o.month=this.resolveMonth(c[n.monthLong])),n.monthShort>-1&&(o.month=this.resolveShortMonth(c[n.monthShort])),n.month>-1&&(o.month=parseInt(c[n.month])-1),n.week>-1&&-1===n.day&&(o.month=0,o.day=u.X2(parseInt(c[n.week]),o.year,1,i)),n.day>-1&&(o.day=parseInt(c[n.day])),n.yearDay>-1&&(o.month=0,o.day=parseInt(c[n.yearDay])),n.hourBase0>-1&&(o.hour=parseInt(c[n.hourBase0])),n.hourBase1>-1&&(o.hour=parseInt(c[n.hourBase1])-1),n.hour12Base0>-1){let e=parseInt(c[n.hour12Base0]);11==e&&(e=0),n.am>-1&&!this.isAm(c[n.am])&&(e+=12),o.hour=e}if(n.hour12Base1>-1){let e=parseInt(c[n.hour12Base1]);12==e&&(e=0),n.am>-1&&!this.isAm(c[n.am])&&(e+=12),o.hour=e}if(n.minute>-1&&(o.minute=parseInt(c[n.minute])),n.second>-1&&(o.second=parseInt(c[n.second])),n.millisecond>-1){let e=parseInt(c[n.millisecond]);2==n.millisecondDigits?e*=10:1==n.millisecondDigits&&(e*=100),o.millisecond=e}if(n.timestamp>-1){o.timestamp=parseInt(c[n.timestamp]);const e=new Date(o.timestamp);o.year=e.getUTCFullYear(),o.month=e.getUTCMonth(),o.day=e.getUTCDate(),o.hour=e.getUTCHours(),o.minute=e.getUTCMinutes(),o.second=e.getUTCSeconds(),o.millisecond=e.getUTCMilliseconds()}n.zone>-1&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),c[n.zone])),n.iso>-1&&(o.year=P.Ro(c[n.iso+0]),o.month=P.Ro(c[n.iso+1])-1,o.day=P.Ro(c[n.iso+2]),o.hour=P.Ro(c[n.iso+3]),o.minute=P.Ro(c[n.iso+4]),o.second=P.Ro(c[n.iso+5]),o.millisecond=P.Ro(c[n.iso+6]),"Z"==c[n.iso+7]||"z"==c[n.iso+7]?o.utc=!0:""!=c[n.iso+7]&&(o.offset=this.resolveTimezoneOffset(new Date(o.year,o.month,o.day),c[n.iso+7]))),s=o.utc?new Date(Date.UTC(o.year,o.month,o.day,o.hour,o.minute,o.second,o.millisecond)):new Date(o.year,o.month,o.day,o.hour,o.minute+o.offset,o.second,o.millisecond)}else s=new Date(e);return s}resolveTimezoneOffset(e,t){if(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let i=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),s=i[1],a=i[2],r=i[3],n=60*parseInt(a)+parseInt(r);return"+"==s&&(n*=-1),n-(e||new Date).getTimezoneOffset()}return 0}resolveMonth(e){let t=this._months().indexOf(e);return t>-1||!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._months()).indexOf(e),t>-1)?t:0}resolveShortMonth(e){let t=this._shortMonths().indexOf(e);return t>-1?t:(t=this._months().indexOf(e),t>-1||this._root.language&&!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._shortMonths()).indexOf(e),t>-1)?t:0)}isAm(e){return this.getStringList(["AM","A.M.","A"]).indexOf(e.toUpperCase())>-1}getStringList(e){let t=[];for(let i=0;i<e.length;i++)this._root.language?t.push(u.xp(this._t(e[i]))):t.push(u.xp(e[i]));return t}}class S extends m.wC{constructor(){super(...arguments),Object.defineProperty(this,"_unitAliases",{enumerable:!0,configurable:!0,writable:!0,value:{Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}})}_setDefaults(){const e="_duration_millisecond",t="_duration_second",i="_duration_minute",s="_duration_hour",a="_duration_day",r="_duration_week",n="_duration_month",o="_minute",l="_hour",h="_day",d="_week",u="_week",c="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(e),second:this._t(e+"_second"),minute:this._t(e+o),hour:this._t(e+l),day:this._t(e+h),week:this._t(e+d),month:this._t(e+u),year:this._t(e+c)},second:{second:this._t(t),minute:this._t(t+o),hour:this._t(t+l),day:this._t(t+h),week:this._t(t+d),month:this._t(t+u),year:this._t(t+c)},minute:{minute:this._t(i),hour:this._t(i+l),day:this._t(i+h),week:this._t(i+d),month:this._t(i+u),year:this._t(i+c)},hour:{hour:this._t(s),day:this._t(s+h),week:this._t(s+d),month:this._t(s+u),year:this._t(s+c)},day:{day:this._t(a),week:this._t(a+d),month:this._t(a+u),year:this._t(a+c)},week:{week:this._t(r),month:this._t(r+u),year:this._t(r+c)},month:{month:this._t(n),year:this._t(n+c)},year:{year:this._t("_duration_year")}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let s=i||this.get("baseUnit");void 0!==t&&""!==t||(t=null!=this.get("durationFormat")?this.get("durationFormat"):this.getFormat(P.Ro(e),void 0,s)),t=u.fZ(t);let a,r=this.parseFormat(t,s),n=Number(e);a=n>this.get("negativeBase")?r.positive:n<this.get("negativeBase")?r.negative:r.zero;let o=this.applyFormat(n,a);return""!==a.color&&(o="["+a.color+"]"+o+"[/]"),o}parseFormat(e,t){let i=t||this.get("baseUnit"),s={positive:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1}},a=(e=e.replace("||",P.cb)).split("|");return s.positive.source=a[0],void 0===a[2]?s.zero=s.positive:s.zero.source=a[2],void 0===a[1]?s.negative=s.positive:s.negative.source=a[1],w.__(s,(e,t)=>{if(t.parsed)return;let i=t.source,s=[];s=t.source.match(/^\[([^\]]*)\]/),s&&s.length&&""!==s[0]&&(i=t.source.substr(s[0].length),t.color=s[1]);let a=x.g.chunk(i,!0);for(let e=0;e<a.length;e++){let i=a[e];if(i.text=i.text.replace(P.cb,"|"),"value"===i.type){i.text.match(/[yYMdDwhHKkmsSn]+a/)&&(t.absolute=!0,i.text=i.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let e=i.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(e)for(let s=0;s<e.length;s++)null==e[s]&&(e[s]=this._unitAliases[e[s]]),t.parts.push(e[s]),i.text=i.text.replace(e[s],P.Kx)}t.template+=i.text}t.parsed=!0}),s}applyFormat(e,t){let i=!t.absolute&&e<this.get("negativeBase");e=Math.abs(e);let s=this.toTimeStamp(e,t.baseUnit),a=t.template;const r={millisecond:0,second:0,minute:0,hour:0,day:0,week:0,month:0,year:0};for(let e=0,i=t.parts.length;e<i;e++){let a,n=t.parts[e],o=this._toTimeUnit(n.substr(0,1));const l=this._getUnitValue(o);a=e<i-1?Math.floor(s/l):Math.round(s/l),r[o]+=a,s-=a*l}w.__(r,(e,t)=>{"millisecond"==e&&1e3==t?(r.second++,r.millisecond=0):"second"==e&&60==t?(r.minute++,r.second=0):"minute"==e&&60==t?(r.hour++,r.minute=0):"hour"==e&&24==t?(r.day++,r.hour=0):"day"==e&&7==t?(r.week++,r.day=0):"day"==e&&30==t?(r.month++,r.day=0):"month"==e&&12==t&&(r.year++,r.month=0)});for(let e=0,i=t.parts.length;e<i;e++){let i=t.parts[e],s=this._toTimeUnit(i.substr(0,1)),n=i.length;a=a.replace(P.Kx,u.tr(r[s],n,"0"))}return i&&(a="-"+a),a}toTimeStamp(e,t){return e*this._getUnitValue(t)}_toTimeUnit(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(e,t,i){if(null!=this.get("durationFormat"))return this.get("durationFormat");if(i||(i=this.get("baseUnit")),null!=t&&e!=t){e=Math.abs(e),t=Math.abs(t);let s=this.getValueUnit(Math.max(e,t),i);return this.get("durationFormats")[i][s]}{let t=this.getValueUnit(e,i);return this.get("durationFormats")[i][t]}}getValueUnit(e,t){let i;t||(t=this.get("baseUnit"));let s=this.getMilliseconds(e,t);return w.FY(this._getUnitValues(),(e,a)=>{if(e==t||i){if(s/a<=1)return i||(i=e),!1;i=e}return!0}),i}getMilliseconds(e,t){return t||(t=this.get("baseUnit")),e*this._getUnitValue(t)}_getUnitValue(e){return this._getUnitValues()[e]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}}const A={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"μ",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(e){let t="th";if(e<11||e>13)switch(e%10){case 1:t="st";break;case 2:t="nd";break;case 3:t="rd"}return t},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};class C extends m.wC{_setDefaults(){this.setPrivate("defaultLocale",A),super._setDefaults()}translate(e,t,...i){t||(t=this._root.locale||this.getPrivate("defaultLocale"));let s=e,a=t[e];if(null===a)s="";else if(null!=a)a&&(s=a);else if(t!==this.getPrivate("defaultLocale"))return this.translate(e,this.getPrivate("defaultLocale"),...i);if(i.length)for(let e=i.length,t=0;t<e;++t)s=s.split("%"+(t+1)).join(i[t]);return s}translateAny(e,t,...i){return this.translate(e,t,...i)}setTranslationAny(e,t,i){(i||this._root.locale)[e]=t}setTranslationsAny(e,t){w.__(e,(e,i)=>{this.setTranslationAny(e,i,t)})}translateEmpty(e,t,...i){let s=this.translate(e,t,...i);return s==e?"":s}translateFunc(e,t){return this._root.locale[e]?this._root.locale[e]:t!==this.getPrivate("defaultLocale")?this.translateFunc(e,this.getPrivate("defaultLocale")):()=>""}translateAll(e,t){return this.isDefault()?e:d.Tj(e,e=>this.translate(e,t))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}}var E=i(29799),j=i(30820),L=i(98310),I=i(80937);class R{constructor(e=1,t=0,i=0,s=1,a=0,r=0){Object.defineProperty(this,"a",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"b",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"c",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"d",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tx",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ty",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.a=e,this.b=t,this.c=i,this.d=s,this.tx=a,this.ty=r}setTransform(e,t,i,s,a,r=1){this.a=Math.cos(a)*r,this.b=Math.sin(a)*r,this.c=-Math.sin(a)*r,this.d=Math.cos(a)*r,this.tx=e-(i*this.a+s*this.c),this.ty=t-(i*this.b+s*this.d)}apply(e){return{x:this.a*e.x+this.c*e.y+this.tx,y:this.b*e.x+this.d*e.y+this.ty}}applyInverse(e){const t=1/(this.a*this.d+this.c*-this.b);return{x:this.d*t*e.x+-this.c*t*e.y+(this.ty*this.c-this.tx*this.d)*t,y:this.a*t*e.y+-this.b*t*e.x+(-this.ty*this.a+this.tx*this.b)*t}}append(e){const t=this.a,i=this.b,s=this.c,a=this.d;this.a=e.a*t+e.b*s,this.b=e.a*i+e.b*a,this.c=e.c*t+e.d*s,this.d=e.c*i+e.d*a,this.tx=e.tx*t+e.ty*s+this.tx,this.ty=e.tx*i+e.ty*a+this.ty}prepend(e){const t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){const t=this.a,i=this.c;this.a=t*e.a+this.b*e.c,this.b=t*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty}copyFrom(e){this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty}}var B=i(16611),F=i(21050),Y=i(98333);function H(e,t,i){if(t!==i)throw new Error("Required "+i+" arguments for "+e+" but got "+t)}function z(e,t,i){if(t<i)throw new Error("Required at least "+i+" arguments for "+e+" but got "+t)}function N(e,t,i){if(z(e,t,i),t%i!==0)throw new Error("Arguments for "+e+" must be in pairs of "+i)}function X(e){for(let t=0;t<e.length;t+=7){let i=t+3,s=e[i];if(s.length>1){const t=/^([01])([01])(.*)$/.exec(s);null!==t&&(e.splice(i,0,t[1]),++i,e.splice(i,0,t[2]),++i,t[3].length>0?e[i]=t[3]:e.splice(i,1))}if(++i,s=e[i],s.length>1){const t=/^([01])(.+)$/.exec(s);null!==t&&(e.splice(i,0,t[1]),++i,e[i]=t[2])}}}function V(e){if(0===e||1===e)return e;throw new Error("Flag must be 0 or 1")}function U(e,t){for(;(!e.interactive||t(e))&&e._parent;)e=e._parent}function G(e,t,i){return u.q2(e,u.wN(t),e=>{const t=u.wt(e);let s=e.touches;s?(0==s.length&&(s=e.changedTouches),i(d.C(s),t)):i([e],t)})}function W(e){const t=document.createElement("canvas");t.width=1,t.height=1;const i=t.getContext("2d",{willReadFrequently:!0});i.drawImage(e,0,0,1,1);try{return i.getImageData(0,0,1,1),!1}catch(t){return console.warn('Image "'+e.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function Q(e){e.width=0,e.height=0,e.style.width="0px",e.style.height="0px"}function K(e){return Math.floor(e)+.5}class Z{constructor(){Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0})}get x(){return this._x}get y(){return this._y}set x(e){this._x=e}set y(e){this._y=e}}class J extends h.O_{constructor(e){super(),Object.defineProperty(this,"_layer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"mask",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportable",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"interactive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inactive",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"wheelable",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"cancelTouch",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"isMeasured",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"buttonMode",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"alpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"compoundAlpha",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"angle",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"crisp",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"pivot",{enumerable:!0,configurable:!0,writable:!0,value:new Z}),Object.defineProperty(this,"filter",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cursorOverStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_replacedCursorStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new R}),Object.defineProperty(this,"_matrix",{enumerable:!0,configurable:!0,writable:!0,value:new R}),Object.defineProperty(this,"_uMatrix",{enumerable:!0,configurable:!0,writable:!0,value:new R}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_bounds",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._renderer=e}subStatus(e){return{inactive:null==this.inactive?e.inactive:this.inactive,layer:this._layer||e.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let e=this;for(;;){if(e._layer)return e._layer;if(!e._parent)return this._renderer.defaultLayer;e=e._parent}}setLayer(e,t){if(null==e)this._layer=void 0;else{const i=!0;this._layer=this._renderer.getLayer(e,i),this._layer.visible=i,this._layer.margin=t,t&&u.Dt(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost()}}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(e){}_getColorId(){return void 0===this._colorId&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(e){return!e.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(e){return this._isInteractive(e)}contains(e){for(;;){if(e===this)return!0;if(!e._parent)return!1;e=e._parent}}toGlobal(e){return this._matrix.apply(e)}toLocal(e){return this._matrix.applyInverse(e)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){if(!this._localBounds){const e=1e7;this._localBounds={left:e,top:e,right:-e,bottom:-e},this._addBounds(this._localBounds)}return this._localBounds}getAdjustedBounds(e){this._setMatrix();const t=this.getLocalMatrix(),i=t.apply({x:e.left,y:e.top}),s=t.apply({x:e.right,y:e.top}),a=t.apply({x:e.right,y:e.bottom}),r=t.apply({x:e.left,y:e.bottom});return{left:Math.min(i.x,s.x,a.x,r.x),top:Math.min(i.y,s.y,a.y,r.y),right:Math.max(i.x,s.x,a.x,r.x),bottom:Math.max(i.y,s.y,a.y,r.y)}}on(e,t,i){return this.interactive?this._renderer._addEvent(this,e,t,i):new h.W_(()=>{})}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(e,t){const i=this._matrix;let s=i.tx*t,a=i.ty*t;this.crisp&&(s=K(s),a=K(a)),e.setTransform(i.a*t,i.b*t,i.c*t,i.d*t,s,a)}_transformMargin(e,t,i){const s=this._matrix;e.setTransform(s.a*t,s.b*t,s.c*t,s.d*t,(s.tx+i.left)*t,(s.ty+i.top)*t)}_transformLayer(e,t,i){i.margin?this._transformMargin(e,i.scale||t,i.margin):this._transform(e,i.scale||t)}render(e,t=0){if(this.visible&&(!1!==this.exportable||!this._renderer._omitTainted)){this._setMatrix();const i=this.subStatus(e),s=this._renderer.resolution,a=this._renderer.layers,r=this._renderer._ghostLayer,n=r.context,o=this.mask;o&&o._setMatrix(),d.__(a,e=>{if(e){const t=e.context;t.save(),o&&(o._transformLayer(t,s,e),o._runPath(t),t.clip()),t.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(t,s,e),this.filter&&(t.filter=this.filter)}}),n.save(),o&&this._isInteractiveMask(i)&&(o._transformMargin(n,s,r.margin),o._runPath(n),n.clip()),this._transformMargin(n,s,r.margin),i.layer.order>0&&!t&&d.Cy(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,t),n.restore(),d.__(a,e=>{e&&e.context.restore()})}}_render(e,t=0){!1===this.exportable&&(e.layer.tainted=!0)}_ghostOnly(e=0){return e>0}_drawGhost(e,t=0){const i=this._isInteractive(e),s=e.layer.order||0;return!(!i||(0!=s||this._ghostOnly(t))&&s!=t)}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some(e=>e.value===this)}shouldCancelTouch(){const e=this._renderer;return!(e.tapToActivate&&!e._touchActive)&&(!!this.cancelTouch||!!this._parent&&this._parent.shouldCancelTouch())}}class q extends J{constructor(){super(...arguments),Object.defineProperty(this,"interactiveChildren",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_childLayers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_children",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_isInteractiveMask(e){return this.interactiveChildren||super._isInteractiveMask(e)}addChild(e){e._parent=this,this._children.push(e),e._layer&&this.registerChildLayer(e._layer)}addChildAt(e,t){e._parent=this,this._children.splice(t,0,e),e._layer&&this.registerChildLayer(e._layer)}removeChild(e){e._parent=void 0,d.dm(this._children,e)}_render(e,t){super._render(e);const i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,d.__(this._children,i=>{i.compoundAlpha=this.compoundAlpha*this.alpha,i.render(e,t)}),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(e){this._childLayers||(this._childLayers=[]),d.JJ(this._childLayers,e),this._parent&&this._parent.registerChildLayer(e)}markDirtyLayer(e=!1){super.markDirtyLayer(),e&&this._childLayers&&d.__(this._childLayers,e=>e.dirty=!0)}_dispose(){super._dispose(),this._childLayers&&d.__(this._childLayers,e=>{e.dirty=!0})}}function $(e,t){e.left=Math.min(e.left,t.x),e.top=Math.min(e.top,t.y),e.right=Math.max(e.right,t.x),e.bottom=Math.max(e.bottom,t.y)}class ee{colorize(e,t){}colorizeGhost(e,t){this.colorize(e,t)}path(e){}pathGhost(e){this.path(e)}addBounds(e){}}class te extends ee{colorize(e,t){e.beginPath()}}class ie extends ee{constructor(e){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fillStyle=void 0!==t?t:this.color}}class se extends ee{constructor(e){super(),Object.defineProperty(this,"clearShadow",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.fill(),this.clearShadow&&(e.shadowColor="",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}}class ae extends ee{colorize(e,t){e.stroke()}}class re extends ee{constructor(e,t,i,s){super(),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"lineJoin",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"lineCap",{enumerable:!0,configurable:!0,writable:!0,value:s})}colorize(e,t){e.strokeStyle=void 0!==t?t:this.color,e.lineWidth=this.width,this.lineJoin&&(e.lineJoin=this.lineJoin),this.lineCap&&(e.lineCap=this.lineCap)}}class ne extends ee{constructor(e){super(),Object.defineProperty(this,"dash",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.setLineDash(this.dash)}}class oe extends ee{constructor(e){super(),Object.defineProperty(this,"dashOffset",{enumerable:!0,configurable:!0,writable:!0,value:e})}colorize(e,t){e.lineDashOffset=this.dashOffset}}class le extends ee{constructor(e,t,i,s){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.rect(this.x,this.y,this.width,this.height)}addBounds(e){const t=this.x,i=this.y,s=t+this.width,a=i+this.height;$(e,{x:t,y:i}),$(e,{x:s,y:i}),$(e,{x:t,y:a}),$(e,{x:s,y:a})}}class he extends ee{constructor(e,t,i){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i})}path(e){e.moveTo(this.x+this.radius,this.y),e.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(e){$(e,{x:this.x-this.radius,y:this.y-this.radius}),$(e,{x:this.x+this.radius,y:this.y+this.radius})}}class de extends ee{constructor(e,t,i,s){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radiusX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"radiusY",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.ellipse(0,0,this.radiusX,this.radiusY,0,0,2*Math.PI)}addBounds(e){$(e,{x:this.x-this.radiusX,y:this.y-this.radiusY}),$(e,{x:this.x+this.radiusX,y:this.y+this.radiusY})}}class ue extends ee{constructor(e,t,i,s,a,r){super(),Object.defineProperty(this,"cx",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cy",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"endAngle",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"anticlockwise",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){this.radius>0&&e.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(e){let t=F.Ki(this.cx,this.cy,this.startAngle*F.iR,this.endAngle*F.iR,this.radius);$(e,{x:t.left,y:t.top}),$(e,{x:t.right,y:t.bottom})}}class ce extends ee{constructor(e,t,i,s,a){super(),Object.defineProperty(this,"x1",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y1",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"x2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"y2",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:a})}path(e){this.radius>0&&e.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(e){}}class ge extends ee{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.lineTo(this.x,this.y)}addBounds(e){$(e,{x:this.x,y:this.y})}}class pe extends ee{constructor(e,t){super(),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:t})}path(e){e.moveTo(this.x,this.y)}addBounds(e){$(e,{x:this.x,y:this.y})}}class _e extends ee{path(e){e.closePath()}}class me extends ee{constructor(e,t,i,s,a,r){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"cpX2",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"cpY2",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:a}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:r})}path(e){e.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(e){$(e,{x:this.cpX,y:this.cpY}),$(e,{x:this.cpX2,y:this.cpY2}),$(e,{x:this.toX,y:this.toY})}}class be extends ee{constructor(e,t,i,s){super(),Object.defineProperty(this,"cpX",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"cpY",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"toX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"toY",{enumerable:!0,configurable:!0,writable:!0,value:s})}path(e){e.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(e){$(e,{x:this.cpX,y:this.cpY}),$(e,{x:this.toX,y:this.toY})}}class fe extends ee{constructor(e,t,i,s,a){super(),Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"blur",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"offsetX",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"offsetY",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"opacity",{enumerable:!0,configurable:!0,writable:!0,value:a})}colorize(e,t){this.opacity&&(e.fillStyle=this.color),e.shadowColor=this.color,e.shadowBlur=this.blur,e.shadowOffsetX=this.offsetX,e.shadowOffsetY=this.offsetY}colorizeGhost(e,t){}}class ve extends ee{constructor(e,t,i,s,a){super(),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,writable:!0,value:a})}path(e){e.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(e){$(e,{x:this.x,y:this.y}),$(e,{x:this.width,y:this.height})}}class ye extends J{constructor(){super(...arguments),Object.defineProperty(this,"_operations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"blendMode",{enumerable:!0,configurable:!0,writable:!0,value:L.N.NORMAL}),Object.defineProperty(this,"_hasShadows",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_fillAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeAlpha",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}clear(){super.clear(),this._operations.length=0}_pushOp(e){this._operations.push(e)}beginFill(e,t=1){this._fillAlpha=t,e?e instanceof I.Q1?this._pushOp(new ie(e.toCSS(t))):(this.isMeasured=!0,this._pushOp(new ie(e))):this._pushOp(new ie("rgba(0, 0, 0, "+t+")"))}endFill(){this._pushOp(new se(this._hasShadows))}endStroke(){this._pushOp(new ae)}beginPath(){this._pushOp(new te)}lineStyle(e=0,t,i=1,s,a){this._strokeAlpha=i,t?t instanceof I.Q1?this._pushOp(new re(e,t.toCSS(i),s,a)):this._pushOp(new re(e,t,s,a)):this._pushOp(new re(e,"rgba(0, 0, 0, "+i+")",s,a))}setLineDash(e){this._pushOp(new ne(e||[]))}setLineDashOffset(e=0){this._pushOp(new oe(e))}drawRect(e,t,i,s){this._pushOp(new le(e,t,i,s))}drawCircle(e,t,i){this._pushOp(new he(e,t,i))}drawEllipse(e,t,i,s){this._pushOp(new de(e,t,i,s))}arc(e,t,i,s,a,r=!1){this._pushOp(new ue(e,t,i,s,a,r))}arcTo(e,t,i,s,a){this._pushOp(new ce(e,t,i,s,a))}lineTo(e,t){this._pushOp(new ge(e,t))}moveTo(e,t){this._pushOp(new pe(e,t))}bezierCurveTo(e,t,i,s,a,r){this._pushOp(new me(e,t,i,s,a,r))}quadraticCurveTo(e,t,i,s){this._pushOp(new be(e,t,i,s))}closePath(){this._pushOp(new _e)}shadow(e,t=0,i=0,s=0,a){this._hasShadows=!0,this._pushOp(new fe(a?e.toCSS(a):e.toCSS(this._fillAlpha||this._strokeAlpha),t,i,s))}image(e,t,i,s,a){this._pushOp(new ve(e,t,i,s,a))}svgPath(e){let t=0,i=0,s=null,a=null,r=null,n=null;const o=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,l=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g;let h;for(;null!==(h=o.exec(e));){const e=h[1],o=h[2],u=[];for(;null!==(h=l.exec(o));)u.push(h[1]);switch("S"!==e&&"s"!==e&&"C"!==e&&"c"!==e&&(s=null,a=null),"Q"!==e&&"q"!==e&&"T"!==e&&"t"!==e&&(r=null,n=null),e){case"M":N(e,u.length,2),t=+u[0],i=+u[1],this.moveTo(t,i);for(let e=2;e<u.length;e+=2)t=+u[e],i=+u[e+1],this.lineTo(t,i);break;case"m":N(e,u.length,2),t+=+u[0],i+=+u[1],this.moveTo(t,i);for(let e=2;e<u.length;e+=2)t+=+u[e],i+=+u[e+1],this.lineTo(t,i);break;case"L":N(e,u.length,2);for(let e=0;e<u.length;e+=2)t=+u[e],i=+u[e+1],this.lineTo(t,i);break;case"l":N(e,u.length,2);for(let e=0;e<u.length;e+=2)t+=+u[e],i+=+u[e+1],this.lineTo(t,i);break;case"H":z(e,u.length,1);for(let e=0;e<u.length;++e)t=+u[e],this.lineTo(t,i);break;case"h":z(e,u.length,1);for(let e=0;e<u.length;++e)t+=+u[e],this.lineTo(t,i);break;case"V":z(e,u.length,1);for(let e=0;e<u.length;++e)i=+u[e],this.lineTo(t,i);break;case"v":z(e,u.length,1);for(let e=0;e<u.length;++e)i+=+u[e],this.lineTo(t,i);break;case"C":N(e,u.length,6);for(let e=0;e<u.length;e+=6){const r=+u[e],n=+u[e+1];s=+u[e+2],a=+u[e+3],t=+u[e+4],i=+u[e+5],this.bezierCurveTo(r,n,s,a,t,i)}break;case"c":N(e,u.length,6);for(let e=0;e<u.length;e+=6){const r=+u[e]+t,n=+u[e+1]+i;s=+u[e+2]+t,a=+u[e+3]+i,t+=+u[e+4],i+=+u[e+5],this.bezierCurveTo(r,n,s,a,t,i)}break;case"S":N(e,u.length,4),null!==s&&null!==a||(s=t,a=i);for(let e=0;e<u.length;e+=4){const r=2*t-s,n=2*i-a;s=+u[e],a=+u[e+1],t=+u[e+2],i=+u[e+3],this.bezierCurveTo(r,n,s,a,t,i)}break;case"s":N(e,u.length,4),null!==s&&null!==a||(s=t,a=i);for(let e=0;e<u.length;e+=4){const r=2*t-s,n=2*i-a;s=+u[e]+t,a=+u[e+1]+i,t+=+u[e+2],i+=+u[e+3],this.bezierCurveTo(r,n,s,a,t,i)}break;case"Q":N(e,u.length,4);for(let e=0;e<u.length;e+=4)r=+u[e],n=+u[e+1],t=+u[e+2],i=+u[e+3],this.quadraticCurveTo(r,n,t,i);break;case"q":N(e,u.length,4);for(let e=0;e<u.length;e+=4)r=+u[e]+t,n=+u[e+1]+i,t+=+u[e+2],i+=+u[e+3],this.quadraticCurveTo(r,n,t,i);break;case"T":N(e,u.length,2),null!==r&&null!==n||(r=t,n=i);for(let e=0;e<u.length;e+=2)r=2*t-r,n=2*i-n,t=+u[e],i=+u[e+1],this.quadraticCurveTo(r,n,t,i);break;case"t":N(e,u.length,2),null!==r&&null!==n||(r=t,n=i);for(let e=0;e<u.length;e+=2)r=2*t-r,n=2*i-n,t+=+u[e],i+=+u[e+1],this.quadraticCurveTo(r,n,t,i);break;case"A":case"a":const o="a"===e;X(u),N(e,u.length,7);for(let e=0;e<u.length;e+=7){let s=+u[e+5],a=+u[e+6];o&&(s+=t,a+=i);const r=(0,Y.A)({px:t,py:i,rx:+u[e],ry:+u[e+1],xAxisRotation:+u[e+2],largeArcFlag:V(+u[e+3]),sweepFlag:V(+u[e+4]),cx:s,cy:a});d.__(r,e=>{this.bezierCurveTo(e.x1,e.y1,e.x2,e.y2,e.x,e.y),t=e.x,i=e.y})}break;case"Z":case"z":H(e,u.length,0),this.closePath()}}}_runPath(e){e.beginPath(),d.__(this._operations,t=>{t.path(e)})}_render(e,t=0){super._render(e);const i=e.layer.dirty,s=this._isInteractive(e),a=this._ghostOnly(t),r=this._drawGhost(e,t);if(i||s||a){const t=e.layer.context,s=this._renderer._ghostLayer.context;let n;i&&!a&&(t.globalCompositeOperation=this.blendMode,t.beginPath()),r&&(s.beginPath(),n=this._getColorId()),d.__(this._operations,e=>{i&&!a&&(e.path(t),e.colorize(t,void 0)),r&&(e.pathGhost(s),e.colorizeGhost(s,n))})}}renderDetached(e){if(this.visible){this._setMatrix(),e.save();const t=this.mask;t&&(t._setMatrix(),t._transform(e,1),t._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transform(e,1),this.filter&&(e.filter=this.filter),e.globalCompositeOperation=this.blendMode,e.beginPath(),d.__(this._operations,t=>{t.path(e),t.colorize(e,void 0)}),e.restore()}}_addBounds(e){this.visible&&this.isMeasured&&d.__(this._operations,t=>{t.addBounds(e)})}}class xe extends J{constructor(e,t,i){super(e),Object.defineProperty(this,"text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"style",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"textVisible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"truncated",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textInfo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:1}),this.text=t,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(e){this.style.textAlign&&(e.textAlign=this.style.textAlign),this.style.direction&&(e.direction=this.style.direction),this.style.textBaseline&&(e.textBaseline=this.style.textBaseline)}_prerender(e,t=!1,i=!1){super._render(e);const s=e.layer.context,a=this._renderer._ghostLayer.context,r=this.style;let n=this._getFontStyle(void 0,i);s.font=n,this._isInteractive(e)&&!t&&(a.font=n),r.fill&&(r.fill instanceof I.Q1?s.fillStyle=r.fill.toCSS(null!=r.fillOpacity?r.fillOpacity:1):s.fillStyle=r.fill),r.shadowColor&&(e.layer.context.shadowColor=r.shadowColor.toCSS(r.shadowOpacity||1)),r.shadowBlur&&(e.layer.context.shadowBlur=r.shadowBlur),r.shadowOffsetX&&(e.layer.context.shadowOffsetX=r.shadowOffsetX),r.shadowOffsetY&&(e.layer.context.shadowOffsetY=r.shadowOffsetY),this._shared(s),this._isInteractive(e)&&!t&&(a.fillStyle=this._getColorId(),this._shared(a))}_getFontStyle(e,t=!1){const i=this.style;let s=[];return e&&e.fontVariant?s.push(e.fontVariant):i.fontVariant&&s.push(i.fontVariant),t||(e&&e.fontWeight?s.push(e.fontWeight):i.fontWeight&&s.push(i.fontWeight)),e&&e.fontStyle?s.push(e.fontStyle):i.fontStyle&&s.push(i.fontStyle),e&&e.fontSize?(P.Et(e.fontSize)&&(e.fontSize=e.fontSize+"px"),s.push(e.fontSize)):i.fontSize&&(P.Et(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),e&&e.fontFamily?s.push(e.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(e,t=0){if(this._textInfo||this._measure(e),this.textVisible){const i=this._isInteractive(e),s=e.layer.context,a=e.layer.dirty,r=this._renderer._ghostLayer.context,n=this._ghostOnly(t),o=this._drawGhost(e,t);s.save(),r.save(),this._prerender(e),d.__(this._textInfo,(t,l)=>{d.__(t.textChunks,(l,h)=>{if(l.style&&(s.save(),r.save(),n||(s.font=l.style),this._isInteractive(e)&&(r.font=l.style)),l.fill&&(s.save(),n||(s.fillStyle=l.fill.toCSS())),a&&!n&&s.fillText(l.text,l.offsetX,t.offsetY+l.offsetY),"underline"==l.textDecoration||"line-through"==l.textDecoration){let e=1,i=1,a=l.height;const r=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(r)>-1){const e=this._measureText(l.text,s);l.width=e.actualBoundingBoxLeft+e.actualBoundingBoxRight}let o,h=l.offsetX;switch(this.style.textAlign){case"right":case"end":h-=l.width;break;case"center":h-=l.width/2}if(l.style){switch(x.g.getTextStyle(l.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":e=2}}a&&(i=a/20),o="line-through"==l.textDecoration?e+t.offsetY+l.offsetY-l.height/2:e+1.5*i+t.offsetY+l.offsetY,n||(s.save(),s.beginPath(),l.fill?s.strokeStyle=l.fill.toCSS():this.style.fill&&this.style.fill instanceof I.Q1&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=e*i,s.moveTo(h,o),s.lineTo(h+l.width,o),s.stroke(),s.restore())}i&&this.interactive&&o&&r.fillText(l.text,l.offsetX,t.offsetY+l.offsetY),l.fill&&s.restore(),l.style&&(s.restore(),r.restore())})}),s.restore(),r.restore()}}_addBounds(e){if(this.visible&&this.isMeasured){const t=this._measure({inactive:this.inactive,layer:this.getLayer()});$(e,{x:t.left,y:t.top}),$(e,{x:t.right,y:t.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction;this._textInfo=[];const a=this.style.oversizedBehavior,r=this.style.maxWidth,n=P.Et(r)&&"truncate"==a,o=P.Et(r)&&("wrap"==a||"wrap-no-break"==a);t.save(),i.save(),this._prerender(e,!0,this._ignoreFontWeight());const l="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",h=this.text.toString().replace(/\r/g,"").split(/\n/);let c,g=!0,p=0,_=0,m=0;d.__(h,(e,s)=>{let a;for(a=""==e?[{type:"value",text:""}]:x.g.chunk(e,!1,this.style.ignoreFormatting);a.length>0;){let e={offsetY:m,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};const s=this._measureText(l,t),h=s.actualBoundingBoxAscent+s.actualBoundingBoxDescent;let b;e.height=h,e.ascent=s.actualBoundingBoxAscent;let f,v,y,w=this.style.textDecoration,D=!1,k=!0,T=[];d.FY(a,(s,h)=>{if("format"==s.type)if("[/]"==s.text)g||(t.restore(),i.restore(),g=!0),f=void 0,c=void 0,v=void 0,w=this.style.textDecoration,y=void 0,b=s.text;else{g||(t.restore(),i.restore());let a=x.g.getTextStyle(s.text);const r=this._getFontStyle(a);t.save(),i.save(),t.font=r,c=r,b=s.text,a.textDecoration&&(w=a.textDecoration),a.fill&&(f=a.fill),a.width&&(v=P.Ro(a.width)),a.verticalAlign&&(y=a.verticalAlign),g=!1;const n=this._measureText(l,t),o=n.actualBoundingBoxAscent+n.actualBoundingBoxDescent;o>e.height&&(e.height=o),n.actualBoundingBoxAscent>e.ascent&&(e.ascent=n.actualBoundingBoxAscent)}else if("value"==s.type&&!D){const i=this._measureText(s.text,t);let l=i.actualBoundingBoxLeft+i.actualBoundingBoxRight;if(n){this.truncated=void 0;let i=k||this.style.breakWords||!1;const a=this.style.ellipsis||"",n=this._measureText(a,t),o=n.actualBoundingBoxLeft+n.actualBoundingBoxRight;if(e.width+l>r){const n=r-e.width-o;s.text=this._truncateText(t,s.text,n,i),s.text+=a,D=!0,this.truncated=!0}}else if(o&&e.width+l>r){const i=r-e.width,n=this._truncateText(t,s.text,i,!1,k&&"wrap-no-break"!=this.style.oversizedBehavior);if(""==n)return this.textVisible=!0,!1;T=a.slice(h+1),u.Bq(n)!=u.Bq(s.text)&&(T.unshift({type:"value",text:s.text.substr(n.length)}),b&&T.unshift({type:"format",text:b})),s.text=u.Bq(n),a=[],D=!0}let d=1,g=1;if(c&&v&&v>l){const e=l/v;switch(this.style.textAlign){case"right":case"end":d=e;break;case"center":d=e,g=e;break;default:g=e}l=v}const p=i.actualBoundingBoxAscent+i.actualBoundingBoxDescent;p>e.height&&(e.height=p),i.actualBoundingBoxAscent>e.ascent&&(e.ascent=i.actualBoundingBoxAscent),e.width+=l,e.left+=i.actualBoundingBoxLeft/d,e.right+=i.actualBoundingBoxRight/g,e.textChunks.push({style:c,fill:f,text:s.text,width:l,height:p,left:i.actualBoundingBoxLeft,right:i.actualBoundingBoxRight,ascent:i.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:w,verticalAlign:y}),k=!1}return!0}),this.style.lineHeight instanceof B.QE?(e.height*=this.style.lineHeight.value,e.ascent*=this.style.lineHeight.value):(e.height*=this.style.lineHeight||1.2,e.ascent*=this.style.lineHeight||1.2),p<e.left&&(p=e.left),_<e.right&&(_=e.right),this._textInfo.push(e),m+=e.height,a=T||[]}}),g||(t.restore(),i.restore()),d.__(this._textInfo,(e,t)=>{let i=0;d.__(e.textChunks,t=>{if(t.offsetX=i+t.left-e.left,t.offsetY+=e.height-e.height*(this.style.baselineRatio||.19),i+=t.width*(s?-1:1),t.verticalAlign)switch(t.verticalAlign){case"super":t.offsetY-=e.height/2-t.height/2;break;case"sub":t.offsetY+=t.height/2}})});const b={left:s?-_:-p,top:0,right:s?p:_,bottom:m};if("none"!==a){const e=this._fitRatio(b);if(e<1)if("fit"==a)P.Et(this.style.minScale)&&e<this.style.minScale?(this.textVisible=!1,b.left=0,b.top=0,b.right=0,b.bottom=0):(this._originalScale||(this._originalScale=this.scale),this.scale=e,this.textVisible=!0);else if("hide"==a)this.textVisible=!1,b.left=0,b.top=0,b.right=0,b.bottom=0;else{switch(this.style.textAlign){case"right":case"end":b.left=s?r:-r,b.right=0;break;case"center":b.left=-r/2,b.right=r/2;break;default:b.left=0,b.right=s?-r:r}this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}else this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}return t.restore(),i.restore(),b}_fitRatio(e){const t=this.style.maxWidth,i=this.style.maxHeight;if(!P.Et(t)&&!P.Et(i))return 1;const s=e.right-e.left,a=e.bottom-e.top;return Math.min(t/s||1,i/a||1)}_truncateText(e,t,i,s=!1,a=!0){let r;do{if(s)t=t.slice(0,-1);else{let e=t.replace(/[^,;:!?\\\/\s​]+[,;:!?\\\/\s​]*$/g,"");if(""!=e&&e!==t||!a){if(""==e)return t;t=e}else s=!0}const i=this._measureText(t,e);r=i.actualBoundingBoxLeft+i.actualBoundingBoxRight}while(r>i&&""!=t);return t}_measureText(e,t){let i=t.measureText(e),s={};if(null==i.actualBoundingBoxAscent){const t=document.createElement("div");t.innerText=e,t.style.visibility="hidden",t.style.position="absolute",t.style.top="-1000000px;",t.style.fontFamily=this.style.fontFamily||"",t.style.fontSize=this.style.fontSize+"",document.body.appendChild(t);const a=t.getBoundingClientRect();document.body.removeChild(t);const r=a.height,n=i.width;s={actualBoundingBoxAscent:r,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:n,fontBoundingBoxAscent:r,fontBoundingBoxDescent:0,width:n}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};const a=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=a,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=a/2,s.actualBoundingBoxRight=a/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=a}return s}}class we{constructor(){Object.defineProperty(this,"fill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fillOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textAlign",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontFamily",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontWeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fontVariant",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textDecoration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"lineHeight",{enumerable:!0,configurable:!0,writable:!0,value:(0,B.KN)(120)}),Object.defineProperty(this,"baselineRatio",{enumerable:!0,configurable:!0,writable:!0,value:.19}),Object.defineProperty(this,"direction",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"textBaseline",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"oversizedBehavior",{enumerable:!0,configurable:!0,writable:!0,value:"none"}),Object.defineProperty(this,"breakWords",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"ellipsis",{enumerable:!0,configurable:!0,writable:!0,value:"…"}),Object.defineProperty(this,"maxWidth",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"maxHeight",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"minScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ignoreFormatting",{enumerable:!0,configurable:!0,writable:!0,value:!1})}}class Pe extends xe{constructor(){super(...arguments),Object.defineProperty(this,"textType",{enumerable:!0,configurable:!0,writable:!0,value:"circular"}),Object.defineProperty(this,"radius",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"startAngle",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"inside",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"orientation",{enumerable:!0,configurable:!0,writable:!0,value:"auto"}),Object.defineProperty(this,"kerning",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_textReversed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_render(e,t=0){if("circular"===this.textType)this._renderCircular(e,t);else super._render(e,t)}_renderCircular(e,t=0){if(this.textVisible){this._prerender(e);const i=this._isInteractive(e),s=e.layer.context,a=e.layer.dirty,r=this._renderer._ghostLayer.context;s.save(),i&&r.save(),this._textInfo||this._measure(e);let n=this.radius||0,o=this.startAngle||0,l=0,h=this.orientation,u="auto"==h?"auto":"inward"==h;const c=this.inside,g=this.style.textAlign||"left",p=this.kerning||0;let _="left"==g?1:-1;const m=!this._textReversed,b=this._ghostOnly(t),f=this._drawGhost(e,t);if("auto"==u){let e=0,t=0;d.__(this._textInfo,(t,i)=>{const s=o+t.width/(n-t.height)/2*-_;s>e&&(e=s)}),t="left"==g?(e+l/2)*F.iR:"right"==g?(e-l/2)*F.iR:o*F.iR,t=F.n0(t),u=t>=270||t<=90}1==u&&m&&(this._textInfo.reverse(),this._textReversed=!0),d.__(this._textInfo,(e,t)=>{const h=e.height;c||(n+=h),(-1==_&&u||1==_&&!u)&&m&&e.textChunks.reverse();let v=o;l=0,"center"==g&&(v+=e.width/(n-h)/2*-_,l=v-o),v+=Math.PI*(u?0:1),s.save(),i&&r.save(),b||s.rotate(v),i&&r.rotate(v);let y=0;d.__(e.textChunks,(e,t)=>{const o=e.text,l=e.width;y=l/2/(n-h)*_,b||s.rotate(y),i&&r.rotate(y),e.style&&(s.save(),r.save(),b||(s.font=e.style),i&&(r.font=e.style)),e.fill&&(s.save(),b||(s.fillStyle=e.fill.toCSS())),b||(s.textBaseline="middle",s.textAlign="center"),i&&(r.textBaseline="middle",r.textAlign="center"),a&&!b&&s.fillText(o,0,(u?1:-1)*(0-n+h/2)),i&&f&&r.fillText(o,0,(u?1:-1)*(0-n+h/2)),e.fill&&s.restore(),e.style&&(s.restore(),r.restore()),y=(l/2+p)/(n-h)*_,b||s.rotate(y),i&&r.rotate(y)}),s.restore(),i&&r.restore(),c&&(n-=h)}),s.restore(),i&&r.restore()}}_measure(e){return"circular"===this.textType?this._measureCircular(e):super._measure(e)}_measureCircular(e){const t=e.layer.context,i=this._renderer._ghostLayer.context,s="rtl"==this.style.direction,a=this.style.oversizedBehavior,r=this.style.maxWidth,n=P.Et(r)&&"truncate"==a,o=this.style.ellipsis||"";let l;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,t.save(),i.save(),this._prerender(e,!0);const h=this.text.toString().replace(/\r/g,"").split(/\n/);let c=!0,g=0,p=0;return d.__(h,(e,a)=>{let h,_,m,b=x.g.chunk(e,!1,this.style.ignoreFormatting),f={offsetY:p,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]};d.__(b,(e,a)=>{if("format"==e.type){if("[/]"==e.text)c||(t.restore(),i.restore(),c=!0),_=void 0,h=void 0,m=void 0;else{let s=x.g.getTextStyle(e.text);const a=this._getFontStyle(s);t.save(),i.save(),t.font=a,h=a,s.fill&&(_=s.fill),s.width&&(m=P.Ro(s.width)),c=!1}n&&(l=this._measureText(o,t))}else if("value"==e.type){let i=e.text.match(/./gu)||[];s&&(i=u.SX(e.text),i.reverse());for(let e=0;e<i.length;e++){const s=i[e],a=this._measureText(s,t);let d=a.width;h&&m&&m>d&&(d=m);const u=a.actualBoundingBoxAscent+a.actualBoundingBoxDescent;if(u>f.height&&(f.height=u),a.actualBoundingBoxAscent>f.ascent&&(f.ascent=a.actualBoundingBoxAscent),g+=d,n){l||(l=this._measureText(o,t));const e=l.actualBoundingBoxLeft+l.actualBoundingBoxRight;if(g+e>r){1==f.textChunks.length?this.textVisible=!1:(f.width+=e,f.left+=l.actualBoundingBoxLeft,f.right+=l.actualBoundingBoxRight,f.textChunks.push({style:h,fill:_,text:o,width:e,height:u+l.actualBoundingBoxDescent,left:l.actualBoundingBoxLeft,right:l.actualBoundingBoxRight,ascent:l.actualBoundingBoxAscent,offsetX:0,offsetY:u,textDecoration:void 0}));break}}f.width+=d,f.left+=a.actualBoundingBoxLeft,f.right+=a.actualBoundingBoxRight,f.textChunks.push({style:h,fill:_,text:s,width:d,height:u+a.actualBoundingBoxDescent,left:a.actualBoundingBoxLeft,right:a.actualBoundingBoxRight,ascent:a.actualBoundingBoxAscent,offsetX:0,offsetY:u,textDecoration:void 0})}}}),this.style.lineHeight instanceof B.QE?f.height*=this.style.lineHeight.value:f.height*=this.style.lineHeight||1.2,this._textInfo.push(f),p+=f.height}),c||(t.restore(),i.restore()),"hide"==a&&g>r&&(this.textVisible=!1),d.__(this._textInfo,e=>{d.__(e.textChunks,t=>{t.offsetY+=Math.round((e.height-t.height+(e.ascent-t.ascent))/2)})}),t.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}}class De extends J{constructor(e,t){super(e),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"image",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowColor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowBlur",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOffsetY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shadowOpacity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_imageMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.image=t}_dispose(){super._dispose(),this._imageMask&&Q(this._imageMask)}getLocalBounds(){if(!this._localBounds){let e=0,t=0;this.width&&(e=this.width),this.height&&(t=this.height),this._localBounds={left:0,top:0,right:e,bottom:t},this._addBounds(this._localBounds)}return this._localBounds}_render(e,t=0){if(super._render(e),this.image){if(void 0===this.tainted&&(this.tainted=W(this.image),e.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;const i=this._ghostOnly(t),s=this._drawGhost(e,t);if(e.layer.dirty&&!i){this.shadowColor&&(e.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(e.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(e.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(e.layer.context.shadowOffsetY=this.shadowOffsetY);const t=this.width||this.image.naturalWidth,i=this.height||this.image.naturalHeight;e.layer.context.drawImage(this.image,0,0,t,i)}if(this.interactive&&this._isInteractive(e)&&s){const e=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(e,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(e){if(void 0===this._imageMask){const t=this.width||e.naturalWidth,i=this.height||e.naturalHeight,s=document.createElement("canvas");s.width=t,s.height=i;const a=s.getContext("2d");a.imageSmoothingEnabled=!1,a.fillStyle=this._getColorId(),a.fillRect(0,0,t,i),W(e)||(a.globalCompositeOperation="destination-in",a.drawImage(e,0,0,t,i)),this._imageMask=s}return this._imageMask}}class ke{constructor(e,t,i,s){Object.defineProperty(this,"event",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"originalPoint",{enumerable:!0,configurable:!0,writable:!0,value:t}),Object.defineProperty(this,"point",{enumerable:!0,configurable:!0,writable:!0,value:i}),Object.defineProperty(this,"bbox",{enumerable:!0,configurable:!0,writable:!0,value:s}),Object.defineProperty(this,"id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"simulated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"native",{enumerable:!0,configurable:!0,writable:!0,value:!0}),u.xY("touchevents")&&e instanceof Touch?this.id=e.identifier:this.id=null}}class Te extends h.JZ{constructor(e){if(super(),Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"_layerDom",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("div")}),Object.defineProperty(this,"layers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_dirtyLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"defaultLayer",{enumerable:!0,configurable:!0,writable:!0,value:this.getLayer(0)}),Object.defineProperty(this,"_ghostLayer",{enumerable:!0,configurable:!0,writable:!0,value:new Oe}),Object.defineProperty(this,"_deferredGhostLayers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_patternCanvas",{enumerable:!0,configurable:!0,writable:!0,value:document.createElement("canvas")}),Object.defineProperty(this,"_patternContext",{enumerable:!0,configurable:!0,writable:!0,value:this._patternCanvas.getContext("2d")}),Object.defineProperty(this,"_realWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_realHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_calculatedHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"resolution",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interactionsEnabled",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_listeners",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_colorId",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_colorMap",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_forceInteractive",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_omitTainted",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_hovering",{enumerable:!0,configurable:!0,writable:!0,value:new Set}),Object.defineProperty(this,"_dragging",{enumerable:!0,configurable:!0,writable:!0,value:[]}
12),Object.defineProperty(this,"_mousedown",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_lastPointerMoveEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tapToActivate",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"tapToActivateTimeout",{enumerable:!0,configurable:!0,writable:!0,value:3e3}),Object.defineProperty(this,"_touchActive",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_touchActiveTimeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.resolution=null==e?window.devicePixelRatio:e,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new h.W_(()=>{w.__(this._events,(e,t)=>{t.disposer.dispose()}),d.__(this.layers,e=>{Q(e.view),e.exportableView&&Q(e.exportableView)}),Q(this._ghostLayer.view),Q(this._patternCanvas)})),this._disposers.push(u.n_(()=>{null==e&&(this.resolution=window.devicePixelRatio)})),u.xY("touchevents")){const e=e=>{0!==this._dragging.length&&d.FY(this._dragging,t=>!t.value.shouldCancelTouch()||(e.preventDefault(),!1)),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(u.q2(window,"touchstart",e,{passive:!1})),this._disposers.push(u.q2(this.view,"touchstart",e,{passive:!1})),this._disposers.push(u.q2(this.view,"touchmove",()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()},{passive:!0})),this._disposers.push(u.q2(window,"click",e=>{this._touchActive=!1},{passive:!0})),this._disposers.push(u.q2(this.view,"click",e=>{window.setTimeout(()=>{this._touchActive=!0,this._delayTouchDeactivate()},100)},{passive:!0}))}u.xY("wheelevents")&&this._disposers.push(u.q2(this.view,"wheel",e=>{let t=!1;this._hovering.forEach(e=>{if(e.wheelable)return t=!0,!1}),t&&e.preventDefault()},{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout(()=>{this._touchActive=!1},this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(e){e?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(e,t,i,s){return this.defaultLayer.context.createLinearGradient(e,t,i,s)}createRadialGradient(e,t,i,s,a,r){return this.defaultLayer.context.createRadialGradient(e,t,i,s,a,r)}createPattern(e,t,i,s,a){return this._patternCanvas.width=s,this._patternCanvas.height=a,this._patternContext.clearRect(0,0,s,a),t.renderDetached(this._patternContext),e.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new q(this)}makeGraphics(){return new ye(this)}makeText(e,t){return new xe(this,e,t)}makeTextStyle(){return new we}makeRadialText(e,t){return new Pe(this,e,t)}
12makePicture(e){return new De(this,e)}resizeLayer(e){e.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(e,t,i,s){this._realWidth=e,this._realHeight=t,this._calculatedWidth=i,this._calculatedHeight=s,d.__(this.layers,e=>{e&&(e.dirty=!0,this.resizeLayer(e))}),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(e=!1){const t=document.createElement("canvas"),i=t.getContext("2d",{willReadFrequently:e}),s=new Me(t,i);return t.style.position="absolute",t.style.top="0px",t.style.left="0px",s}getLayerByOrder(e){const t=this.layers,i=t.length;for(let s=0;s<i;s++){const i=t[s];if(i.order==e)return i}}getLayer(e,t=!0){let i=this.getLayerByOrder(e);if(i)return i;const s=this.createDetachedLayer(99==e);s.order=e,s.visible=t,s.view.className="am5-layer-"+e,s.visible&&this.resizeLayer(s);const a=this.layers;a.push(s),a.sort((e,t)=>e.order>t.order?1:e.order<t.order?-1:0);const r=a.length;let n;for(let e=d.qh(a,s)+1;e<r;e++)if(a[e].visible){n=a[e];break}return s.visible&&(void 0===n?this._layerDom.appendChild(s.view):this._layerDom.insertBefore(s.view,n.view)),s}render(e){this._dirtyLayers.length=0,this._deferredGhostLayers=[],d.__(this.layers,e=>{e&&e.dirty&&e.visible&&(this._dirtyLayers.push(e),e.clear())}),this._ghostLayer.clear(),e.render({inactive:null,layer:this.defaultLayer});const t=this._deferredGhostLayers;if(t.length&&(t.sort((e,t)=>e-t),d.__(t,t=>{e.render({inactive:null,layer:this.defaultLayer},t)})),this._ghostLayer.context.restore(),d.__(this.layers,e=>{if(e){const t=e.context;t.beginPath(),t.moveTo(0,0),t.stroke()}}),d.__(this._dirtyLayers,e=>{e.context.restore(),e.dirty=!1}),this._hovering.size&&this._lastPointerMoveEvent){const{events:e,target:t,native:i}=this._lastPointerMoveEvent;d.__(e,e=>{this._dispatchGlobalMousemove(e,t,i)})}}paintId(e){const t=function(e){const t=[0,0,0];for(let i=0;i<24;i++)t[i%3]<<=1,t[i%3]|=1&e,e>>=1;return(0|t[0])+(t[1]<<8)+(t[2]<<16)}(++this._colorId),i=I.Q1.fromHex(t).toCSS();return this._colorMap[i]=e,i}_removeObject(e){void 0!==e._colorId&&delete this._colorMap[e._colorId]}_adjustBoundingBox(e){const t=this._ghostLayer.margin;return new DOMRect(-t.left,-t.top,e.width+t.left+t.right,e.height+t.top+t.bottom)}getEvent(e,t=!0){const i=this.view.getBoundingClientRect(),s=e.clientX||0,a=e.clientY||0,r
12=this._calculatedWidth/this._realWidth,n=this._calculatedHeight/this._realHeight,o={x:s-i.left,y:a-i.top},l={x:(s-(t?i.left:0))*r,y:(a-(t?i.top:0))*n};return new ke(e,o,l,this._adjustBoundingBox(i))}_getHitTarget(e,t,i){if(0===t.width||0===t.height||e.x<t.left||e.x>t.right||e.y<t.top||e.y>t.bottom)return;if(!i||!this._layerDom.contains(i))return;const s=this._ghostLayer.getImageData(e,t);if(0===s.data[0]&&0===s.data[1]&&0===s.data[2])return!1;const a=I.Q1.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[a]}getObjectAtPoint(e){const t=this._ghostLayer.getImageArray(e);if(0===t[0]&&0===t[1]&&0===t[2])return;const i=I.Q1.fromRGB(t[0],t[1],t[2]).toCSS();return this._colorMap[i]}_withEvents(e,t){const i=this._events[e];if(void 0!==i){i.dispatching=!0;try{t(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,d.TW(i.callbacks,e=>!e.disposed),0===i.callbacks.length&&(i.disposer.dispose(),delete this._events[e]))}}}_dispatchEventAll(e,t){this.interactionsEnabled&&this._withEvents(e,e=>{d.__(e.callbacks,e=>{e.disposed||e.callback.call(e.context,t)})})}_dispatchEvent(e,t,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(e,e=>{d.__(e.callbacks,e=>{e.disposed||e.object!==t||(e.callback.call(e.context,i),s=!0)})}),s}_dispatchMousedown(e,t){const i=e.button;if(0!=i&&2!=i&&1!=i&&void 0!==i)return;
12const s=this.getEvent(e),a=this._getHitTarget(s.originalPoint,s.bbox,t);if(a){const e=s.id;let t=!1;U(a,i=>{const a={id:e,value:i};if(this._mousedown.push(a),!t&&this._dispatchEvent("pointerdown",i,s)){t=!0;this._dragging.some(t=>t.value===i&&t.id===e)||this._dragging.push(a)}return!0})}}_dispatchGlobalMousemove(e,t,i){const s=this.getEvent(e),a=this._getHitTarget(s.originalPoint,s.bbox,t);s.native=i,a?(this._hovering.forEach(e=>{e.contains(a)||(this._hovering.delete(e),e.cursorOverStyle&&u.eC(document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,s))}),s.native&&U(a,e=>(this._hovering.has(e)||(this._hovering.add(e),e.cursorOverStyle&&(e._replacedCursorStyle=u.gd(document.body,"cursor"),u.eC(document.body,"cursor",e.cursorOverStyle)),this._dispatchEvent("pointerover",e,s)),!0))):(this._hovering.forEach(e=>{e.cursorOverStyle&&u.eC(document.body,"cursor",e._replacedCursorStyle),this._dispatchEvent("pointerout",e,s)}),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(e){this._hovering.delete(e),e.cursorOverStyle&&u.eC(document.body,"cursor",e._replacedCursorStyle)}_dispatchGlobalMouseup(e,t){const i=this.getEvent(e);i.native=t,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(e){if(0!==this._dragging.length){const t=this.getEvent(e),i=t.id;this._dragging.forEach(e=>{e.id===i&&this._dispatchEvent("pointermove",e.value,t)})}}_dispatchDragEnd(e,t){const i=e.button;let s;if(0==i||void 0===i)s="click";else if(2==i)s="rightclick";else{if(1!=i)return;s="middleclick"}const a=this.getEvent(e),r=a.id;if(0!==this._mousedown.length){const e=this._getHitTarget(a.originalPoint,a.bbox,t);e&&this._mousedown.forEach(t=>{t.id===r&&t.value.contains(e)&&this._dispatchEvent(s,t.value,a)}),this._mousedown.length=0}0!==this._dragging.length&&(this._dragging.forEach(e=>{e.id===r&&this._dispatchEvent("pointerup",e.value,a)}),this._dragging.length=0)}_dispatchDoubleClick(e,t){const i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);s&&U(s,e=>!this._dispatchEvent("dblclick",e,i))}_dispatchWheel(e,t){const i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);s&&U(s,e=>!this._dispatchEvent("wheel",e,i))}_makeSharedEvent(e,t){if(void 0===this._listeners[e]){const i=t();this._listeners[e]=new h.Wr(()=>{delete this._listeners[e],i.dispose()})}return this._listeners[e].increment()}_onPointerEvent(e,t){let i=!1,s=null;function a(){s=null,i=!1}return new h.ZT([new h.W_(()=>{null!==s&&clearTimeout(s),a()}),u.q2(this.view,u.wN(e),e=>{i=!0,null!==s&&clearTimeout(s),s=window.setTimeout(a,0)}),G(window,e,(e,a)=>{null!==s&&(clearTimeout(s),s=null),t(e,a,i),i=!1})])}_initEvent(e){switch(e){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",()=>{const e=(e,t,i)=>{this._lastPointerMoveEvent={events:e,target:t,native:i},d.__(e,e=>{this._dispatchGlobalMousemove(e,t,i)})};return new h.ZT([this._onPointerEvent("pointerdown",e),this._onPointerEvent("pointermove",e)])});case"globalpointerup":return this._makeSharedEvent("pointerup",()=>{const e=this._onPointerEvent("pointerup",(e,t,i)=>{d.__(e,e=>{this._dispatchGlobalMouseup(e,i)}),this._lastPointerMoveEvent={events:e,target:t,native:i}}),t=this._onPointerEvent("pointercancel",(e,t,i)=>{d.__(e,e=>{this._dispatchGlobalMouseup(e,i)}),this._lastPointerMoveEvent={events:e,target:t,native:i}});return new h.W_(()=>{e.dispose(),t.dispose()})});case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",()=>{const e=this._onPointerEvent("pointerdown",(e,t)=>{d.__(e,e=>{this._dispatchMousedown(e,t)})}),t=this._onPointerEvent("pointermove",e=>{d.__(e,e=>{this._dispatchDragMove(e)})}),i=this._onPointerEvent("pointerup",(e,t)=>{d.__(e,e=>{this._dispatchDragEnd(e,t)})}),s=this._onPointerEvent("pointercancel",(e,t)=>{d.__(e,e=>{this._dispatchDragEnd(e,t)})});return new h.W_(()=>{e.dispose(),t.dispose(),i.dispose(),s.dispose()})});case"dblclick":return this._makeSharedEvent("dblclick",()=>this._onPointerEvent("dblclick",(e,t)=>{d.__(e,e=>{this._dispatchDoubleClick(e,t)})}));case"wheel":return this._makeSharedEvent("wheel",()=>u.q2(this.view,u.wN("wheel"),e=>{this._dispatchWheel(e,u.wt(e))},{passive:!1}))}}_addEvent(e,t,i,s){let a=this._events[t];void 0===a&&(a=this._events[t]={disposer:this._initEvent(t),callbacks:[],dispatching:!1,cleanup:!1});const r={object:e,context:s,callback:i,disposed:!1};return a.callbacks.push(r),new h.W_(()=>
vendor: 1,716 bytes, line 12
12{r.disposed=!0,a.dispatching?a.cleanup=!0:(d.dm(a.callbacks,r),0===a.callbacks.length&&(a.disposer.dispose(),delete this._events[t]))})}getCanvas(e,t){this.render(e),t||(t={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),a=Math.floor(this._calculatedHeight*this.resolution);if(t.minWidth&&t.minWidth>s){let e=t.minWidth/s;e>i&&(i=e*this.resolution)}if(t.minHeight&&t.minHeight>a){let e=t.minHeight/a;e>i&&(i=e*this.resolution)}if(t.maxWidth&&t.maxWidth<s){let e=t.maxWidth/s;e<i&&(i=e*this.resolution)}if(t.maxHeight&&t.maxHeight>a){let e=t.maxHeight/a;e<i&&(i=e*this.resolution)}t.maintainPixelRatio&&(i/=this.resolution);const r=[];let n=!1;const o=document.createElement("canvas");i!=this.resolution&&(n=!0,s=s*i/this.resolution,a=a*i/this.resolution),o.width=s,o.height=a,o.style.position="fixed",o.style.top="-10000px",this.view.appendChild(o),r.push(o);const l=o.getContext("2d");let h=0,u=0,c=!1;return d.__(this.layers,e=>{if(e&&e.visible&&(e.tainted||n)){c=!0,e.exportableView=e.view,e.exportableContext=e.context,e.view=document.createElement("canvas"),e.view.style.position="fixed",e.view.style.top="-10000px",this.view.appendChild(e.view),r.push(e.view);let t=0,n=0;e.margin&&(t+=e.margin.left||0+e.margin.right||0,n+=e.margin.top||0+e.margin.bottom||0),e.view.width=s+t,e.view.height=a+n,e.context=e.view.getContext("2d"),e.dirty=!0,e.scale=i}}),c&&(this._omitTainted=!0,this.render(e),this._omitTainted=!1),d.__(this.layers,e=>{if(e&&e.visible){let t=0,i=0;e.margin&&(t=-(e.margin.left||0)*this.resolution,i=-(e.margin.top||0)*this.resolution),l.drawImage(e.view,t,i),e.exportableView&&(e.view=e.exportableView,e.exportableView=void 0),e.exportableContext&&(e.context=e.exp
12ortableContext,e.exportableContext=void 0),h<e.view.clientWidth&&(h=e.view.clientWidth),u<e.view.clientHeight&&(u=e.view.clientHeight),e.scale=void 0}}),o.style.width=h+"px",o.style.height=u+"px",d.__(r,e=>{e.style.position="",e.style.top="",this.view.removeChild(e)}),o}}class Oe{constructor(){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_resolution",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"imageArray",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(e,t,i,s,a){this._resolution=a,e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(e*a),this._height=Math.floor(t*a),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(e,t){return this.context.getImageData(Math.round((e.x-t.left)/t.width*this._width),Math.round((e.y-t.top)/t.height*this._height),1,1)}getImageArray(e){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);const t=this.imageArray,i=Math.round(e.x*this._resolution),s=4*(Math.round(e.y*this._resolution)*this._width+i);return[t[s],t[s+1],t[s+2],t[s+3]]}setMargin(e){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,d.__(e,e=>{e.margin&&(this.margin.left=Math.max(this.margin.left,e.margin.left),this.margin.right=Math.max(this.margin.right,e.margin.right),this.margin.top=Math.max(this.margin.top,e.margin.top),this.margin.bottom=Math.max(this.margin.bottom,e.margin.bottom))})}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}}class Me{constructor(e,t){Object.defineProperty(this,"view",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"context",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tainted",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"margin",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"order",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"visible",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"scale",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dirty",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"exportableView",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"exportableContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_width",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_height",{enumerable:!0,configurable:!0,writable:!0,value:0}),this.view=e,this.context=t}resize(e,t,i,s,a){null!=this.width&&(e=this.width,i=this.width),null!=this.height&&(t=this.height,s=this.height),this.margin?(e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(e*a),this._height=Math.floor(t*a),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}}var Se=i(3235),Ae=i(48494),Ce=i(35530);function Ee(e,t){null==e?requestAnimationFrame(t):setTimeout(()=>{requestAnimationFrame(t)},1e3/e)}class je{constructor(e,t={},i){if(Object.defineProperty(this,"dom",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_inner",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDirtyAnimation",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyParents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyBounds",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPositions",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_ticker",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_tickers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_updateTick",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new E.Q}),Object.defineProperty(this,"animationTime",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"_animations",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_renderer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rootContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tooltipContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipContainerSettings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltip",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"language",{enumerable:!0,configurable:!0,writable:!0,value:C.new(this,{})}),Object.defineProperty(this,"locale",{enumerable:!0,configurable:!0,writable:!0,value:A}),Object.defineProperty(this,"utc",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"timezone",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"fps",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"numberFormatter",{enumerable:!0,configurable:!0,writable:!0,value:D.new(this,{})}),Object.defineProperty(this,"dateFormatter",{enumerable:!0,configurable:!0,writable:!0,value:M.new(this,{})}),Object.defineProperty(this,"durationFormatter",{enumerable:!0,configurable:!0,writable:!0,value:S.new(this,{})}),Object.defineProperty(this,"tabindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_tabindexes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_a11yD",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_focusElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusedSprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isShift",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_keyboardDragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_readerAlertElement",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_logo",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDiv",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"nonce",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"interfaceColors",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"verticalLayout",{enumerable:!0,configurable:!0,writable:!0,value:o.N.new(this,{})}),Object.defineProperty(this,"horizontalLayout",{enumerable:!0,configurable:!0,writable:!0,value:n.b.new(this,{})}),Object.defineProperty(this,"gridLayout",{enumerable:!0,configurable:!0,writable:!0,value:l.J.new(this,{})}),Object.defineProperty(this,"_paused",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"autoResize",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_fontHash",{enumerable:!0,configurable:!0,writable:!0,value:""}),Object.defineProperty(this,"_isDisposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_resizeSensorDisposer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltips",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_htmlElementContainer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_htmlEnabledContainers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");let s,a;if(this._settings=t,0==t.accessible&&(this._a11yD=!0),null==t.useSafeResolution&&(t.useSafeResolution=!0),t.useSafeResolution&&(s=u.U3()),this._renderer=new Te(s),a=e instanceof HTMLElement?e:document.getElementById(e),d.__(Ae.u5.rootElements,e=>{if(e.dom===a)throw new Error("You cannot have multiple Roots on the same DOM node")}),this.interfaceColors=b.new(this,{}),null===a)throw new Error("Could not find HTML element with id `"+e+"`");this.dom=a;let r=document.createElement("div");r.style.position="relative",r.style.width="100%",r.style.height="100%",a.appendChild(r);const h=t.tooltipContainerBounds;h&&(this._tooltipContainerSettings=h),this._inner=r,this._updateComputedStyles(),Ae.u5.rootElements.push(this)}static new(e,t){const i=new je(e,t,!0);return i._init(),i}moveDOM(e){let t;if(t=e instanceof HTMLElement?e:document.getElementById(e),t){for(;this.dom.childNodes.length>0;)t.appendChild(this.dom.childNodes[0]);this.dom=t,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){const e=this.dom.offsetWidth,t=this.dom.offsetHeight;e<=150||t<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){const e=this.tooltipContainer.children.push(a.m.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:(0,B.KN)(100),centerY:B.Q2,tooltipText:"Created using amCharts 5",tooltipX:B.Q2,cursorOverStyle:"pointer",background:v.M.new(this,{fill:(0,I.yW)(4671320),fillOpacity:0,tooltipY:5})})),t=y.m.new(this,{pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});t.label.setAll({fontSize:12}),t.get("background").setAll({fill:this.interfaceColors.get("background"),stroke:this.interfaceColors.get("grid"),strokeOpacity:.3}),e.set("tooltip",t),e.events.on("click",()=>{window.open("https://www.amcharts.com/","_blank")}),e.states.create("hover",{});e.children.push(f.A.new(this,{stroke:(0,I.yW)(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6"})).states.create("hover",{stroke:(0,I.yW)(3976191)});e.children.push(f.A.new(this,{stroke:(0,I.yW)(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0"})).states.create("hover",{stroke:(0,I.yW)(4671320)}),this._logo=e,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(e){return this._settings.calculateSize?this._settings.calculateSize(e):{width:e.width,height:e.height}}_init(){const e=this._settings;!1!==e.accessible&&(e.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),e.ariaLabel&&this._inner.setAttribute("aria-label",e.ariaLabel),e.role&&this._inner.setAttribute("role",e.role));const t=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),r=Math.floor(s.width),n=Math.floor(s.height),o=Math.floor(i.width),l=Math.floor(i.height),h=a.m.new(this,{visible:!0,width:r,height:n});this._rootContainer=h,this._rootContainer._defaultThemes.push(j.p.new(this));const d=h.children.push(a.m.new(this,{visible:!0,width:B.Q2,height:B.Q2}));this.container=d,t.resize(o,l,r,n),this._inner.appendChild(t.view),this._initResizeSensor();const c=document.createElement("div");if(this._htmlElementContainer=c,c.className="am5-html-container",c.style.position="absolute",c.style.pointerEvents="none",this._tooltipContainerSettings||(c.style.overflow="hidden"),this._inner.appendChild(c),!0!==this._a11yD){const e=document.createElement("div");e.className="am5-reader-container",e.setAttribute("role","alert"),e.style.position="absolute",e.style.width="1px",e.style.height="1px",e.style.overflow="hidden",e.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=e,this._inner.appendChild(this._readerAlertElement);const i=document.createElement("div");i.className="am5-focus-container",i.style.position="absolute",i.style.pointerEvents="none",i.style.top="0px",i.style.left="0px",i.style.overflow="hidden",i.style.width=r+"px",i.style.height=n+"px",i.setAttribute("role","graphics-document"),u.Dt(i,!1),this._focusElementContainer=i,this._inner.appendChild(this._focusElementContainer);const s=document.createElement("div");this._tooltipElementContainer=s,s.className="am5-tooltip-container",this._inner.appendChild(s),u.xY("keyboardevents")&&(this._disposers.push(u.q2(window,"keydown",e=>{const t=u.K(e);"Shift"==t?this._isShift=!0:"Tab"==t&&(this._isShift=e.shiftKey)})),this._disposers.push(u.q2(window,"keyup",e=>{"Shift"==u.K(e)&&(this._isShift=!1)})),this._disposers.push(u.q2(i,"click",()=>{const e=this._focusedSprite;
12if(e){const i=e.get("clickAnnounceText","");""!==i&&this.readerAlert(i);const s=t.getEvent(new MouseEvent("click"));e.events.dispatch("click",{type:"click",originalEvent:s.event,point:s.point,simulated:!0,target:e})}})),this._disposers.push(u.q2(i,"keydown",e=>{const i=this._focusedSprite;if(i){"Escape"==e.key&&(u.Ge(),this._focusedSprite=void 0);let s=0,a=0;const r=u.K(e);switch(r){case"Enter":case" ":const n=i.get("clickAnnounceText","");if(""!==n&&this.readerAlert(n)," "==r&&"checkbox"!=i.get("role"))return;e.preventDefault();const o=t.getEvent(new MouseEvent("mouse"));return void i.events.dispatch("click",{type:"click",originalEvent:o.event,point:o.point,simulated:!0,target:i});case"ArrowLeft":s=-6;break;case"ArrowRight":s=6;break;case"ArrowUp":a=-6;break;case"ArrowDown":a=6;break;default:return}if(0!=s||0!=a){if(e.preventDefault(),!i.isDragging()){this._keyboardDragPoint={x:0,y:0};const e=t.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));e.point={x:0,y:0},i.events.isEnabled("pointerdown")&&i.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:e.event,point:e.point,simulated:!0,target:i})}const r=this._keyboardDragPoint;r.x+=s,r.y+=a;const n=t.getEvent(new MouseEvent("mousemove",{clientX:r.x,clientY:r.y}),!1);i.events.isEnabled("globalpointermove")&&i.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:n.event,point:n.point,simulated:!0,target:i})}}})),this._disposers.push(u.q2(i,"keyup",e=>{if(this._focusedSprite){const i=this._focusedSprite,s=u.K(e);switch(s){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(i.isDragging()){const e=this._keyboardDragPoint,s=t.getEvent(new MouseEvent("mouseup",{clientX:e.x,clientY:e.y}));return i.events.isEnabled("globalpointerup")&&i.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:s.event,point:s.point,simulated:!0,target:i}),void(this._keyboardDragPoint=void 0)}if(i.get("focusableGroup")){const e=i.get("focusableGroup"),t=this._tabindexes.filter(t=>!(t.get("focusableGroup")!=e||!1===t.getPrivate("focusable")||!t.isVisibleDeep()));let a=t.indexOf(i);const r=t.length-1;a+="ArrowRight"==s||"ArrowDown"==s?1:-1,a<0?a=r:a>r&&(a=0),u.XC(t[a].getPrivate("focusElement").dom)}break;case"Tab":const e=i.get("focusableGroup");if(e&&this._isShift)return void this._focusNext(i.getPrivate("focusElement").dom,-1,e)}}})))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new _(this.dom,()=>{this.autoResize&&this.resize()}),this._disposers.push(this._resizeSensorDisposer)}resize(){const e=this._getRealSize(),t=this._getCalculatedSize(e),i=Math.floor(t.width),s=Math.floor(t.height);if(i>0&&s>0){const t=Math.floor(e.width),a=Math.floor(e.height),r=this._htmlElementContainer;if(r.style.width=i+"px",r.style.height=s+"px",!0!==this._a11yD){const e=this._focusElementContainer;e.style.width=i+"px",e.style.height=s+"px"}this._renderer.resize(t,a,i,s);const n=this._rootContainer;n.setPrivate("width",i),n.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(e){d.__(this._tickers,t=>{t(e)})}_runAnimations(e){let t=0;return d.TW(this._animations,i=>{const a=i._runAnimation(e);return a!==s.oA.Stopped&&(a!==s.oA.Playing||(++t,!0))}),this._isDirtyAnimation=!1,0===t}_runDirties(){let e={};for(;this._isDirtyParents;)this._isDirtyParents=!1,w.HP(this._dirtyParents).forEach(t=>{const i=this._dirtyParents[t];delete this._dirtyParents[t],i.isDisposed()||(e[i.uid]=i,i._prepareChildren())});w.HP(e).forEach(t=>{e[t]._updateChildren()});const t=[];w.HP(this._dirty).forEach(e=>{const i=this._dirty[e];i.isDisposed()?delete this._dirty[i.uid]:(t.push(i),i._beforeChanged())}),t.forEach(e=>{e._changed(),delete this._dirty[e.uid],e._clearDirty()}),this._isDirty=!1;const i={},s=[];w.HP(this._dirtyBounds).forEach(e=>{const t=this._dirtyBounds[e];delete this._dirtyBounds[e],t.isDisposed()||(i[t.uid]=t.depth(),s.push(t))}),this._positionHTMLElements(),s.sort((e,t)=>
12Ce.UD(i[t.uid],i[e.uid])),s.forEach(e=>{e._updateBounds()});const a=this._dirtyPositions;w.HP(a).forEach(e=>{const t=a[e];delete a[e],t.isDisposed()||t._updatePosition()}),t.forEach(e=>{e._afterChanged()})}_renderFrame(e){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:e}),this._checkComputedStyles(),this._runTickers(e);const t=this._runAnimations(e);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:e}),0===this._tickers.length&&t&&!this._isDirtyAnimation&&!this._isDirty}return!0}_runTicker(e,t){if(!this.isDisposed()){this.animationTime=e;this._renderFrame(e)?(this._ticker=null,this.animationTime=null):this._paused||(t?this._ticker:Ee(this.fps,this._ticker))}}_runTickerNow(e=1e4){if(!this.isDisposed()){const t=performance.now()+e;for(;;){const e=performance.now();if(e>=t){this.animationTime=null;break}this.animationTime=e;if(this._renderFrame(e)){this.animationTime=null;break}}}}_startTicker(){null===this._ticker&&(this.animationTime=null,this._ticker=e=>{this._runTicker(e)},Ee(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(e){this._updateTick=e,e&&this._startTicker()}_addDirtyEntity(e){this._isDirty=!0,void 0===this._dirty[e.uid]&&(this._dirty[e.uid]=e),this._startTicker()}_addDirtyParent(e){this._isDirty=!0,this._isDirtyParents=!0,void 0===this._dirtyParents[e.uid]&&(this._dirtyParents[e.uid]=e),this._startTicker()}_addDirtyBounds(e){this._isDirty=!0,void 0===this._dirtyBounds[e.uid]&&(this._dirtyBounds[e.uid]=e),this._startTicker()}_addDirtyPosition(e){this._isDirty=!0,void 0===this._dirtyPositions[e.uid]&&(this._dirtyPositions[e.uid]=e),this._startTicker()}_addAnimation(e){this._isDirtyAnimation=!0,-1===this._animations.indexOf(e)&&this._animations.push(e),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",()=>{this._isDirty=!0,this._startTicker()})}eachFrame(e){return this._tickers.push(e),this._startTicker(),new h.W_(()=>{d.dm(this._tickers,e)})}markDirtyGlobal(e){e||(e=this.container),e.walkChildren(e=>{e instanceof a.m&&this.markDirtyGlobal(e),e.markDirty(),e.markDirtyBounds()})}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),d.__(this._disposers,e=>{e.dispose()}),this._inner&&u.Nz(this._inner),d.TF(Ae.u5.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(e){if(!0!==this._a11yD){const t=this._readerAlertElement;e=u.Kq(e),t.innerHTML==e&&(t.innerHTML=""),t.innerHTML=e}}setThemes(e){this._rootContainer.set("themes",e);const t=this.tooltipContainer;t&&t._applyThemes();const i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){const e=this._tooltipContainerSettings,t=this._rootContainer.children.push(a.m.new(this,{position:"absolute",isMeasured:!1,width:B.Q2,height:B.Q2,layer:e?35:30,layerMargin:e||void 0}));this.tooltipContainer=t;const i=y.m.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(e){1!=this._a11yD&&(e.get("focusable")?d.JJ(this._tabindexes,e):d.TF(this._tabindexes,e),this._invalidateTabindexes())}_unregisterTabindexOrder(e){1!=this._a11yD&&(d.TF(this._tabindexes,e),this._invalidateTabindexes())}_invalidateTabindexes(){if(1==this._a11yD)return;this._tabindexes.sort((e,t)=>{const i=e.get("tabindexOrder",0),s=t.get("tabindexOrder",0);return i==s?0:i>s?1:-1});const e=[];d.__(this._tabindexes,(t,i)=>{t.getPrivate("focusElement")?this._moveFocusElement(i,t):this._makeFocusElement(i,t);const s=t.get("focusableGroup");s&&!1!==t.getPrivate("focusable")&&(-1!==e.indexOf(s)?t.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):e.push(s))})}_updateCurrentFocus(){1!=this._a11yD&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(e,t){if(1==this._a11yD)return;if(t||(t=e.getPrivate("focusElement").dom),!t)return;const i=e.get("role");i?t.setAttribute("role",i):t.removeAttribute("role");const s=e.get("ariaLabel");if(s){const i=(0,Se.I)(e,s);t.setAttribute("aria-label",i)}else t.removeAttribute("aria-label");const a=e.get("ariaLive");a?t.setAttribute("aria-live",a):t.removeAttribute("aria-live");const r=e.get("ariaChecked");null!=r&&i&&-1!==["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)?t.setAttribute("aria-checked",r?"true":"false"):t.removeAttribute("aria-checked");const n=e.get("ariaCurrent");null!=n?t.setAttribute("aria-current",n):t.removeAttribute("aria-current");const o=e.get("ariaSelected");null!=o&&i&&-1!==["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)?t.setAttribute("aria-selected",o?"true":"false"):t.removeAttribute("aria-selected"),e.get("ariaHidden")?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");const l=e.get("ariaOrientation");l?t.setAttribute("aria-orientation",l):t.removeAttribute("aria-orientation");const h=e.get("ariaValueNow");h?t.setAttribute("aria-valuenow",h):t.removeAttribute("aria-valuenow");const d=e.get("ariaValueMin");d?t.setAttribute("aria-valuemin",d):t.removeAttribute("aria-valuemin");const u=e.get("ariaValueMax");u?t.setAttribute("aria-valuemax",u):t.removeAttribute("aria-valuemax");const c=e.get("ariaValueText");c?t.setAttribute("aria-valuetext",c):t.removeAttribute("aria-valuetext");
vendor: 3,554 bytes, line 12
12const g=e.get("ariaControls");g?t.setAttribute("aria-controls",g):t.removeAttribute("aria-controls"),e.get("visible")&&0!==e.get("opacity")&&"tooltip"!=e.get("role")&&!e.isHidden()&&!1!==e.getPrivate("focusable")&&(e.height()||e.width())?("-1"!=t.getAttribute("tabindex")&&t.setAttribute("tabindex",""+this.tabindex),t.removeAttribute("aria-hidden")):(t.removeAttribute("tabindex"),t.setAttribute("aria-hidden","true"))}_makeFocusElement(e,t){if(t.getPrivate("focusElement")||1==this._a11yD)return;const i=document.createElement("div");"tooltip"!=t.get("role")&&(i.tabIndex=this.tabindex),i.style.position="absolute",u.Dt(i,!1);const s=[];t.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(t),s.push(u.q2(i,"focus",e=>{this._handleFocus(e)})),s.push(u.q2(i,"blur",e=>{this._handleBlur(e)})),this._moveFocusElement(e,t)}_removeFocusElement(e){if(1==this._a11yD)return;d.TF(this._tabindexes,e);const t=e.getPrivate("focusElement");if(t){this._focusElementContainer.removeChild(t.dom),d.__(t.disposers,e=>{e.dispose()})}}_hideFocusElement(e){if(1==this._a11yD)return;e.getPrivate("focusElement").dom.style.display="none"}_moveFocusElement(e,t){if(1==this._a11yD)return;const i=this._focusElementContainer,s=t.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[e])return;const a=this._focusElementContainer.children[e+1];a?i.insertBefore(s,a):i.append(s)}_positionFocusElement(e){if(1==this._a11yD||null==e)return;const t=e.globalBounds();let i=t.right==t.left?e.width():t.right-t.left,s=t.top==t.bottom?e.height():t.bottom-t.top;const a=void 0!==this._settings.focusPadding?this._settings.focusPadding:2;let r=t.left-a,n=t.top-a;i<0&&(r+=i,i=Math.abs(i)),s<0&&(n+=s,s=Math.abs(s));const o=e.getPrivate("focusElement").dom;o.style.top=n+"px",o.style.left=r+"px",o.style.width=i+2*a+"px",o.style.height=s+2*a+"px"}_getSpriteByFocusElement(e){let t;return d.FY(this._tabindexes,(i,s)=>i.getPrivate("focusElement").dom!==e||(t=i,!1)),t}_handleFocus(e){if(1==this._a11yD)return;const t=this._getSpriteByFocusElement(e.target);t&&(t.isVisibleDeep()?(this._positionFocusElement(t),this._focusedSprite=t,t.events.isEnabled("focus")&&t.events.dispatch("focus",{type:"focus",originalEvent:e,target:t})):this._focusNext(e.target,this._isShift?-1:1))}_focusNext(e,t,i){if(1==this._a11yD)return;const s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(",")));let a=s.indexOf(e)+t;a<0?a=s.length-1:a>=s.length&&(a=0);const r=s[a];if(i&&-1==t){const e=this._getSpriteByFocusElement(r);if(e&&e.get("focusableGroup")==i)return void this._focusNext(r,t)}r.focus()}_handleBlur(e){if(1==this._a11yD)return;const t=this._focusedSprite;t&&!t.isDisposed()&&t.events.isEnabled("blur")&&t.events.dispatch("blur",{type:"blur",originalEvent:e,target:t}),this._focusedSprite=void 0}updateTooltip(e){if(1==this._a11yD)return;const t=u.Kq(e._getText());let i=e.getPrivate("tooltipElement");"tooltip"==e.get("role")&&""!=t?(i||(i=this._makeTooltipElement(e)),i.innerHTML!=t&&(i.innerHTML=t),i.setAttribute("aria-hidden",e.isVisibleDeep()?"false":"true")):i&&(i.remove(),e.removePrivate("tooltipElement"))}_makeTooltipElement(e){const t=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",
12i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",u.Dt(i,!1),this._decorateFocusElement(e,i),t.append(i),e.setPrivate("tooltipElement",i),i}_removeTooltipElement(e){if(1==this._a11yD)return;const t=e.getPrivate("tooltipElement");if(t){const e=t.parentElement;e&&e.removeChild(t)}}_invalidateAccessibility(e){if(1==this._a11yD)return;this._focusElementDirty=!0;const t=e.getPrivate("focusElement");e.get("focusable")?t&&(this._decorateFocusElement(e),this._positionFocusElement(e)):t&&this._removeFocusElement(e)}focused(e){return this._focusedSprite===e}documentPointToRoot(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),s=i.width/t.width,a=i.height/t.height;return{x:(e.x-t.left)*s,y:(e.y-t.top)*a}}rootPointToDocument(e){const t=this._getRealSize(),i=this._getCalculatedSize(t),s=i.width/t.width,a=i.height/t.height;return{x:e.x/s+t.left,y:e.y/a+t.top}}addDisposer(e){return this._disposers.push(e),e}_updateComputedStyles(){const e=window.getComputedStyle(this.dom);let t="";w.__(e,(e,i)=>{P.Kg(e)&&e.match(/^font/)&&(t+=i)});const i=t!=this._fontHash;return i&&(this._fontHash=t),i}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(e){e instanceof a.m?e.children.each(e=>{this._invalidateLabelBounds(e)}):e instanceof r.E&&e.markDirtyBounds()}_hasLicense(){for(let e=0;e<Ae.u5.licenses.length;e++)if(Ae.u5.licenses[e].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(e){this._renderer.debugGhostView=e}set tapToActivate(e){this._renderer.tapToActivate=e}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(e){this._renderer.tapToActivateTimeout=e}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(e){const t=this._htmlElementContainer,i=document.createElement("div");e.setPrivate("htmlElement",i);let s,a,r=!1;return e._walkParents(e=>{if(e.get("verticalScrollbar"))return r=!0,s=e,!1}),r&&(a=document.createElement("div"),e.setPrivate("htmlElementWrapper",a),e.setPrivate("wrapperContainer",s),a.style.position="absolute",a.style.overflow="hidden",a.style.boxSizing="border-box",a.style.top="0px",a.style.left="0px",a.style.width="100%",a.style.height="100%",s.events.on("boundschanged",()=>{this._positionHTMLElement(e)})),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",u.Dt(i,e.get("interactive",!1)),e.events.isEnabled("click")&&(u.Dt(i,!0),this._disposers.push(u.q2(i,"click",t=>{const i=this._renderer.getEvent(t);e.events.dispatch("click",{type:"click",originalEvent:i.event,point:i.point,simulated:!1,target:e})}))),this._positionHTMLElement(e),r?(a.append(i),t.append(a)):t.append(i),d.JJ(this._htmlEnabledContainers,e),i}_positionHTMLElements(){d.__(this._htmlEnabledContainers,e=>{this._positionHTMLElement(e)})}_positionHTMLElement(e){const t=e.getPrivate("htmlElementWrapper");if(t){const i=e.getPrivate("wrapperContainer");if(i){const e=i.globalBounds();t.style.clipPath="rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"}}const i=e.getPrivate("htmlElement");if(i){const t=["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"];d.__(t,t=>{const s=e.get(t);i.style[t]=s?s+"px":""});const s=["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"];d.__(s,t=>{const s=e.get(t);s?"fontSize"!=t||P.Kg(s)?i.style[t]=s+"":i.style[t]=s+"px":i.style[t]=""});const a=e.compositeScale()||1,r=e.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";const n=e.compositeOpacity();setTimeout(()=>{i.style.opacity=n+""},10);const o=e.isVisibleDeep();o&&(i.style.display="block");let l={x:e.x()+e.get("dx",0),y:e.y()+e.get("dy",0)};e.parent&&(l=e.parent.toGlobal(l)),i.style.top=l.y+"px",i.style.left=l.x+"px";const h=e.get("width"),u=e.get("height");let c=0,g=0;if(h&&(c=e.width()),u&&(g=e.height()),!h||!u){i.style.position="fixed",i.style.width="",i.style.height="";const t=i.getBoundingClientRect();i.style.position="absolute",h||(c=t.width),u||(g=t.height);
12let s=c/a,r=g/a,n=e.get("centerX",0),o=e.get("centerY",0),l=0,d=0,p=0,_=0;n instanceof B.QE?(l=-n.value*s,d=(1-n.value)*s):(l=-n,d=s-n),o instanceof B.QE?(p=-o.value*r,_=(1-o.value)*r):(p=-o,_=r-o),e._localBounds={left:l,right:d,top:p,bottom:_};let m=e._adjustedLocalBounds,b=e._display.getAdjustedBounds(e._localBounds);e._adjustedLocalBounds=b,m.left===b.left&&m.right===b.right&&m.top===b.top&&m.bottom===b.bottom||e.markDirtyBounds()}c>0&&(i.style.minWidth=c+"px"),g>0&&(i.style.minHeight=g+"px"),o&&0!=n||(i.style.display="none");const p=e.get("centerX",0),_=(0,B._3)(p)?p.percent+"%":p+"px",m=e.get("centerY",0),b=(0,B._3)(m)?m.percent+"%":m+"px";(p||m)&&(i.style.transform="translate(-"+_+", -"+b+")"+i.style.transform),1!=a&&(i.style.transform+="scale("+a+")"),0!=r&&(i.style.transform+=" rotate("+r+"deg)"),""!=i.style.transform&&(i.style.transformOrigin=_+" "+b)}}_setHTMLContent(e,t){let i=e.getPrivate("htmlElement");i||(i=this._makeHTMLElement(e),this.autoResize||this.resize()),i.innerHTML!=t&&(i.innerHTML=t)}_removeHTMLContent(e){const t=e.getPrivate("htmlElementWrapper"),i=e.getPrivate("htmlElement");t?(this._htmlElementContainer.removeChild(t),e.removePrivate("htmlElement"),e.removePrivate("htmlElementWrapper"),e.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),e.removePrivate("htmlElement"),e.removePrivate("wrapperContainer")),d.TF(this._htmlEnabledContainers,e)}}},72971:(e,t,i)=>{function s(e){return Object.keys(e)}function a(e,t){return s(e).sort(t)}function r(e){return Object.assign({},e)}function n(e,t){s(e).forEach(i=>{t(i,e[i])})}function o(e,t){for(let i in e)if(l(e,i)&&!t(i,e[i]))break}function l(e,t){return{}.hasOwnProperty.call(e,t)}i.d(t,{C:()=>r,FY:()=>o,HP:()=>s,M2:()=>a,__:()=>n})},73635:(e,t,i)=>{i.d(t,{u:()=>u,s:()=>d});var s=i(15215),a=i(34647),r=i(51947),n=i(20100);class o extends n.B8{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,i){this.processor&&this.processor.processRow(i),super._onSetIndex(e,t,i)}}var l=i(98379),h=i(72971);class d extends a.wB{constructor(e,t,i){super(i),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}}class u extends r.m{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new o}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
12),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll(e=>{const t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,"clear"===e.type)l.__(t,e=>{e.dispose()}),t.length=0,this._onDataClear();else if("push"===e.type){const i=new d(this,e.newValue,this._makeDataItem(e.newValue));t.push(i),this.processDataItem(i)}else if("setIndex"===e.type){const i=t[e.index],s=this._makeDataItem(e.newValue);i.bullets&&0==i.bullets.length&&(i.bullets=void 0),h.HP(s).forEach(e=>{i.animate({key:e,to:s[e],duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})}),i.dataContext=e.newValue}else if("insertIndex"===e.type){const i=new d(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,i),this.processDataItem(i)}else if("removeIndex"===e.type){t[e.index].dispose(),t.splice(e.index,1)}else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");{const i=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,i)}}this._afterDataChange()}))}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},l.__(this.valueFields,e=>{this.get(e+"Field")&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})})),this.fields&&(this._fields=[],this._fieldsF={},l.__(this.fields,e=>{this.get(e+"Field")&&(this._fields.push(e),this._fieldsF[e]=e+"Field")}))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){const t={};return this._valueFields&&l.__(this._valueFields,i=>{const s=this.get(this._valueFieldsF[i].fieldKey);t[i]=e[s],t[this._valueFieldsF[i].workingKey]=t[i]}),this._fields&&l.__(this._fields,i=>{const s=this.get(this._fieldsF[i]);t[i]=e[s]}),t}makeDataItem(e,t){let i=new d(this,t,e);return this.processDataItem(i),i}pushDataItem(e,t){const i=this.makeDataItem(e,t);return this._mainDataItems.push(i),i}disposeDataItem(e){}showDataItem(e,t){return(0,s.sH)(this,void 0,void 0,function*(){e.set("visible",!0)})}hideDataItem(e,t){return(0,s.sH)(this,void 0,void 0,function*(){e.set("visible",!1)})}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){const e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}}Object.defineProperty(u,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"}),Object.defineProperty(u,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.m.classNames.concat([u.className])})},77742:(e,t,i)=>{i.d(t,{Bj:()=>c});var s=i(29799),a=i(97529),r=i(98379),n=i(72971),o=i(83460);function l(e){n.__(e,(e,t)=>{o.Gv(t)&&"function"==typeof t.dispose&&(t.enableDispose=!0,t.dispose())})}class h{constructor(e,t,i){Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_name",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._name=e,this._template=t,this._settings=i}_dispose(){l(this._settings)}get(e,t){const i=this._settings[e];return void 0!==i?i:t}set(e,t){this._settings[e]=t,this._template._stateChanged(this._name)}remove(e){delete this._settings[e],this._template._stateChanged(this._name)}setAll(e){n.HP(e).forEach(t=>{this._settings[t]=e[t]}),this._template._stateChanged(this._name)}_apply(e,t){n.__(this._settings,(i,s)=>{t[i]||e._userSettings[i]||(t[i]=!0,e.setRaw(i,s))})}}class d{constructor(e){Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._template=e}_dispose(){n.__(this._states,(e,t)=>{t._dispose()})}lookup(e){return this._states[e]}create(e,t){const i=this._states[e];if(i)return i.setAll(t),i;{const i=new h(e,this._template,t);return this._states[e]=i,this._template._stateChanged(e),i}}remove(e){delete this._states[e],this._template._stateChanged(e)}_apply(e,t){n.__(this._states,(i,s)=>{let a=t.states[i];null==a&&(a=t.states[i]={});const r=e.states.create(i,{});s._apply(r,a)})}}class u{constructor(){Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}})}add(e,t){let i=this._callbacks[e];return void 0===i&&(i=this._callbacks[e]=[]),i.push(t),new a.W_(()=>{r.dm(i,t),0===i.length&&delete this._callbacks[e]})}remove(e){void 0!==this._callbacks[e]&&delete this._callbacks[e]}_apply(e){const t=[];return n.__(this._callbacks,(i,s)=>{r.__(s,s=>{t.push(e.adapters.add(i,s))})}),new a.ZT(t)}}class c{constructor(e,t){if(Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entities",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new d(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new u}
12),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new s.Q}),Object.defineProperty(this,"setup",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e}static new(e){return new c(e,!0)}_dispose(){l(this._settings),l(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(e,t){this._checkDisposed();const i=this._settings[e];return void 0!==i?i:t}setRaw(e,t){this._checkDisposed(),this._settings[e]=t}set(e,t){this._checkDisposed(),this._settings[e]!==t&&(this.setRaw(e,t),this._entities.forEach(i=>{i._setTemplateProperty(this,e,t)}))}remove(e){this._checkDisposed(),e in this._settings&&(delete this._settings[e],this._entities.forEach(t=>{t._removeTemplateProperty(e)}))}removeAll(){this._checkDisposed(),n.__(this._settings,(e,t)=>{this.remove(e)})}getPrivate(e,t){this._checkDisposed();const i=this._privateSettings[e];return void 0!==i?i:t}setPrivateRaw(e,t){return this._checkDisposed(),this._privateSettings[e]=t,t}setPrivate(e,t){return this._checkDisposed(),this._privateSettings[e]!==t&&(this.setPrivateRaw(e,t),this._entities.forEach(i=>{i._setTemplatePrivateProperty(this,e,t)})),t}removePrivate(e){this._checkDisposed(),e in this._privateSettings&&(delete this._privateSettings[e],this._entities.forEach(t=>{t._removeTemplatePrivateProperty(e)}))}setAll(e){this._checkDisposed(),n.__(e,(e,t)=>{this.set(e,t)})}on(e,t){this._checkDisposed();let i=this._settingEvents[e];return void 0===i&&(i=this._settingEvents[e]=[]),i.push(t),new a.W_(()=>{r.dm(i,t),0===i.length&&delete this._settingEvents[e]})}onPrivate(e,t){this._checkDisposed();let i=this._privateSettingEvents[e];return void 0===i&&(i=this._privateSettingEvents[e]=[]),i.push(t),new a.W_(()=>{r.dm(i,t),0===i.length&&delete this._privateSettingEvents[e]})}_apply(e,t){this._checkDisposed();const i=[];return n.__(this._settingEvents,(t,s)=>{r.__(s,s=>{i.push(e.on(t,s))})}),n.__(this._privateSettingEvents,(t,s)=>{r.__(s,s=>{i.push(e.onPrivate(t,s))})}),this.states._apply(e,t),i.push(this.adapters._apply(e)),i.push(e.events.copyFrom(this.events)),new a.ZT(i)}_setObjectTemplate(e){this._checkDisposed(),this._entities.push(e)}_removeObjectTemplate(e){r.TF(this._entities,e)}_stateChanged(e){this._checkDisposed(),this._entities.forEach(t=>{t._applyStateByKey(e)})}}},78135:(e,t,i)=>{i.d(t,{Ao:()=>j,Bq:()=>D,Dn:()=>h,Dt:()=>f,FZ:()=>k,Ge:()=>d,Ih:()=>G,JY:()=>x,Jx:()=>R,K:()=>v,K6:()=>z,Kq:()=>M,L_:()=>L,MI:()=>K,ND:()=>Y,Nr:()=>E,Nz:()=>r,O:()=>B,PE:()=>W,SX:()=>A,U3:()=>y,Uq:()=>V,X2:()=>I,XC:()=>u,YL:()=>H,Zn:()=>F,_Q:()=>C,a:()=>N,ay:()=>b,eC:()=>p,fZ:()=>O,gV:()=>T,gd:()=>_,kE:()=>Q,kH:()=>g,n_:()=>o,q2:()=>n,tr:()=>P,w1:()=>w,wN:()=>c,wt:()=>m,xY:()=>l,xp:()=>S});var s=i(83460),a=(i(98379),i(72971),i(97529));function r(e){e.parentNode&&e.parentNode.removeChild(e)}function n(e,t,i,s){return e.addEventListener(t,i,s||!1),new a.W_(()=>{e.removeEventListener(t,i,s||!1)})}function o(e){return n(window,"resize",t=>{e()})}function l(e){switch(e){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function h(e){return e.pointerId||0}function d(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let e=document.createElement("button");e.style.position="fixed",e.style.top="0px",e.style.left="-10000px",document.body.appendChild(e),e.focus(),e.blur(),document.body.removeChild(e)}}function u(e){e&&e.focus()}function c(e){if(l("pointerevents"))return e;if(l("touchevents"))switch(e){case"pointerover":case"pointerdown":return"touchstart";case"pointerout":case"pointerleave":case"pointerup":return"touchend";case"pointermove":return"touchmove";
vendor: 1,125 bytes, line 12
12case"click":return"click";case"dblclick":return"dblclick"}else if(l("mouseevents"))switch(e){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return e}function g(e){if("undefined"!=typeof Touch&&e instanceof Touch)return!0;if("undefined"!=typeof PointerEvent&&e instanceof PointerEvent&&null!=e.pointerType)switch(e.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(e instanceof MouseEvent)}else if(null!=e.type&&e.type.match(/^mouse/))return!1;return!0}function p(e,t,i){e.style[t]=i}function _(e,t){return e.style[t]}function m(e){if(e.composedPath){const t=e.composedPath();return 0===t.length?null:t[0]}return e.target}function b(e,t){return e.target&&function(e,t){let i=t;for(;;){if(e===i)return!0;if(null===i.parentNode){if(null==i.host)return!1;i=i.host}else i=i.parentNode}}(t.root.dom,e.target)}function f(e,t){e.style.pointerEvents=t?"auto":"none"}
12function v(e){if(void 0!==e.key)return e.key;switch(e.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+e.keyCode}a.O_;a.O_;function y(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document?1:void 0}function x(e,t){return s.Et(e)?e:null!=e&&s.Et(e.value)&&s.Et(t)?t*e.value:0}function w(e){let t=(""+e).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0}function P(e,t=0,i="0"){return"string"!=typeof e&&(e=e.toString()),t>e.length?Array(t-e.length+1).join(i)+e:e}function D(e){return function(e){return e.replace(/^[\s]*/,"")}(function(e){return e.replace(/[\s]*$/,"")}(e))}function k(e,t,i=!1,s="..."){if(e.length>t){let a=t-1;for(;a>=0&&e.charAt(a).match(/\w/);)a--;return a>=0&&0==i?e.substring(0,a+1)+"...":e.substring(0,t)+s}return e}function T(e){if(void 0===e)return"string";let t=(e=(e=(e=e.toLowerCase().replace(/^\[[^\]]*\]/,"")).replace(/\[[^\]]+\]/,"")).trim()).match(/\/(date|number|duration)$/);return t?t[1]:"number"===e?"number":"date"===e?"date":"duration"===e?"duration":e.match(/[#0]/)?"number":e.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function O(e){return e.replace(/\/(date|number|duration)$/i,"")}function M(e){return e?e.replace(/<[^>]*>/g,""):e}function S(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function A(e){const t=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,i=/([^اأدذرزو]*[اأدذرزو])/gi;let s=e.split(/(\s+)/),a=[];return s.forEach(e=>{if(e.match(/^\s+$/))(e=" ")&&(e=" "),a.push(e);else if(t.test(e)){let t=e.split(i).filter(e=>""!==e);a=a.concat(t)}else a=a.concat([...e])}),a}function C(e,t=!1){const i=new Date(e.getFullYear(),0,0),s=e.getTime()-i.getTime()+60*(i.getTimezoneOffset()-e.getTimezoneOffset())*1e3;return Math.floor(s/864e5)}function E(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);const a=new Date(Date.UTC(i.getUTCFullYear(),0,1));return Math.ceil(((i.getTime()-a.getTime())/864e5+1)/7)}function j(e,t=!1){const i=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate())),s=i.getUTCDay()||7;i.setUTCDate(i.getUTCDate()+4-s);return new Date(Date.UTC(i.getUTCFullYear(),0,1)).getFullYear()}function L(e,t=!1){const i=E(new Date(e.getFullYear(),e.getMonth(),1),t);let s=E(e,t);return 1==s&&(s=53),s-i+1}function I(e,t,i=1,s=!1){let a=new Date(t,0,4,0,0,0,0);return s&&a.setUTCFullYear(t),7*e+i-((a.getDay()||7)+3)}function R(e,t){return e>12?e-=12:0===e&&(e=12),null!=t?e+(t-1):e}function B(e,t=!1,i=!1,s=!1,a){if(s)return t?"Coordinated Universal Time":"UTC";if(a){const i=e.toLocaleString("en-US",{timeZone:a});return D(e.toLocaleString("en-US",{timeZone:a,timeZoneName:t?"long":"short"}).substr(i.length))}let r=e.toLocaleString("UTC"),n=e.toLocaleString("UTC",{timeZoneName:t?"long":"short"}).substr(r.length);return!1===i&&(n=n.replace(/ (standard|daylight|summer|winter) /i," ")),D(n)}function F(e,t){const i=t||new Date(Date.UTC(2012,0,1,0,0,0,0)),s=new Date(i.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(i.toLocaleString("en-US",{timeZone:e})).getTime()-s.getTime())/6e4*-1}function Y(e){return e.charAt(0).toUpperCase()+e.slice(1)}function H(e){let t,i,s,a=e.h,r=e.s,n=e.l;if(0==r)t=i=s=n;else{let e=function(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},o=n<.5?n*(1+r):n+r-n*r,l=2*n-o;t=e(l,o,a+1/3),i=e(l,o,a),s=e(l,o,a-1/3)}return{r:Math.round(255*t),g:Math.round(255*i),b:Math.round(255*s)}}function z(e){let t=e.r/255,i=e.g/255,s=e.b/255,a=Math.max(t,i,s),r=Math.min(t,i,s),n=0,o=0,l=(a+r)/2;if(a===r)n=o=0;else{let e=a-r;switch(o=l>.5?e/(2-a-r):e/(a+r),a){case t:n=(i-s)/e+(i<s?6:0);break;case i:n=(s-t)/e+2;break;case s:n=(t-i)/e+4}n/=6}return{h:n,s:o,l}}function N(e,t){return e?{r:Math.max(0,Math.min(255,e.r+X(e.r,t))),g:Math.max(0,Math.min(255,e.g+X(e.g,t))),b:Math.max(0,Math.min(255,e.b+X(e.b,t))),a:e.a}:e}function X(e,t){let i=t>0?255-e:e;return Math.round(i*t)}function V(e,t){if(e){let i=X(Math.min(Math.max(e.r,e.g,e.b),230),t);return{r:Math.max(0,Math.min(255,Math.round(e.r+i))),g:Math.max(0,Math.min(255,Math.round(e.g+i))),b:Math.max(0,Math.min(255,Math.round(e.b+i))),a:e.a}}return e}function U(e){return(299*e.r+587*e.g+114*e.b)/1e3>=128}function G(e,t){if(void 0===e||1==t)return e;let i=z(e);return i.s=t,H(i)}function W(e,t={r:255,g:255,b:255},i={r:255,g:255,b:255}){let s=t,a=i;return U(i)&&(s=i,a=t),U(e)?a:s}function Q(e,t){return e||(e=[]),[...e,...t].filter((e,t,i)=>i.indexOf(e)===t)}function K(e,t){return!!t&&(e.left==t.left&&(e.right==t.right&&(e.top==t.to
12p&&e.bottom==t.bottom)))}},80937:(e,t,i)=>{i.d(t,{Q1:()=>l,yW:()=>o});var s=i(92420),a=i(78135),r=i(83460);function n(e){return"#"===e[0]&&(e=e.substr(1)),3==e.length&&(e=e[0].repeat(2)+e[1].repeat(2)+e[2].repeat(2)),parseInt(e,16)}function o(e){return l.fromAny(e)}class l{constructor(e){Object.defineProperty(this,"_hex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._hex=0|e}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return 255&this._hex}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+a.tr(this.r.toString(16),2)+a.tr(this.g.toString(16),2)+a.tr(this.b.toString(16),2)}toHSL(e=1){return a.K6({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,t,i){const s=a.YL({h:e,s:t,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(e){return new l(e)}static fromRGB(e,t,i){return new l((0|i)+(t<<8)+(e<<16))}static fromString(e){return new l(n(e))}static fromCSS(e){return new l(function(e){let t=(e=e.replace(/[ ]/g,"")).match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(t)t.push("1");else if(t=e.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!t)return 0;let i="";for(let e=1;e<=3;e++){let s=parseInt(t[e]).toString(16);1==s.length&&(s="0"+s),i+=s}return n(i)}(e))}static fromAny(e){if(r.Kg(e)){if("#"==e[0])return l.fromString(e);if("rgb"==e.substr(0,3))return l.fromCSS(e)}else{if(r.Et(e))return l.fromHex(e);if(e instanceof l)return l.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,t,i){const s=a.PE({r:e.r,g:e.g,b:e.b},t?{r:t.r,g:t.g,b:t.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(e,t,i,a="rgb"){if("hsl"==a){const a=t.toHSL(),r=i.toHSL();return l.fromHSL((0,s.y1)(e,a.h,r.h),(0,s.y1)(e,a.s,r.s),(0,s.y1)(e,a.l,r.l))}return l.fromRGB((0,s.y1)(e,t.r,i.r),(0,s.y1)(e,t.g,i.g),(0,s.y1)(e,t.b,i.b))}static lighten(e,t){const i=a.a({r:e.r,g:e.g,b:e.b},t);return l.fromRGB(i.r,i.g,i.b)}static brighten(e,t){const i=a.Uq({r:e.r,g:e.g,b:e.b},t);return l.fromRGB(i.r,i.g,i.b)}static saturate(e,t){const i=a.Ih({r:e.r,g:e.g,b:e.b},t);return l.fromRGB(i.r,i.g,i.b)}}},83460:(e,t,i)=>{function s(e){return Number(e)!==e}function a(e){if(null!=e&&!d(e)){let t=Number(e);return s(t)&&h(e)&&""!=e&&e.match(/[0-9]+/)?a(e.replace(/[^0-9.\-]+/g,"")):t}return e}function r(e){if(l(e))return new Date(e);if(d(e))return new Date(e);{let t=Number(e);return d(t)?new Date(t):new Date(e)}}function n(e){if(s(e))return"NaN";if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(0===e&&1/e==-1/0)return"-0";let t=e<0;e=Math.abs(e);let i,a=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+e),r=a[1],n=a[2]||"";if(void 0===a[3])i=""===n?r:r+"."+n;else{let t=+a[3];if(e<1){i="0."+o("0",t-1)+r+n}else{let e=t-n.length;i=0===e?r+n:e<0?r+n.slice(0,e)+"."+n.slice(e):r+n+o("0",e)}}return t?"-"+i:i}function o(e,t){return new Array(t+1).join(e)}function l(e){return"[object Date]"===function(e){return{}.toString.call(e)}(e)}function h(e){return"string"==typeof e}function d(e){return"number"==typeof e&&Number(e)==e}function u(e){return"object"==typeof e&&null!==e}i.d(t,{$P:()=>l,Et:()=>d,Gv:()=>u,Kg:()=>h,Kx:()=>c,Ro:()=>a,ay:()=>r,cb:()=>g,um:()=>n,yr:()=>s});const c="__§§§__",g="__§§§§__"},91728:(e,t,i)=>{i.d(t,{W:()=>h});var s=i(34647);class a extends s.wC{_afterNew(){super._afterNewApplyThemes()}getFill(e){return{addColorStop:(e,t)=>{}}}_changed(){super._changed()}getBounds(e){const t=this.get("target");if(t){let i=t.globalBounds();const s=e.toLocal({x:i.left,y:i.top}),a=e.toLocal({x:i.right,y:i.top}),r=e.toLocal({x:i.right,y:i.bottom}),n=e.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,a.x,r.x,n.x),top:Math.min(s.y,a.y,r.y,n.y),right:Math.max(s.x,a.x,r.x,n.x),bottom:Math.max(s.y,a.y,r.y,n.y)}}return e._display.getLocalBounds()}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Gradient"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.wC.classNames.concat([a.className])});var r=i(80937),n=i(98379),o=i(83460),l=i(21050);
12class h extends a{getFill(e){const t=this.get("rotation",0);let i=this.getBounds(e),s=i.left||0,a=i.right||0,h=i.top||0,d=i.bottom||0,u=l.gn(t),c=l.F8(t),g=u*(a-s),p=c*(d-h);0==g&&(g=1),0==p&&(p=1);let _=Math.max(g,p);const m=this._root._renderer.createLinearGradient(s,h,s+_*u,h+_*c),b=this.get("stops");if(b){let e=0;n.__(b,t=>{let i=t.offset;o.Et(i)||(i=e/(b.length-1));let s=t.opacity;o.Et(s)||(s=1);let a=t.color;if(a){const e=t.lighten;e&&(a=r.Q1.lighten(a,e));const n=t.brighten;n&&(a=r.Q1.brighten(a,n)),m.addColorStop(i,"rgba("+a.r+","+a.g+","+a.b+","+s+")")}e++})}return m}}Object.defineProperty(h,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LinearGradient"}),Object.defineProperty(h,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.classNames.concat([h.className])})},91806:(e,t,i)=>{i.d(t,{b:()=>n});var s=i(95926),a=i(83460),r=i(16611);class n extends s.P{updateContainer(e){let t=e.get("paddingLeft",0),i=e.innerWidth(),n=0;(0,s.l)(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof r.QE){n+=t.value;let s=i*t.value,a=e.get("minWidth",e.getPrivate("minWidth",-1/0));a>s&&(i-=a,n-=t.value);let r=e.get("maxWidth",e.getPrivate("maxWidth",1/0));s>r&&(i-=r,n-=t.value)}else a.Et(t)||(t=e.width()),i-=t+e.get("marginLeft",0)+e.get("marginRight",0)}}),(i<=0||i==1/0)&&(i=.1),(0,s.l)(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("width");if(t instanceof r.QE){let s=i*t.value/n-e.get("marginLeft",0)-e.get("marginRight",0),a=e.get("minWidth",e.getPrivate("minWidth",-1/0)),r=e.get("maxWidth",e.getPrivate("maxWidth",1/0));s=Math.min(Math.max(a,s),r),e.setPrivate("width",s)}else e._prevSettings.width instanceof r.QE&&e.setPrivate("width",void 0)}});let o=t;(0,s.l)(e,e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginLeft",0),s=e.get("marginRight",0),a=e.get("maxWidth"),r=t.left,n=t.right;a&&n-r>a&&(n=r+a);let l=o+i-r;e.setPrivate("x",l),o=l+n+s}else e.setPrivate("x",void 0)})}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.P.classNames.concat([n.className])})},92420:(e,t,i)=>{i.d(t,{Kh:()=>g,M9:()=>l,oA:()=>s,y1:()=>h,zR:()=>u});var s,a=i(15215),r=i(16611),n=i(80937),o=i(72971);function l(e){return(0,a.sH)(this,void 0,void 0,function*(){if(void 0!==e){const t=[];o.__(e,(e,i)=>{t.push(i.waitForStop())}),yield Promise.all(t)}})}function h(e,t,i){return t+e*(i-t)}function d(e,t,i){return e>=1?i:t}function u(e,t,i){return new r.QE(h(e,t.percent,i.percent))}function c(e,t,i){return n.Q1.interpolate(e,t,i)}function g(e,t){return"number"==typeof e&&"number"==typeof t?h:e instanceof r.QE&&t instanceof r.QE?u:e instanceof n.Q1&&t instanceof n.Q1?c:d}!function(e){e[e.Stopped=0]="Stopped",e[e.Playing=1]="Playing",e[e.Paused=2]="Paused"}(s||(s={}))},95926:(e,t,i)=>{i.d(t,{P:()=>r,l:()=>a});var s=i(34647);function a(e,t){e.get("reverseChildren",!1)?e.children.eachReverse(t):e.children.each(t)}class r extends s.wC{}Object.defineProperty(r,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"}),Object.defineProperty(r,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.wC.classNames.concat([r.className])})},97064:(e,t,i)=>{i.d(t,{I:()=>P});var s=i(15215),a=i(73635),r=i(20100),n=i(80937),o=i(92420),l=i(16611),h=i(51947),d=i(97716),u=i(98379),c=i(83460),g=i(98849);class p extends a.u{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseSeriesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new r.B8}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:h.m.new(this._root,{width:l.Q2,height:l.Q2,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(e=>{if("clear"===e.type)this._handleBullets(this.dataItems);else if("push"===e.type)this._handleBullets(this.dataItems);else if("setIndex"===e.type)this._handleBullets(this.dataItems);else if("insertIndex"===e.type)this._handleBullets(this.dataItems);else if("removeIndex"===e.type)this._handleBullets(this.dataItems);else{if("moveIndex"!==e.type)throw new Error("Unknown IListEvent type");this._handleBullets(this.dataItems)}}))}
12_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("endIndex",e),e)}_handleBullets(e){u.__(e,e=>{const t=e.bullets;t&&(u.__(t,e=>{e.dispose()}),e.bullets=void 0)}),this.markDirtyValues()}getDataItemById(e){return u.I6(this.dataItems,t=>t.get("id")==e)}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each(t=>{this._makeBullet(e,t)}))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,i){const s=t(this._root,this,e);return s&&(s._index=i,this._makeBulletReal(e,s)),s}_makeBulletReal(e,t){let i=t.get("sprite");i&&(i._setDataItem(e),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.startIndex(),t=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){const e=this.getPrivate("baseValueSeries");e&&this._disposers.push(e.onPrivate("startIndex",()=>{this._baseSeriesDirty=!0,this.markDirtyValues()}))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,this.dataItems.length),this._aggregatesCalculated=!0,0!=e&&(this._psi=void 0))),this._psi==e&&this._pei==t&&!this.isPrivateDirty("adjustedStartIndex")||this._selectionAggregatesCalculated||(0===e&&t===this.dataItems.length&&this._aggregatesCalculated||this._calculateAggregates(e,t),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let e=this.get("tooltip");e&&(e.hide(0),e.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let e;const t=this.get("legendDataItem");if(t&&(e=t.get("markerRectangle"),e&&this.isVisible())){if(this.isDirty("stroke")){let t=this.get("stroke");e.set("stroke",t)}if(this.isDirty("fill")){let t=this.get("fill");e.set("fill",t)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let e=this.startIndex(),t=this.endIndex();t<this.dataItems.length&&t++;for(let i=e;i<t;i++){let e=this.dataItems[i];e.bullets||this._makeBullets(e)}}}_handleRemoved(){}_adjustStartIndex(e){return e}_calculateAggregates(e,t){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");const s={},a={},r={},n={},o={},l={},h={},d={},c={};u.__(i,e=>{s[e]=0,a[e]=0,r[e]=0}),u.__(i,i=>{let u=i+"Change",g=i+"ChangePercent",p=i+"ChangePrevious",_=i+"ChangePreviousPercent",m=i+"ChangeSelection",b=i+"ChangeSelectionPercent",f="valueY";"valueX"!=i&&"openValueX"!=i&&"lowValueX"!=i&&"highValueX"!=i||(f="valueX");const v=this.getPrivate("baseValueSeries"),y=this.getPrivate("adjustedStartIndex",e);for(let x=y;x<t;x++){const t=this.dataItems[x];if(t){let y=t.get(i);null!=y&&(r[i]++,s[i]+=y,a[i]+=Math.abs(y),d[i]=s[i]/r[i],(n[i]>y||null==n[i])&&(n[i]=y),(o[i]<y||null==o[i])&&(o[i]=y),h[i]=y,null==l[i]&&(l[i]=y,c[i]=y,v&&(l[f]=v._getBase(f))),0===e&&(t.setRaw(u,y-l[f]),t.setRaw(g,(y-l[f])/l[f]*100)),t.setRaw(p,y-c[f]),t.setRaw(_,(y-c[f])/c[f]*100),t.setRaw(m,y-l[f]),t.setRaw(b,(y-l[f])/l[f]*100),c[i]=y)}}if(t<this.dataItems.length-1){const e=this.dataItems[t];if(e){let t=e.get(i);e.setRaw(p,t-c[f]),e.setRaw(_,(t-c[f])/c[f]*100),e.setRaw(m,t-l[f]),e.setRaw(b,(t-l[f])/l[f]*100)}}e>0&&e--,delete c[i];for(let t=e;t<y;t++){const e=this.dataItems[t];if(e){let t=e.get(i);null==c[i]&&(c[i]=t),null!=t&&(e.setRaw(p,t-c[f]),e.setRaw(_,(t-c[f])/c[f]*100),e.setRaw(m,t-l[f]),e.setRaw(b,(t-l[f])/l[f]*100),c[i]=t)}}}),u.__(i,e=>{this.setPrivate(e+"AverageSelection",d[e]),this.setPrivate(e+"CountSelection",r[e]),this.setPrivate(e+"SumSelection",s[e]),this.setPrivate(e+"AbsoluteSumSelection",a[e]),this.setPrivate(e+"LowSelection",n[e]),this.setPrivate(e+"HighSelection",o[e]),this.setPrivate(e+"OpenSelection",l[e]),this.setPrivate(e+"CloseSelection",h[e])}),0===e&&t===this.dataItems.length&&u.__(i,e=>{this.setPrivate(e+"Average",d[e]),this.setPrivate(e+"Count",r[e]),this.setPrivate(e+"Sum",s[e]),this.setPrivate(e+"AbsoluteSum",a[e]),this.setPrivate(e+"Low",n[e]),this.setPrivate(e+"High",o[e]),this.setPrivate(e+"Open",l[e]),this.setPrivate(e+"Close",h[e])})}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));const e=this.get("heatRules");
12if(this._valuesDirty&&e&&e.length>0&&u.__(e,e=>{const t=e.minValue||this.getPrivate(e.dataField+"Low")||0,i=e.maxValue||this.getPrivate(e.dataField+"High")||0;u.__(e.target._entities,s=>{const a=s.dataItem.get(e.dataField);if(!c.Et(a)){e.neutral&&s.set(e.key,e.neutral);const t=s.states;if(t){const i=t.lookup("default");i&&e.neutral&&i.set(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,s,t,i,a);else{let r,h;r=e.logarithmic?(Math.log(a)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E):(a-t)/(i-t),!c.Et(a)||c.Et(r)&&Math.abs(r)!=1/0||(r=.5),c.Et(e.min)?h=e.min+(e.max-e.min)*r:e.min instanceof n.Q1?h=n.Q1.interpolate(r,e.min,e.max):e.min instanceof l.QE&&(h=(0,o.zR)(r,e.min,e.max)),s.set(e.key,h);const d=s.states;if(d){const t=d.lookup("default");t&&t.set(e.key,h)}}})}),this.get("visible")){let e=this.dataItems.length,t=this.startIndex(),i=this.endIndex();i<e&&i++,t>0&&t--;for(let e=0;e<t;e++)this._hideBullets(this.dataItems[e]);for(let e=t;e<i;e++)this._positionBullets(this.dataItems[e]);for(let t=i;t<e;t++)this._hideBullets(this.dataItems[t])}}_positionBullets(e){e.bullets&&u.__(e.bullets,e=>{this._positionBullet(e);const t=e.get("sprite");e.get("dynamic")&&(t&&(t._markDirtyKey("fill"),t.markDirtySize()),t instanceof h.m&&t.walkChildren(e=>{e._markDirtyKey("fill"),e.markDirtySize(),e instanceof d.J&&e.text.markDirtyText()})),t instanceof d.J&&t.get("populateText")&&t.text.markDirtyText()})}_hideBullets(e){e.bullets&&u.__(e.bullets,e=>{let t=e.get("sprite");t&&t.setPrivate("visible",!1)})}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){const e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){const t=e.bullets;t&&(u.__(t,e=>{e.dispose()}),e.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.sH)(this,void 0,void 0,function*(){const s=[i.showDataItem.call(this,e,t)],a=e.bullets;a&&u.__(a,e=>{const i=e.get("sprite");i&&s.push(i.show(t))}),yield Promise.all(s)})}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.sH)(this,void 0,void 0,function*(){const s=[i.hideDataItem.call(this,e,t)],a=e.bullets;a&&u.__(a,e=>{const i=e.get("sprite");i&&s.push(i.hide(t))}),yield Promise.all(s)})}_sequencedShowHide(e,t){return(0,s.sH)(this,void 0,void 0,function*(){if(this.get("sequencedInterpolation"))if(c.Et(t)||(t=this.get("interpolationDuration",0)),t>0){const i=this.startIndex(),a=this.endIndex();yield Promise.all(u.Tj(this.dataItems,(r,n)=>(0,s.sH)(this,void 0,void 0,function*(){let s=t||0;(n<i-10||n>a+10)&&(s=0);let o=this.get("sequencedDelay",0)+s/(a-i);yield g.yy(o*(n-i)),e?yield this.showDataItem(r,s):yield this.hideDataItem(r,s)})))}else yield Promise.all(u.Tj(this.dataItems,t=>e?this.showDataItem(t,0):this.hideDataItem(t,0)))})}updateLegendValue(e){if(e){const t=e.get("legendDataItem");if(t){const i=t.get("valueLabel");if(i){const t=i.text;let s="";i._setDataItem(e),s=this.get("legendValueText",t.get("text","")),i.set("text",s),t.markDirtyText()}const s=t.get("label");if(s){const t=s.text;let i="";s._setDataItem(e),i=this.get("legendLabelText",t.get("text","")),s.set("text",i),t.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();const e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){const t=this.dataItems[this.startIndex()];return t?t.get(e):0}}Object.defineProperty(p,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"}),Object.defineProperty(p,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:a.u.classNames.concat([p.className])});var _=i(50979),m=i(72971),b=i(78135);class f extends p{constructor(){super(...arguments),Object.defineProperty(this,"_xField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yOpenField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_xHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yLowField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_yHighField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_axesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_stackDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataSets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_mainContainerMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_x",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_y",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_bullets",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"mainContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(h.m.new(this._root,{}))}),Object.defineProperty(this,"axisRanges",{enumerable:!0,configurable:!0,writable:!0,value:new r.B8}),Object.defineProperty(this,"_skipped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_couldStackTo",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_reallyStackedTo",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_stackedSeries",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_aLocationX0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationX1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_aLocationY0",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_aLocationY1",{enumerable:!0,configurable:!0,writable:!0,value:1}),Object.defineProperty(this,"_showBullets",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueX","openValueX","lowValueX","highValueX"]}),Object.defineProperty(this,"valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:["valueY","openValueY","lowValueY","highValueY"]}),Object.defineProperty(this,"_valueXFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueXShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"__valueYShowFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}
12),Object.defineProperty(this,"_emptyDataItem",{enumerable:!0,configurable:!0,writable:!0,value:new a.s(this,void 0,{})}),Object.defineProperty(this,"_dataSetId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldX",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipFieldY",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posXDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_posYDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high"),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(e=>{if("clear"===e.type)u.__(e.oldValues,e=>{this._removeAxisRange(e)});else if("push"===e.type)this._processAxisRange(e.newValue);else if("setIndex"===e.type)this._processAxisRange(e.newValue);else if("insertIndex"===e.type)this._processAxisRange(e.newValue);else if("removeIndex"===e.type)this._removeAxisRange(e.oldValue);else{if("moveIndex"!==e.type)throw new Error("Unknown IStreamEvent type");this._processAxisRange(e.value)}})),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames()}_processAxisRange(e){const t=h.m.new(this._root,{});e.container=t,this.children.push(t),e.series=this;const i=e.axisDataItem;i.setRaw("isRange",!0);const s=i.component;if(s){s._processAxisRange(i,["range","series"]);const e=i.get("bullet");if(e){const t=e.get("sprite");t&&t.setPrivate("visible",!1)}const a=i.get("axisFill");a&&t.set("mask",a),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),m.__(this._dataSets,(e,t)=>{u.__(t,e=>{e.dispose()}),t.length=0})}_removeAxisRange(e){const t=e.axisDataItem,i=t.component;t.dispose(),u.TF(i._seriesAxisRanges,t);const s=e.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&u.__(this.valueXFields,e=>{if(this.get(e+"Field")){this._valueXFields.push(e);let t=this.get(e+"Show");this.__valueXShowFields.push(t),-1!=t.indexOf("Working")?this._valueXShowFields.push(t.split("Working")[0]):this._valueXShowFields.push(t)}}),this.valueYFields&&u.__(this.valueYFields,e=>{if(this.get(e+"Field")){this._valueYFields.push(e);let t=this.get(e+"Show");this.__valueYShowFields.push(t),-1!=t.indexOf("Working")?this._valueYShowFields.push(t.split("Working")[0]):this._valueYShowFields.push(t)}})}_dispose(){super._dispose(),this._bullets={};const e=this.chart;e&&e.series.removeValue(this),u.dm(this.get("xAxis").series,this),u.dm(this.get("yAxis").series,this)}_min(e,t){let i=(s=this.getPrivate(e),a=t,null==s?a:null==a?s:a<s?a:s);var s,a;this.setPrivate(e,i)}_max(e,t){let i=(s=this.getPrivate(e),a=t,null==s?a:null==a?s:a>s?a:s);var s,a;this.setPrivate(e,i)}_shouldMakeBullet(e){const t=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!t.inited||!i.inited)return!1;const a=this.get("minBulletDistance",0);if(a>0){let e=this.startIndex(),r=this.endIndex()-e;if(t==s){if(t.get("renderer").axisLength()/r<a/5)return!1}else if(i==s&&i.get("renderer").axisLength()/r<a/5)return!1}return null!=e.get(this._xField)&&null!=e.get(this._yField)}_makeFieldNames(){const e=this.get("xAxis"),t=this.get("yAxis"),i=e.getPrivate("name"),s=b.ND(i),a=t.getPrivate("name"),r=b.ND(a),n=e.get("renderer").getPrivate("letter"),o=t.get("renderer").getPrivate("letter"),l="open",h="low",d="high",u="Show";"ValueAxis"===e.className?(this._xField=this.get(i+n+u),this._xOpenField=this.get(l+s+n+u),this._xLowField=this.get(h+s+n+u),this._xHighField=this.get(d+s+n+u)):(this._xField=i+n,this._xOpenField=l+s+n,this._xLowField=h+s+n,this._xHighField=d+s+n),"ValueAxis"===t.className?(this._yField=this.get(a+o+u),this._yOpenField=this.get(l+r+o+u),this._yLowField=this.get(h+r+o+u),this._yHighField=this.get(d+r+o+u)):(this._yField=a+o,this._yOpenField=l+r+o,this._yLowField=h+r+o,this._yHighField=d+r+o)}_fixVC(){const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let r=0;a&&(r=.999999999999),e===i?s.set("vcy",r):(t===i||s.set("vcy",r),s.set("vcx",r))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){const e=this.get("xAxis"),t=this.get("yAxis");this.set("x",e.x()-b.JY(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0)),this.set("y",t.y()-b.JY(t.get("centerY",0),t.height())-t.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirt
12y=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();const e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis");let s;switch(this.get("tooltipPositionX")){case"open":s=this._xOpenField;break;case"low":s=this._xLowField;break;case"high":s=this._xHighField;break;default:s=this._xField}this._tooltipFieldX=s;let a;switch(this.get("tooltipPositionY")){case"open":a=this._yOpenField;break;case"low":a=this._yLowField;break;case"high":a=this._yHighField;break;default:a=this._yField}this._tooltipFieldY=a,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();const r=this.get("stacked");if(this.isDirty("stacked")&&(r?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed&&(this._dataProcessed=!0,r&&this._stack(),u.__(this.dataItems,i=>{u.__(this._valueXShowFields,e=>{let t=i.get(e);null!=t&&(r&&(t+=this.getStackedXValue(i,e)),this._min("minX",t),this._max("maxX",t))}),u.__(this._valueYShowFields,e=>{let t=i.get(e);null!=t&&(r&&(t+=this.getStackedYValue(i,e)),this._min("minY",t),this._max("maxY",t))}),e.processSeriesDataItem(i,this._valueXFields),t.processSeriesDataItem(i,this._valueYFields)}),e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&e.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&t.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)),(this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(e._groupSeriesD
vendor: 13,518 bytes, line 12
12ata(this),t._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty){let s=this.startIndex(),a=this.endIndex(),r=this.get("minBulletDistance",0);if(r>0&&i&&(i.get("renderer").axisLength()/(a-s)>r?this._showBullets=!0:this._showBullets=!1),(this._psi!=s||this._pei!=a||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;const r=this.get("vcx",1),n=this.get("vcy",1),o=this.get("stacked",!1),l=this.getPrivate("outOfSelection");if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),l)t.markDirtySelectionExtremes();else for(let e=s;e<a;e++)this.processYSelectionDataItem(this.dataItems[e],n,o);if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),l)t.markDirtySelectionExtremes();else for(let e=s;e<a;e++)this.processXSelectionDataItem(this.dataItems[e],r,o);if((i===e||!i)&&("valueYWorking"!==this.get("valueYShow")||this.get("useSelectionExtremes"))){const e=this.getPrivate("selectionMinY");null!=e&&(this.setPrivateRaw("minY",e),t.markDirtyExtremes());const i=this.getPrivate("selectionMaxY");null!=i&&(this.setPrivateRaw("maxY",i),t.markDirtyExtremes())}if((i===t||!i)&&("valueXWorking"!==this.get("valueXShow")||this.get("useSelectionExtremes"))){const i=this.getPrivate("selectionMinX");null!=i&&(this.setPrivateRaw("minX",i),t.markDirtyExtremes());const s=this.getPrivate("selectionMaxX");null!=s&&(this.setPrivateRaw("maxX",s),e.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&e.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&t.markDirtySelectionExtremes()}}}_makeRangeMask(){if(this.axisRanges.length>0){let e=this._mainContainerMask;null==e&&(e=this.children.push(_.A.new(this._root,{})),this._mainContainerMask=e,e.set("draw",(t,i)=>{const s=this.parent;if(s){const e=this._root.container.width(),a=this._root.container.height();t.moveTo(-e,-a),t.lineTo(-e,2*a),t.lineTo(2*e,2*a),t.lineTo(2*e,-a),t.lineTo(-e,-a),this.axisRanges.each(e=>{const a=e.axisDataItem.get("axisFill");if(s&&a){let e=a.get("draw");e&&e(t,i)}})}this.mainContainer._display.mask=e._display})),e.markDirty(),e._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){const e=this.chart;if(e){const t=e.series.indexOf(this);if(this._couldStackTo=[],t>0){let i;for(let s=t-1;s>=0&&(i=e.series.getIndex(s),i.get("xAxis")!==this.get("xAxis")||i.get("yAxis")!==this.get("yAxis")||i.className!==this.className||(this._couldStackTo.push(i),i.get("stacked")));s--);}this._stackDataItems()}}_unstack(){m.__(this._reallyStackedTo,(e,t)=>{delete t._stackedSeries[this.uid]}),this._reallyStackedTo={},u.__(this.dataItems,e=>{e.setRaw("stackToItemY",void 0),e.setRaw("stackToItemX",void 0)})}_handleRemoved(){const e=this.get("xAxis");e&&e._handleSeriesRemoved();const t=this.get("yAxis");t&&t._handleSeriesRemoved()}_stackDataItems(){const e=this.get("baseAxis"),t=this.get("xAxis"),i=this.get("yAxis");let s,a;e===t?(s="valueY",a="stackToItemY"):e===i&&(s="valueX",a="stackToItemX");let r=this._couldStackTo.length,n=0;const o=this.get("stackToNegative");this._reallyStackedTo={},u.__(this.dataItems,e=>{for(let t=0;t<r;t++){let i=this._couldStackTo[t],l=i.dataItems[n],h=e.get(s);if(l){let n=l.get(s);if(o){if(!c.Et(h))break;if(c.Et(n)){if(t==r-1&&e.setRaw(a,void 0),h>=0&&n>=0){e.setRaw(a,l),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}if(h<0&&n<0){e.setRaw(a,l),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}else if(c.Et(h)&&c.Et(n)){e.setRaw(a,l),this._reallyStackedTo[i.uid]=i,i._stackedSeries[this.uid]=this;break}}}n++})}processXSelectionDataItem(e,t,i){u.__(this.__valueXShowFields,s=>{let a=e.get(s);null!=a&&(i&&(a+=this.getStackedXValueWorking(e,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*t))})}processYSelectionDataItem(e,t,i){u.__(this.__valueYShowFields,s=>{let a=e.get(s);null!=a&&(i&&(a+=this.getStackedYValueWorking(e,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*t))})}getStackedYValueWorking(e,t){const i=e.get("stackToItemY");if(i){const e=i.component;return i.get(t,0)*e.get("vcy",1)+this.getStackedYValueWorking(i,t)}return 0}getStackedXValueWorking(e,t){const i=e.get("stackToItemX");if(i){const e=i.component;return i.get(t,0)*e.get("vcx",1)+this.getStackedXValueWorking(i,t)}return 0}getStackedYValue(e,t){const i=e.get("stackToItemY");return i?i.get(t,0)+this.getStackedYValue(i,t):0}getStackedXValue(e,t){const i=e.get("stackToItemX");return i?i.get(t,0)+this.getStackedXValue(i,t):0}createLegendMarker(e){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem,s=e.get("locationX",i.get("locationX",.5)),a=e.get("locationY",i.get("locationY",.5)),r=this.get("xAxis"),n=this.get("yAxis"),o=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=r.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),o),d=n.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),l),u=this.getPoint(h,d),c=i.get("left",u.x),g=i.get("right",u.x),p=i.get("top",u.y),_=i.get("bottom",u.y),m=0,b=0,f=g-c,v=_-p;if(this._shouldShowBullet(h,d)){t.setPrivate("visible",!e.getPrivate("hidden"));let r=e.get("field");const n=this.get("baseAxis"),g=this.get("xAxis"),p=this.get("yAxis");if(null!=r){let e;n==g?("value"==r?e=this._yField:"open"==r?e=this._yOpenField:"high"==r?e=this._yHighField:"low"==r&&(e=this._yLowField),e&&(d=p.getDataItemPositionY(i,e,0,this.get("vcy",1),l),u=p.get("renderer").positionToPoint(d),b=u.y,m=c+f*s)):("value"==r?e=this._xField:"open"==r?e=this._xOpenField:"high"==r?e=this._xHighField:"low"==r&&(e=this._xLowField),e&&(h=g.getDataItemPositionX(i,e,0,this.get("vcx",1),o),u=g.get("renderer").positionToPoint(h),m=u.x,b=_-v*a))}else m=c+f*s,b=_-v*a;const y=e.get("stacked");if(y){const e=this.chart;if(n==g){let i=this._bullets[h+"_"+d];if(i){let s=i.bounds(),a=t.localBounds(),r=b;b=s.top,"down"==y?b=s.bottom-a.top:"auto"==y?e&&(r<e.plotContainer.height()/2?b=s.bottom-a.top:b+=a.bottom):b+=a.bottom}this._bullets[h+"_"+d]=t}else{let i=this._bullets[h+"_"+d];if(i){let s=i.bounds(),a=t.localBounds(),r=m;m=s.right,"down"==y?m=s.left-a.right:"auto"==y?e&&(r<e.plotContainer.width()/2?m=s.left-a.right:m-=a.left):m-=a.left}this._bullets[h+"_"+d]=t}}t.isType("Label")&&(t.setPrivate("maxWidth",Math.abs(f)),t.setPrivate("maxHeight",Math.abs(v))),t.setAll({x:m,y:b})}else t.setPrivate("visible",!1)}}_shouldShowBullet(e,t){return this._showBullets}setDataSet(e){if(this._dataSets[e]){this._handleDataSetChange(),this._dataItems=this._dataSets[e],this._markDataSetDirty(),this._dataSetId=e;const t="datasetchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,id:e})}}resetGrouping(){m.__(this._dataSets,(e,t)=>{t!=this._mainDataItems&&u.__(t,e=>{e.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){u.__(this._dataItems,e=>{let t=e.bullets;t&&u.__(t,e=>{if(e){let t=e.get("sprite");t&&t.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(e){const t=Object.create(null,{show:{get:()=>super.show}});return(0,s.sH)(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.show.call(this,e).then(()=>{this._isShowing=!1;let e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis");t!==i&&t.markDirtySelectionExtremes(),e!==i&&e.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){const t=Object.create(null,{hide:{get:()=>super.hide}});return(0,s.sH)(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.hide.call(this,e).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}showDataItem(e,t){const i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return(0,s.sH)(this,void 0,void 0,function*(){const s=[i.showDataItem.call(this,e,t)];c.Et(t)||(t=this.get("stateAnimationDuration",0));const a=this.get("stateAnimationEasing");u.__(this._valueFields,i=>{s.push(e.animate({key:i+"Working",to:e.get(i),duration:t,easing:a}).waitForStop())}),yield Promise.all(s)})}hideDataItem(e,t){const i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return(0,s.sH)(this,void 0,void 0,function*(){const s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});c.Et(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));const r=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),n=this.get("xAxis"),o=this.get("yAxis"),l=this.get("baseAxis"),h=this.get("stacked");if(l!==n&&l||u.__(this._valueYFields,i=>{let a=o.getPrivate("min"),n=o.baseValue();c.Et(a)&&a>n&&(n=a),h&&(n=0),null!=e.get(i)&&s.push(e.animate({key:i+"Working",to:n,duration:t,easing:r}).waitForStop())}),l===o||!l){let i=n.getPrivate("min"),a=n.baseValue();c.Et(i)&&i>a&&(a=i),h&&(a=0),u.__(this._valueXFields,i=>{null!=e.get(i)&&s.push(e.animate({key:i+"Working",to:a,duration:t,easing:r}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){const e=this._stackedSeries;e&&m.__(e,(e,t)=>{t._stackDirty||t._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(e){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(e),this.updateLegendValue(e));const t=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(t)if(!this.isHidden()&&this.get("visible")){if(t._setDataItem(e),e){let a=this.get("locationX",0),r=this.get("locationY",1),n=e.get("locationX",a),o=e.get("locationY",r);const l=this.get("xAxis"),h=this.get("yAxis"),d=this.get("vcx",1),c=this.get("vcy",1),g=l.getDataItemPositionX(e,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*n,d,i),p=h.getDataItemPositionY(e,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*o,c,s),_=this.getPoint(g,p);let m=!0;if(u.__(this._valueFields,t=>{null==e.get(t)&&(m=!1)}),m){const i=this.chart;i&&i.inPlot(_)?(t.label.text.markDirtyText(),t.set("tooltipTarget",this._getTooltipTarget(e)),t.set("pointTo",this._display.toGlobal({x:_.x,y:_.y}))):t._setDataItem(void 0)}else t._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){const e=this.get("tooltip");return e&&e.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(e){if("bullet"==this.get("seriesTooltipTarget")){const t=e.bullets;if(t&&t.length>0){const e=t[0].get("sprite");if(e)return e}}return this}updateLegendValue(e){const t=this.get("legendDataItem");if(t){const i=t.get("label");if(i){let t="";e?(i._setDataItem(e),t=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),t=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",t)}const s=t.get("valueLabel");if(s){let t="";e?(s._setDataItem(e),t=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),t=this.get("legendRangeValueText",s.get("text",""))),s.set("text",t)}}}_getItemReaderLabel(){let e="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}",e}getPoint(e,t){let i=this.get("xAxis").get("renderer").positionToCoordinate(e),s=this.get("yAxis").get("renderer").positionToCoordinate(t),a=999999999;return s<-a&&(s=-a),s>a&&(s=a),i<-a&&(i=-a),i>a&&(i=a),{x:i,y:s}}_shouldInclude(e){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(e){return this.axisRanges.push({axisDataItem:e})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(e){const t=this.get("xAxis");if(this.get("baseAxis")==t&&t.isType("DateAxis")){const i=t.baseDuration(),s=t.getPrivate("selectionMin",t.getPrivate("min",0)),a=i*this.get("locationX",.5);let r=-1/0;for(;r<s;){const t=this.dataItems[e];if(!t)break;{const i=t.open;if(r=i?i.valueX:t.get("valueX",0),r+=a,!(r<s))break;e++}}}return e}}Object.defineProperty(f,"className",{enumerable:!0,configurable:!0,writable:!0,value:"XYSeries"}
12),Object.defineProperty(f,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:p.classNames.concat([f.className])});var v=i(18640),y=i(64439),x=i(77742),w=i(50155);class P extends f{constructor(){super(...arguments),Object.defineProperty(this,"_endIndex",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeGenerator",{enumerable:!0,configurable:!0,writable:!0,value:(0,v.A)()}),Object.defineProperty(this,"_fillGenerator",{enumerable:!0,configurable:!0,writable:!0,value:(0,y.A)()}),Object.defineProperty(this,"_legendStroke",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_legendFill",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"strokes",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r.TS(x.Bj.new({}),()=>_.A._new(this._root,{themeTags:b.kE(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template])))}),Object.defineProperty(this,"fills",{enumerable:!0,configurable:!0,writable:!0,value:this.addDisposer(new r.TS(x.Bj.new({}),()=>_.A._new(this._root,{themeTags:b.kE(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template])))}),Object.defineProperty(this,"_fillTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_strokeTemplate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_previousPoint",{enumerable:!0,configurable:!0,writable:!0,value:[0,0,0,0]}),Object.defineProperty(this,"_dindex",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_sindex",{enumerable:!0,configurable:!0,writable:!0,value:0})}_afterNew(){this._fillGenerator.y0(function(e){return e[3]}),this._fillGenerator.x0(function(e){return e[2]}),this._fillGenerator.y1(function(e){return e[1]}),this._fillGenerator.x1(function(e){return e[0]}),super._afterNew()}makeStroke(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}makeFill(e){const t=this.mainContainer.children.push(e.make());return e.push(t),t}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let e=this.get("xAxis"),t=this.get("yAxis");if(this.isDirty("stroke")){const e=this.get("stroke");this.strokes.template.set("stroke",e);const t=this._legendStroke;t&&t.states.lookup("default").set("stroke",e)}if(this.isDirty("fill")){const e=this.get("fill");this.fills.template.set("fill",e);const t=this._legendFill;t&&t.states.lookup("default").set("fill",e)}if(this.isDirty("fillPattern")){const e=this.get("fillPattern");this.fills.template.set("fillPattern",e);const t=this._legendFill;t&&t.states.lookup("default").set("fillPattern",e)}if(this.isDirty("curveFactory")){const e=this.get("curveFactory");e&&(this._strokeGenerator.curve(e),this._fillGenerator.curve(e))}if(e.inited&&t.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){this.fills.each(e=>{e.setPrivate("visible",!1)}),this.strokes.each(e=>{e.setPrivate("visible",!1)}),this.axisRanges.each(e=>{let t=e.fills;t&&t.each(e=>{e.setPrivate("visible",!1)});let i=e.strokes;i&&i.each(e=>{e.setPrivate("visible",!1)})});let e=this.startIndex(),t=this.strokes.template.get("templateField"),i=this.fills.template.get("templateField"),s=!0,a=!0;t&&(s=!1),i&&(a=!1);for(let r=e-1;r>=0;r--){let n=this.dataItems[r],o=!0,l=n.dataContext;if(t&&l[t]&&(s=!0),i&&l[i]&&(a=!0),u.__(this._valueFields,e=>{c.Et(n.get(e))||(o=!1)}),o&&s&&a){e=r;break}}let r=this.dataItems.length,n=this.endIndex();if(n<r){n++;for(let e=n;e<r;e++){let t=this.dataItems[e],i=!0;if(u.__(this._valueFields,e=>{c.Et(t.get(e))||(i=!1)}),i){n=e+1;break}}}if(e>0&&e--,this._endIndex=n,this._clearGraphics(),this._sindex=0,this._dindex=e,1==this.dataItems.length)this._startSegment(0);else for(;this._dindex<n-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(e=>{e.fills.clear(),e.strokes.clear()})}_startSegment(e){let t=this._endIndex,i=t;const s=this.get("autoGapCount"),a=this.get("connect"),r=this.makeFill(this.fills),n=this._fillTemplate,o=this.fills.template;n&&n!=o&&(r.template=n),r.setPrivate("visible",!0);const l=this.makeStroke(this.strokes),h=this._strokeTemplate;h&&h!=this.strokes.template&&(l.template=h),l.setPrivate("visible",!0);let d=this.get("xAxis"),u=this.get("yAxis"),c=this.get("baseAxis"),g=this.get("vcx",1),p=this.get("vcy",1),_=this._xField,m=this._yField,b=this._xOpenField,f=this._yOpenField;const v=this.get("openValueXField"),y=this.get("openValueYField");v||(b=this._xField),y||(f=this._yField);const w=this.get("stacked"),P=d.basePosition(),D=u.basePosition();let k;k=c===u?this._yField:this._xField;const T=[];let O=[];T.push(O);const M=this.strokes.template.get("templateField"),S=this.fills.template.get("templateField");let A=this.get("locationX",.5),C=this.get("locationY",.5),E=this.get("openLocationX",A),j=this.get("openLocationY",C);const L=this.get("minDistance",0);let I,R=this.fills.template.get("visible");this.axisRanges.length>0&&(R=!0);let B=!1;(w||v||y)&&(B=!0);const F={points:O,segments:T,stacked:w,getOpen:B,basePosX:P,basePosY:D,fillVisible:R,xField:_,yField:m,xOpenField:b,yOpenField:f,vcx:g,vcy:p,baseAxis:c,xAxis:d,yAxis:u,locationX:A,locationY:C,openLocationX:E,openLocationY:j,minDistance:L};let Y=this._strokeTemplate,H=this._fillTemplate;
12for(I=e;I<i;I++){this._dindex=I;const t=this._dataItems[I];let n=t.get(_),o=t.get(m);if(null==n||null==o?a||(O=[],T.push(O),F.points=O):this._getPoints(t,F),M){let s=t.dataContext[M];if(s){if(s instanceof x.Bj||(s=x.Bj.new(s)),this._strokeTemplate=s,I>e){i=I;break}Y=s,l.template=s}}if(S){let s=t.dataContext[S];if(s){if(s instanceof x.Bj||(s=x.Bj.new(s)),this._fillTemplate=s,I>e){i=I;break}H=s,r.template=s}}if(!a){let e=this.dataItems[I+1];e&&c.shouldGap(t,e,s,k)&&(O=[],T.push(O),F.points=O)}}r.setRaw("userData",[e,I]),l.setRaw("userData",[e,I]),I===t&&this._endLine(O,T[0][0]),l&&this._drawStroke(l,T),r&&this._drawFill(r,T),this.axisRanges.each(t=>{const i=t.container,s=t.fills,a=this.makeFill(s);i&&i.children.push(a),a.setPrivate("visible",!0),this._drawFill(a,T);const r=t.strokes,n=this.makeStroke(r);i&&i.children.push(n),Y&&Y!=this.strokes.template&&(n.template=Y),H&&H!=this.fills.template&&(a.template=H),n.setPrivate("visible",!0),this._drawStroke(n,T),a.setRaw("userData",[e,I]),n.setRaw("userData",[e,I])})}_getPoints(e,t){let i=t.points,s=e.get("locationX",t.locationX),a=e.get("locationY",t.locationY);const r=this.get("exactLocationX",!1),n=this.get("exactLocationY",!1);let o=t.xAxis.getDataItemPositionX(e,t.xField,s,t.vcx,r),l=t.yAxis.getDataItemPositionY(e,t.yField,a,t.vcy,n);if(this._shouldInclude(o)){const s=this.getPoint(o,l),a=[s.x,s.y];if(s.x+=this._x,s.y+=this._y,e.set("point",s),t.fillVisible){let i=o,s=l;if(t.baseAxis===t.xAxis?s=t.basePosY:t.baseAxis===t.yAxis&&(i=t.basePosX),t.getOpen){let a=e.get(t.xOpenField),o=e.get(t.yOpenField);if(null!=a&&null!=o){let a=e.get("openLocationX",t.openLocationX),o=e.get("openLocationY",t.openLocationY);if(t.stacked){let l=e.get("stackToItemX"),h=e.get("stackToItemY");l?(i=t.xAxis.getDataItemPositionX(l,t.xField,a,l.component.get("vcx"),r),c.yr(i)&&(i=t.basePosX)):i=t.yAxis===t.baseAxis?t.basePosX:t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx,r),h?(s=t.yAxis.getDataItemPositionY(h,t.yField,o,h.component.get("vcy"),n),c.yr(s)&&(s=t.basePosY)):s=t.xAxis===t.baseAxis?t.basePosY:t.yAxis.getDataItemPositionY(e,t.yOpenField,o,t.vcy,n)}else i=t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx,r),s=t.yAxis.getDataItemPositionY(e,t.yOpenField,o,t.vcy,n)}}let h=this.getPoint(i,s);a[2]=h.x,a[3]=h.y}if(t.minDistance>0){const e=a[0],s=a[1],r=a[2],n=a[3],o=this._previousPoint,l=o[0],h=o[1],d=o[2],u=o[3];(Math.hypot(e-l,s-h)>t.minDistance||r&&n&&Math.hypot(r-d,n-u)>t.minDistance)&&(i.push(a),this._previousPoint=a)}else i.push(a)}}_endLine(e,t){}_drawStroke(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",e=>{u.__(t,t=>{this._strokeGenerator.context(e),this._strokeGenerator(t)})})}_drawFill(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",e=>{u.__(t,t=>{this._fillGenerator.context(e),this._fillGenerator(t)})})}_processAxisRange(e){super._processAxisRange(e),e.fills=new r.TS(x.Bj.new({}),()=>_.A._new(this._root,{themeTags:b.kE(e.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,e.fills.template])),e.strokes=new r.TS(x.Bj.new({}),()=>_.A._new(this._root,{themeTags:b.kE(e.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,e.strokes.template]))}createLegendMarker(e){const t=this.get("legendDataItem");if(t){const e=t.get("marker"),i=t.get("markerRectangle");i&&i.setPrivate("visible",!1),e.set("background",w.M.new(e._root,{fillOpacity:0,fill:(0,n.yW)(0)}));const s=e.children.push(_.A._new(e._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=s;const r=e.children.push(_.A._new(e._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=r;const o=this._root.interfaceColors.get("disabled");if(s.states.create("disabled",{fill:o,stroke:o}),r.states.create("disabled",{fill:o,stroke:o}),this.bullets.length>0){const t=this.bullets.getIndex(0);if(t){const i=t(e._root,this,new a.s(this,{legend:!0},{}));if(i){const t=i.get("sprite");t instanceof _.A&&t.states.create("disabled",{fill:o,stroke:o}),t&&(t.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),e.children.push(t),t.setAll({x:e.width()/2,y:e.height()/2}),e.events.on("boundschanged",()=>{t.setAll({x:e.width()/2,y:e.height()/2})}))}}}}}}Object.defineProperty(P,"className",{enumerable:!0,configurable:!0,writable:!0,value:"LineSeries"}
12),Object.defineProperty(P,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:f.classNames.concat([P.className])})},97529:(e,t,i)=>{i.d(t,{JZ:()=>n,O_:()=>a,W_:()=>r,Wr:()=>l,ZT:()=>o});var s=i(98379);class a{constructor(){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class r{constructor(e){Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dispose",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposed=!1,this._dispose=e}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}}class n extends a{constructor(){super(...arguments),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]})}_dispose(){s.__(this._disposers,e=>{e.dispose()})}}class o extends a{constructor(e){super(),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._disposers=e}_dispose(){s.__(this._disposers,e=>{e.dispose()})}get disposers(){return this._disposers}}class l extends r{constructor(){super(...arguments),Object.defineProperty(this,"_counter",{enumerable:!0,configurable:!0,writable:!0,value:0})}increment(){return++this._counter,new r(()=>{--this._counter,0===this._counter&&this.dispose()})}}},97716:(e,t,i)=>{i.d(t,{J:()=>l});var s=i(15263),a=i(16611),r=i(51947),n=i(98379),o=i(83460);class l extends r.m{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),n.__(this._textKeys,e=>{const t=this.get(e);null!=t&&this._text.set(e,t)}),""!==this.get("html","")&&this._text.set("text",""),this.onPrivate("maxWidth",()=>{this._setMaxDimentions()}),this.onPrivate("maxHeight",()=>{this._setMaxDimentions()})}_makeText(){this._text=this.children.push(s.E.new(this._root,{}))}_updateChildren(){super._updateChildren();const e=this._text;if(n.__(this._textKeys,e=>{this._text.set(e,this.get(e))}),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),""!==this.get("html","")?e.set("text",""):(e.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){const t=this.get("textAlign");let i;null!=this.get("width")?i="right"==t?a.Q2:"center"==t?a.yP:0:"left"==t||"start"==t?i=this.get("paddingLeft",0):"right"!=t&&"end"!=t||(i=-this.get("paddingRight",0)),e.set("x",i)}const t=this.get("background");t&&t.setPrivate("visible",e._display.textVisible)}_maybeUpdateHTMLColor(){const e=this.getPrivate("htmlElement");e&&this.get("fill")&&(e.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){const e=this.get("rotation"),t=90==e||270==e||-90==e,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));o.Et(s)?i.set(t?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(t?"maxHeight":"maxWidth",void 0);const a=this.get("maxHeight",this.getPrivate("maxHeight",1/0));o.Et(a)?i.set(t?"maxWidth":"maxHeight",a-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(t?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",()=>{i.markDirtyBounds()})}_setDataItem(e){super._setDataItem(e),this._markDirtyKey("text"),this._markDirtyKey("html");const t=this._text;t.get("populateText")&&t.markDirtyText();const i=this.get("html");i&&""!==i&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}}Object.defineProperty(l,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"}),Object.defineProperty(l,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:r.m.classNames.c
12oncat([l.className])})},97957:(e,t,i)=>{i.d(t,{x:()=>a});var s=i(50979);class a extends s.A{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}}Object.defineProperty(a,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Grid"}),Object.defineProperty(a,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.A.classNames.concat([a.className])})},98160:(e,t,i)=>{i.d(t,{N:()=>n});var s=i(95926),a=i(83460),r=i(16611);class n extends s.P{updateContainer(e){let t=e.get("paddingTop",0),i=e.innerHeight(),n=0;(0,s.l)(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof r.QE){n+=t.value;let s=i*t.value,a=e.get("minHeight",e.getPrivate("minHeight",-1/0));a>s&&(i-=a,n-=t.value);let r=e.get("maxHeight",e.getPrivate("maxHeight",1/0));s>r&&(i-=r,n-=t.value)}else a.Et(t)||(t=e.height()),i-=t+e.get("marginTop",0)+e.get("marginBottom",0)}}),(i<=0||i==1/0)&&(i=.1),(0,s.l)(e,e=>{if(e.isVisible()&&"relative"==e.get("position")){let t=e.get("height");if(t instanceof r.QE){let s=i*t.value/n-e.get("marginTop",0)-e.get("marginBottom",0),a=e.get("minHeight",e.getPrivate("minHeight",-1/0)),r=e.get("maxHeight",e.getPrivate("maxHeight",1/0));s=Math.min(Math.max(a,s),r),e.setPrivate("height",s)}else e._prevSettings.height instanceof r.QE&&e.setPrivate("height",void 0)}});let o=t;(0,s.l)(e,e=>{if("relative"==e.get("position"))if(e.isVisible()){let t=e.adjustedLocalBounds(),i=e.get("marginTop",0),s=t.top,a=t.bottom,r=e.get("maxHeight");r&&a-s>r&&(a=s+r);let n=e.get("marginBottom",0),l=o+i-s;e.setPrivate("y",l),o=l+a+n}else e.setPrivate("y",void 0)})}}Object.defineProperty(n,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"}),Object.defineProperty(n,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:s.P.classNames.concat([n.className])})},98310:(e,t,i)=>{var s;i.d(t,{N:()=>s}),function(e){e.ADD="lighter",e.COLOR="color",e.COLOR_BURN="color-burn",e.COLOR_DODGE="color-dodge",e.DARKEN="darken",e.DIFFERENCE="difference",e.DST_OVER="destination-over",e.EXCLUSION="exclusion",e.HARD_LIGHT="hard-light",e.HUE="hue",e.LIGHTEN="lighten",e.LUMINOSITY="luminosity",e.MULTIPLY="multiply",e.NORMAL="source-over",e.OVERLAY="overlay",e.SATURATION="saturation",e.SCREEN="screen",e.SOFT_LIGHT="soft-light",e.SRC_ATOP="source-atop",e.XOR="xor"}(s||(s={}))},98379:(e,t,i)=>{function s(e,t){const i=e.length;for(let s=0;s<i;++s)if(e[s]===t)return s;return-1}function a(e,t){const i=e.length;for(let s=0;s<i;++s)if(t(e[s]))return!0;return!1}function r(e,t){const i=e.length,s=new Array(i);for(let a=0;a<i;++a)s[a]=t(e[a],a);return s}function n(e,t){const i=e.length;for(let s=0;s<i;++s)t(e[s],s)}function o(e,t){let i=e.length;for(;i>0;)--i,t(e[i],i)}function l(e,t){const i=e.length;for(let s=0;s<i&&t(e[s],s);++s);}function h(e,t){let i=!1,s=0;for(;;){if(s=e.indexOf(t,s),-1===s)return i;i=!0,e.splice(s,1)}}function d(e,t){let i=e.indexOf(t);return-1!==i&&(e.splice(i,1),!0)}function u(e,t,i){let a=s(e,t);-1!==a&&_(e,a),null==i?e.push(t):p(e,i,t)}function c(e,t){-1===e.indexOf(t)&&e.push(t)}function g(e){const t=e.length,i=new Array(t);for(let s=0;s<t;++s)i[s]=e[s];return i}function p(e,t,i){e.splice(t,0,i)}function _(e,t){e.splice(t,1)}function m(e,t){const i=e.length;for(let s=0;s<i;++s)if(t(e[s],s))return s;return-1}function b(e,t){const i=m(e,t);if(-1!==i)return e[i]}function f(e,t){const i=function(e,t){let i=e.length;for(;i>0;)if(--i,t(e[i],i))return i;return-1}(e,t);if(-1!==i)return e[i]}function v(e,t){let i=0,s=e.length,a=!1;for(;i<s;){const r=i+s>>1,n=t(e[r]);n<0?i=r+1:0===n?(a=!0,i=r+1):s=r}return{found:a,index:a?i-1:i}}function y(e,t){let i=0,s=e.length,a=!1;for(;i<s;){const r=i+s>>1,n=t(e[r]);n<0?i=r+1:0===n?(a=!0,s=r):s=r}return{found:a,index:i}}function x(e,t){let i=e.length;for(;i>0;)--i,t(e[i])||e.splice(i,1)}i.d(t,{At:()=>p,C:()=>g,Cy:()=>u,FY:()=>l,I6:()=>b,IU:()=>v,JJ:()=>c,SL:()=>m,TF:()=>h,TW:()=>x,Tj:()=>r,W$:()=>o,__:()=>n,bz:()=>a,dm:()=>d,qh:()=>s,um:()=>f,wo:()=>y,xR:()=>_})},98849:(e,t,i)=>{i.d(t,{$_:()=>d,Ds:()=>o,Iq:()=>h,LI:()=>c,SJ:()=>l,T9:()=>g,d_:()=>u,qG:()=>n,yy:()=>a});var s=i(83460);function a(e){return new Promise((t,i)=>{setTimeout(t,e)})}let r={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2629742400,year:31536e6};function n(e){switch(e){case"year":return;case"month":return"year";case"week":case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function o(e,t){return null==t&&(t=1),r[e]*t}function l(e){return e?r[e.timeUnit]*e.count:0}function h(e,t,i,s,a){const n=e.timeUnit,l=e.count;if("hour"==n||"minute"==n||"second"==n||"millisecond"==n)return r[e.timeUnit]*e.count;{const e=c(new Date(t.getTime()),n,l,i,s,void 0,a).getTime();let r=e+l*o(n)*1.05;return r=c(new Date(r),n,1,i,s,void 0,a).getTime(),r-e}}function d(e,t,i,s,a){if(t-e>o(i,1.2))return!0;let r=new Date(e),l=new Date(t);a&&(r=a.convertLocal(r),l=a.convertLocal(l));let h=0,u=0;s||"millisecond"==i||(h=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-h),u=l.getTimezoneOffset(),l.setUTCMinutes(l.getUTCMinutes()-u));let c=!1;switch(i){case"year":r.getUTCFullYear()!=l.getUTCFullYear()&&(c=!0);break;case"month":(r.getUTCFullYear()!=l.getUTCFullYear()||r.getUTCMonth()!=l.getUTCMonth())&&(c=!0);break;case"day":(r.getUTCMonth()!=l.getUTCMonth()||r.getUTCDate()!=l.getUTCDate())&&
12(c=!0);break;case"hour":r.getUTCHours()!=l.getUTCHours()&&(c=!0);break;case"minute":r.getUTCMinutes()!=l.getUTCMinutes()&&(c=!0);break;case"second":r.getUTCSeconds()!=l.getUTCSeconds()&&(c=!0);break;case"millisecond":r.getTime()!=l.getTime()&&(c=!0)}if(c)return c;let g=n(i);return!!g&&d(e,t,g,s,a)}function u(e,t,i,s,a){let r;return null!=a&&(r=new Date(a)),c(new Date(e),t,i,s.locale.firstDayOfWeek,s.utc,r,s.timezone).getTime()}function c(e,t,i,a,r,n,l){if(!l||r){let l=0;switch(r||"millisecond"==t||(l=e.getTimezoneOffset(),e.setUTCMinutes(e.getUTCMinutes()-l)),t){case"day":let t=e.getUTCDate();if(i>1){if(n){n=c(n,"day",1);let t=e.getTime()-n.getTime(),s=Math.floor(t/o("day")/i),a=o("day",s*i);e.setTime(n.getTime()+a-l*o("minute"))}}else e.setUTCDate(t);e.setUTCHours(0,0,0,0);break;case"second":let r=e.getUTCSeconds();i>1&&(r=Math.floor(r/i)*i),e.setUTCSeconds(r,0);break;case"millisecond":if(1==i)return e;let h=e.getUTCMilliseconds();h=Math.floor(h/i)*i,e.setUTCMilliseconds(h);break;case"hour":let d=e.getUTCHours();i>1&&(d=Math.floor(d/i)*i),e.setUTCHours(d,0,0,0);break;case"minute":let u=e.getUTCMinutes();i>1&&(u=Math.floor(u/i)*i),e.setUTCMinutes(u,0,0);break;case"month":let g=e.getUTCMonth();i>1&&(g=Math.floor(g/i)*i),e.setUTCMonth(g,1),e.setUTCHours(0,0,0,0);break;case"year":let p=e.getUTCFullYear();i>1&&(p=Math.floor(p/i)*i),e.setUTCFullYear(p,0,1),e.setUTCHours(0,0,0,0);break;case"week":if(i>1&&n){n=c(n,"week",1);let t=e.getTime()-n.getTime(),s=Math.floor(t/o("week")/i),a=o("week",s*i);e.setTime(n.getTime()+a-l*o("minute"))}let _=e.getUTCDate(),m=e.getUTCDay();s.Et(a)||(a=1),_=m>=a?_-m+a:_-(7+m)+a,e.setUTCDate(_),e.setUTCHours(0,0,0,0)}if(!r&&"millisecond"!=t&&(e.setUTCMinutes(e.getUTCMinutes()+l),"day"==t||"week"==t||"month"==t||"year"==t)){let t=e.getTimezoneOffset();if(t!=l){let i=t-l;e.setUTCMinutes(e.getUTCMinutes()+i)}}return e}{if(isNaN(e.getTime()))return e;let h=e.getTime(),d=l.offsetUTC(e),u=e.getTimezoneOffset(),g=l.parseDate(e),p=g.year,_=g.month,m=g.day,b=g.hour,f=g.minute,v=g.second,y=g.millisecond,x=g.weekday,w=d-u;switch(t){case"day":if(i>1&&n){n=c(n,"day",1,a,r,void 0,l);let t=e.getTime()-n.getTime(),s=Math.floor(t/o("day")/i),h=o("day",s*i);e.setTime(n.getTime()+h),g=l.parseDate(e),p=g.year,_=g.month,m=g.day}b=0,f=w,v=0,y=0;break;case"second":f+=w,i>1&&(v=Math.floor(v/i)*i),y=0;break;case"millisecond":f+=w,i>1&&(y=Math.floor(y/i)*i);break;case"hour":i>1&&(b=Math.floor(b/i)*i),f=w,v=0,y=0;break;case"minute":i>1&&(f=Math.floor(f/i)*i),f+=w,v=0,y=0;break;case"month":i>1&&(_=Math.floor(_/i)*i),m=1,b=0,f=w,v=0,y=0;break;case"year":i>1&&(p=Math.floor(p/i)*i),_=0,m=1,b=0,f=w,v=0,y=0;break;case"week":s.Et(a)||(a=1),m=x>=a?m-x+a:m-(7+x)+a,b=0,f=w,v=0,y=0}const P=(e=new Date(p,_,m,b,f,v,y)).getTime();let D=36e5;"hour"==t&&(D=36e5*i),P+D<=h&&("hour"!=t&&"minute"!=t&&"second"!=t&&"millisecond"!=t||(e=new Date(P+D)));let k=e.getTimezoneOffset(),T=l.offsetUTC(e)-k;return T!=w&&e.setTime(e.getTime()+6e4*(T-w)),e}}function g(e,t,i,s){let a=l(s[e]),r=s.length-1;if(e>=r)return Object.assign({},s[r]);let n=Math.ceil(t/a);return t<a&&e>0?Object.assign({},s[e-1]):n<=i?Object.assign({},s[e]):e+1<s.length?g(e+1,t,i,s):Object.assign({},s[e])}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.