@arcgis/charts-components 5.1.0-next.65 → 5.1.0-next.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/2333HQZZ.js +2 -0
- package/dist/cdn/25LAV2UI.js +2 -0
- package/dist/cdn/{SMGWUDX3.js → 2J5IWBKU.js} +1 -1
- package/dist/cdn/2NIOPMWE.js +2 -0
- package/dist/cdn/32WPXK4K.js +2 -0
- package/dist/cdn/35NR6IHU.js +2 -0
- package/dist/cdn/4BDLJPIB.js +2 -0
- package/dist/cdn/4HRFZU2C.js +2 -0
- package/dist/cdn/4NYTLY62.js +2 -0
- package/dist/cdn/{66CPF67N.js → 5KOFW5BO.js} +1 -1
- package/dist/cdn/5PSQ7OKJ.js +2 -0
- package/dist/cdn/6GURKNO2.js +2 -0
- package/dist/cdn/{GLST76GV.js → 6GVGNQYH.js} +1 -1
- package/dist/cdn/6RKNXP6N.js +2 -0
- package/dist/cdn/{X6QQ322N.js → 6TKG7ZF7.js} +1 -1
- package/dist/cdn/{6VW6XPBH.js → 75FO5HPY.js} +1 -1
- package/dist/cdn/7HGCX3PA.js +2 -0
- package/dist/cdn/7Y5FTMNT.js +2 -0
- package/dist/cdn/{4YWBOW4N.js → 7YDVVZJU.js} +1 -1
- package/dist/cdn/AALOFAWG.js +2 -0
- package/dist/cdn/AMLWVAHN.js +2 -0
- package/dist/cdn/BVK4ULHH.js +2 -0
- package/dist/cdn/BXDRHDLV.js +2 -0
- package/dist/cdn/BXNLQMSP.js +2 -0
- package/dist/cdn/{3WMOCDMO.js → CCNHG4LT.js} +1 -1
- package/dist/cdn/CUAIY5DK.js +37 -0
- package/dist/cdn/DHCFSWRJ.js +2 -0
- package/dist/cdn/ECRW3QJF.js +2 -0
- package/dist/cdn/{DHZT5P3N.js → EF4GVHB2.js} +1 -1
- package/dist/cdn/EGHVQUKF.js +2 -0
- package/dist/cdn/EP5VVTAX.js +2 -0
- package/dist/cdn/EWLMYFSA.js +2 -0
- package/dist/cdn/{QFC7M2Y2.js → FFXTYOTF.js} +1 -1
- package/dist/cdn/FOSGOEWY.js +2 -0
- package/dist/cdn/G56RB2UI.js +2 -0
- package/dist/cdn/{HR62GM42.js → GKYHQ5OF.js} +1 -1
- package/dist/cdn/GXQDCOI4.js +99 -0
- package/dist/cdn/HW42VNOU.js +2 -0
- package/dist/cdn/I54YDLFZ.js +2 -0
- package/dist/cdn/I6IYDKWG.js +2 -0
- package/dist/cdn/IN3H6ULU.js +2 -0
- package/dist/cdn/ISNJYFT7.js +2 -0
- package/dist/cdn/ITB7EYBT.js +2 -0
- package/dist/cdn/JDQ6BNXO.js +2 -0
- package/dist/cdn/JMMW4Z5P.js +2 -0
- package/dist/cdn/JTL73F75.js +2 -0
- package/dist/cdn/KOLQWSYX.js +2 -0
- package/dist/cdn/KYFOP4WA.js +2 -0
- package/dist/cdn/L2NQ6Z3Z.js +2 -0
- package/dist/cdn/LGAAHH35.js +2 -0
- package/dist/cdn/LIXBROPH.js +2 -0
- package/dist/cdn/LRQVALTM.js +2 -0
- package/dist/cdn/LT62HS4S.js +2 -0
- package/dist/cdn/MUCSVAGN.js +2 -0
- package/dist/cdn/N4IITAR7.js +2 -0
- package/dist/cdn/NEEKPRM4.js +2 -0
- package/dist/cdn/NEFPCTH3.js +2 -0
- package/dist/cdn/NVV2EBVI.js +2 -0
- package/dist/cdn/O7ZCEGVR.js +2 -0
- package/dist/cdn/{WIP3X44L.js → OPDQRTZL.js} +3 -3
- package/dist/cdn/PG36SBDU.js +2 -0
- package/dist/cdn/PGJD4Q7S.js +2 -0
- package/dist/cdn/PGVNBWSU.js +23 -0
- package/dist/cdn/PL24HKI7.js +2 -0
- package/dist/cdn/PLBPOYRN.js +2 -0
- package/dist/cdn/QEPCR5IP.js +2 -0
- package/dist/cdn/QT24FAYQ.js +2 -0
- package/dist/cdn/R6XIAIZH.js +2 -0
- package/dist/cdn/RDBNRYTF.js +2 -0
- package/dist/cdn/RQLVJM4J.js +2 -0
- package/dist/cdn/RX6QOYCR.js +2 -0
- package/dist/cdn/SNZF4LXV.js +2 -0
- package/dist/cdn/{QRNEQ6OE.js → TJA5FMLP.js} +1 -1
- package/dist/cdn/TZJGC4RS.js +2 -0
- package/dist/cdn/{IIJZ52BJ.js → VRXVXPKS.js} +1 -1
- package/dist/cdn/VWCFL5P6.js +2 -0
- package/dist/cdn/W5VC5OCC.js +2 -0
- package/dist/cdn/W6T7TNP5.js +2 -0
- package/dist/cdn/WNEW6UZS.js +2 -0
- package/dist/cdn/XFXE7IY2.js +2 -0
- package/dist/cdn/XV7GLCBP.js +2 -0
- package/dist/cdn/Y3DU5EIT.js +2 -0
- package/dist/cdn/Y3NWCVUF.js +2 -0
- package/dist/cdn/YHUBOYF5.js +2 -0
- package/dist/cdn/YNRVU2AU.js +2 -0
- package/dist/cdn/YPSEQYTV.js +2 -0
- package/dist/cdn/YQTJQ5J7.js +2 -0
- package/dist/cdn/Z4GL4EF6.js +2 -0
- package/dist/cdn/ZIXBICPN.js +2 -0
- package/dist/cdn/ZRDVJBTQ.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chart-rendering/common/data/utils/summarize-data/interfaces.d.ts +8 -0
- package/dist/chart-rendering/common/interfaces.d.ts +7 -0
- package/dist/chunks/action-bar-utils.js +22 -28
- package/dist/chunks/axis-lines-symbol.js +8 -8
- package/dist/chunks/bar-chart-model.js +19 -25
- package/dist/chunks/bar-chart-series.js +12 -18
- package/dist/chunks/box-plot-data.js +75 -81
- package/dist/chunks/box-plot-model.js +19 -19
- package/dist/chunks/chart-model.js +40 -46
- package/dist/chunks/chart-ui-utils2.js +47 -53
- package/dist/chunks/class-breaks.js +16 -16
- package/dist/chunks/combo-bar-line-chart-model.js +20 -20
- package/dist/chunks/data-labels-symbol.js +5 -5
- package/dist/chunks/data.js +53 -59
- package/dist/chunks/gauge-model.js +22 -28
- package/dist/chunks/generate-x-axis-title.js +30 -36
- package/dist/chunks/heat-chart-model.js +10 -16
- package/dist/chunks/histogram-data.js +53 -59
- package/dist/chunks/histogram-model.js +31 -31
- package/dist/chunks/index.js +608 -20565
- package/dist/chunks/index2.js +171 -678
- package/dist/chunks/index3.js +46 -181
- package/dist/chunks/interfaces.js +16443 -103
- package/dist/chunks/interfaces2.js +109 -0
- package/dist/chunks/line-chart-model.js +2 -2
- package/dist/chunks/model-setter.js +15 -21
- package/dist/chunks/model-with-guides.js +22 -28
- package/dist/chunks/model-with-tooltips.js +23 -29
- package/dist/chunks/model-with-x-guides.js +4 -4
- package/dist/chunks/model-with-y-guides.js +25 -31
- package/dist/chunks/negative-values-stacked-to-baseline.js +41 -47
- package/dist/chunks/pie-chart-data.js +33 -39
- package/dist/chunks/pie-chart-model.js +62 -68
- package/dist/chunks/radar-chart-model.js +8 -15
- package/dist/chunks/rotated-state.js +9 -15
- package/dist/chunks/scatterplot-model.js +84 -90
- package/dist/chunks/serial-chart-data.js +8178 -4195
- package/dist/chunks/serial-chart-model.js +32 -39
- package/dist/chunks/series-length.js +14 -20
- package/dist/chunks/series.js +10 -16
- package/dist/chunks/utils.js +337 -119
- package/dist/chunks/utils2.js +19 -25
- package/dist/chunks/web-component-utils.js +42 -42
- package/dist/components/arcgis-chart/customElement.js +5255 -5339
- package/dist/components/arcgis-charts-action-bar/customElement.js +2 -2
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +15 -20
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +33 -38
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +7 -13
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-font-style/customElement.js +14 -20
- package/dist/components/arcgis-charts-config-format/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +10 -16
- package/dist/components/arcgis-charts-config-general/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -19
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +13 -19
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +20 -26
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +17 -24
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +15 -21
- package/dist/components/arcgis-charts-config-histogram/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +26 -32
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +12 -18
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +18 -24
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +8 -14
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +22 -28
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +9 -15
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +5 -11
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +4 -10
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +12 -19
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -10
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +421 -412
- package/dist/utils/chart-config/utils/index.d.ts +22 -1
- package/dist/utils/chart-config/validator/index.d.ts +2 -2
- package/dist/utils/data/index.d.ts +48 -1
- package/dist/utils/data/pie-chart/index.d.ts +31 -0
- package/package.json +3 -3
- package/dist/cdn/2R7GVZ2K.js +0 -2
- package/dist/cdn/3LT2GKQ2.js +0 -2
- package/dist/cdn/4D7IL776.js +0 -23
- package/dist/cdn/4TUXERAH.js +0 -2
- package/dist/cdn/53BACKKK.js +0 -2
- package/dist/cdn/5TNV7JHC.js +0 -2
- package/dist/cdn/627BGNFG.js +0 -2
- package/dist/cdn/6LOKVOKI.js +0 -2
- package/dist/cdn/6NZ5UJML.js +0 -2
- package/dist/cdn/6WJVFMRO.js +0 -2
- package/dist/cdn/7GZN67ZQ.js +0 -2
- package/dist/cdn/7SSD7QVG.js +0 -2
- package/dist/cdn/7XRXZ5B3.js +0 -2
- package/dist/cdn/7Y57O4FJ.js +0 -2
- package/dist/cdn/7Y7YFJKK.js +0 -2
- package/dist/cdn/7YXQ6TZT.js +0 -2
- package/dist/cdn/A642VLJ3.js +0 -2
- package/dist/cdn/AVCKTWRB.js +0 -2
- package/dist/cdn/BCEUGCIB.js +0 -2
- package/dist/cdn/BP7HN7YH.js +0 -2
- package/dist/cdn/BPZNMCFA.js +0 -2
- package/dist/cdn/DRLAYMR6.js +0 -2
- package/dist/cdn/DXWMRZX7.js +0 -2
- package/dist/cdn/E7ZG5PMT.js +0 -2
- package/dist/cdn/EDBE2EVF.js +0 -2
- package/dist/cdn/EDCUOXXS.js +0 -2
- package/dist/cdn/EWCL54AQ.js +0 -2
- package/dist/cdn/FKR2N42T.js +0 -2
- package/dist/cdn/GT2GE37X.js +0 -2
- package/dist/cdn/HHMRHLFD.js +0 -2
- package/dist/cdn/HMYIPN7X.js +0 -2
- package/dist/cdn/HQZDYYW6.js +0 -2
- package/dist/cdn/HZDIYXNY.js +0 -2
- package/dist/cdn/I34GLJPW.js +0 -2
- package/dist/cdn/IGRLN5QE.js +0 -2
- package/dist/cdn/IJD3YDOE.js +0 -2
- package/dist/cdn/ITF5WJUH.js +0 -2
- package/dist/cdn/J73HEYK6.js +0 -2
- package/dist/cdn/JWTEQZTD.js +0 -2
- package/dist/cdn/KDLX6TGN.js +0 -2
- package/dist/cdn/LLNUWDC5.js +0 -2
- package/dist/cdn/LZ7LNUEI.js +0 -2
- package/dist/cdn/MAZJTJ64.js +0 -2
- package/dist/cdn/MB7BDR7H.js +0 -2
- package/dist/cdn/MTTVUHUH.js +0 -2
- package/dist/cdn/MVLJJ7VZ.js +0 -2
- package/dist/cdn/N373OIOT.js +0 -2
- package/dist/cdn/N4GBOPIU.js +0 -2
- package/dist/cdn/OG3JZ3LP.js +0 -37
- package/dist/cdn/PSYU6XTK.js +0 -2
- package/dist/cdn/PVTBEXFF.js +0 -2
- package/dist/cdn/PYLJO324.js +0 -2
- package/dist/cdn/QQ6DOFHZ.js +0 -99
- package/dist/cdn/RAJWBR34.js +0 -2
- package/dist/cdn/S7COU7MH.js +0 -2
- package/dist/cdn/SYY7UU2N.js +0 -2
- package/dist/cdn/TN45YUM2.js +0 -2
- package/dist/cdn/TODWZ6FZ.js +0 -2
- package/dist/cdn/TP7767ZV.js +0 -2
- package/dist/cdn/UFJOL4MK.js +0 -2
- package/dist/cdn/ULSVHCH4.js +0 -2
- package/dist/cdn/UVFPEIK2.js +0 -2
- package/dist/cdn/V3PU5TMU.js +0 -2
- package/dist/cdn/V3VVN7ST.js +0 -2
- package/dist/cdn/V5JXE6N4.js +0 -2
- package/dist/cdn/VPOAGMYE.js +0 -2
- package/dist/cdn/VXMMIOTJ.js +0 -2
- package/dist/cdn/WL2XRSAH.js +0 -2
- package/dist/cdn/WWARKOXR.js +0 -2
- package/dist/cdn/WWGW24FD.js +0 -2
- package/dist/cdn/XUHCS2SB.js +0 -2
- package/dist/cdn/YBAPI2UV.js +0 -2
- package/dist/cdn/YJDYXU2Q.js +0 -2
- package/dist/cdn/YUZ26Q2B.js +0 -2
- package/dist/cdn/ZRDKD2U3.js +0 -2
- package/dist/cdn/ZVOSWG36.js +0 -2
- /package/dist/cdn/{FPDW4F45.js → VCUC6CMW.js} +0 -0
package/dist/cdn/4D7IL776.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import f from"./UVFPEIK2.js";import e from"./V5JXE6N4.js";import d from"./JWTEQZTD.js";import c from"./IGRLN5QE.js";import b from"./2R7GVZ2K.js";import{c as hh,d as jc,e as ph,g as dh,i as vt,j as bt,k as _i,l as ch,m as Nc,n as Ec,p as Bc}from"./YJXIGYX6.js";import a from"./QQ6DOFHZ.js";import{D as qo,d as Ad,g as Cn,h as zi,k as ea,l as Fd,t as Ko,u as cr,v as Ld,w as fr,x as Yt,y as Vi,z as Gt}from"./Y7IQV44J.js";import{g as kd}from"./3ZHL4GR5.js";import{a as ol}from"./EZM4ZDQI.js";import{a as W,b as mt,e as ct,f as ui,h as Uo,i as Bu,j as Wu,k as Xt,n as bs,o as Vd,p as xi,r as Fa,v as hi,y as Ot}from"./ETLJKITO.js";import{H as Dd}from"./J66D7A5G.js";import{c as lg}from"./QPIMTXPL.js";export default $arcgis.t(([{substitute:Ir},,,,,,,,,,,,,,,,,,,,{$b:ac,$c:La,$d:yt,Ab:Ge,B:$s,Bb:pe,C:jd,Cb:mr,Cc:Os,D:zu,Db:rl,Dc:vc,Eb:Ju,Fc:ws,Ga:Ud,Gb:Cs,Hb:ic,Ia:Kd,Ib:Dt,Ic:bc,Kb:rc,Kc:sl,Lc:xc,Mb:yr,Mc:_c,N:Xu,Nc:$c,Oc:Pc,Pa:Se,Qb:gr,Sa:qd,Tc:Sc,U:Nd,Ua:Ps,V:Yu,Va:Zd,Vb:eh,W:Gu,Wa:Qd,X:el,Xa:wn,Xb:th,Xd:Dc,Ya:tl,Z:Ed,Za:Ku,Zc:ah,Zd:Ac,_c:Cc,_d:uh,ac:sc,ad:Tc,ae:Fc,ba:Bd,bb:jr,bd:Dn,be:Ds,c:Va,ca:Wd,cb:ka,cc:ih,cd:Oc,ce:Vc,da:Hd,db:qu,dd:sh,e:Tn,ed:nh,fc:nc,fe:kc,gc:oc,ge:Lc,ha:zd,hc:lc,hd:nl,he:Ic,i:Id,ic:uc,j:Rd,jb:Jd,k:On,ka:Xd,kc:hc,ke:An,l:ta,la:Yd,lc:pc,mb:il,mc:dc,md:wc,n:Zo,na:Gd,nb:ec,nc:Ts,o:xs,ob:Zu,qa:Uu,qb:ia,r:Qo,rb:Ss,rc:cc,re:Rc,s:wt,sc:fc,se:Mc,t:Jo,tc:al,td:Ia,uc:mc,ud:ra,v:_s,vc:rh,vd:oh,w:Hu,wb:tc,wc:yc,wd:gt,x:Md,xd:lh,yc:gc,yd:pi,zb:Qu},{a:As,b:fh,d:di,e:mh,f:Wc,g:yh,n:Hc,r:zc},{a:Yc},{c:ul},{a:Gc,e:Uc},{a:Xc,b:gh,f:Fs,g:ll,i:vh}])=>{var ae=(function(){function a(i){this._value=i}return Object.defineProperty(a.prototype,"value",{get:function(){return this._value/100},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"percent",{get:function(){return this._value},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return""+this._value+"%"},a})();function k(a){return new ae(a)}function bh(a){return a instanceof ae}var xh=function(a,i){return xh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},xh(a,i)};function S(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");xh(a,i);function e(){this.constructor=a}a.prototype=i===null?Object.create(i):(e.prototype=i.prototype,new e)}var ki=function(){return ki=Object.assign||function(i){for(var e,t=1,r=arguments.length;t<r;t++){e=arguments[t];for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&(i[s]=e[s])}return i},ki.apply(this,arguments)};function Xe(a,i,e,t){function r(s){return s instanceof e?s:new e(function(n){n(s)})}return new(e||(e=Promise))(function(s,n){function o(h){try{u(t.next(h))}catch(p){n(p)}}function l(h){try{u(t.throw(h))}catch(p){n(p)}}function u(h){h.done?s(h.value):r(h.value).then(o,l)}u((t=t.apply(a,i||[])).next())})}function Ae(a,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},t,r,s,n=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return n.next=o(0),n.throw=o(1),n.return=o(2),typeof Symbol=="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(u){return function(h){return l([u,h])}}function l(u){if(t)throw new TypeError("Generator is already executing.");for(;n&&(n=0,u[0]&&(e=0)),e;)try{if(t=1,r&&(s=u[0]&2?r.return:u[0]?r.throw||((s=r.return)&&s.call(r),0):r.next)&&!(s=s.call(r,u[1])).done)return s;switch(r=0,s&&(u=[u[0]&2,s.value]),u[0]){case 0:case 1:s=u;break;case 4:return e.label++,{value:u[1],done:!1};case 5:e.label++,r=u[1],u=[0];continue;case 7:u=e.ops.pop(),e.trys.pop();continue;default:if(s=e.trys,!(s=s.length>0&&s[s.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!s||u[1]>s[0]&&u[1]<s[3])){e.label=u[1];break}if(u[0]===6&&e.label<s[1]){e.label=s[1],s=u;break}if(s&&e.label<s[2]){e.label=s[2],e.ops.push(u);break}s[2]&&e.ops.pop(),e.trys.pop();continue}u=i.call(a,e)}catch(h){u=[6,h],r=0}finally{t=s=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ra(a){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&a[i],t=0;if(e)return e.call(a);if(a&&typeof a.length=="number")return{next:function(){return a&&t>=a.length&&(a=void 0),{value:a&&a[t++],done:!a}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function aa(a,i){var e=typeof Symbol=="function"&&a[Symbol.iterator];if(!e)return a;var t=e.call(a),r,s=[],n;try{for(;(i===void 0||i-- >0)&&!(r=t.next()).done;)s.push(r.value)}catch(o){n={error:o}}finally{try{r&&!r.done&&(e=t.return)&&e.call(t)}finally{if(n)throw n.error}}return s}function Nr(){for(var a=[],i=0;i<arguments.length;i++)a=a.concat(aa(arguments[i]));return a}function xt(a){return Number(a)!==a}function Kc(a){return{}.toString.call(a)}function Vs(a){if(typeof a=="string")return a;if(typeof a=="number")return""+a;throw new Error("Expected a string or number but got "+Kc(a))}function Ue(a){return!!a}function Oe(a){if($(a)&&!b(a)){var i=Number(a);return xt(i)&&se(a)&&a!=""?Oe(a.replace(/[^0-9.\-]+/g,"")):i}return a}function Lt(a){if($(a)&&!se(a)){if(b(a))return Vs(a);if(Fe(a))return a.toString()}return a}function qc(a){return!$(a)||b(a)||bh(a)?a:se(a)&&a.indexOf("%")!=-1?k(Oe(a)):Oe(a)}function $(a){return a!=null}function Me(a){if($(a))return a;throw new Error("Value doesn't exist")}function hl(a,i){return $(a)?a:i}function sa(a){return Kc(a)==="[object Date]"}function se(a){return typeof a=="string"}function b(a){return typeof a=="number"&&Number(a)==a}function Fe(a){return typeof a=="object"&&a!=null}function je(a){return Array.isArray(a)}var Fn=Math.PI,$h=Fn/2,ks=Fn/180,br=180/Fn;function dl(a,i,e){return $(a)?(a=Oe(a),X(a,i,e)):a}function I(a,i,e){if(!b(i)||i<=0){var t=Math.round(a);return e&&t-a==.5&&t--,t}else{var r=Math.pow(10,i);return Math.round(a*r)/r}}function Ph(a,i){if(!b(i)||i<=0)return Math.ceil(a);var e=Math.pow(10,i);return Math.ceil(a*e)/e}function X(a,i,e){if(b(i)){if(b(e)&&e<i){var t=e;e=i,i=t}a<i&&(a=i)}return b(e)&&a>e&&(a=e),a}function N(a){return I(Math.sin(ks*a),10)}function Sh(a){return I(Math.tan(ks*a),10)}function B(a){return I(Math.cos(ks*a),10)}function ie(a,i){return b(a)?b(i)&&i>a?i:a:b(i)?i:null}function le(a,i){return b(a)?b(i)&&i<a?i:a:b(i)?i:null}function Zc(a,i){return a.reduce(function(e,t){return Math.abs(t-i)<Math.abs(e-i)?t:e})}function Ls(a,i){var e=Me(a.start),t=Me(i.start),r=Me(a.end),s=Me(i.end);return Math.max(e,t)<=Math.min(r,s)}function Is(a){var i=Me(a.start),e=Me(a.end);return{start:1-e,end:1-i}}function Qc(a,i){var e=Me(a.start),t=Me(i.start),r=Me(a.end),s=Me(i.end),n=Math.max(e,t),o=Math.min(r,s);if(!(o<n))return{start:n,end:o}}function xe(a,i){return a?(i||(i={x:0,y:0}),Math.sqrt(Math.pow(Math.abs(a.x-i.x),2)+Math.pow(Math.abs(a.y-i.y),2))):0}function Jc(a,i){return a?(i||(i={x:0,y:0}),Math.abs(a.x-i.x)):0}function ef(a,i){return a?(i||(i={x:0,y:0}),Math.abs(a.y-i.y)):0}function tf(a,i,e,t,r){if(!a)return 0;i||(i={x:0,y:0});var s=0,n=a;if(r>0)for(var o=0;o<=r;o++){var l=Vn(a,i,e,t,o/r);s+=xe(n,l),n=l}return s}function rf(a,i,e,t){var r=xe(i,t),s=xe(a,e);return Math.abs(s/r)}function Ma(a,i,e){return b(e)||(e=.5),{x:a.x+(i.x-a.x)*e,y:a.y+(i.y-a.y)*e}}function nt(a,i){i||(i={x:a.x*2,y:a.y*2});var e=i.x-a.x,t=i.y-a.y,r=Math.atan2(t,e)*br;return r<0&&(r+=360),vr(r)}function Rs(a){if(a){var i=a.length;if(i!==0){for(var e=void 0,t=void 0,r,s=void 0,n=0;n<i;n++){var o=a[n];(!b(t)||o.x>t)&&(t=o.x),(!b(e)||o.x<e)&&(e=o.x),(!b(r)||o.y<r)&&(r=o.y),(!b(s)||o.y>s)&&(s=o.y)}return{x:e,y:r,width:t-e,height:s-r}}}return{x:0,y:0,width:0,height:0}}function xr(a){var i=a.length;if(i!==0){for(var e=void 0,t=void 0,r=void 0,s=void 0,n=0;n<i;n++){var o=a[n];e=le(o.x,e),t=le(o.y,t),r=ie(o.x+o.width,r),s=ie(o.y+o.height,s)}return{x:e,y:t,width:r-e,height:s-t}}}function Ch(a,i,e,t){var r=(1-t)*(1-t)*a.x+2*(1-t)*t*e.x+t*t*i.x,s=(1-t)*(1-t)*a.y+2*(1-t)*t*e.y+t*t*i.y;return{x:r,y:s}}function Vn(a,i,e,t,r){var s={x:0,y:0},n=1-r,o=n*n,l=o*n;return s.x=a.x*l+e.x*3*o*r+t.x*3*n*r*r+i.x*r*r*r,s.y=a.y*l+e.y*3*o*r+t.y*3*n*r*r+i.y*r*r*r,s}function cl(a,i,e,t,r,s){return r=pl(r),s=pl(s),{x:(-a.x+i.x/r+e.x)*r,y:(-a.y+i.y/s+e.y)*s}}function fl(a,i,e,t,r,s){return r=pl(r),s=pl(s),{x:(i.x+e.x/r-t.x)*r,y:(i.y+e.y/s-t.y)*s}}function pl(a){return 1-a+1e-5}function vr(a){return a==360?360:a%360}function Li(a,i,e){if(i>e){var t=i;i=e,e=t}a=vr(a);var r=(i-vr(i))/360;a<i&&(a+=360*(r+1));var s=i+(e-i)/2+180,n=i+(e-i)/2-180;return a>e&&(a-360>i?a-=360:a<s?a=e:a=i),a<i&&(a>n?a=i:a=e),a}function ci(a,i,e){var t=Number.MAX_VALUE,r=Number.MAX_VALUE,s=-Number.MAX_VALUE,n=-Number.MAX_VALUE,o=[];b(e)||(e=1),o.push(_h(e,a)),o.push(_h(e,i));for(var l=Math.min(Math.floor(a/90)*90,Math.floor(i/90)*90),u=Math.max(Math.ceil(a/90)*90,Math.ceil(i/90)*90),h=l;h<=u;h+=90)h>=a&&h<=i&&o.push(_h(e,h));for(var p=0;p<o.length;p++){var d=o[p];d.x<t&&(t=d.x),d.y<r&&(r=d.y),d.x>s&&(s=d.x),d.y>n&&(n=d.y)}return{x:t,y:r,width:s-t,height:n-r}}function _h(a,i){return{x:a*B(i),y:a*N(i)}}function ml(a,i){return a.x>=i.x&&a.x<=i.x+i.width&&a.y>=i.y&&a.y<=i.y+i.height}function Ut(a,i){for(var e=a.length,t=0;t<e;++t)if(a[t]===i)return t;return-1}function kn(a,i){for(var e=a.length,t=0;t<e;++t)if(i(a[t]))return!0;return!1}function Er(a,i){for(var e=a.length,t=new Array(e),r=0;r<e;++r)t[r]=i(a[r],r);return t}function M(a,i){for(var e=a.length,t=0;t<e;++t)i(a[t],t)}function af(a,i){for(var e=a.length;e--;)i(a[e],e)}function Ms(a,i){for(var e=a.length,t=0;t<e&&i(a[t],t);++t);}function sf(a,i){for(var e=a.length,t=i;t<e;++t)a[t-i]=a[t];a.length=e-i}function nf(a,i){for(var e=i.length,t=0;t<e;++t)a.push(i[t])}function ee(a,i){var e=!1,t=a.indexOf(i);if(t!==-1){e=!0,a.splice(t,1);for(var r=a.length;t<r;)a[t]===i?(a.splice(t,1),--r):++t}return e}function ri(a,i,e){var t=Ut(a,i);t!==-1&&oa(a,t),e==null?a.push(i):na(a,e,i)}function ja(a,i,e){b(e)?e===0?a.unshift(i):a.splice(e,0,i):a.push(i)}function of(a,i,e){var t=a.indexOf(i);t!==-1&&a.splice(t,1),b(e)?a.splice(e,0,i):a.push(i)}function yl(a){return Array.isArray(a)?a:[a]}function Br(a){for(var i=a.length,e=new Array(i),t=0;t<i;++t)e[t]=a[t];return e}function na(a,i,e){a.splice(i,0,e)}function oa(a,i){a.splice(i,1)}function js(a,i,e){for(var t=0,r=a.length,s=!1;t<r;){var n=t+r>>1,o=i(e,a[n]);o<0?r=n:(o===0&&(s=!0),t=n+1)}return{found:s,index:s?t-1:t}}function gl(a,i){for(var e=a.length,t=0;t<e;++t)if(i(a[t],t))return t;return-1}function Th(a,i){for(var e=a.length,t=0;t<e;)i(a[t])?++t:(a.splice(t,1),--e)}var ye=(function(){function a(i){this._disposed=!1,this._dispose=i}return a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._dispose())},a})();var Pe=(function(a){S(i,a);function i(e){return a.call(this,function(){M(e,function(t){t.dispose()})})||this}return i})(ye);var We=(function(a){S(i,a);function i(){var e=a.call(this,function(){$(e._disposer)&&(e._disposer.dispose(),e._disposer=void 0)})||this;return e}return i.prototype.get=function(){return this._value},i.prototype.set=function(e,t){$(this._disposer)&&this._disposer.dispose(),this._disposer=t,this._value=e},i.prototype.reset=function(){this.set(void 0,void 0)},i})(ye);var Wr=(function(a){S(i,a);function i(){var e=a!==null&&a.apply(this,arguments)||this;return e._counter=0,e}return i.prototype.increment=function(){var e=this;return++this._counter,new ye(function(){--e._counter,e._counter===0&&e.dispose()})},i})(ye);var Oh=!1,vl=[],Ln=[],bl=[],wh=[],ug=1e3/60,xl=typeof requestAnimationFrame=="function"?function(a){requestAnimationFrame(a)}:function(a){setTimeout(a,ug)};function lf(){for(var a=Date.now(),i=vl.length,e=0;e<i;++e)vl[e](a);sf(vl,i);for(var e=0;e<Ln.length;++e)Ln[e](a);Ln.length=0;for(var e=0;e<bl.length;++e)bl[e](a);bl.length=0,vl.length===0&&Ln.length===0?Oh=!1:xl(lf)}function uf(){Oh||(Oh=!0,xl(lf))}function Dh(a){Ln.push(a),uf()}function _l(a){bl.push(a),uf()}function Ah(a){wh.push(a)}function Fh(){for(var a=Date.now(),i=wh.length,e=0;e<i;++e)wh.shift()(a)}var $i=(function(){function a(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}return a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{M(i,function(e){e.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}},a.prototype.hasListeners=function(){return this._listeners.length!==0},a.prototype.hasListenersByType=function(i){return kn(this._listeners,function(e){return(e.type===null||e.type===i)&&!e.killed})},a.prototype.enable=function(){this._enabled=!0},a.prototype.disable=function(){this._enabled=!1},a.prototype.enableType=function(i){delete this._disabled[i]},a.prototype.disableType=function(i,e){e===void 0&&(e=1/0),this._disabled[i]=e},a.prototype._removeListener=function(i){if(this._iterating===0){var e=this._listeners.indexOf(i);if(e===-1)throw new Error("Invalid state: could not remove listener");this._listeners.splice(e,1)}else this._killed.push(i)},a.prototype._removeExistingListener=function(i,e,t,r){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(function(s){s.once===i&&s.type===e&&(t==null||s.callback===t)&&s.context===r&&s.disposer.dispose()})},a.prototype.isEnabled=function(i){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(i)&&this._disabled[i]==null},a.prototype.has=function(i,e,t){var r=gl(this._listeners,function(s){return s.once!==!0&&s.type===i&&(e==null||s.callback===e)&&s.context===t});return r!==-1},a.prototype._shouldDispatch=function(i){if(this._disposed)throw new Error("EventDispatcher is disposed");var e=this._disabled[i];return b(e)?(e<=1?delete this._disabled[i]:--this._disabled[i],!1):this._enabled},a.prototype._eachListener=function(i){var e=this;++this._iterating;try{M(this._listeners,i)}finally{--this._iterating,this._iterating===0&&this._killed.length!==0&&(M(this._killed,function(t){e._removeListener(t)}),this._killed.length=0)}},a.prototype.dispatchImmediately=function(i,e){this._shouldDispatch(i)&&this._eachListener(function(t){!t.killed&&(t.type===null||t.type===i)&&t.dispatch(i,e)})},a.prototype.dispatch=function(i,e){this._shouldDispatch(i)&&this._eachListener(function(t){!t.killed&&(t.type===null||t.type===i)&&Ah(function(){t.killed||t.dispatch(i,e)})})},a.prototype._on=function(i,e,t,r,s,n){var o=this;if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(i,e,t,r);var l={type:e,callback:t,context:r,shouldClone:s,dispatch:n,killed:!1,once:i,disposer:new ye(function(){l.killed=!0,o._removeListener(l)})};return this._listeners.push(l),l},a.prototype.onAll=function(i,e,t){return t===void 0&&(t=!0),this._on(!1,null,i,e,t,function(r,s){return i.call(e,r,s)}).disposer},a.prototype.on=function(i,e,t,r){return r===void 0&&(r=!0),this._on(!1,i,e,t,r,function(s,n){return e.call(t,n)}).disposer},a.prototype.once=function(i,e,t,r){r===void 0&&(r=!0);var s=this._on(!0,i,e,t,r,function(n,o){s.disposer.dispose(),e.call(t,o)});return s.disposer},a.prototype.off=function(i,e,t){this._removeExistingListener(!1,i,e,t)},a.prototype.copyFrom=function(i){var e=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(i===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");M(i._listeners,function(t){!t.killed&&t.shouldClone&&(t.type===null?e.onAll(t.callback,t.context):t.once?e.once(t.type,t.callback,t.context):e.on(t.type,t.callback,t.context))})},a})();var In=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t.target=e,t}return i.prototype.copyFrom=function(e){var t=this;if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");M(e._listeners,function(r){r.context!==e.target&&!r.killed&&r.shouldClone&&(r.type===null?t.onAll(r.callback,r.context):r.once?t.once(r.type,r.callback,r.context):t.on(r.type,r.callback,r.context))})},i})($i);function pf(a){return function(i){for(var e in a)if(Xi(a,e)&&!i([e,a[e]]))break}}function df(a){var i=[];for(var e in a)Xi(a,e)&&i.push(e);return i}function hg(a,i){return df(a).sort(i)}function Xi(a,i){return{}.hasOwnProperty.call(a,i)}function Vh(a,i){for(var e in a)if(Xi(a,e)&&!i(e,a[e]))break}function q(a,i){Vh(a,function(e,t){return i(e,t),!0})}function Ji(a,i,e){M(hg(a,e),function(t){i(t,a[t])})}function Rn(a,i){return Object.assign({},a,i)}function cf(a){return JSON.parse(JSON.stringify(a))}function Ke(a,i,e){M(e,function(t){$(a[t])&&(i[t]=a[t])})}function ff(a,i,e){M(e,function(t){i[t]=a[t]})}function Ns(a,i){Ke(a,i,df(a))}function _r(a){return function(i){for(var e=a.length,t=0;t<e&&i(a[t]);++t);}}function mf(a){var i=0;return a(function(e){return++i,!0}),i}function Na(a){var i=[];return a(function(e){return i.push(e),!0}),i}function St(a,i){a(i)}function V(a,i){a(function(e){return i(e),!0})}function Hr(a,i){return _r(Na(a).sort(i))}function $l(a,i){return function(e){return a(function(t){return e(i(t))})}}function yf(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];return function(e){for(var t=!0,r=function(o){return t=e(o)},s=a.length,n=0;n<s&&(a[n](r),!!t);++n);}}function gf(a){return function(i){var e=!0,t=function(r){return e=i(r)};a(function(r){return r(t),e})}}function Yi(a){return function(i){var e=0;a(function(t){return i([e++,t])})}}function vf(a,i){var e;return a(function(t){return i(t)?(e=t,!1):!0}),e}function Es(a,i){var e=!1;return a(function(t){return i(t)?(e=!0,!1):!0}),e}var Ea=(function(){function a(i,e){this.createNewItems=!1,this.list=i,this._create=e,this.reset()}return a.prototype.reset=function(){this._listCopy=Na(this.list.iterator())},a.prototype.clear=function(){this._listCopy.length=0},a.prototype.getFirst=function(){return this.returnItem(0)},a.prototype.getLast=function(){return this.returnItem(this._listCopy.length-1)},a.prototype.find=function(i){var e=gl(this._listCopy,i);if(e!==-1){var t=this._listCopy[e];return ee(this._listCopy,t),t}else return this.getLast()},a.prototype.removeItem=function(i){return ee(this._listCopy,i)},a.prototype.returnItem=function(i){if(i>=0&&i<this._listCopy.length){var e=this._listCopy[i];return ee(this._listCopy,e),e}else if(this.createNewItems)return this._create()},a.prototype.iterator=function(){return _r(this._listCopy)},a})();function Mn(a,i){return a===i?0:a<i?-1:1}function kh(a,i){return new Array(i+1).join(a)}function bf(a){for(var i="",e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=0;t<a;t++)i+=e.charAt(Math.floor(Math.random()*e.length));return i}var Pi=(function(a){S(i,a);function i(e){var t=this,r=e.events.on("removed",function(s){s.oldValue.dispose()},void 0,!1);return t=a.call(this,function(){r.dispose(),V(e.iterator(),function(s){var n=s[1];n.dispose()})})||this,t}return i})(ye);var _e=(function(){function a(){this.events=new $i,this._dictionary={}}return a.prototype.hasKey=function(i){return Xi(this._dictionary,i)},a.prototype.getKey=function(i){return this._dictionary[i]},a.prototype.insertKey=function(i,e){if(Xi(this._dictionary,i))throw new Error("Key "+i+" already exists in dictionary");this._dictionary[i]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:i,newValue:e})},a.prototype.setKey=function(i,e){if(Xi(this._dictionary,i)){var t=this._dictionary[i];t!==e&&(this._dictionary[i]=e,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:i,oldValue:t,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}))}else this._dictionary[i]=e,this.events.isEnabled("insertKey")&&this.events.dispatchImmediately("insertKey",{type:"insertKey",target:this,key:i,newValue:e})},a.prototype.updateKey=function(i,e){if(Xi(this._dictionary,i)){var t=this._dictionary[i],r=e(t);t!==r&&(this._dictionary[i]=r,this.events.isEnabled("setKey")&&this.events.dispatchImmediately("setKey",{type:"setKey",target:this,key:i,oldValue:t,newValue:r}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}))}else throw new Error("Key "+i+" doesn't exist in dictionary")},a.prototype.removeKey=function(i){if(Xi(this._dictionary,i)){var e=this._dictionary[i];delete this._dictionary[i],this.events.isEnabled("removeKey")&&this.events.dispatchImmediately("removeKey",{type:"removeKey",target:this,key:i,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e})}},a.prototype.insertKeyIfEmpty=function(i,e){return this.hasKey(i)||this.insertKey(i,e()),this.getKey(i)},a.prototype.clear=function(){var i=this;this.events.isEnabled("removed")&&q(this._dictionary,function(e,t){i.events.dispatchImmediately("removed",{type:"removed",target:i,oldValue:t})}),this._dictionary={},this.events.isEnabled("cleared")&&this.events.dispatchImmediately("cleared",{type:"cleared",target:this})},a.prototype.copyFrom=function(i){var e=this;V(i.iterator(),function(t){e.setKey(t[0],t[1])})},a.prototype.iterator=function(){return pf(this._dictionary)},a.prototype[Symbol.iterator]=function(){var i,e,t,r;return Ae(this,function(s){switch(s.label){case 0:i=[];for(e in this._dictionary)i.push(e);t=0,s.label=1;case 1:return t<i.length?(r=i[t],Xi(this._dictionary,r)?[4,[r,this._dictionary[r]]]:[3,3]):[3,4];case 2:s.sent(),s.label=3;case 3:return t++,[3,1];case 4:return[2]}})},a.prototype.each=function(i){V(this.iterator(),function(e){var t=aa(e,2),r=t[0],s=t[1];return i(r,s)})},a.prototype.sortedIterator=function(){return Hr(this.iterator(),function(i,e){return Mn(i[0],e[0])})},a})();var $r=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t.template=e,t}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;V(e.iterator(),function(r){t.setKey(r[0],r[1].clone())})},i.prototype.create=function(e){var t=this;return this.insertKeyIfEmpty(e,function(){return t.template.clone()})},i})(_e);var xf=(function(){function a(){this._storage=new _e,this.ttl=1e3}return a.prototype.set=function(i,e,t,r){var s=this._storage.insertKeyIfEmpty(i,function(){return new _e}),n={touched:new Date().getTime(),ttl:b(r)?r:this.ttl,value:t};s.setKey(e,n)},a.prototype.get=function(i,e,t){if(t===void 0&&(t=void 0),this._storage.hasKey(i)){var r=this._storage.getKey(i);if(r.hasKey(e)){var s=r.getKey(e);return s.ttl&&s.touched+s.ttl<new Date().getTime()&&(s.expired=!0),s.expired?(r.removeKey(e),t):s.value}else return t}else return t},a.prototype.clear=function(i){i?this._storage.removeKey(i):this._storage.clear()},a})();var la=new xf;var _f=(function(){function a(){var i=this;this.events=new $i,this.themes=[],this.loadedThemes={},this._uidCount=0,this.registeredClasses={},this._placeholders={},this.invalidSprites={},this.invalidDatas={},this.invalidRawDatas=[],this.invalidDataItems=[],this.invalidDataRange=[],this.invalidPositions={},this.invalidLayouts={},this.baseSprites=[],this.baseSpritesByUid={},this.queue=[],this.deferred=[],this.uid=this.getUniqueId(),this.invalidSprites.noBase=[],this.invalidDatas.noBase=[],this.invalidLayouts.noBase=[],this.invalidPositions.noBase=[],typeof addEventListener<"u"&&(addEventListener("beforeprint",function(){M(i.baseSprites,function(e){var t=e.paper.svg;t.setAttribute("viewBox","0 0 "+t.clientWidth+" "+t.clientHeight)})}),addEventListener("afterprint",function(){M(i.baseSprites,function(e){var t=e.paper.svg;t.removeAttribute("viewBox")})}))}return a.prototype.getUniqueId=function(){var i=this._uidCount;return this._uidCount+=1,"id-"+i},Object.defineProperty(a.prototype,"map",{get:function(){return this._map||(this._map=new _e),this._map},enumerable:!0,configurable:!0}),a.prototype.setCache=function(i,e,t){la.set(this.uid,i,e,t)},a.prototype.getCache=function(i,e){return e===void 0&&(e=void 0),la.get(this.uid,i,e)},a.prototype.dispatch=function(i,e){this.events.isEnabled(i)&&(e?(e.type=i,e.target=e.target||this,this.events.dispatch(i,{type:i,target:this})):this.events.dispatch(i,{type:i,target:this}))},a.prototype.dispatchImmediately=function(i,e){this.events.isEnabled(i)&&(e?(e.type=i,e.target=e.target||this,this.events.dispatchImmediately(i,e)):this.events.dispatchImmediately(i,{type:i,target:this}))},a.prototype.getPlaceholder=function(i){return $(this._placeholders[i])?this._placeholders[i]:(this._placeholders[i]="__amcharts_"+i+"_"+bf(8)+"__",this._placeholders[i])},a.prototype.addToInvalidComponents=function(i){i.baseId?ri(this.invalidDatas[i.baseId],i):ri(this.invalidDatas.noBase,i)},a.prototype.removeFromInvalidComponents=function(i){i.baseId&&ee(this.invalidDatas[i.baseId],i),ee(this.invalidDatas.noBase,i)},a.prototype.addToInvalidSprites=function(i){i.baseId?ja(this.invalidSprites[i.baseId],i):ja(this.invalidSprites.noBase,i)},a.prototype.removeFromInvalidSprites=function(i){i.baseId&&ee(this.invalidSprites[i.baseId],i),ee(this.invalidSprites.noBase,i)},a.prototype.addToInvalidPositions=function(i){i.baseId?ja(this.invalidPositions[i.baseId],i):ja(this.invalidPositions.noBase,i)},a.prototype.removeFromInvalidPositions=function(i){i.baseId&&ee(this.invalidPositions[i.baseId],i),ee(this.invalidPositions.noBase,i)},a.prototype.addToInvalidLayouts=function(i){i.baseId?ja(this.invalidLayouts[i.baseId],i):ja(this.invalidLayouts.noBase,i)},a.prototype.removeFromInvalidLayouts=function(i){i.baseId&&ee(this.invalidLayouts[i.baseId],i),ee(this.invalidLayouts.noBase,i)},a})();var _=new _f;function Lh(a,i){var e=_.registeredClasses[i];return e!=null&&a instanceof e}var $f={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgrey:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},grey:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgrey:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},rebeccapurple:{r:102,g:51,b:153},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}};function Pf(a,i){var e;return $f[a]?e=$f[a]:a.charAt(0)==="#"?e=pg(a):a.match(/^rgba?\(/)&&(e=cg(a)),e||(e={r:0,g:0,b:0,a:1}),$(i)&&(e.a=i),e}function pg(a){var i=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(i,function(t,r,s,n){return r+r+s+s+n+n});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16)}:dg(a)}function dg(a){var i=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])$/i;a=a.replace(i,function(t,r,s,n,o){return r+r+s+s+n+n+o+o});var e=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(a);return e?{r:parseInt(e[1],16),g:parseInt(e[2],16),b:parseInt(e[3],16),a:parseInt(e[4],16)/256}:void 0}function cg(a){a=a.replace(/[ ]/g,"");var i=a.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(i)i.push("1");else if(i=a.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!i)return;return{r:parseInt(i[1]),g:parseInt(i[2]),b:parseInt(i[3]),a:parseFloat(i[4])}}function Sf(a){return"#"+Ih(a.r.toString(16))+Ih(a.g.toString(16))+Ih(a.b.toString(16))}function Cf(a){return $(a.a)&&a.a!==1?"rgba("+a.r+","+a.g+","+a.b+","+a.a+")":"rgb("+a.r+","+a.g+","+a.b+")"}function Ih(a){return a.length==1?"0"+a:""+a}function Ba(a,i,e){return e=X(e,0,1),a?i?{r:a.r+Math.round((i.r-a.r)*e),g:a.g+Math.round((i.g-a.g)*e),b:a.b+Math.round((i.b-a.b)*e),a:(a.a||1)+Math.round(((i.a||1)-(a.a||1))*e)}:a:i||a}function Tf(a,i){return a&&{r:Math.max(0,Math.min(255,a.r+Pl(a.r,i))),g:Math.max(0,Math.min(255,a.g+Pl(a.g,i))),b:Math.max(0,Math.min(255,a.b+Pl(a.b,i))),a:a.a}}function Pl(a,i){var e=i>0?255-a:a;return Math.round(e*i)}function Of(a,i){if(a){var e=Math.min(Math.max(a.r,a.g,a.b),230),t=Pl(e,i);return{r:Math.max(0,Math.min(255,Math.round(a.r+t))),g:Math.max(0,Math.min(255,Math.round(a.g+t))),b:Math.max(0,Math.min(255,Math.round(a.b+t))),a:a.a}}else return a}function wf(a,i){if(a==null||i==1)return a;var e=Nn(a);return e.s=i,Rh(e)}function Rh(a){var i,e,t,r=a.h,s=a.s,n=a.l;if(s==0)i=e=t=n;else{var o=function(p,d,c){return c<0&&(c+=1),c>1&&(c-=1),c<.16666666666666666?p+(d-p)*6*c:c<.5?d:c<.6666666666666666?p+(d-p)*(.6666666666666666-c)*6:p},l=n<.5?n*(1+s):n+s-n*s,u=2*n-l;i=o(u,l,r+1/3),e=o(u,l,r),t=o(u,l,r-1/3)}return{r:Math.round(i*255),g:Math.round(e*255),b:Math.round(t*255)}}function Nn(a){var i=a.r/255,e=a.g/255,t=a.b/255,r=Math.max(i,e,t),s=Math.min(i,e,t),n=0,o=0,l=(r+s)/2;if(r===s)n=o=0;else{var u=r-s;switch(o=l>.5?u/(2-r-s):u/(r+s),r){case i:n=(e-t)/u+(e<t?6:0);break;case e:n=(t-i)/u+2;break;case t:n=(i-e)/u+4;break}n/=6}return{h:n,s:o,l}}function Sl(a){return(a.r*299+a.g*587+a.b*114)/1e3>=128}var de=(function(){function a(i){this._value=i}return Object.defineProperty(a.prototype,"rgb",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"hex",{get:function(){return this._value?Sf(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rgba",{get:function(){return this._value?Cf(this._value):"none"},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"alpha",{get:function(){return this._value!=null&&this._value.a!=null?this._value.a:1},set:function(i){this._value&&(this._value.a=i)},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"lightColor",{get:function(){return this._lightColor||(this._lightColor=new a({r:255,g:255,b:255})),this._lightColor},set:function(i){this._lightColor=i},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"darkColor",{get:function(){return this._darkColor||(this._darkColor=new a({r:0,g:0,b:0})),this._darkColor},set:function(i){this._darkColor=i},enumerable:!0,configurable:!0}),a.prototype.toString=function(){return this.alpha<1?this.rgba:this.hex},a.prototype.lighten=function(i){return new a(Tf(this.rgb,i))},a.prototype.brighten=function(i){return new a(Of(this.rgb,i))},a.prototype.saturate=function(i){return new a(wf(this.rgb,i))},Object.defineProperty(a.prototype,"alternative",{get:function(){if(this.rgb!=null)return Sl(this.rgb)?this.darkColor:this.lightColor;throw new Error("Color does not exist")},enumerable:!0,configurable:!0}),a})();function Z(a,i){if(!$(a))return new de(void 0);if(typeof a=="string"){var e="_color_"+a+"_"+(i||"1"),t=_.getCache(e);if(t)return new de({r:t.r,g:t.g,b:t.b,a:t.a});var r=Pf(a,i);return _.setCache(e,r),new de(r)}return a instanceof de?($(i)&&(a.alpha=i),a):new de(a)}function Df(a){return a instanceof de}function Af(a){return Z(a)}function Qt(a){return $(a)&&!Df(a)?Af(a):a}var ue={verbose:!0,commercialLicense:!1,classNamePrefix:"amcharts-",autoSetClassName:!1,minPolylineStep:.5,onlyShowOnViewport:!1,queue:!1,autoDispose:!1,licenses:[],suppressErrors:!1,suppressWarnings:!1,animationsEnabled:!0,nonce:"",deferredDelay:100,disableHoverOnTransform:"never",pixelPerfectPrecision:0};var Mh=(function(){function a(i,e,t){this._array=i,this._start=e,this._end=t}return a.prototype.iterator=function(){var i=this;return function(e){if(i._start!==i._end)if(i._start<i._end)for(var t=i._start;t<i._end&&e(i._array[t]);++t);else for(var t=i._start-1;t>=i._end&&e(i._array[t]);--t);}},a.prototype.backwards=function(){return new a(this._array,this._end,this._start)},a.prototype.range=function(i,e){if(i<=e){if(this._start===this._end)return this;if(this._start<this._end){var t=e-i;return i=Math.max(this._start+i,this._start),e=Math.min(i+t,this._end),new a(this._array,i,e)}else{var t=e-i;return i=Math.max(this._start-i,this._end),e=Math.max(i-t,this._end),new a(this._array,i,e)}}else throw new Error("Start index must be lower than end index")},a})();var fg=(function(a){S(i,a);function i(e,t,r){var s=a.call(this,[e.events.on("inserted",function(n){var o=n.newValue,l=s._getKey(o),u=0;St(e.iterator(),function(h){return h===o?!1:(s._getKey(h)===l&&++u,!0)}),s._insert(o,l,u)},void 0,!1),e.events.on("removed",function(n){s._remove(n.oldValue)},void 0,!1)])||this;return s._keys=[],s._groups={},s._getKey=t,s._sort=r,V(e.iterator(),function(n){s._insert(n,t(n))}),s}return i.prototype._insert=function(e,t,r){if(this._groups[t]==null){this._groups[t]=[];var s=js(this._keys,this._sort,t),n=s.found,o=s.index;if(n)throw new Error("Key already exists: "+t);na(this._keys,o,t)}r==null?this._groups[t].push(e):na(this._groups[t],r,e)},i.prototype._remove=function(e){var t=this._getKey(e),r=this._groups[t];if(r!=null&&(ee(r,e),r.length===0)){delete this._groups[t];var s=js(this._keys,this._sort,t),n=s.found,o=s.index;if(n)oa(this._keys,o);else throw new Error("Key doesn't exist: "+t)}},i.prototype.iterator=function(){var e=this;return gf($l(_r(this._keys),function(t){return _r(e._groups[t])}))},i})(Pe);var ge=(function(a){S(i,a);function i(e,t){t===void 0&&(t=!0);var r=this;if(t){var s=e.events.on("removed",function(n){n.oldValue.dispose()},void 0,!1);r=a.call(this,function(){s.dispose(),V(e.iterator(),function(n){n.dispose()})})||this}else r=a.call(this,function(){V(e.iterator(),function(n){n.dispose()})})||this;return r}return i})(ye);function En(a,i){if(!(a>=0&&a<i))throw new Error("Index out of bounds: "+a)}var he=(function(){function a(i){i===void 0&&(i=[]),this.events=new $i,this._values=i}return Object.defineProperty(a.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),a.prototype.contains=function(i){return this._values.indexOf(i)!==-1},a.prototype.removeValue=function(i){for(var e=0,t=this._values.length;e<t;)this._values[e]===i?(this.removeIndex(e),--t):++e},a.prototype.indexOf=function(i){return Ut(this._values,i)},Object.defineProperty(a.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),a.prototype.hasIndex=function(i){return i>=0&&i<this._values.length},a.prototype.getIndex=function(i){return this._values[i]},a.prototype.setIndex=function(i,e){En(i,this._values.length);var t=this._values[i];return t!==e&&(this._values[i]=e,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:i,oldValue:t,newValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:t}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})),t},a.prototype.insertIndex=function(i,e){En(i,this._values.length+1),na(this._values,i,e),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:i,newValue:e}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:e})},a.prototype._sortQuicksort=function(i,e,t){if(i<e){var r=this._sortPartition(i,e,t);this._sortQuicksort(i,r,t),this._sortQuicksort(r+1,e,t)}},a.prototype._sortPartition=function(i,e,t){for(var r=this._values,s=r[i],n=i-1,o=e+1;;){do++n;while(t(r[n],s)<0);do--o;while(t(r[o],s)>0);if(n>=o)return o;this.swap(n,o)}},a.prototype.sort=function(i){this._sortQuicksort(0,this._values.length-1,i)},a.prototype.swap=function(i,e){var t=this._values.length;if(En(i,t),En(e,t),i!==e){var r=this._values[i],s=this._values[e];this._values[i]=s,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:i,oldValue:r,newValue:s}),this._values[e]=r,this.events.isEnabled("setIndex")&&this.events.dispatchImmediately("setIndex",{type:"setIndex",target:this,index:e,oldValue:s,newValue:r})}},a.prototype.removeIndex=function(i){En(i,this._values.length);var e=this._values[i];return oa(this._values,i),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:i,oldValue:e}),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,oldValue:e}),e},a.prototype.moveValue=function(i,e){var t=this.indexOf(i);if(t!==-1){var r=this._values[t];oa(this._values,t),this.events.isEnabled("removeIndex")&&this.events.dispatchImmediately("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:r})}e==null?(e=this._values.length,this._values.push(i)):na(this._values,e,i),this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:i}),t===-1&&this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i})},a.prototype.push=function(i){var e=this._values.push(i)-1;return this.events.isEnabled("insertIndex")&&this.events.dispatchImmediately("insertIndex",{type:"insertIndex",target:this,index:e,newValue:i}),this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,newValue:i}),i},a.prototype.unshift=function(i){this.insertIndex(0,i)},a.prototype.pushAll=function(i){var e=this;M(i,function(t){e.push(t)})},a.prototype.copyFrom=function(i){this.pushAll(i._values)},a.prototype.pop=function(){var i=this._values.length-1;return i<0?void 0:this.removeIndex(this._values.length-1)},a.prototype.shift=function(){return this._values.length?this.removeIndex(0):void 0},a.prototype.setAll=function(i){var e=this,t=Br(this._values);this._values.length=0,M(i,function(r){e._values.push(r)}),this.events.isEnabled("setAll")&&this.events.dispatchImmediately("setAll",{type:"setAll",target:this,oldArray:t,newArray:this._values}),this.events.isEnabled("removed")&&M(t,function(r){e.events.dispatchImmediately("removed",{type:"removed",target:e,oldValue:r})}),this.events.isEnabled("inserted")&&M(this._values,function(r){e.events.dispatchImmediately("inserted",{type:"inserted",target:e,newValue:r})})},a.prototype.clear=function(){this.setAll([])},a.prototype.iterator=function(){return _r(this._values)},a.prototype[Symbol.iterator]=function(){var i,e;return Ae(this,function(t){switch(t.label){case 0:i=this._values.length,e=0,t.label=1;case 1:return e<i?[4,this._values[e]]:[3,4];case 2:t.sent(),t.label=3;case 3:return++e,[3,1];case 4:return[2]}})},a.prototype.each=function(i){M(this._values,i)},a.prototype.range=function(i,e){if(i<=e){var t=e-i;return i=Math.max(i,0),e=Math.min(i+t,this._values.length),new Mh(this._values,i,e)}else throw new Error("Start index must be lower than end index")},a.prototype.backwards=function(){return new Mh(this._values,this._values.length,0)},a})();var Te=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t.template=e,t}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;V(e.iterator(),function(r){t.push(r.clone())})},i.prototype.create=function(e){var t=e!=null?new e:this.template.clone();return this.push(t),t},i.prototype.clone=function(){for(var e=new i(this.template),t=this.values,r=t.length,s=0;s<r;++s)e.push(t[s].clone());return e},i})(he);var jh=(function(){function a(i){this._values=[],this.events=new $i,i!=null&&this.setAll(i)}return Object.defineProperty(a.prototype,"values",{get:function(){return this._values},enumerable:!0,configurable:!0}),a.prototype._insert=function(i){return this._values.push(i),this._values.length-1},Object.defineProperty(a.prototype,"length",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),a.prototype.indexOf=function(i){return Ut(this._values,i)},a.prototype.contains=function(i){return this.indexOf(i)!==-1},a.prototype.getIndex=function(i){return this._values[i]},Object.defineProperty(a.prototype,"first",{get:function(){return this._values[0]},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"last",{get:function(){return this._values[this._values.length-1]},enumerable:!0,configurable:!0}),a.prototype.insert=function(i){var e=this._insert(i);this.events.isEnabled("inserted")&&this.events.dispatchImmediately("inserted",{type:"inserted",target:this,index:e,newValue:i})},a.prototype.remove=function(i){var e=this.indexOf(i);if(e!==-1){var t=this._values[e];oa(this._values,e),this.events.isEnabled("removed")&&this.events.dispatchImmediately("removed",{type:"removed",target:this,index:e,oldValue:t})}},a.prototype.setAll=function(i){var e=this;af(this._values,function(t,r){e._values.pop(),e.events.isEnabled("removed")&&e.events.dispatchImmediately("removed",{type:"removed",target:e,index:r,oldValue:t})}),M(i,function(t){e.insert(t)})},a.prototype.clear=function(){this.setAll([])},a.prototype.slice=function(i,e){var t=new a;return t._values=this._values.slice(i,e),t},a.prototype.findClosestIndex=function(i,e,t){t===void 0&&(t="any");var r=-1,s,n,o=0;return St(this.iterator(),function(l){var u=e(l);if(t==="any"){if(u===i)return r=o,!1;var h=Math.abs(i-u);(!$(n)||n>h)&&(r=o,s=u,n=h)}else t==="left"&&u<i?(!$(s)||s<u)&&(r=o,s=u):t==="right"&&u>=i&&(!$(s)||s>=u)&&(r=o,s=u);return++o,!0}),r===-1&&(t==="left"?r=0:t==="right"&&(r=this.length-1)),r},a.prototype.iterator=function(){return _r(this._values)},a.prototype[Symbol.iterator]=function(){var i,e;return Ae(this,function(t){switch(t.label){case 0:i=this._values.length,e=0,t.label=1;case 1:return e<i?[4,this._values[e]]:[3,4];case 2:t.sent(),t.label=3;case 3:return++e,[3,1];case 4:return[2]}})},a.prototype.each=function(i){M(this._values,i)},a})();var Bn=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t._ordering=e,t}return i.prototype._insert=function(e){var t=js(this._values,this._ordering,e).index;return na(this._values,t,e),t},i.prototype.indexOf=function(e){var t=js(this._values,this._ordering,e),r=t.found,s=t.index;return r?s:-1},i.prototype.update=function(e){var t=Ut(this._values,e);if(t!==-1){var r=this._values.length-1;(t===0||this._ordering(this._values[t-1],e)<0)&&(t===r||this._ordering(e,this._values[t+1])<0)||(oa(this._values,t),this._insert(e))}},i})(jh);var ua=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t.template=e,t}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;V(e.iterator(),function(r){t.insert(r.clone())})},i.prototype.slice=function(e,t){var r=new i(this.template);return r._values=this._values.slice(e,t),r},i.prototype.create=function(e){var t=e!=null?new e:this.template.clone();return this.insert(t),t},i})(jh);var Wn=(function(a){S(i,a);function i(e,t){var r=a.call(this,t)||this;return r.template=e,r}return Object.defineProperty(i.prototype,"template",{get:function(){return this._template},set:function(e){e.isTemplate=!0,this._template=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;V(e.iterator(),function(r){t.insert(r.clone())})},i.prototype.create=function(e){var t=e!=null?new e:this.template.clone();return this.insert(t),t},i})(Bn);function fi(a,i){return a===i?0:a<i?-1:1}function Hs(a){switch(a){case 0:return 0;case-1:return 1;case 1:return-1}}function Cl(a,i){return a===0?i:a}var Ff=(function(){function a(){this._callbackId=0,this._callbacks=new Bn(function(i,e){return Cl(fi(i.priority,e.priority),fi(i.id,e.id))})}return a.prototype.addAll=function(i,e,t,r,s){r===void 0&&(r=0),this._callbacks.insert({id:++this._callbackId,key:e,callback:t,priority:r,scope:s,type:i})},a.prototype.isEnabled=function(i,e){return kn(this._callbacks.values,function(t){return t.key===e&&i instanceof t.type})},a.prototype.applyAll=function(i,e,t){var r=this._callbacks.values,s=r.length;if(s==0)return t;for(var n=0;n<s;++n){var o=r[n];o.key===e&&i instanceof o.type&&(t=o.callback.call(o.scope,t,i,e))}return t},a})();var Hn=new Ff,ut=(function(){function a(i){this._callbackId=0,this._callbacks=new Bn(function(e,t){return Cl(fi(e.priority,t.priority),fi(e.id,t.id))}),this._disabled={},this.object=i,this.events=this._callbacks.events}return a.prototype.add=function(i,e,t,r){t===void 0&&(t=0),this._callbacks.insert({id:++this._callbackId,key:i,callback:e,priority:t,scope:r})},a.prototype.has=function(i,e,t,r){return t===void 0&&(t=0),Es(this._callbacks.iterator(),function(s){return s.key===i&&s.callback===e&&s.priority===t&&s.scope===r})},a.prototype.remove=function(i,e){var t=this;M(Na(this._callbacks.iterator()),function(r){r.key===i&&(!b(e)||e===r.priority)&&t._callbacks.remove(r)})},a.prototype.enableKey=function(i){delete this._disabled[i]},a.prototype.disableKey=function(i,e){e===void 0&&(e=1/0),this._disabled[i]=e},a.prototype._hasListenersByType=function(i){return kn(this._callbacks.values,function(e){return e.key===i})},a.prototype.isEnabled=function(i){return this._disabled[i]==null&&(this._hasListenersByType(i)||Hn.isEnabled(this.object,i))},a.prototype._shouldDispatch=function(i){var e=this._disabled[i];return b(e)?(e<=1?delete this._disabled[i]:--this._disabled[i],!1):!0},a.prototype.apply=function(i,e){if(this._shouldDispatch(i)){var t=this._callbacks.values,r=t.length;if(r>0)for(var s=0;s<r;++s){var n=t[s];n.key===i&&(e=n.callback.call(n.scope,e,this.object,i))}return e=Hn.applyAll(this.object,i,e),e}else return e},a.prototype.keys=function(){return Na($l(this._callbacks.iterator(),function(i){return i.key}))},a.prototype.copyFrom=function(i){var e=this;V(i._callbacks.iterator(),function(t){e.add(t.key,t.callback,t.priority,t.scope)}),q(i._disabled,function(t,r){e._disabled[t]=r})},a.prototype.clear=function(){this._callbacks.clear()},a})();var Ze=(function(){function a(){this._disposed=!1,this._disposers=[],this.className="BaseObject"}return a.prototype.debug=function(){},Object.defineProperty(a.prototype,"uid",{get:function(){return this._uid||(this._uid=_.getUniqueId(),_.map.setKey(this._uid,this)),this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"id",{get:function(){return this._id},set:function(i){this._id=i},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"map",{get:function(){return this._map||(this._map=new _e),this._map},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"delayedMap",{get:function(){return this._delayedMap||(this._delayedMap=new _e),this._delayedMap},enumerable:!0,configurable:!0}),a.prototype.addDelayedMap=function(i,e){var t=this.delayedMap;t.hasKey(e)||t.setKey(e,[]);var r=t.getKey(e);r.push({property:i,target:this})},a.prototype.processDelayedMap=function(){var i=this;this.delayedMap.each(function(e,t){if(i.map.hasKey(e)){var r=i.map.getKey(e);M(t,function(s){s.target[s.property]=r}),i.delayedMap.removeKey(e)}})},a.prototype.applyTheme=function(){var i=this;if(_){var e=this.getCurrentThemes();e&&M(e,function(t,r){t(i)})}},Object.defineProperty(a.prototype,"themes",{get:function(){return this._themes},set:function(i){this._themes=i},enumerable:!0,configurable:!0}),a.prototype.getCurrentThemes=function(){return this.themes||_.themes},a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._disposers;for(this._disposers=null;i.length!==0;){var e=i.shift();e.dispose()}this.clearCache(),this.clonedFrom&&this.clonedFrom.clones.removeValue(this);var t=this._uid;t!=null&&_.map.removeKey(t)}},a.prototype.addDisposer=function(i){this._disposers.push(i)},a.prototype.removeDispose=function(i){if(!this._disposed){var e=Ut(this._disposers,i);e>-1&&this._disposers.splice(e,1)}i.dispose()},a.prototype.clone=function(i){i||(i="clone-"+_.getUniqueId());var e=new this.constructor;return e.cloneId=i,e.copyFrom(this),e},Object.defineProperty(a.prototype,"clones",{get:function(){return this._clones||(this._clones=new he),this._clones},enumerable:!0,configurable:!0}),a.prototype.copyFrom=function(i){i.clones.push(this),this.clonedFrom=i},Object.defineProperty(a.prototype,"className",{get:function(){return this._className},set:function(i){this._className=i},enumerable:!0,configurable:!0}),a.prototype.setCache=function(i,e,t){la.set(this.uid,i,e,t)},a.prototype.getCache=function(i,e){return e===void 0&&(e=void 0),la.get(this.uid,i,e)},a.prototype.clearCache=function(){la.clear(this.uid)},a.prototype.setTimeout=function(i,e){var t=this,r=setTimeout(function(){t.removeDispose(s),i()},e),s=new ye(function(){clearTimeout(r)});return this._disposers.push(s),s},a.prototype.setInterval=function(i,e){var t=this,r=setInterval(function(){t.removeDispose(s),i()},e),s=new ye(function(){clearTimeout(r)});return this._disposers.push(s),s},Object.defineProperty(a.prototype,"config",{set:function(i){try{this.processConfig(i)}catch(e){this.raiseCriticalError(e)}},enumerable:!0,configurable:!0}),a.prototype.processConfig=function(i){var e=this;if(i){var t=this;if(Ji(i,function(s,n){var o=n;if(s=="callback"&&typeof n=="function"&&n.call(t),e.hasProperty(s)){var l;if(Fe(o)&&$(o.type)&&(!Fe(t[s])||!$(t[s].className)||o.forceCreate||t[s].className!=o.type)&&!e.asIs(s)?(l=e.createClassInstance(o.type),l?t[s]=l:l=t[s]):l=t[s],l instanceof ut)e.processAdapters(l,o);else if(l instanceof $i)e.processEvents(l,o);else if(s=="locale"&&se(o))window["am4lang_"+o]&&(t[s]=window["am4lang_"+o]);else if(s=="parent"&&se(o)){var u=e.map.getKey(o);u?t[s]=u:e.addDelayedMap("parent",o)}else if(e.asIs(s))t[s]=o;else if(e.asFunction(s)&&se(o))if($(_.registeredClasses[o]))t[s]=_.registeredClasses[o];else throw Error("Invalid easing function: "+o);else if(o instanceof a)t[s]=o;else if(l instanceof a)l.config=o;else if(l instanceof Te||l instanceof ua||l instanceof Wn){if(je(o))l instanceof Te?e.processListTemplate(o,l):e.processOrderedTemplate(o,l);else if(Fe(o))if(o instanceof a)l.template=o;else{var h=void 0;$(o.template)?h=o.template:h=o,l.template instanceof a?l.template.config=h:q(h,function(p,d){var c=l.template[p];c instanceof ut?e.processAdapters(c,d):c instanceof $i?e.processEvents(c,d):c instanceof $r?e.processDictionaryTemplate(c,d):l.template[p]instanceof a?l.template[p].config=d:Fe(d)&&$(d.type)?(c=e.createClassInstance(d.type),c?(c instanceof a&&(c.config=d),l.template[p]=c):l.template[p]=d):c instanceof he?e.processList(d,c):l.template[p]=e.maybeColorOrPercent(d)}),$(o.values)&&(l instanceof Te?e.processListTemplate(o.values,l):e.processOrderedTemplate(o.values,l))}}else l instanceof he?s=="children"?e.processList(o,l,e):e.processList(o,l):l instanceof $r?e.processDictionaryTemplate(l,o):l instanceof _e?e.processDictionary(l,o):l instanceof de||l instanceof ae?t[s]=e.maybeColorOrPercent(o):Fe(l)&&Fe(o)?Ns(o,l):(o=e.maybeColorOrPercent(o),t[s]=o)}else e.isReserved(s)||(t[s]=o)},this.configOrder),this.processingErrors.length){var r=this.processingErrors.join(`
|
|
3
|
-
`);throw this._processingErrors=[],Error(r)}}},a.prototype.maybeColorOrPercent=function(i){if(se(i)){if(i.match(/^[\-]?[0-9.]+\%$/))return k(Oe(i));if(i.match(/^\#[0-9abcdef]{3,}$/i))return Z(i)}return i},a.prototype.processAdapters=function(i,e){var t=this;je(e)?M(e,function(r,s){i.add(r.key,r.callback,r.priority||0,t)}):Fe(e)&&q(e,function(r,s){i.has(r,s)||i.add(r,s)})},a.prototype.processEvents=function(i,e){var t=this;je(e)?M(e,function(r,s){i.on(r.type,r.callback,t)}):Fe(e)&&q(e,function(r,s){i.has(r,s)||i.on(r,s)})},a.prototype.processDictionaryTemplate=function(i,e){Fe(e)&&q(e,function(t,r){var s;t=="template"?s=i.template:i.hasKey(t)?s=i.getKey(t):s=i.create(t),s instanceof a?s.config=r:Fe(s)&&Fe(r)?Ns(r,s):s.setKey(t,r)})},a.prototype.processDictionary=function(i,e){Fe(e)&&q(e,function(t,r){i.setKey(t,r)})},a.prototype.processListTemplate=function(i,e){var t=this;for(M(i,function(r,s){var n=t.getConfigEntryType(r),o;if(e.hasIndex(s)&&!r.forceCreate)o=e.getIndex(s);else if(r instanceof a){e.push(r);return}else n?o=e.create(n):o=e.create();r===o||Fe(r)&&(o instanceof a?o.config=r:Fe(o)&&Fe(r)?Ns(r,o):e.setIndex(e.indexOf(o),r))});i.length>e.length;)e.pop()},a.prototype.processOrderedTemplate=function(i,e){var t=this;M(i,function(r,s){var n=t.getConfigEntryType(r),o;n?o=e.create(n):o=e.create(),Fe(r)&&(o instanceof a?o.config=r:Fe(o)&&Fe(r)?Ns(r,o):e.insert(r))})},a.prototype.processList=function(i,e,t){var r=this;je(i)||(i=[i]);var s=e.length,n=0;for(M(i,function(o,l){if(Fe(o)){var u=void 0;if(l<s&&!o.forceCreate)u=e.getIndex(l);else if(o instanceof a){e.push(o);return}else n++,u=r.createEntryInstance(o),t?u.parent=t:e.push(u);u instanceof a?u.config=o:Fe(u)&&Fe(o)&&Ns(o,u)}else e.hasIndex(l)?e.setIndex(l,o):e.push(o)});!t&&i.length+n<e.length;)e.pop()},a.prototype.configOrder=function(i,e){return i==e?0:i=="language"?-1:e=="language"?1:0},a.prototype.asIs=function(i){return Ut(["locale"],i)!=-1},a.prototype.asFunction=function(i){return!1},a.prototype.createClassInstance=function(i){if($(_.registeredClasses[i]))return new _.registeredClasses[i];throw Error('Invalid type: "'+i+'".')},a.prototype.createEntryInstance=function(i){var e;return $(i.type)&&(e=this.createClassInstance(i.type)),e||i},a.prototype.getConfigEntryType=function(i){if($(i.type)){if($(_.registeredClasses[i.type]))return _.registeredClasses[i.type];throw Error('Invalid type: "'+i.type+'".')}},a.prototype.hasProperty=function(i){return i in this},a.prototype.isReserved=function(i){return["type","forceCreate"].indexOf(i)!==-1},Object.defineProperty(a.prototype,"processingErrors",{get:function(){return this._processingErrors||(this._processingErrors=[]),this._processingErrors},enumerable:!0,configurable:!0}),a})();var It=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="BaseObjectEvents",e}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher||(this._eventDispatcher=new $i,this._disposers.push(this._eventDispatcher)),this._eventDispatcher},enumerable:!0,configurable:!0}),i.prototype.dispatch=function(e,t){this._eventDispatcher&&this.events.isEnabled(e)&&(t?(t.type=e,t.target=t.target||this,this.events.dispatch(e,{type:e,target:this})):this.events.dispatch(e,{type:e,target:this}))},i.prototype.dispatchImmediately=function(e,t){this._eventDispatcher&&this.events.isEnabled(e)&&(t?(t.type=e,t.target=t.target||this,this.events.dispatchImmediately(e,t)):this.events.dispatchImmediately(e,{type:e,target:this}))},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e._eventDispatcher&&this.events.copyFrom(e._eventDispatcher)},i})(Ze);var ve={};lg(ve,{anyToDate:()=>Yn,anyToNumber:()=>Ks,camelToDashed:()=>vg,capitalize:()=>Ya,cleanFormat:()=>pa,copy:()=>Hh,copyProperties:()=>ai,decimalPlaces:()=>ep,documentPointToSprite:()=>Pr,documentPointToSvg:()=>er,escapeForRgex:()=>Ys,fitNumber:()=>Gn,fitNumberRelative:()=>Un,get12Hours:()=>qs,getBaseURI:()=>ha,getDayFromWeek:()=>qh,getFormat:()=>Gh,getMonthWeek:()=>Kh,getPixelRatio:()=>zh,getTimeZone:()=>Zs,getWeek:()=>Xs,getWeekYear:()=>Zh,getYearDay:()=>Al,height:()=>Jh,isIE:()=>Sr,isNotEmpty:()=>Xa,joinUrl:()=>Kn,ltrim:()=>Yh,numberToString:()=>Uh,padString:()=>Rt,parseUrl:()=>Bh,plainText:()=>Us,random:()=>xg,relativeRadiusToValue:()=>ot,relativeToValue:()=>Ie,reverseString:()=>Ol,rtrim:()=>Xh,serializeUrl:()=>Wh,softCopyProperties:()=>yg,splitTextByCharCount:()=>zn,spritePointToDocument:()=>Qs,spritePointToSprite:()=>At,spritePointToSvg:()=>Jt,spriteRectToSvg:()=>Ga,stringify:()=>wl,stripHash:()=>Eh,stripTags:()=>Dl,svgPointToDocument:()=>Fl,svgPointToSprite:()=>Bt,svgRectToSprite:()=>_g,trim:()=>Xn,truncateWithEllipsis:()=>Gs,unquote:()=>bg,used:()=>Gi,valueToRelative:()=>gg,width:()=>Qh});function Vf(){return/apple/i.test(navigator.vendor)}function kf(){return/MSIE |Trident\//.test(navigator.userAgent)}var Tl="string",Wa="number",Ha="date",zs="duration",jt="__\xA7\xA7\xA7__",zr="__\xA7\xA7\xA7\xA7__";function Gi(a){}function ai(a,i){return q(a,function(e,t){$(t)&&(i[e]=t)}),i}function Eh(a){return/^[^#]*/.exec(a)[0]}function ha(){var a="#";if(Vf()){var i=document.baseURI;if(i){i=Eh(i);var e=Eh(location.href);i!==e&&(a=e+a)}}return a}function yg(a,i){return q(a,function(e,t){$(t)&&!$(i[e])&&(i[e]=t)}),i}function Hh(a,i){return q(a,function(e,t){i[e]=t}),i}function Xa(a){return $(a)&&a.toString()!==""}function Ie(a,i){return b(a)?a:a!=null&&b(a.value)&&b(i)?i*a.value:0}function ot(a,i,e){var t;return b(a)?(t=a,t<0&&(e?t=i+t:t=i-t)):a!=null&&b(a.value)&&(t=i*a.value),t}function gg(a,i){return a instanceof ae?a.value:a/i}function zh(){var a=window.devicePixelRatio||1;return a}function vg(a){return a.replace(/\W+/g,"-").replace(/([a-z\d])([A-Z])/g,"$1-$2").toLowerCase()}function Ya(a){var i=a.split("");return i[0]=i[0].toUpperCase(),i.join("")}function wl(a){return JSON.stringify(a)}function Ys(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function zn(a,i,e,t,r){if(a.length<=i)return[a];var s=[];if(e){for(var n=-1,o=a.replace(/([,;:!?\\\/]+|[\s])/g,jt+"$1"+jt),l=o.split(jt),u=1;u<l.length;u++){var h=l[u];(h=="."||h==",")&&l[u-1].match(/[\w]+$/)&&(l[u-1]+=h,l[u]="")}for(var u=0;u<l.length;u++){var h=l[u],p=h.length;if(p!==0){if(p>i&&(e!==!0||r!=!1)){t&&(h=Ol(h));var d=h.match(new RegExp(".{1,"+i+"}","g"));if(d){if(t)for(var c=0;c<d.length;c++)d[c]=Ol(d[c]);s=s.concat(d)}}else n===-1&&(s.push(""),n=0),s[n].length+p+1>i&&s[n]!==""&&(s.push(""),n++),s[n]+=h;n=s.length-1}}}else{var d=a.match(new RegExp(".{1,"+i+"}","g"));if(d){if(t)for(var c=0;c<d.length;c++)t||(d[c]=Ol(d[c]));s=d}}return s.length==1&&e&&r&&s[0].length>i&&(s=[]),s}function Gs(a,i,e,t,r){if(a.length<=i)return a;i-=e.length,i<1&&(i=1);var s=zn(a,i,t,r);return(s[0]||"")+e}function Xn(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}function Xh(a){return a.replace(/[\s\uFEFF\xA0]+$/g,"")}function Yh(a){return a.replace(/^[\s\uFEFF\xA0]+/g,"")}function Ol(a){return a.split("").reverse().join("")}function bg(a){var i=a.trim();return i=a.replace(/^'(.*)'$/,"$1"),i==a&&(i=a.replace(/^"(.*)"$/,"$1")),i}function Rt(a,i,e){return i===void 0&&(i=0),e===void 0&&(e="0"),typeof a!="string"&&(a=a.toString()),i>a.length?Array(i-a.length+1).join(e)+a:a}function Gh(a){if(typeof a>"u")return Tl;a=a.toLowerCase().replace(/^\[[^\]]*\]/,""),a=a.replace(/\[[^\]]+\]/,""),a=a.trim();var i=a.match(/\/(date|number|duration)$/);return i?i[1]:a===Wa?Wa:a===Ha?Ha:a===zs?zs:a.match(/[#0]/)?Wa:a.match(/[ymwdhnsqaxkzgtei]/)?Ha:Tl}function pa(a){return a.replace(/\/(date|number|duration)$/i,"")}function Dl(a){return a&&a.replace(/<[^>]*>/g,"")}function Us(a){return a&&Dl((""+a).replace(/[\n\r]+/g,". "))}function Uh(a){if(xt(a))return"NaN";if(a===1/0)return"Infinity";if(a===-1/0)return"-Infinity";if(a===0&&1/a===-1/0)return"-0";var i=a<0;a=Math.abs(a);var e=Me(/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+a)),t=e[1],r=e[2]||"",s;if(e[3]==null)s=r===""?t:t+"."+r;else{var n=+e[3];if(a<1){var o=n-1;s="0."+kh("0",o)+t+r}else{var o=n-r.length;o===0?s=t+r:o<0?s=t+r.slice(0,o)+"."+r.slice(o):s=t+r+kh("0",o)}}return i?"-"+s:s}function Yn(a){if(sa(a)){var i=new Date(a);return i.setMilliseconds(a.getMilliseconds()),i}else{if(b(a))return new Date(a);var e=Number(a);return b(e)?new Date(e):new Date(a)}}function Ks(a){if(sa(a))return a.getTime();if(b(a))return a;if(se(a)){var i=Number(a);return b(i)?i:void 0}}function Al(a,i){i===void 0&&(i=!1);var e=new Date(a.getFullYear(),0,0),t=a.getTime()-e.getTime()+(e.getTimezoneOffset()-a.getTimezoneOffset())*60*1e3,r=1e3*60*60*24;return Math.floor(t/r)}function Xs(a,i){i===void 0&&(i=!1);var e=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())),t=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-t);var r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e.getTime()-r.getTime())/864e5+1)/7)}function Kh(a,i){i===void 0&&(i=!1);var e=Xs(new Date(a.getFullYear(),a.getMonth(),1),i),t=Xs(a,i);return t==1&&(t=53),t-e+1}function qh(a,i,e,t){e===void 0&&(e=1),t===void 0&&(t=!1);var r=new Date(i,0,4,0,0,0,0);t&&r.setUTCFullYear(i);var s=a*7+e-((r.getDay()||7)+3);return s}function qs(a,i){return a>12?a-=12:a===0&&(a=12),$(i)?a+(i-1):a}function Zs(a,i,e,t){if(i===void 0&&(i=!1),e===void 0&&(e=!1),t===void 0&&(t=!1),t)return i?"Coordinated Universal Time":"UTC";var r=a.toLocaleString("UTC"),s=a.toLocaleString("UTC",{timeZoneName:i?"long":"short"}).substr(r.length);return e===!1&&(s=s.replace(/ (standard|daylight|summer|winter) /i," ")),s}function Zh(a,i){i===void 0&&(i=!1);var e=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate())),t=e.getUTCDay()||7;e.setUTCDate(e.getUTCDate()+4-t);var r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return r.getFullYear()}function xg(a,i){return Math.floor(Math.random()*(i-a))+a}function Gn(a,i,e){return a>e?e:a<i?i:a}function Un(a,i,e){var t=e-i;return(a>e||a<i)&&(a=i+(a-t*Math.floor(a/t))),a}function Bt(a,i){var e=a.x,t=a.y,r=[];if(i){for(;$(i.parent);)r.push(i),i=i.parent;r.reverse();for(var s=0;s<r.length;s++){var n=r[s],o=n.rotation,l=e-n.pixelX-n.ex,u=t-n.pixelY-n.ey;n.dx&&(e-=n.dx),n.dy&&(t-=n.dy);var h=n.scale;n.group&&(h=n.group.scale),e=(B(-o)*l-N(-o)*u)/h-n.pixelPaddingLeft,t=(B(-o)*u+N(-o)*l)/h-n.pixelPaddingTop}}return{x:e,y:t}}function Jt(a,i){var e=a.x,t=a.y;if(i)for(;$(i.parent);){var r=i.rotation;e+=i.pixelPaddingLeft+i.ex,t+=i.pixelPaddingTop+i.ey;var s=i.scale;i.group&&(s=i.group.scale);var n=i.pixelX+(e*B(r)-t*N(r))*s,o=i.pixelY+(e*N(r)+t*B(r))*s;i.dx&&(n+=i.dx),i.dy&&(o+=i.dy),e=n,t=o,i=i.parent}return{x:e,y:t}}function At(a,i,e){return Bt(Jt(a,i),e)}function _g(a,i){var e=Bt(a,i),t=Bt({x:a.x+a.width,y:a.y+a.height},i);return{x:e.x,y:e.y,width:t.x-e.x,height:t.y-e.y}}function Ga(a,i){var e=Jt(a,i),t=Jt({x:a.x+a.width,y:a.y+a.height},i);return{x:e.x,y:e.y,width:t.x-e.x,height:t.y-e.y}}function er(a,i,e){try{var t=i.getBoundingClientRect();return b(e)||(e=1),{x:(a.x-t.left)/e,y:(a.y-t.top)/e}}catch{return a}}function Fl(a,i){try{var e=i.getBoundingClientRect();return{x:a.x+e.left,y:a.y+e.top}}catch{return a}}function Pr(a,i){if(i&&i.htmlContainer){var e=er(a,Me(i.htmlContainer),i.svgContainer.cssScale);return Bt(e,i)}else return a}function Qs(a,i){if(i&&i.htmlContainer){var e=Jt(a,i);return Fl(e,Me(i.htmlContainer))}else return a}function Qh(a){var i=getComputedStyle(a),e=parseFloat(i.paddingLeft)+parseFloat(i.paddingRight),t=parseFloat(i.borderLeftWidth)+parseFloat(i.borderRightWidth);return a.clientWidth-e-t}function Jh(a){var i=getComputedStyle(a),e=parseFloat(i.paddingTop)+parseFloat(i.paddingBottom),t=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth);return a.clientHeight-e-t}function ep(a){var i=(""+a).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return i?Math.max(0,(i[1]?i[1].length:0)-(i[2]?+i[2]:0)):0}var $g=/^([a-zA-Z][a-zA-Z0-9\+\.\-]*:)?(?:(\/\/)([^\@]+\@)?([^\/\?\#\:]*)(\:[0-9]+)?)?([^\?\#]*)(\?[^\#]*)?(\#.*)?$/;function Bh(a){var i=$g.exec(a);return{protocol:i&&i[1]||"",separator:i&&i[2]||"",authority:i&&i[3]||"",domain:i&&i[4]||"",port:i&&i[5]||"",path:i&&i[6]||"",query:i&&i[7]||"",hash:i&&i[8]||""}}function Wh(a){return a.protocol+a.separator+a.authority+a.domain+a.port+a.path+a.query+a.hash}function Lf(a){return a.protocol===""&&a.separator===""&&a.authority===""&&a.domain===""&&a.port===""}function Kn(a,i){var e=Bh(a),t=Bh(i);if(Lf(e))throw new Error("Left URL is not absolute");if(Lf(t)){if(t.path!=="")if(t.path[0]==="/")e.path=t.path;else{var r=e.path.split(/\//),s=t.path.split(/\//);if(r.length===0?s.length!==0&&r.push(""):r.length>1&&r.pop(),nf(r,s),e.path=r.join("/"),e.path!==""&&e.path[0]!=="/")throw new Error("URL path must start with /")}return e.query=t.query,e.hash=t.hash,Wh(e)}else return Wh(t)}function Sr(){return!!window.MSInputMethodContext&&!!document.documentMode}function ip(a){return+a}_.registeredClasses["ease.linear"]=ip;function Pg(a){return a*a}_.registeredClasses["ease.quadIn"]=Pg;function Sg(a){return a*(2-a)}_.registeredClasses["ease.quadOut"]=Sg;function Cg(a){return a*=2,(a<=1?a*a:--a*(2-a)+1)/2}_.registeredClasses["ease.quadInOut"]=Cg;function If(a,i){return Math.pow(a,i)}_.registeredClasses["ease.polyIn"]=If;function Rf(a,i){return 1-Math.pow(1-a,i)}_.registeredClasses["ease.polyOut"]=Rf;function Mf(a,i){return a*=2,(a<=1?Math.pow(a,i):2-Math.pow(2-a,i))/2}_.registeredClasses["ease.polyInOut"]=Mf;function Tg(a){return If(a,3)}_.registeredClasses["ease.polyIn3"]=Tg;function Il(a){return Rf(a,3)}_.registeredClasses["ease.polyOut3"]=Il;function Og(a){return Mf(a,3)}_.registeredClasses["ease.polyInOut3"]=Og;function wg(a){return Math.pow(2,10*a-10)}_.registeredClasses["ease.expIn"]=wg;function Dg(a){return 1-Math.pow(2,-10*a)}_.registeredClasses["ease.expOut"]=Dg;function Ag(a){return a*=2,(a<=1?Math.pow(2,10*a-10):2-Math.pow(2,10-10*a))/2}_.registeredClasses["ease.expInOut"]=Ag;function Fg(a){return 1-Math.cos(a*$h)}_.registeredClasses["ease.sinIn"]=Fg;function rp(a){return Math.sin(a*$h)}_.registeredClasses["ease.sinOut"]=rp;function Vg(a){return(1-Math.cos(Fn*a))/2}_.registeredClasses["ease.sinInOut"]=Vg;function ap(a){return a*a*a}_.registeredClasses["ease.cubicIn"]=ap;function Ui(a){return--a*a*a+1}_.registeredClasses["ease.cubicOut"]=Ui;function kg(a){return a*=2,(a<=1?a*a*a:(a-=2)*a*a+2)/2}_.registeredClasses["ease.cubicInOut"]=kg;function Lg(a){return 1-Math.sqrt(1-a*a)}_.registeredClasses["ease.circleIn"]=Lg;function Ig(a){return Math.sqrt(1- --a*a)}_.registeredClasses["ease.circleOut"]=Ig;function Rg(a){return a*=2,(a<=1?1-Math.sqrt(1-a*a):Math.sqrt(1-(a-=2)*a)+1)/2}_.registeredClasses["ease.circleInOut"]=Rg;var tp=4/11,Mg=6/11,jg=8/11,Ng=3/4,Eg=9/11,Bg=10/11,Wg=15/16,Hg=21/22,zg=63/64,Vl=1/tp/tp;function Xg(a){return 1-kl(1-a)}_.registeredClasses["ease.bounceIn"]=Xg;function kl(a){return a=+a,a<tp?Vl*a*a:a<jg?Vl*(a-=Mg)*a+Ng:a<Bg?Vl*(a-=Eg)*a+Wg:Vl*(a-=Hg)*a+zg}_.registeredClasses["ease.bounceOut"]=kl;function Yg(a){return a*=2,(a<=1?1-kl(1-a):kl(a-1)+1)/2}_.registeredClasses["ease.bounceInOut"]=Yg;var Gg=2*Math.PI,qn=1,Zn=.3/Gg,Ll=Math.asin(1/qn)*Zn;function Ug(a){return qn*Math.pow(2,10*--a)*Math.sin((Ll-a)/Zn)}_.registeredClasses["ease.elasticIn"]=Ug;function Kg(a){return 1-qn*Math.pow(2,-10*(a=+a))*Math.sin((a+Ll)/Zn)}_.registeredClasses["ease.elasticOut"]=Kg;function qg(a){return a=a*2-1,(a<0?qn*Math.pow(2,10*a)*Math.sin((Ll-a)/Zn):2-qn*Math.pow(2,-10*a)*Math.sin((Ll+a)/Zn))/2}_.registeredClasses["ease.elasticInOut"]=qg;var Ua=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.transitionDuration=0,e.transitionEasing=Ui,e.properties={},e.propertyFields={},e.filters=new he,e.isTemplate=!1,e.className="SpriteState",e._disposers.push(new ge(e.filters)),e.applyTheme(),e}return Object.defineProperty(i.prototype,"adapter",{get:function(){var e=this;return this._adapterO||(this._adapterO=new ut(this),this._adapterO.events.on("inserted",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1),this._adapterO.events.on("removed",function(t){e[t.newValue.key]=e[t.newValue.key]},void 0,!1)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.getPropertyValue=function(e){var t=this.properties[e],r=this.sprite;if(r){var s=this.propertyFields[e];if($(s)&&(r.dataItem&&(t=r.dataItem.dataContext[s]),t==null&&(t="__unset")),$(t))this._adapterO&&(t=this._adapterO.apply(e,t));else{var n=r.getPropertyValue(e);this._adapterO?t=this._adapterO.apply(e,n):t=n,t==n&&(t=void 0)}}return t},i.prototype.copyFrom=function(e){e&&e!=this&&(this.transitionDuration=e.transitionDuration,this.transitionEasing=e.transitionEasing,ai(e.properties,this.properties),ai(e.propertyFields,this.propertyFields),this.filters.copyFrom(e.filters),e._adapterO&&this.adapter.copyFrom(e._adapterO))},Object.defineProperty(i.prototype,"allValues",{get:function(){var e=this,t={};if(q(this.properties,function(n,o){t[n]=e.getPropertyValue(n)}),this._adapterO){var r=this._adapterO.keys();q(r,function(n,o){var l=e.getPropertyValue(o);t[o]=l})}var s=this.propertyFields;return q(s,function(n){var o=e.getPropertyValue(n);t[n]=o}),t},enumerable:!0,configurable:!0}),i.prototype.reset=function(){this.properties={},this.filters.clear()},i.prototype.processConfig=function(e){$(e)&&$(e.properties)&&q(e.properties,function(t,r){se(r)&&(r.match(/^[0-9.\-]+\%$/)?e.properties[t]=k(Oe(r)):r.match(/^\#[0-9abcdef]{3,}$/i)&&(e.properties[t]=Qt(r)))}),a.prototype.processConfig.call(this,e)},i.prototype.asFunction=function(e){return e=="transitionEasing"||a.prototype.asIs.call(this,e)},i})(Ze);_.registeredClasses.SpriteState=Ua;var sp=(function(a){S(i,a);function i(){var e=a!==null&&a.apply(this,arguments)||this;return e._interactionEvents=new _e,e}return i.prototype._dispatchSpriteEvent=function(e){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(e.type)){var t=Rn(e,{target:this.target});this.target.events.dispatchImmediately(t.type,t)}},i.prototype._dispatchSpritePointEvent=function(e){if(!(this.target.disabled||this.target.isTemplate)&&this.target.events.isEnabled(e.type)){var t=Rn(e,{target:this.target,spritePoint:e.point?Pr(e.point,this.target):void 0,svgPoint:this.target.getSvgPoint(e.point)});this.target.events.dispatchImmediately(t.type,t)}},i.prototype._addInteractionObjectEvent=function(e,t,r,s){var n=this,o=s+"-"+e,l=this._interactionEvents.insertKeyIfEmpty(o,function(){var u=n.target.interactions.events.on(e,t,r,s);return new Wr(function(){n._interactionEvents.removeKey(o),u.dispose()})});return l.increment()},i.prototype._on=function(e,t,r,s,n,o){var l=a.prototype._on.call(this,e,t,r,s,n,o),u=[l.disposer];switch(t){case"hit":case"track":case"doublehit":case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":u.push(this._addInteractionObjectEvent(t,this._dispatchSpritePointEvent,this,n));break;case"rightclick":case"down":case"up":case"drag":case"dragged":case"dragstart":case"dragstop":case"over":case"out":case"swipe":case"swipeleft":case"swiperight":case"resize":case"focus":case"blur":case"toggled":u.push(this._addInteractionObjectEvent(t,this._dispatchSpriteEvent,this,n));break}switch(t){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"toggled":this.target.togglable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":this.target.hoverable=!0;case"out":this.target.hoverable=!0;break;case"focus":case"blur":this.target.focusable=!0;break}return l.disposer=new Pe(u),l},i})(In);var np=(function(){function a(){}return a.opacity=1,a.strokeOpacity=1,a.strokeWidth=1,a.fillOpacity=1,a.fill=Z("#000000"),a.stroke=Z("#000000"),a.focusable=void 0,a.tabindex=0,a})();var op=(function(a){S(i,a);function i(){var e=a!==null&&a.apply(this,arguments)||this;return e._domEvents={},e}return i.prototype._addDOMEvent=function(e,t,r,s){var n=this;if(!this._domEvents[e]){var o=function(l){r.call(s,t,l)};this.target.element.addEventListener(e,o,!1),this._domEvents[e]=new Wr(function(){delete n._domEvents[e],n.target.element.removeEventListener(e,o,!1)})}return this._domEvents[e].increment()},i.prototype._dispatchKeyboardEvent=function(e,t){this.target.events.isEnabled(e)&&this.target.events.dispatchImmediately(e,{type:e,target:this.target,event:t})},i.prototype._on=function(e,t,r,s,n,o){var l=a.prototype._on.call(this,e,t,r,s,n,o),u=[l.disposer];switch(t){case"hit":case"doublehit":case"rightclick":case"down":case"up":this.target.clickable=!0;break;case"drag":case"dragstart":case"dragstop":this.target.draggable=!0;break;case"track":this.target.trackable=!0;break;case"resize":this.target.resizable=!0;break;case"swipe":case"swipeleft":case"swiperight":this.target.swipeable=!0;break;case"wheel":case"wheelup":case"wheeldown":case"wheelleft":case"wheelright":this.target.wheelable=!0;break;case"over":case"out":this.target.hoverable=!0;break;case"focus":case"blur":case"focusin":case"focusout":this.target.focusable=!0;break;case"keydown":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break;case"keyup":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break;case"keypress":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break;case"input":u.push(this._addDOMEvent(t,t,this._dispatchKeyboardEvent,this));break}return l.disposer=new Pe(u),l},i})(In);var lp=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t._eventDispatcher=new op(t),t.eventDisposers=new _e,t.replacedStyles=new _e,t._clickable=!1,t._contextMenuDisabled=!1,t._hoverable=!1,t._trackable=!1,t._draggable=!1,t._swipeable=!1,t._resizable=!1,t._wheelable=!1,t._inert=!1,t._isHover=!1,t.isRealHover=!1,t._isHoverByTouch=!1,t._isDown=!1,t._isFocused=!1,t._isTouchProtected=!1,t._inertiaOptions=new _e,t.inertias=new _e,t._hitOptions={},t._hoverOptions={},t._swipeOptions={},t._keyboardOptions={},t._mouseOptions={},t._cursorOptions={defaultStyle:[{property:"cursor",value:"default"}]},t._disposers.push(t._eventDispatcher),t._element=e,t.className="InteractionObject",t._disposers.push(new Pi(t.inertias)),t._disposers.push(new Pi(t.eventDisposers)),t.applyTheme(),t}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isHover",{get:function(){return this._isHover},set:function(e){this.isHover!=e&&(this._isHover=e,e?re().overObjects.moveValue(this):(this.isRealHover=!1,re().overObjects.removeValue(this)))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isHoverByTouch",{get:function(){return this._isHoverByTouch},set:function(e){this.isHoverByTouch!=e&&(this._isHoverByTouch=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"overPointers",{get:function(){return this._overPointers||(this._overPointers=new he),this._overPointers},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDown",{get:function(){return this._isDown},set:function(e){this.isDown!=e&&(this._isDown=e,e?re().downObjects.moveValue(this):re().downObjects.removeValue(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"downPointers",{get:function(){return this._downPointers||(this._downPointers=new he),this._downPointers},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return this._isFocused},set:function(e){this.isFocused!=e&&(this._isFocused=e,e?re().focusedObject=this:re().focusedObject=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isTouchProtected",{get:function(){return this._isTouchProtected},set:function(e){this._isTouchProtected!=e&&(this._isTouchProtected=e,e?re().unprepElement(this):(this.draggable||this.swipeable||this.trackable||this.resizable)&&re().prepElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"clickable",{get:function(){return this._clickable},set:function(e){this._clickable!==e&&(this._clickable=e,re().processClickable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contextMenuDisabled",{get:function(){return this._contextMenuDisabled},set:function(e){this._contextMenuDisabled!==e&&(this._contextMenuDisabled=e,re().processContextMenu(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverable",{get:function(){return this._hoverable},set:function(e){this._hoverable!==e&&(this._hoverable=e,re().processHoverable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackable",{get:function(){return this._trackable},set:function(e){this._trackable!==e&&(this._trackable=e,re().processTrackable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggable",{get:function(){return this._draggable},set:function(e){this._draggable!==e&&(this._draggable=e,re().processDraggable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeable",{get:function(){return this._swipeable},set:function(e){this._swipeable!==e&&(this._swipeable=e,re().processSwipeable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"resizable",{get:function(){return this._resizable},set:function(e){this._resizable!==e&&(this._resizable=e,re().processResizable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wheelable",{get:function(){return this._wheelable},set:function(e){this._wheelable!==e&&(this._wheelable=e,re().processWheelable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inert",{get:function(){return this._inert},set:function(e){this._inert!==e&&(this._inert=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focusable",{get:function(){return this._focusable},set:function(e){this._focusable!==e&&(this._focusable=e,this._focusable&&this.tabindex==-1&&(this._tabindex=1),re().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){return hl(this._tabindex,-1)},set:function(e){this._tabindex!==e&&(this._tabindex=e,e>-1&&(this.focusable=!0),re().processFocusable(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(e){this._element=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalPosition",{get:function(){return this._originalPosition||{x:0,y:0}},set:function(e){this._originalPosition=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalScale",{get:function(){return hl(this._originalScale,1)},set:function(e){this._originalScale!==e&&(this._originalScale=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"originalAngle",{get:function(){return hl(this._originalAngle,0)},set:function(e){this._originalAngle!==e&&(this._originalAngle=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inertiaOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("inertiaOptions",this._inertiaOptions):this._inertiaOptions},set:function(e){this._inertiaOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hitOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hitOptions",this._hitOptions):this._hitOptions},set:function(e){this._hitOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("hoverOptions",this._hoverOptions):this._hoverOptions},set:function(e){this._hoverOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("swipeOptions",this._swipeOptions):this._swipeOptions},set:function(e){this._swipeOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keyboardOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("keyboardOptions",this._keyboardOptions):this._keyboardOptions},set:function(e){this._keyboardOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mouseOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("mouseOptions",this._mouseOptions):this._mouseOptions},set:function(e){this._mouseOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOptions",{get:function(){return this.sprite&&this.sprite._adapterO?this.sprite._adapterO.apply("cursorOptions",this._cursorOptions):this._cursorOptions},set:function(e){this._cursorOptions=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.inertiaOptions=e.inertiaOptions,this.hitOptions=e.hitOptions,this.hoverOptions=e.hoverOptions,this.swipeOptions=e.swipeOptions,this.keyboardOptions=e.keyboardOptions,this.cursorOptions=e.cursorOptions,this.contextMenuDisabled=e.contextMenuDisabled,re().applyCursorOverStyle(this)},i.prototype.setEventDisposer=function(e,t,r){var s=this.eventDisposers.getKey(e);t?s==null&&this.eventDisposers.setKey(e,r()):s!=null&&(s.dispose(),this.eventDisposers.removeKey(e))},i.prototype.dispose=function(){a.prototype.dispose.call(this);var e=re();e.overObjects.removeValue(this),e.downObjects.removeValue(this),e.trackedObjects.removeValue(this),e.transformedObjects.removeValue(this),this.isHover&&this.wheelable&&e.unlockWheel(),e.focusedObject===this&&(e.focusedObject=void 0)},i})(It);var up=(function(){function a(i,e){this._disposed=!1,this.directionX=0,this.directionY=0,this.interaction=i,this.keyboardEvent=e,this._startedOn=new Date().getTime(),re().processDragStart(i),me.animations.push(this),this.update()}return a.prototype.update=function(){var i=this.interaction,e=re().getKeyboardOption(i,"speed"),t=re().getKeyboardOption(i,"accelleration"),r=re().getKeyboardOption(i,"accellerationDelay"),s={x:0,y:0};this.keyboardEvent.shiftKey?(e*=.5,t=1):this.keyboardEvent.ctrlKey&&(e*=2);var n=new Date().getTime()-this._startedOn,o=n-r;if(t>0&&o>0){var l=n/r;n=r,s.x+=this.directionX*(e*t*l*o),s.y+=this.directionY*(e*t*l*o)}s.x+=this.directionX*(e*n),s.y+=this.directionY*(e*n),re().handleTransformMove(i,s,{x:0,y:0},this.keyboardEvent,!0,!1)},a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||(re().processDragStop(this.interaction),ee(me.animations,this))},a})();var hp=(function(a){S(i,a);function i(e,t,r,s){var n=a.call(this)||this;return n.animations=[],n.className="Inertia",n.interaction=e,n.type=t,n.point=r,n.startPoint=s,n._disposers.push(new Ki(n.animations)),n}return Object.defineProperty(i.prototype,"x",{get:function(){return this.point.x},set:function(e){b(e)&&(this.point.x=e,this.handleMove())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.point.y},set:function(e){b(e)&&(this.point.y=e,this.handleMove())},enumerable:!0,configurable:!0}),i.prototype.handleMove=function(){if(this.interaction.events.isEnabled("drag")){var e={type:"drag",target:this.interaction,shift:{x:this.x-this.startPoint.x,y:this.y-this.startPoint.y},startPoint:this.startPoint,point:{x:this.x,y:this.y},touch:!1};this.interaction.events.dispatchImmediately("drag",e)}},i.prototype.done=function(){this.interaction.inertias.removeKey(this.type),this.type==="move"&&re().processDragStop(this.interaction),this.dispose()},i})(Ze);var da="http://www.w3.org/2000/svg",dp="http://www.w3.org/2000/xmlns/",Js="http://www.w3.org/1999/xlink";function Qe(a,i,e,t){return a.addEventListener(i,e,t||!1),new ye(function(){a.removeEventListener(i,e,t||!1)})}function Qn(a){if(se(a)){var i=document.getElementById(a);if(i==null&&(i=document.getElementsByClassName(a)[0]),i instanceof HTMLElement)return i}else if(a instanceof HTMLElement)return a}function en(a,i){if(a)if(a.classList){var e=i.split(" ");M(e,function(r){a.classList.add(r)})}else{var t=a.getAttribute("class");t?a.setAttribute("class",t.split(" ").filter(function(r){return r!==i}).join(" ")+" "+i):a.setAttribute("class",i)}}function tn(a,i){if(a)if(a.classList)a.classList.remove(i);else{var e=a.getAttribute("class");e&&a.setAttribute("class",e.split(" ").filter(function(t){return t!==i}).join(" "))}}function cp(a,i,e){a.style[i]=e}function Rl(a,i){return a.currentStyle?a.currentStyle[i]:document.defaultView.getComputedStyle(a,null).getPropertyValue(i)}function Ka(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{var a=document.createElement("button");a.style.position="fixed",a.style.top="0px",a.style.left="-10000px",document.body.appendChild(a),a.focus(),a.blur(),document.body.removeChild(a)}}function fp(a,i){for(var e=i;;){if(a===e)return!0;if(e.parentNode==null){if(e.host==null)return!1;e=e.host}else e=e.parentNode}}function rn(a){for(var i=a;;){if(i.parentNode==null)return i.host!=null?i:null;i=i.parentNode}}function Ml(a){for(var i=a.ownerDocument,e=a;;){if(e.parentNode==null)return e===i||e.host!=null?e:null;e=e.parentNode}}function jf(a){return typeof a.composedPath=="function"?a.composedPath()[0]:a.target}function mp(a){Dh(function(){try{var i=a.getBoundingClientRect(),e=i.left-Math.round(i.left),t=i.top-Math.round(i.top);e!==0&&_l(function(){a.style.left=e+"px"}),t!==0&&_l(function(){a.style.top=t+"px"})}catch{}})}var pp;function Zg(a){if(a==null){if(!$(pp)){var i=document.createElement("style");i.type="text/css",ue.nonce!=""&&i.setAttribute("nonce",ue.nonce),document.head.appendChild(i),pp=i.sheet}return pp}else{var i=document.createElement("style");return i.type="text/css",ue.nonce!=""&&i.setAttribute("nonce",ue.nonce),a.appendChild(i),i.sheet}}function Qg(a,i){var e=a.cssRules.length;return a.insertRule(i+"{}",e),a.cssRules[e]}var Ne=(function(a){S(i,a);function i(e,t,r){var s=this,n=Zg(e);return s=a.call(this,function(){var o=Ut(n.cssRules,s._rule);if(o===-1)throw new Error("Could not dispose StyleRule");n.deleteRule(o)})||this,s._rule=Qg(n,t),q(r,function(o,l){s.setStyle(o,l)}),s}return Object.defineProperty(i.prototype,"selector",{get:function(){return this._rule.selectorText},set:function(e){this._rule.selectorText=e},enumerable:!0,configurable:!0}),i.prototype._setVendorPrefixName=function(e,t){var r=this._rule.style;r.setProperty("-webkit-"+e,t,""),r.setProperty("-moz-"+e,t,""),r.setProperty("-ms-"+e,t,""),r.setProperty("-o-"+e,t,""),r.setProperty(e,t,"")},i.prototype.setStyle=function(e,t){e==="transition"?this._setVendorPrefixName(e,t):this._rule.style.setProperty(e,t,"")},i})(ye);var Jg=0,ev=(function(a){S(i,a);function i(e,t,r){var s=this,n=$(r)?r:"__style_"+ ++Jg+"__";return s=a.call(this,e,"."+n,t)||this,s._className=n,s}return Object.defineProperty(i.prototype,"className",{get:function(){return this._className},set:function(e){this._className=e,this.selector="."+e},enumerable:!0,configurable:!0}),i.prototype.toString=function(){return this._className},i})(Ne);function yp(a){if(document.readyState!=="loading")a();else{var i=function(){document.readyState!=="loading"&&(document.removeEventListener("readystatechange",i),a())};document.addEventListener("readystatechange",i)}}function Jn(a){var i=Rl(a,"font-family");if(i)return i;var e=a.parentElement||a.parentNode;return e?Jn(e):void 0}function eo(a){var i=Rl(a,"font-size");if(i)return i;var e=a.parentElement||a.parentNode;return e?eo(e):void 0}function jl(a,i){var e=a.getBoundingClientRect(),t=je(i)?i:i?[i]:[];if(t.length){for(var r=0;r<t.length;r++){var s=t[r];if(!jl(s))return!1;var n=s.getBoundingClientRect();if(e.top>=0&&e.left>=0&&e.top<=n.top+n.height&&e.left<=n.left+n.width)return!0}return!1}return e.top>=0&&e.left>=0&&e.top<=(window.innerHeight||document.documentElement.clientHeight)&&e.left<=(window.innerWidth||document.documentElement.clientWidth)}var Nf=(function(){function a(){}return a.prototype.getEventKey=function(i){var e=i.keyCode||i.which,t;switch(e){case 38:t="up";break;case 40:t="down";break;case 37:t="left";break;case 39:t="right";break;case 13:t="enter";break;case 27:t="esc";break;case 36:t="home";break;case 35:t="end";break;case 9:t="tab";break;case 17:t="ctrl";break;case 18:t="alt";break;case 16:t="shift";break;case 32:t="space";break;case 36:t="home";break;case 35:t="end";break;case 33:t="pgup";break;case 34:t="pgdn";break;case 45:t="ins";break;case 46:t="del";break;case 107:t="plus";break;case 109:t="minus";break;default:t="other";break}return t},a.prototype.isKey=function(i,e){var t=this.getEventKey(i);return se(e)&&(e=[e]),e.indexOf(t)!==-1},a.prototype.shiftKey=function(i){return i.shiftKey},a.prototype.ctrlKey=function(i){return i.ctrlKey},a.prototype.altKey=function(i){return i.altKey},a.prototype.metaKey=function(i){return i.metaKey},a})();var si=new Nf;var tv={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6};function gp(a){switch(a){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function ht(a,i){return $(i)||(i=1),tv[a]*i}function iv(){return new Date}function ir(){return iv().getTime()}function qa(a){return new Date(a.getTime())}function Nl(a,i,e,t){a=new Date(a.getTime()),i=new Date(i.getTime());var r=0,s=0;!t&&e!="millisecond"&&(r=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-r),s=i.getTimezoneOffset(),i.setUTCMinutes(i.getUTCMinutes()-s));var n=!1;switch(e){case"year":a.getUTCFullYear()!=i.getUTCFullYear()&&(n=!0);break;case"month":(a.getUTCFullYear()!=i.getUTCFullYear()||a.getUTCMonth()!=i.getUTCMonth())&&(n=!0);break;case"day":(a.getUTCMonth()!=i.getUTCMonth()||a.getUTCDate()!=i.getUTCDate())&&(n=!0);break;case"hour":a.getUTCHours()!=i.getUTCHours()&&(n=!0);break;case"minute":a.getUTCMinutes()!=i.getUTCMinutes()&&(n=!0);break;case"second":a.getUTCSeconds()!=i.getUTCSeconds()&&(n=!0);break;case"millisecond":a.getTime()!=i.getTime()&&(n=!0);break}if(n)return!0;var o=gp(e);return o?(a.setUTCMinutes(a.getUTCMinutes()+r),i.setUTCMinutes(i.getUTCMinutes()+s),Nl(a,i,o,t)):!1}function Wt(a,i,e,t){var r=0;switch(!t&&i!="millisecond"&&(r=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-r)),i){case"day":var s=a.getUTCDate();a.setUTCDate(s+e);break;case"second":var n=a.getUTCSeconds();a.setUTCSeconds(n+e);break;case"millisecond":var o=a.getUTCMilliseconds();a.setUTCMilliseconds(o+e);break;case"hour":var l=a.getUTCHours();a.setUTCHours(l+e);break;case"minute":var u=a.getUTCMinutes();a.setUTCMinutes(u+e);break;case"year":var h=a.getUTCFullYear();a.setUTCFullYear(h+e);break;case"month":var p=a.getUTCMonth();a.setUTCMonth(p+e);break;case"week":var d=a.getUTCDate();a.setUTCDate(d+e*7);break}if(!t&&i!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+r),i=="day"||i=="week"||i=="month"||i=="year")){var c=a.getTimezoneOffset();if(c!=r){var f=c-r;a.setUTCMinutes(a.getUTCMinutes()+f),a.getTimezoneOffset()!=c&&a.setUTCMinutes(a.getUTCMinutes()-f)}}return a}function Ct(a,i,e,t,r,s,n,o){n===void 0&&(n=0),b(e)||(e=1);var l=0;switch(o&&["day","month","week","year"].indexOf(i)!=-1&&(a=an(a,o)),!r&&i!="millisecond"&&(l=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-l)),i){case"day":var u=a.getUTCDate();if(e>1){if(s){s=Ct(s,"day",1);var h=a.getTime()-s.getTime(),p=Math.floor(h/ht("day")/e),d=ht("day",p*e);a.setTime(s.getTime()+d-l*ht("minute"))}}else a.setUTCDate(u);a.setUTCHours(0,0,0,0);break;case"second":var c=a.getUTCSeconds();e>1&&(c=Math.floor(c/e)*e),a.setUTCSeconds(c,0);break;case"millisecond":if(e==1)return a;var f=a.getUTCMilliseconds();f=Math.floor(f/e)*e,a.setUTCMilliseconds(f);break;case"hour":var y=a.getUTCHours();e>1&&(y=Math.floor(y/e)*e),a.setUTCHours(y,n,0,0);break;case"minute":var g=a.getUTCMinutes();f=a.getUTCMilliseconds(),e>1&&(g=Math.floor(g/e)*e),a.setUTCMinutes(g,0,0);break;case"month":var v=a.getUTCMonth();e>1&&(v=Math.floor(v/e)*e),a.setUTCMonth(v,1),a.setUTCHours(0,n,0,0);break;case"year":var x=a.getUTCFullYear();e>1&&(x=Math.floor(x/e)*e),a.setUTCFullYear(x,0,1),a.setUTCHours(0,n,0,0);break;case"week":var P=a.getUTCDate(),T=a.getUTCDay();b(t)||(t=1),T>=t?P=P-T+t:P=P-(7+T)+t,a.setUTCDate(P),a.setUTCHours(0,n,0,0);break}if(!r&&i!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+l),i=="day"||i=="week"||i=="month"||i=="year")){var C=a.getTimezoneOffset();if(C!=l){var O=C-l;a.setUTCMinutes(a.getUTCMinutes()+O)}}return a}function an(a,i){var e=new Date(a.toLocaleString("en-US",{timeZone:i}));return e}function Ef(a){var i=new Date;i.setHours(0,0,0,0);var e=an(i,a);return e.getMinutes()}var Bf=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._globalEventsAdded=!1,e._pointerEvents={pointerdown:"mousedown",pointerup:"mouseup",pointermove:"mousemove",pointercancel:"mouseup",pointerover:"mouseover",pointerout:"mouseout",wheel:"wheel"},e._usePointerEventsOnly=!1,e._useTouchEventsOnly=!1,e._addHoverEvents=!0,e._passiveSupported=!1,e._delayedEvents={out:[]},e.overObjects=new he,e.downObjects=new he,e.trackedObjects=new he,e.transformedObjects=new he,e.pointers=new _e,e.inertiaOptions=new _e,e.hitOptions={doubleHitTime:300,hitTolerance:10,noFocus:!0},e.hoverOptions={touchOutBehavior:"leave",touchOutDelay:1e3},e.swipeOptions={time:500,verticalThreshold:75,horizontalThreshold:30},e.keyboardOptions={speed:.1,accelleration:1.2,accellerationDelay:2e3},e.mouseOptions={sensitivity:1},e.className="Interaction",e.body=e.getInteraction(document.body),e._disposers.push(e.body),window.hasOwnProperty("PointerEvent")?(e._pointerEvents.pointerdown="pointerdown",e._pointerEvents.pointerup="pointerup",e._pointerEvents.pointermove="pointermove",e._pointerEvents.pointercancel="pointercancel",e._pointerEvents.pointerover="pointerover",e._pointerEvents.pointerout="pointerout"):window.hasOwnProperty("MSPointerEvent")?(e._pointerEvents.pointerdown="MSPointerDown",e._pointerEvents.pointerup="MSPointerUp",e._pointerEvents.pointermove="MSPointerMove",e._pointerEvents.pointercancel="MSPointerUp",e._pointerEvents.pointerover="MSPointerOver",e._pointerEvents.pointerout="MSPointerOut"):typeof matchMedia<"u"&&matchMedia("(pointer:fine)").matches?"ontouchstart"in window&&(e._addHoverEvents=!1,e._useTouchEventsOnly=!0):window.navigator.userAgent.match(/MSIE /)||e.fullFF()?e._usePointerEventsOnly=!0:e._useTouchEventsOnly=!0,"onwheel"in document.createElement("div")?e._pointerEvents.wheel="wheel":$(document.onmousewheel)&&(e._pointerEvents.wheel="mousewheel"),e.inertiaOptions.setKey("move",{time:100,duration:500,factor:1,easing:Il}),e.inertiaOptions.setKey("resize",{time:100,duration:500,factor:1,easing:Il}),e._passiveSupported=i.passiveSupported,e.applyTheme(),e}return i.prototype.fullFF=function(){return window.navigator.userAgent.match(/Firefox/)&&!window.navigator.userAgent.match(/Android/)},i.prototype.debug=function(){},i.prototype.addGlobalEvents=function(){var e=this;this._globalEventsAdded||(this._useTouchEventsOnly||(this._disposers.push(Qe(document,this._pointerEvents.pointerdown,function(t){e.handleGlobalPointerDown(t)})),this._disposers.push(Qe(document,this._pointerEvents.pointermove,function(t){e.handleGlobalPointerMove(t)})),this._disposers.push(Qe(document,this._pointerEvents.pointerup,function(t){e.handleGlobalPointerUp(t)})),this._disposers.push(Qe(document,this._pointerEvents.pointercancel,function(t){e.handleGlobalPointerUp(t,!0)})),this._disposers.push(Qe(document,"mouseenter",function(t){!$(t.relatedTarget)&&(t.buttons==0||t.which==0)&&e.handleDocumentLeave(t)}))),this._usePointerEventsOnly||(this._disposers.push(Qe(document,"touchstart",function(t){e.handleGlobalTouchStart(t)})),this._disposers.push(Qe(document,"touchmove",function(t){e.handleGlobalTouchMove(t)})),this._disposers.push(Qe(document,"touchend",function(t){e.handleGlobalTouchEnd(t)}))),this._disposers.push(Qe(document,"keydown",function(t){e.handleGlobalKeyDown(t)})),this._disposers.push(Qe(document,"keyup",function(t){e.handleGlobalKeyUp(t)})),this._globalEventsAdded=!0)},i.prototype.processClickable=function(e){this.processTouchable(e)},i.prototype.processContextMenu=function(e){e.contextMenuDisabled?e.eventDisposers.hasKey("contextMenuDisabled")||e.eventDisposers.setKey("contextMenuDisabled",Qe(e.element,"contextmenu",function(t){t.preventDefault()})):e.eventDisposers.hasKey("contextMenuDisabled")&&e.eventDisposers.getKey("contextMenuDisabled").dispose()},i.prototype.processHoverable=function(e){var t=this;if(e.hoverable||e.trackable)this.addGlobalEvents(),this.applyCursorOverStyle(e),!e.eventDisposers.hasKey("hoverable")&&this._addHoverEvents&&e.eventDisposers.setKey("hoverable",new Pe([Qe(e.element,this._pointerEvents.pointerout,function(s){return t.handlePointerOut(e,s)}),Qe(e.element,this._pointerEvents.pointerover,function(s){return t.handlePointerOver(e,s)})])),e.trackable;else{var r=e.eventDisposers.getKey("hoverable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("hoverable"))}this.processTouchable(e)},i.prototype.processMovable=function(e){(e.draggable||e.swipeable||e.trackable||e.resizable)&&(!this.isGlobalElement(e)&&!e.isTouchProtected&&this.prepElement(e),this.applyCursorOverStyle(e)),this.processTouchable(e)},i.prototype.processTrackable=function(e){this.processHoverable(e),this.processMovable(e),e.trackable?this.trackedObjects.moveValue(e):this.trackedObjects.removeValue(e)},i.prototype.processDraggable=function(e){this.processMovable(e)},i.prototype.processSwipeable=function(e){this.processMovable(e)},i.prototype.processResizable=function(e){this.processMovable(e)},i.prototype.processWheelable=function(e){var t=this;if(e.wheelable)e.eventDisposers.hasKey("wheelable")||e.eventDisposers.setKey("wheelable",new Pe([Qe(e.element,this._pointerEvents.wheel,function(s){return t.handleMouseWheel(e,s)},this._passiveSupported?{passive:!1}:!1),e.events.on("out",function(s){e.wheelable&&t.unlockWheel()}),e.events.on("over",function(s){e.wheelable&&t.lockWheel()})]));else{var r=e.eventDisposers.getKey("wheelable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("wheelable"))}},i.prototype.processFocusable=function(e){var t=this;if(e.focusable===!0&&e.tabindex>-1&&!this._useTouchEventsOnly)e.eventDisposers.hasKey("focusable")||e.eventDisposers.setKey("focusable",new Pe([Qe(e.element,"focus",function(s){return t.handleFocus(e,s)}),Qe(e.element,"blur",function(s){return t.handleBlur(e,s)}),Qe(e.element,this._pointerEvents.pointerdown,function(s){return t.handleFocusBlur(e,s)}),Qe(e.element,"touchstart",function(s){return t.handleFocusBlur(e,s)},this._passiveSupported?{passive:!1}:!1)]));else{var r=e.eventDisposers.getKey("focusable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("focusable"))}},i.prototype.processTouchable=function(e){var t=this;if(e.clickable||e.hoverable||e.trackable||e.draggable||e.swipeable||e.resizable)this.addGlobalEvents(),e.eventDisposers.hasKey("touchable")||(!this._useTouchEventsOnly&&!this._usePointerEventsOnly?e.eventDisposers.setKey("touchable",new Pe([Qe(e.element,this._pointerEvents.pointerdown,function(s){return t.handlePointerDown(e,s)}),Qe(e.element,"touchstart",function(s){return t.handleTouchDown(e,s)},this._passiveSupported?{passive:!1}:!1)])):this._useTouchEventsOnly?this._usePointerEventsOnly||e.eventDisposers.setKey("touchable",Qe(e.element,"touchstart",function(s){return t.handleTouchDown(e,s)},this._passiveSupported?{passive:!1}:!1)):e.eventDisposers.setKey("touchable",Qe(e.element,this._pointerEvents.pointerdown,function(s){return t.handlePointerDown(e,s)})));else{var r=e.eventDisposers.getKey("touchable");r!=null&&(r.dispose(),e.eventDisposers.removeKey("touchable"))}},i.prototype.handleFocus=function(e,t){if(!e.focusable){t.preventDefault();return}if(e.isFocused=!0,e.events.isEnabled("focus")&&!me.isPaused){var r={type:"focus",target:e,event:t};e.events.dispatchImmediately("focus",r)}},i.prototype.handleFocusBlur=function(e,t){e.focusable!==!1&&this.getHitOption(e,"noFocus")&&e.events.once("focus",function(){e.events.disableType("blur"),Ka(),e.sprite&&e.sprite.handleBlur(),e.events.enableType("blur")})},i.prototype.handleBlur=function(e,t){if(!e.focusable){t.preventDefault();return}if(e.isFocused=!1,e.events.isEnabled("blur")&&!me.isPaused){var r={type:"blur",target:e,event:t};e.events.dispatchImmediately("blur",r)}},i.prototype.handleGlobalKeyDown=function(e){if(this.focusedObject){if(si.isKey(e,"esc"))Ka();else if(this.focusedObject.draggable&&si.isKey(e,["up","down","left","right"])){e.preventDefault();var t=this.focusedObject,r="interactionKeyboardObject";if(t.eventDisposers.hasKey(r))return;var s=new up(t,e);switch(t.eventDisposers.setKey(r,s),si.getEventKey(e)){case"up":s.directionY=-1;break;case"down":s.directionY=1;break;case"left":s.directionX=-1;break;case"right":s.directionX=1;break}}}},i.prototype.handleGlobalKeyUp=function(e){var t="interactionKeyboardObject";if(this.focusedObject){var r=this.focusedObject.eventDisposers.getKey(t);r!=null&&(e.preventDefault(),r.dispose(),this.focusedObject.eventDisposers.removeKey(t));var s=this.focusedObject.sprite;si.isKey(e,"enter")&&s&&(s.events.isEnabled("hit")||s.events.isEnabled("toggled")?this.focusedObject.dispatchImmediately("hit"):s.showTooltipOn=="hit"&&this.focusedObject.dispatchImmediately("up"))}},i.prototype.handleGlobalPointerMove=function(e){var t=this.getPointer(e);if(t.point=this.getPointerPoint(e),this.events.isEnabled("track")&&!me.isPaused){var r={type:"track",target:this,event:e,pointer:t,touch:t.touch};this.events.dispatchImmediately("track",r)}this.addBreadCrumb(t,t.point),this.handleGlobalMove(t,e)},i.prototype.handleGlobalPointerDown=function(e){this.processDelayed();var t=this.getPointer(e);if(this.events.isEnabled("down")&&!me.isPaused){var r={type:"down",target:this,event:e,pointer:t,touch:t.touch};this.events.dispatchImmediately("down",r)}},i.prototype.preventTouchAction=function(e){e.defaultPrevented||e.preventDefault()},i.prototype.handleGlobalPointerUp=function(e,t){t===void 0&&(t=!1);var r=this.getPointer(e);if(this.events.isEnabled("up")&&!me.isPaused){var s={type:"up",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",s)}this.handleGlobalUp(r,e,t)},i.prototype.handleGlobalTouchMove=function(e){for(var t=0;t<e.changedTouches.length;t++){var r=this.getPointer(e.changedTouches[t]);if(r.point=this.getPointerPoint(e.changedTouches[t]),this.events.isEnabled("track")&&!me.isPaused){var s={type:"track",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("track",s)}this.addBreadCrumb(r,r.point),this.handleGlobalMove(r,e)}},i.prototype.handleGlobalTouchStart=function(e){this.processDelayed();for(var t=0;t<e.changedTouches.length;t++){var r=this.getPointer(e.changedTouches[t]);if(!this._usePointerEventsOnly&&this.events.isEnabled("down")&&!me.isPaused){var s={type:"down",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("down",s)}}},i.prototype.handleGlobalTouchEnd=function(e){for(var t=0;t<e.changedTouches.length;t++){var r=this.getPointer(e.changedTouches[t]);if(this.events.isEnabled("up")&&!me.isPaused){var s={type:"up",target:this,event:e,pointer:r,touch:r.touch};this.events.dispatchImmediately("up",s)}this.handleGlobalUp(r,e)}},i.prototype.handlePointerDown=function(e,t){var r=this.getPointer(t);!r.touch&&t.which!=1&&t.which!=3||(r.button=t.which,this.resetPointer(r,t),this.handleDown(e,r,t))},i.prototype.handlePointerOver=function(e,t){var r=this.getPointer(t);this.handleOver(e,r,t)},i.prototype.handlePointerOut=function(e,t){var r=this.getPointer(t);this.handleOut(e,r,t)},i.prototype.handleMouseWheel=function(e,t){var r=this.getPointer(t);r.point=this.getPointerPoint(t);var s=0,n=0,o=1;if(t.deltaMode==1&&(o=50),o*=this.getMouseOption(e,"sensitivity"),t instanceof WheelEvent)s=Math.round(-1*t.wheelDeltaX||t.deltaX*o),n=Math.round(-1*t.wheelDeltaY||t.deltaY*o);else throw new Error("Invalid event type");this.handleWheel(e,r,s,n,t)},i.prototype.handleTouchDown=function(e,t){for(var r=0;r<t.changedTouches.length;r++){var s=this.getPointer(t.changedTouches[r]);this.maybePreventDefault(e,t,s),this.resetPointer(s,t.changedTouches[r]),this.handleDown(e,s,t)}},i.prototype.handleHit=function(e,t,r){var s=ir();if(e.lastHit&&e.lastHit>=s-this.getHitOption(e,"doubleHitTime")){if(s-e.lastHit<100)return;if(e.lastHit=void 0,e.lastHitPointer=void 0,e.events.isEnabled("doublehit")&&!me.isPaused){var n={type:"doublehit",target:e,point:t.point,event:r,touch:t.touch};e.events.dispatchImmediately("doublehit",n)}}else if(e.lastHit=s,e.lastHitPointer=t,t.button===3){if(e.events.isEnabled("rightclick")&&!me.isPaused){var n={type:"rightclick",target:e,event:r};e.events.dispatchImmediately("rightclick",n)}}else if(e.events.isEnabled("hit")&&!me.isPaused){var n={type:"hit",target:e,event:r,point:t.point,touch:t.touch};e.events.dispatchImmediately("hit",n)}},i.prototype.handleOver=function(e,t,r,s){if(s===void 0&&(s=!1),!!e.hoverable){var n=!1;if(this.shouldCancelHovers(t)&&this.areTransformed()&&this.moved(t,this.getHitOption(e,"hitTolerance"))&&(n=!0,this.cancelAllHovers(r)),this.processDelayed(),e.overPointers.moveValue(t),!e.isRealHover&&(n||(e.isHover=!0,e.isRealHover=!0,this.overObjects.moveValue(e)),this.handleTrack(this.body,t,r,!0),e.events.isEnabled("over")&&!me.isPaused&&!n)){var o={type:"over",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("over",o)}}},i.prototype.handleOut=function(e,t,r,s,n){var o=this;if(s===void 0&&(s=!1),n===void 0&&(n=!1),!!e.hoverable&&(e.overPointers.removeValue(t),e.isHover&&(!e.hasDelayedOut||n))){if(s&&e.overPointers.length)return;if(t&&t.touch&&!n&&!this.old(t)){var l=this.getHoverOption(e,"touchOutBehavior");if(l=="leave"){this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:r,keepUntil:ir()+500}),e.hasDelayedOut=!0;return}else if(l=="delay"&&this.getHoverOption(e,"touchOutDelay")){this._delayedEvents.out.push({type:"out",io:e,pointer:t,event:r,keepUntil:ir()+500,timeout:this.setTimeout(function(){o.handleOut(e,t,r,!0)},this.getHoverOption(e,"touchOutDelay"))});return}}if(e.isHover=!1,this.overObjects.removeValue(e),!e.isDisposed()&&e.events.isEnabled("out")&&!me.isPaused){var u={type:"out",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("out",u)}e.overPointers.clear(),e.hasDelayedOut=!1}},i.prototype.processDelayed=function(){for(var e;e=this._delayedEvents.out.pop(),!!e;)e.timeout&&e.timeout.dispose(),this.handleOut(e.io,e.pointer,e.event,!1,!0)},i.prototype.handleDown=function(e,t,r){if(this.maybePreventDefault(e,r,t),e.inert&&this.stopInertia(e),this.handleOver(e,t,r,!0),e.downPointers.moveValue(t),this.applyCursorDownStyle(e,t),e.isDown||(e.focusable!==!1&&this.getHitOption(e,"noFocus")&&this.focusedObject&&Ka(),e.isDown=!0,this.downObjects.moveValue(e),e.draggable&&this.processDragStart(e,t,r),e.resizable&&this.processResizeStart(e,t,r)),e.events.isEnabled("down")&&!me.isPaused){var s={type:"down",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("down",s)}},i.prototype.handleGlobalUp=function(e,t,r){var s=this;r===void 0&&(r=!1);var n=this.downObjects.values.slice();n.sort(function(o,l){if(o&&l){var u=o.element.compareDocumentPosition(l.element);return u&Node.DOCUMENT_POSITION_CONTAINED_BY?1:u&Node.DOCUMENT_POSITION_CONTAINS?-1:0}else return 0}),M(n,function(o){o&&o.downPointers.contains(e)&&s.handleUp(o,e,t,r)})},i.prototype.handleDocumentLeave=function(e){var t=this;V(this.downObjects.backwards().iterator(),function(r){r.downPointers.each(function(s){t.handleUp(r,s,e)})})},i.prototype.handleUp=function(e,t,r,s){if(s===void 0&&(s=!1),this.restoreCursorDownStyle(e,t),e.downPointers.removeValue(t),(t&&t.touch||this._useTouchEventsOnly)&&this.handleOut(e,t,r,!0),e.isDown){if(e.downPointers.length==0&&(e.isDown=!1,this.downObjects.removeValue(e)),e.events.isEnabled("up")&&!me.isPaused&&t){var n={type:"up",target:e,event:r,pointer:t,touch:t.touch};e.events.dispatchImmediately("up",n)}s||(e.swipeable&&this.swiped(e,t)?this.handleSwipe(e,t,r):(e.clickable&&!this.moved(t,this.getHitOption(e,"hitTolerance"))&&this.handleHit(e,t,r),e.inert&&this.moved(t,this.getHitOption(e,"hitTolerance"))?this.handleInertia(e,t):e.draggable&&this.processDragStop(e,t,r),e.resizable&&this.processResizeStop(e,t,r)))}},i.prototype.maybePreventDefault=function(e,t,r){$(t)&&(e.draggable||e.swipeable||e.trackable||e.resizable)&&!this.isGlobalElement(e)&&t.cancelable!==!1&&(!e.isTouchProtected||!r||!r.touch)&&t.preventDefault()},i.prototype.cancelAllHovers=function(e){var t=this;V(this.overObjects.backwards().iterator(),function(r){if(r){var s=r.overPointers.getIndex(0);t.handleOut(r,s,e,!0,!0)}})},i.prototype.shouldCancelHovers=function(e){return ue.disableHoverOnTransform=="always"||ue.disableHoverOnTransform=="touch"&&e.touch},i.prototype.handleGlobalMove=function(e,t){var r=this;if(!e.touch){var s=jf(e.lastEvent);V(this.overObjects.backwards().iterator(),function(n){if(n&&n.overPointers.contains(e)&&n.hoverable){var o=!1;n.element&&e.lastEvent&&fp(n.element,s)||(o=!0),o&&r.handleOut(n,e,t,!0)}})}V(this.transformedObjects.backwards().iterator(),function(n){n.downPointers.contains(e)&&!(n.swipeable&&r.swiping(n,e))&&(n.draggable||n.resizable)&&r.handleTransform(n,t)}),V(this.trackedObjects.backwards().iterator(),function(n){n.overPointers.contains(e)||r.handleTrack(n,e,t)})},i.prototype.handleTrack=function(e,t,r,s){if(s===void 0&&(s=!1),!(!s&&!this.moved(t,0))&&e.events.isEnabled("track")&&!me.isPaused){var n={type:"track",target:e,event:r,point:t.point,pointer:t,touch:t.touch};e.events.dispatchImmediately("track",n)}},i.prototype.handleSwipe=function(e,t,r){if(e.events.isEnabled("swipe")&&!me.isPaused){var s={type:"swipe",target:e,event:r,touch:t.touch};e.events.dispatchImmediately("swipe",s)}if(t.startPoint.x<t.point.x){if(e.events.isEnabled("swiperight")&&!me.isPaused){var s={type:"swiperight",target:e,event:r,touch:t.touch};e.events.dispatchImmediately("swiperight",s)}}else if(e.events.isEnabled("swipeleft")&&!me.isPaused){var s={type:"swipeleft",target:e,event:r,touch:t.touch};e.events.dispatchImmediately("swipeleft",s)}},i.prototype.handleWheel=function(e,t,r,s,n){var o={x:r,y:s};e.events.isEnabled("wheel")&&!me.isPaused&&e.events.dispatchImmediately("wheel",{type:"wheel",target:e,event:n,point:t.point,shift:o}),r<0?e.events.isEnabled("wheelleft")&&!me.isPaused&&e.events.dispatchImmediately("wheelleft",{type:"wheelleft",target:e,event:n,point:t.point,shift:o}):r>0?e.events.isEnabled("swiperight")&&!me.isPaused&&e.events.dispatchImmediately("wheelright",{type:"wheelright",target:e,event:n,point:t.point,shift:o}):s<0?e.events.isEnabled("wheelup")&&!me.isPaused&&e.events.dispatchImmediately("wheelup",{type:"wheelup",target:e,event:n,point:t.point,shift:o}):s>0&&e.events.isEnabled("wheeldown")&&!me.isPaused&&e.events.dispatchImmediately("wheeldown",{type:"wheeldown",target:e,event:n,point:t.point,shift:o})},i.prototype.handleInertia=function(e,t){e.draggable&&e.downPointers.length===0&&this.handleMoveInertia(e,t),e.resizable&&e.downPointers.length>1&&this.handleResizeInertia(e,t)},i.prototype.handleMoveInertia=function(e,t){var r=e,s="move",n={x:t.point.x,y:t.point.y},o={x:t.startPoint.x,y:t.startPoint.y},l=new hp(r,s,n,o),u=this.getTrailPoint(t,ir()-this.getInertiaOption(e,"move","time"));if(typeof u>"u"){this.processDragStop(e,t,t.lastUpEvent);return}var h=this.getInertiaOption(e,"move","factor"),p=[{to:t.point.x+(t.point.x-u.point.x)*h,property:"x"},{to:t.point.y+(t.point.y-u.point.y)*h,property:"y"}],d=new Nt(l,p,this.getInertiaOption(e,"move","duration"),this.getInertiaOption(e,"move","easing")).start();this._disposers.push(d.events.on("animationended",function(c){l.done()})),e.inertias.setKey("move",l)},i.prototype.handleResizeInertia=function(e,t){},i.prototype.handleTransform=function(e,t){var r=e.downPointers.getIndex(0),s=null,n=null;r&&(s=r.point,n=r.startPoint);var o,l,u;l={x:e.originalPosition.x,y:e.originalPosition.y},u=l;for(var h=!0,p=1;p<e.downPointers.length;p++){var d=e.downPointers.getIndex(p);if(n.x!=d.startPoint.x&&n.y!=d.startPoint.y){h=!1,o=d,l=o.point,u=o.startPoint;break}}var c=r&&this.moved(r,0);if(e.draggable&&r&&r.dragStartEvents&&r.dragStartEvents.length&&c&&e.events.isEnabled("dragstart")&&!me.isPaused&&e.events.dispatchImmediately("dragstart",r.dragStartEvents.shift()),h&&e.draggable)this.handleTransformMove(e,s,n,t,c,r.touch),this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(e,"hitTolerance"))&&this.cancelAllHovers(t);else{var f=o&&this.moved(o,0);(this.shouldCancelHovers(r)&&this.moved(r,this.getHitOption(e,"hitTolerance"))||this.shouldCancelHovers(o)&&this.moved(o,this.getHitOption(e,"hitTolerance")))&&this.cancelAllHovers(t),e.draggable&&e.resizable?(this.handleTransformMove(e,s,n,t,c&&f,r.touch),this.handleTransformResize(e,s,n,l,u,t,c&&f,r.touch)):(e.draggable&&this.handleTransformMove(e,s,n,t,c,r.touch),e.resizable&&(!h||t.ctrlKey)&&this.handleTransformResize(e,s,n,l,u,t,c&&f,r.touch))}},i.prototype.handleTransformMove=function(e,t,r,s,n,o){if(n&&e.events.isEnabled("drag")&&!me.isPaused&&(!e.isTouchProtected||!o)){var l={type:"drag",target:e,event:s,shift:{x:t.x-r.x,y:t.y-r.y},startPoint:r,point:t,touch:o};e.events.dispatchImmediately("drag",l)}},i.prototype.handleTransformResize=function(e,t,r,s,n,o,l,u){if(e.events.isEnabled("resize")&&!me.isPaused&&(!e.isTouchProtected||!u)){var h={type:"resize",target:e,event:o,scale:rf(t,r,s,n),startPoint1:r,point1:t,startPoint2:n,point2:s,touch:u};e.events.dispatchImmediately("resize",h)}},i.prototype.processDragStart=function(e,t,r){this.transformedObjects.moveValue(e),this.shouldCancelHovers(t)&&this.cancelAllHovers(r);var s={type:"dragstart",target:e,event:r,touch:t?t.touch:!1};t&&(t.dragTarget=e),t&&t.dragStartEvents?t.dragStartEvents.push(s):me.isPaused||e.dispatchImmediately("dragstart",s)},i.prototype.processDragStop=function(e,t,r){if(t||(t=this.getDragPointer(e)),t&&(t.dragTarget=void 0),this.transformedObjects.removeValue(e),(!t||this.moved(t,0))&&e.events.isEnabled("dragstop")&&!me.isPaused){var s={type:"dragstop",target:e,touch:t?t.touch:!1};e.events.dispatchImmediately("dragstop",s)}},i.prototype.processResizeStart=function(e,t,r){this.transformedObjects.moveValue(e)},i.prototype.processResizeStop=function(e,t,r){this.transformedObjects.removeValue(e)},i.prototype.dragStart=function(e,t){t||(t=this.getDragPointer(e)),t&&this.handleDown(e,t,t.lastDownEvent)},i.prototype.dragStop=function(e,t,r){t||(t=this.getDragPointer(e)),t&&!r&&this.handleGlobalUp(t,t.lastUpEvent,r)},i.prototype.getDragPointer=function(e){return e?e.downPointers.getIndex(0):this.transformedObjects.length?this.getDragPointer(this.transformedObjects.getIndex(0)):void 0},i.prototype.getPointerId=function(e){var t="";return $(e.identifier)?t=""+e.identifier:$(e.pointerId)?t=""+e.pointerId:t="m",t.replace("-","")},i.prototype.getPointerPoint=function(e){return{x:e.clientX,y:e.clientY}},i.prototype.getPointer=function(e){var t=this.getPointerId(e),r=this.getPointerPoint(e),s;return this.pointers.hasKey(t)?(s=this.pointers.getKey(t),s.touch=this.isPointerTouch(e)):(s={id:t,touch:this.isPointerTouch(e),startPoint:r,startTime:ir(),point:r,track:[],swipeCanceled:!1,dragStartEvents:[]},this.addBreadCrumb(s,r),this.pointers.setKey(t,s)),s.lastEvent=e,this.lastPointer=s,s},i.prototype.isPointerTouch=function(e){if(typeof Touch<"u"&&e instanceof Touch)return!0;if(typeof PointerEvent<"u"&&e instanceof PointerEvent&&$(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($(e.type)&&e.type.match(/^mouse/))return!1;return!0},i.prototype.resetPointer=function(e,t){var r=this.getPointerPoint(t);e.startTime=ir(),e.startPoint={x:r.x,y:r.y},e.point={x:r.x,y:r.y},e.track=[],e.swipeCanceled=!1},i.prototype.addBreadCrumb=function(e,t){e.track.push({timestamp:ir(),point:t})},i.prototype.lockDocument=function(){this.prepElement(this.body)},i.prototype.unlockDocument=function(){this.transformedObjects.length==0&&this.restoreAllStyles(this.body)},i.prototype.lockElement=function(e){this.prepElement(e)},i.prototype.unlockElement=function(e){this.restoreAllStyles(e)},i.prototype.lockWheel=function(){window.addEventListener(this._pointerEvents.wheel,this.wheelLockEvent,this._passiveSupported?{passive:!1}:!1)},i.prototype.unlockWheel=function(){window.removeEventListener(this._pointerEvents.wheel,this.wheelLockEvent)},i.prototype.isLocalElement=function(e,t,r){var s=this.getCache("local_pointer_"+e.id);if($(s))return s;var n=Ml(t)||document;if(n.elementFromPoint){var o=n.elementFromPoint(e.point.x,e.point.y),l=o&&fp(t,o);return this.setCache("local_pointer_"+e.id+"_"+r,l,100),l}return!1},i.prototype.wheelLockEvent=function(e){return e.preventDefault(),!1},i.prototype.prepElement=function(e){var t=e.element;if(t){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],s=0;s<r.length;s++)r[s]in t.style&&this.setTemporaryStyle(e,r[s],"none");this.setTemporaryStyle(e,"tapHighlightColor","rgba(0, 0, 0, 0)")}},i.prototype.unprepElement=function(e){var t=e.element;if(t){for(var r=["touchAction","webkitTouchAction","MozTouchAction","MSTouchAction","msTouchAction","oTouchAction","userSelect","webkitUserSelect","MozUserSelect","MSUserSelect","msUserSelect","oUserSelect","touchSelect","webkitTouchSelect","MozTouchSelect","MSTouchSelect","msTouchSelect","oTouchSelect","touchCallout","webkitTouchCallout","MozTouchCallout","MSTouchCallout","msTouchCallout","oTouchCallout","contentZooming","webkitContentZooming","MozContentZooming","MSContentZooming","msContentZooming","oContentZooming","userDrag","webkitUserDrag","MozUserDrag","MSUserDrag","msUserDrag","oUserDrag"],s=0;s<r.length;s++)r[s]in t.style&&this.restoreStyle(e,r[s]);this.restoreStyle(e,"tapHighlightColor")}},i.prototype.getHitOption=function(e,t){var r=e.hitOptions[t];return typeof r>"u"&&(r=this.hitOptions[t]),r},i.prototype.getHoverOption=function(e,t){var r=e.hoverOptions[t];return typeof r>"u"&&(r=this.hoverOptions[t]),r},i.prototype.getSwipeOption=function(e,t){var r=e.swipeOptions[t];return typeof r>"u"&&(r=this.swipeOptions[t]),r},i.prototype.getKeyboardOption=function(e,t){var r=e.keyboardOptions[t];return typeof r>"u"&&(r=this.keyboardOptions[t]),r},i.prototype.getMouseOption=function(e,t){var r=e.mouseOptions[t];return typeof r>"u"&&(r=this.mouseOptions[t]),r},i.prototype.getInertiaOption=function(e,t,r){var s=e.inertiaOptions.getKey(t),n;return s&&$(s[r])?n=s[r]:n=this.inertiaOptions.getKey(t)[r],n},i.prototype.stopInertia=function(e){for(var t,r=["move","resize"],s=0;s<r.length;s++)if(t=r[s],e.inertias.hasKey(t)){var n=e.inertias.getKey(t);if(n){n.dispose();continue}}},i.prototype.swiping=function(e,t){var r=ir();return t.swipeCanceled||!e.swipeable?!1:Math.abs(t.startPoint.y-t.point.y)<this.getSwipeOption(e,"verticalThreshold")&&t.startTime>r-this.getSwipeOption(e,"time")},i.prototype.swiped=function(e,t){var r=ir();return t.swipeCanceled?!1:Math.abs(t.startPoint.x-t.point.x)>this.getSwipeOption(e,"horizontalThreshold")&&Math.abs(t.startPoint.y-t.point.y)<this.getSwipeOption(e,"verticalThreshold")&&t.startTime>r-this.getSwipeOption(e,"time")},i.prototype.applyCursorOverStyle=function(e){var t=e.cursorOptions;if($(t.overStyle))for(var r=0;r<t.overStyle.length;r++)cp(e.element,t.overStyle[r].property,t.overStyle[r].value)},i.prototype.applyCursorDownStyle=function(e,t){if(!(t&&t.touch)){var r=e.cursorOptions.downStyle;if(e.downPointers.contains(t)&&$(r))for(var s=0;s<r.length;s++)this.setTemporaryStyle(this.body,r[s].property,r[s].value),this.setTemporaryStyle(e,r[s].property,r[s].value)}},i.prototype.restoreCursorDownStyle=function(e,t){if(!(t&&t.touch)){var r=e.cursorOptions.downStyle;if(e.downPointers.contains(t)&&$(r))for(var s=0;s<r.length;s++)this.restoreStyle(this.body,r[s].property),this.restoreStyle(e,r[s].property)}},i.prototype.setGlobalStyle=function(e){for(var t=re().body,r=je(e)?e:[e],s=0;s<r.length;s++)this.setTemporaryStyle(t,r[s].property,r[s].value)},i.prototype.restoreGlobalStyle=function(e){for(var t=re().body,r=je(e)?e:[e],s=0;s<r.length;s++)this.restoreStyle(t,r[s].property)},i.prototype.isGlobalElement=function(e){return document.body===e.element},i.prototype.moved=function(e,t,r){r===void 0&&(r=300);var s=this.getShift(e);return Math.abs(s.x)>t||Math.abs(s.y)>t},i.prototype.old=function(e,t){return t===void 0&&(t=300),ir()-e.startTime>t},i.prototype.getShift=function(e){return{x:e.startPoint.x-e.point.x,y:e.startPoint.y-e.point.y}},i.prototype.getTrailPoint=function(e,t){for(var r,s=0;s<e.track.length;s++)if(e.track[s].timestamp>=t){r=e.track[s];break}return r},i.prototype.pointerExists=function(e,t){var r=!1;return e.each(function(s){s!=t&&(r=s.point.x==t.point.x&&s.point.y==t.point.y)}),r},i.prototype.getInteraction=function(e){return new lp(e)},i.prototype.setTemporaryStyle=function(e,t,r){var s=e.element;$(s.style[t])&&!e.replacedStyles.hasKey(t)&&e.replacedStyles.setKey(t,s.style[t]),cp(s,t,r)},i.prototype.restoreStyle=function(e,t){e.replacedStyles.hasKey(t)?(e.element.style[t]=e.replacedStyles.getKey(t),e.replacedStyles.removeKey(t)):delete e.element.style[t]},i.prototype.restoreAllStyles=function(e){V(e.replacedStyles.iterator(),function(t){var r=t[0],s=t[1];e.element.style[r]=s,e.replacedStyles.removeKey(r)})},i.prototype.dispose=function(){this.isDisposed()||(a.prototype.dispose.call(this),this.restoreAllStyles(this.body),this.unlockWheel())},i.prototype.log=function(e,t,r){var s=!0;if(s){if(t.changedTouches){for(var n=0;n<t.changedTouches.length;n++)this.logTouch(e,t.type,t.changedTouches[n]);return}var o="";if(t.pointerType)switch(t.pointerType){case 2:o="touch";break;case 4:o="mouse";break;default:o=t.pointerType;break}else typeof TouchEvent<"u"&&t instanceof TouchEvent?o="touch":t.type.match(/^mouse/)?o="mouse":o="???";var l="";$(t.identifier)?l=t.identifier:$(t.pointerId)?l=t.pointerId:l="???",console.log(r?e+" ("+r.uid+") "+t.type+" "+o+" "+l:e+" "+t.type+" "+o+" "+l)}},i.prototype.areTransformed=function(e){var t=this.transformedObjects.length;if(e)for(var r=je(e)?e:[e],s=0;s<r.length;s++)this.transformedObjects.contains(r[s])&&t--;return t>0},i.prototype.logTouch=function(e,t,r){console.log(e+" "+t+" touch "+r.identifier)},Object.defineProperty(i,"passiveSupported",{get:function(){var e=this;if(this._passiveSupported==null)try{var t=Object.defineProperty({},"passive",{get:function(){e._passiveSupported=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{this._passiveSupported=!1}return this._passiveSupported},enumerable:!0,configurable:!0}),i})(It);var vp=null;function re(){return vp==null&&(vp=new Bf),vp}var ca=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Rectangle",e.element=e.paper.add("rect"),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this._positionPrecision;this.pixelPerfect&&(e=0);var t=I(this.innerWidth,e),r=I(this.innerHeight,e);this.element.attr({width:t,height:r})},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.Rectangle=ca;var J=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._purposes={stroke:Z("#e5e5e5"),fill:Z("#f3f3f3"),primaryButton:Z("#6794dc"),primaryButtonHover:Z("#6771dc"),primaryButtonDown:Z("#68dc75"),primaryButtonActive:Z("#68dc75"),primaryButtonText:Z("#FFFFFF"),primaryButtonStroke:Z("#FFFFFF"),secondaryButton:Z("#d9d9d9"),secondaryButtonHover:Z("#d9d9d9").brighten(-.25),secondaryButtonDown:Z("#d9d9d9").brighten(-.35),secondaryButtonActive:Z("#d9d9d9").brighten(.35),secondaryButtonText:Z("#000000"),secondaryButtonStroke:Z("#FFFFFF"),grid:Z("#000000"),background:Z("#ffffff"),alternativeBackground:Z("#000000"),text:Z("#000000"),alternativeText:Z("#FFFFFF"),disabledBackground:Z("#999999"),positive:Z("#67dc75"),negative:Z("#dc6788")},e.className="InterfaceColorSet",e.applyTheme(),e}return i.prototype.debug=function(){},i.prototype.getFor=function(e){return this._purposes[e]},i.prototype.setFor=function(e,t){this._purposes[e]=t},i})(Ze);_.registeredClasses.InterfaceColorSet=J;var Y=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._childrenByLayout=[],e._childrenDisposers=new _e,e.hasFocused=!1,e.setStateOnSprites=[],e.layoutInvalid=!1,e._absoluteWidth=0,e._absoluteHeight=0,e._shouldBeReady=[],e._tapToActivate=!1,e.tapTimeout=3e3,e.className="Container",e._element=e.paper.addGroup("g"),e.group.add(e.element),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("layout","absolute"),e.setPropertyValue("fixedWidthGrid",!1),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e._positionPrecision=4,e._disposers.push(new Pi(e._childrenDisposers)),e.children.events.on("inserted",e.handleChildAdded,e),e.children.events.on("removed",e.handleChildRemoved,e),e.applyTheme(),e}return i.prototype.handleChildAdded=function(e){this.processChild(e.newValue)},i.prototype.processChild=function(e){try{this._childrenDisposers.insertKey(e.uid,new Pe([e.events.on("transformed",this.handleChildTransform,this),e.events.on("zIndexChanged",this.sortAndAdd,this)]))}catch{}if(this.element){var t=this.element;t.add(e.group)}e.parent=this,e.paper=this.paper,this.dispatchImmediately("childadded",{type:"childadded",newValue:e}),this.invalidate()},i.prototype.sortAndAdd=function(){this.sortChildren(),this.addChildren()},i.prototype.handleChildRemoved=function(e){var t=e.oldValue;if(this._childrenDisposers.removeKey(t.uid),this.element){var r=this.element;r.removeElement(t.group)}t.isMeasured&&this.invalidateLayout(),this.dispatchImmediately("childremoved",{type:"childremoved",oldValue:t})},i.prototype.handleChildTransform=function(e){var t=e.target;t.isMeasured&&this.invalidateLayout()},i.prototype.invalidateLayout=function(){this.layoutInvalid||this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||(this.layoutInvalid=!0,_.addToInvalidLayouts(this),me.requestFrame())},i.prototype.invalidate=function(){a.prototype.invalidate.call(this),this.invalidateLayout()},i.prototype.deepInvalidate=function(){a.prototype.invalidate.call(this),M(this._childrenByLayout,function(e){e instanceof i?e.deepInvalidate():e.invalidate()}),this.invalidateLayout()},Object.defineProperty(i.prototype,"children",{get:function(){return this._children||(this._children=new he),this._children},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(e){this.setPropertyValue("minHeight",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),i.prototype.removeElement=function(){},i.prototype.sortChildren=function(){var e=this;if(this._childrenByLayout=[],this.layout=="none"||this.layout=="absolute"||!this.layout)this._childrenByLayout=this.children.values;else{var t=[],r=[];V(this.children.iterator(),function(s){e.layout=="horizontal"||e.layout=="grid"?b(s.percentWidth)?r.push(s):t.push(s):e.layout=="vertical"&&b(s.percentHeight)?r.push(s):t.push(s)}),this._childrenByLayout=t.concat(r)}this.calculateRelativeSize()},i.prototype.calculateRelativeSize=function(){var e=this,t=0,r=0;M(this._childrenByLayout,function(s){s.isMeasured&&(b(s.percentWidth)&&(t+=s.percentWidth),b(s.percentHeight)&&(r+=s.percentHeight))}),M(this._childrenByLayout,function(s){s.isMeasured&&(e.layout=="horizontal"&&(b(s.percentWidth)&&(s.relativeWidth=s.percentWidth/t),b(s.percentHeight)&&(s.relativeHeight=s.percentHeight/100)),e.layout=="vertical"&&(b(s.percentHeight)&&(s.relativeHeight=s.percentHeight/r),b(s.percentWidth)&&(s.relativeWidth=s.percentWidth/100)),e.layout=="grid"&&(b(s.percentHeight)&&(s.relativeHeight=s.percentHeight/100),b(s.percentWidth)&&(s.relativeWidth=s.percentWidth/100))),(e.layout=="absolute"||!s.isMeasured)&&(b(s.percentWidth)&&(s.relativeWidth=s.percentWidth/100),b(s.percentHeight)&&(s.relativeHeight=s.percentHeight/100))})},i.prototype.addChildren=function(){if(this.element){var e=Br(this.children.values),t=e.map(function(l,u){return{idx:u,data:l}});t.sort(function(l,u){var h=l.data.zIndex||0,p=u.data.zIndex||0;return h<p?-1:h>p?1:l.idx-u.idx}),e=t.map(function(l){return l.data});var r=this.element,s=!0;if(r.node&&r.node.childNodes){for(var n=0,o=r.node.childNodes.length;n<o;n++)if(r.node.childNodes[n]!=e[n].group.node){s=!1;break}}s||(M(e,function(l){l.group&&r.add(l.group)}),this._background&&this.group.addToBack(this._background.group),this.invalidateLayout())}},i.prototype.createChild=function(e){var t=new e;return t.parent=this,t},i.prototype.removeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.parent=void 0,this.children.removeValue(e)}},i.prototype.disposeChildren=function(){for(;this.children.length>0;){var e=this.children.getIndex(0);e.dispose(),this.children.removeValue(e)}},Object.defineProperty(i.prototype,"background",{get:function(){return this._background||(this._background=this.createBackground(),this.processBackground()),this._background},set:function(e){this._background&&this.background!=e&&this.removeDispose(this._background),e&&(this._background=e,this._disposers.push(e),this.processBackground())},enumerable:!0,configurable:!0}),i.prototype.handleGlobalScale=function(){a.prototype.handleGlobalScale.call(this),this.children.each(function(e){e.handleGlobalScale()})},i.prototype.createBackground=function(){return new ca},i.prototype.processBackground=function(){var e=this._background;e&&(e.isMeasured=!1,this._background.fill=new J().getFor("background"),e.parent=this,e.isMeasured=!1,this.children.removeValue(e),this._disposers.push(e),this.group.addToBack(this._background.group))},i.prototype.validateLayout=function(){var e=this;_.removeFromInvalidLayouts(this),this.layoutInvalid=!1,this._availableWidth=this.innerWidth,this._availableHeight=this.innerHeight;var t=0,r=0,s=!0;this.children&&(this.sortChildren(),M(this._childrenByLayout,function(n){var o,l;if(b(n.relativeWidth)?(o=I(e._availableWidth*n.relativeWidth,2),e.layout=="horizontal"&&(o-=n.pixelMarginRight+n.pixelMarginLeft)):e.layout=="horizontal"&&n.invalid&&n.validate(),b(n.relativeHeight)?(l=I(e._availableHeight*n.relativeHeight,2),e.layout=="vertical"&&(l-=n.pixelMarginTop+n.pixelMarginBottom)):e.layout=="vertical"&&n.invalid&&n.validate(),n.invalid==!1){if(b(n.relativeWidth)&&(n.maxWidth=o),b(n.relativeHeight)&&(n.maxHeight=l),n.isMeasured){e.layout=="horizontal"&&(b(n.percentWidth)||n.measuredWidth>0&&(e._availableWidth-=n.measuredWidth+n.pixelMarginLeft+n.pixelMarginRight)),e.layout=="vertical"&&(b(n.percentHeight)||n.measuredHeight>0&&(e._availableHeight-=n.measuredHeight+n.pixelMarginTop+n.pixelMarginBottom));var u=n.measuredWidth,h=n.measuredHeight;n.align!="none"&&(u+=n.pixelMarginLeft+n.pixelMarginRight),n.valign!="none"&&(h+=n.pixelMarginTop+n.pixelMarginBottom),t=Math.max(t,u),r=Math.max(r,h)}}else n.isMeasured&&(b(n.relativeWidth)&&n.maxWidth!=o&&(n.maxWidth=o,s=!1),b(n.relativeHeight)&&n.maxHeight!=l&&(n.maxHeight=l,s=!1))})),this._absoluteWidth=t,this._absoluteHeight=r,s&&this.arrange()},i.prototype.arrange=function(){var e=this,t=this.children,r=0,s=0,n=ie(this.innerWidth,this._absoluteWidth),o=ie(this.innerHeight,this._absoluteHeight),l,u,h,p,d=this.pixelPaddingLeft,c=this.pixelPaddingRight,f=this.pixelPaddingTop,y=this.pixelPaddingBottom,g=0,v=0,x=0,P=0,T=[],C=[],O,w,D,A=this.maxWidth,H=this.maxHeight,E=this.minWidth,j=this.minHeight,ce=Br(t.values);if(this.reverseOrder&&ce.reverse(),this.layout=="grid"){w=A,O=1;for(var be=0,ke=ce.length;be<ke;be++){var K=ce[be];if(K.isMeasured&&!K.disabled&&!K.__disabled){var De=K.measuredWidth;De<w&&(w=De),De>O&&(O=De)}}w=X(w,1,A),O=X(O,1,A),this.fixedWidthGrid?D=A/O:D=A/w,D=ie(1,Math.floor(D)),D=le(this.maxColumns,D),T=this.getColumnWidth(ce,D,O)}for(var Le,ze,ft,at,be=0,ke=ce.length;be<ke;be++){var K=ce[be];if(K.isMeasured&&!K.disabled&&!K.__disabled){var oe=void 0,Be=void 0,st=K.pixelMarginLeft,Hi=K.pixelMarginRight,Fi=K.pixelMarginTop,ii=K.pixelMarginBottom,vi=K.measuredWidth,dr=K.measuredHeight,Qi=void 0,Da=void 0,Aa=void 0,Bo=void 0;switch(this.layout){case"none":break;case"absolute":switch(K.align){case"left":oe=st-K.maxLeft;break;case"center":oe=(n-vi)/2-K.maxLeft;break;case"right":oe=n-Hi-K.maxRight;break;default:K.x instanceof ae||(oe=K.pixelX);break}switch(K.valign){case"top":Be=Fi-K.maxTop;break;case"middle":Be=(o-dr)/2-K.maxTop;break;case"bottom":Be=o-ii-K.maxBottom;break;default:K.y instanceof ae||(Be=K.pixelY);break}break;case"vertical":switch(K.align){case"left":oe=st-K.maxLeft;break;case"center":oe=(n-vi)/2-K.maxLeft;break;case"right":oe=n-Hi-K.maxRight;break;default:oe=K.pixelX;break}Be=v+Fi-K.maxTop,v=Be+K.maxBottom+ii;break;case"horizontal":switch(K.valign){case"top":Be=Fi-K.maxTop;break;case"middle":Be=(o-dr)/2-K.maxTop;break;case"bottom":Be=o-ii-K.maxBottom;break;default:Be=K.pixelY;break}oe=g+st-K.maxLeft,g=oe+K.maxRight+Hi;break;case"grid":switch(oe=g+st-K.maxLeft,K.valign){case"top":Be=v+Fi-K.maxTop;break;case"middle":Be=v+(o-dr)/2-K.maxTop;break;case"bottom":Be=v+o-ii-K.maxBottom;break;default:Be=v-K.maxTop;break}g+=T[P],C[x]=ie(C[x],dr),P++;var Nu=T[P];if(b(Nu)||(Nu=O),g>le(this.innerWidth,A)-Nu+1&&P<D){D=P,g=0,v=0,x=0,P=0,T=this.getColumnWidth(ce,D,O),C=[],be=-1;continue}P>=D&&(P=0,v+=C[x],x++,g=0);break}this.layout!=="none"&&(K.moveTo({x:oe,y:Be}),Qi=oe+K.maxLeft-st,Da=oe+K.maxRight+Hi,Aa=Be+K.maxTop-Fi,Bo=Be+K.maxBottom+ii,(Da>u||!b(u))&&(u=Da),(Qi<l||!b(l))&&(l=Qi),(Aa<h||!b(h))&&(h=Aa),(Bo>p||!b(p))&&(p=Bo),(Da>ze||!b(ze))&&(ze=Da),(Qi<Le||!b(Le))&&(Le=Qi),(Aa<ft||!b(ft))&&(ft=Aa),(Bo>at||!b(at))&&(at=at))}else K.validatePosition()}if(this.layout=="none"){var gs=this.bbox;l=gs.x,u=gs.x+gs.width,h=gs.y,p=gs.y+gs.height}b(l)||(l=0,Le=0),b(u)||(u=this._availableWidth,ze=u),b(h)||(h=0,ft=0),b(p)||(p=this._availableHeight,at=p),b(ft)||(ft=0),b(at)||(at=ft),b(Le)||(Le=0),b(ze)||(ze=Le),r=u-l,s=p-h,b(this.relativeWidth)&&(r=A-d-c,l=0,u=r),b(this.relativeHeight)&&(s=H-f-y,h=0,p=s),b(this._pixelWidth)&&(l=0,r=this._pixelWidth-d-c),b(E)&&r<E&&(l=0,r=this.minWidth-d-c),b(this._pixelHeight)&&(h=0,s=this._pixelHeight-f-y),b(j)&&s<j&&(h=0,s=j-f-y);var Wo=ze-Le,Ho=at-ft;if(this.layout!="none"&&(this.contentAlign||this.contentValign)&&t.length>0){var zo,Xo,Yo=r,Go=s;Yo<Wo&&(Yo=Wo),Go<Ho&&(Go=Ho),this.contentAlign=="center"&&(zo=(Yo-Wo)/2),this.contentAlign=="right"&&(zo=Yo-Wo),this.contentValign=="middle"&&(Xo=(Go-Ho)/2),this.contentValign=="bottom"&&(Xo=Go-Ho),b(zo)&&V(t.iterator(),function(Pt){var vs=Pt.maxLeft,bi=zo;e.layout=="horizontal"&&(Pt.x=Pt.pixelX+bi),e.layout=="grid"&&(Pt.x=Pt.pixelX+bi),e.layout=="vertical"&&(bi+=Pt.pixelMarginLeft,Pt.align=="none"&&(Pt.x=bi-vs)),e.layout=="absolute"&&(bi+=Pt.pixelMarginLeft,Pt.align=="none"&&(Pt.x=bi-vs))}),b(Xo)&&V(t.iterator(),function(Pt){var vs=Pt.maxTop,bi=Xo;e.layout=="horizontal"&&(bi+=Pt.pixelMarginTop,Pt.valign=="none"&&(Pt.y=bi-vs)),e.layout=="grid"&&(bi+=Pt.pixelMarginTop,Pt.y=bi-vs),e.layout=="vertical"&&(Pt.y=Pt.pixelY+bi),e.layout=="absolute"&&(bi+=Pt.pixelMarginTop,Pt.valign=="none"&&(Pt.y=bi-vs))})}var Eu=this.bbox;r=ie(r,E),s=ie(s,j),this.contentWidth=r,this.contentHeight=s,r=le(r,A),s=le(s,H),this._bbox={x:l,y:h,width:r,height:s};var ag=this.maxLeft,sg=this.maxTop,ng=this.maxBottom,og=this.maxRight;if(this.measure(),(ag!=this.maxLeft||og!=this.maxRight||sg!=this.maxTop||ng!=this.maxBottom)&&this.events.isEnabled("transformed")){var wd={type:"transformed",target:this};Eu&&(wd.dummyData=Eu.width+" "+r+" "+Eu.height+" "+s),this.events.dispatchImmediately("transformed",wd)}this.dispatchImmediately("layoutvalidated")},i.prototype.updateCenter=function(){a.prototype.updateCenter.call(this),this.updateBackground()},i.prototype.updateBackground=function(){var e=this._background;e&&(e.x=this.maxLeft,e.y=this.maxTop,e.width=this.maxRight-this.maxLeft,e.height=this.maxBottom-this.maxTop)},i.prototype.getColumnWidth=function(e,t,r){var s=this,n=[],o=0;return M(e,function(l){l.isMeasured&&!l.disabled&&!l.__disabled&&(s.fixedWidthGrid?n[o]=r:n[o]=ie(n[o],l.measuredWidth+l.pixelMarginRight+l.pixelMarginLeft),o++,o==t&&(o=0))}),n},Object.defineProperty(i.prototype,"layout",{get:function(){return this.getPropertyValue("layout")},set:function(e){this.setPropertyValue("layout",e)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contentValign",{get:function(){return this.getPropertyValue("contentValign")},set:function(e){this.setPropertyValue("contentValign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contentAlign",{get:function(){return this.getPropertyValue("contentAlign")},set:function(e){this.setPropertyValue("contentAlign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fixedWidthGrid",{get:function(){return this.getPropertyValue("fixedWidthGrid")},set:function(e){this.setPropertyValue("fixedWidthGrid",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxColumns",{get:function(){return this.getPropertyValue("maxColumns")},set:function(e){this.setPropertyValue("maxColumns",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reverseOrder",{get:function(){return this.getPropertyValue("reverseOrder")},set:function(e){this.setPropertyValue("reverseOrder",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"setStateOnChildren",{get:function(){return this.getPropertyValue("setStateOnChildren")},set:function(e){this.setPropertyValue("setStateOnChildren",e,!0)},enumerable:!0,configurable:!0}),i.prototype.fitsToBounds=function(e){var t=e.x,r=e.y,s=.5;return t>=-s&&t<=this.pixelWidth+s&&r>=-s&&r<=this.pixelHeight+s},i.prototype.copyFrom=function(e){var t=this;a.prototype.copyFrom.call(this,e),this.layout=e.layout,this.setStateOnChildren=e.setStateOnChildren,e._background&&(this.background=e._background.clone(),this.background.copyFrom(e._background)),V(e.children.iterator(),function(r){if(r.shouldClone){var s=r.clone();s.parent=t}})},Object.defineProperty(i.prototype,"preloader",{get:function(){var e=this._preloader;if(e)return e;if(this.parent)return this.parent.preloader},set:function(e){this._preloader&&this.removeDispose(this._preloader),this._preloader=e,e&&(e.parent=this.tooltipContainer,this._disposers.push(e))},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(e){var t=this,r=a.prototype.setPaper.call(this,e);return r&&(this._background&&(this._background.paper=e,this._background.topParent=this.topParent),this.children.each(function(s){s.setPaper(e),s.topParent=t.topParent})),r},i.prototype.removeFromInvalids=function(){a.prototype.removeFromInvalids.call(this),_.removeFromInvalidLayouts(this)},i.prototype.setDataItem=function(e){this._dataItem!=e&&(V(this.children.iterator(),function(t){t.dataItem=e}),this._background&&(this._background.dataItem=e)),a.prototype.setDataItem.call(this,e)},i.prototype.measureElement=function(){this.disabled||this.isTemplate||this.layout=="none"||this.__disabled||this.validateLayout()},Object.defineProperty(i.prototype,"fontFamily",{get:function(){return this.getPropertyValue("fontFamily")},set:function(e){this.setPropertyValue("fontFamily",e,!0)&&(this.setSVGAttribute({"font-family":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fontSize",{get:function(){return this.getPropertyValue("fontSize")},set:function(e){this.setPropertyValue("fontSize",e,!0)&&(this.setSVGAttribute({"font-size":e}),this.invalidateLabels())},enumerable:!0,configurable:!0}),i.prototype.invalidateLabels=function(){this.children.each(function(e){e.hardInvalidate?(e.hardInvalidate(),e.events.once("validated",e.handleValidate,e,!1)):e instanceof i&&e.invalidateLabels()})},Object.defineProperty(i.prototype,"fontWeight",{get:function(){return this.getPropertyValue("fontWeight")},set:function(e){this.setPropertyValue("fontWeight",e),this.setSVGAttribute({"font-weight":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textDecoration",{get:function(){return this.getPropertyValue("textDecoration")},set:function(e){this.setPropertyValue("textDecoration",e),this.setSVGAttribute({"text-decoration":e})},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this._background&&this._background.dispose(),this._shouldBeReady=[],this.disposeChildren(),a.prototype.dispose.call(this)},i.prototype.setState=function(e,t,r){var s=e;return e instanceof Ua&&(s=e.name),this.setStateOnChildren&&V(this.children.iterator(),function(n){n.setState(s,t,r),s!="active"&&(n.isActive=!1)}),this._background&&this._background.setState(s),this.setStateOnSprites.length&&M(this.setStateOnSprites,function(n){n.setState(s,t,r)}),a.prototype.setState.call(this,e,t,r)},i.prototype.setActive=function(e){a.prototype.setActive.call(this,e),this._background&&(this._background.isActive=e)},i.prototype.dispatchReady=function(){var e=this;if(!this.isReady()&&!this.isDisposed()){var t=!0;St(this.children.iterator(),function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(t=!1,!1):!0}),Ms(this._shouldBeReady,function(r){return!r.__disabled&&!r.disabled&&!r.isReady()?(t=!1,!1):!0}),t?a.prototype.dispatchReady.call(this):_.events.once("exitframe",function(){e.dispatchReady(),me.requestFrame()},void 0,!1)}},i.prototype._systemUpdate=function(e){this.children.each(function(t){t.invalid&&(t._systemCheckIfValidate()?t.dataItem&&t.dataItem.component&&t.dataItem.component.dataInvalid?e.push(t):t.validate():e.push(t))}),a.prototype._systemUpdate.call(this,e)},i.prototype._systemValidatePositions=function(){this.children.each(function(e){e.positionInvalid&&e.validatePosition()}),a.prototype._systemValidatePositions.call(this)},i.prototype._systemValidateLayouts=function(){this.layoutInvalid&&!this.isDisposed()&&this.validateLayout()},Object.defineProperty(i.prototype,"tapToActivate",{get:function(){return this._tapToActivate},set:function(e){this._tapToActivate!=e&&this.setTapToActivate(e)},enumerable:!0,configurable:!0}),i.prototype.setTapToActivate=function(e){var t=this;this._tapToActivate=e,this.interactions.isTouchProtected=e,e&&this.interactions.setEventDisposer("container-tapToActivate",e,function(){return new Pe([t.events.on("hit",t.handleTapToActivate,t,!1),t.events.on("down",t.initTapTimeout,t,!1),t.events.on("track",t.initTapTimeout,t,!1),re().body.events.on("down",function(r){re().isLocalElement(r.pointer,t.paper.svg,t.uid)||t.handleTapToActivateDeactivation()},t,!1)])}),re()},i.prototype.handleTapToActivate=function(){this.interactions.isTouchProtected=!1,this.initTapTimeout()},i.prototype.handleTapToActivateDeactivation=function(){this.interactions.isTouchProtected=!0},i.prototype.initTapTimeout=function(){var e=this;this._tapToActivateTimeout&&this._tapToActivateTimeout.dispose(),this.tapToActivate&&!this.interactions.isTouchProtected&&this.tapTimeout&&(this._tapToActivateTimeout=this.setTimeout(function(){e.handleTapToActivateDeactivation()},this.tapTimeout))},i.prototype.moveHtmlContainer=function(e){var t=Qn(e);if(t){this.htmlContainer=t;var r=this.svgContainer;r.htmlElement=t,r.htmlElement.appendChild(r.SVGContainer),r.initSensor(),r.measure()}else se(e)&&e!=""&&me.log("html container '"+e+"' not found")},i.prototype.hasLicense=function(){if(ue.commercialLicense)return!0;for(var e=0;e<ue.licenses.length;e++)if(ue.licenses[e].match(/^CH.{5,}/i))return!0;return!1},i})(U);_.registeredClasses.Container=Y;function Wf(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];ue.verbose&&console&&console.log.apply(console,Nr(a))}function sn(){for(var a=[],i=0;i<arguments.length;i++)a[i]=arguments[i];ue.suppressWarnings||console&&console.warn.apply(console,Nr(a))}var Hf=(function(){function a(){this._isPaused=!1,this.animations=[],this.uid=_.getUniqueId(),this.dummyCounter=0,this._frameRequested=!1,this.updateStepDuration=45,this.time=Date.now()}return a.prototype.reportTime=function(i,e){this.dummyCounter<6,e&&(this.time=Date.now())},a.prototype.update=function(){var i=this;if(!this._isPaused){this._frameRequested=!1;var e=Date.now();_.dispatchImmediately("enterframe");var t=[];for(var r in _.invalidDatas)if(Xi(_.invalidDatas,r)){for(var s=_.invalidDatas[r];s.length>0;){var n=s[0],o=n.dataProvider;if(n.isDisposed())ee(s,n);else if(o&&o.dataInvalid)try{if(o.validateData(),o.dataValidationProgress<1)break}catch(p){ee(s,o),o.raiseCriticalError(p)}else try{if(n.validateData(),n.dataValidationProgress<1)break}catch(p){ee(s,n),n.raiseCriticalError(p)}}if(Date.now()-e>this.updateStepDuration)break}for(;_.invalidRawDatas.length>0;){var n=_.invalidRawDatas[0];if(n.isDisposed())ee(_.invalidRawDatas,n);else try{n.validateRawData()}catch(d){ee(_.invalidRawDatas,n),n.raiseCriticalError(d)}}for(;_.invalidDataItems.length>0;){var n=_.invalidDataItems[0],o=n.dataProvider;if(!(n.isDisposed()||n.dataInvalid||o&&o.dataInvalid))try{n.validateDataItems()}catch(c){ee(_.invalidDataItems,n),n.raiseCriticalError(c)}ee(_.invalidDataItems,n)}for(;_.invalidDataRange.length>0;){var n=_.invalidDataRange[0],o=n.dataProvider;if(!(n.isDisposed()||n.dataInvalid||o&&o.dataInvalid))try{n.validateDataRange(),n.skipRangeEvent||n.dispatchImmediately("datarangechanged"),n.skipRangeEvent=!1}catch(c){ee(_.invalidDataRange,n),n.raiseCriticalError(c)}ee(_.invalidDataRange,n)}var l=[];q(_.invalidLayouts,function(p){i.validateLayouts(p)}),q(_.invalidPositions,function(p){i.validatePositions(p)});var u=!1;if(e=Date.now(),q(_.invalidSprites,function(p,d){for(var c=0;d.length>0;){if(i.validateLayouts(p),i.validatePositions(p),c++,c==5){if(Date.now()-e>i.updateStepDuration)break;c=0}var f=d[d.length-1];if(f&&!f.isDisposed()){if(!f._systemCheckIfValidate())l.push(f);else if(!i.checkIfValidate2(f))l.push(f);else try{f._systemUpdate(l)}catch(y){f.invalid=!1,ee(d,f),f.raiseCriticalError(y)}f.invalid=!1}ee(d,f)}_.invalidSprites[p]=_.invalidSprites[p].concat(l)}),q(_.invalidSprites,function(p,d){d.length>0&&(u=!0)}),q(_.invalidDatas,function(p,d){d.length>0&&(u=!0)}),M(Br(this.animations),function(p){p.update()}),q(_.invalidLayouts,function(p){i.validateLayouts(p)}),q(_.invalidPositions,function(p){i.validatePositions(p)}),Fh(),q(_.invalidLayouts,function(p){i.validateLayouts(p)}),q(_.invalidPositions,function(p){i.validatePositions(p)}),_.dispatchImmediately("exitframe"),(u||this.animations.length>0||t.length>0)&&this.requestFrame(),this.updateStepDuration<200){var h=!0;q(_.invalidDatas,function(p,d){d.length>0&&(h=!1)}),q(_.invalidSprites,function(p,d){d.length>0&&(h=!1)}),h&&(this.updateStepDuration=200)}}},a.prototype.checkIfValidate2=function(i){return!(i.dataItem&&i.dataItem.component&&i.dataItem.component.dataInvalid&&!i.dataItem.component.isTemplate)},a.prototype.requestFrame=function(){var i=this;this._frameRequested||(xl(function(){i.update()}),this._frameRequested=!0)},a.prototype.softInvalidate=function(i){var e=this;i.children.each(function(t){t instanceof Y&&e.softInvalidate(t),t.measureFailed&&(Lh(t,"Label")?t.hardInvalidate():t.invalidate(),t.measureFailed=!1)})},a.prototype.validatePositions=function(i){for(var e=_.invalidPositions[i];e.length>0;){var t=e[e.length-1];if(t.isDisposed())ee(e,t);else try{t._systemValidatePositions()}catch(r){t.positionInvalid=!1,ee(e,t),t.raiseCriticalError(r)}}},a.prototype.validateLayouts=function(i){for(var e=_.invalidLayouts[i];e.length>0;){var t=e[e.length-1];if(t.isDisposed())ee(e,t);else try{t.children.each(function(r){r._systemValidateLayouts()}),t.validateLayout()}catch(r){t.layoutInvalid=!1,ee(e,t),t.raiseCriticalError(r)}}},a.prototype.log=function(i){Wf(i)},Object.defineProperty(a.prototype,"isPaused",{get:function(){return this._isPaused},set:function(i){this._isPaused=i,i||(this._frameRequested=!1,this.requestFrame())},enumerable:!0,configurable:!0}),a.VERSION="4.10.39",a})();var me=new Hf;function Xf(a,i,e){return i+(e-i)*a}function av(a,i,e){return new ae(Xf(a,i.percent,e.percent))}function sv(a,i,e){var t=new de(Ba(i.rgb,e.rgb,a));return i.alpha!=e.alpha&&(t.alpha=i.alpha+(e.alpha-i.alpha)*a),t}function zf(a,i){return i+a.charAt(0).toUpperCase()+a.substr(1)}var Ki=(function(){function a(i){this._disposer=new ye(function(){for(;i.length!==0;)i[0].dispose()})}return a.prototype.isDisposed=function(){return this._disposer.isDisposed()},a.prototype.dispose=function(){this._disposer.dispose()},a})();var Nt=(function(a){S(i,a);function i(e,t,r,s){var n=a.call(this)||this;return n.duration=0,n.easing=ip,n.progress=0,n._loop=0,n._pause=!1,n._delayTimeout=null,n._time=0,n._isFinished=!1,n.className="Animation",ue.animationsEnabled===!1&&(r=0),n.object=e,n.animationOptions=yl(t),n.duration=r,s&&(n.easing=s),n.applyTheme(),n}return i.prototype.debug=function(){},i.prototype.dispose=function(){a.prototype.dispose.call(this),this.pause()},i.prototype.delay=function(e){var t=this;if(e>0){this.pause(),ri(this.object.animations,this);var r=setTimeout(function(){t._delayTimeout=null,t.start()},e);this._delayTimeout=new ye(function(){clearTimeout(r)})}return this},i.prototype._start=function(){this._isFinished=!1,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),this.stopSameAnimations(),this._pause=!1,ri(me.animations,this),ri(this.object.animations,this),me.requestFrame()},i.prototype.start=function(){this._start(),this._startTime=Date.now(),this._time=0,this.staticOptions=[];for(var e=this.animationOptions.length-1;e>=0;e--){var t=this.animationOptions[e];if($(t.from)||(t.childObject?t.from=t.childObject[t.property]:(t.from=this.object[t.property],$(t.from)||(t.from=np[t.property]))),t.from==t.to)ee(this.animationOptions,t);else if(!$(t.from)||!(t.from instanceof ae)&&t.to instanceof ae||t.from instanceof ae&&!(t.to instanceof ae))this.staticOptions.push(t),ee(this.animationOptions,t);else if(b(t.to))if(t.updateMethod=Xf,t.from instanceof ae){var r=this.object[zf(t.property,"pixel")];isNaN(r)?(this.staticOptions.push(t),ee(this.animationOptions,t)):t.from=r}else isNaN(t.from)&&(this.staticOptions.push(t),ee(this.animationOptions,t));else if(t.to instanceof de)t.from?t.updateMethod=sv:(this.staticOptions.push(t),ee(this.animationOptions,t));else if(t.to instanceof ae){if(t.updateMethod=av,!isNaN(t.from)){var r=this.object[zf(t.property,"relative")];isNaN(r)||(t.from=k(r*100))}}else this.staticOptions.push(t),ee(this.animationOptions,t)}if(this.applyStaticOptions(),this.events.isEnabled("animationstarted")){var s={type:"animationstarted",target:this,progress:this.progress};this.events.dispatchImmediately("animationstarted",s)}return this.update(),this.duration===0&&this.end(),this},i.prototype.loop=function(e){return b(e)||(e=1/0),this._loop=e,this},i.prototype.pause=function(){return this._pause=!0,this._delayTimeout&&(this.removeDispose(this._delayTimeout),this._delayTimeout=null),ee(me.animations,this),ee(this.object.animations,this),this},i.prototype.resume=function(){return this._start(),this._startTime=Date.now()-this._time,this},i.prototype.end=function(){if(this._loop==0&&this.pause(),this.setProgress(1),this.applyStaticOptions(),this.events.isEnabled("animationended")){var e={type:"animationended",target:this,progress:this.progress};this.events.dispatchImmediately("animationended",e)}return this._loop>0?(this._loop--,this.start()):(this.stop(),this._isFinished=!0),this},i.prototype.kill=function(){this.pause(),this._isFinished=!0},i.prototype.isFinished=function(){return this._isFinished},i.prototype.applyStaticOptions=function(){var e=this;M(this.staticOptions,function(t){t.childObject?t.childObject[t.property]=e.progress==1?t.to:t.from:e.object[t.property]=e.progress==1?t.to:t.from})},i.prototype.stop=function(e){if(this.pause(),!e&&this.events.isEnabled("animationstopped")){var t={type:"animationstopped",target:this,progress:this.progress};this.events.dispatchImmediately("animationstopped",t)}return this},i.prototype.setProgress=function(e){var t=this;if(this._time=this.duration*e,M(this.animationOptions,function(s){if(s.updateMethod&&$(s.from)){var n=s.updateMethod(e,s.from,s.to);s.childObject?s.childObject[s.property]=n:t.object[s.property]=n}}),this.progress=e,this.events.isEnabled("animationprogress")){var r={type:"animationprogress",target:this,progress:this.progress};this.events.dispatchImmediately("animationprogress",r)}me.requestFrame()},i.prototype.update=function(){if(!this._pause){var e=void 0;this._time=X(Date.now()-this._startTime,0,this.duration);var t=this._time/this.duration;e=this.easing(t),(this.duration==0||!b(e)||t>=1)&&(e=1),this.setProgress(e),I(this._time/this.duration,6)==1&&this.end()}return this},Object.defineProperty(i.prototype,"delayed",{get:function(){return!!this._delayTimeout},enumerable:!0,configurable:!0}),i.prototype.stopSameAnimations=function(){var e=this;M(Br(this.object.animations),function(t){if(t!==e&&!t.delayed){var r=[];M(e.animationOptions,function(s){M(t.animationOptions,function(n){s.property==n.property&&s.childObject==n.childObject&&(r.push(n),t.animationOptions.length==0&&t.kill())})}),M(r,function(s){ee(t.animationOptions,s)})}})},i.prototype.asFunction=function(e){return e=="easing"||a.prototype.asIs.call(this,e)},i})(It);var fa=(function(){function a(i){this._isDisposed=!1,this._x=0,this._y=0,this._rotationY=0,this._rotationX=0,this._rotation=0,this._scale=1,typeof i=="string"?this.node=document.createElementNS(da,i):this.node=i}return a.prototype.removeNode=function(){this.node&&this.node.parentNode&&this.node.parentNode.removeChild(this.node)},Object.defineProperty(a.prototype,"transformString",{get:function(){if(this.node)return this._transformString},enumerable:!0,configurable:!0}),a.prototype.transform=function(){var i="translate("+this._x+","+this._y+")";if(this._scale!=1&&(i+=(i?" ":"")+"scale("+this._scale+")"),this._rotation!=0){var e="rotate("+this._rotation+")";this._rotationX&&this._rotationY&&(e="rotate("+this._rotation+" "+this._rotationX+" "+this._rotationY+")"),i+=(i?" ":"")+e}this._transformString=i,this.node.setAttribute("transform",i)},a.prototype.getBBox=function(){var i={width:0,height:0,x:0,y:0};if(this.node&&this.node.parentNode)try{var e=this.node.getBBox();i.x=e.x,i.y=e.y,i.width=e.width,i.height=e.height}catch{}return i},a.prototype.moveTo=function(i){if(i){var e=i.x,t=i.y;(this._x!=e||this._y!=t)&&(this._x=e,this._y=t,this.transform())}},Object.defineProperty(a.prototype,"content",{get:function(){return this.node.innerHTML||""},set:function(i){this.node.innerHTML=i},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"textContent",{get:function(){return this.node.textContent||""},set:function(i){this.node.textContent=i},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"x",{get:function(){return this._x},set:function(i){this._x!=i&&(this._x=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"y",{get:function(){return this._y},set:function(i){this._y!=i&&(this._y=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotation",{get:function(){return this._rotation},set:function(i){this._rotation!=i&&(this._rotation=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotationX",{get:function(){return this._rotationX},set:function(i){this._rotationX!=i&&(this._rotationX=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"rotationY",{get:function(){return this._rotationY},set:function(i){this._rotationY!=i&&(this._rotationY=i,this.transform())},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"scale",{get:function(){return this._scale},set:function(i){this._scale!=i&&(this._scale=i,this.transform())},enumerable:!0,configurable:!0}),a.prototype.removeAttr=function(i){this.node.removeAttribute(i)},a.prototype.attr=function(i){var e=this;return q(i,function(t,r){$(r)?e.node.setAttribute(t,r):e.node.removeAttribute(t)}),this},a.prototype.getAttr=function(i){return this.node.getAttribute(i)},a.prototype.attrNS=function(i,e,t){return this.node.setAttributeNS(i,e,t),this},a.prototype.getAttrNS=function(i,e){return this.node.getAttributeNS(i,e)},a.prototype.removeStyle=function(i){this.node.style[i]=null,delete this.node.style[i]},a.prototype.getStyle=function(i){return this.node.style[i]},a.prototype.addStyle=function(i){var e=this;return q(i,function(t,r){$(r)?e.node.style[t]=r:e.removeStyle(t)}),this},a.prototype.addClass=function(i){en(this.node,i)},a.prototype.removeClass=function(i){tn(this.node,i)},a.prototype.setClass=function(i){this.node.setAttribute("class",i)},a.prototype.removeChildNodes=function(){for(;this.node.childNodes.length>0;)this.node.removeChild(this.node.firstChild)},a.prototype.isDisposed=function(){return this._isDisposed},a.prototype.dispose=function(){this.removeNode()},a})();var io=(function(a){S(i,a);function i(e){return a.call(this,e)||this}return i.prototype.add=function(e){e&&this.node.appendChild(e.node)},i.prototype.addToBack=function(e){if(e){var t=this.node.childNodes[0];t?t!=e.node&&this.node.insertBefore(e.node,t):this.node.appendChild(e.node)}},i.prototype.removeElement=function(e){if(e)try{e.node&&e.node.parentNode==this.node&&this.node.removeChild(e.node)}catch{}},i.prototype.hasChild=function(e){for(var t=0;t<this.node.childNodes.length;t++)if(this.node.childNodes[t]==e.node)return!0;return!1},Object.defineProperty(i.prototype,"content",{get:function(){return this.node.innerHTML},set:function(e){this.node.innerHTML=e},enumerable:!0,configurable:!0}),i.prototype.removeChildren=function(){if(this.node.childNodes)for(;this.node.childNodes.length>0;){var e=this.node.firstChild;e&&e.parentNode&&e.parentNode.removeChild(e)}},i.prototype.removeChildrenByTag=function(e){if(this.node.childNodes)for(var t=this.node.getElementsByTagName(e),r=0;r<t.length;r++)this.node.removeChild(t[r])},i})(fa);var Yf=new _e;function Gf(a,i){i||(i="ampopup");var e=new J,t=e.getFor("text"),r=e.getFor("background");r.alpha=.8;var s=e.getFor("alternativeBackground");s.alpha=.05;var n=Yf.insertKeyIfEmpty(i,function(){var o=new Pe([new Ne(a,"."+i,{overflow:"visible",position:"absolute",top:"0",left:"0","z-index":"2000"}),new Ne(a,"."+i+"-curtain",{width:"100%",height:"100%",position:"absolute",top:"0",left:"0","z-index":"2001","background-color":r.hex,opacity:"0.5"}),new Ne(a,"."+i+"-header",{display:"block",width:"100%","min-height":"1.8em",background:s.rgba}),new Ne(a,"."+i+"-title",{"font-weight":"bold","font-size":"110%",padding:"0.5em 1.2em 0.5em 1em"}),new Ne(a,"."+i+"-content",{background:r.hex,"background-color":r.rgba,color:t.hex,display:"inline-block",position:"absolute",top:"0",left:"0","max-width":"90%","max-height":"90%",overflow:"auto","z-index":"2002"}),new Ne(a,"."+i+"-inside",{padding:"1em"}),new Ne(a,"."+i+"-close",{display:"block",position:"absolute",top:"0.3em",right:"0.3em","background-color":"rgb(100, 100, 100)",background:"rgba(100, 100, 100, 0.1) url(data:image/svg+xml;charset=utf-8;base64,PHN2ZyBoZWlnaHQ9IjUxMiIgdmVyc2lvbj0iMSIgdmlld0JveD0iMCAwIDUxMiA1MTIiIHdpZHRoPSI1MTIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ0NS4yIDEwOS4ybC00Mi40LTQyLjRMMjU2IDIxMy42IDEwOS4yIDY2LjhsLTQyLjQgNDIuNEwyMTMuNiAyNTYgNjYuOCA0MDIuOGw0Mi40IDQyLjRMMjU2IDI5OC40bDE0Ni44IDE0Ni44IDQyLjQtNDIuNEwyOTguNCAyNTYiLz48L3N2Zz4=) no-repeat center","background-size":"80%",width:"1.2em",height:"1.2em",cursor:"pointer"})]);return new Wr(function(){Yf.removeKey(i),o.dispose()})});return n.increment()}var ro=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.adapter=new ut(e),e._elements={},e._IOs={},e._content="",e._title="",e._classPrefix="ampopup",e._defaultStyles=!0,e._showCurtain=!1,e._draggable=!0,e._align="center",e._dynamicResize=!0,e._verticalAlign="middle",e._shift={x:0,y:0},e._tempShift={x:0,y:0},e._readerTitle="",e._closable=!0,e._cssLoaded=!1,e._fitTo="window",e.isTemplate=!1,e._sized=!1,e.className="Popup",e}return i.prototype.open=function(){this.container&&(this._elements.wrapper&&this.container.appendChild(this._elements.wrapper),this._elements.curtain&&(this.container.appendChild(this._elements.curtain),this.showCurtain=this.showCurtain),this.positionElement(),this.dispatchImmediately("opened"))},i.prototype.close=function(){this._elements.wrapper&&this._elements.wrapper.parentElement&&this._elements.wrapper.parentElement.removeChild(this._elements.wrapper),this._elements.curtain&&this._elements.curtain.parentElement&&this._elements.curtain.parentElement.removeChild(this._elements.curtain),this.dispatchImmediately("closed"),this.releasePointers()},i.prototype.dispose=function(){this.close(),a.prototype.dispose.call(this)},i.prototype.positionElement=function(e){var t=this;e===void 0&&(e=!0),this._elements.wrapper&&setTimeout(function(){if(t._elements.wrapper){if(e||!t._sized){t._elements.wrapper.style.opacity="0.01",t._elements.wrapper.style.left="0",t._elements.wrapper.style.top="0",t._elements.wrapper.style.margin="0 0 0 0",t._elements.wrapper.style.width="",t._elements.wrapper.style.height="";var r=t._elements.wrapper.getBoundingClientRect();t._elements.wrapper.style.width=r.width+"px",t._elements.wrapper.style.height=r.height+"px",t._sized=!0}if(t.dynamicResize)for(var s=t._elements.wrapper.getElementsByTagName("img"),n=0;n<s.length;n++){var o=s[n];if(!o.complete){o.addEventListener("load",function(){t.positionElement(!0)});break}}setTimeout(function(){if(t._elements.wrapper){var l;switch((e||!t._sized)&&t._bbox?l=t._bbox:(l=t._elements.wrapper.getBoundingClientRect(),t._elements.wrapper.style.opacity=""),t.align){case"left":t._elements.wrapper.style.left="0",t._elements.wrapper.style.right="auto",t._elements.wrapper.style.marginLeft=t.toStyle(t._shift.x+t._tempShift.x);break;case"center":t._elements.wrapper.style.left="50%",t._elements.wrapper.style.right="auto",t._elements.wrapper.style.marginLeft=t.toStyle(Math.round(-l.width/2)+(t._shift.x+t._tempShift.x));break;case"right":t._elements.wrapper.style.left="auto",t._elements.wrapper.style.right="0",t._elements.wrapper.style.marginLeft=t.toStyle(t._shift.x+t._tempShift.x);break;default:t._elements.wrapper.style.left=t.toStyle(t.left)||"auto",t._elements.wrapper.style.right=t.toStyle(t.right)||"auto",t._elements.wrapper.style.marginLeft=t.toStyle(t._shift.x+t._tempShift.x);break}switch(t.verticalAlign){case"top":t._elements.wrapper.style.top="0",t._elements.wrapper.style.bottom="auto",t._elements.wrapper.style.marginTop=t.toStyle(t._shift.y+t._tempShift.y);break;case"middle":t._elements.wrapper.style.top="50%",t._elements.wrapper.style.bottom="auto",t._elements.wrapper.style.marginTop=t.toStyle(Math.round(-l.height/2)+(t._shift.y+t._tempShift.y));break;case"bottom":t._elements.wrapper.style.top="auto",t._elements.wrapper.style.bottom="0",t._elements.wrapper.style.marginTop=t.toStyle(t._shift.y+t._tempShift.y);break;default:t._elements.wrapper.style.top=t.toStyle(t.top)||"auto",t._elements.wrapper.style.bottom=t.toStyle(t.bottom)||"auto",t._elements.wrapper.style.marginTop=t.toStyle(t._shift.y+t._tempShift.y);break}}},1)}},1)},i.prototype.setupDragging=function(){var e=this;this.draggable?(this._IOs.header.events.has("drag")||this._IOs.header.events.on("drag",function(t){e._tempShift.x=t.shift.x,e._tempShift.y=t.shift.y,e.positionElement(!1)}),this._IOs.header.events.has("dragstop")||this._IOs.header.events.on("dragstop",function(t){e._shift.x+=e._tempShift.x,e._shift.y+=e._tempShift.y,e._tempShift.x=0,e._tempShift.y=0,e.positionElement(!1)})):this._IOs.header&&(re().unprepElement(this._IOs.header),this._IOs.header.events.has("drag")&&this._IOs.header.events.off("drag"),this._IOs.header.events.has("dragstop")&&this._IOs.header.events.off("dragstop"))},i.prototype.toStyle=function(e){return $(e)?b(e)?""+e+"px":e.toString():null},Object.defineProperty(i.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",this._classPrefix)},set:function(e){this._classPrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"classPrefixRaw",{get:function(){return this._classPrefix},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"content",{get:function(){return this.adapter.apply("content",this._content)},set:function(e){this._content!=e&&(this._content=e,this._elements.content||this.createContentElement(),this._elements.content.innerHTML=e,this.positionElement())},enumerable:!0,configurable:!0}),i.prototype.getClassNames=function(){return this.adapter.apply("classNames",{wrapperClass:this.classPrefix+"",headerClass:this.classPrefix+"-header",titleClass:this.classPrefix+"-title",contentClass:this.classPrefix+"-content",insideClass:this.classPrefix+"-inside",curtainClass:this.classPrefix+"-curtain",closeClass:this.classPrefix+"-close"})},i.prototype.createContentElement=function(){if(!this._elements.wrapper){var e=this.getClassNames(),t=document.createElement("div");t.className=e.contentClass,t.style.opacity="0.01";var r=document.createElement("a");r.className=e.closeClass;var s=document.createElement("div");s.className=e.headerClass;var n=document.createElement("div");n.innerHTML=this.title,n.className=e.titleClass,this.title||(n.style.display="none");var o=document.createElement("div");o.className=e.insideClass,o.innerHTML=this.content,this._IOs.wrapper=re().getInteraction(t),this._IOs.header=re().getInteraction(s),this._disposers.push(this._IOs.wrapper),this._IOs.wrapper.events.on("over",this.disablePointers,this),this._IOs.wrapper.events.on("out",this.releasePointers,this),this._IOs.close=re().getInteraction(r),this._disposers.push(this._IOs.close),r.style.visibility="hidden",t.setAttribute("role","dialog"),s.appendChild(r),s.appendChild(n),t.appendChild(s),t.appendChild(o),this.container.appendChild(t),this._elements.wrapper=t,this._elements.header=s,this._elements.content=o,this._elements.title=n,this._elements.close=r,this.defaultStyles&&this.loadDefaultCSS(),this.createCurtainElement(),this.applyEvents(),this.applyReaderSettings(),this.setupDragging()}},Object.defineProperty(i.prototype,"title",{get:function(){return this.adapter.apply("title",this._title)},set:function(e){this._title!=e&&(this._title=e,this._elements.content||this.createContentElement(),this._elements.title.innerHTML=e,this.positionElement(),this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerTitle",{get:function(){return this.adapter.apply("readerTitle",this._readerTitle!=""?this._readerTitle:this.title)},set:function(e){this._readerTitle!=e&&(this._readerTitle=e,this.applyReaderSettings())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closable",{get:function(){return this.adapter.apply("closable",this._closable)},set:function(e){e!==this._closable&&(this._closable=e,this.applyEvents())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fitTo",{get:function(){return this.adapter.apply("fitTo",this._fitTo)},set:function(e){e!=this._fitTo&&(this._fitTo=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",this._defaultStyles)},set:function(e){this._defaultStyles!=e&&(this._defaultStyles=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showCurtain",{get:function(){return this.adapter.apply("showCurtain",this._showCurtain)},set:function(e){this._showCurtain!=e&&(this._showCurtain=e,this._elements.curtain&&(this._elements.curtain.style.display=e?"block":"none"))},enumerable:!0,configurable:!0}),i.prototype.createCurtainElement=function(){var e=this.getClassNames(),t=document.createElement("div");t.className=e.curtainClass,this.container.appendChild(t),this._IOs.curtain=re().getInteraction(t),this._disposers.push(this._IOs.curtain),this._IOs.curtain.events.on("over",this.disablePointers,this),this._IOs.curtain.events.on("out",this.releasePointers,this),t.style.display=this.showCurtain?"block":"none",this._elements.curtain=t},Object.defineProperty(i.prototype,"draggable",{get:function(){return this.adapter.apply("draggable",this._draggable)},set:function(e){this._draggable!=e&&(this._draggable=e,this.setupDragging())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dynamicResize",{get:function(){return this.adapter.apply("dynamicResize",this._dynamicResize)},set:function(e){this._dynamicResize!=e&&(this._dynamicResize=e,this.positionElement(!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.adapter.apply("align",this._align)},set:function(e){this._align!=e&&(this._align=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",this._verticalAlign)},set:function(e){this._verticalAlign!=e&&(this._verticalAlign=e,this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"left",{get:function(){return this.adapter.apply("left",this._left)},set:function(e){this.left!=e&&(this._left=e,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"right",{get:function(){return this.adapter.apply("right",this._right)},set:function(e){this.right!=e&&(this._right=e,this._align="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"top",{get:function(){return this.adapter.apply("top",this._top)},set:function(e){this.top!=e&&(this._top=e,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottom",{get:function(){return this.adapter.apply("bottom",this._bottom)},set:function(e){this.bottom!=e&&(this._bottom=e,this._verticalAlign="none",this.positionElement())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),i.prototype.loadDefaultCSS=function(){this._cssLoaded||(this._disposers.push(Gf(rn(this.container),this.classPrefix)),q(this._elements,function(e,t){t.style.display=""}),this._cssLoaded=!0)},i.prototype.applyEvents=function(){var e=this;if(this._IOs.close)if(this.closable){this._IOs.close.element.style.visibility="visible";var t=[re().body.events.on("keyup",function(r){si.isKey(r.event,"esc")&&e.closable&&e.close()}),this._IOs.close.events.on("hit",function(r){e.close()})];t.push(this._IOs.curtain.events.on("hit",function(r){e.showCurtain&&e.closable&&e.close()})),this._disposers.push(new Pe(t))}else this._IOs.close.element.style.visibility="hidden"},i.prototype.disablePointers=function(){this.sprite&&(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled,this.sprite.interactionsEnabled=!1)},i.prototype.releasePointers=function(){$(this._spriteInteractionsEnabled)&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled,this._spriteInteractionsEnabled=void 0)},i.prototype.applyReaderSettings=function(){this.elements.wrapper.setAttribute("aria-label",this.readerTitle)},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.container=e.container,this.sprite=e.sprite,this.classPrefix=e.classPrefixRaw,this.content=e.content,this.title=e.title,this.readerTitle=e.readerTitle,this.defaultStyles=e.defaultStyles,this.showCurtain=e.showCurtain,this.align=e.align,this.verticalAlign=e.verticalAlign,this.left=e.left,this.right=e.right,this.top=e.top,this.bottom=e.bottom,this.adapter.copyFrom(e.adapter)},i})(It);var ao=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.adapter=new ut(e),e.className="Modal",e.showCurtain=!0,e.draggable=!1,e}return i})(ro);var nv=(function(){function a(){var i=this;this._targets=[],this._observer=new ResizeObserver(function(e){M(e,function(t){M(i._targets,function(r){r.target===t.target&&r.callback()})})})}return a.prototype.addTarget=function(i,e){this._observer.observe(i,{box:"content-box"}),this._targets.push({target:i,callback:e})},a.prototype.removeTarget=function(i){this._observer.unobserve(i),Th(this._targets,function(e){return e.target!==i})},a})(),ov=(function(){function a(){this._targets=[]}return a.prototype.addTarget=function(i,e){var t=this;if(this._targets.length===0){var r=null,s=function(){var o=Date.now();(r===null||o>r+a.delay)&&(r=o,M(t._targets,function(l){var u=l.target.getBoundingClientRect();(u.width!==l.size.width||u.height!==l.size.height)&&(l.size=u,l.callback())})),t._timer=requestAnimationFrame(s)};this._timer=requestAnimationFrame(s)}var n=i.getBoundingClientRect();this._targets.push({target:i,callback:e,size:n})},a.prototype.removeTarget=function(i){Th(this._targets,function(e){return e.target!==i}),this._targets.length===0&&cancelAnimationFrame(this._timer)},a.delay=200,a})(),Bl=null;function lv(){return Bl===null&&(typeof ResizeObserver<"u"?Bl=new nv:Bl=new ov),Bl}var Uf=(function(){function a(i,e){this._disposed=!1,this._sensor=lv(),this._element=i,this._sensor.addTarget(i,e)}return a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element))},Object.defineProperty(a.prototype,"sensor",{get:function(){return this._sensor},enumerable:!0,configurable:!0}),a.prototype.reset=function(){sn("resizeSensor.reset() is no longer needed and can be removed")},a})();var Wl=[],so=(function(){function a(i,e){var t=this;this._disposed=!1,this.autoResize=!0,this.nonExportableSprites=[],this._disposers=[],this.cssScale=1,this._printing=!1,this.htmlElement=i,e||(this._printing=!1,this.initSensor(),this._disposers.push(Qe(window,"beforeprint",function(){t._printing=!0})),this._disposers.push(Qe(window,"afterprint",function(){t._printing=!1}))),Wl.push(this);var r=document.createElement("div"),s=r.style;s.width="100%",s.height="100%",s.position="relative",i.appendChild(r),this.SVGContainer=r}return a.prototype.initSensor=function(){var i=this;this.resizeSensor&&this.resizeSensor.dispose();var e=function(){i.autoResize&&!i._printing&&i.measure()};this.resizeSensor=new Uf(this.htmlElement,e),this._disposers.push(this.resizeSensor)},a.prototype.measure=function(){var i=Qh(this.htmlElement),e=Jh(this.htmlElement),t=this.container;t&&((this.width!=i||this.height!=e)&&(this.width=i,this.height=e,i>0&&(t.maxWidth=i),e>0&&(t.maxHeight=e),mp(this.SVGContainer)),t.maxWidth||(t.maxWidth=0),t.maxHeight||(t.maxHeight=0),this.cssScale=1,this.checkTransform(this.htmlElement))},Object.defineProperty(a.prototype,"container",{get:function(){return this._container},set:function(i){this._container=i,this.measure()},enumerable:!0,configurable:!0}),a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){this._disposed||ee(Wl,this),M(this._disposers,function(i){i.dispose()})},Object.defineProperty(a.prototype,"hideOverflow",{set:function(i){i?this.SVGContainer.style.overflow="hidden":this.SVGContainer.style.overflow=""},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"modal",{get:function(){return $(this._modal)||(this._modal=new ao,this._modal.container=this.SVGContainer,this._disposers.push(this._modal)),this._modal},enumerable:!0,configurable:!0}),a.prototype.openModal=function(i,e){this.closeModal();var t=this.modal;return t.content=i,t.readerTitle=e||"",t.title=e||"",t.open(),t},a.prototype.closeModal=function(){this._modal&&this.modal.close()},Object.defineProperty(a.prototype,"popups",{get:function(){if(!$(this._popups)){var i=new ro;i.container=this.SVGContainer,this._popups=new Te(i),this._disposers.push(new ge(this._popups)),this._disposers.push(this._popups.template)}return this._popups},enumerable:!0,configurable:!0}),a.prototype.openPopup=function(i,e){var t=this.popups.create();return t.content=i,$(e)&&(t.title=e),t.open(),t},a.prototype.closeAllPopups=function(){this.popups.each(function(i){i.close()})},Object.defineProperty(a.prototype,"readerAlertElement",{get:function(){if(!$(this._readerAlertElement)){var i=document.createElement("div");i.setAttribute("role","alert"),i.style.zIndex="-100000",i.style.opacity="0",i.style.position="absolute",i.style.top="0",this.SVGContainer.appendChild(i),this._readerAlertElement=i}return this._readerAlertElement},enumerable:!0,configurable:!0}),a.prototype.readerAlert=function(i){this.readerAlertElement.innerHTML=i},a.prototype.checkTransform=function(i){if(window.getComputedStyle){if(i&&i.style){var e=window.getComputedStyle(i,null);if(e){var t=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("-moz-transform")||e.getPropertyValue("-ms-transform")||e.getPropertyValue("-o-transform")||e.getPropertyValue("transform");if(t&&t!=="none"){var r=t.split("(")[1].split(")")[0].split(","),s=Number(r[0]),n=Number(r[1]),o=Math.sqrt(s*s+n*n);isNaN(o)||(this.cssScale*=o)}}}i.parentNode&&i.parentNode instanceof HTMLElement&&this.checkTransform(i.parentNode)}},a})();var Hl=(function(){function a(i,e){this.container=i,this.id=e;var t=document.createElementNS(da,"svg");t.setAttribute("version","1.1"),t.setAttributeNS(dp,"xmlns",da),t.setAttributeNS(dp,"xmlns:xlink",Js),t.setAttribute("role","group"),this.container.appendChild(t),this.defs=document.createElementNS(da,"defs"),t.appendChild(this.defs),t.style.width="100%",t.style.height="100%",t.style.overflow="visible",this.svg=t}return a.prototype.add=function(i){return new fa(i)},a.prototype.addGroup=function(i){return new io(i)},a.prototype.append=function(i){i&&this.svg.appendChild(i.node)},a.prototype.appendDef=function(i){i&&this.defs.appendChild(i.node)},a.prototype.foreignObject=function(){var i=new fa("foreignObject");return i},a.prototype.supportsForeignObject=function(){return document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Extensibility","1.1")},a})();var bp=null;function rr(){if(bp===null){var a=document.createElement("div");a.hidden=!0,a.style.width="1px",a.style.height="1px",a.style.position="absolute",a.style.zIndex="-1000000",document.body.appendChild(a);var i=new so(a,!0);bp=new Hl(i.SVGContainer,"ghost")}return bp}var ar=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._elements=new he,e.properties={},e.className="Pattern",e.width=10,e.height=10,e.x=0,e.y=0,e.patternUnits="userSpaceOnUse";var t=new J;return e.backgroundFill=t.getFor("background"),e.backgroundOpacity=0,e.fillOpacity=1,e.fill=t.getFor("alternativeBackground"),e.stroke=t.getFor("alternativeBackground"),e.strokeOpacity=1,e.strokeWidth=1,e.shapeRendering="crispEdges",e.rotation=0,e.element=e.paper.addGroup("pattern"),e.id="pattern-"+_.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e._disposers.push(new ge(e._elements)),e.patternUnits=e.patternUnits,e.width=e.width,e.height=e.height,e.applyTheme(),e}return i.prototype.draw=function(){var e=this,t=this.element;if(t){t.removeChildNodes();var r=this.paper.add("rect");r.attr({width:this.width,height:this.height,"shape-rendering":"crispEdges",fill:this.backgroundFill.hex,"fill-opacity":this.backgroundOpacity,stroke:this.backgroundFill.hex,"stroke-opacity":0}),t.add(r),t.attr({x:this.x,y:this.y,width:this.width,height:this.height,stroke:this.stroke.hex,fill:this.fill.hex,"fill-opacity":this.fillOpacity,"stroke-opacity":this.strokeOpacity,"stroke-width":this.strokeWidth,"shape-rendering":this.shapeRendering,patternUnits:this.patternUnits,"stroke-dasharray":this.strokeDasharray}),V(this._elements.iterator(),function(s){s.rotation=e.rotation,s.rotationX=e.properties.rotationX,s.rotationY=e.properties.rotationY,e.element.add(s)})}},i.prototype.animate=function(e,t,r){return new Nt(this,e,t,r).start()},i.prototype.addElement=function(e){this._elements.push(e),this._disposers.push(e)},i.prototype.removeElement=function(e){this._elements.removeValue(e),this.removeDispose(e)},Object.defineProperty(i.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillOpacity",{get:function(){return this.properties.fillOpacity},set:function(e){this.properties.fillOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.properties.fill},set:function(e){this.properties.fill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundFill",{get:function(){return this.properties.backgroundFill},set:function(e){this.properties.backgroundFill=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundOpacity",{get:function(){return this.properties.backgroundOpacity},set:function(e){this.properties.backgroundOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeOpacity",{get:function(){return this.properties.strokeOpacity},set:function(e){this.properties.strokeOpacity=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shapeRendering",{get:function(){return this.properties.shapeRendering},set:function(e){this.properties.shapeRendering=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this.properties.rotation},set:function(e){this.properties.rotation=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patternUnits",{get:function(){return this.properties.patternUnits},set:function(e){this.properties.patternUnits=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width},set:function(e){this.properties.width=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x",{get:function(){return this.properties.x},set:function(e){this.properties.x=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.properties.y},set:function(e){this.properties.y=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:rr()},set:function(e){this._paper!=e&&(this._paper=e,this.draw(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;a.prototype.copyFrom.call(this,e),q(e.properties,function(r,s){t[r]=s})},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Ki(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDasharray",{get:function(){return this.properties.strokeDashArray},set:function(e){this.properties.strokeDashArray=e,this.draw()},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){if(e&&$(e.elements)&&je(e.elements))for(var t=0,r=e.elements.length;t<r;t++){var s=e.elements[t];if($(s.type)){var n=this.createEntryInstance(s);n instanceof Ze&&(n.config=s),this.addElement($(s.typeProperty)?n[s.typeProperty]:n.element)}}a.prototype.processConfig.call(this,e)},i})(Ze);_.registeredClasses.Pattern=ar;var Mt=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._stops=new he,e._rotation=0,e.className="LinearGradient",e._stops.events.on("setIndex",e.validate,e),e._stops.events.on("inserted",e.validate,e),e.element=e.paper.addGroup("linearGradient"),e.id="gradient-"+_.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return i.prototype.validate=function(){var e=this,t=(this._rotation+90)*ks,r=Math.round(50+Math.sin(t+Math.PI)*50)+"%",s=Math.round(50+Math.cos(t)*50)+"%",n=Math.round(50+Math.sin(t)*50)+"%",o=Math.round(50+Math.cos(t+Math.PI)*50)+"%",l=this.element;l.removeChildNodes(),l.attr({x1:r,x2:n,y1:s,y2:o}),V(Yi(this._stops.iterator()),function(u){var h=u[0],p=u[1],d=p.offset;b(d)||(d=h/(e._stops.length-1));var c=e.paper.add("stop");$(p.color)&&c.attr({"stop-color":p.color.toString()}),b(p.opacity)&&c.attr({"stop-opacity":p.opacity}),b(d)&&c.attr({offset:d}),l.add(c)})},i.prototype.clear=function(){this._stops.clear()},i.prototype.addColor=function(e,t,r){this._stops.push({color:e,opacity:t,offset:r})},Object.defineProperty(i.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:rr()},set:function(e){this._paper!=e&&(this._paper=e,this.validate(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this._rotation},set:function(e){this._rotation=e,this.validate()},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this._rotation=e.rotation},Object.defineProperty(i.prototype,"gradientUnits",{set:function(e){this.element.attr({gradientUnits:e})},enumerable:!0,configurable:!0}),i})(Ze);_.registeredClasses.LinearGradient=Mt;var Si=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._stops=new he,e.element=e.paper.addGroup("radialGradient"),e.id="gradient-"+_.getUniqueId(),e.element.attr({id:e.id}),e._disposers.push(e.element),e.applyTheme(),e}return i.prototype.draw=function(){var e=this,t=this.element;if(b(this.cx)){var r=this.cx;r instanceof ae&&(r=r.percent+"%"),t.attr({cx:r})}if(b(this.cy)){var r=this.cy;r instanceof ae&&(r=r.percent+"%"),t.attr({cy:r})}if(this.fx){var r=this.fx;r instanceof ae&&(r=r.percent+"%"),t.attr({fx:r})}if(this.fy){var r=this.fy;r instanceof ae&&(r=r.percent+"%"),t.attr({fy:r})}t.removeChildNodes(),V(Yi(this._stops.iterator()),function(s){var n=s[0],o=s[1],l=o.offset;b(l)||(l=n/(e._stops.length-1));var u=e.paper.add("stop");$(o.color)&&u.attr({"stop-color":o.color.toString()}),b(o.opacity)&&u.attr({"stop-opacity":o.opacity}),b(l)&&u.attr({offset:l}),t.add(u)})},i.prototype.addColor=function(e,t,r){this._stops.push({color:e,opacity:t,offset:r}),this.draw()},Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:rr()},set:function(e){this._paper!=e&&(this._paper=e,this.draw(),e.appendDef(this.element))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cx",{get:function(){return this._cx},set:function(e){this._cx=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cy",{get:function(){return this._cy},set:function(e){this._cy=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fx",{get:function(){return this._fx},set:function(e){this._fx=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fy",{get:function(){return this._fy},set:function(e){this._fy=e,this.draw()},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.stops.copyFrom(e.stops),this.cx=e.cx,this.cy=e.cy,this.fx=e.fx,this.fy=e.fy},Object.defineProperty(i.prototype,"stops",{get:function(){return this._stops},enumerable:!0,configurable:!0}),i.prototype.clear=function(){this._stops.clear()},i})(Ze);_.registeredClasses.RadialGradient=Si;var Re=(function(){function a(){}return a.grab=[{property:"cursor",value:"move"},{property:"cursor",value:"grab"},{property:"cursor",value:"-webkit-grab"}],a.grabbing=[{property:"cursor",value:"move"},{property:"cursor",value:"grabbing"},{property:"cursor",value:"-webkit-grabbing"}],a.pointer=[{property:"cursor",value:"pointer"}],a.default=[{property:"cursor",value:"default"}],a.horizontalResize=[{property:"cursor",value:"ew-resize"}],a.verticalResize=[{property:"cursor",value:"ns-resize"}],a.notAllowed=[{property:"cursor",value:"not-allowed"}],a.text=[{property:"cursor",value:"text"}],a})();var xp={_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:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_second:"HH:mm:ss",_date_minute:"HH:mm",_date_hour:"HH:mm",_date_day:"MMM dd",_date_week:"ww",_date_month:"MMM",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(a){var i="th";if(a<11||a>13)switch(a%10){case 1:i="st";break;case 2:i="nd";break;case 3:i="rd";break}return i},"Zoom Out":"",Play:"",Stop:"",Legend:"","Click, tap or press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Click, tap or press ENTER to open":"","Click, tap or press ENTER to print.":"","Click, tap or press ENTER to export as %1.":"",'To save the image, right-click this link and choose "Save picture as..."':"",'To save the image, right-click thumbnail on the left and choose "Save picture as..."':"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:""};var ni=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.adapter=new ut(e),e._locale=xp,e._defaultLocale=xp,e.className="Language",$(ue.defaultLocale)&&(e.locale=ue.defaultLocale),e.applyTheme(),e}return i.prototype.getLocale=function(e){return e==null&&(e=this._locale),this.adapter.apply("locale",{locale:e}).locale},i.prototype.translate=function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];t=this.getLocale(t);var n=e,o=this.getTranslations(t),l=o[e];if(l===null)n="";else if($(l))l&&(n=l);else if(t!==this._defaultLocale)return this.translate.apply(this,Nr([e,this._defaultLocale],r));if(r.length)for(var u=r.length,h=0;h<u;++h)n=n.split("%"+(h+1)).join(r[h]);return this.adapter.apply("translate",{translation:n,locale:t}).translation},i.prototype.translateAny=function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];return this.translate.apply(this,Nr([e,t],r))},i.prototype.setTranslationAny=function(e,t,r){var s=r||this.locale;s[e]=t},i.prototype.translateEmpty=function(e,t){for(var r=[],s=2;s<arguments.length;s++)r[s-2]=arguments[s];var n=this.translate.apply(this,Nr([e,t],r));return n==e?"":n},i.prototype.translateFunc=function(e,t){t=this.getLocale(t);var r=this.getTranslations(t),s=r[e];return s??(t!==this._defaultLocale?this.translateFunc(e,this._defaultLocale):function(){return""})},i.prototype.translateAll=function(e,t){var r=this;return this.isDefault()?e:Er(e,function(s){return r.translate(s,t)})},i.prototype.isDefault=function(){return this._defaultLocale===this._locale},Object.defineProperty(i.prototype,"locale",{get:function(){return this._locale},set:function(e){if(this._locale!=e&&(this._locale=e,this.events.isEnabled("localechanged"))){var t={type:"localechanged",locale:e,target:this};this.events.dispatchImmediately("localechanged",t)}},enumerable:!0,configurable:!0}),i.prototype.getTranslations=function(e){return this.adapter.apply("translations",{translations:e,locale:e}).translations},i})(It);var $p=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.adapter=new ut(e),e.className="TextFormatter",e.applyTheme(),e}return i.prototype.debug=function(){},i.prototype.format=function(e,t){$(t)||(t="svg");var r="";e=this.escape(e);var s=e.match(/\[([^\]]*?)\]/gm);if(!s)return this.wrap(e,"",t);for(var n=e.split(/\[[^\[\]]*\]/),o=0,l=n.length;o<l;o++){var u=n[o];if(u!==""){u=this.adapter.apply("chunk",u);var h="";o>0&&(h=s[o-1].replace("[","").replace("]","")),r+=this.wrap(u,h,t)}}return r=this.unescape(r),this.cleanUp(r)},i.prototype.escape=function(e){return e.replace(/\[\[/g,_.getPlaceholder("1")).replace(/([^\/\]]{1})\]\]/g,"$1"+_.getPlaceholder("2")).replace(/\]\]/g,_.getPlaceholder("2")).replace(/\{\{/g,_.getPlaceholder("3")).replace(/\}\}/g,_.getPlaceholder("4")).replace(/\'\'/g,_.getPlaceholder("5"))},i.prototype.unescape=function(e){return e.replace(new RegExp(_.getPlaceholder("1"),"g"),"[[").replace(new RegExp(_.getPlaceholder("2"),"g"),"]]").replace(new RegExp(_.getPlaceholder("3"),"g"),"{{").replace(new RegExp(_.getPlaceholder("4"),"g"),"}}").replace(new RegExp(_.getPlaceholder("5"),"g"),"''")},i.prototype.cleanUp=function(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")},i.prototype.wrap=function(e,t,r){switch((t===""||t==="/")&&(t=""),r){case"html":return this.wrapHtml(e,this.translateStyleShortcuts(t));default:return this.wrapSvg(e,this.translateStyleShortcuts(t))}},i.prototype.wrapSvg=function(e,t){return t===""?"<tspan>"+e+"</tspan>":"<tspan style='"+t+"'>"+e+"</tspan>"},i.prototype.getSvgElement=function(e,t){var r=new fa("tspan");return r.textContent=e,t&&r.node.setAttribute("style",t),r},i.prototype.wrapHtml=function(e,t){return t===""?"<span>"+e+"</span>":"<span style='"+this.styleSvgToHtml(t)+"'>"+e+"</span>"},i.prototype.getHtmlElement=function(e,t){var r=document.createElement("span");return r.innerHTML=e,t&&r.setAttribute("style",t),r},i.prototype.styleSvgToHtml=function(e){return e=e.replace(/fill:/,"color:"),e},i.prototype.translateStyleShortcuts=function(e){if(e==""||e=="[ ]")return"";var t=_.getCache("translateStyleShortcuts_"+e);if(t)return t;var r=e.match(/('[^']*')|("[^"]*")/gi);if(r)for(var s=0;s<r.length;s++)e=e.replace(r[s],r[s].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));var n=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w]+)|(\/)/gi);if(!n)return e;for(var s=0;s<n.length;s++)n[s].match(/^bold$/i)?n[s]="font-weight:"+n[s]:n[s]=="/"?n[s]="":n[s].match(/:/)?n[s]=n[s].replace(/\+/g," "):n[s]="fill:"+n[s];var o=n.join(";");return _.setCache("translateStyleShortcuts_"+e,o),o},i.prototype.chunk=function(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var s=[];e=this.escape(e);for(var n=t?e.split("'"):[e],o=0;o<n.length;o++){var l=n[o];if(l!=="")if(o%2===0){l=l.replace(/\]\[/g,"]"+jt+"["),l=l.replace(/\[\]/g,"[ ]");for(var u=l.split(/[\[\]]+/),h=0;h<u.length;h++){var p=this.cleanUp(this.unescape(u[h]));p!==jt&&p!==""&&(h%2===0?s.push({type:"value",text:this.adapter.apply("chunk",p)}):s.push({type:r?"value":"format",text:"["+p+"]"}))}}else for(var u=l.split(/[\[\]]+/),h=0;h<u.length;h++){var p=this.cleanUp(this.unescape(u[h]));p!==""&&(h%2===0?s.push({type:"text",text:p}):this.isImage(p)?s.push({type:"image",text:"["+p+"]"}):s.push({type:"format",text:"["+p+"]"}))}}return s},i.prototype.isImage=function(e){return!!e.match(/img[ ]?:/)},i})(Ze);var _p;function mi(){return _p==null&&(_p=new $p),_p}_.registeredClasses.TextFormatter=$p;var Xr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._negativeBase=0,e._numberFormat="#,###.#####",e._outputFormat="svg",e._smallNumberThreshold=1,e._forceLTR=!1,e.className="NumberFormatter",e.applyTheme(),e}return i.prototype.dispose=function(){a.prototype.dispose.call(this),this.language&&this.language.dispose()},Object.defineProperty(i.prototype,"language",{get:function(){return this._language||(this.sprite?this._language=this.sprite.language:this._language=new ni),this._language},set:function(e){this._language=e},enumerable:!0,configurable:!0}),i.prototype.format=function(e,t,r){(typeof t>"u"||se(t)&&t.toLowerCase()==="number")&&(t=this._numberFormat);var s,n=Number(e);if(Fe(t))try{return this.intlLocales?new Intl.NumberFormat(this.intlLocales,t).format(n):new Intl.NumberFormat(void 0,t).format(n)}catch{return"Invalid"}else{t=pa(t);var o=this.parseFormat(t,this.language),l=void 0;n>this._negativeBase?l=o.positive:n<this._negativeBase?l=o.negative:l=o.zero,$(r)&&!l.mod&&(l=cf(l),l.decimals.active=n==0?0:r),s=l.template.split(jt).join(this.applyFormat(n,l))}return this.forceLTR&&(s="\u200E"+s),s},i.prototype.parseFormat=function(e,t){var r=this,s=this.getCache(e);if($(s))return s;var n={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:t.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:t.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:t.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:t.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:t.translateEmpty("_thousandSeparator")},decimals:{active:-1,passive:-1,separator:t.translateEmpty("_decimalSeparator")},template:"",source:"",parsed:!1}};e=e.replace("||",zr);var o=e.split("|");return n.positive.source=o[0],typeof o[2]>"u"?n.zero=n.positive:n.zero.source=o[2],typeof o[1]>"u"?n.negative=n.positive:n.negative.source=o[1],q(n,function(l,u){if(!u.parsed){if(typeof r.getCache(u.source)<"u"){n[l]=r.getCache(u.source);return}var h=u.source;h.toLowerCase()==="number"&&(h=se(r._numberFormat)?r._numberFormat:"#,###.#####");for(var p=mi().chunk(h,!0),d=0;d<p.length;d++){var c=p[d];if(c.text=c.text.replace(zr,"|"),c.type==="value"){var f=c.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(f)if(f===null||f[0]==="")u.template+=c.text;else{var y=f[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);y&&(u.mod=y[0].toLowerCase(),u.modSpacing=!!f[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));var g=f[0].split(".");if(g[0]!==""){u.thousands.active=(g[0].match(/0/g)||[]).length,u.thousands.passive=(g[0].match(/\#/g)||[]).length+u.thousands.active;var v=g[0].split(",");v.length===1||(u.thousands.interval=Me(v.pop()).length,u.thousands.interval===0&&(u.thousands.interval=-1))}typeof g[1]>"u"||(u.decimals.active=(g[1].match(/0/g)||[]).length,u.decimals.passive=(g[1].match(/\#/g)||[]).length+u.decimals.active),u.template+=c.text.split(f[0]).join(jt)}}else u.template+=c.text}r.setCache(u.source,u),u.parsed=!0}}),this.setCache(e,n),n},i.prototype.applyFormat=function(e,t){var r=e<0;e=Math.abs(e);var s="",n="",o=t.mod?t.mod.split(""):[];if(o.indexOf("b")!==-1){var l=this.applyPrefix(e,this.bytePrefixes,o.indexOf("!")!==-1);e=l[0],s=l[1],n=l[2],t.modSpacing&&(n=" "+n)}else if(o.indexOf("a")!==-1){var u=this.applyPrefix(e,e<this.smallNumberThreshold?this.smallNumberPrefixes:this.bigNumberPrefixes,o.indexOf("!")!==-1);e=u[0],s=u[1],n=u[2],t.modSpacing&&(n=" "+n)}else if(o.indexOf("p")!==-1){var h=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(h)),s=this.language.translate("_percentPrefix")||"",n=this.language.translate("_percentSuffix")||"",s==""&&n==""&&(n="%")}else if(o.indexOf("%")!==-1){var h=le(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(h)),n="%"}else if(o.indexOf("\u2030")!==-1){var h=le(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(h)),n="\u2030"}if(o.indexOf("e")!==-1){var p=void 0;t.decimals.passive>=0?p=e.toExponential(t.decimals.passive).split("e"):p=e.toExponential().split("e"),e=Number(p[0]),n="e"+p[1],t.modSpacing&&(n=" "+n)}else if(t.decimals.passive===0)e=Math.round(e);else if(t.decimals.passive>0){var d=Math.pow(10,t.decimals.passive);e=Math.round(e*d)/d}var c="",f=Uh(e).split("."),y=f[0];if(y.length<t.thousands.active&&(y=Array(t.thousands.active-y.length+1).join("0")+y),t.thousands.interval>0){for(var g=[],v=y.split("").reverse().join(""),x=0,P=y.length;x<=P;x+=t.thousands.interval){var T=v.substr(x,t.thousands.interval).split("").reverse().join("");T!==""&&g.unshift(T)}y=g.join(t.thousands.separator)}c+=y,f.length===1&&f.push("");var C=f[1];return C.length<t.decimals.active&&(C+=Array(t.decimals.active-C.length+1).join("0")),C!==""&&(c+=t.decimals.separator+C),c===""&&(c="0"),e!==0&&r&&o.indexOf("s")===-1&&(c="-"+c),s&&(c=s+c),n&&(c+=n),c},i.prototype.applyPrefix=function(e,t,r){r===void 0&&(r=!1);for(var s=e,n="",o="",l=!1,u=1,h=0,p=t.length;h<p;h++)t[h].number<=e&&(t[h].number===0?s=0:(s=e/t[h].number,u=t[h].number),n=t[h].prefix,o=t[h].suffix,l=!0);return!l&&r&&t.length&&e!=0&&(s=e/t[0].number,n=t[0].prefix,o=t[0].suffix,l=!0),l&&(s=parseFloat(s.toPrecision(le(u.toString().length+Math.floor(s).toString().replace(/[^0-9]*/g,"").length,21)))),[s,n,o]},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(i.prototype,"numberFormat",{get:function(){return this._numberFormat},set:function(e){this._numberFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(e){this._intlLocales=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"negativeBase",{get:function(){return this._negativeBase},set:function(e){this._negativeBase=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bigNumberPrefixes",{get:function(){return $(this._bigNumberPrefixes)||(this._bigNumberPrefixes=[{number:1e3,suffix:this.language.translate("_big_number_suffix_3")},{number:1e6,suffix:this.language.translate("_big_number_suffix_6")},{number:1e9,suffix:this.language.translate("_big_number_suffix_9")},{number:1e12,suffix:this.language.translate("_big_number_suffix_12")},{number:1e15,suffix:this.language.translate("_big_number_suffix_15")},{number:1e18,suffix:this.language.translate("_big_number_suffix_18")},{number:1e21,suffix:this.language.translate("_big_number_suffix_21")},{number:1e24,suffix:this.language.translate("_big_number_suffix_24")}]),this._bigNumberPrefixes},set:function(e){this._bigNumberPrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smallNumberPrefixes",{get:function(){return $(this._smallNumberPrefixes)||(this._smallNumberPrefixes=[{number:1e-24,suffix:this.language.translate("_small_number_suffix_24")},{number:1e-21,suffix:this.language.translate("_small_number_suffix_21")},{number:1e-18,suffix:this.language.translate("_small_number_suffix_18")},{number:1e-15,suffix:this.language.translate("_small_number_suffix_15")},{number:1e-12,suffix:this.language.translate("_small_number_suffix_12")},{number:1e-9,suffix:this.language.translate("_small_number_suffix_9")},{number:1e-6,suffix:this.language.translate("_small_number_suffix_6")},{number:.001,suffix:this.language.translate("_small_number_suffix_3")}]),this._smallNumberPrefixes},set:function(e){this._smallNumberPrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smallNumberThreshold",{get:function(){return this._smallNumberThreshold},set:function(e){this._smallNumberThreshold=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bytePrefixes",{get:function(){return $(this._bytePrefixes)||(this._bytePrefixes=[{number:1,suffix:this.language.translate("_byte_suffix_B")},{number:1024,suffix:this.language.translate("_byte_suffix_KB")},{number:1048576,suffix:this.language.translate("_byte_suffix_MB")},{number:1073741824,suffix:this.language.translate("_byte_suffix_GB")},{number:1099511627776,suffix:this.language.translate("_byte_suffix_TB")},{number:0x4000000000000,suffix:this.language.translate("_byte_suffix_PB")}]),this._bytePrefixes},set:function(e){this._bytePrefixes=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"forceLTR",{get:function(){return this._forceLTR},set:function(e){this._forceLTR=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),i.prototype.escape=function(e){return e.replace("||",zr)},i.prototype.unescape=function(e){return e.replace(zr,"|")},i})(Ze);_.registeredClasses.NumberFormatter=Xr;var Ii=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._dateFormat="yyyy-MM-dd",e._inputDateFormat="yyyy-MM-dd",e._utc=!1,e.timezoneMinutes=0,e._firstDayOfWeek=1,e.months=["January","February","March","April","May","June","July","August","September","October","November","December"],e.monthsShort=["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],e.weekdays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],e.weekdaysShort=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],e._outputFormat="svg",e.capitalize=!0,e.className="DateFormatter",e.applyTheme(),e}return Object.defineProperty(i.prototype,"language",{get:function(){return this._language},set:function(e){this._language=e,this.dateFormat=this._language.translate("_date")},enumerable:!0,configurable:!0}),i.prototype.format=function(e,t,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new ni),(typeof t>"u"||t==="")&&(t=this._dateFormat);var s,n;if(se(e)?n=this.parse(e):n=Yn(e),Fe(t))try{return this.intlLocales?new Intl.DateTimeFormat(this.intlLocales,t).format(n):new Intl.DateTimeFormat(void 0,t).format(n)}catch{return"Invalid"}else{t=pa(t);var o=this.parseFormat(t);if($(this.timezoneOffset)?n.setMinutes(n.getMinutes()+n.getTimezoneOffset()-this.timezoneOffset):$(this.timezone)&&r!==!1&&(n=an(n,this.timezone)),!b(n.getTime()))return this.language.translate("Invalid date");s=this.applyFormat(n,o,this.language),this.capitalize&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase()))}return s},i.prototype.parseFormat=function(e){var t=this.getCache(e);if($(t))return t;for(var r={template:"",parts:[]},s=mi().chunk(e,!0),n=0;n<s.length;n++){var o=s[n];if(o.type==="value"){o.text.match(/^date$/i)&&se(this._dateFormat)&&(o.text=this._dateFormat);var l=o.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(l)for(var u=0;u<l.length;u++)r.parts.push(l[u]),o.text=o.text.replace(l[u],jt)}r.template+=o.text}return this.setCache(e,r),r},i.prototype.applyFormat=function(e,t,r){var s=t.template,n,o,l,u,h,p,d,c,f=e.getTimezoneOffset(),y=e.getTime();this.utc?(n=e.getUTCFullYear(),o=e.getUTCMonth(),l=e.getUTCDay(),u=e.getUTCDate(),h=e.getUTCHours(),p=e.getUTCMinutes(),d=e.getUTCSeconds(),c=e.getUTCMilliseconds()):(n=e.getFullYear(),o=e.getMonth(),l=e.getDay(),u=e.getDate(),h=e.getHours(),p=e.getMinutes(),d=e.getSeconds(),c=e.getMilliseconds());for(var g=0,v=t.parts.length;g<v;g++){var x="";switch(t.parts[g]){case"G":x=r.translate(n<0?"_era_bc":"_era_ad");break;case"yyyy":x=Math.abs(n).toString(),n<0&&(x+=r.translate("_era_bc"));break;case"yyy":case"yy":case"y":x=Math.abs(n).toString().substr(-t.parts[g].length),n<0&&(x+=r.translate("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":var P=Zh(e);t.parts[g]=="YYYY"?x=Math.abs(P).toString():x=Math.abs(P).toString().substr(-t.parts[g].length),P<0&&(x+=r.translate("_era_bc"));break;case"u":break;case"q":x=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":x=r.translate(this.months[o]).substr(0,1);break;case"MMMM":x=r.translate(this.months[o]);break;case"MMM":x=r.translate(this.monthsShort[o]);break;case"MM":x=Rt(o+1,2,"0");break;case"M":x=(o+1).toString();break;case"ww":x=Rt(Xs(e,this.utc),2,"0");break;case"w":x=Xs(e,this.utc).toString();break;case"W":x=Kh(e,this.utc).toString();break;case"dd":x=Rt(u,2,"0");break;case"d":x=u.toString();break;case"DD":case"DDD":x=Rt(Al(e,this.utc).toString(),t.parts[g].length,"0");break;case"D":x=Al(e,this.utc).toString();break;case"F":break;case"g":break;case"t":x=r.translateFunc("_dateOrd").call(this,u);break;case"E":x=(l||7).toString();break;case"EE":x=Rt((l||7).toString(),2,"0");break;case"EEE":case"eee":x=r.translate(this.weekdaysShort[l]);break;case"EEEE":case"eeee":x=r.translate(this.weekdays[l]);break;case"EEEEE":case"eeeee":x=r.translate(this.weekdays[l]).substr(0,1);break;case"e":case"ee":x=(l-this.firstDayOfWeek+1).toString(),t.parts[g]=="ee"&&(x=Rt(x,2,"0"));break;case"a":h>=12?x=r.translate("PM"):x=r.translate("AM");break;case"aa":h>=12?x=r.translate("P.M."):x=r.translate("A.M.");break;case"aaa":h>=12?x=r.translate("P"):x=r.translate("A");break;case"h":x=qs(h).toString();break;case"hh":x=Rt(qs(h),2,"0");break;case"H":x=h.toString();break;case"HH":x=Rt(h,2,"0");break;case"K":x=qs(h,0).toString();break;case"KK":x=Rt(qs(h,0),2,"0");break;case"k":x=(h+1).toString();break;case"kk":x=Rt(h+1,2,"0");break;case"m":x=p.toString();break;case"mm":x=Rt(p,2,"0");break;case"s":x=d.toString();break;case"ss":x=Rt(d,2,"0");break;case"S":case"SS":case"SSS":x=Math.round(c/1e3*Math.pow(10,t.parts[g].length)).toString();break;case"x":x=y.toString();break;case"n":case"nn":case"nnn":x=Rt(c,t.parts[g].length,"0");break;case"z":x=Zs(e,!1,!1,this.utc);break;case"zz":x=Zs(e,!0,!1,this.utc);break;case"zzz":x=Zs(e,!1,!0,this.utc);break;case"zzzz":x=Zs(e,!0,!0,this.utc);break;case"Z":case"ZZ":var T=Math.abs(f)/60,C=Math.floor(T),O=T*60-C*60;this.utc&&(C=0,O=0),t.parts[g]=="Z"?(x="GMT",x+=f>0?"-":"+",x+=Rt(C,2)+":"+Rt(O,2)):(x=f>0?"-":"+",x+=Rt(C,2)+Rt(O,2));break;case"i":x=e.toISOString();break;case"I":x=e.toUTCString();break}s=s.replace(jt,x)}return s},i.prototype.parse=function(e,t){if($(t)||(t=this.inputDateFormat),e instanceof Date)return e;if(typeof e=="number")return new Date(e);typeof e!="string"&&(e=e.toString()),this.language||(this.sprite?this.language=this.sprite.language:this.language=new ni);var r,s="";t=pa(t),t=t.substr(0,e.length);for(var n=this.parseFormat(t),o={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},l={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:this.utc},u=0,h=0,p=0;p<n.parts.length;p++){switch(h=p+u+1,n.parts[p]){case"yyyy":case"YYYY":s+="([0-9]{4})",o.year=h;break;case"yyy":case"YYY":s+="([0-9]{3})",o.year3=h;break;case"yy":case"YY":s+="([0-9]{2})",o.year2=h;break;case"y":case"Y":s+="([0-9]{1})",o.year1=h;break;case"MMMM":s+="("+this.getStringList(this.months).join("|")+")",o.monthLong=h;break;case"MMM":s+="("+this.getStringList(this.monthsShort).join("|")+")",o.monthShort=h;break;case"MM":case"M":s+="([0-9]{2}|[0-9]{1})",o.month=h;break;case"ww":case"w":s+="([0-9]{2}|[0-9]{1})",o.week=h;break;case"dd":case"d":s+="([0-9]{2}|[0-9]{1})",o.day=h;break;case"DDD":case"DD":case"D":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.yearDay=h;break;case"dddd":s+="("+this.getStringList(this.weekdays).join("|")+")",o.weekdayLong=h;break;case"ddd":s+="("+this.getStringList(this.weekdaysShort).join("|")+")",o.weekdayShort=h;break;case"aaa":case"aa":case"a":s+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",o.am=h;break;case"hh":case"h":s+="([0-9]{2}|[0-9]{1})",o.hour12Base1=h;break;case"HH":case"H":s+="([0-9]{2}|[0-9]{1})",o.hourBase0=h;break;case"KK":case"K":s+="([0-9]{2}|[0-9]{1})",o.hour12Base0=h;break;case"kk":case"k":s+="([0-9]{2}|[0-9]{1})",o.hourBase1=h;break;case"mm":case"m":s+="([0-9]{2}|[0-9]{1})",o.minute=h;break;case"ss":case"s":s+="([0-9]{2}|[0-9]{1})",o.second=h;break;case"SSS":case"SS":case"S":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h,o.millisecondDigits=n.parts[p].length;break;case"nnn":case"nn":case"n":s+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h;break;case"x":s+="([0-9]{1,})",o.timestamp=h;break;case"Z":s+="GMT([-+]+[0-9]{2}:[0-9]{2})",o.zone=h;break;case"ZZ":s+="([\\-+]+[0-9]{2}[0-9]{2})",o.zone=h;break;case"i":s+="([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}|$)",o.iso=h,u+=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":u--;break}s+="[^0-9]*"}var d=new RegExp(s),c=e.match(d);if(c){if(o.year>-1&&(l.year=parseInt(c[o.year])),o.year3>-1){var f=parseInt(c[o.year3]);f+=1e3,l.year=f}if(o.year2>-1){var f=parseInt(c[o.year2]);f>50?f+=1e3:f+=2e3,l.year=f}if(o.year1>-1){var f=parseInt(c[o.year1]);f=Math.floor(new Date().getFullYear()/10)*10+f,l.year=f}if(o.monthLong>-1&&(l.month=this.resolveMonth(c[o.monthLong])),o.monthShort>-1&&(l.month=this.resolveShortMonth(c[o.monthShort])),o.month>-1&&(l.month=parseInt(c[o.month])-1),o.week>-1&&o.day===-1&&(l.month=0,l.day=qh(parseInt(c[o.week]),l.year,1,this.utc)),o.day>-1&&(l.day=parseInt(c[o.day])),o.yearDay>-1&&(l.month=0,l.day=parseInt(c[o.yearDay])),o.hourBase0>-1&&(l.hour=parseInt(c[o.hourBase0])),o.hourBase1>-1&&(l.hour=parseInt(c[o.hourBase1])-1),o.hour12Base0>-1){var f=parseInt(c[o.hour12Base0]);f==11&&(f=0),o.am>-1&&!this.isAm(c[o.am])&&(f+=12),l.hour=f}if(o.hour12Base1>-1){var f=parseInt(c[o.hour12Base1]);f==12&&(f=0),o.am>-1&&!this.isAm(c[o.am])&&(f+=12),l.hour=f}if(o.minute>-1&&(l.minute=parseInt(c[o.minute])),o.second>-1&&(l.second=parseInt(c[o.second])),o.millisecond>-1){var f=parseInt(c[o.millisecond]);o.millisecondDigits==2?f*=10:o.millisecondDigits==1&&(f*=100),l.millisecond=f}if(o.timestamp>-1){l.timestamp=parseInt(c[o.timestamp]);var y=new Date(l.timestamp);l.year=y.getUTCFullYear(),l.month=y.getUTCMonth(),l.day=y.getUTCDate(),l.hour=y.getUTCHours(),l.minute=y.getUTCMinutes(),l.second=y.getUTCSeconds(),l.millisecond=y.getUTCMilliseconds()}o.zone>-1&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),c[o.zone])),o.iso>-1&&(l.year=Oe(c[o.iso+0]),l.month=Oe(c[o.iso+1])-1,l.day=Oe(c[o.iso+2]),l.hour=Oe(c[o.iso+3]),l.minute=Oe(c[o.iso+4]),l.second=Oe(c[o.iso+5]),l.millisecond=Oe(c[o.iso+6]),c[o.iso+7]=="Z"||c[o.iso+7]=="z"?l.utc=!0:c[o.iso+7]!=""&&(l.offset=this.resolveTimezoneOffset(new Date(l.year,l.month,l.day),c[o.iso+7]))),l.utc?r=new Date(Date.UTC(l.year,l.month,l.day,l.hour,l.minute,l.second,l.millisecond)):r=new Date(l.year,l.month,l.day,l.hour,l.minute+l.offset,l.second,l.millisecond)}else r=new Date(e);return r},i.prototype.resolveTimezoneOffset=function(e,t){var r=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/);if(r){var s=Me(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)),n=s[1],o=s[2],l=s[3],u=parseInt(o)*60+parseInt(l);n=="+"&&(u*=-1);var h=(e||new Date).getTimezoneOffset(),p=u-h;return p}return 0},i.prototype.resolveMonth=function(e){var t=this.months.indexOf(e);return t>-1||this.language&&!this.language.isDefault()&&(t=this.language.translateAll(this.months).indexOf(e),t>-1)?t:0},i.prototype.resolveShortMonth=function(e){var t=this.monthsShort.indexOf(e);return t>-1||(t=this.months.indexOf(e),t>-1)||this.language&&!this.language.isDefault()&&(t=this.language.translateAll(this.monthsShort).indexOf(e),t>-1)?t:0},i.prototype.isAm=function(e){var t=this.getStringList(["AM","A.M.","A"]);return t.indexOf(e.toUpperCase())>-1},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},i.prototype.getStringList=function(e){for(var t=[],r=0;r<e.length;r++)this.language?t.push(Ys(this.language.translate(e[r]))):t.push(Ys(e[r]));return t},Object.defineProperty(i.prototype,"dateFormat",{get:function(){return this._dateFormat},set:function(e){this._dateFormat=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inputDateFormat",{get:function(){return this._inputDateFormat},set:function(e){this._inputDateFormat=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intlLocales",{get:function(){return this._intlLocales},set:function(e){this._intlLocales=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"utc",{get:function(){return this._utc},set:function(e){this._utc=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezoneOffset",{get:function(){return this._timezoneOffset},set:function(e){this._timezoneOffset!=e&&(this._timezoneOffset=e,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezone",{get:function(){return this._timezone},set:function(e){this._timezone!=e&&(this._timezone=e,this.timezoneMinutes=Ef(e),this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"firstDayOfWeek",{get:function(){return this._firstDayOfWeek},set:function(e){this._firstDayOfWeek=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),i})(Ze);_.registeredClasses.DateFormatter=Ii;var nn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._negativeBase=0,e._baseUnit="second",e._outputFormat="svg",e._unitValues={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6},e._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"},e.className="DurationFormatter",e.applyTheme(),e}return i.prototype.format=function(e,t,r){this.language||(this.sprite?this.language=this.sprite.language:this.language=new ni);var s=r||this._baseUnit;(typeof t>"u"||t==="")&&($(this.durationFormat)?t=this.durationFormat:t=this.getFormat(Oe(e),null,s)),t=pa(t);var n=this.parseFormat(t,s),o=Number(e),l;o>this._negativeBase?l=n.positive:o<this._negativeBase?l=n.negative:l=n.zero;var u=this.applyFormat(o,l);return l.color!==""&&(this._outputFormat==="svg"?u="<tspan fill='"+l.color+"'>"+u+"</tspan>":this._outputFormat==="html"&&(u="<span style='color: "+l.color+";'>"+u+"</span>")),u},i.prototype.parseFormat=function(e,t){var r=this,s=this.getCache(e);if($(s))return s;var n=t||this._baseUnit,o={positive:{color:"",template:"",parts:[],source:"",baseUnit:n,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:n,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:n,parsed:!1,absolute:!1}};e=e.replace("||",zr);var l=e.split("|");return o.positive.source=l[0],typeof l[2]>"u"?o.zero=o.positive:o.zero.source=l[2],typeof l[1]>"u"?o.negative=o.positive:o.negative.source=l[1],q(o,function(u,h){if(!h.parsed){if(typeof r.getCache(h.source)<"u"){o[u]=r.getCache(h.source);return}var p=h.source,d=[];d=h.source.match(/^\[([^\]]*)\]/),d&&d.length&&d[0]!==""&&(p=h.source.substr(d[0].length),h.color=d[1]);for(var c=mi().chunk(p,!0),f=0;f<c.length;f++){var y=c[f];if(y.text=y.text.replace(zr,"|"),y.type==="value"){y.text.match(/[yYMdDwhHKkmsSn]+a/)&&(h.absolute=!0,y.text=y.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));var g=y.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(g)for(var v=0;v<g.length;v++)$(g[v])||(g[v]=r._unitAliases[g[v]]),h.parts.push(g[v]),y.text=y.text.replace(g[v],jt)}h.template+=y.text}r.setCache(h.source,h),h.parsed=!0}}),this.setCache(e,o),o},i.prototype.applyFormat=function(e,t){var r=!t.absolute&&e<this._negativeBase;e=Math.abs(e);for(var s=this.toTimeStamp(e,t.baseUnit),n=t.template,o=0,l=t.parts.length;o<l;o++){var u=t.parts[o],h=this.toTimeUnit(u.substr(0,1)),p=u.length,d=Math.floor(s/this._unitValues[h]);n=n.replace(jt,Rt(d,p,"0")),s-=d*this._unitValues[h]}return r&&(n="-"+n),n},i.prototype.toTimeStamp=function(e,t){return e*this._unitValues[t]},i.prototype.toTimeUnit=function(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"}},i.prototype.invalidateSprite=function(){this.sprite&&this.sprite.invalidate()},Object.defineProperty(i.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outputFormat",{get:function(){return this._outputFormat},set:function(e){this._outputFormat=e.toLowerCase(),this.invalidateSprite()},enumerable:!0,configurable:!0}),i.prototype.getFormat=function(e,t,r){if($(this.durationFormat))return this.durationFormat;if(r||(r=this.baseUnit),$(t)&&e!=t){e=Math.abs(e),t=Math.abs(t);var s=this.getValueUnit(ie(e,t),r);return this.durationFormats[r][s]}else{var n=this.getValueUnit(e,r);return this.durationFormats[r][n]}},i.prototype.getValueUnit=function(e,t){t||(t=this.baseUnit);var r,s=this.getMilliseconds(e,t);return Vh(this._unitValues,function(n,o){if(n==t||r){var l=s/o;if(l<=1)return r||(r=n),!1;r=n}return!0}),r},i.prototype.getMilliseconds=function(e,t){return t||(t=this.baseUnit),e*this._unitValues[t]},Object.defineProperty(i.prototype,"durationFormat",{get:function(){return this._durationFormat},set:function(e){this._durationFormat!=e&&(this._durationFormat=e,this.invalidateSprite())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormats",{get:function(){return this._durationFormats||(this._durationFormats={millisecond:{millisecond:this.language.translate("_duration_millisecond"),second:this.language.translate("_duration_millisecond_second"),minute:this.language.translate("_duration_millisecond_minute"),hour:this.language.translate("_duration_millisecond_hour"),day:this.language.translate("_duration_millisecond_day"),week:this.language.translate("_duration_millisecond_week"),month:this.language.translate("_duration_millisecond_month"),year:this.language.translate("_duration_millisecond_year")},second:{second:this.language.translate("_duration_second"),minute:this.language.translate("_duration_second_minute"),hour:this.language.translate("_duration_second_hour"),day:this.language.translate("_duration_second_day"),week:this.language.translate("_duration_second_week"),month:this.language.translate("_duration_second_month"),year:this.language.translate("_duration_second_year")},minute:{minute:this.language.translate("_duration_minute"),hour:this.language.translate("_duration_minute_hour"),day:this.language.translate("_duration_minute_day"),week:this.language.translate("_duration_minute_week"),month:this.language.translate("_duration_minute_month"),year:this.language.translate("_duration_minute_year")},hour:{hour:this.language.translate("_duration_hour"),day:this.language.translate("_duration_hour_day"),week:this.language.translate("_duration_hour_week"),month:this.language.translate("_duration_hour_month"),year:this.language.translate("_duration_hour_year")},day:{day:this.language.translate("_duration_day"),week:this.language.translate("_duration_day_week"),month:this.language.translate("_duration_day_month"),year:this.language.translate("_duration_day_year")},week:{week:this.language.translate("_duration_week"),month:this.language.translate("_duration_week_month"),year:this.language.translate("_duration_week_year")},month:{month:this.language.translate("_duration_month"),year:this.language.translate("_duration_month_year")},year:{year:this.language.translate("_duration_year")}}),this._durationFormats},set:function(e){this._durationFormats=e,this.invalidateSprite()},enumerable:!0,configurable:!0}),i})(Ze);_.registeredClasses.DurationFormatter=nn;var Kf=new _e;function qf(a,i){var e=i||"amexport",t=new J,r=Kf.insertKeyIfEmpty(e,function(){var s=new Pe([new Ne(a,"."+e+"-menu *",{"box-sizing":"border-box"}),new Ne(a,"."+e+"-menu-level-0",{position:"absolute",top:"5px",right:"5px"}),new Ne(a,"."+e+"-menu-level-0."+e+"-left",{right:"auto",left:"5px"}),new Ne(a,"."+e+"-menu-level-0."+e+"-right",{right:"5px",left:"auto"}),new Ne(a,"."+e+"-menu-level-0."+e+"-top",{top:"5px",bottom:"auto"}),new Ne(a,"."+e+"-menu-level-0."+e+"-bottom",{top:"auto",bottom:"5px"}),new Ne(a,"."+e+"-item."+e+"-item-level-0",{opacity:"0.3",width:"30px","min-height":"30px",transition:"all 100ms ease-in-out"}),new Ne(a,"div:hover > div > ."+e+"-menu ."+e+"-item."+e+"-item-level-0, ."+e+"-item."+e+"-item-level-0.active",{opacity:"0.9"}),new Ne(a,"."+e+"-item."+e+"-item-level-0 > a",{padding:"0","text-align":"center",overflow:"hidden"}),new Ne(a,"."+e+"-item."+e+"-item-level-0:before",{display:"block"}),new Ne(a,"."+e+"-item",{position:"relative",display:"block",opacity:"0","z-index":"1","border-radius":"3px","background-color":t.getFor("secondaryButton").hex,padding:"0",margin:"1px 1px 0 0",color:t.getFor("secondaryButton").alternative.hex,transition:"all 100ms ease-in-out, opacity 0.5s ease 0.5s"}),new Ne(a,"."+e+"-left ."+e+"-item",{margin:"1px 0 0 1px"}),new Ne(a,"."+e+"-item:hover, ."+e+"-item.active",{background:t.getFor("secondaryButtonHover").hex,color:t.getFor("secondaryButtonText").hex}),new Ne(a,"."+e+"-item > ."+e+"-menu",{position:"absolute",top:"-1px",right:"0","margin-right":"100%"}),new Ne(a,"."+e+"-left ."+e+"-item > ."+e+"-menu",{left:"0",right:"auto","margin-left":"100%","margin-right":"auto"}),new Ne(a,"."+e+"-right ."+e+"-item > ."+e+"-menu",{left:"auto",right:"0","margin-left":"auto","margin-right":"100%"}),new Ne(a,"."+e+"-top ."+e+"-item > ."+e+"-menu",{top:"-1px",bottom:"auto"}),new Ne(a,"."+e+"-bottom ."+e+"-item > ."+e+"-menu",{top:"auto",bottom:"0"}),new Ne(a,"."+e+"-item > ."+e+"-menu",{display:"none"}),new Ne(a,"."+e+"-item:hover > ."+e+"-menu, ."+e+"-item.active > ."+e+"-menu",{display:"block"}),new Ne(a,"."+e+"-item:hover > ."+e+"-menu > ."+e+"-item, ."+e+"-item.active > ."+e+"-menu > ."+e+"-item",{opacity:"1"}),new Ne(a,"."+e+"-menu",{display:"block","list-style":"none",margin:"0",padding:"0"}),new Ne(a,"."+e+"-label",{display:"block",cursor:"default",padding:"0.5em 1em"}),new Ne(a,"."+e+"-icon",{display:"block",cursor:"default",padding:"0.2em 0.4em",width:"1.2em",height:"1.2em","min-width":"32px","min-height":"32px",margin:"auto auto","border-radius":"3px"}),new Ne(a,"."+e+"-item-level-0 > ."+e+"-icon",{padding:"0.1em 0.2em"}),new Ne(a,"."+e+"-clickable",{cursor:"pointer"})]);return new Wr(function(){Kf.removeKey(e),s.dispose()})});return r.increment()}var no=(function(a){S(i,a);function i(){var e=a!==null&&a.apply(this,arguments)||this;return e._validateDisposer=null,e}return i.prototype.invalidate=function(){this._validateDisposer===null&&(this._validateDisposer=_.events.on("exitframe",this.validate,this))},i.prototype.validate=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null)},i.prototype.dispose=function(){this._validateDisposer!==null&&(this._validateDisposer.dispose(),this._validateDisposer=null),a.prototype.dispose.call(this)},i})(It);var Pp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.adapter=new ut(e),e.closeDelay=1e3,e.closeOnClick=!0,e._language=new We,e._menuTag="ul",e._itemTag="li",e._labelTag="a",e._iconTag="img",e._classPrefix="amexport",e._defaultStyles=!0,e._align="right",e._verticalAlign="top",e._tabindex=0,e._ignoreNextClose=!1,e._items=[{label:"...",menu:[{label:"Image",menu:[{type:"png",label:"PNG"},{type:"jpg",label:"JPG"},{type:"svg",label:"SVG"},{type:"pdf",label:"PDF"}]},{label:"Data",menu:[{type:"json",label:"JSON"},{type:"csv",label:"CSV"},{type:"xlsx",label:"XLSX"},{type:"html",label:"HTML"},{type:"pdfdata",label:"PDF"}]},{label:"Print",type:"print"}]}],e.className="ExportMenu",e._disposers.push(e._language),e.invalidate(),e.applyTheme(),e}return i.prototype.validate=function(){this.draw(),a.prototype.validate.call(this)},i.prototype.draw=function(){var e=this;this._element?(this._element.innerHTML="",this._element.className=this.getMenuItemClass(0)):this._element=this.createMenuElement(0),this.defaultStyles&&(this._element.style.display="none"),Me(this._container).appendChild(this._element);for(var t=this.adapter.apply("items",{items:this._items}).items,r=t.length,s=0;s<r;s++)this.drawBranch(this._element,t[s],0);this._element=this.adapter.apply("menuElement",{menuElement:this._element}).menuElement,this._disposers.push(re().body.events.on("down",function(n){n.pointer.touch||(e._ignoreNextClose=!1),e.close()})),this._disposers.push(re().body.events.on("keydown",function(n){var o=si.getEventKey(n.event);switch(o){case"esc":e.close();break;case"up":case"down":case"left":case"right":e._currentSelection&&n.event.preventDefault(),e.moveSelection(o);break}})),this.defaultStyles&&this.loadDefaultCSS()},i.prototype.drawBranch=function(e,t,r){var s=this;if(t=this.adapter.apply("branch",{branch:t,level:r}).branch,t.unsupported!==!0){t.ascendants||(t.ascendants=new he);var n=t.type,o=this.createItemElement(r,n),l;t.icon?(l=this.createIconElement(r,n),l.src=t.icon,(t.label||t.title)&&(l.title=t.title||t.label)):t.svg?(l=this.createSvgElement(r,n,t.svg),(t.label||t.title)&&(l.title=t.title||t.label)):(l=this.createLabelElement(r,n),l.innerHTML=t.label?this.language.translate(t.label):"",t.title&&(l.title=t.title));var u=this.getReaderLabel(t,l.innerHTML);l.setAttribute("aria-label",u),o.appendChild(l),t.interactions=re().getInteraction(o),t.element=o,this.typeClickable(n)&&(t.interactions.events.on("hit",function(g){if(s.events.isEnabled("hit")&&!s.isDisposed()){var v={type:"hit",event:g.event,target:s,branch:t};s.events.dispatchImmediately("hit",v)}}),t.interactions.events.on("keyup",function(g){if(si.isKey(g.event,"enter")&&s.events.isEnabled("enter")){var v={type:"enter",event:g.event,target:s,branch:t};s.events.dispatchImmediately("enter",v)}}));{var h=this.getSubMenu(t);h!=null&&(t.interactions.events.on("keyup",function(g){si.isKey(g.event,"enter")&&(s.selectBranch(h[0]),s.setFocus(h[0]))}),t.interactions.events.on("hit",function(g){s.selectBranch(t)}))}t.interactions.events.on("over",function(g){if(g.pointer.touch&&(s._ignoreNextClose=!0),s.selectBranch(t),s.events.isEnabled("over")){var v={type:"over",event:g.event,target:s,branch:t};s.events.dispatchImmediately("over",v)}}),t.interactions.events.on("out",function(g){if(!s.isDisposed()&&(g.pointer.touch||s.delayUnselectBranch(t),s.events.isEnabled("out"))){var v={type:"out",event:g.event,target:s,branch:t};s.events.dispatchImmediately("out",v)}}),t.interactions.events.on("focus",function(g){s.selectBranch(t)}),t.interactions.events.on("blur",function(g){s.delayUnselectBranch(t)});var p=r+1;if(t.menu){var d=this.createMenuElement(p);t.submenuElement=d;for(var c=t.menu.length,f=0;f<c;f++){var y=new he;t.menu[f].ascendants=y,t.ascendants.length&&y.copyFrom(t.ascendants),y.push(t),this.drawBranch(d,t.menu[f],p)}if(d.innerHTML=="")return;o.appendChild(d)}t.hidden&&this.hideBranch(t),t.id&&o.setAttribute("id",t.id),t.color&&(o.style.backgroundColor=t.color.hex),e.appendChild(o)}},i.prototype.createMenuElement=function(e){var t=document.createElement(this.menuTag);return t.className=this.getMenuItemClass(e),e===0?t.setAttribute("role","menubar"):t.setAttribute("role","menu"),t},i.prototype.getMenuItemClass=function(e){var t=this.classPrefix+"-menu "+this.classPrefix+"-menu-level-"+e;return e===0&&(t+=" "+this.classPrefix+"-menu-root "+this.classPrefix+"-"+this.align+" "+this.classPrefix+"-"+this.verticalAlign),this.adapter.apply("menuClass",{className:t,level:e}).className},i.prototype.createItemElement=function(e,t){var r=document.createElement(this.itemTag),s=this.classPrefix+"-item "+this.classPrefix+"-item-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return r.className=this.adapter.apply("itemClass",{className:s,level:e,type:t}).className,r.setAttribute("role","menuitem"),r.setAttribute("tabindex",this.tabindex.toString()),r},i.prototype.createLabelElement=function(e,t){var r=document.createElement(this.labelTag),s=this.classPrefix+"-label "+this.classPrefix+"-label-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return this.typeClickable(t)&&(s+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:s,level:e,type:t}).className,r},i.prototype.createIconElement=function(e,t){var r=document.createElement(this.iconTag),s=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return this.typeClickable(t)&&(s+=" "+this.classPrefix+"-clickable"),r.className=this.adapter.apply("labelClass",{className:s,level:e,type:t}).className,r.setAttribute("tabindex",this.tabindex.toString()),r.setAttribute("role","menuitem"),r},i.prototype.createSvgElement=function(e,t,r){var s=new DOMParser,n=s.parseFromString(r,"image/svg+xml").documentElement,o=this.classPrefix+"-icon "+this.classPrefix+"-icon-level-"+e+" "+this.classPrefix+"-item-"+(t||"blank");return this.typeClickable(t)&&(o+=" "+this.classPrefix+"-clickable"),n.setAttribute("class",this.adapter.apply("labelClass",{className:o,level:e,type:t}).className),n.setAttribute("tabindex",this.tabindex.toString()),n.setAttribute("role","menuitem"),n},i.prototype.dispose=function(){this._disposed||(a.prototype.dispose.call(this),this._element&&this._element.parentNode&&this._element.parentNode.removeChild(this._element))},i.prototype.typeClickable=function(e){return $(e)},i.prototype.hasSubMenu=function(e){return!!(e.menu&&e.menu.length)},i.prototype.getSubMenu=function(e){if(e.menu&&e.menu.length)return e.menu},i.prototype.getReaderLabel=function(e,t){return t=Dl(t),e.ascendants.length==0?(t=t=="..."?this.language.translate("Export"):t,t+=" ["+this.language.translate("Press ENTER or use arrow keys to navigate")+"]"):this.hasSubMenu(e)?t+=" ["+this.language.translate("Click, tap or press ENTER to open")+"]":e.type=="print"?t=this.language.translate("Click, tap or press ENTER to print."):this.typeClickable(e.type)&&(t=this.language.translate("Click, tap or press ENTER to export as %1.",void 0,t)),this.adapter.apply("rederLabel",{label:t,branch:e}).label},Object.defineProperty(i.prototype,"container",{get:function(){return this._container},set:function(e){this._container=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"items",{get:function(){return this._items},set:function(e){this._items=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tag",{set:function(e){this._menuTag=e,this._itemTag=e=="ul"?"li":"div",this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"menuTag",{get:function(){return this.adapter.apply("menuTag",{tag:this._menuTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemTag",{get:function(){return this.adapter.apply("itemTag",{tag:this._itemTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labelTag",{get:function(){return this.adapter.apply("labelTag",{tag:this._labelTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iconTag",{get:function(){return this.adapter.apply("iconTag",{tag:this._iconTag}).tag},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.adapter.apply("align",{align:this._align}).align},set:function(e){this._align=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalAlign",{get:function(){return this.adapter.apply("verticalAlign",{verticalAlign:this._verticalAlign}).verticalAlign},set:function(e){this._verticalAlign=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"classPrefix",{get:function(){return this.adapter.apply("classPrefix",{classPrefix:this._classPrefix}).classPrefix},set:function(e){this._classPrefix=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultStyles",{get:function(){return this.adapter.apply("defaultStyles",{defaultStyles:this._defaultStyles}).defaultStyles},set:function(e){this._defaultStyles!=e&&(this._defaultStyles=e,e&&this.loadDefaultCSS()),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.loadDefaultCSS=function(){this._disposers.push(qf(rn(this.container),this.classPrefix)),this._element&&(this._element.style.display="")},Object.defineProperty(i.prototype,"tabindex",{get:function(){return this.adapter.apply("tabindex",{tabindex:this._tabindex}).tabindex},set:function(e){this._tabindex=e,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var e=this,t=this._language.get();return t==null&&(t=new ni,this._language.set(t,t.events.on("localechanged",function(r){e.invalidate()}))),t},set:function(e){var t=this;this._language.set(e,e.events.on("localechanged",function(r){t.invalidate()})),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.close=function(){var e=this;if(!this.isDisposed()){if(this._ignoreNextClose){this._ignoreNextClose=!1;return}if(this.closeOnClick&&(this._element.style.pointerEvents="none",setTimeout(function(){e._element.style.pointerEvents="auto"},100)),this._currentSelection&&(this.setBlur(this._currentSelection),this._currentSelection=void 0),this._element)for(var t=this._element.getElementsByClassName("active"),r=t.length,s=r-1;s>=0;s--)t[s]&&tn(t[s],"active");this.events.dispatchImmediately("closed",{type:"closed",target:this})}},i.prototype.selectBranch=function(e){var t=this;if(!this.isDisposed()&&(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),en(e.element,"active"),e.submenuElement&&e.submenuElement.setAttribute("aria-expanded","true"),this._currentSelection&&this._currentSelection!==e&&this._currentSelection.ascendants&&V(yf(_r([this._currentSelection]),this._currentSelection.ascendants.iterator()),function(s){!e.ascendants.contains(s)&&e!==s&&t.unselectBranch(s,!0)}),V(e.ascendants.iterator(),function(s){s.closeTimeout&&(t.removeDispose(s.closeTimeout),s.closeTimeout=void 0),en(s.element,"active")}),this._currentSelection=e,this.events.isEnabled("branchselected"))){var r={type:"branchselected",target:this,branch:e};this.events.dispatchImmediately("branchselected",r)}},i.prototype.unselectBranch=function(e,t){if(!this.isDisposed()&&(tn(e.element,"active"),e.submenuElement&&e.submenuElement.removeAttribute("aria-expanded"),this._currentSelection==e&&(this._currentSelection=void 0),this.events.isEnabled("branchunselected"))){var r={type:"branchunselected",target:this,branch:e};this.events.dispatchImmediately("branchunselected",r)}},i.prototype.delayUnselectBranch=function(e,t){var r=this;this.isDisposed()||(e.closeTimeout&&(this.removeDispose(e.closeTimeout),e.closeTimeout=void 0),e.closeTimeout=this.setTimeout(function(){r.unselectBranch(e,t)},this.closeDelay),t!==!0&&e.ascendants&&V(e.ascendants.iterator(),function(s){r.delayUnselectBranch(s,!0)}))},i.prototype.moveSelection=function(e){if(!this.isDisposed()&&this._currentSelection){var t;if(e=="up")t=this.getPrevSibling(this._currentSelection);else if(e=="down")t=this.getNextSibling(this._currentSelection);else if(e=="left"&&this.align=="right"||e=="right"&&this.align=="left"){var r=this.getSubMenu(this._currentSelection);r!=null&&(t=r[0])}else(e=="right"&&this.align=="right"||e=="left"&&this.align=="left")&&(t=this.getParentItem(this._currentSelection));t&&t!==this._currentSelection&&(this.selectBranch(t),this.setFocus(t),this._currentSelection=t)}},i.prototype.getSiblings=function(e){var t=this.getParentItem(e);return t&&t.menu?t.menu:[]},i.prototype.getParentItem=function(e){if(e.ascendants&&e.ascendants.length)return e.ascendants.getIndex(e.ascendants.length-1)},i.prototype.getNextSibling=function(e){var t=this.getSiblings(e);if(t.length>1){var r=t.indexOf(e)+1;return r=t.length==r?0:r,t[r].unsupported?this.getNextSibling(t[r]):t[r]}else return e},i.prototype.getPrevSibling=function(e){var t=this.getSiblings(e);if(t.length>1){var r=t.indexOf(e)-1;return r=r==-1?t.length-1:r,t[r].unsupported?this.getPrevSibling(t[r]):t[r]}else return e},i.prototype.setFocus=function(e){if(e.interactions)try{e.interactions.element.focus()}catch{}},i.prototype.setBlur=function(e){if(e.interactions)try{e.interactions.element.blur()}catch{}},i.prototype.hideBranch=function(e){e.element.style.display="none"},i.prototype.showBranch=function(e){e.element.style.display=""},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},enumerable:!0,configurable:!0}),i})(no);function on(a,i,e){return new Promise(function(t,r){var s=$(e)&&e.responseType=="blob",n=new XMLHttpRequest;if(n.onload=function(){if(n.status===200){var u=void 0,h;if(s){h=n.response,uv(h).then(function(d){var c={xhr:n,error:!1,response:d,blob:h,type:n.getResponseHeader("Content-Type"),target:i};t(c)});return}else u=n.responseText||n.response;var p={xhr:n,error:!1,response:u,blob:h,type:n.getResponseHeader("Content-Type"),target:i};t(p)}else r({xhr:n,error:!0,type:n.getResponseHeader("Content-Type"),target:i})},n.onerror=function(){r({xhr:n,error:!0,type:n.getResponseHeader("Content-Type"),target:i})},n.open("GET",a,!0),e&&e.withCredentials&&(n.withCredentials=!0),$(e)){if($(e.requestHeaders))for(var o=0;o<e.requestHeaders.length;o++){var l=e.requestHeaders[o];n.setRequestHeader(l.key,l.value)}$(e.responseType)&&(n.responseType=e.responseType)}n.send()})}function uv(a){return new Promise(function(i,e){var t=new FileReader;t.onload=function(r){i(t.result)},t.onerror=function(r){e(r)},t.readAsText(a)})}var Cp;function hv(){return Xe(this,void 0,void 0,function(){var a,i,e,t;return Ae(this,function(r){switch(r.label){case 0:return[4,Promise.all([import("./ZXIRDWJW.js"),import("./DXMV5YU3.js")])];case 1:return a=r.sent(),i=a[0].default||a[0],e=a[1].default||a[1],t=window,t.pdfMake=t.pdfMake||{},t.pdfMake.vfs=e,i.vfs=e,[2,i]}})})}var Zf=/src: ([^;]+);/;function pv(){return window.navigator.msSaveOrOpenBlob!=null}function dv(a){return new Promise(function(i,e){var t=new FileReader;t.onload=function(r){i(t.result)},t.onerror=function(r){e(r)},t.readAsDataURL(a)})}function cv(a){return Xe(this,void 0,void 0,function(){var i,e;return Ae(this,function(t){switch(t.label){case 0:i=a.sheet,t.label=1;case 1:return t.trys.push([1,2,,4]),[2,i.cssRules];case 2:return e=t.sent(),[4,new Promise(function(r,s){a.addEventListener("load",function(){r(i.cssRules)},!0),a.addEventListener("error",function(n){s(n)},!0),setTimeout(function(){s(new Error("Timeout while waiting for <style> to load"))},1e4)})];case 3:return[2,t.sent()];case 4:return[2]}})})}function Qf(a,i,e){return Xe(this,void 0,void 0,function(){var t,r,s,n;return Ae(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,on(i)];case 1:return t=o.sent(),[3,3];case 2:return r=o.sent(),console.error("Failed to load stylesheet",i,r),[2];case 3:s=a.createElement("style"),s.textContent=t.response,ue.nonce!=""&&s.setAttribute("nonce",ue.nonce),a.head.appendChild(s),o.label=4;case 4:return o.trys.push([4,,7,8]),[4,cv(s)];case 5:return n=o.sent(),[4,Jf(a,i,n,e)];case 6:return o.sent(),[3,8];case 7:return a.head.removeChild(s),[7];case 8:return[2]}})})}function Jf(a,i,e,t){return Xe(this,void 0,void 0,function(){var r,s,n,o,l;return Ae(this,function(u){switch(u.label){case 0:for(r=[],s=e.length,n=0;n<s;n++)o=e[n],o.type===CSSRule.IMPORT_RULE?(l=o.href,l&&(l=Kn(i,l),r.push(Qf(a,l,t)))):t(i,o);return r.length?[4,Promise.all(r)]:[3,2];case 1:u.sent(),u.label=2;case 2:return[2]}})})}function fv(a){return Xe(this,void 0,void 0,function(){var i,e;return Ae(this,function(t){switch(t.label){case 0:i=document.createElement("iframe"),i.src="about:blank",i.setAttribute("title",""),document.head.appendChild(i),t.label=1;case 1:return t.trys.push([1,,3,4]),e=i.contentDocument,[4,Promise.all(Er(document.styleSheets,function(r){var s=r.href;return s==null?Jf(e,location.href,r.cssRules,a):(s=Kn(location.href,s),Qf(e,s,a))}))];case 2:return t.sent(),[3,4];case 3:return document.head.removeChild(i),[7];case 4:return[2]}})})}var Tp=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t.adapter=new ut(t),t._formatOptions=new _e,t._extraSprites=[],t._validateSprites=[],t.dataFieldsOrder=[],t._dynamicDataFields=!0,t._removedObjects=new he,t._hiddenObjects=[],t._objectsAlreadyHidden=!1,t._filePrefix="amCharts",t.useWebFonts=!0,t.useRetina=!0,t.useSimplifiedExport=!0,t.timeoutDelay=2e3,t._exportRunning=!1,t._prevHasData=!1,t._container=e,t.className="Export",t._formatOptions.setKey("png",{}),t._formatOptions.setKey("jpg",{quality:.8}),t._formatOptions.setKey("gif",{}),t._formatOptions.setKey("svg",{}),t._formatOptions.setKey("pdf",{fontSize:14,imageFormat:"png",align:"left",addURL:!0,addColumnNames:!0}),t._formatOptions.setKey("json",{indent:2,useLocale:!0}),t._formatOptions.setKey("csv",{addColumnNames:!0,emptyAs:"",addBOM:!0}),t._formatOptions.setKey("xlsx",{addColumnNames:!0,useLocale:!0,emptyAs:""}),t._formatOptions.setKey("html",{addColumnNames:!0,emptyAs:""}),t._formatOptions.setKey("pdfdata",{fontSize:14,imageFormat:"png",addURL:!0,addColumnNames:!0,emptyAs:""}),t._formatOptions.setKey("print",{delay:500,printMethod:"iframe"}),t.adapter.add("options",function(r){var s=t._formatOptions.getKey(r.type);return r.options?r.options=Rn(s,r.options):r.options=s,r}),t.applyTheme(),t.dispatchImmediately("inited"),t}return Object.defineProperty(i.prototype,"menu",{get:function(){return this._menu},set:function(e){var t=this;this._menu&&this.removeDispose(this._menu),this._menu=e,this._menu.container=this.container,this._menu.language=this._language,this._menu.adapter.add("branch",function(r){return r.branch.unsupported=!t.typeSupported(r.branch.type),r}),this._menu.events.on("hit",function(r){t.export(r.branch.type,r.branch.options),t.menu.close()}),this._menu.events.on("enter",function(r){t.export(r.branch.type,r.branch.options),t.menu.close()}),this._menu.events.on("over",function(r){t._disablePointers()}),this._menu.events.on("out",function(r){setTimeout(function(){t._releasePointers()},10)}),this.dispatchImmediately("menucreated"),this._menu.adapter.add("classPrefix",function(r){return r.classPrefix=ue.classNamePrefix+r.classPrefix,r}),this._disposers.push(this._menu)},enumerable:!0,configurable:!0}),i.prototype.typeSupported=function(e){var t=!0,r=this.getFormatOptions(e);return $(r)&&r.disabled?t=!1:e==="pdf"||(e==="xlsx"?t=!!this._hasData():(e=="print"&&!window.print||["json","csv","html","pdfdata"].indexOf(e)!==-1&&!this._hasData())&&(t=!1)),this.adapter.apply("supported",{supported:t,type:e}).supported},i.prototype._hasData=function(){return this.data&&this.data.length},i.prototype._getFunction=function(e){switch(e){case"png":case"gif":case"jpg":return this.getImage;case"svg":return this.getSVG;case"pdf":case"pdfdata":return this.getPDF;case"xlsx":return this.getExcel;case"csv":return this.getCSV;case"json":return this.getJSON;case"html":return this.getHTML;case"print":return this.getPrint;default:return this.unsupported}},i.prototype.export=function(e,t){return Xe(this,void 0,void 0,function(){var r,s,n,o,l,u=this;return Ae(this,function(h){switch(h.label){case 0:return e=="custom"?(this.handleCustom(t),[2,!0]):(this._exportRunning=!0,this.events.isEnabled("exportstarted")&&(r={type:"exportstarted",target:this,format:e,options:t},this.events.dispatchImmediately("exportstarted",r)),this.showPreloader(),this.timeoutDelay&&(this.hideTimeout(),this._timeoutTimeout=this.setTimeout(function(){if(u.events.isEnabled("exporttimedout")){var p={type:"exporttimedout",target:u,format:e,options:t};u.events.dispatchImmediately("exporttimedout",p)}u.showTimeout()},this.timeoutDelay)),this.hideNonExportableSprites(),s=this._getFunction(e),t=this.adapter.apply("options",{options:t,type:e}).options,s=this.adapter.apply("exportFunction",{func:s,type:e,options:t}).func,[4,s.call(this,e,t)]);case 1:return n=h.sent(),this._exportRunning=!1,this._releasePointers(),this.restoreNonExportableSprites(),n?(this.events.isEnabled("exportfinished")&&(o={type:"exportfinished",target:this,format:e,options:t},this.events.dispatchImmediately("exportfinished",o)),this.hidePreloader(),this.hideTimeout(),this.menu&&this.menu.close(),e==="print"?[2,this.print(n,t,this.adapter.apply("title",{title:this.title,options:t}).title)]:e=="pdfdata"?[2,this.download(n,this.filePrefix+".pdf")]:[2,this.download(n,this.filePrefix+"."+e,t&&t.addBOM)]):(this.events.isEnabled("error")&&(l={type:"error",target:this,format:e,options:t},this.events.dispatchImmediately("error",l)),[2,!1])}})})},i.prototype.unsupported=function(e,t){return Xe(this,void 0,void 0,function(){return Ae(this,function(r){return[2,""]})})},i.prototype.handleCustom=function(e){$(e)&&$(e.callback)&&e.callback.call(e.callbackTarget||this,e)},i.prototype.getPrint=function(e,t){return Xe(this,void 0,void 0,function(){return Ae(this,function(r){return[2,this.getImage("png",t)]})})},i.prototype.getFontFamilies=function(){return Xe(this,void 0,void 0,function(){var e,t,r,s,n=this;return Ae(this,function(o){switch(o.label){case 0:return e=this.getDOMURL(),t=[],r=[],[4,fv(function(l,u){if(u.type===CSSRule.FONT_FACE_RULE){var h=u.cssText,p=Zf.exec(h);if(p!==null){var d=p[1].split(/ *, */).map(function(c){return Xe(n,void 0,void 0,function(){var f,y,g,v,x,P;return Ae(this,function(T){switch(T.label){case 0:return f=/^url\(["']?([^"'\)]+)["']?\)([^,]*)$/.exec(c),f!==null?[3,1]:[2,c];case 1:if(y=f[2],g=Kn(l,f[1]),this.webFontFilter&&!g.match(this.webFontFilter))return[2,null];T.label=2;case 2:return T.trys.push([2,7,,8]),[4,on(g,void 0,{responseType:"blob"})];case 3:return v=T.sent(),pv()?(x=e.createObjectURL(v.blob),t.push(x),[3,6]):[3,4];case 4:return[4,dv(v.blob)];case 5:x=T.sent(),T.label=6;case 6:return[2,'url("'+x+'")'+y];case 7:return P=T.sent(),console.error("Failed to load font",g,P),[2,null];case 8:return[2]}})})});r.push(Promise.all(d).then(function(c){return c=c.filter(function(f){return f!=null}),c.length===0?"":h.replace(Zf,"src: "+c.join(", ")+";")}))}}})];case 1:return o.sent(),[4,Promise.all(r)];case 2:return s=o.sent(),[2,{blobs:t,cssText:s.filter(function(l){return!!l}).join(`
|
|
4
|
-
`)}]}})})},i.prototype.getImage=function(e,t,r){return Xe(this,void 0,void 0,function(){var s,n,o,l,u,h,h;return Ae(this,function(p){switch(p.label){case 0:return s=this._objectsAlreadyHidden,s||this.hideNonExportableSprites(),$(t)||(t=this.getFormatOptions(e)),[4,this.awaitValidSprites()];case 1:return p.sent(),[4,this.simplifiedImageExport()];case 2:if(!p.sent())return[3,10];n=void 0,p.label=3;case 3:return p.trys.push([3,7,,9]),[4,this.getCanvas(t)];case 4:return n=p.sent(),r===!1?[3,6]:[4,this.addExtras(n,t)];case 5:o=p.sent(),this.disposeCanvas(n),n=o,p.label=6;case 6:return l=n.toDataURL(this.getContentType(e),t.quality),this.disposeCanvas(n),s||this.restoreNonExportableSprites(),[2,l];case 7:return u=p.sent(),console.error(u.message+`
|
|
5
|
-
`+u.stack),sn("Simple export failed, falling back to advanced export"),n&&this.disposeCanvas(n),[4,this.getImageAdvanced(e,t,r)];case 8:return h=p.sent(),s||this.restoreNonExportableSprites(),[2,h];case 9:return[3,12];case 10:return[4,this.getImageAdvanced(e,t,r)];case 11:return h=p.sent(),s||this.restoreNonExportableSprites(),[2,h];case 12:return[2]}})})},i.prototype.addExtras=function(e,t,r){return Xe(this,void 0,void 0,function(){var s,n,o,l,u,h,p,d,c,f,y,g,v,x,P=this;return Ae(this,function(T){switch(T.label){case 0:return this.extraSprites.length?(s=0,n=0,o=e.width,l=e.height,u=0,h=0,[4,Promise.all(Er(this.extraSprites,function(C){return Xe(P,void 0,void 0,function(){var O,w,D,A;return Ae(this,function(H){switch(H.label){case 0:return C instanceof U?O={sprite:C,position:"bottom"}:O=C,O.position=O.position||"bottom",O.marginTop=O.marginTop||0,O.marginRight=O.marginRight||0,O.marginBottom=O.marginBottom||0,O.marginLeft=O.marginLeft||0,r?[4,O.sprite.exporting.getCanvasAdvanced(t)]:[3,2];case 1:return w=H.sent(),[3,4];case 2:return[4,O.sprite.exporting.getCanvas(t)];case 3:w=H.sent(),H.label=4;case 4:return D=w.width+O.marginLeft+O.marginRight,A=w.height+O.marginTop+O.marginBottom,O.position=="top"?(o=O.crop?l:ie(o,D),n+=A):O.position=="right"?(l=O.crop?l:ie(l,A),u+=D):O.position=="left"?(l=O.crop?l:ie(l,A),s+=D):O.position==="bottom"&&(o=O.crop?l:ie(o,D),h+=A),[2,{canvas:w,position:O.position,left:O.marginLeft,top:O.marginTop,width:D,height:A}]}})})}))]):[3,2];case 1:return p=T.sent(),d=this.getDisposableCanvas(),d.width=s+o+u,d.height=n+l+h,c=d.getContext("2d"),f=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),f&&(c.fillStyle=f.toString(),c.fillRect(0,0,d.width,d.height)),y=s,g=n,v=y+o,x=g+l,M(p,function(C){C.position=="top"?(g-=C.height,c.drawImage(C.canvas,s+C.left,g+C.top)):C.position=="right"?(c.drawImage(C.canvas,v+C.left,n+C.top),v+=C.width):C.position=="left"?(y-=C.width,c.drawImage(C.canvas,y+C.left,n+C.top)):C.position==="bottom"&&(c.drawImage(C.canvas,s+C.left,x+C.top),x+=C.height),P.disposeCanvas(C.canvas)}),c.drawImage(e,s,n),[2,d];case 2:return[2,e]}})})},i.prototype.getCanvas=function(e){return Xe(this,void 0,void 0,function(){var t,r,s,n,o,l,u,h,p,d,c,f,y,g,v,x,P;return Ae(this,function(T){switch(T.label){case 0:$(e)||(e={}),t=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),r=this.getDOMURL(),s=null,n=null,T.label=1;case 1:return T.trys.push([1,,4,5]),l=this.sprite.pixelWidth,u=this.sprite.pixelHeight,h=Jn(this.sprite.dom),p=eo(this.sprite.dom),d=e.scale||1,c=this.getPixelRatio(e),d=this.getAdjustedScale(l*c,u*c,d,e),o=this.getDisposableCanvas(),o.style.width=l*d+"px",o.style.height=u*d+"px",o.width=l*d,o.height=u*d,f=o.getContext("2d"),t&&(f.fillStyle=t.toString(),f.fillRect(0,0,l*d,u*d)),y=[],this.useWebFonts&&y.push(this.getFontFamilies().then(function(C){return n=C.blobs,C.cssText})),y.push(this.imagesToDataURI(this.sprite.dom,e)),y.push(this.prepForeignObjects(this.sprite.dom,e)),[4,Promise.all(y)];case 2:return g=T.sent(),v=this.normalizeSVG("<style>"+g[0]+"</style>"+this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,l,u,d,h,p),x=new Blob([v],{type:"image/svg+xml"}),s=r.createObjectURL(x),[4,this.loadNewImage(s,l*d*c,u*d*c,"anonymous")];case 3:return P=T.sent(),f.drawImage(P,0,0),[3,5];case 4:return s!==null&&r.revokeObjectURL(s),n!==null&&M(n,function(C){r.revokeObjectURL(C)}),this.restoreRemovedObjects(),[7];case 5:return[2,o]}})})},i.prototype.getCanvasAdvanced=function(e){return Xe(this,void 0,void 0,function(){var t,r,s,n,o,l,u,h,p,d,c;return Ae(this,function(f){switch(f.label){case 0:return $(e)||(e={}),[4,this.imagesToDataURI(this.sprite.dom,e)];case 1:return f.sent(),t=this.backgroundColor||this.findBackgroundColor(this.sprite.dom),[4,this.canvg];case 2:return r=f.sent(),s=this.sprite.pixelWidth,n=this.sprite.pixelHeight,o=Jn(this.sprite.dom),l=eo(this.sprite.dom),u=e.scale||1,h=this.getPixelRatio(e),u=this.getAdjustedScale(s*h,n*h,u,e),p=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),e,s,n,u,o,l,t),d=this.getDisposableCanvas(),d.style.width=s*h*u+"px",d.style.height=n*h*u+"px",d.width=s*h*u,d.height=n*h*u,c={useCORS:!0},h!=1&&(c.ignoreDimensions=!0,c.scaleWidth=s*h*u,c.scaleHeight=n*h*u),[4,r.fromString(d.getContext("2d"),p,c).render()];case 3:return f.sent(),[2,d]}})})},i.prototype.getImageAdvanced=function(e,t,r){return Xe(this,void 0,void 0,function(){var s,n,o;return Ae(this,function(l){switch(l.label){case 0:return s=this._objectsAlreadyHidden,s||this.hideNonExportableSprites(),$(t)||(t=this.getFormatOptions(e)),[4,this.getCanvasAdvanced(t)];case 1:return n=l.sent(),r===!1?[3,3]:[4,this.addExtras(n,t,!0)];case 2:n=l.sent(),l.label=3;case 3:return o=n.toDataURL(this.getContentType(e),t.quality),this.disposeCanvas(n),s||this.restoreNonExportableSprites(),[2,o]}})})},i.prototype.getDisposableCanvas=function(){var e=document.createElement("canvas");return e.style.position="fixed",e.style.top="-10000px",document.body.appendChild(e),e},i.prototype.disposeCanvas=function(e){document.body.contains(e)&&document.body.removeChild(e)},i.prototype.getPixelRatio=function(e){return this.useRetina?zh():1},i.prototype.getAdjustedScale=function(e,t,r,s){if(!s)return r;var n=e*r,o=e*r,l,u;return s.maxWidth&&n>s.maxWidth&&(l=s.maxWidth/e),s.maxHeight&&o>s.maxHeight&&(u=s.maxHeight/t),l||u?le(l,u):(s.minWidth&&n<s.minWidth&&(l=s.minWidth/e),s.minHeight&&o<s.minHeight&&(u=s.minHeight/t),l||u?ie(l,u):r)},i.prototype.imagesToDataURI=function(e,t){return Xe(this,void 0,void 0,function(){var r,s,n,o,l,u;return Ae(this,function(h){switch(h.label){case 0:if(r=e.querySelectorAll("image"),!r.length)return[3,2];for(s=[],n=r.length,o=0;o<n;o++)l=r[o],u=l.getAttributeNS(i.XLINK,"href"),u&&(u.indexOf("data:image")!==-1||(u.indexOf(".svg")!==-1?s.push(this.svgToDataURI(l,t)):s.push(this.imageToDataURI(l,t))));return[4,Promise.all(s)];case 1:return h.sent(),[2];case 2:return[2]}})})},i.prototype.prepForeignObjects=function(e,t){return Xe(this,void 0,void 0,function(){var r,s,n;return Ae(this,function(o){if(r=e.querySelectorAll("foreignObject"),r.length)for(s=r.length,n=0;n<s;n++)this.temporarilyRemoveObject(r[n]);return[2]})})},i.prototype.imageToDataURI=function(e,t){return Xe(this,void 0,void 0,function(){var r,s,n,o;return Ae(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,this.loadNewImage(e.getAttributeNS(i.XLINK,"href"),null,null,"anonymous")];case 1:r=l.sent(),s=document.createElement("canvas"),s.width=r.width,s.height=r.height,s.getContext("2d").drawImage(r,0,0);try{return n=s.toDataURL(),e.setAttribute("href",n),[2,n]}catch{return t.keepTainted!==!1&&this.temporarilyRemoveObject(e),[2,void 0]}return[3,3];case 2:return o=l.sent(),(!t||t.keepTainted!==!1)&&this.temporarilyRemoveObject(e),[2,void 0];case 3:return[2]}})})},i.prototype.svgToDataURI=function(e,t){return Xe(this,void 0,void 0,function(){var r,s,n,o,l;return Ae(this,function(u){switch(u.label){case 0:r=e.getAttributeNS(i.XLINK,"href"),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,on(r)];case 2:return s=u.sent(),n=this.adapter.apply("charset",{charset:"base64",type:"svg",options:t}).charset,o=this.adapter.apply("svgToDataURI",{data:"data:"+this.getContentType("svg")+";"+n+","+btoa(s.response),options:t}).data,e.setAttributeNS(i.XLINK,"href",o),[2,o];case 3:return l=u.sent(),(!t||t.keepTainted!==!1)&&this.temporarilyRemoveObject(e),[2,void 0];case 4:return[2]}})})},i.prototype.temporarilyRemoveObject=function(e,t){var r=e.parentElement||e.parentNode;t||(t=this.sprite.paper.add("g").node),r.insertBefore(t,e),e.textContent,r.removeChild(e),this._removedObjects.push({element:e,placeholder:t})},i.prototype.restoreRemovedObjects=function(){for(var e;e=this._removedObjects.pop(),!!e;){var t=e.placeholder.parentElement||e.placeholder.parentNode;t.insertBefore(e.element,e.placeholder)}},i.prototype.simplifiedImageExport=function(){return Xe(this,void 0,void 0,function(){var e,t,r,s,n,o,l,u,h;return Ae(this,function(p){switch(p.label){case 0:if(this.useSimplifiedExport===!1)return[2,!1];if(e=_.getCache("simplifiedImageExport"),e===!1||e===!0)return[2,e];p.label=1;case 1:p.trys.push([1,6,,7]),t=document.createElement("canvas"),t.width=1,t.height=1,r=t.getContext("2d"),s=this.getDOMURL(),n=new Blob([this.normalizeSVG("<g></g>",{},1,1)],{type:"image/svg+xml"}),o=s.createObjectURL(n),l=void 0,p.label=2;case 2:return p.trys.push([2,4,,5]),[4,this.loadNewImage(o,1,1)];case 3:return l=p.sent(),[3,5];case 4:return u=p.sent(),[2,!1];case 5:r.drawImage(l,0,0),s.revokeObjectURL(o);try{return _.setCache("simplifiedImageExport",!0),[2,!0]}catch{return _.setCache("simplifiedImageExport",!1),[2,!1]}return[3,7];case 6:return h=p.sent(),_.setCache("simplifiedImageExport",!1),[2,!1];case 7:return[2]}})})},i.prototype.loadNewImage=function(e,t,r,s){return new Promise(function(n,o){var l;t&&r?l=new Image(t,r):l=new Image,s&&l.setAttribute("crossOrigin",s),l.onload=function(){n(l)};function u(){if(s){var h=l.src;l.onerror=function(){o(new Error('Loading image "'+e+'" failed'))},l.removeAttribute("crossorigin"),l.src="",l.src=h}else o(new Error('Loading image "'+e+'" failed'))}l.onabort=u,l.onerror=u,l.src=e})},i.prototype.getDOMURL=function(){return self.URL||self.webkitURL||self},i.prototype.getSVG=function(e,t,r){return r===void 0&&(r=!0),Xe(this,void 0,void 0,function(){var s,n,o,l,u,h,p,d,c,f;return Ae(this,function(y){switch(y.label){case 0:return s=this._objectsAlreadyHidden,s||this.hideNonExportableSprites(),$(t)||(t=this.getFormatOptions("svg")),[4,this.awaitValidSprites()];case 1:return y.sent(),n=this.sprite.pixelWidth,o=this.sprite.pixelHeight,l=Jn(this.sprite.dom),u=eo(this.sprite.dom),h=t.scale||1,p=this.getPixelRatio(t),h=this.getAdjustedScale(n*p,o*p,h,t),d=this.normalizeSVG(this.serializeElement(this.sprite.paper.defs)+this.serializeElement(this.sprite.dom),t,n,o,h,l,u),c=this.adapter.apply("charset",{charset:"charset=utf-8",type:"svg",options:t}).charset,f=this.adapter.apply("getSVG",{data:r?"data:"+this.getContentType(e)+";"+c+","+encodeURIComponent(d):d,options:t}).data,s||this.restoreNonExportableSprites(),[2,f]}})})},i.prototype.normalizeSVG=function(e,t,r,s,n,o,l,u){var h="";r&&(h+='width="'+Math.round(r*(n||1))+'px" '),s&&(h+='height="'+Math.round(s*(n||1))+'px" ');var p="";o&&(p+="font-family: "+o.replace(/"/g,"")+";"),l&&(p+="font-size: "+l+";"),n&&(h+='viewBox="0 0 '+r+" "+s+'" ');var d=[],c=e.match(/<foreignObject[\s\S]*<\/foreignObject>/gi);if(c)for(var f=0;f<c.length;f++)e=e.replace(c[f],jt),d.push(c[f]);e.match(/<svg/)?h!==""&&(e=e.replace(/(<svg[^>]*)width="[^"]*"/,"$1"),e=e.replace(/(<svg[^>]*)height="[^"]*"/,"$1"),e=e.replace(/(<svg)/,"$1"+h)):e='<?xml version="1.0" encoding="utf-8"?><svg '+h+' style="'+p+'" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">'+e+"</svg>",u&&(e=e.replace(/(<svg[^>]*>)/,'$1<rect width="100%" height="100%" fill="'+u.rgba+'"/>')),kf()&&(e=e.replace(/<feColorMatrix [^\/>]*\/>/gi,""));var y=new RegExp("url\\("+Ys(ha()),"g");if(e=e.replace(y,"url(#"),e=e.replace(/url\("([^)]*)"\)/gm,"url($1)"),d.length)for(var f=0;f<d.length;f++)e=e.replace(jt,d[f]);return e=this.adapter.apply("normalizeSVG",{data:e,options:t}).data,e},i.prototype.serializeElement=function(e){return new XMLSerializer().serializeToString(e)},i.prototype.getPDF=function(e,t){return Xe(this,void 0,void 0,function(){function r(g){var v={};v.normal=g.normal.path,y[g.normal.path]=g.normal.bytes,g.bold?(v.bold=g.bold.path,y[g.bold.path]=g.bold.bytes):v.bold=g.normal.path,g.italics?(v.italics=g.italics.path,y[g.italics.path]=g.italics.bytes):v.italics=g.normal.path,g.bolditalics?(v.bolditalics=g.bolditalics.path,y[g.bolditalics.path]=g.bolditalics.bytes):v.bolditalics=g.normal.path,f[g.name]=v}var s,n,o,l,u,h,p,d,c,f,y;return Ae(this,function(g){switch(g.label){case 0:return[4,this.getImage(t.imageFormat||"png",t)];case 1:return s=g.sent(),[4,this.pdfmake];case 2:return n=g.sent(),o=[30,30,30,30],l={pageSize:t.pageSize||"A4",pageOrientation:t.pageOrientation||"portrait",pageMargins:t.pageMargins||o,defaultStyle:{font:t.font?t.font.name:void 0},content:[]},u=this.adapter.apply("title",{title:this.title,options:t}).title,h=0,u&&(l.content.push({text:u,fontSize:t.fontSize||14,bold:!0,margin:[0,0,0,15]}),h+=50),t.addURL&&(l.content.push({text:this.language.translate("Saved from")+": "+document.location.href,fontSize:t.fontSize,margin:[0,0,0,15]}),h+=50),e!="pdfdata"&&l.content.push({image:s,alignment:t.align||"left",fit:this.getPageSizeFit(l.pageSize,l.pageMargins,h)}),e=="pdfdata"||t.addData?(d=(p=l.content).push,c={},[4,this.getPDFData("pdf",t)]):[3,4];case 3:d.apply(p,[(c.table=g.sent(),c.fontSize=t.fontSize||14,c)]),g.label=4;case 4:return l=this.adapter.apply("pdfmakeDocument",{doc:l,options:t}).doc,f=null,y=null,t.font&&(f={},y={},r(t.font),t.extraFonts&&M(t.extraFonts,r)),[4,new Promise(function(v,x){n.createPdf(l,null,f,y).getDataUrl(function(P){v(P)})})];case 5:return[2,g.sent()]}})})},i.prototype.getPDFData=function(e,t){return Xe(this,void 0,void 0,function(){var r,s,n,o,l,u,h=this;return Ae(this,function(p){if(r={body:[]},s=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"pdf"}).dataFields,n=this.data,t.pivot)o=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder,Ji(s,function(d,c){var f=[];t.addColumnNames&&f.push(c);for(var y=n.length,g=0;g<y;g++){var v=n[g][d];f.push(h.convertToSpecialFormat(d,v,t,!0))}r.body.push(h.getPDFDataRow(f,t,void 0,!0))},function(d,c){var f=o.indexOf(d),y=o.indexOf(c);return f>y?1:f<y?-1:0});else for(t.addColumnNames&&(r.body.push(this.getPDFDataRow(s,t,void 0,!0)),r.headerRows=1),l=n.length,u=0;u<l;u++)r.body.push(this.getPDFDataRow(n[u],t,s));return[2,this.adapter.apply("pdfmakeTable",{table:r,options:t}).table]})})},i.prototype.getPDFDataRow=function(e,t,r,s){var n=this;s===void 0&&(s=!1);var o=[];r||(r=e);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"pdfdata"}).dataFieldsOrder;return Ji(r,function(u,h){var p=n.convertEmptyValue(u,e[u],t),d=s?p:n.convertToSpecialFormat(u,p,t);d=""+d,o.push(d)},function(u,h){var p=l.indexOf(u),d=l.indexOf(h);return p>d?1:p<d?-1:0}),o},i.prototype.getPageSizeFit=function(e,t,r){r===void 0&&(r=0);var s=[0,0,0,0];typeof t=="number"?s=[t,t,t,t]:t.length==2?s=[t[0],t[1],t[0],t[1]]:t.length==4&&(s=t);var n={"4A0":[4767.87,6740.79],"2A0":[3370.39,4767.87],A0:[2383.94,3370.39],A1:[1683.78,2383.94],A2:[1190.55,1683.78],A3:[841.89,1190.55],A4:[595.28,841.89],A5:[419.53,595.28],A6:[297.64,419.53],A7:[209.76,297.64],A8:[147.4,209.76],A9:[104.88,147.4],A10:[73.7,104.88],B0:[2834.65,4008.19],B1:[2004.09,2834.65],B2:[1417.32,2004.09],B3:[1000.63,1417.32],B4:[708.66,1000.63],B5:[498.9,708.66],B6:[354.33,498.9],B7:[249.45,354.33],B8:[175.75,249.45],B9:[124.72,175.75],B10:[87.87,124.72],C0:[2599.37,3676.54],C1:[1836.85,2599.37],C2:[1298.27,1836.85],C3:[918.43,1298.27],C4:[649.13,918.43],C5:[459.21,649.13],C6:[323.15,459.21],C7:[229.61,323.15],C8:[161.57,229.61],C9:[113.39,161.57],C10:[79.37,113.39],RA0:[2437.8,3458.27],RA1:[1729.13,2437.8],RA2:[1218.9,1729.13],RA3:[864.57,1218.9],RA4:[609.45,864.57],SRA0:[2551.18,3628.35],SRA1:[1814.17,2551.18],SRA2:[1275.59,1814.17],SRA3:[907.09,1275.59],SRA4:[637.8,907.09],EXECUTIVE:[521.86,756],FOLIO:[612,936],LEGAL:[612,1008],LETTER:[612,792],TABLOID:[792,1224]},o=n[e];return o[0]-=s[0]+s[2],o[1]-=s[1]+s[3]+r,o},i.prototype.getExcel=function(e,t){return Xe(this,void 0,void 0,function(){var r,s,n,o,l,u,h,p,d,c,f=this;return Ae(this,function(y){switch(y.label){case 0:return $(t)||(t=this.getFormatOptions("xlsx")),[4,this.xlsx];case 1:if(r=y.sent(),s=this.adapter.apply("xlsxWorkbookOptions",{xlsx:r,options:{bookType:"xlsx",bookSST:!1,type:"base64"}}).options,n=this.normalizeExcelSheetName(this.adapter.apply("xlsxSheetName",{xlsx:r,name:this.title||this.language.translate("Data")}).name),o={SheetNames:[n],Sheets:{}},l=[],u=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"xslx"}).dataFields,t.pivot)h=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder,Ji(u,function(g,v){var x=[];t.addColumnNames&&x.push(v);for(var P=f.data.length,T=0;T<P;T++){var C=f.data[T][g];x.push(f.convertToSpecialFormat(g,C,t,!0))}l.push(f.getExcelRow(x,t,void 0,!0))},function(g,v){var x=h.indexOf(g),P=h.indexOf(v);return x>P?1:x<P?-1:0});else for(t.addColumnNames&&l.push(this.getExcelRow(u,t,void 0,!0)),p=this.data.length,d=0;d<p;d++)l.push(this.getExcelRow(this.data[d],t,u));return o.Sheets[n]=r.utils.aoa_to_sheet(l),o=this.adapter.apply("xlsxWorkbook",{xlsx:r,workbook:o,options:t}).workbook,c=this.adapter.apply("getExcel",{data:"data:"+this.getContentType(e)+";base64,"+r.write(o,s),options:t}).data,[2,c]}})})},i.prototype.normalizeExcelSheetName=function(e){return e=e.replace(/([:\\\/?*\[\]]+)/g," "),Gs(e,31,"...",!0)},i.prototype.getExcelRow=function(e,t,r,s){var n=this;s===void 0&&(s=!1);var o=[];r||(r=e);var l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"xlsx"}).dataFieldsOrder;return Ji(r,function(u,h){var p=n.convertEmptyValue(u,e[u],t),d=s?p:n.convertToSpecialFormat(u,p,t,!0);o.push(d)},function(u,h){var p=l.indexOf(u),d=l.indexOf(h);return p>d?1:p<d?-1:0}),o},i.prototype.getCSV=function(e,t,r){return r===void 0&&(r=!0),Xe(this,void 0,void 0,function(){var s,n,o,l,u,h,p,d,c,f,y=this;return Ae(this,function(g){if($(t)||(t=this.getFormatOptions("csv")),s="",n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"csv"}).dataFields,o="",l=this.data,t.pivot)u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder,Ji(n,function(v,x){var P=[];t.addColumnNames&&P.push(x);for(var T=l.length,C=0;C<T;C++){var O=l[C][v];P.push(y.convertToSpecialFormat(v,O,t,!0))}s+=o+y.getCSVRow(P,t,void 0,!0),o=`
|
|
6
|
-
`},function(v,x){var P=u.indexOf(v),T=u.indexOf(x);return P>T?-1:P<T?1:0});else{for(h=l.length,p=0;p<h;p++)d=this.getCSVRow(l[p],t,n),t.reverse?s=d+o+s:s+=o+d,o=`
|
|
7
|
-
`;t.addColumnNames&&(s=this.getCSVRow(n,t,void 0,!0)+o+s)}return c=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:t}).charset,f=this.adapter.apply("getCSV",{data:r?"data:"+this.getContentType(e)+";"+c+","+encodeURIComponent(s):s,options:t}).data,[2,f]})})},i.prototype.getCSVRow=function(e,t,r,s){var n=this;s===void 0&&(s=!1);var o=t.separator||",",l=[];r||(r=e);var u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"csv"}).dataFieldsOrder;return Ji(r,function(h,p){var d=n.convertEmptyValue(h,e[h],t),c=s?d:n.convertToSpecialFormat(h,d,t);c=""+c,c=c.replace(/"/g,'""'),(t.forceQuotes||c.search(new RegExp(`"|
|
|
8
|
-
|`+o,"g"))>=0)&&(c='"'+c+'"'),l.push(c)},function(h,p){var d=u.indexOf(h),c=u.indexOf(p);return d>c?1:d<c?-1:0}),l.join(o)},i.prototype.getHTML=function(e,t,r){return r===void 0&&(r=!0),Xe(this,void 0,void 0,function(){var s,n,o,l,u,h,p,d,c=this;return Ae(this,function(f){if($(t)||(t=this.getFormatOptions("html")),s="<table>",t.tableClass&&(s='<table class="'+t.tableClass+'">'),n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"html"}).dataFields,o=this.data,t.pivot)l=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,s+=`
|
|
9
|
-
<tbody>`,Ji(n,function(y,g){var v=[];t.addColumnNames&&v.push(g);for(var x=o.length,P=0;P<x;P++){var T=o[P][y];v.push(c.convertToSpecialFormat(y,T,t,!0))}s+=`
|
|
10
|
-
`+c.getHTMLRow(v,t,void 0,!0)},function(y,g){var v=l.indexOf(y),x=l.indexOf(g);return v>x?-1:v<x?1:0}),s+=`
|
|
11
|
-
</tbody>`;else{for(t.addColumnNames&&(s+=`
|
|
12
|
-
<thead>
|
|
13
|
-
`+this.getHTMLRow(n,t,void 0,!0,!0)+`
|
|
14
|
-
</thead>`),s+=`
|
|
15
|
-
<tbody>`,u=o.length,h=0;h<u;h++)s+=`
|
|
16
|
-
`+this.getHTMLRow(o[h],t,n);s+=`
|
|
17
|
-
</tbody>`}return s+=`
|
|
18
|
-
</table>`,p=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:t}).charset,d=this.adapter.apply("getHTML",{data:r?"data:"+this.getContentType(e)+";"+p+","+encodeURIComponent(s):s,options:t}).data,[2,d]})})},i.prototype.getHTMLRow=function(e,t,r,s,n){var o=this;s===void 0&&(s=!1),n===void 0&&(n=!1);var l=" <tr>";t.rowClass&&(l=' <tr class="'+t.rowClass+'">'),r||(r=e);var u=this.adapter.apply("dataFieldsOrder",{dataFieldsOrder:this.dataFieldsOrder,format:"html"}).dataFieldsOrder,h=n?"th":"td",p=!0;return Ji(r,function(d,c){var f=o.convertEmptyValue(d,e[d],t),y=s?f:o.convertToSpecialFormat(d,f,t);y=""+y,y=y.replace(/[\u00A0-\u9999<>\&]/gim,function(v){return"&#"+v.charCodeAt(0)+";"});var g=h;t.pivot&&p&&(g="th"),t.cellClass?l+=`
|
|
19
|
-
<`+g+' class="'+t.cellClass+'">'+y+"</"+g+">":l+=`
|
|
20
|
-
<`+g+">"+y+"</"+g+">",p=!1},function(d,c){var f=u.indexOf(d),y=u.indexOf(c);return f>y?1:f<y?-1:0}),l+=`
|
|
21
|
-
</tr>`,l},i.prototype.getJSON=function(e,t,r){return r===void 0&&(r=!0),Xe(this,void 0,void 0,function(){var s,n,o,l,u,h,p,d,c,f=this;return Ae(this,function(y){if($(t)||(t=this.getFormatOptions("json")),n=this.adapter.apply("formatDataFields",{dataFields:this.dataFields,format:"json"}).dataFields,this._dynamicDataFields)s=this.data;else for(s=[],o=this.data,l=function(g,v){var x=o[v];if(typeof x=="object"){var P={};q(x,function(T,C){$(n[T])&&(P[n[T]]=f.convertToSpecialFormat(T,C,t))}),s.push(P)}},u=o.length,h=0;h<u;h++)l(u,h);return p=JSON.stringify(s,function(g,v){return typeof v=="object"&&q(v,function(x,P){v[x]=f.convertToSpecialFormat(x,P,t)}),v},t.indent),d=this.adapter.apply("charset",{charset:"charset=utf-8",type:e,options:t}).charset,c=this.adapter.apply("getJSON",{data:r?"data:"+this.getContentType(e)+";"+d+","+encodeURIComponent(p):p,options:t}).data,[2,c]})})},i.prototype.convertToSpecialFormat=function(e,t,r,s){if(typeof t=="number")if(this.isDateField(e))t=new Date(t);else{if(this.isDurationField(e))return this.durationFormatter.format(t,this.durationFormat);if(this.isNumberField(e)&&this.numberFormat)return this.numberFormatter.format(t,this.numberFormat)}return t instanceof Date?r.useTimestamps?t=t.getTime():r.useLocale?s||(t=t.toLocaleString()):t=this.dateFormatter.format(t,this.dateFormat):se(t)&&this.isDateField(e)&&this.dateFormat&&(t=this.dateFormatter.format(this.dateFormatter.parse(t),this.dateFormat)),t},i.prototype.convertEmptyValue=function(e,t,r){return $(t)?t:r.emptyAs},i.prototype.download=function(e,t,r){return r===void 0&&(r=!1),Xe(this,void 0,void 0,function(){var g,v,o,s,h,p,d,c,n,g,v,o,l,u,h,p,d,c,f,y,g,v,x,P;return Ae(this,function(T){if(this.msBlobDownloadSupport()){if(g=e.split(";"),v=g.shift().replace(/data:/,""),e=decodeURIComponent(g.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv"].indexOf(v)==-1)try{o=atob(e),e=o}catch{return[2,!1]}else return s=new Blob([e],{type:v}),window.navigator.msSaveBlob(s,t),[2,!0];for(h=new Array(e.length),p=0;p<e.length;++p)d=e.charCodeAt(p),h[p]=d;c=new Blob([new Uint8Array(h)],{type:v}),window.navigator.msSaveBlob(c,t)}else if(this.blobDownloadSupport()){if(n=document.createElement("a"),n.download=t,document.body.appendChild(n),g=e.split(";"),v=g.shift().replace(/data:/,""),e=decodeURIComponent(g.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(v)==-1)try{o=atob(e),e=o}catch{return[2,!1]}else return r&&(e="\uFEFF"+e),l=new Blob([e],{type:v}),u=window.URL.createObjectURL(l),n.href=u,n.download=t,n.click(),setTimeout(function(){document.body.removeChild(n),window.URL.revokeObjectURL(u)},100),[2,!0];for(h=new Array(e.length),p=0;p<e.length;++p)d=e.charCodeAt(p),h[p]=d;r&&(h=[239,187,191].concat(h)),c=new Blob([new Uint8Array(h)],{type:v}),f=window.URL.createObjectURL(c),n.href=f,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),setTimeout(function(){window.URL.revokeObjectURL(f)},100)}else this.linkDownloadSupport()?(y=document.createElement("a"),y.download=t,y.href=e,document.body.appendChild(y),y.click(),document.body.removeChild(y)):this.legacyIE()?(g=e.match(/^data:(.*);[ ]*([^,]*),(.*)$/),g.length===4&&(g[2]=="base64"?g[1].match(/^image\//)&&this.showModal('<img src="'+e+'" style="float: left; max-width: 50%; max-height: 80%; margin: 0 1em 0.5em 0; border: 1px solid #eee;" /><p>'+this.language.translate('To save the image, right-click thumbnail on the left and choose "Save picture as..."')+'</p><p style="text-align: center;"><small>'+this.language.translate("(Press ESC to close this message)")+"</small></p>",this.language.translate("Image Export Complete")):(v=void 0,t.match(/\.svg$/)?v="image/svg+xml":(v="text/plain",t+=".txt"),x=document.createElement("iframe"),x.width="1px",x.height="1px",x.style.display="none",document.body.appendChild(x),P=x.contentDocument,P.open(v,"replace"),P.write(decodeURIComponent(g[3])),P.close(),P.execCommand("SaveAs",!0,t),document.body.removeChild(x)))):window.location.href=e;return[2,!0]})})},i.prototype.downloadSupport=function(){return this.linkDownloadSupport()||this.msBlobDownloadSupport()},i.prototype.linkDownloadSupport=function(){var e=_.getCache("linkDownloadSupport");if(e===!1||e===!0)return e;var t=document.createElement("a"),r=typeof t.download<"u";return _.setCache("linkDownloadSupport",r),r},i.prototype.blobDownloadSupport=function(){return $(window.Blob)},i.prototype.msBlobDownloadSupport=function(){return $(window.navigator.msSaveOrOpenBlob)},i.prototype.legacyIE=function(){var e=document.createElement("div");return e.innerHTML="<!--[if lt IE 10]><i></i><![endif]-->",e.getElementsByTagName("i").length==1},i.prototype.print=function(e,t,r){return Xe(this,void 0,void 0,function(){return Ae(this,function(s){return t.printMethod=="css"?[2,this.printViaCSS(e,t,r)]:[2,this.printViaIframe(e,t,r)]})})},i.prototype.printViaCSS=function(e,t,r){return Xe(this,void 0,void 0,function(){var s,n,o,l,u;return Ae(this,function(h){return s=document.documentElement.scrollTop||document.body.scrollTop,n=new Ne(rn(this.container),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"}),r&&document&&document.title&&(o=document.title,document.title=r),l=new Image,l.src=e,l.style.maxWidth="100%",l.style.display="block",l.style.position="relative",l.style.visibility="visible",l.style.opacity="1",l.style.clipPath="none",document.body.appendChild(l),this.setTimeout(function(){window.print()},50),u=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,u&&t.delay<1e3?t.delay=1e3:t.delay<100&&(t.delay=100),this.setTimeout(function(){document.body.removeChild(l),n.dispose(),o&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=s},t.delay||500),[2,!0]})})},i.prototype.printViaIframe=function(e,t,r){return Xe(this,void 0,void 0,function(){var s,n,o;return Ae(this,function(l){return s=document.createElement("iframe"),s.style.visibility="hidden",document.body.appendChild(s),s.contentWindow.document.open(),s.contentWindow.document.close(),n=new Image,n.src=e,n.style.maxWidth="100%",n.style.height="auto",r&&(s.contentWindow.document.title=r),s.contentWindow.document.body.appendChild(n),s.load=function(){s.contentWindow.document.body.appendChild(n)},this.setTimeout(function(){try{s.contentWindow.document.execCommand("print",!1,null)||s.contentWindow.print()}catch{s.contentWindow.print()}},t.delay||50),o=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,o&&t.delay<1e3?t.delay=1e3:t.delay<100&&(t.delay=100),this.setTimeout(function(){document.body.removeChild(s)},t.delay+50||100),[2,!0]})})},i.prototype.findBackgroundColor=function(e){var t=1,r=Rl(e,"background-color");if((r.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||r=="transparent")&&(t=0),t==0){var s=e.parentElement;return s?this.findBackgroundColor(s):Z("#fff")}else return Z(r,t)},Object.defineProperty(i.prototype,"container",{get:function(){return this.adapter.apply("container",{container:this._container}).container},set:function(e){this._container=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{get:function(){return this.adapter.apply("sprite",{sprite:this._sprite}).sprite},set:function(e){this._sprite=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraSprites",{get:function(){return this.adapter.apply("extraSprites",{extraSprites:this._extraSprites}).extraSprites},set:function(e){this._extraSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"validateSprites",{get:function(){return this.adapter.apply("validateSprites",{validateSprites:this._validateSprites}).validateSprites},set:function(e){this._validateSprites=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"data",{get:function(){return this.adapter.apply("data",{data:this._data}).data},set:function(e){this._data=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataFields",{get:function(){return this._dataFields||this.generateDataFields(),this.adapter.apply("dataFields",{dataFields:this._dataFields}).dataFields},set:function(e){this._dataFields=e,this._dynamicDataFields=!1},enumerable:!0,configurable:!0}),i.prototype.handleDataUpdated=function(){this._dynamicDataFields&&(this._dataFields=void 0);var e=this.data.length>0;this._prevHasData!=e&&(this._prevHasData=e,this.menu&&this.menu.invalidate())},Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter||(this._dateFormatter=new Ii,this._dateFormatter.language=this.language),this.adapter.apply("dateFormatter",{dateFormatter:this._dateFormatter}).dateFormatter},set:function(e){this._dateFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormat",{get:function(){return this.adapter.apply("dateFormat",{dateFormat:this._dateFormat}).dateFormat},set:function(e){this._dateFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFields",{get:function(){return this._dateFields||(this._dateFields=new he),this.adapter.apply("dateFields",{dateFields:this._dateFields}).dateFields},set:function(e){this._dateFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter||(this._numberFormatter=new Xr,this._numberFormatter.language=this.language),this.adapter.apply("numberFormatter",{numberFormatter:this._numberFormatter}).numberFormatter},set:function(e){this._numberFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormat",{get:function(){return this.adapter.apply("numberFormat",{numberFormat:this._numberFormat}).numberFormat},set:function(e){this._numberFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFields",{get:function(){return this._numberFields||(this._numberFields=new he),this.adapter.apply("numberFields",{numberFields:this._numberFields}).numberFields},set:function(e){this._numberFields=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter||(this._durationFormatter=new nn,this._durationFormatter.language=this.language),this.adapter.apply("durationFormatter",{durationFormatter:this._durationFormatter}).durationFormatter},set:function(e){this._durationFormatter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormat",{get:function(){return this.adapter.apply("durationFormat",{durationFormat:this._durationFormat}).durationFormat},set:function(e){this._durationFormat=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFields",{get:function(){return this._durationFields||(this._durationFields=new he),this.adapter.apply("durationFields",{durationFields:this._durationFields}).durationFields},set:function(e){this._durationFields=e},enumerable:!0,configurable:!0}),i.prototype.generateDataFields=function(){var e=this;this._dataFields={},this.data.length&&M(this.data,function(t){q(t,function(r,s){$(e._dataFields[r])||(e._dataFields[r]=e.adapter.apply("dataFieldName",{name:r,field:r}).name)})})},i.prototype.isDateField=function(e){return this.adapter.apply("isDateField",{isDateField:this.dateFields.contains(e),field:e}).isDateField},i.prototype.isNumberField=function(e){return this.adapter.apply("isNumberField",{isNumberField:this.numberFields.contains(e),field:e}).isNumberField},i.prototype.isDurationField=function(e){return this.adapter.apply("isDurationField",{isDurationField:this.durationFields.contains(e),field:e}).isDurationField},i.prototype.getContentType=function(e){var t="";switch(e){case"png":case"gif":t="image/"+e;break;case"jpg":t="image/jpeg";break;case"svg":t="image/svg+xml";break;case"csv":t="text/csv";break;case"json":t="application/json";break;case"html":t="text/html";break;case"pdf":case"pdfdata":t="application/pdf";break;case"xlsx":t="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";break}return this.adapter.apply("contentType",{contentType:t,type:e}).contentType},Object.defineProperty(i.prototype,"filePrefix",{get:function(){return this.adapter.apply("filePrefix",{filePrefix:this._filePrefix}).filePrefix},set:function(e){this._filePrefix=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"backgroundColor",{get:function(){return this.adapter.apply("backgroundColor",{backgroundColor:this._backgroundColor}).backgroundColor},set:function(e){this._backgroundColor=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"title",{get:function(){return this.adapter.apply("title",{title:this._title}).title},set:function(e){this._title=e},enumerable:!0,configurable:!0}),i.prototype.showPreloader=function(){var e=this.preloader;e&&(e.progress=.5,e.label.text="...")},i.prototype.hidePreloader=function(){var e=this.preloader;e&&(e.progress=1)},Object.defineProperty(i.prototype,"preloader",{get:function(){return this._sprite&&this._sprite.parent&&this._sprite.parent.preloader?this._sprite.parent.preloader:void 0},enumerable:!0,configurable:!0}),i.prototype.showTimeout=function(){this.showModal(this.adapter.apply("timeoutMessage",{message:this.language.translate("Export operation took longer than expected. Something might have gone wrong.")}).message)},i.prototype.hideTimeout=function(){this._timeoutTimeout&&(this.removeDispose(this._timeoutTimeout),this._timeoutTimeout=null),this.hideModal()},Object.defineProperty(i.prototype,"language",{get:function(){return this._language||(this._language=new ni),this._language},set:function(e){this._language=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"modal",{get:function(){return this._modal||(this._modal=new ao,this._modal.adapter.add("classPrefix",function(e){return e=ue.classNamePrefix+e,e})),this._modal},enumerable:!0,configurable:!0}),i.prototype.showModal=function(e,t){this.hideModal(),this.hidePreloader();var r=this.modal;r.container=this.sprite.svgContainer.SVGContainer,r.content=e,r.readerTitle=t,r.open()},i.prototype.hideModal=function(){this._modal&&this.modal.close()},i.prototype._canvg=function(){return Xe(this,void 0,void 0,function(){var e;return Ae(this,function(t){switch(t.label){case 0:return[4,import("./SXJYUHC3.js")];case 1:return e=t.sent(),e.default!=null?[2,e.default]:[2,e]}})})},Object.defineProperty(i.prototype,"canvg",{get:function(){return this._canvg()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pdfmake",{get:function(){return Cp==null&&(Cp=hv()),Cp},enumerable:!0,configurable:!0}),i.prototype._xlsx=function(){return Xe(this,void 0,void 0,function(){return Ae(this,function(e){switch(e.label){case 0:return[4,import("./KZ37E2J3.js")];case 1:return[2,e.sent()]}})})},Object.defineProperty(i.prototype,"xlsx",{get:function(){return this._xlsx()},enumerable:!0,configurable:!0}),i.prototype.setFormatOptions=function(e,t){this._formatOptions.setKey(e,t)},i.prototype.getFormatOptions=function(e){return this._formatOptions.getKey(e)},Object.defineProperty(i.prototype,"formatOptions",{get:function(){return this._formatOptions},enumerable:!0,configurable:!0}),i.prototype._disablePointers=function(){$(this._spriteInteractionsEnabled)||(this._spriteInteractionsEnabled=this.sprite.interactionsEnabled),this.sprite.interactionsEnabled=!1},i.prototype._releasePointers=function(){$(this._spriteInteractionsEnabled)&&!this._exportRunning&&(this.sprite.interactionsEnabled=this._spriteInteractionsEnabled)},i.prototype.hideNonExportableSprites=function(){var e=this;if(!this._objectsAlreadyHidden){var t=this.sprite.svgContainer;t&&M(t.nonExportableSprites,function(r){!r.isHidden&&!r.isHiding&&r.visible&&e._hiddenObjects.push(r),r.hide(0)}),this._objectsAlreadyHidden=!0}},i.prototype.restoreNonExportableSprites=function(){this._objectsAlreadyHidden&&(M(this._hiddenObjects,function(e){e.show(0)}),this._hiddenObjects=[],this._objectsAlreadyHidden=!1)},i.prototype.awaitValidSprites=function(){return Xe(this,void 0,void 0,function(){var e;return Ae(this,function(t){switch(t.label){case 0:return e=[],this.validateSprites.length&&M(this.validateSprites,function(r,s){r.invalid&&e.push(new Promise(function(n,o){r.events.once("validated",function(l){n()})}))}),e.length?[4,Promise.all(e)]:[3,2];case 1:t.sent(),t.label=2;case 2:return[2]}})})},i.prototype.processConfig=function(e){_.registeredClasses.ExportMenu=Pp,e&&($(e.menu)&&!$(e.menu.type)&&(e.menu.type="ExportMenu"),$(e.dataFields)&&Fe(e.dataFields)&&(this.dataFields=e.dataFields,delete e.dataFields)),a.prototype.processConfig.call(this,e)},i.XLINK="http://www.w3.org/1999/xlink",i})(no);var He=["fill","fillOpacity","stroke","strokeOpacity","strokeWidth","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin"],U=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.properties={},e._eventDispatcher=new sp(e),e._bindings={},e._isTemplate=!1,e._isPath=!1,e._inited=!1,e._ready=!1,e.isHiding=!1,e._isHidden=!1,e.isShowing=!1,e.isStandaloneInstance=!1,e._isActive=!1,e._mask=new We,e._positionPrecision=3,e._language=new We,e._exporting=new We,e._exportable=!0,e._bbox={x:0,y:0,width:0,height:0},e.invalid=!1,e.positionInvalid=!1,e.propertyFields={},e.applyOnClones=!1,e._measuredWidthSelf=0,e._measuredHeightSelf=0,e.maxLeft=0,e.maxRight=0,e.maxTop=0,e.maxBottom=0,e.maxLeftSelf=0,e.maxRightSelf=0,e.maxTopSelf=0,e.maxBottomSelf=0,e._isDragged=!1,e._isResized=!1,e._disabled=!1,e._internalDisabled=!1,e._updateDisabled=!1,e._internalDefaultsApplied=!1,e.rollOutDelay=0,e.isBaseSprite=!1,e.shouldClone=!0,e.appeared=!1,e.ex=0,e.ey=0,e.dragWhileResize=!1,e.measureFailed=!1,e.preventShow=!1,e.cloneTooltip=!0,e.className="Sprite",e._disposers.push(e._eventDispatcher),e.uid,e.group=e.paper.addGroup("g"),e.setPropertyValue("scale",1),e.setPropertyValue("rotation",0),e.setPropertyValue("align","none"),e.setPropertyValue("valign","none"),e.setPropertyValue("pixelPerfect",!1),e.setPropertyValue("visible",!0),e.setPropertyValue("tooltipPosition","fixed"),e.setPropertyValue("verticalCenter","none"),e.setPropertyValue("horizontalCenter","none"),e.setPropertyValue("tooltipX",k(50)),e.setPropertyValue("tooltipX",k(50)),e.setPropertyValue("marginTop",0),e.setPropertyValue("marginBottom",0),e.setPropertyValue("marginLeft",0),e.setPropertyValue("marginRight",0),e.setPropertyValue("dx",0),e.setPropertyValue("dy",0),e.setPropertyValue("paddingTop",0),e.setPropertyValue("paddingBottom",0),e.setPropertyValue("paddingRight",0),e.setPropertyValue("paddingLeft",0),e.setPropertyValue("togglable",!1),e.setPropertyValue("hidden",!1),e.setPropertyValue("urlTarget","_self"),e.setPropertyValue("alwaysShowTooltip",!1),e.setPropertyValue("showTooltipOn","hover"),e._prevMeasuredWidth=0,e._prevMeasuredHeight=0,e._measuredWidth=0,e._measuredHeight=0,e._isMeasured=!0,e.invalidate(),e.applyTheme(),e._disposers.push(e.events),e._disposers.push(e.group),e._disposers.push(e._mask),e._disposers.push(e._language),e._disposers.push(e._exporting),e._disposers.push(new ye(function(){q(e._bindings,function(t,r){r.dispose()})})),e.setPropertyValue("interactionsEnabled",!0),e}return Object.defineProperty(i.prototype,"events",{get:function(){return this._eventDispatcher},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new ut(this)),this._adapterO},enumerable:!0,configurable:!0}),i.prototype.applyTheme=function(){a.prototype.applyTheme.call(this),ue.autoSetClassName&&this.setClassName()},i.prototype.getCurrentThemes=function(){var e=this._themes;if(e)return e;var t=this._parent;return t?t.getCurrentThemes():_.themes},i.prototype.applyInternalDefaults=function(){this._internalDefaultsApplied=!0},i.prototype.invalidate=function(){this.disabled||this._isTemplate||this.__disabled||this.invalid||(this.invalid=!0,_.addToInvalidSprites(this),me.requestFrame())},i.prototype.validate=function(){this.dispatchImmediately("beforevalidated"),this._internalDefaultsApplied||this.applyInternalDefaults(),this.beforeDraw(),this.draw(),this.invalid=!1,_.removeFromInvalidSprites(this),this.afterDraw()},i.prototype.invalidatePosition=function(){this.disabled||this._isTemplate||this.positionInvalid||(this.positionInvalid=!0,_.addToInvalidPositions(this),me.requestFrame())},i.prototype.validatePosition=function(){var e=this.pixelX,t=this.pixelY,r=this.dx,s=this.dy,n=e+r,o=t+s;this._updateDisabled&&(this._internalDisabled?this.group.attr({display:"none"}):this.disabled||this.removeSVGAttribute("display"),this._updateDisabled=!1);var l=this.measure(),u=this.group.transformString;this.group.moveTo({x:n,y:o}),this.group.rotation=this.rotation,this.nonScaling?this.group.scale=this.scale/this.globalScale:this.group.scale=this.scale,(u!=this.group.transformString||l)&&(u==null?this.dispatch("transformed"):this.dispatchImmediately("transformed"),this.dispatch("positionchanged"),(this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.updateTooltipPosition()),e+r==n&&t+s==o&&(_.removeFromInvalidPositions(this),this.positionInvalid=!1);var h=this._maskRectangle;h&&this._clipElement.moveTo({x:h.x-e,y:h.y-t})},i.prototype.beforeDraw=function(){},i.prototype.draw=function(){},i.prototype.afterDraw=function(){var e,t;if((this.isMeasured||this.horizontalCenter!=="none"||this.verticalCenter!=="none")&&this.measureElement(),this._inited)this.dispatch("validated");else{if(this._adapterO)try{for(var r=Ra(this._adapterO.keys()),s=r.next();!s.done;s=r.next()){var n=s.value;switch(n){case"mask":case"fill":case"opacity":case"fillOpacity":case"stroke":case"strokeOpacity":case"strokeWidth":case"shapeRendering":case"strokeDasharray":case"strokeDashoffset":case"strokeLinecap":case"strokeLinejoin":case"textDecoration":case"fontSize":case"fontFamily":case"fontWeight":this[n]=this[n];break}}}catch(o){e={error:o}}finally{try{s&&!s.done&&(t=r.return)&&t.call(r)}finally{if(e)throw e.error}}this.applyFilters(),this.visible=this.visible,this.interactionsEnabled=this.getPropertyValue("interactionsEnabled"),this._inited=!0,this.showOnInit||(this.appeared=!0),this.hidden&&this.hide(0),this.applyMask(),this.dispatch("validated"),this.dispatch("inited"),this.dispatchReady()}this.showTooltipOn=="always"&&(this.visible&&!this.disabled&&!this.__disabled?this.showTooltip():this.hideTooltip(0))},i.prototype.dispatchReady=function(){this.isReady()||(this._ready=!0,this.dispatch("ready"))},i.prototype.reinit=function(){this._inited=!1,this.setState(this.defaultState),this.invalidate()},i.prototype.handleGlobalScale=function(){this.dispatch("globalscalechanged"),this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth),this.nonScaling&&this.validatePosition(),this.updateFilterScale()},i.prototype.updateFilterScale=function(){var e=this;V(this.filters.iterator(),function(t){t.scale=e.globalScale})},i.prototype.removeFromInvalids=function(){_.removeFromInvalidSprites(this),_.removeFromInvalidPositions(this)},i.prototype.copyFrom=function(e){var t=this;a.prototype.copyFrom.call(this,e),this.isMeasured=e.isMeasured,this.states.copyFrom(e.states),e.filters.length>0&&e.filters.each(function(r){t.filters.push(r.clone())}),e._adapterO&&this.adapter.copyFrom(e._adapterO),e._interaction&&this.interactions.copyFrom(e.interactions),e._plugins&&this.plugins.copyFrom(e.plugins),this.configField=e.configField,this.applyOnClones=e.applyOnClones,this.disabled=e.disabled,this.virtualParent=e.virtualParent,this.exportable=e.exportable,e._tooltip&&(this._tooltip?this._tooltip.copyFrom(e.tooltip):e.cloneTooltip?this.tooltip=e.tooltip.clone():this._tooltip=e.tooltip),this._showSystemTooltip=e.showSystemTooltip,ai(e.propertyFields,this.propertyFields),ai(e.properties,this),e.fillModifier&&(this.fillModifier=e.fillModifier.clone()),e.strokeModifier&&(this.strokeModifier=e.strokeModifier.clone()),e.focusFilter&&(this.focusFilter=e.focusFilter.clone())},i.prototype.dispose=function(){if(!this.isDisposed()){if(this.showTooltipOn=="always"&&this.tooltip&&this.tooltip.hide(),this.dispatchImmediately("beforedisposed"),this.isBaseSprite){if(this.htmlContainer)for(;this.htmlContainer.childNodes.length>0;)this.htmlContainer.removeChild(this.htmlContainer.firstChild);this.isBaseSprite=!1}if(a.prototype.dispose.call(this),this._adapterO&&this._adapterO.clear(),this.applyOnClones&&this._clones)for(var e=this._clones.length-1;e>=0;e--){var t=this._clones.getIndex(e);t.dispose()}this._svgContainer&&this._svgContainer.dispose(),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0),this._urlDisposer&&this._urlDisposer.dispose(),this.removeFromInvalids(),this.element&&this.element.dispose(),this.group&&this.group.dispose(),this._numberFormatter&&this._numberFormatter.dispose(),this._focusFilter&&this._focusFilter.dispose();var r=this.stroke;r&&!(r instanceof de)&&r.dispose&&(this.clonedFrom&&this.clonedFrom.stroke==r||r.dispose());var s=this.fill;if(s&&!(s instanceof de)&&s.dispose&&(this.clonedFrom&&this.clonedFrom.fill==s||s.dispose()),$(this.id)&&this.map.removeKey(this.id),this.parent=void 0,this._filters)for(;this._filters.length>0;){var n=this._filters.getIndex(0);n.dispose(),this._filters.removeValue(n)}this._alwaysShowDisposers=void 0}},Object.defineProperty(i.prototype,"isTemplate",{get:function(){return this._isTemplate},set:function(e){e=Ue(e),this._isTemplate!=e&&(this._isTemplate=e,this instanceof Y&&V(this.children.iterator(),function(t){t.isTemplate=e}),e?(this.parent=this._parent,this.removeFromInvalids()):this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showSystemTooltip",{get:function(){return $(this._showSystemTooltip)?this._showSystemTooltip:this.virtualParent?this.virtualParent.showSystemTooltip:this._parent?this._parent.showSystemTooltip:!1},set:function(e){e=Ue(e),this._showSystemTooltip!=e&&(this._showSystemTooltip=e,this.applyAccessibility())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topParent",{get:function(){if(this._topParent)return this._topParent;if(this._parent)return this._parent.topParent},set:function(e){this._topParent=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parent",{get:function(){return this._parent},set:function(e){if(!this._isTemplate){this.paper;var t=this._parent;t!=e&&(t&&t.children.removeValue(this),this._parent=e,e?(this.topParent=e.topParent,e.isTemplate&&(this.isTemplate=!0),this.baseId=e.baseId,e.children.push(this),this._tooltip&&!this._tooltipContainer&&(this._tooltip.parent=e.tooltipContainer),this._dataItem||(this.dataItem=e.dataItem),this.handleAlwaysShowTooltip(),this.dataItem&&this.applyAccessibility(),this.dispatchImmediately("parentset")):this.topParent=void 0)}},enumerable:!0,configurable:!0}),i.prototype.handleAlwaysShow=function(){this.showTooltip()},i.prototype.handleAlwaysShowTooltip=function(){var e=this,t=this._alwaysShowDisposers;if(t&&M(t,function(s){s.dispose()}),this._alwaysShowDisposers=[],this.showTooltipOn=="always")for(;e!=null;){var r=e.events.on("visibilitychanged",this.handleAlwaysShow,this,!1);this.addDisposer(r),this._alwaysShowDisposers.push(r),e=e.parent}},Object.defineProperty(i.prototype,"virtualParent",{get:function(){return this._virtualParent},set:function(e){this._virtualParent=e,this.dataItem&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i.prototype.appendDefs=function(){this.filterElement&&this.paper.appendDef(this.filterElement);var e=this.fill;e&&e.element&&this.paper.appendDef(e.element);var t=this.stroke;if(t&&t.element&&this.paper.appendDef(t.element),this.fillModifier&&this.fill instanceof de){var r=this.fillModifier.modify(this.fill);r&&r.element&&this.paper.appendDef(r.element)}if(this.strokeModifier&&this.stroke instanceof de){var s=this.strokeModifier.modify(this.stroke);s&&s.element&&this.paper.appendDef(s.element)}this._clipPath&&this.paper.appendDef(this._clipPath),this._exportable===!1&&(this.exportable=!1)},Object.defineProperty(i.prototype,"map",{get:function(){var e=this.topParent;return e?e.map:(this._map||(this._map=new _e),this._map)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delayedMap",{get:function(){var e=this.topParent;return e?e.delayedMap:(this._delayedMap||(this._delayedMap=new _e),this._delayedMap)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"id",{get:function(){return this._id},set:function(e){if(this._id!=e){if(this._id=e,this.map.hasKey(e))throw Error("Duplicate id ("+e+") used on multiple objects.");this.map.setKey(e,this),ue.autoSetClassName&&this.setClassName()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dom",{get:function(){return this.group.node},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paper",{get:function(){if(this._paper)return this._paper;var e=this._parent;return e?e.paper:rr()},set:function(e){this.setPaper(e)},enumerable:!0,configurable:!0}),i.prototype.setPaper=function(e){var t=this._paper;return t!=e?(this._paper=e,this.appendDefs(),!0):!1},Object.defineProperty(i.prototype,"htmlContainer",{get:function(){if(this._htmlContainer)return this._htmlContainer;var e=this._parent;if(e)return e.htmlContainer},set:function(e){this._htmlContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"titleElement",{get:function(){return this._titleElement||(this._titleElement=this.paper.add("title"),this.group.add(this._titleElement)),this._titleElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"descriptionElement",{get:function(){return this._descriptionElement||(this._descriptionElement=this.paper.add("desc"),this.group.add(this._descriptionElement)),this._descriptionElement},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"filters",{get:function(){return this._filters||(this._filters=new he,this._disposers.push(this._filters.events.onAll(this.applyFilters,this)),this._disposers.push(new ge(this._filters))),this._filters},enumerable:!0,configurable:!0}),i.prototype.setSVGAttributes=function(){this.fill=this.fill,this.opacity=this.opacity,this.fillOpacity=this.fillOpacity,this.stroke=this.stroke,this.strokeOpacity=this.strokeOpacity,this.shapeRendering=this.shapeRendering,this.strokeDasharray=this.strokeDasharray,this.strokeDashoffset=this.strokeDashoffset,this.strokeLinecap=this.strokeLinecap,this.strokeLinejoin=this.strokeLinejoin,this.focusable=this.focusable,this.tabindex=this.tabindex,this.role=this.role},i.prototype.setSVGAttribute=function(e){this.group.attr(e)},i.prototype.removeSVGAttribute=function(e){this.group.removeAttr(e)},i.prototype.setClassName=function(){var e=this.className,t=ue.classNamePrefix;this.element&&this.element.addClass(t+e),this.group.addClass(t+e+"-group"),$(this.id)&&this.group.addClass(t+this.id),this.userClassName&&this.group.addClass(this.userClassName)},i.prototype.uidAttr=function(){return this.setSVGAttribute({id:this.uid}),this.uid},i.prototype.updateClipPath=function(){var e=this._clipElement;e&&e.moveTo({x:this.mask.pixelX,y:this.mask.pixelY})},i.prototype.createClipPath=function(){if(!this._clipPath){this._clipPath=this.paper.addGroup("clipPath"),this.paper.appendDef(this._clipPath),this._disposers.push(this._clipPath);var e=_.getUniqueId();this._clipPath.attr({id:e}),this.group.attr({"clip-path":'url("'+ha()+e+'")'})}},i.prototype.applyMask=function(){var e=this.mask;if(this._clipPath&&e)if(e instanceof Y){this._clipElement.attr({width:ie(0,e.pixelWidth),height:ie(0,e.pixelHeight)});var t=At({x:e.pixelX,y:e.pixelY},e.parent,this);this._clipPath.x=t.x,this._clipPath.y=t.y}else e.element&&e.element!=this._clipElement&&(this._clipElement=e.element,this._clipPath.add(this._clipElement)),this._clipPath.scale=e.scale,this._clipPath.x=e.pixelX,this._clipPath.y=e.pixelY,this._clipPath.rotation=e.rotation},i.prototype.applyFilters=function(){var e=this;if(this._filters&&this._filters.length>0){var t=100,r=100;this.filterElement?this.filterElement.removeChildNodes():(this.filterElement=this.paper.addGroup("filter"),this._disposers.push(this.filterElement)),this.paper.appendDef(this.filterElement);var s="filter-"+this.uid;this.filterElement.attr({id:s}),V(this.filters.iterator(),function(l){l.sprite=e,l.paper=e.paper,e.filterElement.attr({filterUnits:l.filterUnits}),l.appendPrimitives(e.filterElement),l.width>t&&(t=l.width),l.height>r&&(r=l.height),l.scale=e.globalScale});var n=t+"%",o=r+"%";this.filterElement.attr({width:n,height:o,x:-(t-100)/2+"%",y:-(r-100)/2+"%"}),this.group.attr({filter:'url("'+ha()+s+'")'})}else this.filterElement&&(this.group.removeAttr("filter"),this.filterElement.removeChildNodes())},i.prototype.removeClipPath=function(){this._clipPath&&(this.removeDispose(this._clipPath),this._clipPath=void 0)},i.prototype.setElement=function(e){this.element=e,this.setSVGAttributes(),this.applyAccessibility()},Object.defineProperty(i.prototype,"element",{get:function(){return this._element},set:function(e){this.removeElement(),this._element=e,this.group.add(e),e.node instanceof SVGPathElement&&(this._isPath=!0),this.invalid||this.validate(),ue.autoSetClassName&&this.setClassName()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"svgContainer",{get:function(){if(this._svgContainer)return this._svgContainer;if(this._parent)return this._parent.svgContainer},set:function(e){this._svgContainer=e},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){if(this.element)if(this.definedBBox)this._bbox=this.definedBBox;else{var e=this.element.getBBox();this._bbox={x:e.x,y:e.y,width:e.width,height:e.height}}},i.prototype.updateCenter=function(){if(this.element){var e=this.element.transformString,t=this.bbox,r=0,s=0,n=t.x,o=t.y,l=t.width,u=t.height,h=this.pixelPaddingLeft,p=this.pixelPaddingRight,d=this.pixelPaddingTop,c=this.pixelPaddingBottom,f=ie(l+h+p,this.pixelWidth),y=ie(u+d+c,this.pixelHeight),g=t.x,v=t.x+f,x=t.y,P=t.y+y,T=this.horizontalCenter,C=this.verticalCenter;switch(T){case"none":r=n+h;break;case"left":r=h;break;case"middle":r=h-(l+p+h)/2;break;case"right":r=-p-l;break}switch(C){case"none":s=o+d;break;case"top":s=d;break;case"middle":s=d-(u+c+d)/2;break;case"bottom":s=-c-u;break}this._measuredHeight=y,this._measuredWidth=f;var O=I(r-n,this._positionPrecision,!0),w=I(s-o,this._positionPrecision,!0);this.ex=O-h,this.ey=w-d,this.maxLeft=g+O-h,this.maxRight=v+O-h,this.maxTop=x+w-d,this.maxBottom=P+w-d,this.pixelPerfect&&ue.pixelPerfectPrecision==0&&(O-=.5,w-=.5),this.element.moveTo({x:O,y:w}),e!=this.element.transformString&&this.dispatchImmediately("transformed")}},i.prototype.measure=function(){this.updateCenter();var e=this._measuredWidth,t=this._measuredHeight,r=this.maxLeft,s=this.maxRight,n=this.maxTop,o=this.maxBottom;this._measuredWidthSelf=e,this._measuredHeightSelf=t;var l=this._positionPrecision;if(this.maxLeftSelf=this.maxLeft,this.maxRightSelf=this.maxRight,this.maxTopSelf=this.maxTop,this.maxBottomSelf=this.maxBottom,this.rotation!==0||this.scale!==1||this.nonScaling){this.nonScalingStroke&&(this.strokeWidth=this.strokeWidth);var u=this.paper.svg,h=u.createSVGMatrix(),p=this.rotation,d=this.scale;this.nonScaling&&(d=this.scale/this.globalScale),h.a=B(p)*d,h.c=-N(p)*d,h.e=0,h.b=N(p)*d,h.d=B(p)*d,h.f=0;var c=u.createSVGPoint();c.x=r,c.y=n;var f=u.createSVGPoint();f.x=s,f.y=n;var y=u.createSVGPoint();y.x=s,y.y=o;var g=u.createSVGPoint();g.x=r,g.y=o;var v=c.matrixTransform(h),x=f.matrixTransform(h),P=y.matrixTransform(h),T=g.matrixTransform(h);r=Math.min(v.x,x.x,P.x,T.x),s=Math.max(v.x,x.x,P.x,T.x),n=Math.min(v.y,x.y,P.y,T.y),o=Math.max(v.y,x.y,P.y,T.y),e=s-r,t=o-n,this.maxLeft=I(r,l,!0),this.maxRight=I(s,l,!0),this.maxTop=I(n,l,!0),this.maxBottom=I(o,l,!0)}return this._measuredWidth=I(e,l,!0),this._measuredHeight=I(t,l,!0),this._measuredWidth!=this._prevMeasuredWidth||this._measuredHeight!=this._prevMeasuredHeight?(this._prevMeasuredHeight=this._measuredHeight,this._prevMeasuredWidth=this._measuredWidth,this.dispatch("sizechanged"),(this.isHover||this.showTooltipOn=="hit"||this.showTooltipOn=="always")&&this.tooltip&&this.tooltip.visible&&($(this.tooltipText)||$(this.tooltipHTML))&&this.updateTooltipPosition(),!0):!1},i.prototype.insertBefore=function(e){var t=this._parent;if(t){var r=t.children.indexOf(e);r!==-1&&(t.children.moveValue(this,r),t.sortChildren())}return this},i.prototype.insertAfter=function(e){var t=this._parent;if(t){var r=t.children.indexOf(e);r!==-1&&(t.children.moveValue(this,r+1),t.sortChildren())}return this},i.prototype.removeElement=function(){this._element&&(this.removeDispose(this._element),this._element=void 0)},i.prototype.getRelativeX=function(e){return e instanceof ae?e.value:this._parent?e/this._parent.innerWidth:0},i.prototype.getRelativeY=function(e){return e instanceof ae?e.value:this._parent?e/this._parent.innerHeight:0},i.prototype.getPixelX=function(e){var t=0;if(b(e))t=e;else if(e instanceof ae){var r=e.value;this._parent&&(t=I(this._parent.innerWidth*r,this._positionPrecision,!0))}return t},i.prototype.getPixelY=function(e){var t=0;if(b(e))t=e;else if(e instanceof ae){var r=e.value;this._parent&&(t=I(this._parent.innerHeight*r,this._positionPrecision,!0))}return t},i.prototype.moveTo=function(e,t,r,s){this.isDragged&&!s||(e&&(b(e.x)&&this.setPropertyValue("x",I(e.x,this._positionPrecision,!0)),b(e.y)&&this.setPropertyValue("y",I(e.y,this._positionPrecision,!0))),b(t)&&(this.rotation=t),b(r)&&(this.scale=r),this.invalidatePosition())},Object.defineProperty(i.prototype,"mask",{get:function(){return this._adapterO?this._adapterO.apply("mask",this._mask.get()):this._mask.get()},set:function(e){var t=this;this._mask.get()!==e&&(e?(this.createClipPath(),e instanceof Y?this._clipElement=this.paper.add("rect"):(e.isMeasured=!1,e.element&&(this._clipElement=e.element)),this._clipElement&&this._clipPath.add(this._clipElement),this._mask.set(e,new Pe([e.events.on("maxsizechanged",function(){t.inited&&t.applyMask()},void 0,!1),e.events.on("validated",this.applyMask,this,!1),e.events.on("positionchanged",this.applyMask,this,!1)])),this.applyMask()):(this._mask.reset(),this.group.removeAttr("clip-path"),this.removeClipPath()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskRectangle",{get:function(){return this._maskRectangle},set:function(e){e?(this.createClipPath(),this._clipElement||(this._clipElement=this.paper.add("rect"),this._clipPath.add(this._clipElement)),this._clipElement.attr({width:e.width,height:e.height})):(this.removeClipPath(),this._clipElement=void 0),this._maskRectangle=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isMeasured",{get:function(){return this._isMeasured},set:function(e){e=Ue(e),e||(this._measuredWidth=0,this._measuredHeight=0),this._isMeasured!=e&&(this._isMeasured=e,this.invalidatePosition())},enumerable:!0,configurable:!0}),i.prototype.hitTest=function(e){this.invalid&&this.validate(),e.invalid&&e.validate();var t=this.pixelX+this.maxLeft,r=this.pixelY+this.maxTop,s=t+this.maxRight,n=r+this.maxBottom,o=e.pixelX+e.maxLeft,l=e.pixelY+e.maxTop,u=o+e.maxRight,h=l+e.maxBottom;return!(o>s||u<t||l>n||h<r)},Object.defineProperty(i.prototype,"inited",{get:function(){return this._inited},enumerable:!0,configurable:!0}),i.prototype.isReady=function(){return this._ready},Object.defineProperty(i.prototype,"states",{get:function(){if(!this._states){var e=new Ua;this._states=new $r(e),this._disposers.push(this._states.events.on("insertKey",this.processState,this,!1)),this._disposers.push(this._states.events.on("setKey",this.processState,this,!1)),this._disposers.push(new Pi(this._states)),this._disposers.push(e)}return this._states},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hiddenState",{get:function(){if(!this.states.getKey("hidden")){var e=this.states.create("hidden");e.properties.opacity=0,e.properties.visible=!1}return this.states.getKey("hidden")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultState",{get:function(){if(!this.states.getKey("default")){var e=this.states.create("default");e.properties.opacity=1}return this.states.getKey("default")},enumerable:!0,configurable:!0}),i.prototype.processState=function(e){var t=e.newValue;if(t.sprite=this,t.name=e.key,(this.states.hasKey("hover")||this.showTooltipOn=="hover"&&($(this.tooltipHTML)||$(this.tooltipText)))&&(this.hoverable=!0),(this.states.hasKey("down")||this.showTooltipOn=="hover"&&($(this.tooltipHTML)||$(this.tooltipText)))&&(this.clickable=!0),this.states.hasKey("focus")&&(this.focusable=!0),this.applyOnClones)for(var r=this.clones.values,s=r.length,n=0;n<s;++n){var o=r[n];o.isDisposed()||o.states.setKey(t.name,t)}},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Ki(this._animations))),this._animations},enumerable:!0,configurable:!0}),i.prototype.getSvgPoint=function(e){try{var t=this.htmlContainer.getBoundingClientRect();return{x:e.x-t.left,y:e.y-t.top}}catch{return e}},i.prototype.animate=function(e,t,r){return new Nt(this,e,t,r).start()},i.prototype.setState=function(e,t,r){var s;if(e instanceof Ua)this.states.setKey(e.name,e),s=e;else if(s=this.states.getKey(e),!s)return;if(s.name=="hover"){if(this.isHidden)return;this.isHover=!0}return s.name=="hidden"?this.isHiding=!0:this.visible||this.setVisibility(s.properties.visible||this.defaultState.properties.visible),s.name=="active"&&(this.isActive=!0),b(t)||(t=s.transitionDuration),$(r)||(r=s.transitionEasing),this.transitTo(s,t,r)},i.prototype.applyCurrentState=function(e){var t=this.setState(this.defaultState,e);return this.isHover&&(t=this.setState("hover",e)),this.isDown&&this.interactions.downPointers.length&&(t=this.setState("down",e)),this.isFocused=this.isFocused,this.isActive&&(t=this.setState("active",e),this.isHover&&this.states.hasKey("hoverActive")&&(t=this.setState("hoverActive",e))),t},i.prototype.transitTo=function(e,t,r){var s=this,n=[],o=e.allValues,l;if(q(o,function(h,p){var d=s[h];if(p!=d&&s.defaultState.properties[h]==null&&(s.defaultState.properties[h]=d),p!="__unset"){var c={from:d,to:p,property:h};n.push(c)}}),n.length>0&&(l=this.animate(n,t,r),l&&!l.isFinished()?this._disposers.push(l.events.on("animationended",function(){s.dispatchImmediately("transitionended")})):this.dispatchImmediately("transitionended")),e.filters.length>0){var u=[];V(e.filters.iterator(),function(h){var p=h.clone();u.push(p);var d=[];V(s.filters.iterator(),function(c){c.className==p.className&&(Es(s.defaultState.filters.iterator(),function(f){return f.className===p.className})||s.defaultState.filters.push(c),q(p.properties,function(f,y){var g=c.properties[f];g!=y&&d.push({property:f,from:g,to:y})}))}),p.animate(d,t,r)}),this.filters.clear(),this.filters.pushAll(u)}return l},i.prototype.isInTransition=function(){return this.animations.length>0},Object.defineProperty(i.prototype,"isHover",{get:function(){return this.isInteractive()?this.interactions.isHover:!1},set:function(e){e=Ue(e),e!==this.isHover&&this.isInteractive()&&(this.interactions.isHover=e,e?this.handleOver():(this.interactions.isRealHover=!1,this.handleOut()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDragged",{get:function(){return this._isDragged},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isResized",{get:function(){return this._isResized},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDown",{get:function(){return this.isInteractive()?this.interactions.isDown:!1},set:function(e){e=Ue(e),this.isInteractive()&&this.isDown!=e&&(this.interactions.isDown=e,e?this.handleDown():this.handleUp())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isFocused",{get:function(){return this.isInteractive()?this.interactions.isFocused:!1},set:function(e){e=Ue(e),this.focusable&&this.isFocused!=e&&this.isInteractive()&&(this.interactions.isFocused=e,e===!0?this.handleFocus():this.handleBlur())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isActive",{get:function(){return this._isActive},set:function(e){this.setActive(e)},enumerable:!0,configurable:!0}),i.prototype.setActive=function(e){e=Ue(e),this._isActive!==e&&(this._isActive=e,e&&this.states.hasKey("active")?(this.setState("active"),this.isHover&&this.states.hasKey("hoverActive")&&this.setState("hoverActive")):this.applyCurrentState(),this.dispatchImmediately("toggled"))},Object.defineProperty(i.prototype,"disabled",{get:function(){var e=this.getPropertyValue("disabled");return $(e)?e:this.virtualParent?this.virtualParent.disabled:this._parent?this._parent.disabled:!1},set:function(e){this.setDisabled(e)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){e=Ue(e);var t=this.getPropertyValue("disabled");if(t!=e){if(this.setPropertyValue("disabled",e,!0),e)this.parent=this._parent,this.removeFromInvalids(),this.group.attr({display:"none"}),this.dispatch("disabled");else{if(this._parent){var r=this._parent.element;r.hasChild(this.group)||r.add(this.group)}this instanceof Y?(this.deepInvalidate(),this._background&&this._background.invalidate()):this.invalidate(),this.__disabled||this.removeSVGAttribute("display"),this.dispatch("enabled")}return this.dispatch("transformed"),me.requestFrame(),!0}return!1},Object.defineProperty(i.prototype,"__disabled",{get:function(){return this._internalDisabled},set:function(e){this._internalDisabled!=e&&(this._internalDisabled=e,this._updateDisabled=!0,this.invalidatePosition(),e||this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"numberFormatter",{get:function(){return this._numberFormatter?this._numberFormatter:this.virtualParent?this.virtualParent.numberFormatter:this._parent?this._parent.numberFormatter:(this._numberFormatter=new Xr,this._numberFormatter.language=this.language,this.numberFormatter)},set:function(e){this._numberFormatter=e,this._numberFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.virtualParent?this.virtualParent.dateFormatter:this._parent?this._parent.dateFormatter:(this._dateFormatter=new Ii,this._dateFormatter.language=this.language,this.dateFormatter)},set:function(e){this._dateFormatter=e,this._dateFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"durationFormatter",{get:function(){return this._durationFormatter?this._durationFormatter:this.virtualParent?this.virtualParent.durationFormatter:this._parent?this._parent.durationFormatter:(this._durationFormatter=new nn,this._durationFormatter.language=this.language,this.durationFormatter)},set:function(e){this._durationFormatter=e,this._durationFormatter.language=this.language},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){var e=this._language.get();return e||(this.virtualParent?this.virtualParent.language:this._parent?this._parent.language:(e=new ni,this.language=e,e))},set:function(e){var t=this;this._language.get()!==e&&this._language.set(e,e.events.on("localechanged",function(r){if(t._numberFormatter&&(t._numberFormatter.language=t.language),t._dateFormatter&&(t._dateFormatter.language=t.language),t._durationFormatter&&(t._durationFormatter.language=t.language),t._exporting.get()){var s=t._exporting.get();s.numberFormatter.language=t.language,s.dateFormatter.language=t.language,s.durationFormatter.language=t.language,s.language=t.language}t instanceof Y&&t.deepInvalidate()}))},enumerable:!0,configurable:!0}),i.prototype.populateString=function(e,t){if($(e)){e=Vs(e),e=mi().escape(e);var r=e.match(/\{([^}]+)\}/g),s=void 0;if(r)for(s=0;s<r.length;s++){var n=r[s].replace(/\{([^}]+)\}/,"$1"),o=this.getTagValue(n,"",t);$(o)||(o=""),e=e.split(r[s]).join(o)}e=mi().unescape(e)}else e="";return this._adapterO?this._adapterO.apply("populateString",e):e},i.prototype.getTagValue=function(e,t,r){var s;$(r)||(r=this.dataItem);for(var n=[],o=/([^.]+)\(([^)]*)\)|([^.]+)/g,l;l=o.exec(e),l!==null;)if(l[3])n.push({prop:l[3]});else{var u=[];if(Xn(l[2])!="")for(var h=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,p=void 0;p=h.exec(l[2]),p!==null;)u.push(p[1]||p[2]||p[3]);n.push({method:l[1],params:u})}if(r){s=this.getTagValueFromObject(n,r.values),(!$(s)||Fe(s))&&(s=this.getTagValueFromObject(n,r));var d=r.dataContext;!$(s)&&d&&(s=this.getTagValueFromObject(n,r.dataContext),$(s)||(s=this.getTagValueFromObject([{prop:e}],d)),!$(s)&&d.dataContext&&(s=this.getTagValueFromObject(n,d.dataContext))),!$(s)&&r.component&&r.component.dataItem!==r&&(s=r.component.getTagValue(e,t))}return $(s)||(s=this.getTagValueFromObject(n,this.populateStringFrom||this)),!$(s)&&this._parent&&(s=this._parent.getTagValue(e,t)),s},i.prototype.getTagValueFromObject=function(e,t,r){for(var s=t,n=!1,o=0,l=e.length;o<l;o++){var u=e[o];if(u.prop){if(s=s[u.prop],!$(s))return}else switch(u.method){case"formatNumber":var h=Ks(s);$(h)&&(s=this.numberFormatter.format(h,r||u.params[0]||void 0),n=!0);break;case"formatDate":var p=void 0;if(se(s)?p=this.dateFormatter.parse(s):p=Yn(s),!sa(p)||xt(p.getTime()))return;$(p)&&(s=this.dateFormatter.format(p,r||u.params[0]||void 0),n=!0);break;case"formatDuration":var d=Ks(s);$(d)&&(s=this.durationFormatter.format(d,r||u.params[0]||void 0,u.params[1]||void 0),n=!0);break;case"urlEncode":case"encodeURIComponent":s=encodeURIComponent(s);break;default:s[u.method]&&s[u.method].apply(this,u.params);break}}if(!n){var c=[{method:"",params:r}];if(!$(r))b(s)?(c[0].method="formatNumber",c[0].params=""):sa(s)&&(c[0].method="formatDate",c[0].params="");else{var f=Gh(r);f===Wa?c[0].method="formatNumber":f===Ha?c[0].method="formatDate":f===zs&&(c[0].method="formatDuration")}c[0].method&&(s=this.getTagValueFromObject(c,s))}return s},Object.defineProperty(i.prototype,"dataItem",{get:function(){if(!this._dataItem){if(this.virtualParent)return this.virtualParent.dataItem;if(this._parent)return this._parent.dataItem}return this._dataItem},set:function(e){this.setDataItem(e)},enumerable:!0,configurable:!0}),i.prototype.setDataItem=function(e){var t=this;if(this._dataItem!=e){if(this._dataItem=e,e){if(this.configField){var r=e.dataContext;r&&(this.config=r[this.configField],!this.config&&r.dataContext&&(this.config=r.dataContext[this.configField]))}var s=e.dataContext;if(s){var n=s.dataContext;q(this.propertyFields,function(o,l){if($(s[l])){var u=t;u[o]=s[l]}else if(n){var h=n[l];if($(h)){var u=t;u[o]=h}}})}}this.invalidate()}},i.prototype.getPropertyValue=function(e){var t=this.properties[e];return this._isTemplate||(this._adapterO&&(t=this._adapterO.apply(e,t)),t=Hn.applyAll(this,e,t)),t},i.prototype.setColorProperty=function(e,t,r){var s=this.properties[e];return t instanceof de&&s instanceof de&&t.toString()==s.toString()?!1:this.setPropertyValue(e,t,r)},i.prototype.setPercentProperty=function(e,t,r,s,n,o){if(t=qc(t),b(t))return b(n)&&(t=I(t,n,o)),this.setPropertyValue(e,t,r,s);var l=this.properties[e];return t instanceof ae&&l instanceof ae&&t.value==l.value?!1:this.setPropertyValue(e,t,r,s)},i.prototype.setPropertyValue=function(e,t,r,s){if(this.properties[e]!==t&&!this.isDisposed()){if(this.properties[e]=t,this.events.isEnabled("propertychanged")){var n={type:"propertychanged",target:this,property:e};this.events.dispatchImmediately("propertychanged",n)}if(r&&this.invalidate(),s&&this.invalidatePosition(),this.applyOnClones)for(var o=this.clones.values,l=o.length,u=0;u<l;++u){var h=o[u];h.isDisposed()||(h[e]=t)}return!0}return!1},i.prototype.bind=function(e,t,r,s){var n=this;r===void 0&&(r=e),$(this._bindings[e])&&this._bindings[e].dispose(),this[e]=t[r],this._bindings[e]=t.events.on("propertychanged",function(o){if(o.property===r){var l=t[r];s&&(l=s(l)),n[e]=l}})},i.prototype.observe=function(e,t,r,s){var n=this;return new Pe(Er(yl(e),function(o){return n.events.on("propertychanged",function(l){l.property===o&&t.call(r,l)},r,s)}))},i.prototype.applyAccessibility=function(){var e=this.readerTitle,t=this.readerDescription,r=this.role,s=this.readerHidden,n=this.readerChecked,o=this.readerControls,l=this.readerLive,u=this.readerOrientation,h=this.readerValueNow,p=this.readerValueText,d=[],c=[],f=this.readerLabelledBy;f&&d.push(f);var y=this.readerDescribedBy;if(y&&c.push(y),e)if(d.length||this.showSystemTooltip){var g=this.titleElement,v=this.uid+"-title";g.node.textContent!=e&&(g.node.textContent=e,g.attr({id:v})),d.push(v)}else this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0),this.setSVGAttribute({"aria-label":e});else this.removeSVGAttribute("aria-label"),this._titleElement&&(this.group.removeElement(this._titleElement),this._titleElement=void 0);if(t){var x=this.descriptionElement,P=this.uid+"-description";x.node.textContent!=t&&(x.node.textContent=t,x.attr({id:P})),c.push(P)}else this._descriptionElement&&(this.group.removeElement(this._descriptionElement),this._descriptionElement=void 0);d.length?this.setSVGAttribute({"aria-labelledby":d.join(" ")}):this.removeSVGAttribute("aria-labelledby"),c.length?this.setSVGAttribute({"aria-describedby":c.join(" ")}):this.removeSVGAttribute("aria-describedby"),r?this.setSVGAttribute({role:r}):this.removeSVGAttribute("role"),s?this.setSVGAttribute({"aria-hidden":"true"}):this.removeSVGAttribute("aria-hidden"),n?this.setSVGAttribute({"aria-checked":"true"}):n===!1?this.setSVGAttribute({"aria-checked":"false"}):this.removeSVGAttribute("aria-checked"),o?this.setSVGAttribute({"aria-controls":o}):this.removeSVGAttribute("aria-controls"),l?this.setSVGAttribute({"aria-live":l}):this.removeSVGAttribute("aria-live"),u?this.setSVGAttribute({"aria-orientation":u}):this.removeSVGAttribute("aria-orientation"),h?this.setSVGAttribute({"aria-valuenow":h}):this.removeSVGAttribute("aria-valuenow"),p?this.setSVGAttribute({"aria-valuetext":p}):this.removeSVGAttribute("aria-valuetext")},Object.defineProperty(i.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return $(e)&&this.dataItem?this.populateString(e):e},set:function(e){e=Lt(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerDescription",{get:function(){var e=this.getPropertyValue("readerDescription");return $(e)&&this.dataItem?this.populateString(e):this.getPropertyValue("readerDescription")},set:function(e){e=Lt(e),this.setPropertyValue("readerDescription",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"role",{get:function(){return this.getPropertyValue("role")},set:function(e){e=Lt(e),this.setPropertyValue("role",e)&&(this.applyAccessibility(),e=="slider"&&(this.setSVGAttribute({"aria-valuemin":"0"}),this.setSVGAttribute({"aria-valuemax":"100"})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerHidden",{get:function(){return this.getPropertyValue("readerHidden")},set:function(e){e=Ue(e),this.setPropertyValue("readerHidden",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerChecked",{get:function(){return this.getPropertyValue("readerChecked")},set:function(e){e=Ue(e),this.setPropertyValue("readerChecked",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerControls",{get:function(){return this.getPropertyValue("readerControls")},set:function(e){e=Lt(e),this.setPropertyValue("readerControls",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerLive",{get:function(){return this.getPropertyValue("readerLive")},set:function(e){e=Lt(e),this.setPropertyValue("readerLive",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerLabelledBy",{get:function(){return this.getPropertyValue("readerLabelledBy")},set:function(e){e=Lt(e),this.setPropertyValue("readerLabelledBy",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerDescribedBy",{get:function(){return this.getPropertyValue("readerDescribedBy")},set:function(e){e=Lt(e),this.setPropertyValue("readerDescribedBy",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerOrientation",{get:function(){return this.getPropertyValue("readerOrientation")},set:function(e){e=Lt(e),this.setPropertyValue("readerOrientation",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerValueNow",{get:function(){return this.getPropertyValue("readerValueNow")},set:function(e){e=Lt(e),this.setPropertyValue("readerValueNow",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"readerValueText",{get:function(){return this.getPropertyValue("readerValueText")},set:function(e){e=Lt(e),this.setPropertyValue("readerValueText",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keyboardOptions",{get:function(){if(!this.interactions.keyboardOptions){if(this.virtualParent)return this.virtualParent.keyboardOptions;if(this._parent)return this._parent.keyboardOptions}return this.interactions.keyboardOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mouseOptions",{get:function(){if(!this.interactions.mouseOptions){if(this.virtualParent)return this.virtualParent.mouseOptions;if(this._parent)return this._parent.mouseOptions}return this.interactions.mouseOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"interactions",{get:function(){if(!this._interaction){var e=re().getInteraction(this.dom);this._interaction=e,e.clickable=this.clickable,e.hoverable=this.hoverable,e.trackable=this.trackable,e.draggable=this.draggable,e.swipeable=this.swipeable,e.resizable=this.resizable,e.wheelable=this.wheelable,e.contextMenuDisabled=this.contextMenuDisabled,e.inert=this.inert,e.sprite=this,this._disposers.push(e)}return this._interaction},enumerable:!0,configurable:!0}),i.prototype.isInteractive=function(){return!!this._interaction},Object.defineProperty(i.prototype,"focusable",{get:function(){return this.getPropertyValue("focusable")},set:function(e){var t=this;e=Ue(e),this.setPropertyValue("focusable",e)&&(!e&&!this.isInteractive()||(this.interactions.focusable=e,e?(this.setSVGAttribute({focusable:e}),$(this._tabindex)||(this.tabindex=0)):(this.removeSVGAttribute("focusable"),this.tabindex=void 0),this.interactions.setEventDisposer("sprite-focusable",e,function(){return new Pe([t.events.on("blur",t.handleBlur,t,!1),t.events.on("focus",t.handleFocus,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleFocus=function(e){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!0,this.topParent.focusedElement=this),this.focusFilter&&this.filters.push(this.focusFilter),this.hoverOnFocus&&(this.isHover=!0,this.handleOver()))},i.prototype.handleBlur=function(e){this.focusable&&(this.topParent&&(this.topParent.hasFocused=!1,this.topParent.focusedElement=void 0),this.focusFilter&&this.filters.removeValue(this.focusFilter),this.hoverOnFocus&&(this.isHover=!1,this.handleOut()))},Object.defineProperty(i.prototype,"focusFilter",{get:function(){var e=this._focusFilter;if(e)return e;if(this.virtualParent)return this.virtualParent.focusFilter;if(this._parent)return this._parent.focusFilter},set:function(e){this._focusFilter=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOnFocus",{get:function(){return this.getPropertyValue("hoverOnFocus")},set:function(e){e!==this.hoverOnFocus&&this.setPropertyValue("hoverOnFocus",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tabindex",{get:function(){var e=this._tabindex;if(e!=null)return e;if(this.virtualParent)return this.virtualParent.tabindex;if(this._parent)return this._parent.tabindex},set:function(e){e=Oe(e),this.setPropertyValue("tabindex",e)&&b(e)&&(this.interactions.tabindex=e,this.setSVGAttribute({tabindex:e}),this._tabindex=e,this.focusable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inertiaOptions",{get:function(){return!this.interactions.inertiaOptions&&this._parent?this._parent.inertiaOptions:this.interactions.inertiaOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"draggable",{get:function(){return this.getPropertyValue("draggable")},set:function(e){var t=this;e=Ue(e),this.setPropertyValue("draggable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.draggable=e,this.interactions.setEventDisposer("sprite-draggable",e,function(){return new Pe([t.events.on("down",t.handleDown,t,!1),t.events.on("dragstart",t.handleDragStart,t,!1),t.events.on("drag",t.handleDragMove,t,!1),t.events.on("dragstop",t.handleDragStop,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleDragStart=function(e){(!this.interactions.isTouchProtected||!e.touch)&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this._isDragged=!0,this.hideTooltip(0))},i.prototype.dragStart=function(e){this._isDragged=!0,re().dragStart(this.interactions,e)},i.prototype.handleDragStop=function(e){(!this.interactions.isTouchProtected||!e.touch)&&(this._isDragged=!1,this.showTooltip(),this.interactions.originalPosition=void 0)},i.prototype.dragStop=function(e,t){this._isDragged=!1,re().dragStop(this.interactions,e,t)},i.prototype.handleDragMove=function(e){if(!this.interactions.isTouchProtected||!e.touch){var t=this.interactions.originalPosition;if(t&&this._isDragged){var r=this._parent.globalScale*this.svgContainer.cssScale;this.moveTo({x:t.x+e.shift.x/r,y:t.y+e.shift.y/r},void 0,void 0,!0)}this.dispatchImmediately("dragged",e)}},Object.defineProperty(i.prototype,"inert",{get:function(){return this.getPropertyValue("inert")},set:function(e){e=Ue(e),this.setPropertyValue("inert",e)&&(!e&&!this.isInteractive()||(this.interactions.inert=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverOptions",{get:function(){if(!this.interactions.hoverOptions){if(this.virtualParent)return this.virtualParent.hoverOptions;if(this._parent)return this._parent.hoverOptions}return this.interactions.hoverOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hoverable",{get:function(){return this.getPropertyValue("hoverable")},set:function(e){var t=this;e=Ue(e),this.setPropertyValue("hoverable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.hoverable=e,this.interactions.setEventDisposer("sprite-hoverable",e,function(){return new Pe([t.events.on("over",t.handleOver,t,!1),t.events.on("out",t.handleOut,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleOver=function(e){if(this._outTimeout&&this._outTimeout.dispose(),this.isHover){this.states.hasKey("hover")&&(this.isHidden||this.applyCurrentState());var t=void 0;e&&e.pointer&&(t=er(e.pointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale)),this.showTooltipOn=="hover"&&this.showTooltip(t)}else this.showTooltipOn=="hover"&&this.hideTooltip(),!this.isHidden&&this.states.hasKey("hover")&&this.applyCurrentState()},i.prototype.handleOut=function(e){var t=this;if(this.tooltip&&this.tooltip.targetSprite==this&&this.tooltip.keepTargetHover){this._outTimeout=this.setTimeout(function(){t.tooltip.isHover||(t.tooltip.targetSprite==t&&t.hideTooltip(),t._outTimeout=t.setTimeout(t.handleOutReal.bind(t),t.rollOutDelay))},10);return}this.showTooltipOn=="hover"&&this.hideTooltip(),this._outTimeout=this.setTimeout(this.handleOutReal.bind(this),this.rollOutDelay)},i.prototype.handleOutReal=function(){!this.isHidden&&!this.isHiding&&this.states.hasKey("hover")&&this.applyCurrentState()},Object.defineProperty(i.prototype,"hitOptions",{get:function(){if(!this.interactions.hitOptions){if(this.virtualParent)return this.virtualParent.hitOptions;if(this._parent)return this._parent.hitOptions}return this.interactions.hitOptions},enumerable:!0,configurable:!0}),i.prototype.handleDown=function(e){this.interactions.downPointers.length===1&&(this.interactions.originalPosition={x:this.pixelX,y:this.pixelY},this.interactions.originalAngle=this.rotation,this.interactions.originalScale=this.scale,this.states.hasKey("down")&&this.setState("down"))},i.prototype.handleUp=function(e){var t=this;this._isResized=!1,this.states.hasKey("down")&&this.applyCurrentState(),this.showTooltipOn=="hit"&&(this.updateTooltipPosition(e.pointer?e.pointer.point:void 0),this._disposers.push(_.events.once("exitframe",function(){t.showTooltip()})),this._disposers.push(re().body.events.once("down",function(r){t.hideTooltip()})))},Object.defineProperty(i.prototype,"clickable",{get:function(){return this.getPropertyValue("clickable")},set:function(e){var t=this;e=Ue(e),this.setPropertyValue("clickable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.clickable=e,this.interactions.setEventDisposer("sprite-clickable",e,function(){return new Pe([t.events.on("down",t.handleDown,t,!1),t.events.on("up",t.handleUp,t,!1)])})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"togglable",{get:function(){return this.getPropertyValue("togglable")},set:function(e){var t=this;e=Ue(e),this.setPropertyValue("togglable",e)&&(!e&&!this.isInteractive()||this.interactions.setEventDisposer("sprite-togglable",e,function(){return t.events.on("hit",t.handleToggle,t,!1)}))},enumerable:!0,configurable:!0}),i.prototype.handleToggle=function(e){this.isActive=!this.isActive},Object.defineProperty(i.prototype,"contextMenuDisabled",{get:function(){return this.getPropertyValue("contextMenuDisabled")},set:function(e){e=Ue(e),this.setPropertyValue("contextMenuDisabled",e)&&(this.interactions.contextMenuDisabled=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"url",{get:function(){return this.getPropertyValue("url")},set:function(e){this.setPropertyValue("url",e)&&(this._urlDisposer&&this._urlDisposer.dispose(),Xa(e)&&(this._urlDisposer=this.events.on("hit",this.urlHandler,this,!1),this.clickable=!0,this.cursorOverStyle=Re.pointer))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseId",{get:function(){return!this._baseId&&this._parent&&(this.baseId=this._parent.baseId),this._baseId},set:function(e){this.setBaseId(e)},enumerable:!0,configurable:!0}),i.prototype.setBaseId=function(e){e!=this._baseId&&(this.invalid&&(this.invalid=!1,_.removeFromInvalidSprites(this),this.invalidate()),this._baseId=e)},Object.defineProperty(i.prototype,"baseSprite",{get:function(){if(this.isBaseSprite)return this;if(this._parent)return this._parent.baseSprite},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"urlTarget",{get:function(){return this.getPropertyValue("urlTarget")},set:function(e){this.setPropertyValue("urlTarget",e)},enumerable:!0,configurable:!0}),i.prototype.urlHandler=function(e){if(Xa(this.url)){var t=this.populateString(this.url);this.urlTarget==="_self"?window.location.href=t:window.open(t,this.urlTarget)}},Object.defineProperty(i.prototype,"swipeOptions",{get:function(){if(!this.interactions.swipeOptions){if(this.virtualParent)return this.virtualParent.swipeOptions;if(this._parent)return this._parent.swipeOptions}return this.interactions.swipeOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"swipeable",{get:function(){return this.getPropertyValue("swipeable")},set:function(e){e=Ue(e),this.setPropertyValue("swipeable",e)&&(this.applyCursorStyle(),!e&&!this.isInteractive()||(this.interactions.swipeable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"trackable",{get:function(){return this.getPropertyValue("trackable")},set:function(e){e=Ue(e),this.setPropertyValue("trackable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.trackable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wheelable",{get:function(){return this.getPropertyValue("wheelable")},set:function(e){this.setPropertyValue("wheelable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.wheelable=e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"resizable",{get:function(){return this.getPropertyValue("resizable")},set:function(e){var t=this;e=Ue(e),this.setPropertyValue("resizable",e)&&(!e&&!this.isInteractive()||(this.applyCursorStyle(),this.interactions.resizable=e,this.interactions.setEventDisposer("sprite-resizable",e,function(){return new Pe([t.events.on("down",t.handleDown,t,!1),t.events.on("resize",t.handleResize,t,!1)])})))},enumerable:!0,configurable:!0}),i.prototype.handleResize=function(e){if((!this.interactions.isTouchProtected||!e.touch)&&(this._isResized=!0,this.scale=this.interactions.originalScale*e.scale,this.validatePosition(),this.draggable||this.dragWhileResize)){this._isDragged=!1;var t=er(e.point1,this.htmlContainer,this.svgContainer.cssScale),r=er(e.point2,this.htmlContainer,this.svgContainer.cssScale),s=Ma(t,r),n=Pr(e.startPoint1,this._parent),o=Pr(e.startPoint2,this._parent),l=this.interactions.originalPosition,u=this.interactions.originalScale;if(l){var h={x:(n.x-l.x)/u,y:(n.y-l.y)/u},p={x:(o.x-l.x)/u,y:(o.y-l.y)/u},d=Ma(h,p),c=Bt(s,this._parent);this.moveTo({x:c.x-d.x*this.scale,y:c.y-d.y*this.scale},void 0,void 0,!0)}}},Object.defineProperty(i.prototype,"cursorOptions",{get:function(){if(!this.interactions.cursorOptions){if(this.virtualParent)return this.virtualParent.cursorOptions;if(this._parent)return this._parent.cursorOptions}return this.interactions.cursorOptions},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorOverStyle",{set:function(e){this.cursorOptions.overStyle||(this.interactions.cursorOptions={defaultStyle:this.cursorOptions.defaultStyle}),this.cursorOptions.overStyle=e,re().applyCursorOverStyle(this.interactions)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorDownStyle",{set:function(e){this.cursorOptions.downStyle=e},enumerable:!0,configurable:!0}),i.prototype.applyCursorStyle=function(){},Object.defineProperty(i.prototype,"interactionsEnabled",{get:function(){var e=this.getPropertyValue("interactionsEnabled");return e===!1?!1:this.virtualParent?this.virtualParent.interactionsEnabled:this._parent?this._parent.interactionsEnabled:!0},set:function(e){if(e=Ue(e),this.setPropertyValue("interactionsEnabled",e)){var t=null;e?this.group.node.style.pointerEvents="":t="none",this.group.node.style.pointerEvents=t}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"exporting",{get:function(){return this.getExporting()},set:function(e){this._exporting.set(e,e)},enumerable:!0,configurable:!0}),i.prototype.getExporting=function(){var e=this._exporting.get();if(e)return e;if(this.isStandaloneInstance||!this._parent)e=new Tp(this.svgContainer.SVGContainer),e.sprite=this,e.language=this.language,e.numberFormatter=this.numberFormatter,e.dateFormatter=this.dateFormatter,e.durationFormatter=this.durationFormatter,this._exporting.set(e,e);else return this._parent.exporting;return e},Object.defineProperty(i.prototype,"exportable",{get:function(){return this._exportable},set:function(e){var t=this.svgContainer;this._exportable=e,t&&(e?ee(t.nonExportableSprites,this):Ut(t.nonExportableSprites,this)==-1&&t.nonExportableSprites.push(this))},enumerable:!0,configurable:!0}),i.prototype.modalPrefix=function(e){return e=ue.classNamePrefix+e,e},Object.defineProperty(i.prototype,"modal",{get:function(){var e=this.svgContainer;if(e){var t=e.modal;return t.adapter.has("classPrefix",this.modalPrefix)||t.adapter.add("classPrefix",this.modalPrefix),t}},enumerable:!0,configurable:!0}),i.prototype.openModal=function(e,t){var r=this.svgContainer;if(r)return r.openModal(e,t)},i.prototype.closeModal=function(){var e=this.svgContainer;e&&e.closeModal()},Object.defineProperty(i.prototype,"popups",{get:function(){var e=this.svgContainer;if(e){var t=e.popups;return t.template.sprite=this,t.template.adapter.has("classPrefix",this.modalPrefix)||t.template.adapter.add("classPrefix",this.modalPrefix),t}},enumerable:!0,configurable:!0}),i.prototype.openPopup=function(e,t){var r=this.svgContainer;if(r)return r.openPopup(e,t)},i.prototype.closeAllPopups=function(){var e=this.svgContainer;e&&e.closeAllPopups()},Object.defineProperty(i.prototype,"x",{get:function(){return this.getPropertyValue("x")},set:function(e){this.isDragged||this.setPercentProperty("x",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelX",{get:function(){var e=X(this.getPixelX(this.x),this.minX,this.maxX);return this._adapterO?this._adapterO.apply("pixelX",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeX",{get:function(){return this._adapterO?this._adapterO.apply("relativeX",this.getRelativeX(this.x)):this.getRelativeX(this.x)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minX",{get:function(){return this.getPropertyValue("minX")},set:function(e){b(e)&&(e=I(e,this._positionPrecision,!0),this.setPropertyValue("minX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxX",{get:function(){return this.getPropertyValue("maxX")},set:function(e){b(e)&&(e=I(e,this._positionPrecision,!0),this.setPropertyValue("maxX",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y",{get:function(){return this.getPropertyValue("y")},set:function(e){this.isDragged||this.setPercentProperty("y",e,!1,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelY",{get:function(){var e=X(this.getPixelY(this.y),this.minY,this.maxY);return this._adapterO?this._adapterO.apply("pixelY",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeY",{get:function(){return this._adapterO?this._adapterO.apply("relativeY",this.getRelativeX(this.y)):this.getRelativeX(this.y)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minY",{get:function(){return this.getPropertyValue("minY")},set:function(e){b(e)&&(e=I(e,this._positionPrecision,!0),this.setPropertyValue("minY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxY",{get:function(){return this.getPropertyValue("maxY")},set:function(e){b(e)&&(e=I(e,this._positionPrecision,!0),this.setPropertyValue("maxY",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx",{get:function(){return this.getPropertyValue("dx")},set:function(e){b(e)&&(e=I(e,this._positionPrecision,!0),this.setPropertyValue("dx",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy",{get:function(){return this.getPropertyValue("dy")},set:function(e){b(e)&&(e=I(e,this._positionPrecision,!0),this.setPropertyValue("dy",e,!1,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotation",{get:function(){return this.getPropertyValue("rotation")},set:function(e){e=Oe(e),b(e)||(e=0),this.setPropertyValue("rotation",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"align",{get:function(){return this.getPropertyValue("align")},set:function(e){e=Lt(e),this.setPropertyValue("align",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valign",{get:function(){return this.getPropertyValue("valign")},set:function(e){e=Lt(e),this.setPropertyValue("valign",e)&&this._parent&&this._parent.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalCenter",{get:function(){return this.getPropertyValue("horizontalCenter")},set:function(e){e=Lt(e),this.setPropertyValue("horizontalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalCenter",{get:function(){return this.getPropertyValue("verticalCenter")},set:function(e){e=Lt(e),this.setPropertyValue("verticalCenter",e)&&this.updateCenter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxWidth",{get:function(){var e=this.getPropertyValue("maxWidth");if(!b(e)&&this._parent){var t=this._parent.maxWidth;return this._parent.layout!="absolute"&&this.align!="none"&&this.align!=null&&(t=t-this.pixelMarginLeft-this.pixelMarginRight),t}return e},set:function(e){this.setMaxWidth(e)},enumerable:!0,configurable:!0}),i.prototype.setMaxWidth=function(e){var t=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxWidth",e)){b(this.relativeWidth)&&this.invalidate();var s={type:"maxsizechanged",target:this,previousWidth:t,previousHeight:r};this.dispatchImmediately("maxsizechanged",s)}},Object.defineProperty(i.prototype,"maxHeight",{get:function(){var e=this.getPropertyValue("maxHeight");if(!b(e)&&this._parent){var t=this._parent.maxHeight;return this._parent.layout!="absolute"&&this.valign!="none"&&this.valign!=null&&(t=t-this.pixelMarginTop-this.pixelMarginBottom),t}return e},set:function(e){this.setMaxHeight(e)},enumerable:!0,configurable:!0}),i.prototype.setMaxHeight=function(e){var t=this.maxWidth,r=this.maxHeight;if(this.setPropertyValue("maxHeight",e)){b(this.relativeHeight)&&this.invalidate();var s={type:"maxsizechanged",target:this,previousWidth:t,previousHeight:r};this.dispatchImmediately("maxsizechanged",s)}},Object.defineProperty(i.prototype,"minWidth",{get:function(){return this.getPropertyValue("minWidth")},set:function(e){this.setPropertyValue("minWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minHeight",{get:function(){return this.getPropertyValue("minHeight")},set:function(e){this.setPropertyValue("minHeight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"width",{get:function(){return this.getPropertyValue("width")},set:function(e){var t=this.setPercentProperty("width",e,!0,!1,this._positionPrecision,!0);t&&(this.percentWidth=void 0,this.relativeWidth=void 0,e instanceof ae?(this.percentWidth=e.percent,b(this._pixelWidth)&&(this.maxWidth=void 0),this._pixelWidth=void 0):(this._pixelWidth=Number(e),this.maxWidth=this._pixelWidth),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.getPropertyValue("height")},set:function(e){var t=this.setPercentProperty("height",e,!0,!1,this._positionPrecision,!0);t&&(this.percentHeight=void 0,this._relativeHeight=void 0,e instanceof ae?(this.percentHeight=e.percent,b(this._pixelHeight)&&(this.maxHeight=void 0),this._pixelHeight=void 0):(this._pixelHeight=Number(e),this.maxHeight=this._pixelHeight),this.invalidatePosition())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelWidth",{get:function(){var e;b(this.percentWidth)?e=this.maxWidth:b(this._pixelWidth)?e=this._pixelWidth:e=0;var t=this.minWidth;t!=null&&e<t&&(e=t);var r=I(e,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelWidth",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelHeight",{get:function(){var e;b(this.percentHeight)?e=this.maxHeight:b(this._pixelHeight)?e=this._pixelHeight:e=0;var t=this.minHeight;t!=null&&e<t&&(e=t);var r=I(e,this._positionPrecision,!0);return this._adapterO?this._adapterO.apply("pixelHeight",r):r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeWidth",{get:function(){var e=this._relativeWidth;if(b(e))return this._adapterO?this._adapterO.apply("relativeWidth",e):e},set:function(e){this._relativeWidth!=e&&(this._relativeWidth=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeHeight",{get:function(){var e=this._relativeHeight;if(b(e))return this._adapterO?this._adapterO.apply("relativeHeight",e):e},set:function(e){this._relativeHeight!=e&&(this._relativeHeight=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"measuredWidth",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredWidth",this._measuredWidth):this._measuredWidth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"measuredHeight",{get:function(){return this.disabled||this.__disabled?0:this._adapterO?this._adapterO.apply("measuredHeight",this._measuredHeight):this._measuredHeight},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outerWidth",{get:function(){var e=this.pixelWidth+this.pixelMarginRight+this.pixelMarginLeft;return this._adapterO?this._adapterO.apply("outerWidth",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outerHeight",{get:function(){var e=this.pixelHeight+this.pixelMarginTop+this.pixelMarginBottom;return this._adapterO?this._adapterO.apply("outerHeight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerWidth",{get:function(){var e=Math.max(0,this.pixelWidth-this.pixelPaddingRight-this.pixelPaddingLeft);return this._adapterO?this._adapterO.apply("innerWidth",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerHeight",{get:function(){var e=Math.max(0,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom);return this._adapterO?this._adapterO.apply("innerHeight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"globalScale",{get:function(){var e=this.scale;return this._parent&&(e=e*this._parent.globalScale),this._adapterO?this._adapterO.apply("globalScale",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scale",{get:function(){return this.getPropertyValue("scale")},set:function(e){e=Oe(e),e<0&&(e=0),e!=this.getPropertyValue("scale")&&(this.setPropertyValue("scale",e,!1,!0),this.handleGlobalScale())},enumerable:!0,configurable:!0}),i.prototype.margin=function(e,t,r,s){return this.marginTop=e,this.marginRight=t,this.marginBottom=r,this.marginLeft=s,this},Object.defineProperty(i.prototype,"marginLeft",{get:function(){return this.getPropertyValue("marginLeft")},set:function(e){this.setPercentProperty("marginLeft",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginRight",{get:function(){return this.getPropertyValue("marginRight")},set:function(e){this.setPercentProperty("marginRight",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginTop",{get:function(){return this.getPropertyValue("marginTop")},set:function(e){this.setPercentProperty("marginTop",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marginBottom",{get:function(){return this.getPropertyValue("marginBottom")},set:function(e){this.setPercentProperty("marginBottom",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginRight",{get:function(){var e=this.getPixelX(this.marginRight);return this._adapterO?this._adapterO.apply("pixelMarginRight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginRight",{get:function(){var e=this.getRelativeX(this.marginRight);return this._adapterO?this._adapterO.apply("relativeMarginRight",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginLeft",{get:function(){var e=this.getPixelX(this.marginLeft);return this._adapterO?this._adapterO.apply("pixelMarginLeft",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginLeft",{get:function(){var e=this.getRelativeX(this.marginLeft);return this._adapterO?this._adapterO.apply("relativeMarginLeft",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginTop",{get:function(){var e=this.getPixelY(this.marginTop);return this._adapterO?this._adapterO.apply("pixelMarginTop",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginTop",{get:function(){var e=this.getRelativeY(this.marginTop);return this._adapterO?this._adapterO.apply("relativeMarginTop",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelMarginBottom",{get:function(){var e=this.getPixelY(this.marginBottom);return this._adapterO?this._adapterO.apply("pixelMarginBottom",e):e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativeMarginBottom",{get:function(){var e=this.getRelativeY(this.marginBottom);return this._adapterO?this._adapterO.apply("relativeMarginBottom",e):e},enumerable:!0,configurable:!0}),i.prototype.padding=function(e,t,r,s){return this.paddingTop=e,this.paddingRight=t,this.paddingBottom=r,this.paddingLeft=s,this},Object.defineProperty(i.prototype,"paddingLeft",{get:function(){return this.getPropertyValue("paddingLeft")},set:function(e){this.setPercentProperty("paddingLeft",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingRight",{get:function(){return this.getPropertyValue("paddingRight")},set:function(e){this.setPercentProperty("paddingRight",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingTop",{get:function(){return this.getPropertyValue("paddingTop")},set:function(e){this.setPercentProperty("paddingTop",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"paddingBottom",{get:function(){return this.getPropertyValue("paddingBottom")},set:function(e){this.setPercentProperty("paddingBottom",e,!0,!0,this._positionPrecision,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingRight",{get:function(){return this.getPixelX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingRight",{get:function(){return this.getRelativeX(this.paddingRight)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingLeft",{get:function(){return this.getPixelX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingLeft",{get:function(){return this.getRelativeX(this.paddingLeft)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingTop",{get:function(){return this.getPixelY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingTop",{get:function(){return this.getRelativeY(this.paddingTop)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPaddingBottom",{get:function(){return this.getPixelY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"relativePaddingBottom",{get:function(){return this.getRelativeY(this.paddingBottom)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(e){this.setPath(e)},enumerable:!0,configurable:!0}),i.prototype.setPath=function(e){return this.setPropertyValue("path",e)?(this._adapterO&&(e=this._adapterO.apply("path",e)),this._isPath||((!this.element||this.element.node&&!(this.element.node instanceof SVGPathElement))&&(this.element=this.paper.add("path")),this._isPath=!0),$(e)?this.element.attr({d:e}):this.element.removeAttr("d"),this.invalidatePosition(),this.inited||this.events.once("inited",this.validatePosition,this,!1),!0):!1},Object.defineProperty(i.prototype,"fillModifier",{get:function(){return this.getPropertyValue("fillModifier")},set:function(e){this.setPropertyValue("fillModifier",e)&&this.setFill(this.fill)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeModifier",{get:function(){return this.getPropertyValue("strokeModifier")},set:function(e){this.setPropertyValue("strokeModifier",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillOpacity",{get:function(){return this.getPropertyValue("fillOpacity")},set:function(e){e=dl(e,0,1),this.setPropertyValue("fillOpacity",e)&&this.setSVGAttribute({"fill-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.getPropertyValue("fill")},set:function(e){this.setFill(e)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){if((!Fe(e)||"r"in e)&&(e=Qt(e)),this.setColorProperty("fill",e)||this.fillModifier){if(e instanceof de&&this.fillModifier&&(e=this.fillModifier.modify(e)),this.realFill=e,e instanceof de)this.setSVGAttribute({fill:e.toString()});else if(!$(e))this.removeSVGAttribute("fill");else if(e instanceof ar||e instanceof Mt||e instanceof Si){var t=e;t.paper=this.paper,this.setSVGAttribute({fill:'url("'+ha()+t.id+'")'})}}},Object.defineProperty(i.prototype,"opacity",{get:function(){return this.getPropertyValue("opacity")},set:function(e){e=dl(e,0,1),this.setPropertyValue("opacity",e)&&this.setSVGAttribute({opacity:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"stroke",{get:function(){return this.getPropertyValue("stroke")},set:function(e){this.setStroke(e)},enumerable:!0,configurable:!0}),i.prototype.setStroke=function(e){if((!Fe(e)||"r"in e)&&(e=Qt(e)),this.setColorProperty("stroke",e)||this.strokeModifier){if(e instanceof de&&this.strokeModifier&&(e=this.strokeModifier.modify(e)),this.realStroke=e,e instanceof de)e.hex=="none"?this.removeSVGAttribute("stroke"):this.setSVGAttribute({stroke:e.toString()});else if(!$(e))this.removeSVGAttribute("stroke");else if(e instanceof ar||e instanceof Mt||e instanceof Si){var t=e;t.paper=this.paper,this.setSVGAttribute({stroke:'url("'+ha()+t.id+'")'})}}},Object.defineProperty(i.prototype,"strokeOpacity",{get:function(){return this.getPropertyValue("strokeOpacity")},set:function(e){e=dl(e,0,1),this.setPropertyValue("strokeOpacity",e)&&this.setSVGAttribute({"stroke-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScalingStroke",{get:function(){return this.getPropertyValue("nonScalingStroke")},set:function(e){e=Ue(e),this.setPropertyValue("nonScalingStroke",e)&&(this.strokeWidth=this.strokeWidth)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScaling",{get:function(){return this.getPropertyValue("nonScaling")},set:function(e){e=Ue(e),this.setPropertyValue("nonScaling",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.getPropertyValue("strokeWidth")},set:function(e){e=Oe(e),this.setPropertyValue("strokeWidth",e,!0),this.nonScalingStroke&&(b(e)||(e=1),e=e/this.globalScale),this.setSVGAttribute({"stroke-width":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDasharray",{get:function(){return this.getPropertyValue("strokeDasharray")},set:function(e){e=Lt(e),this.setPropertyValue("strokeDasharray",e)&&this.setSVGAttribute({"stroke-dasharray":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeDashoffset",{get:function(){return this.getPropertyValue("strokeDashoffset")},set:function(e){e=Oe(e),this.setPropertyValue("strokeDashoffset",e)&&this.setSVGAttribute({"stroke-dashoffset":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeLinecap",{get:function(){return this.getPropertyValue("strokeLinecap")},set:function(e){this.setPropertyValue("strokeLinecap",e)&&this.setSVGAttribute({"stroke-linecap":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeLinejoin",{get:function(){return this.getPropertyValue("strokeLinejoin")},set:function(e){this.setPropertyValue("strokeLinejoin",e)&&this.setSVGAttribute({"stroke-linejoin":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shapeRendering",{get:function(){return this.getPropertyValue("shapeRendering")},set:function(e){e=Lt(e),this.setPropertyValue("shapeRendering",e)&&this.setSVGAttribute({"shape-rendering":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelPerfect",{get:function(){return this.getPropertyValue("pixelPerfect")},set:function(e){e=Ue(e),e?this._positionPrecision=ue.pixelPerfectPrecision:this._positionPrecision=3,this.setPropertyValue("pixelPerfect",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rtl",{get:function(){return $(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(e){e=Ue(e),this.isBaseSprite&&(this.topParent.rtl=e),this._rtl=e},enumerable:!0,configurable:!0}),i.prototype.show=function(e){return this.showReal(e)},i.prototype.showReal=function(e){var t=this;if(!this.preventShow){var r,s=this.defaultState.properties;if(!this.disabled&&(this.isHidden||!this.visible||this.isHiding||s.opacity!=null&&this.opacity<s.opacity&&!this.isShowing)&&!this.isDisposed()){this.invalid&&this.validate(),this.positionInvalid&&this.validatePosition(),b(e)||(e=this.defaultState.transitionDuration),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this._showHideDisposer&&this.removeDispose(this._showHideDisposer),this._isHidden=!1,this.isHiding=!1,this.isShowing=!0,r=this.applyCurrentState(e),r&&!r.isFinished()?(this._showHideDisposer=r.events.on("animationended",function(){t.isShowing=!1}),this._disposers.push(this._showHideDisposer)):this.isShowing=!1;var n=this.defaultState.properties.visible;$(n)||(n=!0),this.visible=n,this.readerHidden=!1,this.dispatchImmediately("shown")}return r}},i.prototype.hide=function(e){return this.hideReal(e)},i.prototype.hideReal=function(e){var t=this,r;if(!this.isHiding&&this.visible&&!this.isDisposed()){this.tooltip&&this.tooltip.currentSprite==this&&this.hideTooltip(0),this._hideAnimation&&(this._hideAnimation.kill(),this._hideAnimation=void 0),this.isShowing=!1,this._showHideDisposer&&this.removeDispose(this._showHideDisposer);var s=this.hiddenState;s?(r=this.setState(s,e,void 0),r&&!r.isFinished()?(this._hideAnimation=r,this._showHideDisposer=r.events.on("animationended",function(){t.isHiding=!1,t._isHidden=!0,s.properties.visible==!1&&(t.visible=!1)},this),this._disposers.push(this._showHideDisposer),this._disposers.push(r)):(this.isHiding=!1,this._isHidden=!0)):(this.visible=!1,this.isHiding=!1,this._isHidden=!0),this.readerHidden=!0,this.dispatchImmediately("hidden"),this.invalidate()}return b(e)||(e=this.hiddenState.transitionDuration),r},Object.defineProperty(i.prototype,"visible",{get:function(){return this.getVisibility()},set:function(e){e=Ue(e),this.setVisibility(e)},enumerable:!0,configurable:!0}),i.prototype.getVisibility=function(){var e=this.getPropertyValue("visible");return $(e)||(e=!0),e},i.prototype.setVisibility=function(e){if(this.setPropertyValue("visible",e)&&(e?this.group.removeAttr("visibility"):this.group.attr({visibility:"hidden"}),this.events.isEnabled("visibilitychanged"))){var t={type:"visibilitychanged",target:this,visible:e};this.events.dispatchImmediately("visibilitychanged",t)}},Object.defineProperty(i.prototype,"zIndex",{get:function(){return this.getPropertyValue("zIndex")},set:function(e){e=Oe(e),this.setPropertyValue("zIndex",e)&&this.dispatch("zIndexChanged")},enumerable:!0,configurable:!0}),i.prototype.toFront=function(){var e=this._parent;e&&e.children.indexOf(this)!=e.children.length-1&&(e.children.moveValue(this,e.children.length-1),this.dispatch("zIndexChanged"))},i.prototype.toBack=function(){var e=this._parent;e&&e.children.indexOf(this)!=0&&(e.children.moveValue(this,0),this.dispatch("zIndexChanged"))},Object.defineProperty(i.prototype,"userClassName",{get:function(){return this.getPropertyValue("userClassName")},set:function(e){this.setPropertyValue("userClassName",e)&&(!e&&this.userClassName&&this.group.removeClass(this.userClassName),this.setClassName())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){if(this._tooltip)return this._tooltip;if(this.virtualParent)return this.virtualParent.tooltip;if(this._parent)return this._parent.tooltip},set:function(e){this._tooltip&&this.removeDispose(this._tooltip),this._tooltip=e,e&&(e.parent=this.tooltipContainer)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipDataItem",{get:function(){var e=this._tooltipDataItem;return e||this.dataItem},set:function(e){this._tooltipDataItem=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipColorSource",{get:function(){return this._tooltipColorSource},set:function(e){this._tooltipColorSource=e},enumerable:!0,configurable:!0}),i.prototype.showTooltip=function(e){this.showTooltipOn=="always"&&!this._tooltip&&this.tooltip&&(this._tooltip=this.tooltip.clone()),!e&&this.tooltipPosition=="pointer"&&this.isHover&&(e=er(re().lastPointer.point,this.svgContainer.SVGContainer,this.svgContainer.cssScale));for(var t=this;t!=null;){if(!t.visible||t.disabled||t.__disabled){this._tooltip&&this._tooltip.visible&&this._tooltip.hide(0);return}t=t.parent}if($(this.tooltipText)||$(this.tooltipHTML)){var r=this.tooltip,s=this.tooltipDataItem;if(r){r.targetSprite=this;var n=this,o=this.tooltipColorSource;if((r.getStrokeFromObject||r.getFillFromObject)&&o&&(o.isTemplate?s&&Ms(s.sprites,function(c){return c.clonedFrom==o?(n=c,!1):!0}):n=o),r.getStrokeFromObject){for(var l=this.stroke,u=n;u.parent!=null&&(l=u.stroke,l==null&&(u=u.parent),l==null););l instanceof de?r.background.animate({property:"stroke",to:l},r.animationDuration):r.background.stroke=l}if(r.dataItem=s,r.label.populateStringFrom=this,r.getFillFromObject){for(var h=this.fill,u=n;u.parent!=null;)if(h=u.fill,h==null||h instanceof de&&h.rgb==null)u=u.parent;else if(h!=null)break;h==null&&(h=Z("#000000")),h instanceof de&&r.visible?r.background.animate({property:"fill",to:h},r.animationDuration):r.background.fill=h,r.autoTextColor&&h instanceof de&&(r.label.fill=h.alternative)}var p="";if(this.tooltipHTML&&(r.html=this.tooltipHTML,p=this.tooltipHTML),this.tooltipText&&(r.text=this.tooltipText,p=this.tooltipText),this.updateTooltipPosition(e))if(r.readerDescribedBy=this.uidAttr(),r.label.invalid&&r.label.validate(),p!=null&&p!=""&&r.label.currentText!=""){r&&!r.parent&&(r.parent=this.tooltipContainer);var d=r.defaultState.transitionDuration;return d<=0&&(d=1),r.show(d),r.currentSprite=this,!0}else this.hideTooltip(0);else this.hideTooltip(0)}}return!1},i.prototype.updateTooltipPosition=function(e){var t=this;if(this.tooltipPosition=="pointer"){if(this._interactionDisposer&&this._interactionDisposer.dispose(),this._interactionDisposer=re().body.events.on("track",function(s){return t.pointTooltipTo(er(s.point,t.svgContainer.SVGContainer,t.svgContainer.cssScale),!0)}),e)return this.pointTooltipTo(e,!0)}else{var r=Jt({x:this.getTooltipX(),y:this.getTooltipY()},this);return this.pointTooltipTo(r)}},i.prototype.pointTooltipTo=function(e,t){var r=this.tooltip;return r&&this.topParent&&(r.showInViewport||ml(e,{x:0,y:0,width:this.topParent.maxWidth,height:this.topParent.maxHeight}))?(r.pointTo(e,t),!0):!1},i.prototype.hideTooltip=function(e){if(this.showTooltipOn!="always"){var t=this.tooltip;t&&(t.targetSprite==this&&(t.targetSprite=void 0),t.hide(e),this._interactionDisposer&&(this._interactionDisposer.dispose(),this._interactionDisposer=void 0))}},Object.defineProperty(i.prototype,"tooltipHTML",{get:function(){return this.getPropertyValue("tooltipHTML")},set:function(e){e=Lt(e),this.hoverable=!0,this.setPropertyValue("tooltipHTML",e)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipText",{get:function(){return this.getPropertyValue("tooltipText")},set:function(e){e=Lt(e),e&&(this.hoverable=!0),this.setPropertyValue("tooltipText",e)&&this.tooltip&&this.tooltip.visible&&this.showTooltip()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipContainer",{get:function(){if(this._tooltipContainer)return this._tooltipContainer;if(this._parent)return this._parent.tooltipContainer},set:function(e){this._tooltipContainer=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipX",{get:function(){return this.getTooltipX()},set:function(e){this.setPercentProperty("tooltipX",e)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"alwaysShowTooltip",{get:function(){return this.getPropertyValue("showTooltipOn")=="always"},set:function(e){e=Ue(e),e&&(this.showTooltipOn="always")},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showTooltipOn",{get:function(){return this.getPropertyValue("showTooltipOn")},set:function(e){this.setPropertyValue("showTooltipOn",e)&&(e=="hit"&&(this.clickable=!0),this.tooltip&&(e=="always"?this.showTooltip():this.handleAlwaysShowTooltip()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipPosition",{get:function(){return this.getPropertyValue("tooltipPosition")},set:function(e){this.setPropertyValue("tooltipPosition",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipY",{get:function(){return this.getTooltipY()},set:function(e){this.setPercentProperty("tooltipY",e)&&this.tooltip&&this.tooltip.invalidate()},enumerable:!0,configurable:!0}),i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");$(e)||(e=k(50));var t;return b(e)&&(t=e),e instanceof ae&&(t=this.maxLeftSelf+this._measuredWidthSelf*e.value-this.pixelPaddingLeft-this.ex),b(t)||(t=0),t},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");$(e)||(e=k(50));var t;return b(e)&&(t=e),e instanceof ae&&(t=this.maxTopSelf+this._measuredHeightSelf*e.value-this.pixelPaddingTop-this.ey),b(t)||(t=0),t},i.prototype.raiseCriticalError=function(e,t){this.svgContainer&&(this._adapterO?this.modal.content=this._adapterO.apply("criticalError",e).message:this.modal.content=e.message,t?this.modal.closable=!0:this.disabled=!0,ue.suppressErrors||this.modal.open()),ue.verbose&&console.log(e)},i.prototype.processConfig=function(e){e&&($(e.tooltipColorSource)&&se(e.tooltipColorSource)&&this.map.hasKey(e.tooltipColorSource)&&(e.tooltipColorSource=this.map.getKey(e.tooltipColorSource)),$(e.cursorOverStyle)&&se(e.cursorOverStyle)&&(e.cursorOverStyle=this.getCursorStyle(e.cursorOverStyle)),$(e.cursorDowntyle)&&se(e.cursorDowntyle)&&(e.cursorDowntyle=this.getCursorStyle(e.cursorDowntyle)),$(e.cursorOptions)&&($(e.cursorOptions.overStyle)&&se(e.cursorOptions.overStyle)&&(e.cursorOptions.overStyle=this.getCursorStyle(e.cursorOptions.overStyle)),$(e.cursorOptions.downStyle)&&se(e.cursorOptions.downStyle)&&(e.cursorOptions.downStyle=this.getCursorStyle(e.cursorOptions.downStyle)))),a.prototype.processConfig.call(this,e),this.processDelayedMap()},i.prototype.getCursorStyle=function(e){switch(e){case"grab":return Re.grab;case"grabbing":return Re.grabbing;case"pointer":return Re.pointer;case"horizontalResize":return Re.horizontalResize;case"verticalResize":return Re.verticalResize;default:return Re.default}},i.prototype.configOrder=function(e,t){return e==t?0:e=="tooltipColorSource"?1:t=="tooltipColorSource"?-1:a.prototype.configOrder.call(this,e,t)},Object.defineProperty(i.prototype,"isHidden",{get:function(){return this._isHidden?this._isHidden:this._parent?this._parent.isHidden:!1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showOnInit",{get:function(){return this.getPropertyValue("showOnInit")},set:function(e){e=Ue(e),this.setShowOnInit(e)},enumerable:!0,configurable:!0}),i.prototype.setShowOnInit=function(e){this.setPropertyValue("showOnInit",e)&&(this.isTemplate||(e&&!this.inited&&!this.hidden?(this._showOnInitDisposer=new Pe([_.events.once("enterframe",this.hideInitially,this),this.events.once("beforevalidated",this.hideInitially,this,!1),this.events.on("inited",this.appear,this,!1)]),this._disposers.push(this._showOnInitDisposer)):this._showOnInitDisposer&&this._showOnInitDisposer.dispose()))},i.prototype.hideInitially=function(){this.isDisposed()||(this.appeared=!1,this.inited||this.hide(0))},i.prototype.appear=function(){var e=this;if(this.appeared=!1,!this.hidden&&!this.isHidden&&this.hide(0),this.hidden)this.appeared=!0,this.dispatch("appeared");else{var t=this.show();t&&!t.isFinished()?this.addDisposer(t.events.on("animationended",function(){e.appeared=!0,e.dispatch("appeared")})):(this.appeared=!0,this.dispatch("appeared"))}},Object.defineProperty(i.prototype,"hidden",{get:function(){return this.getPropertyValue("hidden")},set:function(e){e=Ue(e),this.setPropertyValue("hidden",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this._bbox},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"plugins",{get:function(){var e=this;return this._plugins||(this._plugins=new he,this._disposers.push(this._plugins.events.on("inserted",function(t){t.newValue.target=e,t.newValue.init()})),this._disposers.push(new ge(this._plugins))),this._plugins},enumerable:!0,configurable:!0}),i.prototype._systemUpdate=function(e){this.validate()},i.prototype._systemCheckIfValidate=function(){return!0},i.prototype._systemValidatePositions=function(){this.validatePosition()},i.prototype._systemValidateLayouts=function(){},i})(It);_.registeredClasses.Sprite=U;var Op=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._rules=new he,e._appliedRules={},e._appliedTargets=[],e._useDefault=!0,e.adapter=new ut(e),e._enabled=!1,e._responsiveDisposers=[],e._noStates=[],e.className="Responsive",e.rules.events.on("inserted",function(){e.checkRules()},!0),e.rules.events.on("removed",function(){e.checkRules()},!0),e._disposers.push(e.rules.events),e.applyTheme(),e}return Object.defineProperty(i.prototype,"component",{get:function(){return this._component},set:function(e){var t=this;e!=this._component&&(this.disposeResponsiveHandlers(),this._component=e,this._responsiveDisposers.push(Me(this.component).events.on("sizechanged",function(){t.checkRules()},this)),this._responsiveDisposers.push(Me(this.component).events.once("datavalidated",function(){t._component.isReady()&&t.checkRules(!0)},this)),this.enabled=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"enabled",{get:function(){return this.adapter.apply("enabled",this._enabled)},set:function(e){this._enabled!=e&&(this._enabled=e,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useDefault",{get:function(){return this.adapter.apply("useDefault",this._useDefault)},set:function(e){this._useDefault!=e&&(this._useDefault=e,this.applyRules())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rules",{get:function(){return this.adapter.apply("rules",this._rules)},set:function(e){this._rules=e,this._enabled=!0,this.applyRules()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"defaultRules",{get:function(){return this.adapter.apply("defaultRules",tt)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"allRules",{get:function(){var e=new he;return this.useDefault&&e.copyFrom(this.defaultRules),e.copyFrom(this.rules),this.adapter.apply("allRules",e)},enumerable:!0,configurable:!0}),i.prototype.isApplied=function(e){var t=this._appliedRules[e];return $(t)?t:!1},i.prototype.checkRules=function(e){var t=this;e===void 0&&(e=!1);var r=this.allRules;if(!(!r||r.length==0)){var s=!1,n=Me(this.component);if(!(n.pixelWidth==0||n.pixelHeight==0)&&(V(r.iterator(),function(o){o.id||(o.id=_.getUniqueId());var l=o.relevant(n);(l&&!t.isApplied(o.id)||!l&&t.isApplied(o.id))&&(s=!0),t._appliedRules[o.id]=l}),e&&(s=!0),s)){if(!this.component.isReady()){n.hidden=!0,n.events.once("ready",function(o){o.target.show(0),t._applyRules()});return}this.dispatchImmediately("ruleschanged"),this._applyRules()}}},i.prototype._applyRules=function(){var e=this;this._timeout&&this._timeout.dispose(),this._timeout=this.setTimeout(function(){e.applyRules()},10)},i.prototype.applyRules=function(e){var t=this,r=$(e)?e:Me(this.component),s=!1;if(this.enabled){var n=!1;V(this.allRules.iterator(),function(o){var l=t.getState(o,r);l&&(s||(Ut(t._appliedTargets,r.uid)!==-1&&r.setState(t.getDefaultState(r),0),s=!0),t.isApplied(Me(o.id))&&(l.transitionDuration=0,t.setTargetState(r,l),t.dispatchImmediately("ruleapplied",{rule:o}),n=!0))}),n?of(this._appliedTargets,r.uid):ee(this._appliedTargets,r.uid)}r.children&&V(r.children.iterator(),function(o){t.applyRules(o)})},i.prototype.getState=function(e,t){var r="responsive-"+e.id,s=t.uid+"_"+r;if(Ut(this._noStates,s)===-1){if(t.states.hasKey(r))return t.states.getKey(r);var n=e.state(t,r);return n||this._noStates.push(s),n}},i.prototype.getDefaultState=function(e){return e.states.hasKey("responsive-default")?e.states.getKey("responsive-default"):e.states.create("responsive-default")},i.prototype.setTargetState=function(e,t){var r=this,s=this.getDefaultState(e);q(t.properties,function(n,o){$(s.properties[n])||(s.properties[n]=r.getValue(e,n))}),e.setState(t)},i.prototype.getValue=function(e,t){var r=e.getPropertyValue(t);return!$(r)&&$(e[t])&&(r=e[t]),r},i.prototype.dispose=function(){this.disposeResponsiveHandlers(),a.prototype.dispose.call(this)},i.prototype.disposeResponsiveHandlers=function(){for(var e=this._responsiveDisposers.pop();e;)e.dispose(),e=this._responsiveDisposers.pop()},i})(It);var tt=new he;tt.events.on("inserted",function(a){a.newValue.id=_.getUniqueId()});var lt=(function(){function a(){}return a.widthXXS=function(i){return i.pixelWidth<=a.XXS},a.widthXS=function(i){return i.pixelWidth<=a.XS},a.widthS=function(i){return i.pixelWidth<=a.S},a.widthM=function(i){return i.pixelWidth<=a.M},a.widthL=function(i){return i.pixelWidth<=a.L},a.widthXL=function(i){return i.pixelWidth<=a.XL},a.widthXXL=function(i){return i.pixelWidth<=a.XXL},a.heightXXS=function(i){return i.pixelHeight<=a.XXS},a.heightXS=function(i){return i.pixelHeight<=a.XS},a.heightS=function(i){return i.pixelHeight<=a.S},a.heightM=function(i){return i.pixelHeight<=a.M},a.heightL=function(i){return i.pixelHeight<=a.L},a.heightXL=function(i){return i.pixelHeight<=a.XL},a.heightXXL=function(i){return i.pixelHeight<=a.XXL},a.isXXS=function(i){return i.pixelWidth<=a.XXS&&i.pixelHeight<=a.XXS},a.isXS=function(i){return i.pixelWidth<=a.XS&&i.pixelHeight<=a.XS},a.isS=function(i){return i.pixelWidth<=a.S&&i.pixelHeight<=a.S},a.isM=function(i){return i.pixelWidth<=a.M&&i.pixelHeight<=a.M},a.isL=function(i){return i.pixelWidth<=a.L&&i.pixelHeight<=a.L},a.isXL=function(i){return i.pixelWidth<=a.XL&&i.pixelHeight<=a.XL},a.isXXL=function(i){return i.pixelWidth<=a.XXL&&i.pixelHeight<=a.XXL},a.maybeXXS=function(i){return i.pixelWidth<=a.XXS||i.pixelHeight<=a.XXS},a.maybeXS=function(i){return i.pixelWidth<=a.XS||i.pixelHeight<=a.XS},a.maybeS=function(i){return i.pixelWidth<=a.S||i.pixelHeight<=a.S},a.maybeM=function(i){return i.pixelWidth<=a.M||i.pixelHeight<=a.M},a.maybeL=function(i){return i.pixelWidth<=a.L||i.pixelHeight<=a.L},a.maybeXL=function(i){return i.pixelWidth<=a.XL||i.pixelHeight<=a.XL},a.maybeXXL=function(i){return i.pixelWidth<=a.XXL||i.pixelHeight<=a.XXL},a.XXS=100,a.XS=200,a.S=300,a.M=400,a.L=600,a.XL=800,a.XXL=1e3,a})();var Je=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.isOversized=!1,e.className="Label",e.fill=new J().getFor("text"),e.wrap=!1,e.truncate=!1,e.fullWords=!0,e.ellipsis="\u2026",e.textAlign="start",e.textValign="top",e.layout="absolute",e.baseLineRatio=-.27,e._positionPrecision=1,e.events.on("maxsizechanged",function(){e.inited&&e.handleMaxSize()},e,!1),e.events.once("validated",e.handleValidate,e,!1),e.applyTheme(),e}return i.prototype.afterDraw=function(){a.prototype.afterDraw.call(this),this.validatePosition()},i.prototype.setPaper=function(e){var t=a.prototype.setPaper.call(this,e);return t&&this.hardInvalidate(),t},i.prototype.handleValidate=function(){(this.currentText||this.text)&&(this.bbox.width==0||this.bbox.height==0)&&_.events.once("exitframe",this.hardInvalidate,this)},i.prototype.handleMaxSize=function(){(this.bbox.width>this.availableWidth||this.bbox.width<this.availableWidth&&(this.isOversized||this.truncate)||this.bbox.height>this.availableHeight||this.bbox.height<this.availableHeight&&this.isOversized)&&this.invalidate()},i.prototype.arrange=function(){},i.prototype.updateCurrentText=function(){var e,t;Xa(this.html)&&this.paper.supportsForeignObject()?(e="html",t=this.html):(e="svg",t=this.text),Fe(t)&&(t=t.toString()),$(t)&&t!==""&&(t=this.populateString(t,this.dataItem)),e=="html"?this._adapterO&&(t=this._adapterO.apply("htmlOutput",t)):this._adapterO&&(t=this._adapterO.apply("textOutput",t));var r=t!=this.currentText||e!=this._currentFormat;return this.currentText=t,this._currentFormat=e,r},i.prototype.hardInvalidate=function(){this._prevStatus="",this.invalidate()},i.prototype.getLineBBox=function(e){var t=e&&e.element,r=t&&t.node;r&&r.parentNode&&(e.bbox=t.getBBox())},i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.bbox.width,t=this.bbox.height,r=this.topParent;if(r&&(!r.maxWidth||!r.maxHeight)){r.events.once("maxsizechanged",this.hardInvalidate,this,!1);return}var s=ie(this.availableWidth-this.pixelPaddingLeft-this.pixelPaddingRight,0),n=ie(this.availableHeight-this.pixelPaddingTop-this.pixelPaddingBottom,0),o=n+","+s+this.wrap+this.truncate+this.fullWords+this.rtl+this.ellipsis;if(!(!this.updateCurrentText()&&this.inited&&this._prevStatus==o)){this._measuredWidth=0,this._measuredHeight=0,this.isOversized=!1;var l=this._currentFormat,u=this.currentText;if(!$(u)||u==""){this.element.attr({display:"none"});return}var h=u.split(`
|
|
22
|
-
`);this._prevStatus=o,this.textAlign=this.textAlign;var p=this.group.getAttr("display");if(p=="none"&&this.group.removeAttr("display"),this.textPathElement&&this.textPathElement.removeChildren(),l==="svg"){this.element.removeAttr("display");var d=this.element;this.resetBBox();for(var c=0,f="",y=0;y<h.length;y++){var g=h[y];if(g==""){var v=this.getSVGLineElement("",0);v.add(this.getSvgElement(".",mi().translateStyleShortcuts(f))),d.add(v);var x=Math.ceil(v.getBBox().height);x>0&&(c+=x),d.removeElement(v);var P=this.getLineInfo(y);P&&(P.text="",P.element.textContent="");continue}var T=mi().chunk(g,null,this.ignoreFormatting),C=0,O=!0,w=!1,D=this.getLineInfo(y);D?(D.text="",D.element.textContent=""):(D={text:"",element:this.getSVGLineElement("",0),complex:!1},d.add(D.element)),D.element.removeAttr("display"),D.element.removeChildren(),this.textPathElement&&D.element.add(this.textPathElement);for(var A=0;A<T.length;A++){A&&(D.complex=!0);var H=T[A];if(H.type==="format")f=H.text;else{if(w)continue;if(D.text=H.text,D.style=mi().translateStyleShortcuts(f),this.textPathElement?this.getSvgElement(D.text,D.style,this.textPathElement):this.getSvgElement(D.text,D.style,D.element),this.getLineBBox(D),D.bbox.width=Math.ceil(D.bbox.width),C<D.bbox.height&&(C=D.bbox.height),(this.wrap||this.truncate)&&D.bbox.width>s){this.isOversized=!0;var E=D.element.textContent,j=D.bbox.width/E.length,ce=le(Math.ceil((D.bbox.width-s)/j),E.length);if(this.truncate){var be=!1,ke=D.element.node;if(ke&&ke.childNodes)for(var K=D.element.node.childNodes.length-1;K>=0;K--){var De=D.element.node.childNodes[K];if(be&&D.bbox.width<=s&&(De.textContent+=" "+this.ellipsis,D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),D.bbox.width<=s))break;be=!1;var Le=De.textContent;for(E=D.element.textContent,ce=le(Math.ceil((D.bbox.width-s)/j),E.length);D.bbox.width>s&&ce<=E.length&&ce>0;){var ze=ie(E.length-ce-this.ellipsis.length,1);ze<=1&&(ce=0,K>0&&(be=!0,D.element.node.removeChild(De))),Le=Gs(Le,ze,this.ellipsis,this.fullWords,this.rtl),Le.length>ze&&this.fullWords&&(Le=Gs(Le,ze,this.ellipsis,!1,this.rtl)),De.textContent=Le,D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),ce=Math.ceil(ce*1.1)}w=!0}}else{var ft=D.element.node;if(ft){for(var at=D.element.node.lastChild,oe=void 0;D.bbox.width>s&&ce<=E.length&&ce>0;){var ze=ie(H.text.length-ce,1);if(O?oe=zn(H.text,ze,!0,this.rtl):(oe=zn(H.text,ze,!0,this.rtl,!1),(oe[0].length>ze||ze===1)&&(D.element.node.removeChild(at),ce=0)),ce>0){var Be=oe.shift();O&&(Be=Xn(Be)),at.textContent=mi().cleanUp(Be)}D.bbox=D.element.getBBox(),D.bbox.width=Math.floor(D.bbox.width),ce++}if(oe.length>0){var st="";$(oe)&&(this.rtl?st+=oe.join("")+f:st+=f+oe.join("").replace(/([\[\]]{1})/g,"$1$1"));for(var Hi=A+1;Hi<T.length;Hi++)T[Hi].type=="value"?st+=T[Hi].text.replace(/([\[\]]{1})/g,"$1$1"):st+=T[Hi].text;h.splice(y+1,0,st)}w=!0}}}this.bbox.width<D.bbox.width&&(this.bbox.width=D.bbox.width),this.bbox.height=c+C,this.textPathElement?D.element.attr({dy:-this.paddingBottom.toString()}):D.element.attr({x:"0",y:c+C,dy:I(this.baseLineRatio*C,3).toString()}),O=!1}}var Fi=D.element.node;if(Fi){var at=Fi.lastChild;at&&(at.textContent=this.rtl?Yh(at.textContent):Xh(at.textContent))}c+=C,this.addLineInfo(D,y)}this.maybeHideOversized(),this.measureFailed=!1,(this.bbox.width==0||this.bbox.height==0)&&(this.measureFailed=!0),this._measuredWidth=I(ie(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight)),this._measuredHeight=I(ie(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom)),this.alignSVGText(),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,(t!=this._measuredHeight||e!=this._measuredWidth)&&this.dispatch("transformed"),this.hideUnused(h.length)}else{this.element.removeAttr("display"),this.resetBBox();var d=this.element;d.removeChildren(),this.setCache("lineInfo",[],0);var ii=this.paper.foreignObject();d.add(ii),this.maxWidth&&ii.attr({width:this.maxWidth-this.pixelPaddingLeft-this.pixelPaddingRight}),this.maxHeight&&ii.attr({height:this.maxHeight-this.pixelPaddingTop-this.pixelPaddingBottom});var vi=this.getHTMLLineElement(u);ii.node.appendChild(vi),vi.style.display="inline-block";var dr=vi.clientWidth,Qi=vi.clientHeight;vi.style.display="block",this._bbox={x:0,y:0,width:dr,height:Qi},ii.attr({width:dr+1,height:Qi}),this.maybeHideOversized(),this._measuredWidth=ie(this.bbox.width,this.pixelWidth-this.pixelPaddingLeft-this.pixelPaddingRight),this._measuredHeight=ie(this.bbox.height,this.pixelHeight-this.pixelPaddingTop-this.pixelPaddingBottom),this.bbox.width=this._measuredWidth,this.bbox.height=this._measuredHeight,this.truncate&&(vi.style.overflow="hidden"),(dr>s||Qi>n)&&(this.isOversized=!0)}this.setStyles(),this.updateCenter(),this.updateBackground(),p=="none"&&this.group.attr({display:"none"}),this.pathElement&&this.paper.appendDef(this.pathElement)}},i.prototype.maybeHideOversized=function(){this.hideOversized&&(this.availableWidth<this.bbox.width||this.availableHeight<this.bbox.height?(this.element.attr({display:"none"}),this.isOversized=!0):(this.element.removeAttr("display"),this.isOversized=!1))},i.prototype.alignSVGText=function(){var e=this.element,t=e.node.children||e.node.childNodes;if(!(!t||t&&t.length==0)){var r=this._measuredWidth,s=this._measuredHeight;this.pixelPaddingLeft,this.pixelPaddingRight,this.pixelPaddingTop,this.pixelPaddingBottom,this.rtl?e.attr({direction:"rtl"}):e.removeAttr("direction");for(var n=t.length-1;n>=0;n--){var o=t[n];if(o.setAttribute("text-anchor",this.textAlign),this.textPathElement)o.removeAttribute("x"),o.removeAttribute("y");else{switch(this.textAlign){case"middle":o.setAttribute("x",(r/2).toString()+"px");break;case"end":this.rtl||o.setAttribute("x",r.toString());break;default:this.rtl?o.setAttribute("x",r.toString()):o.removeAttribute("text-anchor");break}var l=Oe(o.getAttribute("y"));switch(this.textValign){case"middle":o.setAttribute("y",((l||0)+(s-this.bbox.height)/2).toString());break;case"bottom":o.setAttribute("y",((l||0)+s-this.bbox.height).toString());break;default:o.setAttribute("y",(l||0).toString());break}}}}},i.prototype.getSVGLineElement=function(e,t){var r=this.paper.addGroup("text");return r.textContent=e,r.attr({x:"0"}),$(t)&&r.attr({y:t.toString()}),(this.truncate||this.wrap)&&r.attr({overflow:"hidden"}),r},Object.defineProperty(i.prototype,"rtl",{get:function(){return $(this._rtl)?this._rtl:this._topParent?this._topParent.rtl:!1},set:function(e){e=Ue(e),this._rtl=e,this.element&&this.alignSVGText()},enumerable:!0,configurable:!0}),i.prototype.resetBBox=function(){this._bbox={x:0,y:0,width:0,height:0}},i.prototype.getHTMLLineElement=function(e){var t=document.createElement("div");switch(t.innerHTML=e,this.textAlign){case"middle":t.style.textAlign="center";break;case"end":t.style.textAlign="right";break}return this.wrap?t.style.wordWrap="break-word":t.style.whiteSpace="nowrap",this.rtl&&(t.style.direction="rtl"),$(this.fill)&&(t.style.color=this.fill.toString()),t},i.prototype.setStyles=function(){var e=this.element;!this.selectable||this.draggable||this.resizable||this.swipeable?e.addStyle({webkitUserSelect:"none",msUserSelect:"none"}):this.selectable&&(e.removeStyle("webkitUserSelect"),e.removeStyle("msUserSelect"))},i.prototype.hideUnused=function(e){this.initLineCache();var t=this.getCache("lineInfo");if(t.length>=e)for(var r=e;r<t.length;r++){var s=t[r];s&&s.element&&s.element.attr({display:"none"})}},Object.defineProperty(i.prototype,"text",{get:function(){return this.getPropertyValue("text")},set:function(e){this.setPropertyValue("text",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"path",{get:function(){return this.getPropertyValue("path")},set:function(e){this.setPropertyValue("path",e,!0)&&(this.pathElement&&this.pathElement.dispose(),this.textPathElement&&this.textPathElement.dispose(),this.pathElement=this.paper.add("path"),this.pathElement.attr({d:e}),this.pathElement.attr({id:"text-path-"+this.uid}),this._disposers.push(this.pathElement),this.textPathElement=this.paper.addGroup("textPath"),this.textPathElement.attrNS(Js,"xlink:href","#text-path-"+this.uid),this.textPathElement.attr({path:e}),this._disposers.push(this.textPathElement),this.hardInvalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationOnPath",{get:function(){return this.getPropertyValue("locationOnPath")},set:function(e){this.setPropertyValue("locationOnPath",e),this.textPathElement&&this.textPathElement.attr({startOffset:e*100+"%"})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseLineRatio",{get:function(){return this.getPropertyValue("baseLineRatio")},set:function(e){this.setPropertyValue("baseLineRatio",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wrap",{get:function(){return this.getPropertyValue("wrap")},set:function(e){this.resetBBox(),this.setPropertyValue("wrap",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"truncate",{get:function(){return this.getPropertyValue("truncate")},set:function(e){this.resetBBox(),this.setPropertyValue("truncate",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWords",{get:function(){return this.getPropertyValue("fullWords")},set:function(e){this.setPropertyValue("fullWords",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ellipsis",{get:function(){return this.getPropertyValue("ellipsis")},set:function(e){this.setPropertyValue("ellipsis",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selectable",{get:function(){return this.getPropertyValue("selectable")},set:function(e){this.setPropertyValue("selectable",e,!0),this.setStyles()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textAlign",{get:function(){return this.getPropertyValue("textAlign")},set:function(e){this.setPropertyValue("textAlign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"textValign",{get:function(){return this.getPropertyValue("textValign")},set:function(e){this.setPropertyValue("textValign",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.getPropertyValue("html")},set:function(e){if(this.setPropertyValue("html",e,!0),!$(e)){var t=this.element;t.removeChildrenByTag("foreignObject")}},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){if(a.prototype.setFill.call(this,e),this.html)for(var t=this.element,r=t.node.getElementsByTagName("div"),s=0;s<r.length;s++){var n=r[s];$(this.fill)&&(n.style.color=this.fill.toString())}},Object.defineProperty(i.prototype,"hideOversized",{get:function(){return this.getPropertyValue("hideOversized")},set:function(e){this.setPropertyValue("hideOversized",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ignoreFormatting",{get:function(){return this.getPropertyValue("ignoreFormatting")},set:function(e){this.setPropertyValue("ignoreFormatting",e,!0)},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){},i.prototype.getLineInfo=function(e){this.initLineCache();var t=this.getCache("lineInfo");return t.length>e?t[e]:void 0},i.prototype.addLineInfo=function(e,t){this.initLineCache(),this.getCache("lineInfo")[t]=e},i.prototype.initLineCache=function(){$(this.getCache("lineInfo"))||this.setCache("lineInfo",[],0)},i.prototype.setDataItem=function(e){this._sourceDataItemEvents&&this._sourceDataItemEvents.dispose(),e&&(this._sourceDataItemEvents=new Pe([e.events.on("valuechanged",this.invalidate,this,!1),e.events.on("workingvaluechanged",this.invalidate,this,!1),e.events.on("calculatedvaluechanged",this.invalidate,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),a.prototype.setDataItem.call(this,e)},Object.defineProperty(i.prototype,"availableWidth",{get:function(){return $(this.maxWidth)?this.maxWidth:this.pixelWidth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"availableHeight",{get:function(){return $(this.maxHeight)?this.maxHeight:this.pixelHeight},enumerable:!0,configurable:!0}),i.prototype.getSvgElement=function(e,t,r){var s=this.paper.add("tspan");if(s.textContent=e,t)if(ue.nonce&&r){var n="amcharts_element_style_"+btoa(t).replace(/[^\w]*/g,"");s.node.setAttribute("class",n);var o=document.createElementNS(da,"defs");r.node.appendChild(o);var l=document.createElement("style");l.type="text/css",l.innerHTML="."+n+" { "+t+"}",l.setAttribute("nonce",ue.nonce),o.appendChild(l)}else s.node.setAttribute("style",t);return r&&r.add(s),s},i.prototype.deepInvalidate=function(){a.prototype.deepInvalidate.call(this),this.hardInvalidate()},Object.defineProperty(i.prototype,"readerTitle",{get:function(){var e=this.getPropertyValue("readerTitle");return e?this.dataItem&&(e=this.populateString(e)):e=this.populateString(Us(Xa(this.html)?this.html:this.text)),e},set:function(e){e=Lt(e),this.setPropertyValue("readerTitle",e)&&this.applyAccessibility()},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.Label=Je;tt.push({relevant:lt.heightXS,state:function(a,i){if(a instanceof Je&&a.parent&&a.parent.isBaseSprite){var e=a.states.create(i);return e.properties.disabled=!0,e}return null}});var Ft=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RoundedRectangle",e.element=e.paper.add("path"),e.cornerRadius(3,3,3,3),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.innerWidth,t=this.innerHeight;if(b(e)&&b(t)){var r=le(e,t)/2,s=Ie(this.cornerRadiusTopLeft,r),n=Ie(this.cornerRadiusTopRight,r),o=Ie(this.cornerRadiusBottomRight,r),l=Ie(this.cornerRadiusBottomLeft,r),u=le(Math.abs(e/2),Math.abs(t/2)),h=X(s,0,u),p=X(n,0,u),d=X(o,0,u),c=X(l,0,u),f="M"+h+",0 L"+(e-p)+",0",y=" L"+c+","+t,g=" L0,"+h,v=" L"+e+","+(t-d),x=" a"+p+","+p+" 0 0 1 "+p+","+p,P=" a"+d+","+d+" 0 0 1 -"+d+","+d,T=" a"+c+","+c+" 0 0 1 -"+c+",-"+c,C=" a"+h+","+h+" 0 0 1 "+h+",-"+h,O=f+x+v+P+y+T+g+C+" Z";this.path=O}},i.prototype.cornerRadius=function(e,t,r,s){this.cornerRadiusTopLeft=e,this.cornerRadiusTopRight=t,this.cornerRadiusBottomLeft=r,this.cornerRadiusBottomRight=s},Object.defineProperty(i.prototype,"cornerRadiusTopLeft",{get:function(){return this.getPropertyValue("cornerRadiusTopLeft")},set:function(e){this.setPercentProperty("cornerRadiusTopLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusTopRight",{get:function(){return this.getPropertyValue("cornerRadiusTopRight")},set:function(e){this.setPercentProperty("cornerRadiusTopRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomRight",{get:function(){return this.getPropertyValue("cornerRadiusBottomRight")},set:function(e){this.setPercentProperty("cornerRadiusBottomRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadiusBottomLeft",{get:function(){return this.getPropertyValue("cornerRadiusBottomLeft")},set:function(e){this.setPercentProperty("cornerRadiusBottomLeft",e,!0)},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.isMeasured?{x:0,y:0,width:this.innerWidth,height:this.innerHeight}:{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.RoundedRectangle=Ft;var oi=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="Button",e.tooltipY=0,e.iconPosition="left",e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0;var t=new J,r=e.background;r.fill=t.getFor("secondaryButton"),r.stroke=t.getFor("secondaryButtonStroke"),r.fillOpacity=1,r.strokeOpacity=1,r.cornerRadius(3,3,3,3),e.label=new Je,e.label.fill=t.getFor("secondaryButtonText"),e.label.shouldClone=!1;var s=r.states.create("hover");s.properties.fillOpacity=1,s.properties.fill=t.getFor("secondaryButtonHover");var n=r.states.create("down");return n.transitionDuration=100,n.properties.fill=t.getFor("secondaryButtonDown"),n.properties.fillOpacity=1,e.role="button",e.focusable=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"icon",{get:function(){return this._icon},set:function(e){var t=this._icon;t&&(t.parent=void 0),e&&(this._icon=e,e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this.iconPosition=this.iconPosition,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iconPosition",{get:function(){return this.getPropertyValue("iconPosition")},set:function(e){this.setPropertyValue("iconPosition",e),this.icon&&(e=="left"?this.icon.toBack():this.icon.toFront())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label},set:function(e){this._label&&this.removeDispose(this._label),this._label=e,e&&(e.parent=this,e.interactionsEnabled=!1,this._disposers.push(this._label))},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new Ft},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e.label&&this.label.copyFrom(e.label),e.icon&&(this.icon=e.icon.clone())},i})(Y);_.registeredClasses.Button=oi;function Za(a){var i=F(a[0]),e={x:0,y:0},t=ue.minPolylineStep;b(t)||(t=.5);for(var r=0,s=a.length;r<s;r++){var n=a[r];xe(n,e)>t&&(i+=F(n),e=n)}return i}function R(a){return" M"+I(a.x,4)+","+I(a.y,4)+" "}function F(a){return" L"+I(a.x,4)+","+I(a.y,4)+" "}function Tr(a,i){return" Q"+I(i.x,4)+","+I(i.y,4)+" "+I(a.x,4)+","+I(a.y,4)}function Yr(a,i,e){return" C"+I(i.x,4)+","+I(i.y,4)+" "+I(e.x,4)+","+I(e.y,4)+" "+I(a.x,4)+","+I(a.y,4)}function Ee(){return" Z"}function pt(a,i,e,t){if(i==0)return"";b(t)||(t=e);var r="",s=",",n=Math.ceil(Math.abs(i)/180),o=1;i<0&&(o=0);var l=0,u=0,h=-B(a)*e,p=-N(a)*t;if(i<.5&&e>3e3){var d=a+i,c=I(B(d)*e,4),f=I(N(d)*t,4);return F({x:c,y:f})}for(var y=0;y<n;y++){var d=a+i/n*(y+1),c=I(B(d)*e+h-l,4),f=I(N(d)*t+p-u,4);r+=" a"+e+s+t+s+0+s+0+s+o+s+c+s+f,l=c,u=f}return r}function qi(a,i,e,t,r,s,n){if(i==0||(b(t)||(t=0),e==0&&t<=0))return"";if(e<t){var o=e;e=t,t=o,b(r)&&(r=r/t*e)}i=le(i,360),i==360&&(s=0,n=0);var l=a+i,u=N(le(i,45)/2);r=b(r)?r:e,s=s||0,n=b(n)?n:s;var h=r/e*t,p=r/e*s,d=r/e*n;s=X(s,0,(e-t)/2),p=X(p,0,(r-h)/2),n=X(n,0,(e-t)/2),d=X(d,0,(r-h)/2),s=I(X(s,0,e*u),4),p=I(X(p,0,r*u),4),n=I(X(n,0,t*u),4),d=I(X(d,0,h*u),4);var c=Math.asin(s/e/2)*br*2,f=Math.asin(p/r/2)*br*2;t<n&&(t=n),h<d&&(h=d);var y=Math.asin(n/t/2)*br*2,g=Math.asin(d/h/2)*br*2;b(y)||(y=0),b(g)||(g=0);var v=a+i/2,x={x:I(B(v)*t,4),y:N(v)*h},P={x:B(a)*(t+n),y:N(a)*(h+d)},T={x:B(a)*(e-s),y:N(a)*(r-p)},C={x:B(l)*(e-s),y:N(l)*(r-p)},O={x:B(l)*(t+n),y:N(l)*(h+d)},w={x:B(a+c)*e,y:N(a+f)*r},D={x:B(l-y)*t,y:N(l-g)*h};n+=n*N(y/2),d+=d*N(g/2),y>(l-a)/2&&(D=x);var A="";return i==360?A=R(T):(A=R(P),A+=F(T),A+=Ci(w,s,p,!0)),A+=pt(a+c,i-2*c,e,r),b(t)&&t!=0?(i==360&&s==0?A+=R(O):(A+=Ci(C,s,p,!0),A+=F(O),A+=Ci(D,n,d,!0)),A+=pt(l-y,-(i-2*y),t,h),(i<360||s>0)&&(A+=Ci(P,n,d,!0)),A+=F(P)):(A+=Ci(C,s,p,!0),i<360&&(A+=F(P))),A}function Ci(a,i,e,t,r,s){if(i==0)return"";s=s||0,r=!!r,t=!!t;var n=",",o=+t,l=+r;return" A"+i+n+e+n+s+n+l+n+o+n+I(a.x,4)+n+I(a.y,4)}function zl(a,i,e,t){return b(e)||(e=0),b(t)||(t=0),R({x:e,y:t})+F({x:e+a,y:t})+F({x:e+a,y:t+i})+F({x:e,y:t+i})+Ee()}function Ri(a,i){var e=",",t=" L";return i?"M"+a.x+e+a.y+t+a.x+e+(a.y+a.height)+t+(a.x+a.width)+e+(a.y+a.height)+t+(a.x+a.width)+e+a.y+t+a.x+e+a.y:"M"+a.x+e+a.y+t+(a.x+a.width)+e+a.y+t+(a.x+a.width)+e+(a.y+a.height)+t+a.x+e+(a.y+a.height)+t+a.x+e+a.y}var oo=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="ResizeButton",e.orientation="horizontal",e.layout="absolute",e.horizontalCenter="middle",e.verticalCenter="middle",e.draggable=!0,e.padding(8,8,8,8),e.background.cornerRadius(20,20,20,20);var t=new U;t.element=e.paper.add("path");var r=R({x:-2,y:-6});return r+=F({x:-2,y:6}),r+=R({x:2,y:-6}),r+=F({x:2,y:6}),t.path=r,t.pixelPerfect=!0,t.padding(0,4,0,4),t.stroke=new J().getFor("alternativeText"),t.strokeOpacity=.7,e.icon=t,e.label.dispose(),e.label=void 0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"orientation",{set:function(e){var t=this.icon;t&&(e=="horizontal"?t.rotation=0:t.rotation=-90)},enumerable:!0,configurable:!0}),i})(oi);_.registeredClasses.ResizeButton=oo;var ma=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._previousStart=0,e._previousEnd=1,e._prevStart=0,e._prevEnd=1,e._isBusy=!1,e._skipRangeEvents=!1,e.updateWhileMoving=!0,e.className="Scrollbar",e.minHeight=12,e.minWidth=12,e.animationDuration=0,e.animationEasing=Ui,e.margin(10,10,10,10);var t=new J,r=e.background;return r.cornerRadius(10,10,10,10),r.fill=t.getFor("fill"),r.fillOpacity=.5,e.showSystemTooltip=!0,e.startGrip=new oo,e.endGrip=new oo,e.events.on("transformed",function(){e.updateThumb()},e,!1),e.start=0,e.end=1,e.role="scrollbar",e.thumb.role="slider",e.thumb.readerLive="polite",e.startGrip.role="slider",e.endGrip.role="slider",e.events.once("inited",function(){e._previousStart=void 0,e.dispatchRangeChange()},void 0,!1),e.hideGrips=!1,e.orientation="horizontal",e.setSVGAttribute({"aria-valuemin":"0"}),e.setSVGAttribute({"aria-valuemax":"100"}),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),this.orientation==="horizontal"?($(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB to select grip buttons or left and right arrows to change selection")),$(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use left and right arrows to move selection")),$(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use left and right arrows to move left selection")),$(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use left and right arrows to move right selection")),this.readerOrientation="horizontal"):($(this.readerTitle)||(this.readerTitle=this.language.translate("Use TAB select grip buttons or up and down arrows to change selection")),$(this.thumb.readerDescription)||(this.thumb.readerDescription=this.language.translate("Use up and down arrows to move selection")),$(this.startGrip.readerDescription)||(this.startGrip.readerDescription=this.language.translate("Use up and down arrows to move upper selection")),$(this.endGrip.readerDescription)||(this.endGrip.readerDescription=this.language.translate("Use up and down arrows to move lower selection")),this.readerOrientation="vertical"),this.readerControls=this.baseSprite.uidAttr()},i.prototype.validateLayout=function(){this.updateSize(),a.prototype.validateLayout.call(this),this.updateExtremes()},i.prototype.processBackground=function(){a.prototype.processBackground.call(this);var e=this.background;e.clickable=!0,e.events.on("hit",this.handleBgHit,this,void 0)},i.prototype.handleBgHit=function(e){this.makeBusy();var t=e.spritePoint;t=At(t,this.background,this);var r=this.thumb;if(this.orientation=="horizontal"){var s=t.x-r.pixelWidth/2;s=X(s,0,this.innerWidth-r.pixelWidth),this._thumbAnimation=r.animate({property:"x",to:s},this.animationDuration,this.animationEasing)}else{var n=t.y-r.pixelHeight/2;n=X(n,0,this.innerHeight-r.pixelHeight),this._thumbAnimation=r.animate({property:"y",to:n},this.animationDuration,this.animationEasing)}this.animationDuration>0?this._thumbAnimation.events.on("animationended",this.makeUnbusy,this,!1):(this._thumb.validate(),this.makeUnbusy())},i.prototype.makeBusy=function(){this._isBusy=!0,this._skipRangeEvents=!1,this._unbusyTimeout&&this.removeDispose(this._unbusyTimeout),this._unbusyTimeout=void 0,this.stopAnimations()},i.prototype.stopAnimations=function(){this._thumbAnimation&&this._thumbAnimation.stop(!0),this._zoomAnimation&&this._zoomAnimation.stop(!0)},i.prototype.makeUnbusy=function(){this._unbusyTimeout=this.setTimeout(this.makeUnbusyReal.bind(this),this.animationDuration*1.1)},i.prototype.makeUnbusyReal=function(){this._usingGrip=void 0,this._isBusy=!1,this.updateWhileMoving||this.dispatchRangeChange()},i.prototype.dispatchRangeChange=function(){(this._previousEnd!=this.end||this._previousStart!=this.start)&&(this._previousStart=this.start,this._previousEnd=this.end,this.dispatch("rangechanged"))},i.prototype.updateThumb=function(e){if(e===void 0&&(e=!0),!!this.parent){var t=this.thumb,r=this.start,s=this.end,n=this.startGrip,o=this.endGrip,l=this.adapter.apply("positionValueDirection",{flipped:!1}).flipped,u=l?"To %1":"From %1",h=l?"From %1":"To %1",p,d;if(this.orientation=="horizontal"){var c=this.innerWidth;t.width=c*(s-r),t.maxX=c-t.pixelWidth,t.x=r*c,n.moveTo({x:t.pixelX,y:0},void 0,void 0,!0),o.moveTo({x:t.pixelX+t.pixelWidth,y:0},void 0,void 0,!0),p=this.adapter.apply("positionValue",{value:Math.round(r*100)+"%",position:r}).value,d=this.adapter.apply("positionValue",{value:Math.round(s*100)+"%",position:s}).value,n.readerTitle=this.language.translate(u,void 0,p),n.readerValueNow=""+Math.round(r*100),n.readerValueText=n.readerTitle,o.readerTitle=this.language.translate(h,void 0,d),o.readerValueNow=""+Math.round(s*100),o.readerValueText=o.readerTitle}else{var f=this.innerHeight;t.height=f*(s-r),t.maxY=f-t.pixelHeight,t.y=(1-s)*f,n.moveTo({x:0,y:t.pixelY+t.pixelHeight},void 0,void 0,!0),o.moveTo({x:0,y:t.pixelY},void 0,void 0,!0),p=this.adapter.apply("positionValue",{value:Math.round((1-r)*100)+"%",position:1-r}).value,d=this.adapter.apply("positionValue",{value:Math.round((1-s)*100)+"%",position:1-s}).value,n.readerTitle=this.language.translate(h,void 0,p),n.readerValueNow=""+Math.round(r*100),n.readerValueText=n.readerTitle,o.readerTitle=this.language.translate(u,void 0,d),o.readerValueNow=""+Math.round(s*100),o.readerValueText=o.readerTitle}t.readerTitle=this.language.translate("From %1 to %2",void 0,p,d),t.readerValueNow=""+Math.round(r*100),t.readerValueText=t.readerTitle,this.readerValueNow=""+Math.round(r*100),this.readerValueText=t.readerTitle,!this._skipRangeEvents&&this.updateWhileMoving&&e&&this.dispatchRangeChange()}},i.prototype.updateExtremes=function(){var e=this.orientation,t=0,r=0,s=0,n=0;e=="horizontal"?(s=this.innerWidth,r=n=this.innerHeight/2):(n=this.innerHeight,t=s=this.innerWidth/2);var o=this.startGrip;o.minX=t,o.maxX=s,o.minY=r,o.maxY=n;var l=this.endGrip;l.minX=t,l.maxX=s,l.minY=r,l.maxY=n;var u=this.thumb;u.minX=t,u.maxX=s,u.minY=r,u.maxY=n},i.prototype.updateSize=function(){var e=this.orientation,t=this.startGrip;t&&(t.orientation=e),this.endGrip&&(this.endGrip.orientation=e);var r=this.thumb;r&&(e=="horizontal"?(b(this._pixelWidth)||this.width instanceof ae||(this.width=k(100)),$(this.percentHeight)&&(this.height=this.minHeight),r.height=this.innerHeight,r.verticalCenter="middle",r.horizontalCenter="left"):(b(this._pixelHeight)||this.height instanceof ae||(this.height=k(100)),$(this.percentWidth)&&(this.width=this.minWidth),r.width=this.innerWidth,r.verticalCenter="top",r.horizontalCenter="middle"))},Object.defineProperty(i.prototype,"isBusy",{get:function(){return this._isBusy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return Math.min(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__start",{get:function(){return this._start},set:function(e){this._start=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return Math.max(this.getPosition(this._start),this.getPosition(this._end))},set:function(e){this._isBusy||(this.__end=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__end",{get:function(){return this._end},set:function(e){this._end=this.getPosition(e),this.updateThumb()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"range",{get:function(){return{start:this.start,end:this.end,priority:this._usingGrip}},enumerable:!0,configurable:!0}),i.prototype.skipRangeEvents=function(){this._isBusy||(this._skipRangeEvents=!0)},i.prototype.fixRange=function(e){(e.start!=I(this._start,2)||e.end!=I(this._end,2))&&(this._start=e.start,this._end=e.end,this._skipRangeEvents=!0,this.updateThumb(),this._skipRangeEvents=!1,this.thumb.validate(),this.thumb.background.validate())},i.prototype.getPosition=function(e){return X(I(e,4),0,1)},Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&(e==="horizontal"?(this.startGrip.cursorOverStyle=Re.horizontalResize,this.endGrip.cursorOverStyle=Re.horizontalResize):(this.startGrip.cursorOverStyle=Re.verticalResize,this.endGrip.cursorOverStyle=Re.verticalResize),this.updateByOrientation(),this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.updateByOrientation=function(){},Object.defineProperty(i.prototype,"startGrip",{get:function(){return this._startGrip},set:function(e){this._startGrip&&this.removeDispose(this._startGrip),this._startGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endGrip",{get:function(){return this._endGrip},set:function(e){this._endGrip&&this.removeDispose(this._endGrip),this._endGrip=e,this.processGrip(e)},enumerable:!0,configurable:!0}),i.prototype.processGrip=function(e){e.parent=this,e.isMeasured=!1,e.focusable=!0,e.shouldClone=!1,e.zIndex=100,e.events.on("drag",this.handleGripDrag,this,!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("down",this.makeBusy,this,!1),e.events.on("up",this.makeUnbusy,this,!1),this._disposers.push(e)},i.prototype.handleGripDrag=function(e){this.makeBusy(),e.target===this._startGrip?this._usingGrip="start":this._usingGrip="end",this.orientation=="horizontal"?(this._start=this.startGrip.pixelX/this.innerWidth,this._end=this.endGrip.pixelX/this.innerWidth):(this._start=1-this.startGrip.pixelY/this.innerHeight,this._end=1-this.endGrip.pixelY/this.innerHeight),this.updateThumb()},Object.defineProperty(i.prototype,"thumb",{get:function(){if(!this._thumb){var e=new oi;e.background.cornerRadius(10,10,10,10),e.padding(0,0,0,0),this.thumb=e}return this._thumb},set:function(e){var t=this;e&&(this._thumb&&this.removeDispose(this._thumb),this._thumb=e,e.parent=this,e.isMeasured=!1,e.inert=!0,e.draggable=!0,e.clickable=!0,e.hoverable=!0,e.focusable=!0,e.shouldClone=!1,e.zIndex=0,e.cursorOverStyle=Re.grab,e.cursorDownStyle=Re.grabbing,e.events.on("dragstart",this.makeBusy,this,!1),e.events.on("dragstop",this.makeUnbusy,this,!1),e.events.on("positionchanged",this.handleThumbPosition,this,!1),e.events.on("sizechanged",this.handleThumbPosition,this,!1),e.events.on("doublehit",this.handleDoubleClick,this,!1),this._disposers.push(re().body.events.on("keyup",function(r){si.isKey(r.event,["space","enter"])&&t.thumb.isFocused&&(r.event.preventDefault(),t.handleDoubleClick())})),this._disposers.push(this._thumb))},enumerable:!0,configurable:!0}),i.prototype.handleDoubleClick=function(){this.makeBusy();var e=0,t=1;this.start!=0||this.end!=1?(this._prevStart=this.start,this._prevEnd=this.end):(e=this._prevStart,t=this._prevEnd);var r=this.animate([{property:"__start",to:e},{property:"__end",to:t}],this.animationDuration,this.animationEasing);r&&!r.isFinished()?(r.events.on("animationended",this.makeUnbusy,this,!1),this._zoomAnimation=r):this.makeUnbusy()},i.prototype.handleThumbPosition=function(){var e=this.thumb;if(this.orientation=="horizontal"){var t=this.innerWidth,r=e.innerWidth,s=e.pixelX;this._start=s/t,this._end=(s+r)/t,this.updateThumb()}else{var n=this.innerHeight,o=e.innerHeight,l=e.pixelY;l+o>n&&(l=n-o,e.y=l),this._start=1-(l+o)/n,this._end=1-l/n,this.updateThumb()}},i.prototype.createBackground=function(){return new Ft},Object.defineProperty(i.prototype,"hideGrips",{get:function(){return this._hideGrips},set:function(e){var t=this;this._hideGrips=e,this._overDisposer&&this.removeDispose(this._overDisposer),this._outDisposer&&this.removeDispose(this._outDisposer),e?(this._overDisposer=this.events.on("over",function(){t.startGrip.show(),t.endGrip.show()},void 0,!1),this._outDisposer=this.events.on("out",function(){t.startGrip.hide(),t.endGrip.hide()},void 0,!1),this.startGrip.hide(),this.endGrip.hide()):(this.startGrip.show(),this.endGrip.show())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),i.prototype.asFunction=function(e){return e=="animationEasing"||a.prototype.asIs.call(this,e)},i})(Y);_.registeredClasses.Scrollbar=ma;var lo=(function(){function a(){}return a.prototype.parse=function(i){return[]},Object.defineProperty(a.prototype,"parsableNumbers",{get:function(){return this.options.numberFields&&this.options.numberFields.length>0},enumerable:!0,configurable:!0}),a.prototype.maybeToNumber=function(i,e){return this.options.numberFields.indexOf(i)!==-1?Ks(e):e},Object.defineProperty(a.prototype,"parsableDates",{get:function(){return this.options.dateFields&&this.options.dateFields.length>0},enumerable:!0,configurable:!0}),a.prototype.maybeToDate=function(i,e){return this.options.dateFields.indexOf(i)!==-1?this.options.dateFormatter.parse(e,this.dateFormat):e},a.prototype.maybeToEmpty=function(i){return(!$(i)||i=="")&&$(this.options.emptyAs)?this.options.emptyAs:i},Object.defineProperty(a.prototype,"dateFormatter",{get:function(){return this.options.dateFormatter||(this.options.dateFormatter=new Ii,this.options.dateFormat&&(this.options.dateFormat=this.options.dateFormat)),this.options.dateFormatter},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"dateFormat",{get:function(){return this.options.dateFormat||this.dateFormatter.inputDateFormat},enumerable:!0,configurable:!0}),a})();var mv=[",",";"," "],Qa=(function(a){S(i,a);function i(){var e=a!==null&&a.apply(this,arguments)||this;return e.contentType="text/csv",e.options={delimiter:"",reverse:!1,skipRows:0,skipEmpty:!0,useColumnNames:!1},e}return i.isCSV=function(e){return!!i.getDelimiterFromData(e)},i.getDelimiterFromData=function(e){var t=e.split(`
|
|
23
|
-
`),r=t.length,s;return M(mv,function(n){for(var o=0,l=0,u=0;u<r;++u)if(o=t[u].split(n).length,o>1){if(l===0)l=o;else if(o!=l){l=0;break}}else{l=0;break}l&&(s=n)}),s},i.prototype.parse=function(e){this.options.delimiter||(this.options.delimiter=i.getDelimiterFromData(e));var t=this.CSVToArray(e,this.options.delimiter),r=$(this.options.emptyAs),s=this.parsableNumbers,n=this.parsableDates,o=[],l=[],u,h;for(h=0;h<this.options.skipRows;h++)t.shift();if(this.options.useColumnNames){l=t.shift();for(var p=0;p<l.length;p++)u=$(l[p])?l[p].replace(/^\s+|\s+$/gm,""):"",u===""&&(u="col"+p),l[p]=u}for(var d;d=this.options.reverse?t.pop():t.shift(),!!d;)if(!(this.options.skipEmpty&&d.length===1&&d[0]==="")){var c={};for(h=0;h<d.length;h++)u=l[h]===void 0?"col"+h:l[h],c[u]=d[h]===""?this.options.emptyAs:d[h],r&&(c[u]=this.maybeToEmpty(c[u])),s&&(c[u]=this.maybeToNumber(u,c[u])),n&&(c[u]=this.maybeToDate(u,c[u]));o.push(c)}return o},i.prototype.CSVToArray=function(e,t){t=t||",";for(var r=new RegExp("(\\"+t+'|\\r?\\n|\\r|^)(?:"([^"]*(?:""[^"]*)*)"|([^"\\'+t+"\\r\\n]*))","gi"),s=[[]],n=null;n=r.exec(e),!!n;){var o=n[1];o.length&&o!==t&&s.push([]);var l=void 0;n[2]?l=n[2].replace(new RegExp('""',"g"),'"'):l=n[3],s[s.length-1].push(l)}return s},i})(lo);var ya=(function(a){S(i,a);function i(){var e=a!==null&&a.apply(this,arguments)||this;return e.contentType="application/json",e.options={},e}return i.isJSON=function(e){try{return JSON.parse(e),!0}catch{return!1}},i.prototype.parse=function(e){var t=this,r;try{$(JSON)&&(r=JSON.parse(e))}catch{return}var s=$(this.options.emptyAs),n=this.parsableNumbers,o=this.parsableDates;if(Array.isArray(r)&&(n||o||s))for(var l=function(p,d){var c=r[p];q(c,function(f,y){s&&(c[f]=t.maybeToEmpty(c[f])),n&&(c[f]=t.maybeToNumber(f,c[f])),o&&(c[f]=t.maybeToDate(f,c[f]))})},u=0,h=r.length;u<h;u++)l(u,h);return r},i})(lo);var em=(function(){function a(){this.adapter=new ut(this)}return a.prototype.load=function(i){var e=Array.isArray(i)?i:[i],t=Er(e,function(r){return r.dispatchImmediately("started"),r.dispatchImmediately("loadstarted"),on(r.url,r,r.requestOptions)});Promise.all(t).then(function(r){M(r,function(s){var n=s.target;n.dispatchImmediately("loadended"),s.error?n.events.isEnabled("error")&&n.events.dispatchImmediately("error",{type:"error",code:s.xhr.status,message:n.language.translate("Unable to load file: %1",null,n.url),target:n}):n.processData(s.response,s.type),n.dispatchImmediately("ended")})}).catch(function(r){r.target&&(r.target.dispatchImmediately("loadended"),r.target.events.isEnabled("error")&&r.target.events.dispatchImmediately("error",{type:"error",code:r.xhr.status,message:r.target.language.translate("Unable to load file: %1",null,r.target.url),target:r.target}),r.target.dispatchImmediately("ended"))})},a.prototype.getParserByType=function(i){var e=this.adapter.apply("getParserByType",{parser:null,type:i}).parser;if(e)return e;if(i=="csv"||i=="text/csv"||i=="application/vnd.ms-excel")return new Qa;if(i=="json"||i=="application/json")return new ya},a.prototype.getParserByData=function(i,e){var t=this.adapter.apply("getParserByData",{parser:null,data:i,type:e}).parser;if(!t){if(t=this.getParserByType(e),t)return t;if(ya.isJSON(i))return this.getParserByType("json");if(Qa.isCSV(i))return this.getParserByType("csv")}return t},a})();var uo=new em;var wp=(function(a){S(i,a);function i(e,t){var r=a.call(this)||this;return r.adapter=new ut(r),r._requestOptions={},r._incremental=!1,r._incrementalParams={},r._keepCount=!1,r._updateCurrentData=!1,r.showPreloader=!0,r.className="DataSource",e&&(r.url=e),t&&(typeof t=="string"?r.parser=uo.getParserByType(t):r.parser=t),r}return i.prototype.processData=function(e,t){if(this.dispatchImmediately("parsestarted"),!this.parser&&(this.parser=uo.getParserByData(e,t),!this.parser)){if(this.events.isEnabled("parseerror")){var r={type:"parseerror",message:this.language.translate("No parser available for file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",r)}this.dispatchImmediately("parseended");return}if(this.parser.options=this.adapter.apply("parserOptions",this.parser.options),this.parser.options.dateFields=this.adapter.apply("dateFields",this.parser.options.dateFields||[]),this.parser.options.numberFields=this.adapter.apply("numberFields",this.parser.options.numberFields||[]),this.parser.options.dateFields&&!this.parser.options.dateFormatter&&(this.parser.options.dateFormatter=this.dateFormatter),this.data=this.adapter.apply("parsedData",this.parser.parse(this.adapter.apply("unparsedData",e))),!$(this.data)&&this.events.isEnabled("parseerror")){var s={type:"parseerror",message:this.language.translate("Error parsing file: %1",null,this.url),target:this};this.events.dispatchImmediately("parseerror",s)}this.dispatchImmediately("parseended"),$(this.data)&&this.dispatchImmediately("done",{data:this.data}),this.lastLoad=new Date},Object.defineProperty(i.prototype,"url",{get:function(){var e=this.disableCache?this.timestampUrl(this._url):this._url;return this.incremental&&this.component.data.length&&(e=this.addUrlParams(e,this.incrementalParams)),this.adapter.apply("url",e)},set:function(e){this._url=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"requestOptions",{get:function(){return this.adapter.apply("requestOptions",this._requestOptions)},set:function(e){this._requestOptions=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"parser",{get:function(){return this._parser||(this._parser=new ya),this.adapter.apply("parser",this._parser)},set:function(e){this._parser=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"reloadFrequency",{get:function(){return this.adapter.apply("reloadTimeout",this._reloadFrequency)},set:function(e){var t=this;this._reloadFrequency!=e&&(this._reloadFrequency=e,e?$(this._reloadDisposer)||(this._reloadDisposer=this.events.on("ended",function(r){t._reloadTimeout=setTimeout(function(){t.load()},t.reloadFrequency)})):$(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"incremental",{get:function(){return this.adapter.apply("incremental",this._incremental)},set:function(e){this._incremental=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"incrementalParams",{get:function(){return this.adapter.apply("incrementalParams",this._incrementalParams)},set:function(e){this._incrementalParams=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepCount",{get:function(){return this.adapter.apply("keepCount",this._keepCount)},set:function(e){this._keepCount=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"updateCurrentData",{get:function(){return this.adapter.apply("updateCurrentData",this._updateCurrentData)},set:function(e){this._updateCurrentData=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"language",{get:function(){return this._language?this._language:this.component?(this._language=this.component.language,this._language):(this.language=new ni,this.language)},set:function(e){this._language=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateFormatter",{get:function(){return this._dateFormatter?this._dateFormatter:this.component?(this._dateFormatter=this.component.dateFormatter,this._dateFormatter):(this.dateFormatter=new Ii,this.dateFormatter)},set:function(e){this._dateFormatter=e},enumerable:!0,configurable:!0}),i.prototype.timestampUrl=function(e){var t=new Date().getTime().toString(),r={};return r[t]="",this.addUrlParams(e,r)},i.prototype.dispose=function(){a.prototype.dispose.call(this),this._reloadTimeout&&clearTimeout(this._reloadTimeout),$(this._reloadDisposer)&&(this._reloadDisposer.dispose(),this._reloadDisposer=void 0)},i.prototype.load=function(){this.url&&(this._reloadTimeout&&clearTimeout(this._reloadTimeout),uo.load(this))},i.prototype.addUrlParams=function(e,t){var r=e.match(/\?/)?"&":"?",s=[];return q(t,function(n,o){o!=""?s.push(n+"="+encodeURIComponent(o)):s.push(n)}),s.length?e+r+s.join("&"):e},i.prototype.processConfig=function(e){_.registeredClasses.json=ya,_.registeredClasses.JSONParser=ya,_.registeredClasses.csv=Qa,_.registeredClasses.CSVParser=Qa,a.prototype.processConfig.call(this,e)},i})(It);var Ti=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._disabled=!1,e.hasProperties=!1,e.values={},e.categories={},e.dates={},e.locations={},e.workingLocations={},e.properties={},e.sprites=[],e.isTemplate=!1,e._index=null,e._visible=!0,e._hidden=!1,e._ignoreMinMax=!1,e.hasChildren={},e.isHiding=!1,e._valueAnimations={},e._locationAnimations={},e.className="DataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"adapter",{get:function(){return this._adapterO||(this._adapterO=new ut(this)),this._adapterO},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"index",{get:function(){return this.component&&this._index!=null?this._index:-1},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Ki(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"visible",{get:function(){return this._hidden?!1:this._visible},set:function(e){e&&(this.hidden=!1),this._visible!=e&&this.setVisibility(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hidden",{get:function(){return this._hidden},set:function(e){this._hidden!=e&&(this._hidden=e,e?this.setVisibility(!1):this.setVisibility(!0,!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"__disabled",{get:function(){return this._disabled},set:function(e){this._disabled=e,M(this.sprites,function(t){t.__disabled=e})},enumerable:!0,configurable:!0}),i.prototype.setVisibility=function(e,t){if(M(this.sprites,function(s){e?s.visible=s.defaultState.properties.visible:s.hiddenState?s.visible=s.hiddenState.properties.visible:s.visible=!1}),this._visible=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("visibilitychanged")){var r={type:"visibilitychanged",target:this,visible:e};this.events.dispatchImmediately("visibilitychanged",r)}},i.prototype.show=function(e,t,r){var s=this;if(!this.hidden){this.setVisibility(!0,!0),this.isHiding=!1,this._hideDisposer&&this.removeDispose(this._hideDisposer);var n;return r&&M(r,function(o){n=s.setWorkingValue(o,s.values[o].value,e,t)}),M(this.sprites,function(o){var l=o.show(e);l!=null&&!l.isFinished()&&(s._disposers.push(l),t!=null&&t>0&&l.delay(t))}),n}},i.prototype.dispose=function(){a.prototype.dispose.call(this),M(this.sprites,function(e){e.dispose()}),this.sprites=[]},i.prototype.hide=function(e,t,r,s){var n=this;if(this.isHiding=!0,M(this.sprites,function(l){var u=l.hide(e);u!=null&&!u.isFinished()&&(n._disposers.push(u),t!=null&&t>0&&u.delay(t))}),b(r)&&s){var o;if(M(s,function(l){var u=n.setWorkingValue(l,r,e,t);u&&(o=u)}),o&&!o.isFinished())return this._hideDisposer=o.events.on("animationended",function(){n.setVisibility(!1,!0),n.isHiding=!1}),this._disposers.push(this._hideDisposer),o;this.isHiding=!1,this.setVisibility(!1,!0)}else this.isHiding=!1,this.setVisibility(!1)},i.prototype.getDuration=function(e){if(!b(e)){var t=this.component;t&&(e=t.interpolationDuration)}if(e!=null)return this._adapterO?this._adapterO.apply("duration",e):e},i.prototype.getValue=function(e,t){if(e&&this.component){t||(t=this.component.dataFields[e+"Show"],t||(t="value"));var r=this.values[e][t];return this._adapterO&&this._adapterO.isEnabled("value")?this._adapterO.apply("value",{value:r,field:e}).value:r}},i.prototype.getWorkingValue=function(e){if(e&&this.component){var t=this.component.dataFields[e+"Show"];return t||(t="workingValue"),this._adapterO?this._adapterO.apply("workingValue",{workingValue:this.values[e][t],field:e}).workingValue:this.values[e][t]}},i.prototype.getActualWorkingValue=function(e){return this.values[e].workingValue},i.prototype.setValue=function(e,t,r,s){var n=this.values[e].value,o=this.getDuration(r);if(t=Oe(t),n!==t){if(this.values[e].value=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("valuechanged")){var l={type:"valuechanged",target:this,property:e};this.events.dispatchImmediately("valuechanged",l)}this.component&&this.component.handleDataItemValueChange(this,e)}this.setWorkingValue(e,t,o,s)},i.prototype.setCalculatedValue=function(e,t,r){var s=this.values[e][r];if(s!==t&&b(t)){if(this.values[e][r]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("calculatedvaluechanged")){var n={type:"calculatedvaluechanged",target:this,property:e};this.events.dispatchImmediately("calculatedvaluechanged",n)}this.component&&this.component.handleDataItemCalculatedValueChange(this,e)}},i.prototype.setWorkingValue=function(e,t,r,s){if(b(this.values[e].value)){var n=this.getDuration(r),o=this.values[e].workingValue;if(n!=null&&n>0&&b(o)&&this.component)if(o!=t){var l=this.animate({childObject:this.values[e],property:"workingValue",from:o,to:t,dummyData:e},n,this.component.interpolationEasing);return s!=null&&l.delay(s),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._valueAnimations[e]=l,l}else{var u=this._valueAnimations[e];u&&u.stop(),this.values[e].workingValue=t}else{var u=this._valueAnimations[e];if(u&&u.stop(),this.values[e].workingValue=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var h={type:"workingvaluechanged",target:this,property:e};this.events.dispatchImmediately("workingvaluechanged",h)}this.component&&this.component.handleDataItemWorkingValueChange(this,e)}}},i.prototype.setLocation=function(e,t,r,s){var n=this.locations[e];if(n!==t){if(this.locations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("locationchanged")){var o={type:"locationchanged",target:this,property:e};this.events.dispatchImmediately("locationchanged",o)}this.component&&this.component.handleDataItemValueChange(this,e),this.setWorkingLocation(e,t,r,s)}},i.prototype.setWorkingLocation=function(e,t,r,s){var n=this.getDuration(r),o=this.workingLocations[e];if(n!=null&&n>0&&b(o)&&this.component)if(o!=t){var l=this.animate({childObject:this.workingLocations,property:e,from:o,to:t,dummyData:e},n,this.component.interpolationEasing);return s!=null&&l.delay(s),l.events.on("animationstarted",this.handleInterpolationProgress,this),l.events.on("animationprogress",this.handleInterpolationProgress,this),l.events.on("animationended",this.handleInterpolationProgress,this),this._locationAnimations[e]=l,l}else{var u=this._locationAnimations[e];u&&u.stop(),this.workingLocations[e]=t}else{var u=this._locationAnimations[e];if(u&&u.stop(),this.workingLocations[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workinglocationchanged")){var h={type:"workinglocationchanged",target:this,property:e};this.events.dispatchImmediately("workinglocationchanged",h)}this.component&&this.component.handleDataItemWorkingLocationChange(this,e)}},i.prototype.setDate=function(e,t,r){!sa(t)&&this.component&&(t=this.component.dateFormatter.parse(t));var s=this.dates[e];s!==t&&(this.dates[e]=t,this.setValue(e,t.getTime(),r))},i.prototype.getDate=function(e){return this._adapterO?this._adapterO.apply("date",{date:this.dates[e],field:e}).date:this.dates[e]},i.prototype.setProperty=function(e,t){if(this.properties[e]!==t){if(this.hasProperties=!0,this.properties[e]=t,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var r={type:"propertychanged",target:this,property:e,value:t};this.events.dispatchImmediately("propertychanged",r)}this.component&&this.component.handleDataItemPropertyChange(this,e)}},i.prototype.setCategory=function(e,t){se(t)||(t=Vs(t)),this.categories[e]!==t&&(this.categories[e]=t)},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e.dataContext&&(this.dataContext=Hh(e.dataContext,{})),ai(e.locations,this.locations),e._adapterO&&this.adapter.copyFrom(e._adapterO),this.component=e.component},Object.defineProperty(i.prototype,"opacity",{set:function(e){M(this.sprites,function(t){t.opacity=e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){if(this._ignoreMinMax=e,this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("propertychanged")){var t={type:"propertychanged",target:this,property:"ignoreMinMax",value:e};this.events.dispatchImmediately("propertychanged",t)}this.component&&this.component.handleDataItemPropertyChange(this,"ignoreMinMax")},enumerable:!0,configurable:!0}),i.prototype.animate=function(e,t,r){return new Nt(this,e,t,r).start()},i.prototype.handleInterpolationProgress=function(e){var t=e.target,r=t.animationOptions[0];if(r){if(this._eventDispatcher&&!this.__disabled&&this.events.isEnabled("workingvaluechanged")){var s={type:"workingvaluechanged",target:this,property:r.dummyData};this.events.dispatchImmediately("workingvaluechanged",s)}this.component&&this.component.handleDataItemWorkingValueChange(this,r.dummyData)}},i.prototype.hasValue=function(e){for(var t=0,r=e.length;t<r;t++){var s=this.values[e[t]];if(!s||!$(s.value))return!1}return!0},Object.defineProperty(i.prototype,"depth",{get:function(){return this.parent?this.parent.depth+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataContext",{get:function(){return this._dataContext},set:function(e){this._dataContext=e},enumerable:!0,configurable:!0}),i.prototype.addSprite=function(e){e.dataItem&&e.dataItem!=this&&ee(e.dataItem.sprites,e),this.visible||e.hide(0),this.isHiding&&e.hide(),this.sprites.push(e),e.dataItem=this},i})(It);var Oi=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.dataFields={},e._dataSources={},e._parseDataFrom=0,e._dataDisposers=[],e._currentDataSetId="",e._start=0,e._end=1,e.skipRangeEvent=!1,e.rangeChangeDuration=0,e.rangeChangeEasing=Ui,e.parsingStepDuration=50,e.dataInvalid=!1,e.rawDataInvalid=!1,e.dataRangeInvalid=!1,e.dataItemsInvalid=!1,e.interpolationDuration=0,e.interpolationEasing=Ui,e.sequencedInterpolation=!0,e.sequencedInterpolationDelay=0,e.dataValidationProgress=0,e._addAllDataItems=!0,e._usesData=!0,e.className="Component",e.minZoomCount=1,e.maxZoomCount=0,e._dataItems=new ua(e.createDataItem()),e._dataItems.events.on("inserted",e.handleDataItemAdded,e,!1),e._dataItems.events.on("removed",e.handleDataItemRemoved,e,!1),e._disposers.push(new ge(e._dataItems)),e._disposers.push(e._dataItems.template),e.invalidateData(),e.dataUsers.events.on("inserted",e.handleDataUserAdded,e,!1),e._disposers.push(new Pe(e._dataDisposers)),e._start=0,e._end=1,e.maxZoomDeclination=1,e.applyTheme(),e}return i.prototype.createDataItem=function(){return new Ti},i.prototype.handleDataUserAdded=function(e){var t=e.newValue;t.dataProvider=this},i.prototype.handleDataItemValueChange=function(e,t){this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.handleDataItemWorkingValueChange=function(e,t){},i.prototype.handleDataItemWorkingLocationChange=function(e,t){},i.prototype.handleDataItemCalculatedValueChange=function(e,t){},i.prototype.handleDataItemPropertyChange=function(e,t){},i.prototype.processDataItem=function(e,t){var r=this;if(e){t||(t={}),e.dataContext=t;var s=!1;q(this.dataFields,function(n,o){var l=n,u=t[o];if(r._adapterO&&r._adapterO.isEnabled("dataContextValue")&&(u=r._adapterO.apply("dataContextValue",{field:l,value:u,dataItem:e}).value),$(u))if(s=!0,e.hasChildren[l]){var h=r.createDataItem();h.copyFrom(r.mainDataSet.template);var p=new ua(h);p.events.on("inserted",r.handleDataItemAdded,r,!1),p.events.on("removed",r.handleDataItemRemoved,r,!1),r._dataDisposers.push(new ge(p));for(var d=u.length,c=0;c<d;c++){var f=u[c],y=p.create();y.parent=e,r.processDataItem(y,f)}var g=e;g[l]=p}else e[l]=u}),q(this.propertyFields,function(n,o){var l=n,u=t[o];$(u)&&(s=!0,e.setProperty(l,u))}),!this._addAllDataItems&&!s&&this.mainDataSet.remove(e)}},i.prototype.updateDataItem=function(e){var t=this;if(e){var r=e.dataContext;q(this.dataFields,function(s,n){var o=s,l=r[n];if(t._adapterO&&(l=t._adapterO.apply("dataContextValue",{field:o,value:l,dataItem:e}).value),$(l))if(e.hasChildren[o]){var u=e,h=u[o];h.each(function(p){t.updateDataItem(p)})}else e[o]=l}),q(this.propertyFields,function(s,n){var o=s,l=r[n];$(l)&&e.setProperty(o,l)})}},i.prototype.validateDataElements=function(){for(var e=this.endIndex,t=this.startIndex;t<e;t++){var r=this.dataItems.getIndex(t);r&&this.validateDataElement(r)}},i.prototype.validate=function(){this.validateDataElements(),a.prototype.validate.call(this)},i.prototype.validateDataElement=function(e){},i.prototype.addData=function(e,t,r){var s=this;if(!this.dataInvalid&&this.inited&&(this._parseDataFrom=this.data.length),r||(e instanceof Array?M(e,function(n){s.data.push(n)}):this.data.push(e)),this.inited)this.removeData(t,r);else if(b(t))for(;t>0;)this.data.shift(),t--;this.invalidateData()},i.prototype.removeData=function(e,t){if(b(e)&&e>0){for(;e>0;){var r=this.mainDataSet.getIndex(0);r&&this.mainDataSet.remove(r),this.dataUsers.each(function(s){if(!s.data||s.data.length==0){var n=s.mainDataSet.getIndex(0);n&&s.mainDataSet.remove(n)}}),t||this.data.shift(),this._parseDataFrom>0&&this._parseDataFrom--,e--}this.invalidateDataItems()}},i.prototype.invalidateData=function(){this.disabled||this.isTemplate||(_.addToInvalidComponents(this),me.requestFrame(),this.dataInvalid=!0,V(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},i.prototype.invalidateDataUsers=function(){V(this.dataUsers.iterator(),function(e){e.invalidate()})},i.prototype.invalidateDataItems=function(){this.disabled||this.isTemplate||(ri(_.invalidDataItems,this),me.requestFrame(),this.dataItemsInvalid=!0,V(this.dataUsers.iterator(),function(e){e.invalidateDataItems()}))},i.prototype.invalidateDataRange=function(){this.disabled||this.isTemplate||(this.dataRangeInvalid=!0,ri(_.invalidDataRange,this),me.requestFrame())},i.prototype.validateDataRange=function(){ee(_.invalidDataRange,this),this.dataRangeInvalid=!1,(this.startIndex!=this._prevStartIndex||this.endIndex!=this._prevEndIndex)&&(this.rangeChangeUpdate(),this.appendDataItems(),this.invalidate(),this.dispatchImmediately("datarangechanged"))},i.prototype.sliceData=function(){this._workingStartIndex=this.startIndex,this._workingEndIndex=this.endIndex},i.prototype.rangeChangeUpdate=function(){this.sliceData(),this._prevStartIndex=this.startIndex,this._prevEndIndex=this.endIndex},i.prototype.appendDataItems=function(){for(var e=this.endIndex,t=this.startIndex;t<e;t++){var r=this.dataItems.getIndex(t);r&&(r.__disabled=!1)}for(var t=0;t<this.startIndex;t++){var r=this.dataItems.getIndex(t);r&&(r.__disabled=!0)}for(var t=this.endIndex;t<this.dataItems.length;t++){var r=this.dataItems.getIndex(t);r&&(r.__disabled=!0)}},i.prototype.invalidateRawData=function(){this.disabled||this.isTemplate||(ri(_.invalidRawDatas,this),me.requestFrame(),this.rawDataInvalid=!0,V(this.dataUsers.iterator(),function(e){e.invalidateRawData()}))},i.prototype.validateRawData=function(){var e=this;ee(_.invalidRawDatas,this),V(this.mainDataSet.iterator(),function(t){t&&e.updateDataItem(t)})},i.prototype.dispose=function(){var e=this;this.mainDataSet.template.clones.clear(),q(this._dataSources,function(t,r){e.removeDispose(r)}),this.disposeData(),a.prototype.dispose.call(this)},i.prototype.disposeData=function(){this.mainDataSet.template.clones.clear(),M(this._dataDisposers,function(e){e.dispose()}),V(this.dataUsers.iterator(),function(e){e.disposeData()}),this._dataDisposers.length=0,this._startIndex=void 0,this._endIndex=void 0,this.mainDataSet.clear(),this.mainDataSet.template.clones.clear(),this._dataSets&&this._dataSets.clear()},i.prototype.getDataItem=function(e){return this.mainDataSet.create()},i.prototype.validateData=function(){if(this.dispatchImmediately("beforedatavalidated"),this.dataInvalid=!1,_.removeFromInvalidComponents(this),!this.__disabled){if(this.dataValidationProgress=0,this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.dataFields.data&&this.dataItem){var e=this.dataItem.dataContext;this._data=e[this.dataFields.data]}if(this._parseDataFrom===0&&this.data.length>0&&this.disposeData(),this.data.length>0){var t=this.preloader;V(this.dataUsers.iterator(),function(p){p._startIndex=void 0,p._endIndex=void 0});var r=0,s=Date.now(),n=this._parseDataFrom,o=this.data.length,l=function(){var p=u.data[n];if(u._usesData){var d=u.getDataItem(p);u.processDataItem(d,p)}if(u.dataUsers.each(function(f){if(f.data.length==0){var y=f.getDataItem(p);f.processDataItem(y,p)}}),r++,r==100){r=0;var c=Date.now()-s;if(c>u.parsingStepDuration&&n<u.data.length-10)return u._parseDataFrom=n+1,t&&(n/u.data.length>.5&&!t.visible||(t.progress=n/u.data.length)),u.dataValidationProgress=n/u.data.length,n=u.data.length,u.invalidateData(),{value:void 0}}},u=this;for(n;n<o;n++){var h=l();if(typeof h=="object")return h.value}t&&(t.progress=1),this.dataUsers.each(function(p){(p.hidden||p.appeared&&!p.visible&&p.stacked)&&p.hide(0)})}this.dataValidationProgress=1,this._parseDataFrom=0,this.invalidateDataItems(),this._internalDefaultsApplied||this.applyInternalDefaults(),this.dispatch("datavalidated")}},i.prototype.validateDataItems=function(){ee(_.invalidDataItems,this),this.dataItemsInvalid=!1,this.invalidateDataRange(),this.invalidate(),this.dispatch("dataitemsvalidated")},Object.defineProperty(i.prototype,"data",{get:function(){return this._data||(this._data=[]),this._adapterO?this._adapterO.apply("data",this._data):this._data},set:function(e){this.setData(e)},enumerable:!0,configurable:!0}),i.prototype.setData=function(e){this.isDisposed()||(this._parseDataFrom=0,this.disposeData(),this._data=e,e&&e.length>0?this.invalidateData():(this.dispatchImmediately("beforedatavalidated"),this.dispatch("datavalidated")))},i.prototype.getDataSource=function(e){var t=this;return $(this._dataSources[e])||(this._dataSources[e]=new wp,this._dataSources[e].component=this,this.setDataSourceEvents(this._dataSources[e],e),this._dataSources[e].adapter.add("dateFields",function(r){return t.dataSourceDateFields(r)}),this._dataSources[e].adapter.add("numberFields",function(r){return t.dataSourceNumberFields(r)}),this.events.on("inited",function(){t.loadData(e)},this,!1)),this._dataSources[e]},Object.defineProperty(i.prototype,"dataSource",{get:function(){return this._dataSources.data||this.getDataSource("data"),this._dataSources.data},set:function(e){var t=this;this._dataSources.data&&this.removeDispose(this._dataSources.data),this._dataSources.data=e,this._dataSources.data.component=this,this.events.on("inited",function(){t.loadData("data")},this,!1),this.setDataSourceEvents(e,"data")},enumerable:!0,configurable:!0}),i.prototype.loadData=function(e){this._dataSources[e].load()},i.prototype.dataSourceDateFields=function(e){return e},i.prototype.dataSourceNumberFields=function(e){return e},i.prototype.populateDataSourceFields=function(e,t,r){return M(r,function(s){t[s]&&Ut(e,t[s])===-1&&e.push(t[s])}),e},i.prototype.setDataSourceEvents=function(e,t){var r=this;e.events.on("started",function(s){var n=r.preloader;n&&(n.progress=0)},void 0,!1),e.events.on("loadstarted",function(s){var n=r.preloader;n&&(n.progress=.25)},void 0,!1),e.events.on("loadended",function(s){var n=r.preloader;n&&(n.progress=.5)},void 0,!1),e.events.on("parseended",function(s){var n=r.preloader;n&&(n.progress=.75)},void 0,!1),e.events.on("ended",function(s){var n=r.preloader;n&&(n.progress=1)},void 0,!1),e.events.on("error",function(s){var n=r.preloader;n&&(n.progress=1),r.openModal(s.message)},void 0,!1),t&&e.events.on("done",function(s){var n=r.preloader;n&&(n.progress=1),t=="data"&&!je(s.data)&&(s.data=[s.data]),e.incremental&&t=="data"&&r.data.length?r.addData(s.data,e.keepCount?s.data.length:0):e.updateCurrentData&&t=="data"&&r.data.length?(M(r.data,function(o,l){$(s.data[l])&&q(o,function(u,h){$(s.data[l][u])&&(o[u]=s.data[l][u])})}),r.invalidateRawData()):r[t]=s.data})},Object.defineProperty(i.prototype,"responsive",{get:function(){return this._responsive||(this._responsive=new Op,this._responsive.component=this),this._responsive},set:function(e){this._responsive=e,this._responsive.component=this},enumerable:!0,configurable:!0}),i.prototype.zoom=function(e,t,r,s){var n=this;t===void 0&&(t=!1),r===void 0&&(r=!1);var o=e.start,l=e.end,u=e.priority;if(e.start==e.end&&(e.start=e.start-.5/this.maxZoomFactor,e.end=e.end+.5/this.maxZoomFactor),u=="end"&&l==1&&o!=0&&o<this.start&&(u="start"),u=="start"&&o==0&&l>this.end&&(u="end"),b(s)||(s=this.maxZoomDeclination),!b(o)||!b(l))return{start:this.start,end:this.end};if(this._finalStart!=o||this._finalEnd!=l){var h=this.maxZoomFactor/this.minZoomCount,p=this.maxZoomFactor/this.maxZoomCount;if(u=="start"?(this.maxZoomCount>0&&1/(l-o)<p&&(l=o+1/p),1/(l-o)>h&&(l=o+1/h),l>1&&l-o<1/h&&(o=l-1/h)):(this.maxZoomCount>0&&1/(l-o)<p&&(o=l-1/p),1/(l-o)>h&&(o<=0?l=o+1/h:o=l-1/h),o<0&&l-o<1/h&&(l=o+1/h)),o<-s&&(o=-s),1/(l-o)>h&&(l=o+1/h),l>1+s&&(l=1+s),1/(l-o)>h&&(o=l-1/h),this._finalEnd=l,this._finalStart=o,this.skipRangeEvent=t,this.dispatchImmediately("rangechangestarted"),this.rangeChangeDuration>0&&!r){var d=this.rangeChangeAnimation;if(d&&d.progress<1){var c=d.animationOptions;if(c.length>1){if(c[0].to==o&&c[1].to==l)return{start:o,end:l};d.isDisposed()||d.stop()}}this.rangeChangeAnimation&&this.rangeChangeAnimation.kill(),d=this.animate([{property:"start",to:o},{property:"end",to:l}],this.rangeChangeDuration,this.rangeChangeEasing),this.rangeChangeAnimation=d,d&&!d.isFinished()?d.events.on("animationended",function(){n.dispatchImmediately("rangechangeended")}):this.dispatchImmediately("rangechangeended")}else this.start=o,this.end=l,this.dispatch("rangechangeended")}return{start:o,end:l}},i.prototype.zoomToIndexes=function(e,t,r,s){if(!(!b(e)||!b(t))){var n=e/this.dataItems.length,o=t/this.dataItems.length;this.zoom({start:n,end:o},r,s)}},Object.defineProperty(i.prototype,"zoomFactor",{get:function(){return X(1/(this.end-this.start),1,this.maxZoomFactor)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomFactor",{get:function(){return this.getPropertyValue("maxZoomFactor")},set:function(e){this.setPropertyValue("maxZoomFactor",e)&&(e==1&&(this.maxZoomDeclination=0),this.invalidateDataRange())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomDeclination",{get:function(){return this.getPropertyValue("maxZoomDeclination")},set:function(e){this.setPropertyValue("maxZoomDeclination",e)&&this.invalidateDataRange()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return b(this._startIndex)||(this._startIndex=0),this._startIndex},set:function(e){this._startIndex=X(Math.round(e),0,this.dataItems.length),this.start=this.indexToPosition(this._startIndex)},enumerable:!0,configurable:!0}),i.prototype.indexToPosition=function(e){return e/this.dataItems.length},Object.defineProperty(i.prototype,"endIndex",{get:function(){var e=this.dataItems.length;return(!b(this._endIndex)||this._endIndex>e)&&(this._endIndex=e),this._endIndex},set:function(e){this._endIndex=X(Math.round(e),0,this.dataItems.length),this.end=this.indexToPosition(this._endIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._adapterO?this._adapterO.apply("start",this._start):this._start},set:function(e){if(this._start!=e){this._start=e;var t=Math.max(0,Math.floor(this.dataItems.length*e)||0);this._startIndex=Math.min(t,this.dataItems.length),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("startchanged"),this.dispatch("startendchanged")}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._adapterO?this._adapterO.apply("end",this._end):this._end},set:function(e){this._end!=e&&(this._end=e,this._endIndex=Math.min(this.dataItems.length,Math.ceil(this.dataItems.length*e)||0),this.invalidateDataRange(),this.invalidate(),this.dispatchImmediately("endchanged"),this.dispatch("startendchanged"))},enumerable:!0,configurable:!0}),i.prototype.removeFromInvalids=function(){a.prototype.removeFromInvalids.call(this),_.removeFromInvalidComponents(this),ee(_.invalidDataItems,this),ee(_.invalidDataRange,this),ee(_.invalidRawDatas,this)},Object.defineProperty(i.prototype,"dataItems",{get:function(){if(this._currentDataSetId!=""){var e=this.dataSets.getKey(this._currentDataSetId);if(e)return e}return this._dataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dataSets",{get:function(){return this._dataSets||(this._dataSets=new _e),this._dataSets},enumerable:!0,configurable:!0}),i.prototype.setDataSet=function(e){if(this._currentDataSetId!=e){var t=this.dataSets.getKey(e);if(t)return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId=e,this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0;if(this._currentDataSetId!="")return this.dataItems.each(function(r){r.__disabled=!0}),this._currentDataSetId="",this.invalidateDataRange(),this._prevStartIndex=void 0,this.dataItems.each(function(r){r.__disabled=!1}),!0}return!1},Object.defineProperty(i.prototype,"currentDataSetId",{get:function(){return this._currentDataSetId},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainDataSet",{get:function(){return this._dataItems},enumerable:!0,configurable:!0}),i.prototype._updateDataItemIndexes=function(e){for(var t=this.mainDataSet.values,r=t.length,s=e;s<r;++s)t[s]._index=s},i.prototype.handleDataItemAdded=function(e){e.newValue.component=this,this._updateDataItemIndexes(e.index),this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.handleDataItemRemoved=function(e){this._updateDataItemIndexes(e.index),this.dataItemsInvalid||this.invalidateDataItems()},i.prototype.bindDataField=function(e,t){this.dataFields[e]=t,this.invalidateDataRange()},i.prototype.invalidateProcessedData=function(){this.resetProcessedRange(),this.invalidateDataRange()},i.prototype.resetProcessedRange=function(){this._prevEndIndex=null,this._prevStartIndex=null},Object.defineProperty(i.prototype,"dataUsers",{get:function(){var e=this;return this._dataUsers||(this._dataUsers=new he,this._disposers.push(new ye(function(){V(e._dataUsers.iterator(),function(t){t.dispose()})}))),this._dataUsers},enumerable:!0,configurable:!0}),i.prototype.clone=function(){var e=a.prototype.clone.call(this);return e.dataFields=ai(this.dataFields,{}),e},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.data=e.data,this.sequencedInterpolation=e.sequencedInterpolation,this.sequencedInterpolationDelay=e.sequencedInterpolationDelay,this.interpolationDuration=e.interpolationDuration,this.interpolationEasing=e.interpolationEasing},i.prototype.reinit=function(){this._inited=!1,this.deepInvalidate()},i.prototype.getExporting=function(){var e=a.prototype.getExporting.call(this);return e.adapter.has("data",this._exportData,-1,this)||(e.adapter.add("data",this._exportData,-1,this),this.events.on("datavalidated",function(t){e.handleDataUpdated()})),e},i.prototype._exportData=function(e){return e.data=this.data,e},i.prototype.setDisabled=function(e){var t=a.prototype.setDisabled.call(this,e);return t&&this.invalidateData(),t},i.prototype.setShowOnInit=function(e){e!=this.getPropertyValue("showOnInit")&&(e&&!this.inited&&!this.hidden?(this._showOnInitDisposer2=this.events.once("dataitemsvalidated",this.hideInitially,this,!1),this._disposers.push(this._showOnInitDisposer2)):this._showOnInitDisposer2&&this.removeDispose(this._showOnInitDisposer2)),a.prototype.setShowOnInit.call(this,e)},i.prototype.setBaseId=function(e){e!=this._baseId&&this.dataInvalid&&(this.dataInvalid=!1,_.removeFromInvalidComponents(this),this._baseId=e,this.invalidateData()),a.prototype.setBaseId.call(this,e)},Object.defineProperty(i.prototype,"minZoomCount",{get:function(){return this.getPropertyValue("minZoomCount")},set:function(e){this.setPropertyValue("minZoomCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomCount",{get:function(){return this.getPropertyValue("maxZoomCount")},set:function(e){this.setPropertyValue("maxZoomCount",e)},enumerable:!0,configurable:!0}),i.prototype._systemCheckIfValidate=function(){return!(this.dataInvalid||this.dataProvider&&this.dataProvider.dataInvalid)},i.prototype.asFunction=function(e){return e=="interpolationEasing"||e=="rangeChangeEasing"||a.prototype.asIs.call(this,e)},i})(Y);_.registeredClasses.Component=Oi;var Or=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.childrenCreated=!1,e.className="LegendDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"label",{get:function(){var e=this;if(!this._label){var t=this.component.labels.create();this._label=t,this.addSprite(t),this._disposers.push(t),t.parent=this.itemContainer,this._disposers.push(new ye(function(){$(e.component)&&e.component.labels.removeValue(t)}))}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueLabel",{get:function(){var e=this;if(!this._valueLabel){var t=this.component.valueLabels.create();this._valueLabel=t,this.addSprite(t),this._disposers.push(t),t.parent=this.itemContainer,this._disposers.push(new ye(function(){$(e.component)&&e.component.valueLabels.removeValue(t)}))}return this._valueLabel},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemContainer",{get:function(){var e=this;if(!this._itemContainer){var t=this.component,r=t.itemContainers.create();r.parent=t,this._itemContainer=r,this.addSprite(r),this._disposers.push(r),r.togglable&&r.events.on("toggled",function(o){t.toggleDataItem(o.target.dataItem)},void 0,!1),r.focusable&&(r.events.on("hit",function(o){t.focusedItem=void 0},void 0,!1),r.events.on("focus",function(o){t.focusedItem=o.target.dataItem},void 0,!1),r.events.on("blur",function(o){t.focusedItem=void 0},void 0,!1)),this._disposers.push(new ye(function(){$(e.component)&&e.component.itemContainers.removeValue(r)})),this.dataContext.uidAttr&&(r.readerControls=this.dataContext.uidAttr(),r.readerLabelledBy=this.dataContext.uidAttr());var s=this.dataContext;if((s instanceof Ti||s instanceof U)&&!s.isDisposed()){var n=function(o){r.readerChecked=o.visible,r.events.disableType("toggled"),r.isActive=!o.visible,r.events.enableType("toggled")};s.addDisposer(new ye(function(){e.component&&e.component.dataItems.remove(e)})),s instanceof U?(r.addDisposer(s.events.on("visibilitychanged",n,void 0,!1)),r.addDisposer(s.events.on("hidden",function(o){r.readerChecked=!1,r.events.disableType("toggled"),r.isActive=!0,r.events.enableType("toggled")},void 0,!1)),r.addDisposer(s.events.on("shown",function(o){r.readerChecked=!0,r.events.disableType("toggled"),r.isActive=!1,r.events.enableType("toggled")},void 0,!1))):r.addDisposer(s.events.on("visibilitychanged",n,void 0,!1))}}return this._itemContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"marker",{get:function(){var e=this;if(!this._marker){var t=this.component.markers.create();this._marker=t,t.parent=this.itemContainer,this.addSprite(t),this._disposers.push(t),this._disposers.push(new ye(function(){$(e.component)&&e.component.markers.removeValue(t)}))}return this._marker},enumerable:!0,configurable:!0}),i})(Ti);var ho=(function(){function a(){this.createMarker=!0}return a})();var Ja=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="Legend",e.layout="grid",e.setPropertyValue("useDefaultMarker",!1),e.setPropertyValue("scrollable",!1),e.setPropertyValue("contentAlign","center");var t=new Y;t.applyOnClones=!0,t.padding(8,0,8,0),t.margin(0,10,0,10),t.layout="horizontal",t.clickable=!0,t.focusable=!0,t.role="switch",t.togglable=!0,t.cursorOverStyle=Re.pointer,t.background.fillOpacity=0,e.itemContainers=new Te(t),e._disposers.push(new ge(e.itemContainers)),e._disposers.push(e.itemContainers.template),e._disposers.push(re().body.events.on("keyup",function(h){if(si.isKey(h.event,"enter")&&e.focusedItem){var p=e.focusedItem,d=p.itemContainer;d.togglable?e.toggleDataItem(p):d.clickable&&d.events.isEnabled("hit")&&(d.dispatchImmediately("hit",{event:h}),e.focusedItem=p)}},e));var r=new J,s=new Y;s.width=23,s.height=23,s.interactionsEnabled=!1,s.applyOnClones=!0,s.setStateOnChildren=!0,s.background.fillOpacity=0,s.background.strokeOpacity=0,s.propertyFields.fill="fill",s.valign="middle";var n=r.getFor("disabledBackground");s.events.on("childadded",function(h){var p=h.newValue,d=p.states.create("active");d.properties.stroke=n,d.properties.fill=n}),e.markers=new Te(s),e._disposers.push(new ge(e.markers)),e._disposers.push(e.markers.template);var o=s.createChild(Ft);o.width=k(100),o.height=k(100),o.applyOnClones=!0,o.propertyFields.fill="fill",o.strokeOpacity=0;var l=new Je;l.text="{name}",l.margin(0,5,0,5),l.valign="middle",l.applyOnClones=!0,l.states.create("active").properties.fill=r.getFor("disabledBackground"),e.labels=new Te(l),e._disposers.push(new ge(e.labels)),e._disposers.push(e.labels.template),l.interactionsEnabled=!1,l.truncate=!0,l.fullWords=!1;var u=new Je;return u.margin(0,5,0,0),u.valign="middle",u.width=50,u.align="right",u.textAlign="end",u.applyOnClones=!0,u.states.create("active").properties.fill=r.getFor("disabledBackground"),u.interactionsEnabled=!1,e.valueLabels=new Te(u),e._disposers.push(new ge(e.valueLabels)),e._disposers.push(e.valueLabels.template),e.position="bottom",t.states.create("active"),t.setStateOnChildren=!0,e.role="group",e.events.on("layoutvalidated",e.handleScrollbar,e,!1),e.events.on("parentset",function(){var h=e.parent;h&&e._disposers.push(h.events.on("maxsizechanged",function(){e.scrollable&&e.setTimeout(function(){e.updateMasks(),e.handleScrollbar(),e._handleWheelReal(1)},100)}))}),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Legend"))},i.prototype.createDataItem=function(){return new Or},i.prototype.validateDataElements=function(){this.scrollbar&&(this.scrollbar.start=0,this.scrollbar.end=1),a.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(e){a.prototype.validateDataElement.call(this,e);var t=e.itemContainer,r=e.marker;e.label;var s=e.valueLabel;t.readerChecked=e.dataContext.visible,e.dataContext.legendDataItem=e;var n=e.label.maxWidth;e.label.width instanceof ae||(e.label.width=void 0),n>0&&(e.label.maxWidth=n),s.align=="right"&&(s.width=void 0);var o=e.dataContext.legendSettings,l=e.dataContext;l.createLegendMarker&&(!this.useDefaultMarker||!(l instanceof U))?e.childrenCreated||(l.createLegendMarker(r),e.childrenCreated=!0):this.markers.template.propertyFields.fill=void 0,l.updateLegendValue&&l.updateLegendValue(),l.component&&l.component.updateLegendValue&&l.component.updateLegendValue(l),s.invalid&&s.validate(),s.text==""||s.text==null?s.__disabled=!0:s.__disabled=!1,o&&(o.itemValueText!=null||o.valueText!=null)&&(s.__disabled=!1);var u=e.dataContext.visible;u===void 0&&(u=!0),u=Ue(u),e.dataContext.visible=u,t.events.disableType("toggled"),t.isActive=!u,t.isActive?t.setState("active",0):t.setState("default",0),t.events.enableType("toggled")},i.prototype.afterDraw=function(){var e=this,t=this.getPropertyValue("maxWidth"),r=0;this.labels.each(function(p){p.invalid&&(p.maxWidth=void 0,p.validate()),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>r&&(r=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var s=0;this.valueLabels.each(function(p){p.invalid&&p.validate(),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>s&&(s=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var n=0;this.markers.each(function(p){p.invalid&&p.validate(),p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight>n&&(n=p.measuredWidth+p.pixelMarginLeft+p.pixelMarginRight)});var o=this.itemContainers.template,l=o.pixelMarginRight+o.pixelMarginLeft,u,h=r+s+n;b(t)?(t=t-l,t>h&&(t=h),u=t-n-s):u=r,this.labels.each(function(p){(e.valueLabels.template.align=="right"||p.measuredWidth>u)&&(p.width instanceof ae||(p.width=Math.min(p.maxWidth,u-p.pixelMarginLeft-p.pixelMarginRight),p.maxWidth=p.width))}),this.valueLabels.template.align=="right"&&this.valueLabels.each(function(p){p.width=s-p.pixelMarginRight-p.pixelMarginLeft}),a.prototype.afterDraw.call(this)},i.prototype.handleScrollbar=function(){var e=this.scrollbar;if(this.scrollable&&e){var t=this.maxHeight;e.height=t,e.x=this.measuredWidth-e.pixelWidth-e.pixelMarginLeft,this.contentHeight>t?(e.visible=!0,e.thumb.height=e.height*t/this.contentHeight,this.paddingRight=e.pixelWidth+e.pixelMarginLeft+e.pixelMarginRight):(e.thumb.height=e.height*t/this.contentHeight,this.paddingRight=e.pixelWidth+e.pixelMarginLeft+e.pixelMarginRight,e.visible=!1,e.start=0,e.end=1),e.handleThumbPosition(),this.updateMasks()}},Object.defineProperty(i.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(e){this.setPropertyValue("position",e)&&(e=="left"||e=="right"?(this.margin(10,5,10,10),this.valign="middle",this.contentAlign="none",this.valueLabels.template.align="right",b(this.maxColumns)||(this.maxColumns=1),this.width=void 0,this.maxWidth=220):(this.maxColumns=void 0,this.width=k(100),this.valueLabels.template.align="left"),this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useDefaultMarker",{get:function(){return this.getPropertyValue("useDefaultMarker")},set:function(e){this.setPropertyValue("useDefaultMarker",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollable",{get:function(){return this.getPropertyValue("scrollable")},set:function(e){if(this.setPropertyValue("scrollable",e,!0))if(e){var t=this.createChild(ma);this.scrollbar=t,t.isMeasured=!1,t.orientation="vertical",t.endGrip.__disabled=!0,t.startGrip.__disabled=!0,t.visible=!1,t.marginLeft=5,this._mouseWheelDisposer=this.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer),this._disposers.push(t.events.on("rangechanged",this.updateMasks,this,!1))}else this._mouseWheelDisposer&&(this._mouseWheelDisposer.dispose(),this.scrollbar&&(this.scrollbar.dispose(),this.scrollbar=void 0))},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(e){this._handleWheelReal(e.shift.y)},i.prototype._handleWheelReal=function(e){var t=this.scrollbar;if(t){var r=e/1e3*this.measuredHeight/this.contentHeight,s=t.end-t.start;e>0?(t.start=ie(0,t.start-r),t.end=t.start+s):(t.end=le(1,t.end-r),t.start=t.end-s)}},i.prototype.updateMasks=function(){var e=this;this.scrollbar&&this.itemContainers.each(function(t){t.dy=-e.scrollbar.thumb.pixelY*e.contentHeight/e.maxHeight,t.maskRectangle={x:0,y:-t.dy,width:e.measuredWidth,height:e.maxHeight}}),this.invalidatePosition()},i.prototype.toggleDataItem=function(e){var t=e.dataContext;!t.visible||t.isHiding||t instanceof U&&t.isHidden?(e.color=e.colorOrig,t.appeared=!0,e.itemContainer.isActive=!1,t.hidden===!0&&(t.hidden=!1),t.show?t.show():t.visible=!0,this.svgContainer.readerAlert(this.language.translate("%1 shown",this.language.locale,e.label.readerTitle))):(e.itemContainer.isActive=!0,t.appeared=!0,t.hide?t.hide():t.visible=!1,this.svgContainer.readerAlert(this.language.translate("%1 hidden",this.language.locale,e.label.readerTitle)),e.color=new J().getFor("disabledBackground"))},Object.defineProperty(i.prototype,"preloader",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.handleDataItemPropertyChange=function(e,t){e.valueLabel.invalidate(),e.label.invalidate()},i})(Oi);_.registeredClasses.Legend=Ja;tt.push({relevant:lt.widthXS,state:function(a,i){if(a instanceof Ja&&(a.position=="left"||a.position=="right")){var e=a.states.create(i);return e.properties.position="bottom",e}return null}});tt.push({relevant:lt.heightXS,state:function(a,i){if(a instanceof Ja&&(a.position=="top"||a.position=="bottom")){var e=a.states.create(i);return e.properties.position="right",e}return null}});tt.push({relevant:lt.isXS,state:function(a,i){if(a instanceof Ja){var e=a.states.create(i);return e.properties.disabled=!0,e}return null}});var Kt=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Line",e.element=e.paper.add("line"),e.fill=Z(),e.x1=0,e.y1=0,e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this),this.x1==this.x2||this.y1==this.y2?this.pixelPerfect=!0:this.pixelPerfect=!1,this.x1=this.x1,this.x2=this.x2,this.y1=this.y1,this.y2=this.y2},Object.defineProperty(i.prototype,"x1",{get:function(){return this.getPropertyValue("x1")},set:function(e){b(e)||(e=0);var t=0;this.pixelPerfect&&this.stroke instanceof Mt&&(t=1e-5),this.setPropertyValue("x1",e,!0),this.element.attr({x1:e+t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x2",{get:function(){var e=this.getPropertyValue("x2");return b(e)||(e=this.pixelWidth),e},set:function(e){b(e)||(e=0),this.setPropertyValue("x2",e,!0),this.element.attr({x2:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y1",{get:function(){return this.getPropertyValue("y1")},set:function(e){b(e)||(e=0);var t=0;this.pixelPerfect&&this.stroke instanceof Mt&&(t=1e-5),this.setPropertyValue("y1",e,!0),this.element.attr({y1:e+t})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y2",{get:function(){var e=this.getPropertyValue("y2");return b(e)||(e=this.pixelHeight),e},set:function(e){b(e)||(e=0),this.setPropertyValue("y2",e,!0),this.element.attr({y2:e})},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t={x:this.x1,y:this.y1},r={x:this.x2,y:this.y2},s=Ma(t,r,e),n=nt(t,r);return{x:s.x,y:s.y,angle:n}},i})(U);_.registeredClasses.Line=Kt;var Mi=(function(){function a(i,e){this._tensionX=i,this._tensionY=e}return a.prototype.smooth=function(i){for(var e=i.length-1;e>0;e--){var t=i[e],r=i[e-1];Math.abs(t.x-r.x)<.1&&Math.abs(t.y-r.y)<.1&&i.splice(e-1,1)}var s=this._tensionX,n=this._tensionY;if(i.length<3||s>=1&&n>=1)return Za(i);var o=i[0],l=i[i.length-1],u=!1;I(o.x,3)==I(l.x)&&I(o.y)==I(l.y)&&(u=!0);for(var h="",e=0,p=i.length-1;e<p;e++){var t=i[e-1],r=i[e],d=i[e+1],c=i[e+2];e===0?u?t=i[i.length-2]:t=i[e]:e==i.length-2&&(u?c=i[1]:c=i[e+1]);var f=cl(t,r,d,c,s,n),y=fl(t,r,d,c,s,n);h+=Yr(d,f,y)}return h},a})();function es(a,i,e,t,r,s){var n=a.x,o=a.y,l=i.x,u=i.y,h=xe(a,i);s&&(e=h/Math.round(h/e));var p=_.getCache(wl(["wavedLine",a.x,i.x,a.y,i.y,e,t]));if(!p){if(h>0){var d=Math.atan2(u-o,l-n),c=Math.cos(d),f=Math.sin(d),y=e*c,g=e*f;if(e<=1||t<=1)p=F(i);else{var v=Math.round(2*h/e),x=[],P=1;l<n&&(P*=-1),u<o&&(P*=-1);for(var T=0;T<=v;T++){P*=-1;var C=n+T*y/2+P*t/2*f,O=o+T*g/2-P*t/2*c;x.push({x:C,y:O})}p=new Mi(r,r).smooth(x)}}else p="";_.setCache(wl(["wavedLine",a.x,i.x,a.y,i.y,e,t]),p)}return p}var am=(function(){function a(i,e){this._reversed=i,this._closed=e.closed}return a.prototype._curve=function(i,e,t,r,s,n){var o=(e-i)/3;return this._reversed?Yr({x:r,y:e},{x:t+o*s,y:i+o},{x:r-o*n,y:e-o}):Yr({x:e,y:r},{x:i+o,y:t+o*s},{x:e-o,y:r-o*n})},a.prototype.smooth=function(i){var e=this,t=NaN,r=NaN,s=NaN,n=NaN,o=NaN,l=0,u="";switch(M(i,function(h){var p=h.x,d=h.y;if(e._reversed){var c=p;p=d,d=c}var f=NaN;if(!(p===r&&d===n)){switch(l){case 0:l=1,e._reversed?u+=F({x:d,y:p}):u+=F({x:p,y:d});break;case 1:l=2;break;case 2:l=3,u+=e._curve(t,r,s,n,im(t,r,s,n,f=rm(t,r,s,n,p,d)),f);break;default:u+=e._curve(t,r,s,n,o,f=rm(t,r,s,n,p,d));break}t=r,r=p,s=n,n=d,o=f}}),l){case 2:this._reversed?u+=F({x:n,y:r}):u+=F({x:r,y:n});break;case 3:u+=this._curve(t,r,s,n,o,im(t,r,s,n,o));break}return this._closed&&(u+=Ee()),u},a})();function tm(a){return a<0?-1:1}function im(a,i,e,t,r){var s=i-a;return s?(3*(t-e)/s-r)/2:r}function rm(a,i,e,t,r,s){var n=i-a,o=r-i,l=(t-e)/(n||o<0&&-0),u=(s-t)/(o||n<0&&-0),h=(l*o+u*n)/(n+o);return(tm(l)+tm(u))*Math.min(Math.abs(l),Math.abs(u),.5*Math.abs(h))||0}var Dp=(function(a){S(i,a);function i(e){return a.call(this,!1,e)||this}return i})(am);var Ap=(function(a){S(i,a);function i(e){return a.call(this,!0,e)||this}return i})(am);var yv=(function(){function a(i){this._closed=i.closed}return a.prototype.smooth=function(i){var e=this,t=NaN,r=NaN,s=NaN,n=NaN,o=NaN,l=NaN,u=NaN,h=NaN,p=NaN,d=NaN,c=0,f="",y=function(v,x){f+=Yr({x:(t+4*r+v)/6,y:(l+4*u+x)/6},{x:(2*t+r)/3,y:(2*l+u)/3},{x:(t+2*r)/3,y:(l+2*u)/3})},g=function(v){var x=v.x,P=v.y;switch(c){case 0:c=1,e._closed?(s=x,h=P):f+=F({x,y:P});break;case 1:c=2,e._closed&&(n=x,p=P);break;case 2:if(c=3,e._closed){o=x,d=P,f+=R({x:(t+4*r+x)/6,y:(l+4*u+P)/6});break}else f+=F({x:(5*t+r)/6,y:(5*l+u)/6});default:y(x,P);break}t=r,r=x,l=u,u=P};if(M(i,g),this._closed)switch(c){case 1:f+=R({x:s,y:h}),f+=Ee();break;case 2:f+=R({x:(s+2*n)/3,y:(h+2*p)/3}),f+=F({x:(n+2*s)/3,y:(p+2*h)/3}),f+=Ee();break;case 3:g({x:s,y:h}),g({x:n,y:p}),g({x:o,y:d});break}else{switch(c){case 3:y(r,u);case 2:f+=F({x:r,y:u});break}f+=Ee()}return f},a})();var sr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="WavedLine",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.pixelPerfect=!1,e.fill=Z(),e.applyTheme(),e}return i.prototype.draw=function(){var e={x:this.x1,y:this.y1},t={x:this.x2,y:this.y2};this.path=R(e)+es(e,t,this.waveLength,this.waveHeight,this.tension,!0)},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),i})(Kt);var ga=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._axis=new We,e.dataItems=new he,e.className="AxisBreak",e.breakSize=.01,e.marginLeft=-5,e.marginRight=-5,e.marginTop=-5,e.marginBottom=-5;var t=new J,r=new sr;r.fill=t.getFor("background"),r.stroke=Z(),r.fillOpacity=.9,r.zIndex=0,e._fillShape=r;var s=new sr;s.fill=Z(),s.stroke=t.getFor("grid"),s.strokeOpacity=.3,s.zIndex=1,e._startLine=s;var n=new sr;return n.fill=Z(),n.stroke=Z("#000000"),n.strokeOpacity=.3,n.zIndex=2,e._endLine=n,e._disposers.push(e._axis),e.applyTheme(),e}return i.prototype.dispose=function(){a.prototype.dispose.call(this),this._fillShape&&this._fillShape.dispose(),this._startLine&&this._startLine.dispose(),this._endLine&&this._endLine.dispose()},Object.defineProperty(i.prototype,"startLine",{get:function(){return this._startLine},set:function(e){this._startLine&&this._startLine.dispose(),this._startLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLine",{get:function(){return this._endLine},set:function(e){this._endLine&&this._endLine.dispose(),this._endLine=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fillShape",{get:function(){return this._fillShape},set:function(e){this._fillShape&&this._fillShape.dispose(),this._fillShape=e,this.addBreakSprite(e)},enumerable:!0,configurable:!0}),i.prototype.addBreakSprite=function(e){e.parent=this,e.isMeasured=!1,this._disposers.push(e)},Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this._axis.get()!==e){this._axis.set(e,e.renderer.gridContainer.events.on("transformed",this.invalidate,this,!1)),e.renderer.createBreakSprites(this);var t=e.axisBreaks.template;this.startLine.copyFrom(t.startLine),this.endLine.copyFrom(t.endLine),this.fillShape.copyFrom(t.fillShape)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"breakSize",{get:function(){return this.getPropertyValue("breakSize")},set:function(e){this.setPropertyValue("breakSize",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.startPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPoint",{get:function(){var e=this.axis.renderer;if(e)return e.positionToPoint(this.endPosition)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startPosition",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.draw=function(){if(a.prototype.draw.call(this),this.axis){var e=this.axis.renderer;e.updateBreakElement(this)}},Object.defineProperty(i.prototype,"startValue",{get:function(){return this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.AxisBreak=ga;var Fp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PointedShape",e.pointerBaseWidth=15,e.pointerLength=10,e.pointerY=0,e.pointerX=0,e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this),b(this.pointerX)||(this.pointerX=this.pixelWidth/2),b(this.pointerY)||(this.pointerY=this.pixelHeight+10)},Object.defineProperty(i.prototype,"pointerBaseWidth",{get:function(){return this.getPropertyValue("pointerBaseWidth")},set:function(e){this.setPropertyValue("pointerBaseWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerLength",{get:function(){return this.getPropertyValue("pointerLength")},set:function(e){this.setPropertyValue("pointerLength",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerX",{get:function(){return this.getPropertyValue("pointerX")},set:function(e){this.setPropertyValue("pointerX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pointerY",{get:function(){return this.getPropertyValue("pointerY")},set:function(e){this.setPropertyValue("pointerY",e,!0)},enumerable:!0,configurable:!0}),i})(U);var Vp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PointedRectangle",e.element=e.paper.add("path"),e.cornerRadius=6,e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.cornerRadius,t=this.innerWidth,r=this.innerHeight;if(t>0&&r>0){var s=this.pointerX,n=this.pointerY,o=this.pointerBaseWidth/2,l=le(t/2,r/2),u=X(e,0,l),h=X(e,0,l),p=X(e,0,l),d=X(e,0,l),c=0,f=0,y=t,g=0,v=t,x=r,P=0,T=r,C=void 0,O=void 0,w=void 0,D=void 0,A=(s-c)*(x-f)-(n-f)*(v-c),H=(s-P)*(g-T)-(n-T)*(y-P);if(A>0&&H>0){var E=X(s,u+o,t-o-h);n=X(n,-1/0,0),C="M"+u+",0 L"+(E-o)+",0 L"+s+","+n+" L"+(E+o)+",0 L"+(t-h)+",0"}else C="M"+u+",0 L"+(t-h)+",0";if(A<0&&H<0){var E=X(s,d+o,t-o-p);n=X(n,r,1/0),w=" L"+(t-p)+","+r+" L"+(E+o)+","+r+" L"+s+","+n+" L"+(E-o)+","+r+" L"+d+","+r}else w=" L"+d+","+r;if(A<0&&H>0){var j=X(n,u+o,r-d-o);s=X(s,-1/0,0),D=" L0,"+(r-d)+" L0,"+(j+o)+" L"+s+","+n+" L0,"+(j-o)+" L0,"+u}else D=" L0,"+u;if(A>0&&H<0){var j=X(n,h+o,r-o-p);s=X(s,t,1/0),O=" L"+t+","+h+" L"+t+","+(j-o)+" L"+s+","+n+" L"+t+","+(j+o)+" L"+t+","+(r-p)}else O=" L"+t+","+(r-p);var ce=" a"+h+","+h+" 0 0 1 "+h+","+h,be=" a"+p+","+p+" 0 0 1 -"+p+","+p,ke=" a"+d+","+d+" 0 0 1 -"+d+",-"+d,K=" a"+u+","+u+" 0 0 1 "+u+",-"+u;this.path=C+ce+O+be+w+ke+D+K}},Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),i})(Fp);var ji=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.properties={},e.isTemplate=!1,e._scale=1,e._nonScaling=!0,e.className="Filter",e.filterPrimitives=new he,e.properties.filterUnits="objectBoundingBox",e.filterPrimitives.events.on("inserted",function(t){e._disposers.push(t.newValue)}),e.width=120,e.height=120,e.applyTheme(),e}return i.prototype.appendPrimitives=function(e){V(this.filterPrimitives.iterator(),function(t){e.add(t)})},i.prototype.animate=function(e,t,r){var s=new Nt(this,e,t,r).start();return s},Object.defineProperty(i.prototype,"width",{get:function(){return this.properties.width},set:function(e){this.properties.width=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){return this.properties.height},set:function(e){this.properties.height=e},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;a.prototype.copyFrom.call(this,e),q(e.properties,function(r,s){t[r]=s})},Object.defineProperty(i.prototype,"paper",{get:function(){return this._paper?this._paper:rr()},set:function(e){this._paper!=e&&(this._paper=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Ki(this._animations))),this._animations},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scale",{get:function(){return this._scale},set:function(e){this._scale=e,this.updateScale()},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){},Object.defineProperty(i.prototype,"filterUnits",{get:function(){return this.properties.filterUnits},set:function(e){this.properties.filterUnits=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonScaling",{get:function(){return this._nonScaling},set:function(e){this._nonScaling=e,e||(this._scale=1),this.updateScale()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sprite",{set:function(e){this.setSprite(e)},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.filters.removeValue(this),this._sprite=e},i})(Ze);var ln=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="DropShadowFilter",e.color=Z("#000"),e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.feOffset=e.paper.add("feOffset"),e.feOffset.attr({result:"offsetBlur"}),e.filterPrimitives.push(e.feOffset),e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":e.color}),e.filterPrimitives.push(e.feFlood),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({in2:"offsetBlur",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feMerge=e.paper.addGroup("feMerge"),e.feMerge.add(e.paper.add("feMergeNode")),e.feMerge.add(e.paper.add("feMergeNode").attr({in:"SourceGraphic"})),e.filterPrimitives.push(e.feMerge),e.width=200,e.height=200,e.blur=1.5,e.dx=3,e.dy=3,e.opacity=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.feFlood&&this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feFlood.attr({"flood-opacity":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx",{get:function(){return this.properties.dx},set:function(e){this.properties.dx=e,this.feOffset.attr({dx:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy",{get:function(){return this.properties.dy},set:function(e){this.properties.dy=e,this.feOffset.attr({dy:e/this.scale})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),i.prototype.updateScale=function(){this.dx=this.dx,this.dy=this.dy,this.blur=this.blur},i})(ji);_.registeredClasses.DropShadowFilter=ln;var nr=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._boundingRect={x:-4e4,y:-4e4,width:8e4,height:8e4},e._pointTo={x:0,y:0},e.fitPointerToBounds=!1,e._verticalOrientation="up",e.fixDoc=!0,e.className="Tooltip",e.isMeasured=!1,e.getFillFromObject=!0,e.margin(5,5,5,5),e.defaultState.transitionDuration=1,e.hiddenState.transitionDuration=1;var t=e.background;t.interactionsEnabled=!1,t.fillOpacity=.9,t.strokeWidth=1,t.strokeOpacity=1,t.stroke=Z("#ffffff"),t.cornerRadius=3,t.pointerLength=6,t.pointerBaseWidth=10;var r=new ln;r.dy=1,r.dx=1,r.opacity=.5,t.filters.push(r),e.autoTextColor=!0;var s=e.createChild(Je);return s.shouldClone=!1,e.label=s,s.padding(7,12,4,12),s.interactionsEnabled=!1,s.horizontalCenter="middle",s.fill=Z("#ffffff"),e._disposers.push(s),e.label.events.on("sizechanged",e.drawBackground,e),e.label.zIndex=1,e.pointerOrientation="vertical",e.animationDuration=0,e.animationEasing=Ui,e.setPropertyValue("showInViewport",!1),e.role="tooltip",e.visible=!1,e.opacity=0,e.x=0,e.y=0,e.events.on("visibilitychanged",e.handleVisibility,e),e.applyTheme(),e}return i.prototype.handleVisibility=function(){this.visible&&this.label.invalidate()},Object.defineProperty(i.prototype,"getStrokeFromObject",{get:function(){return this.getPropertyValue("getStrokeFromObject")},set:function(e){this.setPropertyValue("getStrokeFromObject",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoTextColor",{get:function(){return this.getPropertyValue("autoTextColor")},set:function(e){this.setPropertyValue("autoTextColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepTargetHover",{get:function(){return this.getPropertyValue("keepTargetHover")},set:function(e){var t=this;this.setPropertyValue("keepTargetHover",e,!0)&&e&&(this.hoverable=!0,this.background.interactionsEnabled=!0,this._disposers.push(this.events.on("over",function(r){t.targetSprite&&t.targetSprite.hoverable&&(t.targetSprite.isHover=!0)})),this._disposers.push(this.events.on("out",function(r){t.targetSprite&&t.targetSprite.hoverable&&(t.targetSprite.isHover=!1)})))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"showInViewport",{get:function(){return this.getPropertyValue("showInViewport")},set:function(e){this.setPropertyValue("showInViewport",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"getFillFromObject",{get:function(){return this.getPropertyValue("getFillFromObject")},set:function(e){this.setPropertyValue("getFillFromObject",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createBackground=function(){return new Vp},Object.defineProperty(i.prototype,"pointerOrientation",{get:function(){return this.getPropertyValue("pointerOrientation")},set:function(e){this.setPropertyValue("pointerOrientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationDuration",{get:function(){return this.getPropertyValue("animationDuration")},set:function(e){this.setPropertyValue("animationDuration",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"animationEasing",{get:function(){return this.getPropertyValue("animationEasing")},set:function(e){this.setPropertyValue("animationEasing",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"html",{get:function(){return this.label.html},set:function(e){this.label.html!=e&&(this.label.html=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this.label.text},set:function(e){this.label.text!=e&&(this.label.text=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.label;e.invalid&&e.validate();var t=this._pointTo.x,r=this._pointTo.y,s=this._boundingRect,n=e.measuredWidth,o=e.measuredHeight,l=this.background.pointerLength,u,h;if(this.ignoreBounds&&(s=void 0),s&&this.fixDoc&&n>s.width){Qs({x:s.x,y:s.y},this.parent);var p=Qs({x:s.x+s.width,y:s.y+s.height},this.parent),d=document.body.offsetWidth;document.body.offsetHeight,p.x>d/2?s.x=s.width-n:s.width=s.x+n}var c=this.pointerOrientation;c=="horizontal"||c=="left"||c=="right"?(h=-o/2,c=="horizontal"?s&&t>s.x+s.width/2?u=-n/2-l:u=n/2+l:c=="left"?u=n/2+l:u=-n/2-l):(s&&(u=X(0,s.x-t+n/2,s.x-t+s.width-n/2)),c=="vertical"?s&&r>s.y+o+l?(h=-o-l,this._verticalOrientation="up"):(h=l,this._verticalOrientation="down"):c=="down"?(h=-o-l,this._verticalOrientation="up"):(h=l,this._verticalOrientation="down")),s&&(h=X(h,s.y-r,s.y+s.height-o-r)),e.x=u,e.y=h,this.drawBackground()},i.prototype.updateBackground=function(){this.group.addToBack(this.background.group)},i.prototype.drawBackground=function(){var e=this.label,t=this.background,r=e.measuredWidth,s=e.measuredHeight,n=this._boundingRect,o=r,l=e.pixelX-r/2,u=s,h=e.pixelY,p=this._pointTo.x,d=this._pointTo.y,c=n.x-p,f=c+n.width,y=n.y-d,g=y+n.height;t.x=l,t.y=h,t.width=o,t.height=u,this.fitPointerToBounds?(t.pointerX=X(-t.x,c-t.x,f-t.x),t.pointerY=X(-t.y,y-t.y,g-t.y)):(t.pointerX=-t.x,t.pointerY=-t.y),t.validate()},i.prototype.delayedPointTo=function(e,t){var r=this;this._pointToDisposer&&this._pointToDisposer.dispose(),this._pointToDisposer=_.events.once("exitframe",function(){r.pointTo(e,t)}),this.addDisposer(this._pointToDisposer)},i.prototype.pointTo=function(e,t){(this._pointTo.x!=e.x||this._pointTo.y!=e.y)&&(this._pointTo=e,this.invalidate(),!this.visible||t?(this.moveTo(this._pointTo),this._animation&&this._animation.kill()):this.pixelX==0&&this.pixelY==0?this.moveTo(this._pointTo):(this._animation&&this._animation.kill(),this._animation=new Nt(this,[{property:"x",to:e.x,from:this.pixelX},{property:"y",to:e.y,from:this.pixelY}],this.animationDuration,this.animationEasing).start()))},i.prototype.setBounds=function(e){var t=this._boundingRect;(t.x!=e.x||t.y!=e.y||t.width!=e.width||t.height!=e.height)&&(this._boundingRect=e,this.invalidate())},Object.defineProperty(i.prototype,"boundingContainer",{set:function(e){this._boundingContainer=e,e.events.on("sizechanged",this.updateBounds,this),e.events.on("positionchanged",this.updateBounds,this)},enumerable:!0,configurable:!0}),i.prototype.updateBounds=function(){var e=this._boundingContainer,t=Ga({x:e.pixelX,y:e.pixelY,width:e.maxWidth,height:e.maxHeight},e);this.setBounds(t)},Object.defineProperty(i.prototype,"ignoreBounds",{get:function(){return this.getPropertyValue("ignoreBounds")},set:function(e){this.setPropertyValue("ignoreBounds",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalOrientation",{get:function(){return this._verticalOrientation},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltip",{get:function(){},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),e._boundingRect&&(this._boundingRect=e._boundingRect)},i.prototype.asFunction=function(e){return e=="animationEasing"||a.prototype.asIs.call(this,e)},i})(Y);_.registeredClasses.Tooltip=nr;var Gr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="AxisDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.grid,t.disabled)return;r=t.clone()}else{if(t=e.renderer.grid.template,t.disabled)return;r=e.renderer.grid.create(),this._disposers.push(new ye(function(){e.renderer.grid.removeValue(r)}))}this.grid=r,r.shouldClone=!1,this._disposers.push(r),r.axis=this.component}}return this._grid},set:function(e){this._grid&&this._grid!=e&&(ee(this.sprites,this._grid),this._grid.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(ee(e.dataItem.sprites,e),e.dataItem.grid=void 0),this.addSprite(e)),this._grid=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){if(!this._tick){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.tick,t.disabled)return;r=t.clone()}else{if(t=e.renderer.ticks.template,t.disabled)return;r=e.renderer.ticks.create(),this._disposers.push(new ye(function(){e.renderer.ticks.removeValue(r)}))}this.tick=r,r.axis=this.component,r.shouldClone=!1,this._disposers.push(r)}}return this._tick},set:function(e){this._tick&&this._tick!=e&&(ee(this.sprites,this._tick),this._tick.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(ee(e.dataItem.sprites,e),e.dataItem.tick=void 0),this.addSprite(e)),this._tick=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){if(!this._label){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.label,t.disabled)return;r=t.clone()}else{if(t=e.renderer.labels.template,t.disabled)return;r=e.renderer.labels.create(),this._disposers.push(new ye(function(){e.renderer.labels.removeValue(r)}))}this._disposers.push(r),this.label=r,r.shouldClone=!1,r.axis=this.component,r.virtualParent=e}}return this._label},set:function(e){this._label&&this._label!=e&&(ee(this.sprites,this._label),this._label.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(ee(e.dataItem.sprites,e),e.dataItem.label=void 0),this.addSprite(e)),this._label=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisFill",{get:function(){if(!this._axisFill){var e=this.component;if(e){var t=void 0,r;if(this.isRange){if(t=e.axisRanges.template.axisFill,!this.isTemplate&&t.disabled)return;r=t.clone()}else{if(t=e.renderer.axisFills.template,t.disabled)return;r=e.renderer.axisFills.create(),this._disposers.push(new ye(function(){e.renderer.axisFills.removeValue(r)}))}this.axisFill=r,r.shouldClone=!1,this._disposers.push(r)}}return this._axisFill},set:function(e){this._axisFill&&this._axisFill!=e&&(ee(this.sprites,this._axisFill),this._axisFill.dataItem=void 0),e&&(e.dataItem&&e.dataItem!=this&&(ee(e.dataItem.sprites,e),e.dataItem.axisFill=void 0),e.axis=this.component,this.addSprite(e)),this._axisFill=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"text",{get:function(){return this._text},set:function(e){this._text=e,this._label&&(this._label.text=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mask",{get:function(){return this._mask},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"contents",{get:function(){if(!this._contents){var e=new Y;this.addSprite(e),e.isMeasured=!1,this._contents=e;var t=this.component;if(t){var r=t.renderer.createFill(this.component);r.disabled=!1,r.axis=t,this.addSprite(r),this._mask=r,e.mask=r}}return this._contents},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisBreak",{get:function(){return this._axisBreak},set:function(e){this._axisBreak&&this._axisBreak.dataItems.removeValue(this),e&&e.dataItems.push(this),this._axisBreak=e},enumerable:!0,configurable:!0}),i.prototype.validate=function(){this.component&&this.component.validateDataElement(this)},i.prototype.appendChildren=function(){this.component&&this.component.appendDataItem(this)},i.prototype.hasProperty=function(e){return e=="component"?!0:a.prototype.hasProperty.call(this,e)},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.text=e.text,e.bullet&&(this.bullet=e.bullet.clone()),this.minPosition=e.minPosition,this.maxPosition=e.maxPosition},i.prototype.setVisibility=function(e,t){a.prototype.setVisibility.call(this,e,t),this._contents&&(this._contents.visible=e)},Object.defineProperty(i.prototype,"bullet",{get:function(){return this._bullet},set:function(e){this._bullet&&this._bullet!=e&&(ee(this.sprites,this._bullet),this._bullet.dataItem=void 0),this._bullet=e,e&&this.addSprite(e)},enumerable:!0,configurable:!0}),i})(Ti);var sm;(function(a){a[a.Start=0]="Start",a[a.Middle=.5]="Middle",a[a.End=1]="End"})(sm||(sm={}));var ts=(function(a){S(i,a);function i(){var e=a.call(this)||this;if(e._gridCount=10,e._series=new he,e.autoDispose=!0,e._axisItemCount=0,e.constructor===i)throw new Error("'Axis' cannot be instantiated directly. Please use a specific axis type.");e.hideTooltipWhileZooming=!0,e.minWidth=1e-4,e.minHeight=1e-4,e.className="Axis",e.shouldClone=!1,e.setPropertyValue("cursorTooltipEnabled",!0),e.toggleZoomOutButton=!0,e.zoomable=!0;var t=new J;e.title=new Je,e.title.shouldClone=!1,e._disposers.push(e.title),e.setPropertyValue("startLocation",0),e.setPropertyValue("endLocation",1),e._dataItemsIterator=new Ea(e.dataItems,function(){return e.dataItems.create()}),e._dataItemsIterator.createNewItems=!0;var r=new nr;e._disposers.push(r),r.label.padding(5,10,5,10),r.background.pointerLength=5,r.fitPointerToBounds=!0,r.background.filters.clear(),r.virtualParent=e;var s=r.background;return s.cornerRadius=0,s.fill=t.getFor("alternativeBackground"),s.stroke=s.fill,s.strokeWidth=1,s.fillOpacity=1,r.label.fill=t.getFor("alternativeText"),e.tooltip=r,e.readerHidden=!0,e.events.on("rangechangestarted",function(){e.series.each(function(n){n.hideTooltipWhileZooming&&(n.tooltip.hide(),n.tooltip.preventShow=!0)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!0)},void 0,!1),e.events.on("rangechangeended",function(){e.series.each(function(n){n.hideTooltipWhileZooming&&(n.tooltip.hide(),n.tooltip.preventShow=!1)}),e.hideTooltipWhileZooming&&(e.tooltip.hide(),e.tooltip.preventShow=!1)},void 0,!1),e.applyTheme(),e}return i.prototype.fillRule=function(e,t){b(t)||(t=e.index),t/2==Math.round(t/2)?(e.axisFill.__disabled=!0,e.axisFill.opacity=0):(e.axisFill.opacity=1,e.axisFill.__disabled=!1)},i.prototype.createDataItem=function(){return new Gr},i.prototype.invalidateLayout=function(){a.prototype.invalidateLayout.call(this),V(this.series.iterator(),function(e){e.invalidateLayout()})},i.prototype.invalidateSeries=function(){V(this.series.iterator(),function(e){e.invalidate()})},i.prototype.validateDataElements=function(){this._axisItemCount=0,this.ghostLabel&&(this.renderer.updateLabelElement(this.ghostLabel,this.start,this.end),this.ghostLabel.validate())},i.prototype.updateGridCount=function(){if(this.renderer){var e=this.axisLength/this.renderer.minGridDistance;e!=this._gridCount&&(this._gridCount=e,this.clearCache())}},i.prototype.validateLayout=function(){this.axisFullLength=this.axisLength/(this.end-this.start),a.prototype.validateLayout.call(this),this.updateGridCount();var e=this.renderer;e&&(e.updateAxisLine(),e.updateTooltip(),e.updateBaseGridElement()),this._prevLength!=this.axisLength&&(this.dispatchImmediately("lengthchanged"),this._prevLength=this.axisLength)},i.prototype.initRenderer=function(){},i.prototype.appendDataItem=function(e){var t=this.renderer,r=e.tick;r&&(r.above?r.parent=t.bulletsContainer:r.parent=t.gridContainer),e.label&&(e.label.parent=t);var s=e.axisFill;s&&(s.above?s.parent=t.bulletsContainer:s.parent=t.gridContainer);var n=e.grid;n&&(n.above?n.parent=t.bulletsContainer:n.parent=t.gridContainer),e.bullet&&(e.bullet.parent=t.bulletsContainer)},i.prototype.validate=function(){a.prototype.validate.call(this),this.validateLayout(),this.renderer.updateGridContainer()},i.prototype.validateAxisRanges=function(){var e=this;V(this.axisRanges.iterator(),function(t){e.appendDataItem(t),e.validateDataElement(t),t.grid&&t.grid.validate(),t.tick&&t.tick.validate(),t.axisFill&&t.axisFill.validate(),t.label&&t.label.validate()})},i.prototype.validateBreaks=function(){this._axisBreaks&&V(this._axisBreaks.iterator(),function(e){e.invalidate()})},i.prototype.processBreak=function(e){var t=e.newValue;t.parent=this.renderer.breakContainer,t.axis=this},i.prototype.registerSeries=function(e){var t=this;return this.series.moveValue(e),new Pe([new ye(function(){t.series.removeValue(e)}),this.events.on("lengthchanged",e.invalidate,e,!1),this.events.on("lengthchanged",e.createMask,e,!1),this.events.on("startchanged",e.invalidate,e,!1),this.events.on("endchanged",e.invalidate,e,!1)])},Object.defineProperty(i.prototype,"renderer",{get:function(){return this._renderer},set:function(e){if(e!=this._renderer){this._renderer=e,e.chart=this.chart,e.axis=this,e.parent=this,this.title.parent=this,this.initRenderer(),this._disposers.push(e.gridContainer.events.on("maxsizechanged",this.invalidate,this,!1));var t=this.renderer.labels.create();this._disposers.push(t),t.dataItem=this.dataItems.template.clone(),t.text="L",t.parent=this.renderer,t.shouldClone=!1,t.fillOpacity=0,t.opacity=0,t.strokeOpacity=0,t.interactionsEnabled=!1,t.validate(),this.ghostLabel=t,this.events.on("beforedatavalidated",function(){t.text="L"},void 0,!1)}},enumerable:!0,configurable:!0}),i.prototype.positionToAngle=function(e){return this.renderer.positionToAngle(e)},i.prototype.pointToPosition=function(e){return this.renderer.pointToPosition(e)},i.prototype.positionToCoordinate=function(e){return this.renderer.positionToCoordinate(e)},i.prototype.getAnyRangePath=function(e,t){return this.renderer.getPositionRangePath(e,t)},i.prototype.anyToPosition=function(e){return 0},i.prototype.anyToPoint=function(e){return{x:0,y:0,angle:0}},i.prototype.getPositionRangePath=function(e,t){return this.renderer?this.renderer.getPositionRangePath(e,t):""},Object.defineProperty(i.prototype,"axisLength",{get:function(){return this.renderer?this.renderer.axisLength:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)&&(e&&this.renderer?this.renderer.updateTooltip():this.tooltip&&this.tooltip.hide(0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toggleZoomOutButton",{get:function(){return this.getPropertyValue("toggleZoomOutButton")},set:function(e){this.setPropertyValue("toggleZoomOutButton",e)},enumerable:!0,configurable:!0}),i.prototype.hideTooltip=function(e){a.prototype.hideTooltip.call(this,e),this._tooltipPosition=void 0},i.prototype.showTooltipAtPosition=function(e,t){var r=this._tooltip;if(!r||this.dataItems.length<=0)this._tooltipPosition=void 0;else{if(t||(e=this.toAxisPosition(e)),!b(e)||e<this.start||e>this.end){r.hide(0),this._tooltipPosition=void 0;return}var s=this.renderer;r.parent||(r.parent=this.tooltipContainer);var n=s.tooltipLocation,o=this.getCellStartPosition(e),l=this.getCellEndPosition(e);if(this.tooltipPosition=="fixed"&&(e=o+(l-o)*n),e=X(e,this.start,this.end),this._tooltipPosition!=e){this._tooltipPosition=e;var u=s.tooltipLocation2,h=s.positionToPoint(o,u),p=s.positionToPoint(l,u);this.currentItemStartPoint=h,this.currentItemEndPoint=p,s.fullWidthTooltip&&(r.width=p.x-h.x,r.height=p.y-h.y);var d=s.positionToPoint(e,u),c=Jt(d,this.renderer.line);r.text=this.getTooltipText(e),r.text&&(r.delayedPointTo(c),r.show())}(!this.cursorTooltipEnabled||this.tooltip.disabled)&&r.hide(0)}},i.prototype.toAxisPosition=function(e){if(e=this.renderer.toAxisPosition(e),e!=null)return e=e*(this.end-this.start),this.renderer.inversed?e=this.end-e:e=this.start+e,e},i.prototype.toGlobalPosition=function(e){return this.renderer.inversed?e=this.end-e:e=e-this.start,e/(this.end-this.start)},i.prototype.getTooltipText=function(e){},i.prototype.updateTooltip=function(e,t){var r=this._tooltip;r&&(r.fixDoc=!1,r.pointerOrientation=e,r.setBounds(Ga(t,this.renderer.line)))},i.prototype.roundPosition=function(e,t,r){return e},i.prototype.getCellStartPosition=function(e){return e},i.prototype.getCellEndPosition=function(e){return e},Object.defineProperty(i.prototype,"axisRanges",{get:function(){if(!this._axisRanges){var e=this.createDataItem();e.isRange=!0,e.axisFill=this.renderer.axisFills.template.clone(),e.grid=this.renderer.grid.template.clone(),e.tick=this.renderer.ticks.template.clone(),e.label=this.renderer.labels.template.clone(),e.isTemplate=!0,e.component=this,e.axisFill.disabled=!1,e.tick.disabled=!1,e.grid.disabled=!1,e.label.disabled=!1,this._axisRanges=new Te(e),this._axisRanges.events.on("inserted",this.processAxisRange,this,!1),this._disposers.push(new ge(this._axisRanges)),this._disposers.push(this._axisRanges.template)}return this._axisRanges},enumerable:!0,configurable:!0}),i.prototype.processAxisRange=function(e){var t=e.newValue;t.component=this,t.isRange=!0},Object.defineProperty(i.prototype,"axisBreaks",{get:function(){return this._axisBreaks||(this._axisBreaks=new Wn(this.createAxisBreak(),function(e,t){return fi(e.adjustedStartValue,t.adjustedStartValue)}),this._axisBreaks.events.on("inserted",this.processBreak,this,!1),this._disposers.push(new ge(this._axisBreaks)),this._disposers.push(this._axisBreaks.template)),this._axisBreaks},enumerable:!0,configurable:!0}),i.prototype.createAxisBreak=function(){return new ga},Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new he),this._series},enumerable:!0,configurable:!0}),i.prototype.processSeriesDataItems=function(){},i.prototype.processSeriesDataItem=function(e,t){},i.prototype.postProcessSeriesDataItems=function(e){},i.prototype.postProcessSeriesDataItem=function(e){},i.prototype.updateAxisBySeries=function(){},i.prototype.hideUnusedDataItems=function(){var e=this,t=this._dataItemsIterator;t.createNewItems=!1,V(t.iterator(),function(r){e.validateDataElement(r),r.__disabled=!0}),t.clear(),t.createNewItems=!0},i.prototype.getSeriesDataItem=function(e,t,r){},i.prototype.getAngle=function(e,t,r,s,n){},i.prototype.getX=function(e,t,r,s,n){},i.prototype.getPositionX=function(e,t,r,s,n){},i.prototype.getY=function(e,t,r,s,n){},i.prototype.getPositionY=function(e,t,r,s,n){},Object.defineProperty(i.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),i.prototype.dataChangeUpdate=function(){},i.prototype.seriesDataChangeUpdate=function(e){},i.prototype.adjustDifference=function(e,t){var r=t-e;if(b(r))return this._axisBreaks&&St(this._axisBreaks.iterator(),function(s){var n=s.adjustedStartValue,o=s.adjustedEndValue;if(b(n)&&b(o)){if(n>t)return!1;if(o>=e&&b(n)&&b(o)){var l=s.breakSize,u=Qc({start:n,end:o},{start:e,end:t});u&&(r-=(u.end-u.start)*(1-l))}return!0}}),r},i.prototype.isInBreak=function(e){if(this._axisBreaks)return vf(this._axisBreaks.iterator(),function(t){return e>=t.adjustedStartValue&&e<=t.adjustedEndValue})},i.prototype.fixAxisBreaks=function(){var e=this;if(this._axisBreaks){var t=this._axisBreaks;if(t.length>0){M(Na(t.iterator()),function(n){var o=le(n.startValue,n.endValue),l=ie(n.startValue,n.endValue);n.adjustedStartValue=o,n.adjustedEndValue=l,e._axisBreaks.update(n)});var r=t.first,s=Math.min(r.startValue,r.endValue);V(t.iterator(),function(n){var o=n.adjustedStartValue,l=n.adjustedEndValue;o<s&&(o=s,l<s&&(l=s)),n.adjustedStartValue=o,n.adjustedEndValue=l})}}},Object.defineProperty(i.prototype,"startIndex",{get:function(){return 0},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endIndex",{get:function(){return this.dataItems.length},set:function(e){},enumerable:!0,configurable:!0}),i.prototype.getPositionLabel=function(e){return Math.round(e*100)+"%x"},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),i.prototype.createSeriesRange=function(e){var t=this.axisRanges.create();return t.component=this,t.axisFill=this.renderer.axisFills.template.clone(),t.axisFill.disabled=!1,t.axisFill.fillOpacity=0,t.grid=this.renderer.grid.template.clone(),t.grid.disabled=!0,t.tick=this.renderer.ticks.template.clone(),t.tick.disabled=!0,t.label=this.renderer.labels.template.clone(),t.label.disabled=!0,t.addDisposer(new ye(function(){e.axisRanges.removeValue(t)})),e.axisRanges.push(t),t},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.renderer?this.renderer.copyFrom(e.renderer):e.renderer&&(this.renderer=e.renderer.clone(),this._disposers.push(this.renderer)),e.title&&(this.title?this.title.copyFrom(e.title):(this.title=e.title.clone(),this.title.parent=this),this._disposers.push(this.title))},i.prototype.resetIterators=function(){this._dataItemsIterator.reset()},i.prototype.processConfig=function(e){if(e&&$(e.axisRanges)&&je(e.axisRanges))for(var t=0,r=e.axisRanges.length;t<r;t++){var s=e.axisRanges[t];$(s.series)&&se(s.series)&&this.map.hasKey(s.series)&&(e.axisRanges[t]=this.createSeriesRange(this.map.getKey(s.series)),delete s.series,e.axisRanges[t].config=s)}a.prototype.processConfig.call(this,e)},i.prototype.configOrder=function(e,t){return e==t?0:e=="title"?1:t=="title"||e=="component"?-1:t=="component"?1:a.prototype.configOrder.call(this,e,t)},Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=a.prototype.setDisabled.call(this,e);return this.renderer&&(this.renderer.gridContainer.disabled=e),t},Object.defineProperty(i.prototype,"title",{get:function(){return this._title},set:function(e){this._title&&this._title!=e&&this._title.dispose(),e&&(this._title=e,e.parent=this,e.shouldClone=!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(e){this.setPropertyValue("hideTooltipWhileZooming",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"zoomable",{get:function(){return this.getPropertyValue("zoomable")},set:function(e){this.setPropertyValue("zoomable",e)},enumerable:!0,configurable:!0}),i})(Oi);_.registeredClasses.Axis=ts;_.registeredClasses.AxisDataItem=Gr;tt.push({relevant:lt.maybeXS,state:function(a,i){if(a instanceof ts&&a.tooltip){var e=a.states.create(i);return e.properties.cursorTooltipEnabled=!1,e}return null}});var Yl=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="AxisLine",e.element=e.paper.add("path");var t=new J;return e.stroke=t.getFor("grid"),e.strokeOpacity=.15,e.pixelPerfect=!0,e.fill=Z(),e.applyTheme(),e.interactionsEnabled=!1,e}return i})(U);_.registeredClasses.AxisLine=Yl;var va=(function(a){S(i,a);function i(e){var t=a.call(this)||this;t.axis=e,t.element=t.paper.add("path"),t.className="AxisFill",t.isMeasured=!1,t.location=0,t.above=!1;var r=new J;return t.fill=r.getFor("alternativeBackground"),t.fillOpacity=0,t.applyTheme(),t}return i.prototype.setDisabled=function(e){var t=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i.prototype.draw=function(){a.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis&&b(this.startPosition)&&b(this.endPosition)&&(this.fillPath=this.axis.getPositionRangePath(this.startPosition,this.endPosition),this.path=this.fillPath,this.isMeasured&&this.measure())},Object.defineProperty(i.prototype,"startPosition",{get:function(){return this.getPropertyValue("startPosition")},set:function(e){this.setPropertyValue("startPosition",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){return this.getPropertyValue("endPosition")},set:function(e){this.setPropertyValue("endPosition",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setPath=function(e){return this.setPropertyValue("path",e)?(this.element.attr({d:e}),!0):!1},Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.AxisFill=va;var ba=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="Grid",e.element=e.paper.add("path"),e.location=.5,e.isMeasured=!1,e.above=!1;var t=new J;return e.stroke=t.getFor("grid"),e.pixelPerfect=!0,e.strokeOpacity=.15,e.fill=Z(),e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i})(U);_.registeredClasses.Grid=ba;tt.push({relevant:lt.maybeXS,state:function(a,i){if(a instanceof ba){var e=a.states.create(i);return e.properties.disabled=!0,e}return null}});var wr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="AxisLabel",e.isMeasured=!1,e.padding(10,10,10,10),e.location=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i})(Je);_.registeredClasses.AxisLabel=wr;var Dr=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="Tick";var t=new J;return e.fillOpacity=0,e.length=6,e.strokeOpacity=.2,e.stroke=t.getFor("grid"),e.isMeasured=!1,e.nonScalingStroke=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"length",{get:function(){return this.disabled?0:this.getPropertyValue("length")},set:function(e){this.setPropertyValue("length",e,!0)},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.Tick=Dr;var Gl=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="AxisTick",e.element=e.paper.add("path"),e.location=.5,e.above=!1,e.isMeasured=!1,e.pixelPerfect=!0,e.strokeOpacity=0,e.length=5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"above",{get:function(){return this.getPropertyValue("above")},set:function(e){this.setPropertyValue("above",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i})(Dr);_.registeredClasses.AxisTick=Gl;var xa=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._chart=new We,e.className="AxisRenderer",e.minGridDistance=50,e.inside=!1,e.inversed=!1,e.tooltipLocation=.5,e.fullWidthTooltip=!1,e.cellStartLocation=0,e.cellEndLocation=1,e.minLabelPosition=0,e.maxLabelPosition=1,e.shouldClone=!1;var t=e.createChild(Y);t.shouldClone=!1,t.layout="none",t.virtualParent=e,t.width=k(100),t.height=k(100),e.gridContainer=t,t.events.on("maxsizechanged",function(){e.inited&&e.invalidateAxisItems()},e,!1);var r=e.createChild(Y);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",r.width=k(100),r.height=k(100),e.breakContainer=r;var s=e.createChild(Y);s.shouldClone=!1,s.isMeasured=!1,s.layout="none",s.width=k(100),s.height=k(100),e.bulletsContainer=s,e.line=e.createChild(Yl),e.line.shouldClone=!1,e.line.strokeOpacity=0;var n=e.createChild(ba);n.shouldClone=!1,e.baseGrid=n;var o=e._disposers;return o.push(n),o.push(e.line),o.push(t),o.push(r),o.push(s),o.push(e._chart),e.ticks.template.disabled=!0,e.axisFills.template.disabled=!0,e.axisFills.template.interactionsEnabled=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis},set:function(e){this.setAxis(e)},enumerable:!0,configurable:!0}),i.prototype.setAxis=function(e){this._axis=e,this.baseGrid.parent=e,this.line.parent=e,this.gridContainer.bind("opacity",e)},i.prototype.processRenderer=function(){this.events.on("sizechanged",this.updateTooltip,this,!1),this.events.on("positionchanged",this.updateTooltip,this,!1),this.labels.template.inside=this.inside,this.ticks.template.inside=this.inside},i.prototype.updateTooltip=function(){},Object.defineProperty(i.prototype,"axisLength",{get:function(){return 0},enumerable:!0,configurable:!0}),i.prototype.positionItem=function(e,t){e&&e.moveTo(t)},i.prototype.positionToPoint=function(e,t){return{x:0,y:0}},i.prototype.positionToAngle=function(e){return 0},i.prototype.positionToCoordinate=function(e){var t,r=this.axis,s=r.axisFullLength;return r.renderer.inversed?t=(r.end-e)*s:t=(e-r.start)*s,t},i.prototype.updateGridContainer=function(){},i.prototype.getHeight=function(){var e=this.gridContainer;return e.parent?e.parent.pixelHeight:this.gridContainer.pixelHeight||0},i.prototype.getWidth=function(){var e=this.gridContainer;return e.parent?e.parent.pixelWidth:this.gridContainer.pixelWidth||0},i.prototype.coordinateToPosition=function(e,t){var r,s=this.axis,n=s.axisFullLength;return s.renderer.inversed?r=s.end-e/n:r=e/n+s.start,I(r,5)},i.prototype.pointToPosition=function(e){return 0},i.prototype.getPositionRangePath=function(e,t){return""},i.prototype.invalidateAxisItems=function(){var e=this.axis;e&&e.invalidateDataItems()},i.prototype.updateGridElement=function(e,t,r){},i.prototype.updateTickElement=function(e,t,r){},i.prototype.updateBullet=function(e,t,r){},i.prototype.updateLabelElement=function(e,t,r,s){},i.prototype.updateFillElement=function(e,t,r){e.startPosition=t,e.endPosition=r},i.prototype.updateAxisLine=function(){},i.prototype.updateBaseGridElement=function(){},i.prototype.updateBreakElement=function(e){this.positionItem(e.startLine,e.startPoint),this.toggleVisibility(e.startLine,e.startPosition,0,1),this.positionItem(e.endLine,e.endPoint),this.toggleVisibility(e.endLine,e.endPosition,0,1)},Object.defineProperty(i.prototype,"minGridDistance",{get:function(){return this.getPropertyValue("minGridDistance")},set:function(e){this.setPropertyValue("minGridDistance",e)&&this.axis&&this.axis.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),i.prototype.toggleVisibility=function(e,t,r,s){var n=this.axis,o=e.dataItem;o&&o instanceof Gr&&(b(o.minPosition)&&(r=o.minPosition),b(o.maxPosition)&&(s=o.maxPosition));var l=n.start+(n.end-n.start)*(r-1e-4),u=n.start+(n.end-n.start)*(s+1e-4);e.disabled||(t<l||t>u?e.__disabled=!0:e.__disabled=!1)},i.prototype.createBreakSprites=function(e){},Object.defineProperty(i.prototype,"axisFills",{get:function(){if(!this._axisFills){var e=this.createFill(this.axis);this._axisFills=new Te(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ge(this._axisFills)),this._disposers.push(this._axisFills.template)}return this._axisFills},enumerable:!0,configurable:!0}),i.prototype.createFill=function(e){return new va(e)},Object.defineProperty(i.prototype,"grid",{get:function(){if(!this._grid){var e=this.createGrid();this._grid=new Te(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ge(this._grid)),this._disposers.push(this._grid.template)}return this._grid},enumerable:!0,configurable:!0}),i.prototype.createGrid=function(){return new ba},Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,e.isMeasured=!1,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._ticks=new Te(e),this._disposers.push(new ge(this._ticks)),this._disposers.push(this._ticks.template)}return this._ticks},enumerable:!0,configurable:!0}),i.prototype.createTick=function(){return new Gl},Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();this._labels=new Te(e),e.applyOnClones=!0,e.events.on("enabled",this.invalidateAxisItems,this,!1),this._disposers.push(new ge(this._labels)),this._disposers.push(this._labels.template)}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createLabel=function(){return new wr},Object.defineProperty(i.prototype,"inside",{get:function(){return this.getPropertyValue("inside")},set:function(e){this.setPropertyValue("inside",e)&&this.axis&&this.axis.invalidate(),e?(this.width=0,this.height=0):(this.width=void 0,this.height=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opposite",{get:function(){return this.getPropertyValue("opposite")},set:function(e){this.setPropertyValue("opposite",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthTooltip",{get:function(){return this.getPropertyValue("fullWidthTooltip")},set:function(e){this.setPropertyValue("fullWidthTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation2",{get:function(){return this.getPropertyValue("tooltipLocation2")},set:function(e){this.setPropertyValue("tooltipLocation2",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellStartLocation",{get:function(){return this.getPropertyValue("cellStartLocation")},set:function(e){this.setPropertyValue("cellStartLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cellEndLocation",{get:function(){return this.getPropertyValue("cellEndLocation")},set:function(e){this.setPropertyValue("cellEndLocation",e)&&this.axis&&this.axis.invalidateSeries()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"inversed",{get:function(){return this.getPropertyValue("inversed")},set:function(e){this.setPropertyValue("inversed",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minLabelPosition",{get:function(){return this.getPropertyValue("minLabelPosition")},set:function(e){this.setPropertyValue("minLabelPosition",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxLabelPosition",{get:function(){return this.getPropertyValue("maxLabelPosition")},set:function(e){this.setPropertyValue("maxLabelPosition",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.grid.template.copyFrom(e.grid.template),this.ticks.template.copyFrom(e.ticks.template),this.labels.template.copyFrom(e.labels.template),this.axisFills.template.copyFrom(e.axisFills.template),this.line.copyFrom(e.line),this.baseGrid.copyFrom(e.baseGrid)},i.prototype.toAxisPosition=function(e){return e},i.prototype.setVisibility=function(e){a.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},i})(Y);_.registeredClasses.AxisRenderer=xa;var po=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="WavedRectangle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.tension=.8,e.setPropertyValue("wavedLeft",!0),e.setPropertyValue("wavedRight",!0),e.setPropertyValue("wavedTop",!0),e.setPropertyValue("wavedBottom",!0),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight;if(e>0&&t>0){var r={x:0,y:0},s={x:e,y:0},n={x:e,y:t},o={x:0,y:t},l=Math.min(e,this.waveLength),u=Math.min(t,this.waveHeight),h=Math.min(t,this.waveLength),p=Math.min(e,this.waveHeight),d="",c="",f="",y="";this.wavedTop&&(d=es(r,s,l,u,this.tension,!0)),this.wavedRight&&(c=es(s,n,h,p,this.tension,!0)),this.wavedBottom&&(f=es(n,o,l,u,this.tension,!0)),this.wavedLeft&&(y=es(o,r,h,p,this.tension,!0)),this.path=R(r)+d+F(s)+c+F(n)+f+F(o)+y+"z"}},Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.setWavedSides=function(e,t,r,s){this.wavedTop=e,this.wavedRight=t,this.wavedBottom=r,this.wavedLeft=s},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedRight",{get:function(){return this.getPropertyValue("wavedRight")},set:function(e){this.setPropertyValue("wavedRight",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedLeft",{get:function(){return this.getPropertyValue("wavedLeft")},set:function(e){this.setPropertyValue("wavedLeft",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedTop",{get:function(){return this.getPropertyValue("wavedTop")},set:function(e){this.setPropertyValue("wavedTop",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"wavedBottom",{get:function(){return this.getPropertyValue("wavedBottom")},set:function(e){this.setPropertyValue("wavedBottom",e,!0)},enumerable:!0,configurable:!0}),i})(ca);var Ar=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="AxisBullet",e.location=.5,e.isMeasured=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"location",{get:function(){return this.getPropertyValue("location")},set:function(e){this.setPropertyValue("location",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setDisabled=function(e){var t=a.prototype.setDisabled.call(this,e);return this.axis&&this.axis.invalidateDataItems(),t},i})(Y);_.registeredClasses.AxisBullet=Ar;var _t=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="AxisRendererY",e.minGridDistance=40,e.opposite=!1,e.height=k(100),e.labels.template.verticalCenter="middle",e.applyTheme(),e}return i.prototype.setAxis=function(e){a.prototype.setAxis.call(this,e),e.layout="horizontal"},i.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.y=e.pixelY,t.height=e.axisLength}},i.prototype.toAxisPosition=function(e){var t=this.axis;if(t){var r=1-e,s=t.relativePositionSprite,n=t.pixelY;if(s?n=At({x:0,y:this.pixelY},this.parent,s).y:s=t.parent,s){var o=n/s.innerHeight,l=t.axisLength/s.innerHeight;return 1-(r-o)/l}}return e},i.prototype.processRenderer=function(){a.prototype.processRenderer.call(this);var e=this.axis;if(e){var t=e.title;t.valign="middle",e.height instanceof ae||(e.height=k(100)),this.opposite?(t.rotation=90,this.line.toBack(),t.toFront()):(t.rotation=-90,t.toBack(),this.line.toFront())}},i.prototype.updateTooltip=function(){var e=this.axis;if(e){var t=2e3,r=0,s=0,n=t,o=this.axisLength;this.opposite?this.inside&&(r=-t,n=t):this.inside||(r=-t,n=t),this.axis.updateTooltip("horizontal",{x:r,y:s,width:n,height:o})}},Object.defineProperty(i.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredHeight-e.pixelPaddingTop-e.pixelPaddingBottom||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){return{x:0,y:this.positionToCoordinate(e)}},i.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.y,e.x)},i.prototype.coordinateToPosition=function(e,t){var r,s=this.axis,n=s.axisFullLength;return s.renderer.inversed?r=1-s.start-e/n:r=e/n+(1-s.end),I(r,5)},i.prototype.getPositionRangePath=function(e,t){var r=X(this.positionToCoordinate(e),0,this.axisLength),s=X(this.positionToCoordinate(t),0,this.axisLength),n=Math.abs(s-r),o=this.getWidth(),l=Math.min(r,s),u=0;return Ri({x:u,y:l,width:o,height:n},!0)},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t);e.path=R({x:0,y:0})+F({x:this.getWidth(),y:0}),this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t),n=e.length;try{this.axis.title.measuredWidth}catch{}s.x=At({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.opposite?n*=e.inside?-1:1:n*=e.inside?1:-1,e.path=R({x:0,y:0})+F({x:n,y:0}),this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateAxisLine=function(){this.line.path=R({x:0,y:0})+F({x:0,y:this.axisLength})},i.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.axis,t=this.getWidth(),r=this.axisLength,s=e.basePoint.y,n=this.baseGrid;if(s<-.2||s>r+.2)n.hide(0);else{var o=At({x:0,y:0},this.gridContainer,n.parent).x;n.path=R({x:0,y:0})+F({x:t,y:0}),n.moveTo({x:o,y:s}),n.show(0)}},i.prototype.updateLabelElement=function(e,t,r,s){$(s)||(s=e.location),t=t+(r-t)*s,e.isMeasured=!e.inside;var n=this.positionToPoint(t),o,l=0,u=this.gridContainer.maxWidth;this.opposite?(e.inside?(o="right",e.align=="left"&&(l=-u,o="left"),e.align=="center"&&(l=-u/2,o="middle")):o="left",n.x=0+l):(e.inside?(o="left",e.align=="right"&&(l=u,o="right"),e.align=="center"&&(l=u/2,o="middle")):o="right",n.x=this.measuredWidth+l),e.rotation==0&&(e.horizontalCenter=o),this.positionItem(e,n),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.updateBreakElement=function(e){a.prototype.updateBreakElement.call(this,e);var t=e.startLine,r=e.endLine,s=e.fillShape,n=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,u=this.getWidth()-e.pixelMarginLeft-e.pixelMarginRight;n.y=X(n.y,-1,this.axisLength+1),o.y=X(o.y,-1,this.axisLength+1),n.y==o.y&&(n.y<0||n.y>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1;var h=Math.abs(u-l);t.x=l,t.height=0,t.width=h,r.x=l,r.height=0,r.width=h,s.width=h,s.height=Math.abs(o.y-n.y),s.x=l,s.y=o.y},i.prototype.createBreakSprites=function(e){e.startLine=new sr,e.endLine=new sr;var t=new po;t.setWavedSides(!0,!1,!0,!1),e.fillShape=t},i.prototype.positionToCoordinate=function(e){var t,r=this.axis,s=r.axisFullLength;return r.renderer.inversed?t=(e-r.start)*s:t=(r.end-e)*s,t},i.prototype.updateBullet=function(e,t,r){var s=.5;e instanceof Ar&&(s=e.location),t=t+(r-t)*s;var n=this.positionToPoint(t);n.x=At({x:this.line.pixelX,y:0},this.line.parent,this.gridContainer).x,this.positionItem(e,n),this.toggleVisibility(e,t,0,1)},i})(xa);_.registeredClasses.AxisRendererY=_t;tt.push({relevant:lt.widthS,state:function(a,i){if(a instanceof _t){var e=a.states.create(i);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}});tt.push({relevant:lt.widthXS,state:function(a,i){if(a instanceof _t){var e=a.states.create(i);return e.properties.disabled=!0,e}return null}});var un=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ValueAxisBreak",e.applyTheme(),e}return Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedStartValue)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.valueToPosition(this.adjustedEndValue)},enumerable:!0,configurable:!0}),i})(ga);_.registeredClasses.ValueAxisBreak=un;var or=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ValueAxisDataItem",e.values.value={},e.values.endValue={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){return this.values.endValue.value},set:function(e){this.setValue("endValue",e)},enumerable:!0,configurable:!0}),i})(Gr);var Q=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._stepDecimalPlaces=0,e._prevStepDecimalPlaces=0,e._adjustLabelPrecision=!0,e._baseValue=0,e._adjustedStart=0,e._adjustedEnd=1,e._extremesChanged=!1,e._deltaMinMax=1,e._dsc=!1,e.calculateTotals=!1,e.className="ValueAxis",e.axisFieldName="value",e.setPropertyValue("maxZoomFactor",1e3),e.setPropertyValue("extraMin",0),e.setPropertyValue("extraMax",0),e.setPropertyValue("strictMinMax",!1),e.setPropertyValue("maxPrecision",Number.MAX_VALUE),e.setPropertyValue("adjustLabelPrecision",!0),e.setPropertyValue("extraTooltipPrecision",0),e.keepSelection=!1,e.includeRangesInMinMax=!1,e.applyTheme(),e}return i.prototype.fillRule=function(e){var t=e.value,r=e.component;e.axisFill.disabled||(I(t/r.step/2,5)==Math.round(t/r.step/2)?e.axisFill.__disabled=!0:e.axisFill.__disabled=!1)},i.prototype.createDataItem=function(){return new or},i.prototype.createAxisBreak=function(){return new un},i.prototype.dataChangeUpdate=function(){this.clearCache(),this.keepSelection?(this._start!=0&&this.dispatchImmediately("startchanged"),this._end!=1&&this.dispatchImmediately("endchanged"),(this._start!=0||this._end!=1)&&this.dispatchImmediately("startendchanged")):(this._start!=0||this._end!=1)&&(this._start=0,this._end=1,this.dispatchImmediately("startendchanged")),this._maxZoomed=this._maxDefined,this._minZoomed=this._minDefined,this._maxAdjusted=this._maxDefined,this._minAdjusted=this._minDefined},i.prototype.processSeriesDataItems=function(){if(this.calculateTotals){var e=this.series.getIndex(0),t=e.startIndex;if(e.dataItems.length>0){t>0&&t--;var r=e.endIndex;r<e.dataItems.length&&r++;for(var s=function(l){var u={},h={};n.series.each(function(p){if(!p.excludeFromTotal){var d=p.dataItems.getIndex(l);d&&q(d.values,function(c){var f=d.values[c].workingValue;b(f)&&(b(u[c])?u[c]+=Math.abs(f):u[c]=Math.abs(f),b(h[c])?h[c]+=f:h[c]=f)})}}),n.series.each(function(p){if(!p.excludeFromTotal){var d=p.dataItems.getIndex(l);d&&q(d.values,function(c){var f=d.values[c].workingValue;b(f)&&(d.setCalculatedValue(c,u[c],"total"),d.setCalculatedValue(c,100*f/u[c],"totalPercent"),d.setCalculatedValue(c,h[c],"sum"))})}})},n=this,o=t;o<r;++o)s(o)}}},i.prototype.validate=function(){this.axisLength<=0||(a.prototype.validate.call(this),this.getMinMax(),b(this._minAdjusted)||this.dataItems.each(function(e){e.value=null}),this.fixAxisBreaks(),this.calculateZoom(),this.validateAxisElements(),this.validateAxisRanges(),this.validateBreaks(),this.hideUnusedDataItems(),this.renderer.invalidateLayout())},i.prototype.calculateZoom=function(){if(b(this.min)&&b(this.max)){var e=this.positionToValue(this.start),t=this.positionToValue(this.end),r=this.adjustDifference(e,t),s=this.adjustMinMax(e,t,r,this._gridCount,!0),n=ep(s.step);this._stepDecimalPlaces=n,e=I(e,n),t=I(t,n),s=this.adjustMinMax(e,t,r,this._gridCount,!0);var o=s.step;if(this.syncWithAxis){var l=this.getCache(e+"-"+t);b(l)&&(o=l)}else e=s.min,t=s.max;(this._minZoomed!=e||this._maxZoomed!=t||this._step!=o||this._dsc)&&(this._dsc=!1,this._minZoomed=e,this._maxZoomed=t,this._step=o,this.dispatchImmediately("selectionextremeschanged"))}},i.prototype.fixSmallStep=function(e){return 1+e==1?(e*=2,this.fixSmallStep(e)):e},i.prototype.validateAxisElements=function(){var e=this;if(b(this.max)&&b(this.min)){var t=this.minZoomed-this._step*2;if(!this.logarithmic)t=Math.floor(t/this._step)*this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E):(t=Math.floor(this.minZoomed/this._step)*this._step,t==0&&(t=this.minZoomed))}var s=this._maxZoomed+this._step;this.resetIterators();var n=this._dataItemsIterator;if(this._step==0)return;this._step=this.fixSmallStep(this._step);var o=0,l=this._prevStepDecimalPlaces!=this._stepDecimalPlaces;for(this._prevStepDecimalPlaces=this._stepDecimalPlaces;t<=s;){var u=this.isInBreak(t);if(!u){var h=n.find(function(g){return g.value===t});h.__disabled&&(h.__disabled=!1),this.appendDataItem(h),h.axisBreak=void 0,(h.value!=t||l)&&(h.value=t,h.text=this.formatLabel(t),h.label&&h.label.invalid&&h.label.validate(),h.value>=this.min&&h.value<=this.max&&h.label&&(this.axisLetter=="Y"&&h.label.measuredWidth>this.ghostLabel.measuredWidth||this.axisLetter=="X"&&h.label.measuredHeight>this.ghostLabel.measuredHeight)&&(this.ghostLabel.text=h.label.currentText,this.ghostLabel.validate())),this.validateDataElement(h)}o++;var p=t;if(!this.logarithmic)t+=this._step;else{var r=Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E;r>1?t=Math.pow(10,Math.log(this.min)*Math.LOG10E+o):t+=this._step}var d=Math.pow(10,Math.floor(Math.log(Math.abs(this._step))*Math.LOG10E));if(d<1){var c=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+2;if(c=Math.min(13,c),t=I(t,c),p==t){t=s;break}}}var f=this._axisBreaks;if(f){var y=this.renderer;V(f.iterator(),function(g){if(g.breakSize>0&&xe(g.startPoint,g.endPoint)>y.minGridDistance)for(var v=g.adjustedMin;v<=g.adjustedMax;){if(v>=g.adjustedStartValue&&v<=g.adjustedEndValue){var x=n.find(function(P){return P.value===v});x.__disabled&&(x.__disabled=!1),e.appendDataItem(x),x.axisBreak=g,x.value!=v&&(x.value=v,x.text=e.formatLabel(v),x.label&&x.label.invalid&&x.label.validate()),e.validateDataElement(x)}v+=g.adjustedStep}})}}},i.prototype.validateDataElement=function(e){a.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var t=this.renderer,r=e.value,s=e.endValue,n=this.valueToPosition(r);e.position=n;var o=n,l=this.valueToPosition(r+this._step);b(s)&&(o=this.valueToPosition(s),l=o),e.point=t.positionToPoint(n);var u=e.tick;u&&!u.disabled&&t.updateTickElement(u,n,o);var h=e.grid;h&&!h.disabled&&t.updateGridElement(h,n,o);var p=e.label;p&&!p.disabled&&t.updateLabelElement(p,n,o);var d=e.axisFill;d&&!d.disabled&&(t.updateFillElement(d,n,l),e.isRange||this.fillRule(e)),e.bullet&&t.updateBullet(e.bullet,n,o);var c=e.mask;c&&t.updateFillElement(c,n,l)},i.prototype.formatLabel=function(e){return this.adjustLabelPrecision&&e!=0?this.numberFormatter.format(e,void 0,this._stepDecimalPlaces):this.numberFormatter.format(e)},Object.defineProperty(i.prototype,"basePoint",{get:function(){var e=this.baseValue,t=this.valueToPosition(e),r=this.renderer.positionToPoint(t);return r},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"baseValue",{get:function(){var e=this._baseValue;return this.logarithmic&&(e=this.min),this._adapterO?this._adapterO.apply("baseValue",e):e},set:function(e){this._baseValue=e,this.invalidateLayout(),this.invalidateSeries()},enumerable:!0,configurable:!0}),i.prototype.anyToPosition=function(e){return this.valueToPosition(e)},i.prototype.valueToPoint=function(e){var t=this.valueToPosition(e),r=this.renderer.positionToPoint(t),s=this.renderer.positionToAngle(t);return{x:r.x,y:r.y,angle:s}},i.prototype.anyToPoint=function(e){return this.valueToPoint(e)},i.prototype.valueToPosition=function(e){if(b(e)){var t=this.min,r=this.max;if(b(t)&&b(r)){var s=this._difference,n=this._axisBreaks;n&&n.length>0&&St(n.iterator(),function(u){var h=u.adjustedStartValue,p=u.adjustedEndValue;if(b(h)&&b(p)){if(e<h)return!1;if(Ls({start:h,end:p},{start:t,end:r})){h=Math.max(h,t),p=Math.min(p,r);var d=u.breakSize;e>p?t+=(p-h)*(1-d):e<h||(e=h+(e-h)*d)}}return!0});var o=void 0;if(!this.logarithmic)o=(e-t)/s;else{var l=this.treatZeroAs;b(l)&&e<=l&&(e=l),o=(Math.log(e)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)/(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)}return o}}return 0},i.prototype.invalidateLabels=function(){a.prototype.invalidateLabels.call(this),this.dataItems&&(this.dataItems.each(function(e){e.value=void 0}),this.invalidate())},i.prototype.positionToValue=function(e){var t=this.min,r=this.max;if(b(t)&&b(r)){var s=r-t,n=null,o=this._axisBreaks;return o&&o.length>0&&St(o.iterator(),function(l){var u=l.startPosition,h=l.endPosition,p=l.adjustedStartValue,d=l.adjustedEndValue;if(b(p)&&b(d)){if(p>r)return!1;if(Ls({start:p,end:d},{start:t,end:r})){p=ie(p,t),d=le(d,r);var c=l.breakSize;if(s-=(d-p)*(1-c),e>h)t+=(d-p)*(1-c);else if(!(e<u)){var f=(e-u)/(h-u);return n=p+f*(d-p),!1}}return!0}}),b(n)||(this.logarithmic?n=Math.pow(Math.E,(e*(Math.log(this.max)*Math.LOG10E-Math.log(this.min)*Math.LOG10E)+Math.log(this.min)*Math.LOG10E)/Math.LOG10E):n=e*s+t),n}},i.prototype.xToValue=function(e){return this.positionToValue(this.pointToPosition({x:e,y:0}))},i.prototype.yToValue=function(e){return this.positionToValue(this.pointToPosition({x:0,y:e}))},i.prototype.pointToPosition=function(e){return this.renderer instanceof _t?1-this.renderer.pointToPosition(e):this.renderer.pointToPosition(e)},i.prototype.animateMinMax=function(e,t){return this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:t}],this.rangeChangeDuration,this.rangeChangeEasing)},i.prototype.getMinMax=function(){var e=this;this.updateGridCount();var t=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;if((!b(this._minDefined)||!b(this._maxDefined))&&(this.series.each(function(d){if(!d.ignoreMinMax){var c=d.min(e);b(c)&&c<t&&(t=c);var f=d.max(e);b(f)&&f>r&&(r=f)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(d){if(!d.ignoreMinMax){var c=le(d.value,d.endValue),f=ie(d.value,d.endValue);(c<t||!b(t))&&(t=c),(f>r||!b(r))&&(r=f)}})),this.logarithmic){var s=this.treatZeroAs;b(s)&&t<=0&&(t=s),t<=0&&this.raiseCriticalError(new Error("Logarithmic value axis can not have values <= 0."),!0)}if(t==0&&r==0&&(r=.9,t=-.9),b(this._minDefined)&&(t=this._minDefined),b(this._maxDefined)&&(r=this._maxDefined),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(r=this._adapterO.apply("max",r)),!(!b(t)||!b(r))){this._minReal=t,this._maxReal=r,t==Number.POSITIVE_INFINITY&&(t=void 0),r==Number.NEGATIVE_INFINITY&&(r=void 0);var n=this.adjustDifference(t,r);if(t=this.fixMin(t),r=this.fixMax(r),r-t<=1/Math.pow(10,15)){if(r-t!=0)this._deltaMinMax=(r-t)/2;else{var o=Math.log(Math.abs(r))*Math.LOG10E,l=Math.pow(10,Math.floor(o));l=l/10,this._deltaMinMax=l}t-=this._deltaMinMax,r+=this._deltaMinMax}t-=(r-t)*this.extraMin,r+=(r-t)*this.extraMax;var u=this.strictMinMax;b(this._maxDefined)&&(u=!0);var h=this.adjustMinMax(t,r,n,this._gridCount,u);if(t=h.min,r=h.max,n=r-t,h=this.adjustMinMax(t,r,r-t,this._gridCount,!0),t=h.min,r=h.max,this.strictMinMax&&(b(this._minDefined)?t=this._minDefined:t=this._minReal,b(this._maxDefined)?r=this._maxDefined:r=this._maxReal,r-t<=1e-8&&(t-=this._deltaMinMax,r+=this._deltaMinMax),t-=(r-t)*this.extraMin,r+=(r-t)*this.extraMax),this._adapterO&&(t=this._adapterO.apply("min",t)),this._adapterO&&(r=this._adapterO.apply("max",r)),this._step=h.step,!b(t)&&!b(r)&&(this.start=0,this.end=1,this.renderer.labels.each(function(d){d.dataItem.text=""})),(this._minAdjusted!=t||this._maxAdjusted!=r)&&b(t)&&b(r)){var p=this._minMaxAnimation;if(this._extremesChanged&&b(this._minAdjusted)&&b(this._maxAdjusted)&&this.inited){if(p&&!p.isFinished()&&this._finalMax==r&&this._finalMin==t)return;this._finalMin=t,this._finalMax=r,p=this.animateMinMax(t,r),p&&!p.isFinished()?(p.events.on("animationprogress",this.validateDataItems,this),p.events.on("animationended",function(){e.series.each(function(d){d.validate()}),e.validateDataItems(),e.handleSelectionExtremesChange()}),this._minMaxAnimation=p):this.series.each(function(d){d.invalidate()}),this.validateDataItems(),this.dispatchImmediately("extremeschanged"),this.handleSelectionExtremesChange()}else{if(p&&!p.isFinished()&&this._finalMax==r&&this._finalMin==t)return;this._minAdjusted=t,this._maxAdjusted=r,this._finalMin=t,this._finalMax=r,this.invalidateDataItems(),this.dispatchImmediately("extremeschanged"),this._saveMinMax(t,r)}}this._extremesChanged=!1,this._difference=this.adjustDifference(t,r)}},i.prototype.fixMin=function(e){return e},i.prototype.fixMax=function(e){return e},i.prototype.adjustMinMax=function(e,t,r,s,n){s<=1&&(s=1),s=Math.round(s);var o=e,l=t;r===0&&(r=Math.abs(t));var u=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(u));h=h/10;var p=h;n&&(p=0),this.logarithmic?(e<=0&&(e=this.baseValue),e==1/0&&(e=1),t==-1/0&&(t=10),this.strictMinMax?(this._minDefined>0?e=this._minDefined:e=e,this._maxDefined>0&&(t=t)):(e=Math.pow(10,Math.floor(Math.log(Math.abs(e))*Math.LOG10E)),t=Math.pow(10,Math.ceil(Math.log(Math.abs(t))*Math.LOG10E)))):(n?(e=Math.floor(e/h)*h,t=Math.ceil(t/h)*h):(e=Math.ceil(e/h)*h-p,t=Math.floor(t/h)*h+p),e<0&&o>=0&&(e=0),t>0&&l<=0&&(t=0)),u=Math.log(Math.abs(r))*Math.LOG10E,h=Math.pow(10,Math.floor(u)),h=h/10;var d=Math.ceil(r/s/h)*h,c=Math.pow(10,Math.floor(Math.log(Math.abs(d))*Math.LOG10E)),f=Math.ceil(d/c);f>5?f=10:f<=5&&f>2&&(f=5),d=Math.ceil(d/(c*f))*c*f,this.maxPrecision<Number.MAX_VALUE&&d!=Ph(d,this.maxPrecision)&&(d=Ph(d,this.maxPrecision));var y=0;if(c<1&&(y=Math.round(Math.abs(Math.log(Math.abs(c))*Math.LOG10E))+1,d=I(d,y)),!this.logarithmic){var g=Math.floor(e/d);e=I(d*g,y);var v=void 0;n?v=Math.floor(t/d):v=Math.ceil(t/d),v==g&&v++,t=I(d*v,y),t<l&&(t=t+d),e>o&&(e=e-d)}return{min:e,max:t,step:d}},Object.defineProperty(i.prototype,"min",{get:function(){var e=this._minAdjusted;return b(e)||(e=this._minDefined),e},set:function(e){this._minDefined!=e&&(this._minDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minDefined",{get:function(){return this._minDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxDefined",{get:function(){return this._maxDefined},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMin",{get:function(){return this.getPropertyValue("extraMin")},set:function(e){this.setPropertyValue("extraMin",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraMax",{get:function(){return this.getPropertyValue("extraMax")},set:function(e){this.setPropertyValue("extraMax",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"step",{get:function(){return this._step},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"max",{get:function(){var e=this._maxAdjusted;return b(e)||(e=this._maxDefined),e},set:function(e){this._maxDefined!=e&&(this._maxDefined=e,this.invalidate())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"adjustLabelPrecision",{get:function(){return this.getPropertyValue("adjustLabelPrecision")},set:function(e){this.setPropertyValue("adjustLabelPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.registerSeries=function(e){return new Pe([a.prototype.registerSeries.call(this,e),e.events.on("extremeschanged",this.handleExtremesChange,this,!1),e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1),this.events.on("extremeschanged",e.invalidate,e,!1)])},i.prototype.handleSelectionExtremesChange=function(){var e=this,t,r,s=!0;if(V(this.series.iterator(),function(c){if(!c.ignoreMinMax&&!c.isHidden&&!c.outOfRange){c.visible&&!c.isHiding&&(s=!1);var f=c.selectionMin(e),y=c.selectionMax(e);b(f)&&(!b(t)||f<t)&&(t=f),b(y)&&(!b(r)||y>r)&&(r=y)}}),this.includeRangesInMinMax&&this.axisRanges.each(function(c){if(!c.ignoreMinMax){var f=le(c.value,c.endValue),y=ie(c.value,c.endValue);f<t&&(t=f),y>r&&(r=y)}}),b(this._minDefined)?this.strictMinMax?t=this._minDefined:t=this.min:this.strictMinMax&&(t=this._minReal),b(this._maxDefined)?this.strictMinMax?r=this._maxDefined:r=this.max:this.strictMinMax&&(r=this._maxReal),t==r){t-=this._deltaMinMax,r+=this._deltaMinMax;var n=this.adjustMinMax(t,r,0,this._gridCount,this.strictMinMax);t=n.min,r=n.max}var o=this.adjustDifference(t,r),l=this.adjustMinMax(t,r,o,this._gridCount);t=l.min,r=l.max,t-=(r-t)*this.extraMin,r+=(r-t)*this.extraMax,t=X(t,this.min,this.max),r=X(r,this.min,this.max),o=this.adjustDifference(t,r),l=this.adjustMinMax(t,r,o,this._gridCount,!0),t=l.min,r=l.max,this.strictMinMax&&(t=ie(t,this._minDefined),r=le(r,this._maxDefined));var u=l.step;this.syncWithAxis&&(l=this.syncAxes(t,r,u),t=l.min,r=l.max,this.invalidate()),u=l.step,this._difference=this.adjustDifference(this.min,this.max);var h=this.valueToPosition(t),p=this.valueToPosition(r);s&&!this.syncWithAxis&&(h=0,p=1);var d=0;this.syncWithAxis?(d=5,this.setCache(t+"-"+r,u)):((this._step!=u||this._minZoomed!=t||this._maxZoomed!=r)&&(this._dsc=!0),this._step=u,this._minZoomed=t,this._maxZoomed=r),this.keepSelection||this.zoom({start:h,end:p},!1,!1,d)},Object.defineProperty(i.prototype,"strictMinMax",{get:function(){return this.getPropertyValue("strictMinMax")},set:function(e){this.setPropertyValue("strictMinMax",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"logarithmic",{get:function(){return this.getPropertyValue("logarithmic")},set:function(e){this.setPropertyValue("logarithmic",e)&&(this.invalidate(),this.series.each(function(t){t.invalidateDataItems()}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"keepSelection",{get:function(){return this.getPropertyValue("keepSelection")},set:function(e){this.setPropertyValue("keepSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"includeRangesInMinMax",{get:function(){return this.getPropertyValue("includeRangesInMinMax")},set:function(e){this.setPropertyValue("includeRangesInMinMax",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPrecision",{get:function(){return this.getPropertyValue("maxPrecision")},set:function(e){this.setPropertyValue("maxPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"extraTooltipPrecision",{get:function(){return this.getPropertyValue("extraTooltipPrecision")},set:function(e){this.setPropertyValue("extraTooltipPrecision",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i.prototype.handleExtremesChange=function(){var e=this;if(this._extremesChanged=!0,this.getMinMax(),this.ghostLabel){var t=0;this.dataItems.each(function(r){r.label&&r.label.pixelWidth>t&&(e.ghostLabel.text=r.label.currentText)})}},i.prototype.getX=function(e,t,r,s,n){return this.renderer.positionToPoint(this.getPositionX(e,t,r,s,n)).x},i.prototype.getPositionX=function(e,t,r,s,n){var o=e.getWorkingValue(t);$(s)||(s="valueX");var l=e.getValue(s,"stack");b(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var u=this.valueToPosition(o+l);return n&&(u=X(u,n.start,n.end)),u},i.prototype.getY=function(e,t,r,s,n){return this.renderer.positionToPoint(this.getPositionY(e,t,r,s,n)).y},i.prototype.getPositionY=function(e,t,r,s,n){var o=e.getWorkingValue(t);$(s)||(s="valueY");var l=e.getValue(s,"stack");b(o)||(o=this.baseValue,this.logarithmic&&l>0&&(o=0));var u=this.valueToPosition(o+l);return n&&(u=X(u,n.start,n.end)),u},i.prototype.getAngle=function(e,t,r,s,n){var o=e.getWorkingValue(t),l=e.getValue(s,"stack");b(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return n&&(u=X(u,n.start,n.end)),this.positionToAngle(u)},i.prototype.getAnyRangePath=function(e,t,r){var s=this.valueToPosition(e),n=this.valueToPosition(t);return this.getPositionRangePath(s,n)},i.prototype.getTooltipText=function(e){var t=I(this.positionToValue(e),this._stepDecimalPlaces+this.extraTooltipPrecision),r=this.tooltip.numberFormatter.format(t);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},i.prototype.zoomToValues=function(e,t,r,s){var n=(e-this.min)/(this.max-this.min),o=(t-this.min)/(this.max-this.min);this.zoom({start:n,end:o},r,s)},Object.defineProperty(i.prototype,"minZoomed",{get:function(){return this.syncWithAxis?this._minZoomed:ie(this.min,this._minZoomed)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxZoomed",{get:function(){return this.syncWithAxis?this._maxZoomed:le(this.max,this._maxZoomed)},enumerable:!0,configurable:!0}),i.prototype.fixAxisBreaks=function(){var e=this;a.prototype.fixAxisBreaks.call(this);var t=this._axisBreaks;t&&t.length>0&&t.each(function(r){var s=r.adjustedStartValue,n=r.adjustedEndValue,o=n-s,l=Math.ceil(o*r.breakSize)*e._gridCount/(e.max-e.min),u=e.adjustMinMax(s,n,o,l,!0);r.adjustedStep=u.step,r.adjustedMin=u.min,r.adjustedMax=u.max}),this._difference=this.adjustDifference(this.min,this.max)},i.prototype.getPositionLabel=function(e){var t=this.positionToValue(e);return this.numberFormatter.format(t)},i.prototype.showTooltipAt=function(e){this.showTooltipAtPosition(this.valueToPosition(e))},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.min=e.min,this.max=e.max,this.calculateTotals=e.calculateTotals,this._baseValue=e.baseValue},Object.defineProperty(i.prototype,"syncWithAxis",{get:function(){return this.getPropertyValue("syncWithAxis")},set:function(e){var t=this;this.setPropertyValue("syncWithAxis",e,!0)&&e&&(this._disposers.push(e.events.on("extremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("selectionextremeschanged",this.handleSelectionExtremesChange,this,!1)),this._disposers.push(e.events.on("startendchanged",this.handleSelectionExtremesChange,this,!1)),this.events.on("shown",this.handleSelectionExtremesChange,this,!1),this.events.on("maxsizechanged",function(){t.clearCache(),t._disposers.push(_.events.once("exitframe",function(){t.handleSelectionExtremesChange()}))},this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"treatZeroAs",{get:function(){return this.getPropertyValue("treatZeroAs")},set:function(e){this.setPropertyValue("treatZeroAs",e,!0)},enumerable:!0,configurable:!0}),i.prototype.syncAxes=function(e,t,r){var s=this.syncWithAxis;if(s){b(e)||(e=this.min),b(t)||(t=this.max),b(r)||(r=this._step);var n=Math.round((s.maxZoomed-s.minZoomed)/s.step),o=Math.round((t-e)/r);if(b(n)&&b(o))for(var l=!1,u=0,h=(t-e)*.01,p=e,d=t,c=r;l!=!0;)if(l=this.checkSync(p,d,c,n),u++,u>1e3&&(l=!0),l)e=p,t=d,r=c;else{u/3==Math.round(u/3)?(p=e-h*u,e>=0&&p<0&&(p=0)):(d=t+h*u,d<=0&&d>0&&(d=0));var f=this.adjustMinMax(p,d,d-p,this._gridCount,!0);p=f.min,d=f.max,c=f.step}}return{min:e,max:t,step:r}},i.prototype.checkSync=function(e,t,r,s){for(var n=(t-e)/r,o=1;o<s;o++)if(I(n/o,1)==s||n*o==s)return!0;return!1},i.prototype.processConfig=function(e){e&&$(e.syncWithAxis)&&se(e.syncWithAxis)&&(this.map.hasKey(e.syncWithAxis)?e.syncWithAxis=this.map.getKey(e.syncWithAxis):(this.processingErrors.push('[ValueAxis] No axis with id "'+e.syncWithAxis+'" found for `syncWithAxis`'),delete e.xAxis)),a.prototype.processConfig.call(this,e)},i.prototype._saveMinMax=function(e,t){},i})(ts);_.registeredClasses.ValueAxis=Q;_.registeredClasses.ValueAxisDataItem=or;var kp=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="Grip";var t=new J;e.layout="absolute",e.padding(10,10,10,10),e.margin(3,3,3,3),e.background.fillOpacity=.3,e.background.cornerRadius(10,10,10,10);var r=new U;r.element=e.paper.add("path");var s=R({x:-6,y:0});return s+=F({x:6,y:0}),s+=R({x:-8,y:-6}),s+=F({x:0,y:-12}),s+=F({x:8,y:-6}),s+=R({x:-8,y:6}),s+=F({x:0,y:12}),s+=F({x:8,y:6}),r.path=s,r.strokeWidth=2,r.fillOpacity=0,r.pixelPerfect=!0,r.padding(0,4,0,4),r.stroke=t.getFor("text"),r.strokeOpacity=.7,r.align="center",r.valign="middle",e.icon=r,e.label.dispose(),e.label=void 0,e.position="right",e.autoHideDelay=3e3,e.events.on("shown",function(n){e._autoHideTimeout&&e._autoHideTimeout.dispose(),e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.events.on("down",function(n){e._autoHideTimeout&&e._autoHideTimeout.dispose()}),e.events.on("out",function(n){e.autoHideDelay&&(e._autoHideTimeout=e.setTimeout(function(){e.hide()},e.autoHideDelay))}),e.applyTheme(),e}return Object.defineProperty(i.prototype,"position",{get:function(){return this.getPropertyValue("position")},set:function(e){if(this.setPropertyValue("position",e))switch(e){case"left":this.align="left",this.valign="middle",this.horizontalCenter="left",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=k(30);break;case"right":this.align="right",this.valign="middle",this.horizontalCenter="right",this.verticalCenter="middle",this.icon.rotation=0,this.width=void 0,this.height=k(30);break;case"top":this.align="center",this.valign="top",this.horizontalCenter="middle",this.verticalCenter="top",this.icon.rotation=90,this.width=k(30),this.height=void 0;break;case"bottom":this.align="center",this.valign="bottom",this.horizontalCenter="middle",this.verticalCenter="bottom",this.icon.rotation=90,this.width=k(30),this.height=void 0;break;default:this.align="center",this.valign="middle",this.horizontalCenter="middle",this.verticalCenter="middle",this.icon.rotation=90,this.width=k(30),this.height=void 0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"autoHideDelay",{get:function(){return this.getPropertyValue("autoHideDelay")},set:function(e){this.setPropertyValue("autoHideDelay",e)},enumerable:!0,configurable:!0}),i})(oi);_.registeredClasses.Grip=kp;var co=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ChartDataItem",e.applyTheme(),e}return i})(Ti);var Fr=(function(a){S(i,a);function i(){var e=a.call(this)||this;if(e._legend=new We,e.constructor===i)throw new Error("'Chart' cannot be instantiated directly. Please use a specific chart type.");e.className="Chart";var t=new Je;e.titles=new Te(t),e._disposers.push(new ge(e.titles)),e._disposers.push(t),e.width=k(100),e.height=k(100),e.layout="vertical";var r=e.createChild(Y);r.shouldClone=!1,r.layout="vertical",r.width=k(100),r.height=k(100),e.chartAndLegendContainer=r;var s=r.createChild(Y);return s.shouldClone=!1,s.width=k(100),s.height=k(100),e.chartContainer=s,e.showOnInit=!0,e._disposers.push(e._legend),e.titles.events.on("inserted",function(n){e.processTitle(n),e.updateReaderTitleReferences()},e,!1),e.titles.events.on("removed",function(n){e.updateReaderTitleReferences()},e,!1),e.role="region",e.defaultState.transitionDuration=1,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Chart"))},i.prototype.draw=function(){this.fixLayout(),a.prototype.draw.call(this)},i.prototype.fixLayout=function(){var e=this.legend;if(e){var t=this.chartAndLegendContainer,r=this.chartContainer;switch(r.x=void 0,r.y=void 0,e.position!="absolute"&&(e.x=void 0,e.y=void 0),e.position){case"left":t.layout="horizontal",e.toBack();break;case"right":t.layout="horizontal",e.toFront();break;case"top":t.layout="vertical",e.toBack();break;case"bottom":t.layout="vertical",e.toFront();break;case"absolute":e.isMeasured=!1;break}}},i.prototype.feedLegend=function(){},i.prototype.processTitle=function(e){var t=e.newValue;return t.parent=this,t.toBack(),t.shouldClone=!1,t.align="center",t.uidAttr(),t},i.prototype.updateReaderTitleReferences=function(){if(this.titles.length){var e=[];V(this.titles.iterator(),function(t){e.push(t.uid)}),this.setSVGAttribute({"aria-labelledby":e.join(" ")})}else this.removeSVGAttribute("aria-labelledby")},Object.defineProperty(i.prototype,"legend",{get:function(){return this._legend.get()},set:function(e){this.setLegend(e)},enumerable:!0,configurable:!0}),i.prototype.setLegend=function(e){var t=this;this._legend.get()!==e&&(e?(e.parent=this.chartAndLegendContainer,this._legend.set(e,e.events.on("propertychanged",function(r){r.property=="position"&&t.fixLayout()},void 0,!1)),e.addDisposer(new ye(function(){t.legend=void 0}))):this._legend.reset(),this.feedLegend())},i.prototype.dispose=function(){this.legend&&this.legend.dispose(),a.prototype.dispose.call(this)},i.prototype.processConfig=function(e){e&&$(e.legend)&&!$(e.legend.type)&&(e.legend.type="Legend"),a.prototype.processConfig.call(this,e)},i.prototype.copyFrom=function(e){this.titles.copyFrom(e.titles),this.chartContainer.copyFrom(e.chartContainer),e.legend&&(this.legend=e.legend.clone(),this.legend.removeChildren()),a.prototype.copyFrom.call(this,e)},Object.defineProperty(i.prototype,"dragGrip",{get:function(){var e=this;if(!this._dragGrip){var t=this.tooltipContainer.createChild(kp);t.align="right",t.valign="middle",t.hide(0),t.events.on("down",function(r){r.touch&&(e.interactionsEnabled=!1)}),t.events.on("up",function(r){e.interactionsEnabled=!0}),this.events.on("down",function(r){r.touch&&t.show()}),this._dragGrip=t}return this._dragGrip},set:function(e){this._dragGrip=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"focusable",{get:function(){return this.parent.focusable},set:function(e){this.parent.focusable=e},enumerable:!0,configurable:!0}),i})(Oi);_.registeredClasses.Chart=Fr;tt.push({relevant:lt.widthXS,state:function(a,i){if(a instanceof Fr){var e=a.states.create(i);return a.pixelPaddingLeft>10&&(e.properties.paddingLeft=10),a.pixelPaddingRight>10&&(e.properties.paddingRight=10),e}return null}});tt.push({relevant:lt.heightXS,state:function(a,i){if(a instanceof Fr){var e=a.states.create(i);return a.pixelPaddingTop>10&&(e.properties.paddingTop=10),a.pixelPaddingBottom>10&&(e.properties.paddingBottom=10),e}return null}});tt.push({relevant:lt.widthXXS,state:function(a,i){if(a instanceof Fr){var e=a.states.create(i);return e.properties.paddingLeft=0,e.properties.paddingRight=0,e}return null}});tt.push({relevant:lt.heightXXS,state:function(a,i){if(a instanceof Fr){var e=a.states.create(i);return e.properties.paddingTop=0,e.properties.paddingBottom=0,e}return null}});var qt=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Bullet",e.isMeasured=!1,e.tooltipX=0,e.tooltipY=0,e.layout="none",e.applyOnClones=!0,e.copyToLegendMarker=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){if(this.setPropertyValue("locationX",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){if(this.setPropertyValue("locationY",e)){var t=this.dataItem;t&&t.component&&t.component.invalidate()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this.getPropertyValue("xField")},set:function(e){this.setPropertyValue("xField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this.getPropertyValue("yField")},set:function(e){this.setPropertyValue("yField",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"isDynamic",{get:function(){return this.getPropertyValue("isDynamic")},set:function(e){this.setPropertyValue("isDynamic",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"copyToLegendMarker",{get:function(){return this.getPropertyValue("copyToLegendMarker")},set:function(e){this.setPropertyValue("copyToLegendMarker",e)},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.Bullet=qt;tt.push({relevant:lt.isXS,state:function(a,i){if(a instanceof qt){var e=a.states.create(i);return e.properties.disabled=!0,e}return null}});var is=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="SeriesDataItem",e.values.value={},e.values.value={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new _e,this._disposers.push(new Pi(this._bullets))),this._bullets},enumerable:!0,configurable:!0}),i.prototype.dispose=function(){this.bullets.clear(),a.prototype.dispose.call(this)},Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),i})(Ti);var lr=(function(a){S(i,a);function i(){var e=a.call(this)||this;if(e._ignoreMinMax=!1,e._showBullets=!0,e.legendSettings=new ho,e._tmin=new _e,e._tmax=new _e,e._smin=new _e,e._smax=new _e,e.dataItemsByAxis=new _e,e.skipFocusThreshold=20,e._itemReaderTextChanged=!1,e.calculatePercent=!1,e.usePercentHack=!0,e.autoDispose=!0,e.simplifiedProcessing=!1,e.constructor===i)throw new Error("'Series' cannot be instantiated directly. Please use a specific series type.");e.className="Series",e.isMeasured=!1,e.layout="none",e.shouldClone=!1,e.setPropertyValue("hidden",!1),e.axisRanges=new he,e.axisRanges.events.on("inserted",e.processAxisRange,e,!1),e.minBulletDistance=0,e.mainContainer=e.createChild(Y),e.mainContainer.shouldClone=!1,e.mainContainer.mask=e.createChild(U),e._disposers.push(e.mainContainer);var t=e.mainContainer.createChild(Y);return e._shouldBeReady.push(t),t.shouldClone=!1,t.layout="none",t.virtualParent=e,e._disposers.push(t),e.bulletsContainer=t,e.tooltip=new nr,e.tooltip.virtualParent=e,e._disposers.push(e.tooltip),e.hiddenState.transitionEasing=ap,e.dataItem=e.createDataItem(),e._disposers.push(e.dataItem),e.dataItem.component=e,e.role="group",e.applyTheme(),e}return i.prototype.applyTheme=function(){a.prototype.applyTheme.call(this),ue.autoSetClassName&&this.bulletsContainer&&(this.bulletsContainer.className=this.className+"-bullets",this.bulletsContainer.setClassName())},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Series"))},i.prototype.createDataItem=function(){return new is},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){},i.prototype.processBullet=function(e){var t=this,r=e.newValue;r.isTemplate=!0,this.events.once("datavalidated",function(s){t.itemsFocusable()&&(r.focusable=!0)}),this.invalidate()},i.prototype.removeBullet=function(e){var t=e.oldValue;this.dataItems.each(function(r){var s=r.bullets.getKey(t.uid);s&&s.dispose()}),this.invalidate()},i.prototype.validateDataItems=function(){a.prototype.validateDataItems.call(this),this.processValues(!1)},i.prototype.getFirstValue=function(e,t){for(var r=t;r>=0;r--){var s=this.dataItems.getIndex(r),n=s.getActualWorkingValue(e);if(b(n))return n}return null},i.prototype.getAbsoluteFirstValue=function(e){for(var t=0;t<this.dataItems.length;t++){var r=this.dataItems.getIndex(t),s=r.values[e].value;if(b(s))return s}return null},i.prototype.rangeChangeUpdate=function(){a.prototype.rangeChangeUpdate.call(this),this.processValues(!0)},i.prototype.processValues=function(e){var t=this;if(!this.simplifiedProcessing){var r=this.dataItems,s={},n={},o={},l={},u={},h={},p={},d={},c={},f={},y=ie(0,this.startIndex);y=le(y,this.dataItems.length);var g=le(this.endIndex,this.dataItems.length);if(b(y)||(y=0),b(g)||(g=this.dataItems.length),y>0){var v=r.getIndex(y-1);q(v.values,function(w,D){var A=v.getActualWorkingValue(w);b(A)&&(d[w]=A)})}for(var x=function(w){var D=r.getIndex(w);q(D.values,function(A,H){var E=D.getActualWorkingValue(A);if(b(E)){b(s[A])||(s[A]=0),s[A]++,b(n[A])||(n[A]=0),n[A]+=E,b(o[A])||(o[A]=0),o[A]+=Math.abs(E),b(h[A])||(h[A]=E),p[A]=E,b(l[A])?l[A]>E&&(l[A]=E):l[A]=E,b(u[A])?u[A]<E&&(u[A]=E):u[A]=E,b(c[A])||(c[A]=t.getFirstValue(A,y)),b(f[A])||(f[A]=t.getAbsoluteFirstValue(A)),D.setCalculatedValue(A,E-c[A],"change"),D.setCalculatedValue(A,(E-c[A])/c[A]*100,"changePercent"),D.setCalculatedValue(A,E-f[A],"startChange"),D.setCalculatedValue(A,(E-f[A])/f[A]*100,"startChangePercent");var j=d[A];b(j)||(j=E),D.setCalculatedValue(A,E-j,"previousChange"),D.setCalculatedValue(A,(E-j)/j*100,"previousChangePercent"),d[A]=E}})},P=y;P<g;P++)x(P);if(this.calculatePercent)for(var T=function(w){var D=r.getIndex(w);q(D.values,function(A){var H=o[A],E=D.getActualWorkingValue(A);if(b(E))if(H>0){t.usePercentHack&&E==H&&(H=D.values[A].value);var j=E/H*100;D.setCalculatedValue(A,j,"percent")}else D.setCalculatedValue(A,0,"percent")})},P=y;P<g;P++)T(P);if(y>0){var C=r.getIndex(y-1);q(C.values,function(w){var D=C.values[w].value;C.setCalculatedValue(w,D-h[w],"change"),C.setCalculatedValue(w,(D-h[w])/h[w]*100,"changePercent")})}var O=this.dataItem;q(O.values,function(w){O.setCalculatedValue(w,n[w],"sum"),O.setCalculatedValue(w,o[w],"absoluteSum"),O.setCalculatedValue(w,n[w]/s[w],"average"),O.setCalculatedValue(w,h[w],"open"),O.setCalculatedValue(w,p[w],"close"),O.setCalculatedValue(w,l[w],"low"),O.setCalculatedValue(w,u[w],"high"),O.setCalculatedValue(w,s[w],"count")})}},i.prototype.validate=function(){Sr()&&this.filters.clear(),V(this.axisRanges.iterator(),function(s){s.validate()}),a.prototype.validate.call(this);var e=this.bulletsContainer;if(e.fill=this.fill,e.stroke=this.stroke,e.x=this.pixelX,e.y=this.pixelY,this.bulletsContainer.children.length>0)if(this._showBullets){for(var t=0;t<this.startIndex;t++){var r=this.dataItems.getIndex(t);r&&r.bullets.each(function(s,n){n.__disabled=!0})}for(var t=this.dataItems.length-1;t>this.endIndex;t--){var r=this.dataItems.getIndex(t);r&&r.bullets.each(function(o,l){l.__disabled=!0})}}else this.bulletsContainer.children.each(function(s){s.__disabled=!0});this.updateTooltipBounds()},i.prototype.updateTooltipBounds=function(){if(this.topParent){var e=0,t=0,r=this.topParent.maxWidth,s=this.topParent.maxHeight,n={x:e,y:t,width:r,height:s};this.tooltip.setBounds(n)}},i.prototype.shouldCreateBullet=function(e,t){return!0},i.prototype.validateDataElement=function(e){var t=this;a.prototype.validateDataElement.call(this,e),this._showBullets?(this.isHidden||(this.bulletsContainer.visible=!0),this.bullets.each(function(r){var s=e.bullets.getKey(r.uid);if(t.shouldCreateBullet(e,r)){if(!s){var n=r.propertyFields.disabled,o=e.dataContext;n&&o&&o[n]===!1?(r.applyOnClones=!1,r.disabled=!1,s=r.clone(),r.disabled=!0,r.applyOnClones=!0):s=r.clone(),s.shouldClone=!1,e.addSprite(s),(!t.visible||t.isHiding)&&s.hide(0)}var l=s.dataItem;if(l!=e){l&&l.bullets.setKey(r.uid,void 0);var u=t.itemReaderText;s instanceof qt&&(u||(u="{"+s.xField+"}: {"+s.yField+"}"),s.isDynamic&&(e.events.on("workingvaluechanged",s.deepInvalidate,s,!1),t.dataItem.events.on("workingvaluechanged",s.deepInvalidate,s,!1)),s.deepInvalidate()),s.focusable&&(s.events.on("focus",function(h){s.readerTitle=t.populateString(u,s.dataItem)},void 0,!1),s.events.on("blur",function(h){s.readerTitle=""},void 0,!1)),s.hoverable&&(s.events.on("over",function(h){s.readerTitle=t.populateString(u,s.dataItem)},void 0,!1),s.events.on("out",function(h){s.readerTitle=""},void 0,!1))}s.parent=t.bulletsContainer,e.bullets.setKey(r.uid,s),s.maxWidth=e.itemWidth,s.maxHeight=e.itemHeight,s.__disabled=!1,t.positionBullet(s)}else s&&(s.__disabled=!0)})):this.bulletsContainer.visible=!1},i.prototype.handleDataItemWorkingValueChange=function(e,t){this.dataRangeInvalid||this.invalidateProcessedData()},Object.defineProperty(i.prototype,"ignoreMinMax",{get:function(){return this._ignoreMinMax},set:function(e){this._ignoreMinMax=e,this.invalidateDataItems()},enumerable:!0,configurable:!0}),i.prototype.createMask=function(){},i.prototype.processAxisRange=function(e){this.rangesContainer||(this.rangesContainer=this.createChild(Y),this.rangesContainer.shouldClone=!1,this.rangesContainer.isMeasured=!1);var t=e.newValue;t&&(t.contents.parent=this.rangesContainer,t.isRange=!0,t.events.on("valuechanged",this.invalidateDataItems,this,!1))},i.prototype.getAxisField=function(e){},i.prototype.showTooltipAtPosition=function(e,t){},Object.defineProperty(i.prototype,"minBulletDistance",{get:function(){return this.getPropertyValue("minBulletDistance")},set:function(e){this.setPropertyValue("minBulletDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bullets",{get:function(){return this._bullets||(this._bullets=new Te(new qt),this._bullets.template.virtualParent=this,this._bullets.events.on("inserted",this.processBullet,this,!1),this._bullets.events.on("removed",this.removeBullet,this,!1),this._disposers.push(new ge(this._bullets)),this._disposers.push(this._bullets.template)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){},Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.getPropertyValue("hiddenInLegend")},set:function(e){this.setPropertyValue("hiddenInLegend",e)&&this.chart&&this.chart.feedLegend()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e);var t=this.legendDataItem;t&&(t.component.invalidate(),t.component.invalidateRawData()),this.readerTitle=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"itemReaderText",{get:function(){var e=this._itemReaderText;return e||(this.tooltipText?e=Us(this.tooltipText):this.tooltipHTML&&(e=Us(this.tooltipHTML))),this._adapterO?this._adapterO.apply("itemReaderText",e):e},set:function(e){this._itemReaderText=e,this._itemReaderTextChanged=!0},enumerable:!0,configurable:!0}),i.prototype.itemsFocusable=function(){return!(this.dataItems.length>=this.skipFocusThreshold)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e,t){if(this.legendDataItem){var r=this.legendSettings,s=this.legendDataItem,n=s.label,o=s.valueLabel;e&&!e.isDisposed()||t?(o&&(r.itemValueText&&(o.text=r.itemValueText),o.dataItem=e),n&&(r.itemLabelText&&(n.text=r.itemLabelText),n.dataItem=e)):(n&&((r.labelText||r.itemLabelText!=null)&&(n.text=r.labelText),n.dataItem=this.dataItem),o&&((r.valueText||r.itemValueText!=null)&&(o.text=r.valueText),o.dataItem=this.dataItem))}},i.prototype.copyFrom=function(e){this.bullets.copyFrom(e.bullets),this.bulletsContainer.copyFrom(e.bulletsContainer),this.calculatePercent=e.calculatePercent,this.usePercentHack=e.usePercentHack,this.simplifiedProcessing=e.simplifiedProcessing,a.prototype.copyFrom.call(this,e)},i.prototype.raiseCriticalError=function(e){this._chart&&this._chart.modal&&(this._chart.modal.content=this._chart.adapter.apply("criticalError",e).message,this._chart.modal.closable=!1,ue.suppressErrors||this._chart.modal.open(),this._chart.disabled=!0),ue.verbose&&console.log(e)},i.prototype.applyFilters=function(){var e=this;a.prototype.applyFilters.call(this),this.bulletsContainer.filters.clear(),V(this.filters.iterator(),function(t){e.bulletsContainer.filters.push(t.clone())})},Object.defineProperty(i.prototype,"heatRules",{get:function(){var e=this;return this._heatRules||(this._heatRules=new he,this._heatRules.events.on("inserted",function(t){var r=t.newValue,s=r.target;if(s){var n=r.dataField;$(n)||(n="value");var o=e.dataItem,l=r.property,u=Oe(r.minValue),h=Oe(r.maxValue);!b(u)&&!b(h)&&e.dataItem.events.on("calculatedvaluechanged",function(p){p.property==n&&V(e.dataItems.iterator(),function(d){var c=!1;M(d.sprites,function(f){if(f.clonedFrom==s){var y=f;y[l]=y[l],c=!0}}),c||M(d.sprites,function(f){f instanceof Y&&V(f.children.iterator(),function(y){if(y.className==s.className){var g=y;g[l]=g[l]}else y instanceof Y&&y.deepInvalidate()})})})}),e.dataItems.template.events.on("workingvaluechanged",function(p){if(p.property==n){var d=p.target,c=!1;M(d.sprites,function(f){if(f.clonedFrom==s){var y=f;y[l]=y[l],c=!0}}),c||M(d.sprites,function(f){f instanceof Y&&V(f.children.iterator(),function(y){if(y.className==s.className){var g=y;g[l]=g[l]}else y instanceof Y&&y.deepInvalidate()})})}}),s.adapter.add(l,function(p,d,c){var f=Oe(r.minValue),y=Oe(r.maxValue),g=r.min,v=r.max;if(d instanceof U){var x=d,P=x.propertyFields[c];if(P&&d.dataItem){var T=d.dataItem.dataContext;if(T&&$(T[P]))return p}}var C=d.dataItem;if(b(f)||(f=o.values[n].low),b(y)||(y=o.values[n].high),C){var O=C.values[n];if(O){var w=C.getActualWorkingValue(n);if($(g)&&$(v)&&b(f)&&b(y)&&b(w)){var D=void 0;if(r.logarithmic?D=(Math.log(w)*Math.LOG10E-Math.log(f)*Math.LOG10E)/(Math.log(y)*Math.LOG10E-Math.log(f)*Math.LOG10E):D=(w-f)/(y-f),b(w)&&(!b(D)||Math.abs(D)==1/0)&&(D=.5),b(g))return g+(v-g)*D;if(g instanceof de)return new de(Ba(g.rgb,v.rgb,D))}}}return p})}})),this._heatRules},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){var t;if(e){if($(e.bullets)&&je(e.bullets))for(var r=0,s=e.bullets.length;r<s;r++){var n=e.bullets[r];$(n.type)||(n.type="Bullet")}$(e.heatRules)&&je(e.heatRules)&&(t=e.heatRules,delete e.heatRules)}if(a.prototype.processConfig.call(this,e),t){for(var r=0,s=t.length;r<s;r++){var o=t[r],l=this;if($(o.target)&&se(o.target))if(this.map.hasKey(o.target))l=this.map.getKey(o.target);else for(var u=o.target.split("."),h=0;h<u.length;h++)if(l instanceof he){var p=l.getIndex(Oe(u[h]));p?l=p:l=l[u[h]]}else{var d=u[h].match(/^(.*)\[([0-9]+)\]/);d?l[d[1]]instanceof he?l=l[d[1]].getIndex(Oe(d[2])):l=l[d[1]][Oe(d[2])]:l=l[u[h]]}o.target=l,$(o.min)&&(o.min=this.maybeColorOrPercent(o.min)),$(o.max)&&(o.max=this.maybeColorOrPercent(o.max))}a.prototype.processConfig.call(this,{heatRules:t})}},i.prototype.configOrder=function(e,t){return e==t?0:e=="heatRules"?1:t=="heatRules"?-1:a.prototype.configOrder.call(this,e,t)},i.prototype.setVisibility=function(e){a.prototype.setVisibility.call(this,e),this.bulletsContainer.visible=e},i})(Oi);_.registeredClasses.Series=lr;_.registeredClasses.SeriesDataItem=is;var Vr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new de({r:103,g:183,b:220}),e.stepOptions={},e.passOptions={brighten:-.2},e.step=1,e.minColors=20,e.minLightness=.2,e.maxLightness=.9,e.shuffle=!1,e.wrap=!0,e.reuse=!1,e.saturation=1,e.className="ColorSet",e.applyTheme(),e}return Object.defineProperty(i.prototype,"list",{get:function(){return this._list||this.generate(this.minColors),this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.getReusableColor=function(e){if(this._list.length==0)return this.generate(1),this.list[0];var t=e-Math.floor(e/this._list.length)*this.list.length;return this.list[t]},i.prototype.next=function(){var e;return this.list.length<=this._currentStep?this.reuse?e=this.getReusableColor(this._currentStep):(this.generate(ie(this.minColors,this._currentStep+1)),e=this.list[this._currentStep]):e=this.list[this._currentStep],this._currentStep+=this.step,e.saturate(this.saturation)},i.prototype.getIndex=function(e){var t;return this.list.length<=e?this.reuse?t=this.getReusableColor(e):(this.generate(this.minColors),t=this.getIndex(e)):t=this.list[e],t.saturate(this.saturation)},i.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(i.prototype,"currentStep",{get:function(){return this._currentStep},set:function(e){this._currentStep=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return this._startIndex},set:function(e){this._startIndex=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.generate=function(e){var t=this.currentColor,r=Nn(Me(t.rgb)),s=$(this.stepOptions.hue)?this.stepOptions.hue:1/e,n={brighten:0,lighten:0,hue:r.h,lightness:r.l,saturation:r.s},o=[],l=this.list.length==0?0:1;if(this.reuse)for(var u=l;u<=e;u++)o.push(Nn(Me(this._list[u].rgb)).h);else for(var u=l;u<=e;u++){var h=r.h+s*u;this.wrap&&h>1&&(h-=1),o.push(h)}this.shuffle&&o.sort(function(f,y){return Math.random()-.5});for(var u=0;u<e;u++){this.reuse?r=Nn(Me(this._list[u].rgb)):r.h=o.shift(),this.applyStepOptions(r,n,u,this._currentPass);var p=Z(Rh(r)),d=(this.stepOptions.brighten||0)*u+(this.passOptions.brighten||0)*this._currentPass;d!=0&&(this.wrap?d=Un(d,this.minLightness,this.maxLightness):d=Gn(d,this.minLightness,this.maxLightness),p=p.brighten(d));var c=(this.stepOptions.lighten||0)*u+(this.passOptions.lighten||0)*this._currentPass;c!=0&&(this.wrap?c=Un(c,this.minLightness,this.maxLightness):c=Gn(c,this.minLightness,this.maxLightness),p=p.lighten(c)),this._list.push(p)}this._currentPass++},Object.defineProperty(i.prototype,"currentColor",{get:function(){return this._list.length==0?this.baseColor.saturate(this.saturation):this._list[this._list.length-1].saturate(this.saturation)},enumerable:!0,configurable:!0}),i.prototype.applyStepOptions=function(e,t,r,s){e.l=t.lightness+(this.stepOptions.lightness||0)*r+(this.passOptions.lightness||0)*s,this.wrap?(e.l>1?e.l=e.l-Math.floor(e.l):e.l<0&&(e.l=-(e.l-Math.floor(e.l))),e.l=Un(e.l,this.minLightness,this.maxLightness)):(e.l>1?e.l=1:e.l<0&&(e.l=0),e.l=Gn(e.l,this.minLightness,this.maxLightness))},i.prototype.processConfig=function(e){if(e){if($(e.list)&&je(e.list))for(var t=0,r=e.list.length;t<r;t++)e.list[t]instanceof de||(e.list[t]=Z(e.list[t]));$(e.baseColor)&&!(e.baseColor instanceof de)&&(e.baseColor=Z(e.baseColor))}a.prototype.processConfig.call(this,e)},i})(Ze);_.registeredClasses.ColorSet=Vr;var fo=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="SerialChartDataItem",e.applyTheme(),e}return i})(co);var Ur=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._exitDP={},e.className="SerialChart",e.colors=new Vr,e._usesData=!1;var t=e.chartContainer.createChild(Y);t.shouldClone=!1,t.width=k(100),t.height=k(100),t.isMeasured=!1,t.layout="none",t.zIndex=2,e.seriesContainer=t;var r=e.chartContainer.createChild(Y);return r.shouldClone=!1,r.width=k(100),r.height=k(100),r.isMeasured=!1,r.zIndex=3,r.layout="none",e.bulletsContainer=r,e.applyTheme(),e}return i.prototype.dispose=function(){a.prototype.dispose.call(this),this.colors&&this.colors.dispose(),this.patterns&&this.patterns.dispose()},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Serial chart"))},Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new Te(this.createSeries()),this._series.events.on("inserted",this.handleSeriesAdded,this,!1),this._series.events.on("removed",this.handleSeriesRemoved,this,!1),this._disposers.push(new ge(this._series,!1)),this._disposers.push(this._series.template)),this._series},enumerable:!0,configurable:!0}),i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue;this.dataUsers.removeValue(t),this.dataUsers.each(function(u){u.invalidateDataItems()}),this._exitDP[t.uid]&&(this._exitDP[t.uid].dispose(),delete this._exitDP[t.uid]),t.autoDispose?t.dispose():(t.parent=void 0,t.bulletsContainer.parent=void 0);var r=this.legend;if(r){for(var s=this.legend.dataItems,n=s.length-1;n>=0;n--){var o=s.getIndex(n);o&&o.dataContext==t&&r.dataItems.remove(o)}for(var n=r.data.length-1;n>=0;n--){var l=r.data[n];l&&l==t&&ee(r.data,l)}}},i.prototype.handleSeriesAdded=function(e){var t=this,r=e.newValue;r.isDisposed()||(r.chart=this,r.parent=this.seriesContainer,r.bulletsContainer.parent=this.bulletsContainer,this._dataUsers.moveValue(r),r.addDisposer(new ye(function(){t.dataUsers.removeValue(r)})),this.handleSeriesAdded2(r),this.handleLegendSeriesAdded(r))},i.prototype.handleLegendSeriesAdded=function(e){e.hiddenInLegend||this.legend&&this.legend.addData(e)},i.prototype.handleSeriesAdded2=function(e){var t=this;this.dataInvalid||(this._exitDP[e.uid]=_.events.once("exitframe",function(){(!e.data||e.data.length==0)&&(e.data=t.data,e.showOnInit&&(e.reinit(),e.setPropertyValue("showOnInit",!1),e.showOnInit=!0),e.isDisposed()||e.events.once("datavalidated",function(){e.data==t.data&&(e._data=[])}))}),this._disposers.push(this._exitDP[e.uid]))},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];V(this.series.iterator(),function(r){r.hiddenInLegend||t.push(r)}),e.dataFields.name="name",e.data=t}},i.prototype.createSeries=function(){return new lr},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.series.copyFrom(e.series)},i.prototype.appear=function(){a.prototype.appear.call(this),this.series.each(function(e){e.showOnInit&&e.inited&&e.appear()})},i})(Fr);_.registeredClasses.SerialChart=Ur;var Ul=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="DateAxisBreak",e.applyTheme(),e}return Object.defineProperty(i.prototype,"startDate",{get:function(){return this.getPropertyValue("startDate")},set:function(e){this.setPropertyValue("startDate",e)&&(this.startValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endDate",{get:function(){return this.getPropertyValue("endDate")},set:function(e){this.setPropertyValue("endDate",e)&&(this.endValue=e.getTime(),this.axis&&(this.axis.invalidate(),this.axis.invalidateSeries()))},enumerable:!0,configurable:!0}),i})(un);_.registeredClasses.DateAxisBreak=Ul;var _a=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="DateAxisDataItem",e.applyTheme(),e.values.date={},e.values.endDate={},e}return Object.defineProperty(i.prototype,"date",{get:function(){return this.dates.date},set:function(e){this.setDate("date",e),this.value=e.getTime()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endDate",{get:function(){return this.dates.endDate},set:function(e){this.setDate("endDate",e),this.endValue=e.getTime()},enumerable:!0,configurable:!0}),i})(or);var fe=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._gapBreaks=!1,e.gridIntervals=new he,e.groupIntervals=new he,e.dateFormats=new _e,e.periodChangeDateFormats=new _e,e._baseIntervalReal={timeUnit:"day",count:1},e._prevSeriesTime={},e._minDifference={},e._firstWeekDay=1,e.groupMin={},e.groupMax={},e._intervalMax={},e._intervalMin={},e.className="DateAxis",e.setPropertyValue("markUnitChange",!0),e.snapTooltip=!0,e.tooltipPosition="pointer",e.setPropertyValue("groupData",!1),e.groupCount=200,e.events.on("parentset",e.getDFFormatter,e,!1),e.gridIntervals.pushAll([{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}]),e.groupIntervals.pushAll([{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}]),e.axisFieldName="date",e.applyTheme(),e}return i.prototype.fillRule=function(e){var t=e.value,r=e.component,s=r._gridInterval,n=ht(s.timeUnit,s.count);Math.round((t-r.min)/n)/2==Math.round(Math.round((t-r.min)/n)/2)?e.axisFill.__disabled=!0:e.axisFill.__disabled=!1},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),this.dateFormats.hasKey("millisecond")||this.dateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.dateFormats.hasKey("second")||this.dateFormats.setKey("second",this.language.translate("_date_second")),this.dateFormats.hasKey("minute")||this.dateFormats.setKey("minute",this.language.translate("_date_minute")),this.dateFormats.hasKey("hour")||this.dateFormats.setKey("hour",this.language.translate("_date_hour")),this.dateFormats.hasKey("day")||this.dateFormats.setKey("day",this.language.translate("_date_day")),this.dateFormats.hasKey("week")||this.dateFormats.setKey("week",this.language.translate("_date_day")),this.dateFormats.hasKey("month")||this.dateFormats.setKey("month",this.language.translate("_date_month")),this.dateFormats.hasKey("year")||this.dateFormats.setKey("year",this.language.translate("_date_year")),this.periodChangeDateFormats.hasKey("millisecond")||this.periodChangeDateFormats.setKey("millisecond",this.language.translate("_date_millisecond")),this.periodChangeDateFormats.hasKey("second")||this.periodChangeDateFormats.setKey("second",this.language.translate("_date_second")),this.periodChangeDateFormats.hasKey("minute")||this.periodChangeDateFormats.setKey("minute",this.language.translate("_date_minute")),this.periodChangeDateFormats.hasKey("hour")||this.periodChangeDateFormats.setKey("hour",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("day")||this.periodChangeDateFormats.setKey("day",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("week")||this.periodChangeDateFormats.setKey("week",this.language.translate("_date_day")),this.periodChangeDateFormats.hasKey("month")||this.periodChangeDateFormats.setKey("month",this.language.translate("_date_month")+" "+this.language.translate("_date_year"))},i.prototype.createDataItem=function(){return new _a},i.prototype.createAxisBreak=function(){return new Ul},i.prototype.validateDataItems=function(){var e=this.start,t=this.end,r=this.baseDuration,s=(this.max-this.min)/r;this._firstWeekDay=this.getFirstWeekDay(),this.getDFFormatter(),a.prototype.validateDataItems.call(this);var n=ht(this.mainBaseInterval.timeUnit,this.mainBaseInterval.count);this.maxZoomFactor=Math.max(1,(this.max-this.min)/n),this._deltaMinMax=this.baseDuration/2;var o=(this.max-this.min)/r;e=e+(t-e)*(1-s/o),this.zoom({start:e,end:t},!1,!0)},i.prototype.handleSelectionExtremesChange=function(){},i.prototype.getIntervalMax=function(e){return this._intervalMax[e.timeUnit+e.count]},i.prototype.getIntervalMin=function(e){return this._intervalMin[e.timeUnit+e.count]},i.prototype.calculateZoom=function(){var e=this;a.prototype.calculateZoom.call(this);var t=this.adjustDifference(this._minZoomed,this._maxZoomed),r=!1;if(this.groupData&&$(t)){var s=this.mainBaseInterval,n=this.getIntervalMin(s),o=this.getIntervalMax(s),l=n+(o-n)*this.start,u=n+(o-n)*this.end,h=this.adjustDifference(l,u),p=h+(this.startLocation+(1-this.endLocation))*this.baseDuration,d=void 0;this.groupInterval?d=ki({},this.groupInterval):(d=this.chooseInterval(0,p,this.groupCount,this.groupIntervals),ht(d.timeUnit,d.count)<ht(s.timeUnit,s.count)&&(d=ki({},s))),this._groupInterval=d;var c=d.timeUnit+d.count;this._currentDataSetId!=c&&(this._currentDataSetId=c,this.dispatch("groupperiodchanged")),this.series.each(function(y){y.baseAxis==e&&y.setDataSet(e._currentDataSetId)&&(r=!0)})}var f=this.chooseInterval(0,t,this._gridCount);ht(f.timeUnit,f.count)<this.baseDuration&&(f=ki({},this.baseInterval)),this._gridInterval=f,this._nextGridUnit=gp(f.timeUnit),this._intervalDuration=ht(f.timeUnit,f.count),this._gridDate=Ct(new Date(this.minZoomed-ht(f.timeUnit,f.count)),f.timeUnit,f.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),V(this.series.iterator(),function(y){if(y.baseAxis==e){var g=y.getAxisField(e),v=Ct(new Date(e._minZoomed+e.baseDuration*.05),e.baseInterval.timeUnit,e.baseInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone).getTime(),x=v.toString(),P=y.dataItemsByAxis.getKey(e.uid).getKey(x+y.currentDataSetId),T=0;e.start!=0&&(P?(P=e.findFirst(P,v,g),T=P.index):T=y.dataItems.findClosestIndex(e._minZoomed,function(H){return H[g]},"left"));var C=e.baseInterval,O=Wt(Ct(new Date(e._maxZoomed),C.timeUnit,C.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone),C.timeUnit,C.count,e._df.utc).getTime(),w=O.toString(),D=y.dataItemsByAxis.getKey(e.uid).getKey(w+y.currentDataSetId),A=y.dataItems.length;e.end!=1&&(D?A=D.index:(O-=1,A=y.dataItems.findClosestIndex(O,function(H){return H[g]},"right"),A++)),y.max(e)<v?(y.startIndex=y.dataItems.length,y.endIndex=y.dataItems.length,y.outOfRange=!0):y.min(e)>O?(y.startIndex=0,y.endIndex=0,y.outOfRange=!0):(y.outOfRange=!1,y.startIndex=T,y.endIndex=A),!r&&y.dataRangeInvalid&&y.validateDataRange()}})},i.prototype.findFirst=function(e,t,r){var s=e.index;if(s>0){var n=e.component,o=n.dataItems.getIndex(s-1),l=o[r];return!l||l.getTime()<t?e:this.findFirst(o,t,r)}else return e},i.prototype.validateData=function(){a.prototype.validateData.call(this),b(this.baseInterval.count)||(this.baseInterval.count=1)},Object.defineProperty(i.prototype,"minDifference",{get:function(){var e=this,t=Number.MAX_VALUE;return this.series.each(function(r){t>e._minDifference[r.uid]&&(t=e._minDifference[r.uid])}),(t==Number.MAX_VALUE||t==0)&&(t=ht("day")),t},enumerable:!0,configurable:!0}),i.prototype.seriesDataChangeUpdate=function(e){this._minDifference[e.uid]=Number.MAX_VALUE},i.prototype.postProcessSeriesDataItems=function(e){var t=this;this._firstWeekDay=this.getFirstWeekDay(),e?this.seriesGroupUpdate(e):this.series.each(function(r){t.seriesGroupUpdate(r)}),this.addEmptyUnitsBreaks()},i.prototype.seriesGroupUpdate=function(e){var t=this;JSON.stringify(e._baseInterval[this.uid])!=JSON.stringify(this.mainBaseInterval)&&(e._baseInterval[this.uid]=this.mainBaseInterval,e.mainDataSet.each(function(r){t.postProcessSeriesDataItem(r)}),this.groupData&&this.groupSeriesData(e))},i.prototype.groupSeriesData=function(e){var t=this;if(e.baseAxis==this&&e.dataItems.length>0&&!e.dataGrouped){e.bulletsContainer.removeChildren();var r=[],s=this.mainBaseInterval,n=ht(s.timeUnit,s.count);this.groupIntervals.each(function(o){var l=ht(o.timeUnit,o.count);(l>n&&l<t.max-t.min||t.groupInterval)&&r.push(o)}),e._dataSets&&(e._dataSets.each(function(o,l){l.each(function(u){u.dispose()}),l.clear()}),e._dataSets.clear()),e.dataGrouped=!0,M(r,function(o){var l="date"+t.axisLetter,u=o.timeUnit+o.count,h=new ua(e.mainDataSet.template.clone());e.dataSets.setKey(u,h);var p=e.mainDataSet,d=Number.NEGATIVE_INFINITY,c=0,f,y=[];q(e.dataFields,function(v,x){var P=v;P!=l&&P.indexOf("Show")==-1&&y.push(P)});var g;p.each(function(v){var x=v.getDate(l);if(x){var P=x.getTime();g=Ct(new Date(P),o.timeUnit,o.count,t._df.firstDayOfWeek,t._df.utc,void 0,t._df.timezoneMinutes,t._df.timezone);var T=g.getTime();d<T?(f&&e._adapterO&&M(y,function(C){f.values[C].value=e._adapterO.apply("groupDataItem",{dataItem:f,interval:o,dataField:C,date:g,value:f.values[C].value}).value,f.values[C].workingValue=f.values[C].value}),f=h.create(),f.dataContext={},f.setWorkingLocation("dateX",e.dataItems.template.locations.dateX,0),f.setWorkingLocation("openDateX",e.dataItems.template.locations.openDateX,0),f.setWorkingLocation("dateY",e.dataItems.template.locations.dateY,0),f.setWorkingLocation("openDateY",e.dataItems.template.locations.openDateY,0),f.component=e,f.setDate(l,g),f._index=c,c++,M(y,function(C){var O=v.values[C];if(O){var w=O.value;e._adapterO&&(w=e._adapterO.apply("groupValue",{dataItem:v,interval:o,dataField:C,date:g,value:w}).value);var D=f.values[C];b(w)?(D.value=w,D.workingValue=w,D.open=w,D.close=w,D.low=w,D.high=w,D.sum=w,D.average=w,D.count=1):D.count=0}}),t.postProcessSeriesDataItem(f,o),q(e.propertyFields,function(C,O){var w=C,D=v.properties[C];$(D)&&(f.hasProperties=!0,f.setProperty(w,D))}),f.groupDataItems=[v],d=T):f&&(M(y,function(C){var O=e.groupFields[C],w=v.values[C];if(w){var D=w.value;if(e._adapterO&&(D=e._adapterO.apply("groupValue",{dataItem:v,interval:o,dataField:C,date:g,value:D}).value),b(D)){var A=f.values[C];b(A.open)||(A.open=D),A.close=D,(A.low>D||!b(A.low))&&(A.low=D),(A.high<D||!b(A.high))&&(A.high=D),b(A.sum)?A.sum+=D:A.sum=D,A.count++,A.average=A.sum/A.count,b(A[O])&&(A.value=A[O],A.workingValue=A.value)}}}),ai(v.properties,f.properties),q(e.propertyFields,function(C,O){var w=C,D=v.properties[C];$(D)&&(f.hasProperties=!0,f.setProperty(w,D))}),f.groupDataItems.push(v))}f&&ai(v.dataContext,f.dataContext)}),f&&e._adapterO&&M(y,function(v){f.values[v].value=e._adapterO.apply("groupDataItem",{dataItem:f,interval:o,dataField:v,date:g,value:f.values[v].value}).value,f.values[v].workingValue=f.values[v].value})}),this.calculateZoom()}},i.prototype.getDFFormatter=function(){this._df=this.dateFormatter},i.prototype.postProcessSeriesDataItem=function(e,t){var r=this,s="";t?s=t.timeUnit+t.count:t=this.mainBaseInterval;var n=e.component,o=n.dataItemsByAxis.getKey(this.uid);q(e.dates,function(l){var u=e.getDate(l),h=u.getTime(),p=Ct(new Date(h),t.timeUnit,t.count,r._firstWeekDay,r._df.utc,void 0,r._df.timezoneMinutes,r._df.timezone),d=p.getTime(),c=Wt(new Date(d),t.timeUnit,t.count,r._df.utc);e.setCalculatedValue(l,d,"open"),e.setCalculatedValue(l,c.getTime(),"close"),o.setKey(d+s,e)})},i.prototype.addEmptyUnitsBreaks=function(){var e=this;if(this.skipEmptyPeriods&&b(this.min)&&b(this.max)){var t=this.baseInterval.timeUnit,r=this.baseInterval.count;this._axisBreaks&&this._axisBreaks.clear();for(var s=Ct(new Date(this.min),t,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),n=void 0,o=function(){Wt(s,t,r,l._df.utc);var u=s.getTime(),h=u.toString(),p=Es(l.series.iterator(),function(d){return!!d.dataItemsByAxis.getKey(e.uid).getKey(h+d.currentDataSetId)});p?n&&(n.endDate=new Date(u-1),n=void 0):n||(n=l.axisBreaks.create(),n.startDate=new Date(u),l._gapBreaks=!0)},l=this;s.getTime()<this.max-this.baseDuration;)o()}},i.prototype.fixAxisBreaks=function(){var e=this;a.prototype.fixAxisBreaks.call(this);var t=this._axisBreaks;t&&t.length>0&&t.each(function(r){var s=Math.ceil(e._gridCount*(Math.min(e.end,r.endPosition)-Math.max(e.start,r.startPosition))/(e.end-e.start));r.gridInterval=e.chooseInterval(0,r.adjustedEndValue-r.adjustedStartValue,s);var n=Ct(new Date(r.adjustedStartValue),r.gridInterval.timeUnit,r.gridInterval.count,e._firstWeekDay,e._df.utc,void 0,e._df.timezoneMinutes,e._df.timezone);n.getTime()>r.startDate.getTime()&&Wt(n,r.gridInterval.timeUnit,r.gridInterval.count,e._df.utc),r.gridDate=n})},i.prototype.getFirstWeekDay=function(){return this._df?this._df.firstDayOfWeek:1},i.prototype.getGridDate=function(e,t){var r=this._gridInterval.timeUnit,s=this._gridInterval.count;Ct(e,r,1,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);var n=e.getTime(),o=qa(e),l=Wt(o,r,t,this._df.utc).getTime(),u=this.isInBreak(l);u&&u.endDate&&(o=new Date(u.endDate.getTime()),Ct(o,r,s,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),o.getTime()<u.endDate.getTime()&&Wt(o,r,s,this._df.utc),l=o.getTime());var h=this.adjustDifference(n,l),p=Math.round(h/ht(r));return p<s?this.getGridDate(e,t+s):o},i.prototype.getBreaklessDate=function(e,t,r){var s=new Date(e.endValue);Ct(s,t,r,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),Wt(s,t,r,this._df.utc);var n=s.getTime();return e=this.isInBreak(n),e?this.getBreaklessDate(e,t,r):s},i.prototype.validateAxisElements=function(){var e=this;if(b(this.max)&&b(this.min)){this.calculateZoom();var t=this._gridDate.getTime(),r=this._gridInterval.timeUnit,s=this._gridInterval.count,n=qa(this._gridDate),o=this._dataItemsIterator;this.resetIterators();for(var l=function(){var p=u.getGridDate(qa(n),s);t=p.getTime();var d=qa(p);d=Wt(d,r,s,u._df.utc);var c=u.dateFormats.getKey(r);u.markUnitChange&&n&&Nl(p,n,u._nextGridUnit,u._df.utc)&&r!=="year"&&(c=u.periodChangeDateFormats.getKey(r));var f=u._df.format(p,c),y=o.find(function(g){return g.text===f});y.__disabled&&(y.__disabled=!1),u.appendDataItem(y),y.axisBreak=void 0,y.date=p,y.endDate=d,y.text=f,u.validateDataElement(y),n=p},u=this;t<=this._maxZoomed;)l();var h=this.renderer;this._axisBreaks&&V(this._axisBreaks.iterator(),function(p){if(p.breakSize>0){var d=p.gridInterval.timeUnit,c=p.gridInterval.count;if(xe(p.startPoint,p.endPoint)>h.minGridDistance*4)for(var f=p.gridDate.getTime(),y,g=0,v=function(){var x=qa(p.gridDate);if(f=Wt(x,d,c*g,e._df.utc).getTime(),g++,f>p.adjustedStartValue&&f<p.adjustedEndValue){var P=qa(x);P=Wt(P,d,c,e._df.utc);var T=e.dateFormats.getKey(d);e.markUnitChange&&y&&Nl(x,y,e._nextGridUnit,e._df.utc)&&d!=="year"&&(T=e.periodChangeDateFormats.getKey(d));var C=e._df.format(x,T),O=o.find(function(w){return w.text===C});O.__disabled&&(O.__disabled=!1),e.appendDataItem(O),O.axisBreak=p,p.dataItems.moveValue(O),O.date=x,O.endDate=P,O.text=C,y=x,e.validateDataElement(O)}};f<=p.adjustedMax;)v()}})}},i.prototype.validateDataElement=function(e){if(e.itemIndex=this._axisItemCount,this._axisItemCount++,b(this.max)&&b(this.min)){var t=this.renderer,r=e.value,s=e.endValue;b(s)||(s=r);var n=this.valueToPosition(r),o=this.valueToPosition(s),l=o;!e.isRange&&this._gridInterval.count>this.baseInterval.count&&(o=n+(o-n)/(this._gridInterval.count/this.baseInterval.count)),e.position=n;var u=e.tick;u&&!u.disabled&&t.updateTickElement(u,n,o);var h=e.grid;h&&!h.disabled&&t.updateGridElement(h,n,o);var p=e.axisFill;p&&!p.disabled&&(t.updateFillElement(p,n,l),e.isRange||this.fillRule(e));var d=e.mask;d&&t.updateFillElement(d,n,o),e.bullet&&t.updateBullet(e.bullet,n,o);var c=e.label;if(c&&!c.disabled){var f=c.location;f==0&&(this._gridInterval.count==1&&this._gridInterval.timeUnit!="week"&&!e.isRange?f=.5:f=0),t.updateLabelElement(c,n,o,f)}}},Object.defineProperty(i.prototype,"baseDuration",{get:function(){return ht(this.baseInterval.timeUnit,this.baseInterval.count)},enumerable:!0,configurable:!0}),i.prototype.adjustMinMax=function(e,t){return{min:e,max:t,step:this.baseDuration}},i.prototype.fixMin=function(e){var t=this.baseInterval,r=Ct(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),s=Wt(new Date(r),t.timeUnit,t.count,this._df.utc).getTime();return r+(s-r)*this.startLocation},i.prototype.fixMax=function(e){var t=this.baseInterval,r=Ct(new Date(e),t.timeUnit,t.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone).getTime(),s=Wt(new Date(r),t.timeUnit,t.count,this._df.utc).getTime();return r+(s-r)*this.endLocation},i.prototype.chooseInterval=function(e,t,r,s){s||(s=this.gridIntervals);var n=s.getIndex(e),o=ht(n.timeUnit,n.count),l=s.length-1;if(e>=l)return ki({},s.getIndex(l));var u=Math.ceil(t/o);return t<o&&e>0?ki({},s.getIndex(e-1)):u<=r?ki({},s.getIndex(e)):e+1<s.length?this.chooseInterval(e+1,t,r,s):ki({},s.getIndex(e))},i.prototype.formatLabel=function(e){return this._df.format(e)},i.prototype.dateToPosition=function(e){return this.valueToPosition(e.getTime())},i.prototype.anyToPosition=function(e){return e instanceof Date?this.dateToPosition(e):this.valueToPosition(e)},i.prototype.dateToPoint=function(e){var t=this.dateToPosition(e),r=this.renderer.positionToPoint(t),s=this.renderer.positionToAngle(t);return{x:r.x,y:r.y,angle:s}},i.prototype.anyToPoint=function(e){return e instanceof Date?this.dateToPoint(e):this.valueToPoint(e)},i.prototype.positionToDate=function(e){return new Date(this.positionToValue(e))},i.prototype.getPositionX=function(e,t,r,s,n){var o=this.getTimeByLocation(e,t,r);b(o)||(o=this.baseValue);var l=this.valueToPosition(o);return n&&(l=X(l,n.start,n.end)),l},i.prototype.getPositionY=function(e,t,r,s,n){var o=this.getTimeByLocation(e,t,r),l=e.getValue("valueX","stack");b(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return n&&(u=X(u,n.start,n.end)),u},i.prototype.getAngle=function(e,t,r,s,n){var o=this.getTimeByLocation(e,t,r),l=e.getValue(s,"stack");b(o)||(o=this.baseValue);var u=this.valueToPosition(o+l);return n&&(u=X(u,n.start,n.end)),this.positionToAngle(u)},i.prototype.getTimeByLocation=function(e,t,r){if($(t)){b(r)||(r=e.workingLocations[t],b(r)||(r=0));var s=e.values[t].open,n=e.values[t].close,o=e.values[t].workingValue,l=e.values[t].value,u=l-o;if(s-=u,n-=u,b(s)&&b(n))return s+(n-s)*r}},i.prototype.processSeriesDataItem=function(e,t){var r=e.component,s,n=e["date"+t];if(b(this.timezoneOffset)?(n.setTime(n.getTime()+(n.getTimezoneOffset()-this.timezoneOffset)*6e4),e.setValue("date"+t,n.getTime(),0)):$(this.timezone)&&(n=an(n,this.timezone),e.setValue("date"+t,n.getTime(),0),e["date"+t]=n),n)s=n.getTime();else return;var o=e["openDate"+t],l=this._prevSeriesTime[r.uid],u;if(o&&(u=o.getTime()),b(u)){var h=Math.abs(s-u);this._minDifference[r.uid]>h&&(this._minDifference[r.uid]=h)}var p=s-l;p>0&&this._minDifference[r.uid]>p&&(this._minDifference[r.uid]=p),this._prevSeriesTime[r.uid]=s,r._baseInterval[this.uid]&&this.postProcessSeriesDataItem(e)},i.prototype.updateAxisBySeries=function(){a.prototype.updateAxisBySeries.call(this);var e=this.chooseInterval(0,this.minDifference,1);this.minDifference>=ht("day",27)&&e.timeUnit=="week"&&(e.timeUnit="month",e.count=1),e.timeUnit=="month"&&(this.minDifference>=ht("day",58)&&e.count==1&&(e.count=2),this.minDifference>=ht("day",87)&&e.count==2&&(e.count=3),this.minDifference>=ht("day",174)&&e.count==5&&(e.count=6)),this.minDifference>=ht("hour",23)&&e.timeUnit=="hour"&&(e.timeUnit="day",e.count=1),this.minDifference>=ht("week",1)-ht("hour",1)&&e.timeUnit=="day"&&(e.timeUnit="week",e.count=1),this.minDifference>=ht("year",1)-ht("day",1.01)&&e.timeUnit=="month"&&(e.timeUnit="year",e.count=1),this._baseIntervalReal=e,this._mainBaseInterval=e},Object.defineProperty(i.prototype,"baseInterval",{get:function(){return this._groupInterval?this._groupInterval:this._baseInterval?this._baseInterval:this._baseIntervalReal},set:function(e){JSON.stringify(this._baseInterval)!=JSON.stringify(e)&&(this._baseInterval=e,this._mainBaseInterval=e,b(e.count)||(e.count=1),this.invalidate(),this.postProcessSeriesDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"mainBaseInterval",{get:function(){return this._baseInterval?this._baseInterval:this._mainBaseInterval?this._mainBaseInterval:this._baseIntervalReal},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"skipEmptyPeriods",{get:function(){return this.getPropertyValue("skipEmptyPeriods")},set:function(e){if(e){var t=this.axisBreaks.template;t.startLine.disabled=!0,t.endLine.disabled=!0,t.fillShape.disabled=!0,t.breakSize=0}else this._gapBreaks&&(this.axisBreaks.clear(),this._gapBreaks=!1);this.setPropertyValue("skipEmptyPeriods",e)&&(this.invalidate(),this.postProcessSeriesDataItems(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipDateFormat",{get:function(){return this.getPropertyValue("tooltipDateFormat")},set:function(e){this.setPropertyValue("tooltipDateFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markUnitChange",{get:function(){return this.getPropertyValue("markUnitChange")},set:function(e){this.setPropertyValue("markUnitChange",e)&&this.invalidateData()},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(e){var t,r=this.positionToDate(e);if(r=Ct(r,this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,new Date(this.min),this._df.timezoneMinutes,this._df.timezone),this.tooltipDate=r,$(this.tooltipDateFormat))t=this._df.format(r,this.tooltipDateFormat,["day","month","week","year"].indexOf(this.baseInterval.timeUnit)==-1);else{var s=this.dateFormats.getKey(this.baseInterval.timeUnit);s?t=this._df.format(r,s):t=this.getPositionLabel(e)}return this._adapterO?this._adapterO.apply("getTooltipText",t):t},i.prototype.roundPosition=function(e,t,r){var s=this.baseInterval,n=s.timeUnit,o=s.count,l=this.positionToDate(e);if(Ct(l,n,o,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),t>0&&Wt(l,n,t*o,this._df.utc),r>0&&r<1&&l.setTime(l.getTime()+this.baseDuration*r),this.isInBreak(l.getTime()))for(;l.getTime()<this.max&&(Wt(l,n,o,this._df.utc),!!this.isInBreak(l.getTime())););return this.dateToPosition(l)},i.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},i.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},i.prototype.getSeriesDataItem=function(e,t,r){var s=this.positionToValue(t),n=.5;this.axisLetter=="Y"?n=e.dataItems.template.locations.dateY:n=e.dataItems.template.locations.dateX;var o=s-n*this.baseDuration,l=Ct(new Date(s),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),u=Ct(new Date(s+this.baseDuration),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone);u.getTime()>l.getTime()&&Math.abs(u.getTime()-o)<Math.abs(o-l.getTime())&&(l=u);var h=e.dataItemsByAxis.getKey(this.uid),p=h.getKey(l.getTime()+e.currentDataSetId);if(!p&&r){var d;this.axisLetter=="Y"?d="dateY":d="dateX",p=e.dataItems.getIndex(e.dataItems.findClosestIndex(l.getTime(),function(c){return c[d]?c[d].getTime():-1/0},"any"))}return p},i.prototype.getPositionLabel=function(e){var t=this.positionToDate(e);return this._df.format(t,this.getCurrentLabelFormat())},i.prototype.getCurrentLabelFormat=function(){return this.dateFormats.getKey(this._gridInterval?this._gridInterval.timeUnit:"day")},i.prototype.initRenderer=function(){a.prototype.initRenderer.call(this);var e=this.renderer;e&&(e.ticks.template.location=0,e.grid.template.location=0,e.labels.template.location=0,e.baseGrid.disabled=!0)},Object.defineProperty(i.prototype,"basePoint",{get:function(){return{x:0,y:0}},enumerable:!0,configurable:!0}),i.prototype.animateMinMax=function(e,t){var r=this,s=this.animate([{property:"_minAdjusted",from:this._minAdjusted,to:e},{property:"_maxAdjusted",from:this._maxAdjusted,to:t}],this.rangeChangeDuration,this.rangeChangeEasing);return s.events.on("animationprogress",function(){r.dispatch("extremeschanged")}),s},i.prototype.handleExtremesChange=function(){if(a.prototype.handleExtremesChange.call(this),this.groupData){var e=this.baseInterval.timeUnit+this.baseInterval.count;this.groupMin[e]=this._finalMin,this.groupMax[e]=this._finalMax}},i.prototype.zoomToDates=function(e,t,r,s,n){e=this._df.parse(e),t=this._df.parse(t),this.zoomToValues(e.getTime(),t.getTime(),r,s,n)},i.prototype.zoomToValues=function(e,t,r,s,n){var o=this;if(this.groupData){var h=this.adjustDifference(e,t),p=!1;t==this.max&&(p=!0);var d=!1;if(e==this.min&&(d=!0),$(h)){var c=this.mainBaseInterval,f=this.chooseInterval(0,h,this.groupCount,this.groupIntervals);(f.timeUnit==c.timeUnit&&f.count<c.count||ht(f.timeUnit,1)<ht(c.timeUnit,1))&&(f=ki({},c));var y=f.timeUnit+f.count,g=this.groupMin[y],v=this.groupMax[y];(!b(g)||!b(v))&&(g=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY,this.series.each(function(T){var C=T.min(o),O=T.max(o);if(T._dataSets){var w=T._dataSets.getKey(f.timeUnit+f.count);if(w){var D=w.getIndex(0),A=w.getIndex(w.length-1);D&&(T.xAxis==o?C=D.dateX.getTime():T.yAxis==o&&(C=D.dateY.getTime())),A&&(T.xAxis==o?O=A.dateX.getTime():T.yAxis==o&&(O=A.dateY.getTime()))}}O=Ct(Wt(new Date(O),f.timeUnit,1,o._df.utc),f.timeUnit,1,o._df.firstDayOfWeek,o._df.utc,void 0,o._df.timezoneMinutes,o._df.timezone).getTime(),C<g&&(g=C),O>v&&(v=O)}),this.groupMin[y]=g,this.groupMax[y]=v),e=X(e,g,v),t=X(t,g,v),n&&(p&&(e=t-h,e=X(e,g,v)),d&&(t=e+h,t=X(t,g,v)));var l=(e-g)/(v-g),u=(t-g)/(v-g);this.zoom({start:l,end:u},r,s)}}else{var l=this.valueToPosition(e),u=this.valueToPosition(t);this.zoom({start:l,end:u},r,s)}},i.prototype.asIs=function(e){return e=="baseInterval"||a.prototype.asIs.call(this,e)},i.prototype.copyFrom=function(e){var t=this;a.prototype.copyFrom.call(this,e),this.dateFormats=e.dateFormats,this.periodChangeDateFormats=e.periodChangeDateFormats,this.groupIntervals.clear(),e.groupIntervals.each(function(r){t.groupIntervals.push(ki({},r))}),this.gridIntervals.clear(),e.gridIntervals.each(function(r){t.gridIntervals.push(ki({},r))}),e._baseInterval&&(this.baseInterval=e._baseInterval)},i.prototype.showTooltipAtPosition=function(e,t){var r=this;if(t||(e=this.toAxisPosition(e)),this.snapTooltip){var s=this.positionToDate(e),n=s.getTime(),o;if(this.series.each(function(h){if(h.baseAxis==r){var p=r.getSeriesDataItem(h,e,!0);if(p){var d=void 0;h.xAxis==r&&(d=p.dateX),h.yAxis==r&&(d=p.dateY),o?Math.abs(o.getTime()-n)>Math.abs(d.getTime()-n)&&(o=d):o=d}}}),o){var l=o.getTime();o=Ct(new Date(l),this.baseInterval.timeUnit,this.baseInterval.count,this._firstWeekDay,this._df.utc,void 0,this._df.timezoneMinutes,this._df.timezone),l=o.getTime();var u=this.renderer.tooltipLocation;u==0&&(u=1e-4),o=new Date(o.getTime()+this.baseDuration*u),e=this.dateToPosition(o),this.chart.cursor&&this.chart.cursor.snapToSeries||this.series.each(function(h){var p=h.dataItemsByAxis.getKey(r.uid).getKey(l+h.currentDataSetId),d=h.showTooltipAtDataItem(p);d?r.chart._seriesPoints.push({series:h,point:d}):(h.tooltipText||h.tooltipHTML)&&h.hideTooltip()})}}a.prototype.showTooltipAtPosition.call(this,e,!0)},Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupData",{get:function(){return this.getPropertyValue("groupData")},set:function(e){var t=this;this.setPropertyValue("groupData",e)&&(this.series.each(function(r){r.setDataSet(""),e&&!r.dataGrouped&&r.inited&&(r._baseInterval[t.uid]=t.mainBaseInterval,t.groupSeriesData(r))}),this._currentDataSetId="",this._groupInterval=void 0,this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupInterval",{get:function(){return this.getPropertyValue("groupInterval")},set:function(e){this.setPropertyValue("groupInterval",e)&&(this.invalidate(),this.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"groupCount",{get:function(){return this.getPropertyValue("groupCount")},set:function(e){this.setPropertyValue("groupCount",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezoneOffset",{get:function(){return this.getPropertyValue("timezoneOffset")},set:function(e){this.setPropertyValue("timezoneOffset",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"timezone",{get:function(){return this.getPropertyValue("timezone")},set:function(e){this.setPropertyValue("timezone",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gridInterval",{get:function(){return this._gridInterval},enumerable:!0,configurable:!0}),i.prototype.makeGap=function(e,t){var r=e.component;if(e&&t&&!r.connect&&b(r.autoGapCount)&&r.baseAxis==this){var s=e.dates["date"+this.axisLetter],n=t.dates["date"+this.axisLetter];if(s&&n){var o=s.getTime(),l=n.getTime();if(o-l>r.autoGapCount*this.baseDuration)return!0}}return!1},Object.defineProperty(i.prototype,"baseValue",{get:function(){return this.min},enumerable:!0,configurable:!0}),i.prototype._saveMinMax=function(e,t){var r=this.groupInterval;r||(r=this.mainBaseInterval);var s=r.timeUnit+r.count;this._intervalMin[s]=e,this._intervalMax[s]=t},i})(Q);_.registeredClasses.DateAxis=fe;_.registeredClasses.DateAxisDataItem=_a;var dt=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="AxisRendererX",e.minGridDistance=120,e.opposite=!1,e.rotation=0,e.width=k(100),e.labels.template.horizontalCenter="middle",e.applyTheme(),e}return i.prototype.setAxis=function(e){a.prototype.setAxis.call(this,e),e.layout="vertical"},i.prototype.updateGridContainer=function(){var e=this.axis;if(e){var t=this.gridContainer;t.x=e.pixelX,t.width=e.axisLength}},i.prototype.processRenderer=function(){a.prototype.processRenderer.call(this);var e=this.axis;if(e){e.width instanceof ae||(e.width=k(100)),this.line;var t=e.title;t.rotation=0,t.align="center",this.opposite?(this.line.toFront(),t.toBack()):(t.toFront(),this.toBack(),this.line.toBack())}},i.prototype.updateTooltip=function(){var e=this.axis;if(e){var t=1e3,r=this.line.pixelX,s=this.line.pixelY,n=this.axisLength,o=t;this.opposite?this.inside||(s=-t,o=t):this.inside&&(s=-t,o=t),this.axis.updateTooltip("vertical",{x:r,y:s,width:n,height:o})}},i.prototype.updateLabelElement=function(e,t,r,s){$(s)||(s=e.location),t=t+(r-t)*s;var n=this.positionToPoint(t);e.isMeasured=!e.inside;var o=0,l,u=this.gridContainer.maxHeight;this.opposite?(e.inside?(l="top",e.valign=="bottom"&&(o=u,l="bottom"),e.valign=="middle"&&(o=u/2,l="middle")):l="bottom",n.y=o):(e.inside?(l="bottom",e.valign=="top"&&(o=-u,l="top"),e.valign=="middle"&&(o=-u/2,l="middle")):l="top",n.y+=o),e.rotation==0&&(e.verticalCenter=l),this.positionItem(e,n),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},Object.defineProperty(i.prototype,"axisLength",{get:function(){var e=this.axis;return e.measuredWidth-e.pixelPaddingRight-e.pixelPaddingLeft||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){return{x:this.positionToCoordinate(e),y:0}},i.prototype.pointToPosition=function(e){return this.coordinateToPosition(e.x,e.y)},i.prototype.getPositionRangePath=function(e,t){var r=X(this.positionToCoordinate(e),0,this.axisLength),s=X(this.positionToCoordinate(t),0,this.axisLength),n=Math.abs(s-r),o=this.getHeight(),l=Math.min(r,s),u=0;return Ri({x:l,y:u,width:n,height:o},!0)},i.prototype.updateBreakElement=function(e){a.prototype.updateBreakElement.call(this,e);var t=e.startLine,r=e.endLine,s=e.fillShape,n=e.startPoint,o=e.endPoint,l=e.pixelMarginLeft,u=this.getHeight()-e.pixelMarginTop-e.pixelMarginBottom;n.x=X(n.x,-1,this.axisLength+1),o.x=X(o.x,-1,this.axisLength+1),n.x==o.x&&(n.x<0||n.x>this.axisLength)?e.fillShape.__disabled=!0:e.fillShape.__disabled=!1,t.y=l,t.width=0,t.height=u,r.y=l,r.width=0,r.height=u,s.height=u,s.width=Math.abs(o.x-n.x),s.y=l,s.x=n.x},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t);e.path=R({x:0,y:0})+F({x:0,y:this.getHeight()}),this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t),n=e.length;s.y=At({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.opposite?n*=e.inside?1:-1:n*=e.inside?-1:1,e.path=R({x:0,y:0})+F({x:0,y:n}),this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateAxisLine=function(){this.line.path=R({x:0,y:0})+F({x:this.axisLength,y:0})},i.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.axis,t=this.getHeight(),r=this.axisLength,s=this.baseGrid,n=e.basePoint.x;if(n<-.2||n>r+.2)s.hide(0);else{var o=At({x:0,y:0},this.gridContainer,s.parent).y;s.path=R({x:0,y:0})+F({x:0,y:t}),s.moveTo({x:n,y:o}),s.show(0)}},i.prototype.createBreakSprites=function(e){e.startLine=new sr,e.endLine=new sr;var t=new po;t.setWavedSides(!1,!0,!1,!0),e.fillShape=t},i.prototype.toAxisPosition=function(e){var t=e,r=this.axis;if(r){var s=r.relativePositionSprite,n=r.pixelX;if(s?n=At({x:this.pixelX,y:0},this.parent,s).x:s=r.parent,s){var o=n/s.innerWidth,l=r.axisLength/s.innerWidth;return(t-o)/l}}return e},i.prototype.updateBullet=function(e,t,r){var s=.5;e instanceof Ar&&(s=e.location),t=t+(r-t)*s;var n=this.positionToPoint(t);n.y=At({x:0,y:this.line.pixelY},this.line.parent,this.gridContainer).y,this.positionItem(e,n),this.toggleVisibility(e,t,0,1)},i})(xa);_.registeredClasses.AxisRendererX=dt;tt.push({relevant:lt.heightXS,state:function(a,i){if(a instanceof dt){var e=a.states.create(i);return e.properties.inside=!0,e.properties.maxLabelPosition=.9,e.properties.minLabelPosition=.1,e}return null}});tt.push({relevant:lt.heightXXS,state:function(a,i){if(a instanceof dt){var e=a.states.create(i);return e.properties.disabled=!0,e}return null}});var Kl=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="CategoryAxisBreak",e.properties.startLocation=.5,e.properties.endLocation=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"startPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedStartValue,this.startLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endPosition",{get:function(){if(this.axis)return this.axis.indexToPosition(this.adjustedEndValue,this.endLocation)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startCategory",{get:function(){return this.getPropertyValue("startCategory")},set:function(e){this.setPropertyValue("startCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.getPropertyValue("endCategory")},set:function(e){this.setPropertyValue("endCategory",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startValue",{get:function(){var e=this.getPropertyValue("startCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("startValue")},set:function(e){this.setPropertyValue("startValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endValue",{get:function(){var e=this.getPropertyValue("endCategory");return e?this.axis.categoryToIndex(e):this.getPropertyValue("endValue")},set:function(e){this.setPropertyValue("endValue",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.axis&&(this.axis.invalidateDataItems(),this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i})(ga);_.registeredClasses.CategoryAxisBreak=Kl;var kr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.seriesDataItems={},e.className="CategoryAxisDataItem",e.text="{category}",e.locations.category=0,e.locations.endCategory=1,e.deltaPosition=0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"category",{get:function(){return this._adapterO&&this._adapterO.isEnabled("category")?this._adapterO.apply("category",this.properties.category):this.properties.category},set:function(e){var t=this.properties.category;this.setProperty("category",e),$(t)&&t!=e&&this.component&&this.component.validateDataElement(this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endCategory",{get:function(){return this.properties.endCategory},set:function(e){this.setProperty("endCategory",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"deltaPosition",{get:function(){return this.properties.deltaCoordinate},set:function(e){e!=this.properties.deltaCoordinate&&(this.setProperty("deltaCoordinate",e),this.component&&(this.component.invalidateDataItems(),this.component.invalidateSeries()))},enumerable:!0,configurable:!0}),i})(Gr);var $e=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.dataItemsByCategory=new _e,e.className="CategoryAxis",e.axisFieldName="category",e._lastDataItem=e.createDataItem(),e._lastDataItem.component=e,e._disposers.push(e._lastDataItem),e.applyTheme();var t=e.dataItemsByCategory;return e.addDisposer(e.mainDataSet.events.on("removed",function(r){t.removeKey(r.oldValue.category)})),e}return i.prototype.createDataItem=function(){return new kr},i.prototype.createAxisBreak=function(){return new Kl},i.prototype.processSeriesDataItem=function(e,t){a.prototype.processSeriesDataItem.call(this,e,t);var r=e["category"+this.axisLetter];if($(r)){var s=this.dataItemsByCategory.getKey(r);if(s){var n=e.component.uid,o=s.seriesDataItems[n];o||(o=[],s.seriesDataItems[n]=o),o.push(e)}}else e.component.dataItems.remove(e)},i.prototype.validateDataRange=function(){var e=this;a.prototype.validateDataRange.call(this),V(this._series.iterator(),function(t){if(t.xAxis instanceof i&&t.yAxis instanceof i)t.invalidateDataRange();else{var r=e.positionToIndex(e.start),s=e.positionToIndex(e.end);s>=e.dataItems.length&&s--;for(var n=t.uid,o=void 0,l=void 0,u=r;u<=s;u++){var h=e.dataItems.getIndex(u);if(h){var p=h.seriesDataItems[n];if(p)for(var d=0;d<p.length;d++){var c=p[d];if(c){var f=c.index;(!b(o)||f<o)&&(o=f),(!b(l)||f>l)&&(l=f)}}}}b(o)?t.startIndex=o:t.start=e.start,b(l)?t.endIndex=l+1:t.end=e.end,e._axisBreaks&&e._axisBreaks.length>0&&t.invalidateDataRange()}})},i.prototype.validate=function(){var e=this;a.prototype.validate.call(this);var t=this.dataItems.length,r=X(Math.floor(this.start*t-1),0,t),s=X(Math.ceil(this.end*t),0,t);this.renderer.invalid&&this.renderer.validate();var n=this.renderer.axisLength/Math.max(this.renderer.minGridDistance,1/Number.MAX_SAFE_INTEGER),o=Math.min(this.dataItems.length,Math.ceil((s-r)/n));if(this._startIndex=Math.floor(r/o)*o,this._endIndex=Math.ceil(this.end*t),this.fixAxisBreaks(),this._startIndex==this._endIndex&&this._endIndex++,this._frequency=o,!(this.axisLength<=0)){this.maxZoomFactor=this.dataItems.length,this.dataItems.length<=0&&(this.maxZoomFactor=1),this.resetIterators(),r=ie(0,this._startIndex-this._frequency),s=le(this.dataItems.length,this._endIndex+this._frequency);for(var l=0,u=0;u<r;u++){var h=this.dataItems.getIndex(u);h.__disabled=!0}for(var u=s,p=this.dataItems.length;u<p;u++){var h=this.dataItems.getIndex(u);h.__disabled=!0}for(var u=r;u<s;u++)if(u<this.dataItems.length){var h=this.dataItems.getIndex(u);if(u/this._frequency==Math.round(u/this._frequency)){var d=this.isInBreak(u);d||(this.appendDataItem(h),this.validateDataElement(h,l)),l++}else h.__disabled=!0}if(this.appendDataItem(this._lastDataItem),this.validateDataElement(this._lastDataItem,l+1,this.dataItems.length),this._axisBreaks){var c=this._axisBreaks;c.each(function(f){var y=f.adjustedStartValue,g=f.adjustedEndValue;if(Ls({start:y,end:g},{start:e._startIndex,end:e._endIndex})){for(var v=y;v<=g;v++){var x=e.dataItems.getIndex(v);x.__disabled=!0}var P=X(Math.ceil(e._frequency/f.breakSize),1,g-y),T=0;if(f.breakSize>0)for(var v=y;v<=g;v=v+P){var x=e.dataItems.getIndex(v);x.__disabled=!1,e.appendDataItem(x),e.validateDataElement(x,T),T++}}})}this.validateBreaks(),this.validateAxisRanges(),this.ghostLabel.invalidate(),this.renderer.invalidateLayout()}},i.prototype.validateDataElement=function(e,t,r){a.prototype.validateDataElement.call(this,e),e.itemIndex=this._axisItemCount,this._axisItemCount++;var s=this.renderer;b(r)||(r=this.categoryToIndex(e.category));var n=this.categoryToIndex(e.endCategory);b(n)||(n=r);var o=this.indexToPosition(r,e.locations.category),l=this.indexToPosition(n,e.locations.endCategory);e.position=o;var u,h,p;e.isRange&&(u=n,h=this.indexToPosition(r,e.locations.category),p=this.indexToPosition(u,e.locations.endCategory)),e.point=s.positionToPoint(o);var d=e.tick;d&&!d.disabled&&s.updateTickElement(d,o,l);var c=e.grid;c&&!c.disabled&&s.updateGridElement(c,o,l);var f=e.label;f&&!f.disabled&&((!e.isRange||f.text==null)&&(e.text=e.text),s.updateLabelElement(f,o,l),(s instanceof _t&&e.label.measuredWidth>this.ghostLabel.measuredWidth||s instanceof dt&&e.label.measuredHeight>this.ghostLabel.measuredHeight)&&(e.label.html?this.ghostLabel.html=e.label.currentText:this.ghostLabel.text=e.label.currentText));var y=e.axisFill;y&&!y.disabled&&(e.isRange||(u=r+this._frequency,h=this.indexToPosition(r,y.location),p=this.indexToPosition(u,y.location)),s.updateFillElement(y,h,p),e.isRange||this.fillRule(e,t)),e.bullet&&s.updateBullet(e.bullet,o,l);var g=e.mask;g&&s.updateFillElement(g,h,p)},i.prototype.disposeData=function(){this.dataItemsByCategory.clear(),a.prototype.disposeData.call(this)},i.prototype.processDataItem=function(e,t){e&&(a.prototype.processDataItem.call(this,e,t),$(e.category)&&this.dataItemsByCategory.setKey(e.category,e))},i.prototype.getDataItem=function(e){var t=e[this.dataFields.category];if($(t)){var r=this.dataItemsByCategory.getKey(t);return r||this.dataItems.create()}},i.prototype.indexToPosition=function(e,t){b(t)||(t=.5);var r=this.startIndex,s=this.endIndex,n=this.adjustDifference(r,s),o=this.startLocation,l=this.endLocation;if(n-=o,n-=1-l,this._axisBreaks){var u=this._axisBreaks;St(u.iterator(),function(d){var c=d.adjustedStartValue,f=d.adjustedEndValue;if(e<r||!b(c)||!b(f))return!1;if(Ls({start:c,end:f},{start:r,end:s})){c=Math.max(r,c),f=Math.min(s,f);var y=d.breakSize;e>f?r+=(f-c)*(1-y):e<c||(e=c+(e-c)*y)}return!0})}var h=0,p=this.dataItems.getIndex(e);return p&&(h=p.deltaPosition),I(h+(e+t-o-r)/n,5)},i.prototype.categoryToPosition=function(e,t){var r=this.categoryToIndex(e);return this.indexToPosition(r,t)},i.prototype.categoryToPoint=function(e,t){var r=this.categoryToPosition(e,t),s=this.renderer.positionToPoint(r),n=this.renderer.positionToAngle(r);return{x:s.x,y:s.y,angle:n}},i.prototype.anyToPoint=function(e,t){return this.categoryToPoint(e,t)},i.prototype.anyToPosition=function(e,t){return this.categoryToPosition(e,t)},i.prototype.categoryToIndex=function(e){if($(e)){var t=this.dataItemsByCategory.getKey(e);if(t)return t.index}},i.prototype.zoomToCategories=function(e,t){this.zoomToIndexes(this.categoryToIndex(e),this.categoryToIndex(t)+1)},i.prototype.getAnyRangePath=function(e,t,r,s){var n=this.categoryToPosition(e,r),o=this.categoryToPosition(t,s);return this.getPositionRangePath(n,o)},i.prototype.roundPosition=function(e,t){var r=this.positionToIndex(e);return this.indexToPosition(r,t)},i.prototype.getFirstSeriesDataItem=function(e,t){for(var r=0;r<e.dataItems.length;r++){var s=e.dataItems.getIndex(r);if(e.xAxis==this&&s.categoryX==t||e.yAxis==this&&s.categoryY==t)return s}},i.prototype.getLastSeriesDataItem=function(e,t){for(var r=e.dataItems.length-1;r>=0;r--){var s=e.dataItems.getIndex(r);if(e.xAxis==this&&s.categoryX==t||e.yAxis==this&&s.categoryY==t)return s}},i.prototype.getSeriesDataItemByCategory=function(e,t){var r=this,s;return t.dataItems.each(function(n){t.xAxis==r?n.categoryX==e&&(s=n):t.yAxis==r&&n.categoryY==e&&(s=n)}),s},i.prototype.getSeriesDataItem=function(e,t,r){var s=this;if(b(t)){var n=this.positionToIndex(t);n>=this.dataItems.length&&n--;var o=this.dataItems.getIndex(n);if(o){var l=o.category,u,h=e.dataItems.getIndex(n);return h&&(e.xAxis==this&&h.categoryX==l||e.yAxis==this&&h.categoryY==l)?h:(e.dataItems.each(function(p){e.xAxis==s&&p.categoryX==l&&(u||(u=p),Math.abs(n-u.index)>Math.abs(n-p.index)&&(u=p)),e.yAxis==s&&p.categoryY==l&&(u||(u=p),Math.abs(n-u.index)>Math.abs(n-p.index)&&(u=p))}),u)}}},i.prototype.getX=function(e,t,r,s,n){var o=this.getPositionX(e,t,r,s,n);return xt(o)?this.basePoint.x:this.renderer.positionToPoint(o).x},i.prototype.getPositionX=function(e,t,r,s,n){var o;return $(t)&&(o=this.categoryToPosition(e.categories[t],r)),n&&(o=X(o,n.start,n.end)),o},i.prototype.getY=function(e,t,r,s,n){var o=this.getPositionY(e,t,r,s,n);return xt(o)?this.basePoint.y:this.renderer.positionToPoint(o).y},i.prototype.getPositionY=function(e,t,r,s,n){var o;return $(t)&&(o=this.categoryToPosition(e.categories[t],r)),n&&(o=X(o,n.start,n.end)),o},i.prototype.getAngle=function(e,t,r,s,n){var o=this.categoryToPosition(e.categories[t],r);return n&&(o=X(o,n.start,n.end)),this.positionToAngle(o)},i.prototype.getCellStartPosition=function(e){return this.roundPosition(e,0)},i.prototype.getCellEndPosition=function(e){return this.roundPosition(e,1)},i.prototype.getTooltipText=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return this.tooltipDataItem=t,this.tooltip.dataItem=t,this.tooltipText?this.tooltipText:this._adapterO?this._adapterO.apply("getTooltipText",t.category):t.category},i.prototype.positionToIndex=function(e){e=I(e,10),e<0&&(e=0),e>1&&(e=1);var t=this.startIndex,r=this.endIndex,s=r-t-this.startLocation-(1-this.endLocation);e+=1/s*this.startLocation;var n=null;if(this._axisBreaks){var o=this._axisBreaks;St(o.iterator(),function(l){var u=l.startPosition,h=l.endPosition,p=l.adjustedStartValue,d=l.adjustedEndValue;p=ie(p,t),d=le(d,r);var c=l.breakSize;if(s-=(d-p)*(1-c),e>h)t+=(d-p)*(1-c);else if(!(e<u)){var f=(e-u)/(h-u);return n=p+Math.round(f*(d-p)),!1}return!0})}return b(n)||(n=Math.floor(e*s+t)),n>=this.dataItems.length&&(n=this.dataItems.length-1),n},i.prototype.positionToCategory=function(e){return this.getPositionLabel(e)},i.prototype.getPositionLabel=function(e){var t=this.dataItems.getIndex(this.positionToIndex(e));if(t)return t.category},Object.defineProperty(i.prototype,"basePoint",{get:function(){return this.renderer.positionToPoint(1)},enumerable:!0,configurable:!0}),i.prototype.initRenderer=function(){a.prototype.initRenderer.call(this);var e=this.renderer;e.baseGrid.disabled=!0},Object.defineProperty(i.prototype,"frequency",{get:function(){return this._frequency},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortBySeries",{get:function(){return this.getPropertyValue("sortBySeries")},set:function(e){this.setPropertyValue("sortBySeries",e,!0)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){e&&$(e.sortBySeries)&&se(e.sortBySeries)&&(this.map.hasKey(e.sortBySeries)?e.sortBySeries=this.map.getKey(e.sortBySeries):(this.addDelayedMap("sortBySeries",e.sortBySeries),delete e.sortBySeries)),a.prototype.processConfig.call(this,e)},i})(ts);_.registeredClasses.CategoryAxis=$e;_.registeredClasses.CategoryAxisDataItem=kr;var rs=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="XYSeriesDataItem",e.values.customValue={},e.values.valueX={stack:0},e.values.valueY={stack:0},e.values.openValueX={},e.values.openValueY={},e.values.dateX={},e.values.dateY={},e.values.openDateX={},e.values.openDateY={},e.setLocation("dateX",.5,0),e.setLocation("dateY",.5,0),e.setLocation("categoryX",.5,0),e.setLocation("categoryY",.5,0),e.applyTheme(),e}return Object.defineProperty(i.prototype,"valueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"customValue",{get:function(){return this.values.customValue.value},set:function(e){this.setValue("customValue",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateX",{get:function(){return this.getDate("dateX")},set:function(e){this.setDate("dateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dateY",{get:function(){return this.getDate("dateY")},set:function(e){this.setDate("dateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryX",{get:function(){return this.categories.categoryX},set:function(e){this.setCategory("categoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"categoryY",{get:function(){return this.categories.categoryY},set:function(e){this.setCategory("categoryY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueX",{get:function(){return this.values.openValueX.value},set:function(e){this.setValue("openValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openValueY",{get:function(){return this.values.openValueY.value},set:function(e){this.setValue("openValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateX",{get:function(){return this.getDate("openDateX")},set:function(e){this.setDate("openDateX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openDateY",{get:function(){return this.getDate("openDateY")},set:function(e){this.setDate("openDateY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryX",{get:function(){return this.categories.openCategoryX},set:function(e){this.setCategory("openCategoryX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"openCategoryY",{get:function(){return this.categories.openCategoryY},set:function(e){this.setCategory("openCategoryY",e)},enumerable:!0,configurable:!0}),i.prototype.getMin=function(e,t,r){var s=this,n;return b(r)||(r=0),M(e,function(o){var l;t?l=s.getWorkingValue(o):l=s.getValue(o),l+=r,(l<n||!b(n))&&(n=l)}),n},i.prototype.getMax=function(e,t,r){var s=this,n;return b(r)||(r=0),M(e,function(o){var l;t?l=s.getWorkingValue(o):l=s.getValue(o),l+=r,(l>n||!b(n))&&(n=l)}),n},i})(is);var Vt=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.groupFields={},e._xAxis=new We,e._yAxis=new We,e._xValueFields=[],e._yValueFields=[],e._baseInterval={},e.dataGrouped=!1,e.usesShowFields=!1,e._dataSetChanged=!1,e._maxxX=1e5,e._maxxY=1e5,e._propertiesChanged=!1,e.outOfRange=!1,e.className="XYSeries",e.isMeasured=!1,e.groupFields.valueX="close",e.groupFields.valueY="close",e.groupFields.customValue="close",e.groupFields.openValueX="open",e.groupFields.openValueY="open",e.cursorTooltipEnabled=!0,e.cursorHoverEnabled=!0,e.excludeFromTotal=!1,e.mainContainer.mask=new U,e.mainContainer.mask.setElement(e.paper.add("path")),e.stacked=!1,e.snapTooltip=!1,e._showBullets=!1,e.tooltip.pointerOrientation="horizontal",e.properties.stackToNegative=!0,e.hideTooltipWhileZooming=!0,e.setPropertyValue("maskBullets",!0),e.tooltip.events.on("hidden",function(){e.returnBulletDefaultState()},void 0,!1),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.observe(He,function(){e.inited&&(e._propertiesChanged=!0,e.legendDataItem&&(e.legendDataItem.childrenCreated=!1),e.chart&&e.chart.legend&&e.chart.legend.invalidateDataItems(),e.invalidate())},void 0,!1),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y Series"))},i.prototype.createDataItem=function(){return new rs},i.prototype.resetExtremes=function(){this._tmin.clear(),this._tmax.clear(),this._smin.clear(),this._smax.clear()},i.prototype.dataChangeUpdate=function(){this.dataGrouped=!1,this._baseInterval={},this._currentDataSetId="",this.resetExtremes(),this.xAxis&&this.xAxis.seriesDataChangeUpdate(this),this.yAxis&&this.yAxis.seriesDataChangeUpdate(this)},i.prototype.validateData=function(){this._baseInterval={};var e=this.dataFields;if(e.valueYShow||e.openValueXShow||e.openValueXShow||e.openValueYShow?this.usesShowFields=!0:this.usesShowFields=!1,this.defineFields(),this.data.length>0&&this.dataChangeUpdate(),a.prototype.validateData.call(this),this.updateItemReaderText(),this.chart&&(!$(this.dataFields[this._xField])||!$(this.dataFields[this._yField])))throw Error('Data fields for series "'+(this.name?this.name:this.uid)+'" are not properly defined.');this.inited&&this.isHidden&&this.hide(0),this.dataGrouped=!1},i.prototype.processDataItem=function(e,t){try{a.prototype.processDataItem.call(this,e,t),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y"),this.setInitialWorkingValues(e)}catch(r){this._chart&&this._chart.raiseCriticalError(r)}},i.prototype.updateDataItem=function(e){a.prototype.updateDataItem.call(this,e),this.xAxis.processSeriesDataItem(e,"X"),this.yAxis.processSeriesDataItem(e,"Y")},i.prototype.setInitialWorkingValues=function(e){},i.prototype.disposeData=function(){a.prototype.disposeData.call(this);var e=this.xAxis,t=this.yAxis;if(e){var r=this.dataItemsByAxis.getKey(e.uid);r&&r.clear(),e instanceof $e&&this.clearCatAxis(e)}if(t){var s=this.dataItemsByAxis.getKey(t.uid);s&&s.clear(),t instanceof $e&&this.clearCatAxis(t)}},i.prototype.clearCatAxis=function(e){var t=this.uid;e.dataItems.each(function(r){r.seriesDataItems[t]&&(r.seriesDataItems[t]=[])})},i.prototype.defineFields=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){var r=e.axisFieldName,s=r+"X",n="open"+Ya(r)+"X",o=t.axisFieldName,l=o+"Y",u="open"+Ya(o)+"Y";this._xField=s,this._yField=l,this.dataFields[n]&&(this._xOpenField=n),this.dataFields[u]&&(this._yOpenField=u),!this.dataFields[u]&&this.baseAxis==t&&(this._yOpenField=l),!this.dataFields[n]&&this.baseAxis==e&&(this._xOpenField=s),this.stacked&&this.baseAxis==e&&(this._xOpenField=s),this.stacked&&this.baseAxis==t&&(this._yOpenField=l),e instanceof $e&&t instanceof $e&&(this._yOpenField||(this._yOpenField=l)),this._xValueFields=[],this._yValueFields=[],this.addValueField(e,this._xValueFields,this._xField),this.addValueField(e,this._xValueFields,this._xOpenField),this.addValueField(t,this._yValueFields,this._yField),this.addValueField(t,this._yValueFields,this._yOpenField)}},i.prototype.addValueField=function(e,t,r){e instanceof Q&&$(this.dataFields[r])&&t.indexOf(r)==-1&&t.push(r)},i.prototype.setCategoryAxisField=function(e,t){$(this.dataFields[e])||(this.dataFields[e]=t.dataFields.category)},i.prototype.setDateAxisField=function(e,t){$(this.dataFields[e])||(this.dataFields[e]=t.dataFields.date)},i.prototype.afterDraw=function(){a.prototype.afterDraw.call(this),this.createMask()},i.prototype.createMask=function(){if(this.mainContainer.mask){var e=this.getMaskPath();V(this.axisRanges.iterator(),function(t){t.axisFill.fillPath&&(t.axisFill.validate(),e+=t.axisFill.fillPath)}),this.mainContainer.mask.path=e}},i.prototype.getMaskPath=function(){return this.xAxis&&this.yAxis?Ri({x:0,y:0,width:this.xAxis.axisLength,height:this.yAxis.axisLength}):""},i.prototype.getAxisField=function(e){if(e==this.xAxis)return this.xField;if(e==this.yAxis)return this.yField},i.prototype.validateDataItems=function(){var e=this.chart;e&&(this._maxxX=ie(1e5,e.plotContainer.maxWidth*2),this._maxxY=ie(1e5,e.plotContainer.maxHeight*2));var t=this.xAxis,r=this.yAxis;t&&r&&(t.updateAxisBySeries(),r.updateAxisBySeries()),a.prototype.validateDataItems.call(this),t&&r&&(t.postProcessSeriesDataItems(this),r.postProcessSeriesDataItems(this))},i.prototype.validateDataRange=function(){var e=this.xAxis,t=this.yAxis;e&&t&&(e.dataRangeInvalid&&e.validateDataRange(),t.dataRangeInvalid&&t.validateDataRange()),a.prototype.validateDataRange.call(this)},i.prototype.validate=function(){var e=this.xAxis,t=this.yAxis;if(e&&t){e.invalid&&e.validate(),t.invalid&&t.validate(),this.y=t.pixelY,this.x=e.pixelX,this._showBullets=!0;var r=this.minBulletDistance;b(r)&&this.baseAxis.axisLength/(this.endIndex-this.startIndex)<r&&(this._showBullets=!1)}if(this.updateTooltip(),!(e instanceof fe&&e.groupData&&!this.dataGrouped||t instanceof fe&&t.groupData&&!this.dataGrouped)){a.prototype.validate.call(this);var s=this.chart,n=this.maskBullets;s&&n&&s.className=="XYChart"&&((s.leftAxesContainer.layout=="vertical"||s.rightAxesContainer.layout=="vertical")&&(this.yAxis?this.bulletsContainer.mask=this.yAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0),(s.topAxesContainer.layout=="horizontal"||s.bottomAxesContainer.layout=="horizontal")&&(this.xAxis?this.bulletsContainer.mask=this.xAxis.renderer.gridContainer:this.bulletsContainer.mask=void 0))}},Object.defineProperty(i.prototype,"xAxis",{get:function(){if(this.chart){if(!this._xAxis.get()){var e=this.chart.xAxes.getIndex(0);if(!e)throw Error("There are no X axes on chart.");this.xAxis=e}return this._xAxis.get()}},set:function(e){this.setXAxis(e)},enumerable:!0,configurable:!0}),i.prototype.setXAxis=function(e){var t=this._xAxis.get();t!=e&&(t&&(this.dataItemsByAxis.removeKey(t.uid),this._xAxis.dispose(),t.series.removeValue(this)),this._xAxis.set(e,e.registerSeries(this)),this.dataItemsByAxis.setKey(e.uid,new _e),this.invalidateData())},Object.defineProperty(i.prototype,"yAxis",{get:function(){if(this.chart){if(!this._yAxis.get()){var e=this.chart.yAxes.getIndex(0);if(!e)throw Error("There are no Y axes on chart.");this.yAxis=e}return this._yAxis.get()}},set:function(e){this.setYAxis(e)},enumerable:!0,configurable:!0}),i.prototype.setYAxis=function(e){var t=this._yAxis.get();t!=e&&(t&&(this.dataItemsByAxis.removeKey(t.uid),this._yAxis.dispose(),t.series.removeValue(this)),this._yAxis.set(e,e.registerSeries(this)),e.chart instanceof qe&&e.chart.handleYAxisSet(this),this.dataItemsByAxis.setKey(e.uid,new _e),this.invalidateData())},Object.defineProperty(i.prototype,"baseAxis",{get:function(){var e=this.xAxis,t=this.yAxis;return!this._baseAxis&&e&&t&&(t instanceof fe&&(this._baseAxis=t),e instanceof fe&&(this._baseAxis=e),t instanceof $e&&(this._baseAxis=t),e instanceof $e&&(this._baseAxis=e),this._baseAxis||(this._baseAxis=e)),this._baseAxis},set:function(e){this._baseAxis!=e&&(this._baseAxis=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.addData=function(e,t,r){a.prototype.addData.call(this,e,t,r);var s=this.scrollbarSeries;s&&(this.scrollbarSeries.addData(e,t,!0),this.scrollbarSeries._parseDataFrom=this._parseDataFrom)},i.prototype.setData=function(e){a.prototype.setData.call(this,e),this.scrollbarSeries&&this.scrollbarSeries.setData(e)},i.prototype.setDataSet=function(e){var t=a.prototype.setDataSet.call(this,e);if(t){this._dataSetChanged=!0;var r=this.dataItems;if(this.resetExtremes(),r&&r.length>0){var s=this.xAxis,n=this.yAxis;this._prevStartIndex=void 0,this._prevEndIndex=void 0,this._startIndex=void 0,this._endIndex=void 0,this.appeared||this.processValues(!1),s instanceof fe&&s==this.baseAxis&&(this._tmin.setKey(s.uid,r.getIndex(0).dateX.getTime()),this._tmax.setKey(s.uid,r.getIndex(r.length-1).dateX.getTime()),this.dispatch("extremeschanged")),n instanceof fe&&n==this.baseAxis&&(this._tmin.setKey(n.uid,r.getIndex(0).dateY.getTime()),this._tmax.setKey(n.uid,r.getIndex(r.length-1).dateY.getTime()),this.dispatch("extremeschanged"))}}return t},i.prototype.processValues=function(e){a.prototype.processValues.call(this,e);var t=this.xAxis,r=this.yAxis;if(!(!t||!r)){var s=this.dataItems,n=1/0,o=-1/0,l=1/0,u=-1/0,h=this.startIndex,p=this.endIndex,d=h,c=p;e||(h=0,p=this.dataItems.length);for(var f=h;f<p;f++){var y=s.getIndex(f);this.getStackValue(y,e);var g=y.getValue("valueX","stack"),v=y.getValue("valueY","stack");e||(g=y.getValue("valueX","stackTrue"),v=y.getValue("valueY","stackTrue")),n=le(y.getMin(this._xValueFields,e,g),n),l=le(y.getMin(this._yValueFields,e,v),l),o=ie(y.getMax(this._xValueFields,e,g),o),u=ie(y.getMax(this._yValueFields,e,v),u),this.stacked&&(this.baseAxis==t&&(v<l&&(l=v),v>u&&(u=v)),this.baseAxis==r&&(g<n&&(n=g),g>o&&(o=g)))}t.processSeriesDataItems(),r.processSeriesDataItems();var x=t.uid,P=r.uid;if(this.xAxis instanceof Q&&(n==1/0||o==-1/0)){this._smin.setKey(x,void 0),this._smax.setKey(x,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof Q&&(l==1/0||u==-1/0)){this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(!e&&(this._tmin.getKey(x)!=n||this._tmax.getKey(x)!=o||this._tmin.getKey(P)!=l||this._tmax.getKey(P)!=u)){this._tmin.setKey(x,n),this._tmax.setKey(x,o),this._tmin.setKey(P,l),this._tmax.setKey(P,u);var T=this.stackedSeries;T&&(T.isDisposed()?this.stackedSeries=void 0:T.processValues(!1)),this.dispatchImmediately("extremeschanged")}if(h!=d||p!=c){n=1/0,o=-1/0,l=1/0,u=-1/0;for(var f=d;f<c;f++){var y=s.getIndex(f);this.getStackValue(y,e);var g=y.getValue("valueX","stack"),v=y.getValue("valueY","stack");e||(g=y.getValue("valueX","stackTrue"),v=y.getValue("valueY","stackTrue")),n=le(y.getMin(this._xValueFields,e,g),n),l=le(y.getMin(this._yValueFields,e,v),l),o=ie(y.getMax(this._xValueFields,e,g),o),u=ie(y.getMax(this._yValueFields,e,v),u),this.stacked&&(this.baseAxis==t&&(v<l&&(l=v),v>u&&(u=v)),this.baseAxis==r&&(g<n&&(n=g),g>o&&(o=g)))}}if(this.xAxis instanceof Q&&(n==1/0||o==-1/0)){this._smin.setKey(x,void 0),this._smax.setKey(x,void 0),this.dispatchImmediately("selectionextremeschanged");return}if(this.yAxis instanceof Q&&(l==1/0||u==-1/0)){this._smin.setKey(P,void 0),this._smax.setKey(P,void 0),this.dispatchImmediately("selectionextremeschanged");return}if((this._smin.getKey(x)!=n||this._smax.getKey(x)!=o||this._smin.getKey(P)!=l||this._smax.getKey(P)!=u)&&(this._smin.setKey(x,n),this._smax.setKey(x,o),this._smin.setKey(P,l),this._smax.setKey(P,u),this.appeared||this.start!=0||this.end!=1||this.dataItems!=this.mainDataSet)){var C=!1;if(r instanceof Q&&!(r instanceof fe)){var O=this._tmin.getKey(P);(!b(O)||(this.usesShowFields||this._dataSetChanged||t instanceof fe&&t.groupData&&this.isShowing)&&l<O||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(P,l),C=!0);var w=this._tmax.getKey(P);(!b(w)||(this.usesShowFields||this._dataSetChanged||t instanceof fe&&t.groupData&&this.isShowing)&&u>w||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(P,u),C=!0)}if(t instanceof Q&&!(t instanceof fe)){var O=this._tmin.getKey(x);(!b(O)||(this.usesShowFields||this._dataSetChanged||r instanceof fe&&r.groupData&&this.isShowing)&&n<O||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmin.setKey(x,n),C=!0);var w=this._tmax.getKey(x);(!b(w)||(this.usesShowFields||this._dataSetChanged||r instanceof fe&&r.groupData&&this.isShowing)&&o>w||this.stackedSeries&&!this.isHidden&&!e)&&(this._tmax.setKey(x,o),C=!0)}C&&this.dispatchImmediately("extremeschanged"),this.start==0&&this.end==1&&(this._dataSetChanged=!1),this.dispatchImmediately("selectionextremeschanged")}!e&&this.stacked&&this.processValues(!0)}},i.prototype.hideTooltip=function(e){a.prototype.hideTooltip.call(this,e),this.returnBulletDefaultState(),this._prevTooltipDataItem=void 0},i.prototype.showTooltipAtPosition=function(e,t){var r;if(this.visible&&!this.isHiding&&!this.isShowing){var s=this._xAxis.get(),n=this._yAxis.get();s==this.baseAxis&&(r=s.getSeriesDataItem(this,s.toAxisPosition(e),this.snapTooltip)),n==this.baseAxis&&(r=n.getSeriesDataItem(this,n.toAxisPosition(t),this.snapTooltip));var o=this.showTooltipAtDataItem(r);if(o)return o;if(!this.tooltipText&&!this.tooltipHTML)return}this.hideTooltip()},i.prototype.getAdjustedXLocation=function(e,t,r){return e.locations[t]},i.prototype.getAdjustedYLocation=function(e,t,r){return e.locations[t]},i.prototype.showTooltipAtDataItem=function(e){var t,r,s=this.chart.cursor;if(s&&s.hideSeriesTooltipsOnSelection&&s.selection.visible&&s.downPoint){this.hideTooltip();return}if(this.returnBulletDefaultState(e),e&&e.visible){if(this.updateLegendValue(e),this.cursorTooltipEnabled){this.tooltipDataItem=e;var n=this.tooltipXField,o=this.tooltipYField;if($(e[n])&&$(e[o])){var l=this.getPoint(e,n,o,this.getAdjustedXLocation(e,n),this.getAdjustedYLocation(e,o));if(l&&!(this.chart.className=="XYChart"&&(l.y<-1||l.y>this.yAxis.pixelHeight+1||l.x<-1||l.x>this.xAxis.pixelWidth+1))){if(this.tooltipX=l.x,this.tooltipY=l.y,this._prevTooltipDataItem!=e&&(this.dispatchImmediately("tooltipshownat",{type:"tooltipshownat",target:this,dataItem:e}),this._prevTooltipDataItem=e),this.cursorHoverEnabled)try{for(var u=Ra(e.sprites),h=u.next();!h.done;h=u.next()){var p=h.value;!p.parent.visible||p.isHidden||p.__disabled||p.disabled||p.isHiding||(p.interactions.isRealHover||(p.dispatchImmediately("over"),p.interactions.isRealHover=!0),p.isHover=!0)}}catch(d){t={error:d}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}return this.showTooltip()?Jt({x:l.x,y:l.y},this):void 0}}}}else this.updateLegendValue(e,!0)},i.prototype.returnBulletDefaultState=function(e){var t,r;if(this._prevTooltipDataItem&&this._prevTooltipDataItem!=e)try{for(var s=Ra(this._prevTooltipDataItem.sprites),n=s.next();!n.done;n=s.next()){var o=n.value;if(o.isDisposed())this._prevTooltipDataItem=void 0;else{var l=o.interactions.isRealHover;o.isHover=!1,l&&o.dispatchImmediately("out")}}}catch(u){t={error:u}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}},i.prototype.shouldCreateBullet=function(e,t){var r=t.xField;$(r)||(r=this.xField);var s=t.yField;if($(s)||(s=this.yField),this.xAxis instanceof Q&&!e.hasValue([r])||this.yAxis instanceof Q&&!e.hasValue([s]))return!1;if(t.disabled){var n=t.propertyFields.disabled,o=e.dataContext;return!!(o&&o[n]===!1)}return!0},i.prototype.updateTooltip=function(){!this.hideTooltipWhileZooming&&this.tooltip&&!this.tooltip.isHidden&&!this.isHiding&&!this.isHidden&&this.tooltipDataItem&&this.showTooltipAtDataItem(this.tooltipDataItem)},i.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var t=e.dataItem,r=e.xField;$(r)||(r=this.xField);var s=e.yField;$(s)||(s=this.yField);var n=this.xAxis,o=this.yAxis;if(n instanceof Q&&!t.hasValue([r])||o instanceof Q&&!t.hasValue([s]))e.visible=!1;else{var l=this.getBulletLocationX(e,r),u=this.getBulletLocationY(e,s),h=this.getPoint(t,r,s,l,u);if(h){var p=this.xOpenField,d=this.yOpenField,c=void 0,f=void 0;if(n instanceof fe){b(l)||(l=0);var y=void 0,g=t.getWorkingValue(r);p?y=t.getWorkingValue(p):n==this.baseAxis&&(y=n.baseValue),b(y)||(y=g);var v=t.getValue("valueX","stack");if(y+=v,g+=v,y==g){var x=n.baseInterval,P=n.dateFormatter;y=Ct(new Date(y),x.timeUnit,x.count,P.firstDayOfWeek,P.utc,void 0,P.timezoneMinutes,P.timezone).getTime(),g=Wt(new Date(y),x.timeUnit,x.count,P.utc).getTime()}var T=void 0;n==this.baseAxis?T=y+(g-y)*l:T=y+(g-y)*(1-l),c=n.valueToPosition(T)}else if(n instanceof Q){b(l)||(l=0);var y=void 0,g=t.getWorkingValue(r);p?y=t.getWorkingValue(p):y=n.baseValue;var v=t.getValue("valueX","stack");y+=v,g+=v;var T=y+(g-y)*(1-l);c=n.valueToPosition(T)}else if(n instanceof $e){var C=this.getAdjustedXLocation(t,r,e.locationX),O=this.getAdjustedXLocation(t,p,e.locationX);c=n.categoryToPosition(t[r],C);var w=void 0;p&&(w=n.categoryToPosition(t[p],O)),b(w)||(w=1),c=w+(c-w)*l}if(o instanceof fe){b(u)||(u=0);var y=void 0,g=t.getWorkingValue(s);d?y=t.getWorkingValue(d):o==this.baseAxis&&(y=o.baseValue),b(y)||(y=g);var v=t.getValue("valueY","stack");if(y+=v,g+=v,y==g){var x=o.baseInterval,P=o.dateFormatter;y=Ct(new Date(y),x.timeUnit,x.count,P.firstDayOfWeek,P.utc,void 0,P.timezoneMinutes,P.timezone).getTime(),g=Wt(new Date(y),x.timeUnit,x.count,P.utc).getTime()}var T=void 0;o==this.baseAxis?T=y+(g-y)*u:T=y+(g-y)*(1-u),f=o.valueToPosition(T)}else if(o instanceof Q){b(u)||(u=0);var y=void 0,g=t.getWorkingValue(s);d?y=t.getWorkingValue(d):y=o.baseValue;var v=t.getValue("valueY","stack");y+=v,g+=v;var T=y+(g-y)*(1-u);f=o.valueToPosition(T)}else if(o instanceof $e){f=o.categoryToPosition(t[s],u);var D=this.getAdjustedYLocation(t,s,e.locationY),A=this.getAdjustedYLocation(t,d,e.locationY);f=o.categoryToPosition(t[s],D);var H=void 0;d&&(H=o.categoryToPosition(t[d],A)),b(H)||(H=1),f=H+(f-H)*u}e.visible=!0,this.positionBulletReal(e,c,f)}else e.visible=!1}},i.prototype.positionBulletReal=function(e,t,r){e.x=this.xAxis.renderer.positionToPoint(t,r).x,e.y=this.yAxis.renderer.positionToPoint(r,t).y},i.prototype.getBulletLocationX=function(e,t){var r=e.locationX,s=e.dataItem;return b(r)||(r=s.workingLocations[t]),r},i.prototype.getBulletLocationY=function(e,t){var r=e.locationY,s=e.dataItem;return b(r)||(r=s.workingLocations[t]),r},i.prototype.updateStacking=function(){var e=this;this.invalidateDataItems(),this.chart&&this.chart.series.each(function(t){t.baseAxis==e.baseAxis&&(t.stackedSeries=void 0,t.invalidateDataItems(),t.invalidateProcessedData())})},Object.defineProperty(i.prototype,"stacked",{get:function(){return this.getPropertyValue("stacked")},set:function(e){if(this.setPropertyValue("stacked",e,!0)){this.updateStacking();var t=this.xAxis,r=this.yAxis;if(!e){var s;t!=this.baseAxis&&t instanceof Q&&(s=this.xField),r!=this.baseAxis&&r instanceof Q&&(s=this.yField),s&&this.dataItems.each(function(n){n.setCalculatedValue(s,0,"stack"),n.setCalculatedValue(s,0,"stackTrue")})}}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapTooltip",{get:function(){return this.getPropertyValue("snapTooltip")},set:function(e){this.setPropertyValue("snapTooltip",e)},enumerable:!0,configurable:!0}),i.prototype.show=function(e){var t=this;this.isHidden&&(this.appeared&&this.xAxis instanceof fe&&this.xAxis.groupData&&(this._tmin.setKey(this.yAxis.uid,void 0),this._tmax.setKey(this.yAxis.uid,void 0)),this.appeared&&this.yAxis instanceof fe&&this.yAxis.groupData&&(this._tmin.setKey(this.xAxis.uid,void 0),this._tmax.setKey(this.xAxis.uid,void 0)));var r;this.xAxis instanceof Q&&this.xAxis!=this.baseAxis&&(r=this._xValueFields),this.yAxis instanceof Q&&this.yAxis!=this.baseAxis&&(r=this._yValueFields);var s=this.startIndex,n=this.endIndex,o=0,l=this.defaultState.transitionDuration;b(e)&&(l=e),ue.animationsEnabled||(l=0);var u;V(Yi(this.dataItems.iterator()),function(p){var d=p[0],c=p[1],f=l;(d<t.startIndex-10||d>t.endIndex+10)&&(f=0,o=0),t.sequencedInterpolation&&f>0&&(o=t.sequencedInterpolationDelay*d+l*(d-s)/(n-s)),u=c.show(f,o,r)}),this.dataSets.each(function(p,d){d!=t.dataItems&&d.each(function(c){c.events.disable(),c.show(0,0,r),c.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(p){p.events.disable(),p.show(0,0,r),p.events.enable()});var h=a.prototype.show.call(this,e);return u&&!u.isFinished()&&(h=u),this.hidden&&(this.dispatchImmediately("selectionextremeschanged"),this.hidden=!1),h},i.prototype.hide=function(e){var t=this,r,s,n=this.xAxis;n instanceof Q&&n!=this.baseAxis&&(r=this._xValueFields,this.stacked||n.minZoomed<n.baseValue&&n.maxZoomed>n.baseValue||this.stackedSeries?s=n.baseValue:s=n.min);var o=this.yAxis;o instanceof Q&&o!=this.baseAxis&&(r=this._yValueFields,this.stacked||o.minZoomed<o.baseValue&&o.maxZoomed>o.baseValue||this.stackedSeries?s=o.baseValue:s=o.min);var l=this.startIndex,u=this.endIndex,h=this.hiddenState.transitionDuration;b(e)&&(h=e),ue.animationsEnabled||(h=0);var p=0,d;V(Yi(this.dataItems.iterator()),function(f){var y=f[0],g=f[1],v=h;(y<t.startIndex-10||y>t.endIndex+10)&&(v=0),v==0?g.hide(0,0,s,r):(t.sequencedInterpolation&&v>0&&(p=t.sequencedInterpolationDelay*y+h*(y-l)/(u-l)),d=g.hide(v,p,s,r))}),this.dataSets.each(function(f,y){y!=t.dataItems&&y.each(function(g){g.events.disable(),g.hide(0,0,s,r),g.events.enable()})}),this.mainDataSet!=this.dataItems&&this.mainDataSet.each(function(f){f.events.disable(),f.hide(0,0,s,r),f.events.enable()});var c=a.prototype.hide.call(this,h);return c&&!c.isFinished()&&c.delay(p),d&&!d.isFinished()&&(c=d),this.appeared&&this.dispatch("selectionextremeschanged"),this.validateDataElements(),c},i.prototype.handleDataItemWorkingValueChange=function(e,t){a.prototype.handleDataItemWorkingValueChange.call(this,e,t);var r=this.baseAxis.series;V(r.iterator(),function(s){(s.stacked||s.stackedSeries)&&s.invalidateProcessedData()})},i.prototype.getStackValue=function(e,t){var r=this,s=this.xAxis,n=this.yAxis;if(!(!this.stacked||!s||!n)){var o=this.chart,l=o.series.indexOf(this),u;if(s!=this.baseAxis&&s instanceof Q&&(u=this.xField),n!=this.baseAxis&&n instanceof Q&&(u=this.yField),!u)return;e.setCalculatedValue(u,0,"stack"),e.setCalculatedValue(u,0,"stackTrue"),St(o.series.range(0,l).backwards().iterator(),function(h){if(h.xAxis==s&&h.yAxis==n&&h.className==r.className){h.stackedSeries=r;var p=h.dataItems.getIndex(e.index);if(p&&p.hasValue(r._xValueFields)&&p.hasValue(r._yValueFields)){var d=e.getValue(u),c=void 0,f=p.getValue(u,"stackTrue");f==null&&(f=0);var y=p.getValue(u)+f;if(c=p.getWorkingValue(u)+p.getValue(u,"stack"),r.stackToNegative){if(d>=0&&y>=0||d<0&&y<0)return e.setCalculatedValue(u,c,"stack"),e.setCalculatedValue(u,y,"stackTrue"),!1;if(!h.stacked)return!1}else return e.setCalculatedValue(u,c,"stack"),e.setCalculatedValue(u,y,"stackTrue"),!1}else if(!h.stacked)return!1}return!0})}},Object.defineProperty(i.prototype,"stackToNegative",{get:function(){return this.getPropertyValue("stackToNegative")},set:function(e){this.setPropertyValue("stackToNegative",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xField",{get:function(){return this._xField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yField",{get:function(){return this._yField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xOpenField",{get:function(){return this._xOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yOpenField",{get:function(){return this._yOpenField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipXField",{get:function(){return this._tooltipXField?this._tooltipXField:this._xField},set:function(e){this._tooltipXField=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipYField",{get:function(){return this._tooltipYField?this._tooltipYField:this._yField},set:function(e){this._tooltipYField=e},enumerable:!0,configurable:!0}),i.prototype.min=function(e){return this._tmin.getKey(e.uid)},i.prototype.max=function(e){return this._tmax.getKey(e.uid)},i.prototype.selectionMin=function(e){var t=this._smin.getKey(e.uid);return t},i.prototype.selectionMax=function(e){var t=this._smax.getKey(e.uid);return t},i.prototype.processConfig=function(e){if(e){if($(e.baseAxis)&&se(e.baseAxis)&&(this.map.hasKey(e.baseAxis)?e.baseAxis=this.map.getKey(e.baseAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.baseAxis+'" found for `baseAxis`.'),delete e.baseAxis)),$(e.xAxis)&&se(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.xAxis+'" found for `xAxis`.'),delete e.xAxis)),$(e.yAxis)&&se(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push("[XYSeries ("+(this.name||"unnamed")+')] No axis with id "'+e.yAxis+'" found for `yAxis`.'),delete e.yAxis)),$(e.axisRanges)&&je(e.axisRanges))for(var t=0,r=e.axisRanges.length;t<r;t++){var s=e.axisRanges[t];$(s.type)||(s.type="AxisDataItem"),$(s.axis)&&se(s.axis)&&this.map.hasKey(s.axis)?s.component=this.map.getKey(s.axis):$(s.component)&&se(s.component)&&this.map.hasKey(s.component)&&(s.component=this.map.getKey(s.component))}(!$(e.dataFields)||!Fe(e.dataFields))&&this.processingErrors.push("`dataFields` is not set for series ["+(this.name||"unnamed")+"]")}a.prototype.processConfig.call(this,e)},i.prototype.getPoint=function(e,t,r,s,n,o,l){if(this.xAxis&&this.yAxis){var u=this.xAxis.getX(e,t,s),h=this.yAxis.getY(e,r,n);return u=X(u,-this._maxxX,this._maxxX),h=X(h,-this._maxxY,this._maxxY),{x:u,y:h}}},i.prototype.updateItemReaderText=function(){if(!this._itemReaderTextChanged){var e="";q(this.dataFields,function(t,r){e+="{"+t+"} "}),this.itemReaderText=e,this._itemReaderTextChanged=!1}},Object.defineProperty(i.prototype,"cursorTooltipEnabled",{get:function(){return this.getPropertyValue("cursorTooltipEnabled")},set:function(e){this.setPropertyValue("cursorTooltipEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cursorHoverEnabled",{get:function(){return this.getPropertyValue("cursorHoverEnabled")},set:function(e){this.setPropertyValue("cursorHoverEnabled",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"excludeFromTotal",{get:function(){return this.getPropertyValue("excludeFromTotal")},set:function(e){this.setPropertyValue("excludeFromTotal",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideTooltipWhileZooming",{get:function(){return this.getPropertyValue("hideTooltipWhileZooming")},set:function(e){this.setPropertyValue("hideTooltipWhileZooming",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e);var t=this.chart;t&&(e?this.bulletsContainer.parent=t.bulletsContainer:this.bulletsContainer.parent=t.axisBulletsContainer)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){this.groupFields=ai(e.groupFields,{}),a.prototype.copyFrom.call(this,e)},i.prototype.dispose=function(){this.scrollbarSeries&&this.scrollbarSeries.dispose(),a.prototype.dispose.call(this)},i})(lr);_.registeredClasses.XYSeries=Vt;_.registeredClasses.XYSeriesDataItem=rs;var ql=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="ZoomOutButton",e.padding(9,9,9,9),e.showSystemTooltip=!0;var t=new J,r=e.background;r.cornerRadius(20,20,20,20),r.fill=t.getFor("primaryButton"),r.stroke=t.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=t.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=t.getFor("primaryButtonActive");var s=new U;s.element=e.paper.add("path");var n=R({x:0,y:0});return n+=F({x:11,y:0}),s.path=n,s.pixelPerfect=!0,s.padding(8,3,8,3),s.stroke=t.getFor("primaryButtonText"),e.icon=s,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Zoom Out"))},i})(oi);_.registeredClasses.ZoomOutButton=ql;var as=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="DesaturateFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"saturate"}),e.filterPrimitives.push(e.feColorMatrix),e.width=120,e.height=120,e.saturation=0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"saturation",{get:function(){return this.properties.saturation},set:function(e){this.properties.saturation=e,this.feColorMatrix.attr({values:e.toString()})},enumerable:!0,configurable:!0}),i})(ji);_.registeredClasses.DesaturateFilter=as;var Kr=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._chart=new We,e.className="XYChartScrollbar";var t=new J;e.padding(0,0,0,0);var r=e.createChild(qe);if(r.shouldClone=!1,r.margin(0,0,0,0),r.padding(0,0,0,0),r.interactionsEnabled=!1,e._scrollbarChart=r,!Sr()){var s=new as;s.filterUnits="userSpaceOnUse",r.plotContainer.filters.push(s)}e._disposers.push(e._scrollbarChart),e.minHeight=60,e.minWidth=60;var n=e.createChild(U);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.fill=t.getFor("background"),n.fillOpacity=.8,n.interactionsEnabled=!1,n.isMeasured=!1,n.toBack(),e._unselectedOverlay=n,e._disposers.push(e._unselectedOverlay),r.toBack(),e.background.cornerRadius(0,0,0,0);var o=e.thumb.background;o.cornerRadius(0,0,0,0),o.fillOpacity=0,o.fill=t.getFor("background");var l=o.states.getKey("hover");l&&(l.properties.fillOpacity=.2);var u=o.states.getKey("down");return u&&(u.properties.fillOpacity=.4),e._disposers.push(e._chart),e.applyTheme(),e}return Object.defineProperty(i.prototype,"series",{get:function(){return this._series||(this._series=new he,this._disposers.push(this._series.events.on("inserted",this.handleSeriesAdded,this,!1)),this._disposers.push(this._series.events.on("removed",this.handleSeriesRemoved,this,!1))),this._series},enumerable:!0,configurable:!0}),i.prototype.handleSeriesAdded=function(e){var t=this,r=e.newValue;if(!(!r.xAxis||!r.yAxis)){var s=this.scrollbarChart;s.zoomOutButton.disabled=!0,this.chart=r.chart,s.dateFormatter.inputDateFormat=this.chart.dateFormatter.inputDateFormat,s.language.locale=this.chart.language.locale;var n=!0,o=!0;V(this.series.iterator(),function(P){P!=r&&(P.xAxis==r.xAxis&&t.scrollbarChart.xAxes.length>0&&(n=!1),P.yAxis==r.yAxis&&t.scrollbarChart.yAxes.length>0&&(o=!1))}),r.events.on("beforedisposed",function(){t.series.removeValue(r)});var l=new J,u=r.clone();if((ue.onlyShowOnViewport||ue.queue)&&this.addDisposer(this.chart.events.on("removedfromqueue",function(){s.invalidateData()})),Sr()&&(u.stroke=Z("#aaaaaa"),u.fill=u.stroke,u.propertyFields.fill=void 0,u.propertyFields.stroke=void 0),r.scrollbarSeries=u,n){var h=r.xAxis.clone();s.xAxes.moveValue(h),h.title.disabled=!0,h.rangeChangeDuration=0;var p=h.renderer;p.ticks.template.disabled=!0,p.inside=!0,p.labels.template.inside=!0,p.line.strokeOpacity=0,p.minLabelPosition=.02,p.maxLabelPosition=.98,p.line.disabled=!0,p.axisFills.template.disabled=!0,p.baseGrid.disabled=!0,p.grid.template.strokeOpacity=.05,p.minWidth=void 0,p.minHeight=void 0,p.padding(0,0,0,0),p.chart=s,p.margin(0,0,0,0),h.width=k(100);var d=p.labels.template;if(d.fillOpacity=.5,h.maxZoomCount=void 0,h.minZoomCount=void 0,h instanceof fe){var c=h,f=r.xAxis;c.groupCount=f.groupCount*5,c.min=void 0,c.max=void 0,this._disposers.push(c.clonedFrom.events.on("extremeschanged",function(){b(c.clonedFrom.minDefined)&&(c.min=c.clonedFrom.minDefined),b(c.clonedFrom.maxDefined)&&(c.max=c.clonedFrom.maxDefined)},void 0,!1))}else if(h instanceof Q){var y=h;y.min=void 0,y.max=void 0,b(y.clonedFrom.minDefined)||(y.min=void 0),b(y.clonedFrom.maxDefined)||(y.max=void 0),this._disposers.push(y.clonedFrom.events.on("extremeschanged",function(){b(y.clonedFrom.minDefined)&&(y.min=y.clonedFrom.min),b(y.clonedFrom.maxDefined)&&(y.max=y.clonedFrom.max)},void 0,!1))}u.xAxis=h}else this.scrollbarChart.xAxes.each(function(P){P.clonedFrom==r.xAxis&&(u.xAxis=P)});if(o){var g=r.yAxis.clone();s.yAxes.moveValue(g),g.title.disabled=!0,g.rangeChangeDuration=0;var p=g.renderer;p.ticks.template.disabled=!0,p.inside=!0,p.labels.template.inside=!0,p.line.strokeOpacity=0,p.minLabelPosition=.02,p.maxLabelPosition=.98,p.line.disabled=!0,p.axisFills.template.disabled=!0,p.grid.template.stroke=l.getFor("background"),p.baseGrid.disabled=!0,p.grid.template.strokeOpacity=.05,p.minWidth=void 0,p.minHeight=void 0,p.chart=s,p.padding(0,0,0,0),p.margin(0,0,0,0),g.height=k(100);var d=p.labels.template;if(d.fillOpacity=.5,u.yAxis=g,g.maxZoomCount=void 0,g.minZoomCount=void 0,g instanceof fe){var v=g;v.min=void 0,v.max=void 0;var f=r.yAxis;g.groupCount=f.groupCount*5,this._disposers.push(v.clonedFrom.events.on("extremeschanged",function(){b(v.clonedFrom.minDefined)&&(v.min=v.clonedFrom.minDefined),b(v.clonedFrom.maxDefined)&&(v.max=v.clonedFrom.maxDefined)}))}else if(g instanceof Q){var x=g;x.min=void 0,x.max=void 0,b(x.clonedFrom.minDefined)||(x.min=void 0),b(x.clonedFrom.maxDefined)||(x.max=void 0),this._disposers.push(x.clonedFrom.events.on("extremeschanged",function(){b(x.clonedFrom.minDefined)&&(x.min=x.clonedFrom.minDefined),b(x.clonedFrom.maxDefined)&&(x.max=x.clonedFrom.maxDefined)}))}}else this.scrollbarChart.yAxes.each(function(P){P.clonedFrom==r.yAxis&&(u.yAxis=P)});u.rangeChangeDuration=0,u.interpolationDuration=0,u.defaultState.transitionDuration=0,u.showOnInit=!1,this._disposers.push(u.events.on("validated",this.zoomOutAxes,this,!1)),this._disposers.push(r.events.on("datavalidated",function(){u.data!=r.data&&(u.data=r.data)},void 0,!1)),u.defaultState.properties.visible=!0,s.series.push(u),this.updateByOrientation()}},i.prototype.updateByOrientation=function(){var e=this;this._scrollbarChart&&(V(this._scrollbarChart.xAxes.iterator(),function(t){var r=t.renderer;e.orientation=="vertical"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=t.clonedFrom.renderer.minGridDistance)}),V(this._scrollbarChart.yAxes.iterator(),function(t){var r=t.renderer;e.orientation=="horizontal"?(r.grid.template.disabled=!0,r.labels.template.disabled=!0,r.minGridDistance=10):(r.grid.template.disabled=!1,r.labels.template.disabled=!1,r.minGridDistance=t.clonedFrom.renderer.minGridDistance)}))},i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue,r=this.scrollbarChart;r.series.each(function(s){s&&s.clonedFrom==t&&r.series.removeValue(s)}),r.series.length==0&&(r.xAxes.clear(),r.yAxes.clear());try{t.events.off("validated",this.zoomOutAxes,this)}catch{}},Object.defineProperty(i.prototype,"scrollbarChart",{get:function(){return this._scrollbarChart},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.get()!==e&&(this._chart.set(e,e.events.on("datavalidated",this.handleDataChanged,this,!1)),this.handleDataChanged(),this._scrollbarChart.dataProvider=e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"unselectedOverlay",{get:function(){return this._unselectedOverlay},enumerable:!0,configurable:!0}),i.prototype.handleDataChanged=function(){this.chart.data!=this.scrollbarChart.data?this.scrollbarChart.data=this.chart.data:this.scrollbarChart.invalidateRawData()},i.prototype.zoomOutAxes=function(){var e=this.scrollbarChart;V(e.xAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)}),V(e.yAxes.iterator(),function(t){t.zoom({start:0,end:1},!0,!0)})},i.prototype.updateThumb=function(e){if(e===void 0&&(e=!0),a.prototype.updateThumb.call(this,e),this._unselectedOverlay){var t=this.thumb,r=t.pixelX||0,s=t.pixelY||0,n=t.pixelWidth||0,o=t.pixelHeight||0,l="";this.orientation=="horizontal"?(l=Ri({x:-1,y:0,width:r,height:o}),l+=Ri({x:r+n,y:0,width:(this.pixelWidth||0)-r-n,height:o})):(l=Ri({x:0,y:0,width:n,height:s}),l+=Ri({x:0,y:s+o,width:n,height:(this.pixelHeight||0)-s-o})),this._unselectedOverlay.path=l}},i.prototype.processConfig=function(e){if(e&&$(e.series)&&je(e.series))for(var t=0,r=e.series.length;t<r;t++){var s=e.series[t];if($(s)&&se(s))if(this.map.hasKey(s))e.series[t]=this.map.getKey(s);else throw Error("XYChartScrollbar error: Series with id `"+s+"` does not exist.")}a.prototype.processConfig.call(this,e)},i})(ma);_.registeredClasses.XYChartScrollbar=Kr;var ss=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="XYChartDataItem",e.applyTheme(),e}return i})(fo);var qe=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._axisRendererX=dt,e._axisRendererY=_t,e._seriesPoints=[],e.className="XYChart",e.maskBullets=!0,e.arrangeTooltips=!0;var t=e.chartContainer;t.layout="vertical",e.padding(15,15,15,15);var r=t.createChild(Y);r.shouldClone=!1,r.layout="vertical",r.width=k(100),r.zIndex=1,e.topAxesContainer=r;var s=t.createChild(Y);s.shouldClone=!1,s.layout="horizontal",s.width=k(100),s.height=k(100),s.zIndex=0,e.yAxesAndPlotContainer=s;var n=t.createChild(Y);n.shouldClone=!1,n.width=k(100),n.layout="vertical",n.zIndex=1,e.bottomAxesContainer=n;var o=s.createChild(Y);o.shouldClone=!1,o.layout="horizontal",o.height=k(100),o.contentAlign="right",o.events.on("transformed",e.updateXAxesMargins,e,!1),o.zIndex=1,e.leftAxesContainer=o;var l=s.createChild(Y);l.shouldClone=!1,l.height=k(100),l.width=k(100),l.background.fillOpacity=0,e.plotContainer=l,e.mouseWheelBehavior="none",e._cursorContainer=l;var u=s.createChild(Y);u.shouldClone=!1,u.layout="horizontal",u.height=k(100),u.zIndex=1,u.events.on("transformed",e.updateXAxesMargins,e,!1),e.rightAxesContainer=u,e.seriesContainer.parent=l,e.bulletsContainer.parent=l;var h=l.createChild(ql);h.shouldClone=!1,h.align="right",h.valign="top",h.zIndex=Number.MAX_SAFE_INTEGER,h.marginTop=5,h.marginRight=5,h.hide(0),e.zoomOutButton=h;var p=e.plotContainer.createChild(Y);return p.shouldClone=!1,p.width=k(100),p.height=k(100),p.isMeasured=!1,p.zIndex=4,p.layout="none",e.axisBulletsContainer=p,e._bulletMask=e.plotContainer,e.events.on("beforedatavalidated",function(){e.series.each(function(d){d.dataGrouped=!1,d._baseInterval={}})},e,!1),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),this.zoomOutButton.exportable=!1,$(this.readerTitle)||(this.readerTitle=this.language.translate("X/Y chart"))},i.prototype.draw=function(){a.prototype.draw.call(this),this.seriesContainer.toFront(),this.bulletsContainer.toFront(),this.maskBullets&&(this.bulletsContainer.mask=this._bulletMask),this.updateSeriesLegend()},i.prototype.updatePlotElements=function(){V(this.series.iterator(),function(e){e.invalidate()})},i.prototype.validateData=function(){this._parseDataFrom==0&&(V(this.xAxes.iterator(),function(e){e.dataChangeUpdate()}),V(this.yAxes.iterator(),function(e){e.dataChangeUpdate()}),V(this.series.iterator(),function(e){e.dataChangeUpdate()})),a.prototype.validateData.call(this)},i.prototype.updateXAxesMargins=function(){var e=this.leftAxesContainer.measuredWidth,t=this.rightAxesContainer.measuredWidth,r=this.bottomAxesContainer;(r.paddingLeft!=e||r.paddingRight!=t)&&(r.paddingLeft=e,r.paddingRight=t);var s=this.topAxesContainer;(s.paddingLeft!=e||s.paddingRight!=t)&&(s.paddingLeft=e,s.paddingRight=t)},i.prototype.reinit=function(){a.prototype.reinit.call(this),this.series.each(function(e){e.appeared=!1})},i.prototype.handleXAxisChange=function(e){this.updateXAxis(e.target)},i.prototype.handleYAxisChange=function(e){this.updateYAxis(e.target)},i.prototype.processXAxis=function(e){var t=e.newValue;t.chart=this,t.renderer||(t.renderer=new this._axisRendererX,t.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleXAxisChange,this,!1)),t.axisLetter="X",t.events.on("startendchanged",this.handleXAxisRangeChange,this,!1),t.dataProvider=this,this.updateXAxis(t.renderer),this.processAxis(t)},i.prototype.processYAxis=function(e){var t=e.newValue;t.chart=this,t.renderer||(t.renderer=new this._axisRendererY,t.renderer.observe(["opposite","inside","inversed","minGridDistance"],this.handleYAxisChange,this,!1)),t.axisLetter="Y",t.events.on("startendchanged",this.handleYAxisRangeChange,this,!1),t.dataProvider=this,this.updateYAxis(t.renderer),this.processAxis(t)},i.prototype.handleXAxisRangeChange=function(){var e=this.getCommonAxisRange(this.xAxes);this.scrollbarX&&this.zoomAxes(this.xAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarX,e)},i.prototype.toggleZoomOutButton=function(){if(this.zoomOutButton){var e=!1;St(this.xAxes.iterator(),function(t){if(t.toggleZoomOutButton){if(t.maxZoomCount>0){var r=t.maxZoomFactor/t.maxZoomCount;if(I(t.end-t.start,3)<1/r)return e=!0,!1}else if(I(t.start,3)>0||I(t.end,3)<1)return e=!0,!1}return!0}),St(this.yAxes.iterator(),function(t){if(t.toggleZoomOutButton){if(t.maxZoomCount>0){var r=t.maxZoomFactor/t.maxZoomCount;if(I(t.end-t.start,3)<1/r)return e=!0,!1}else if(I(t.start,3)>0||I(t.end,3)<1)return e=!0,!1;return!0}}),this.seriesAppeared||(e=!1),e?this.zoomOutButton.show():this.zoomOutButton.hide()}},i.prototype.seriesAppeared=function(){var e=!1;return V(this.series.iterator(),function(t){if(!t.appeared)return e=!1,!1}),e},i.prototype.handleYAxisRangeChange=function(){var e=this.getCommonAxisRange(this.yAxes);this.scrollbarY&&this.zoomAxes(this.yAxes,e,!0),this.toggleZoomOutButton(),this.updateScrollbar(this.scrollbarY,e)},i.prototype.updateScrollbar=function(e,t){e&&(e.skipRangeEvents(),e.start=t.start,e.end=t.end)},i.prototype.getCommonAxisRange=function(e){var t,r;return e.each(function(s){if(!(!s.zoomable||s instanceof Q&&s.syncWithAxis)){var n=s.start,o=s.end;s.renderer.inversed&&(n=1-s.end,o=1-s.start),(!b(t)||n<t)&&(t=n),(!b(r)||o>r)&&(r=o)}}),{start:t,end:r}},i.prototype.updateXAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.topAxesContainer,t.toFront()):(t.parent=this.bottomAxesContainer,t.toBack()),t.renderer&&t.renderer.processRenderer()},i.prototype.updateYAxis=function(e){var t=e.axis;e.opposite?(t.parent=this.rightAxesContainer,t.toBack()):(t.parent=this.leftAxesContainer,t.toFront()),t.renderer&&t.renderer.processRenderer()},i.prototype.processAxis=function(e){var t=this;e instanceof $e&&this._dataUsers.moveValue(e);var r=e.renderer;r.gridContainer.parent=this.plotContainer,r.gridContainer.toBack(),r.breakContainer.parent=this.plotContainer,r.breakContainer.toFront(),r.breakContainer.zIndex=10,e.addDisposer(new ye(function(){t.dataUsers.removeValue(e)})),r.bulletsContainer.parent=this.axisBulletsContainer,this._disposers.push(e.events.on("positionchanged",function(){var s=At({x:0,y:0},e,t.axisBulletsContainer);e.renderer instanceof _t&&(r.bulletsContainer.y=s.y),e.renderer instanceof dt&&(r.bulletsContainer.x=s.x)},void 0,!1)),this.plotContainer.events.on("maxsizechanged",function(){t.inited&&(e.invalidateDataItems(),t.updateSeriesMasks())},e,!1)},i.prototype.updateSeriesMasks=function(){Sr()&&this.series.each(function(e){var t=e.mainContainer.mask;e.mainContainer.mask=void 0,e.mainContainer.mask=t})},i.prototype.handleSeriesRemoved=function(e){var t=e.oldValue;t&&(t.xAxis&&(t.xAxis.series.removeValue(t),t.xAxis.invalidateProcessedData()),t.yAxis&&(t.yAxis.series.removeValue(t),t.yAxis.invalidateProcessedData()),this.series.each(function(r){r.resetExtremes()})),a.prototype.handleSeriesRemoved.call(this,e)},Object.defineProperty(i.prototype,"xAxes",{get:function(){return this._xAxes||(this._xAxes=new he,this._xAxes.events.on("inserted",this.processXAxis,this,!1),this._xAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new ge(this._xAxes,!1))),this._xAxes},enumerable:!0,configurable:!0}),i.prototype.handleAxisRemoval=function(e){var t=e.oldValue;this.dataUsers.removeValue(t),t.autoDispose&&t.dispose()},Object.defineProperty(i.prototype,"yAxes",{get:function(){return this._yAxes||(this._yAxes=new he,this._yAxes.events.on("inserted",this.processYAxis,this,!1),this._yAxes.events.on("removed",this.handleAxisRemoval,this,!1),this._disposers.push(new ge(this._yAxes,!1))),this._yAxes},enumerable:!0,configurable:!0}),i.prototype.handleSeriesAdded=function(e){try{a.prototype.handleSeriesAdded.call(this,e);var t=e.newValue;(this.xAxes.length==0||this.yAxes.length==0)&&(_.removeFromInvalidComponents(t),t.dataInvalid=!1),t.xAxis,t.yAxis,t.maskBullets=t.maskBullets,t.fill==null&&(this.patterns?($(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),$(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof de&&(t.fill.stroke=t.stroke,t.fill.fill=t.stroke)):t.fill=this.colors.next()),$(t.stroke)||(t.stroke=t.fill)}catch(r){this.raiseCriticalError(r)}},Object.defineProperty(i.prototype,"cursor",{get:function(){return this._cursor},set:function(e){this._cursor!=e&&(this._cursor&&this.removeDispose(this._cursor),this._cursor=e,e&&(this._disposers.push(e),e.chart=this,e.shouldClone=!1,e.parent=this._cursorContainer,e.events.on("cursorpositionchanged",this.handleCursorPositionChange,this,!1),e.events.on("zoomstarted",this.handleCursorZoomStart,this,!1),e.events.on("zoomended",this.handleCursorZoomEnd,this,!1),e.events.on("panstarted",this.handleCursorPanStart,this,!1),e.events.on("panning",this.handleCursorPanning,this,!1),e.events.on("panended",this.handleCursorPanEnd,this,!1),e.events.on("behaviorcanceled",this.handleCursorCanceled,this,!1),e.events.on("hidden",this.handleHideCursor,this,!1),e.zIndex=Number.MAX_SAFE_INTEGER-1,this.tapToActivate&&this.setTapToActivate(this.tapToActivate)))},enumerable:!0,configurable:!0}),i.prototype.handleCursorPositionChange=function(){var e=this.cursor;if(e.visible&&!e.isHiding){var t=this.cursor.xPosition,r=this.cursor.yPosition;this.showSeriesTooltip({x:t,y:r});var s=[],n=e.snapToSeries;if(n&&!e.downPoint){n instanceof Vt&&(n=[n]);var o=[];M(n,function(u){if(!u.isHidden&&!u.isHiding){var h=u.xAxis,p=u.yAxis;h instanceof Q&&!(h instanceof fe)&&p instanceof Q&&!(p instanceof fe)?(u.dataItems.each(function(d){o.push(d)}),ri(s,u.yAxis),ri(s,u.xAxis)):(u.baseAxis==u.xAxis&&(ri(s,u.yAxis),o.push(h.getSeriesDataItem(u,h.toAxisPosition(t),!0))),u.baseAxis==u.yAxis&&(ri(s,u.xAxis),o.push(p.getSeriesDataItem(u,p.toAxisPosition(r),!0))))}});var l=this.getClosest(o,t,r);l&&(this.series.each(function(u){var h=l.component;u!=h&&(u.hideTooltip(),u.xAxis!=h.xAxis&&(u.xAxis.hideTooltip(),s.push(u.xAxis)),u.yAxis!=h.yAxis&&(u.yAxis.hideTooltip(),s.push(u.yAxis)))}),l.component.showTooltipAtDataItem(l),e.handleSnap(l.component))}this._seriesPoints=[],this._cursorXPosition!=t&&this.showAxisTooltip(this.xAxes,t,s),this._cursorYPosition!=r&&this.showAxisTooltip(this.yAxes,r,s),this.arrangeTooltips&&this.sortSeriesTooltips(this._seriesPoints),this.legend&&this.legend.afterDraw()}},i.prototype.getClosest=function(e,t,r){var s=1/0,n;return Ms(e,function(o){if(o){var l=o.component.xAxis,u=o.component.yAxis,h=l.positionToCoordinate(l.toGlobalPosition(l.toAxisPosition(t))),p=u.positionToCoordinate(u.toGlobalPosition(u.toAxisPosition(r))),d=o.component.xField,c=o.component.yField;if(l instanceof Q&&!b(o.getValue(d))||u instanceof Q&&!b(o.getValue(c)))return!0;var f=l.positionToCoordinate(l.toGlobalPosition(l.getPositionX(o,d,o.locations[d],"valueX"))),y=u.positionToCoordinate(u.toGlobalPosition(u.getPositionY(o,c,o.locations[c],"valueY"))),g=Math.sqrt(Math.pow(h-f,2)+Math.pow(p-y,2));return g<s&&(s=g,n=o),!0}}),n},i.prototype.handleHideCursor=function(){this.hideObjectTooltip(this.xAxes),this.hideObjectTooltip(this.yAxes),this.hideObjectTooltip(this.series),this._cursorXPosition=void 0,this._cursorYPosition=void 0,this.updateSeriesLegend()},i.prototype.updateSeriesLegend=function(){V(this.series.iterator(),function(e){e.updateLegendValue()})},i.prototype.hideObjectTooltip=function(e){V(e.iterator(),function(t){t.cursorTooltipEnabled&&t.hideTooltip(0)})},i.prototype.showSeriesTooltip=function(e){var t=this;if(!e){this.series.each(function(s){s.hideTooltip()});return}var r=[];this.series.each(function(s){if(!(s.xAxis instanceof fe&&s.xAxis.snapTooltip||s.yAxis instanceof fe&&s.yAxis.snapTooltip)){var n=s.showTooltipAtPosition(e.x,e.y);n&&(s.tooltip.setBounds(Ga({x:0,y:0,width:t.pixelWidth,height:t.pixelHeight},t)),r.push({series:s,point:n}))}}),this.arrangeTooltips&&this.sortSeriesTooltips(r)},i.prototype.sortSeriesTooltips=function(e){if(e.length>0){var t=this.cursor;if(t&&b(t.maxTooltipDistance)){var r=Jt({x:t.point.x,y:t.point.y},t),s,n,o=1/0;M(e,function(E){var j=E.series,ce=E.point;if(ce){var be={x:ce.x,y:ce.y},ke=Math.abs(xe(be,r));ke<o&&(n=be,o=ke,s=j)}});var l=[];s&&(M(e,function(E){if(Math.abs(xe(E.point,n))<=Math.abs(t.maxTooltipDistance))l.push({series:E.series,point:E.point});else{var j=E.series.tooltipDataItem;j&&M(j.sprites,function(ce){ce.isHover=!1,ce.handleOutReal()}),E.series.hideTooltip(0)}}),t.maxTooltipDistance<0&&(l.length>0&&M(l,function(E){s!=E.series&&E.series.hideTooltip(0)}),l=[{series:s,point:n}])),e=l}var u=Jt({x:-.5,y:-.5},this.plotContainer),h=Jt({x:this.plotContainer.pixelWidth+.5,y:this.plotContainer.pixelHeight+.5},this.plotContainer),p=0,d=[];M(e,function(E){var j=E.point;j&&ml(j,{x:u.x,y:u.y,width:h.x-u.x,height:h.y-u.y})&&(d.push({point:j,series:E.series}),p+=j.y)}),e=d;var c=this.series.getIndex(0),f=!1;c&&c.yAxis&&c.yAxis.renderer.inversed&&(f=!0),f?e.sort(function(E,j){return fi(E.point.y,j.point.y)}):(e.sort(function(E,j){return fi(j.point.y,E.point.y)}),e.reverse());var y=p/e.length,g=Fl({x:0,y:0},this.svgContainer.SVGContainer).y;if(e.length>0){var v=u.y,x=h.y;Qs({x:0,y:v},this);var P=!1;if(y>v+(x-v)/2)for(var T=x,C=e.length-1;C>=0;C--){var O=e[C].series,w=O.tooltip,D=e[C].point.y;if(w.setBounds({x:0,y:-g,width:this.pixelWidth,height:T+g}),w.invalid&&w.validate(),w.toBack(),T=Jt({x:0,y:w.label.pixelY-w.pixelY+D-w.pixelMarginTop},w).y,T<-g){P=!0;break}}if(y<=v+(x-v)/2||P)for(var A=v,C=0,H=e.length;C<H;C++){var O=e[C].series,D=e[C].point.y,w=O.tooltip;w.setBounds({x:0,y:A,width:this.pixelWidth,height:x}),w.invalid&&w.validate(),w.toBack(),A=Jt({x:0,y:w.label.pixelY+w.label.measuredHeight-w.pixelY+D+w.pixelMarginBottom},w).y}}}},i.prototype.showAxisTooltip=function(e,t,r){var s=this;V(e.iterator(),function(n){(!r||r.indexOf(n)==-1)&&(s.dataItems.length>0||n.dataItems.length>0)&&n.showTooltipAtPosition(t)})},i.prototype.getUpdatedRange=function(e,t){if(e){var r,s,n=e.renderer.inversed;n?(Is(t),r=1-e.end,s=1-e.start):(r=e.start,s=e.end);var o=s-r;return{start:r+t.start*o,end:r+t.end*o}}},i.prototype.handleCursorZoomEnd=function(e){var t=this.cursor,r=t.behavior;if(r=="zoomX"||r=="zoomXY"){var s=t.xRange;s&&this.xAxes.length>0&&(s=this.getUpdatedRange(this.xAxes.getIndex(0),s),s.priority="start",this.zoomAxes(this.xAxes,s))}if(r=="zoomY"||r=="zoomXY"){var n=t.yRange;n&&this.yAxes.length>0&&(n=this.getUpdatedRange(this.yAxes.getIndex(0),n),n.priority="start",this.zoomAxes(this.yAxes,n))}this.handleHideCursor()},i.prototype.handleCursorPanStart=function(e){var t=this.xAxes.getIndex(0);t&&(this._panStartXRange={start:t.start,end:t.end},t.renderer.inversed&&(this._panStartXRange=Is(this._panStartXRange)));var r=this.yAxes.getIndex(0);r&&(this._panStartYRange={start:r.start,end:r.end},r.renderer.inversed&&(this._panStartYRange=Is(this._panStartYRange)))},i.prototype.handleCursorPanEnd=function(e){var t=this.cursor,r=t.behavior;if(this._panEndXRange&&(r=="panX"||r=="panXY")){var s=this._panEndXRange,n=this._panStartXRange,o=0;s.start<0&&(o=s.start),n.end>1?s.end>n.end&&(o=s.end-n.end):s.end>1&&(o=s.end-1),this.zoomAxes(this.xAxes,{start:s.start-o,end:s.end-o},!1,t.snapOnPan),this._panEndXRange=void 0,this._panStartXRange=void 0}if(this._panEndYRange&&(r=="panY"||r=="panXY")){var s=this._panEndYRange,o=0;s.start<0&&(o=s.start),s.end>1&&(o=s.end-1),this.zoomAxes(this.yAxes,{start:s.start-o,end:s.end-o},!1,t.snapOnPan),this._panEndYRange=void 0,this._panStartYRange=void 0}},i.prototype.handleCursorCanceled=function(){this._panEndXRange=void 0,this._panStartXRange=void 0},i.prototype.handleCursorPanning=function(e){var t=this.cursor,r=t.behavior,s=t.maxPanOut;if(this._panStartXRange&&(r=="panX"||r=="panXY")){var n=this._panStartXRange,o=t.xRange,l=this.getCommonAxisRange(this.xAxes),u=n.end-n.start,h=o.start*(l.end-l.start),p=Math.max(-s,h+n.start),d=Math.min(h+n.end,1+s);p<=0&&(d=p+u),d>=1&&(p=d-u);var c={start:p,end:d};this._panEndXRange=c,this.zoomAxes(this.xAxes,c,!1,!1,t.maxPanOut)}if(this._panStartYRange&&(r=="panY"||r=="panXY")){var n=this._panStartYRange,o=t.yRange,l=this.getCommonAxisRange(this.yAxes),u=n.end-n.start,h=o.start*(l.end-l.start),p=Math.max(-s,h+n.start),d=Math.min(h+n.end,1+s);p<=0&&(d=p+u),d>=1&&(p=d-u);var c={start:p,end:d};this._panEndYRange=c,this.zoomAxes(this.yAxes,c,!1,!1,t.maxPanOut)}this.handleHideCursor()},i.prototype.handleYAxisSet=function(e){},i.prototype.handleCursorZoomStart=function(e){},Object.defineProperty(i.prototype,"scrollbarX",{get:function(){return this._scrollbarX},set:function(e){var t=this;this._scrollbarX&&this.removeDispose(this._scrollbarX),this._scrollbarX=e,e&&(this._disposers.push(e),e.parent=this.topAxesContainer,e.shouldClone=!1,e.startGrip.exportable=!1,e.endGrip.exportable=!1,e.toBack(),e.orientation="horizontal",e.events.on("rangechanged",this.handleXScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(r){var s=t.xAxes.getIndex(0);return s&&(r.value=s.getPositionLabel(s.renderer.inversed?1-r.position:r.position)),r}),e.adapter.add("positionValueDirection",function(r){var s=t.xAxes.getIndex(0);return s&&(r.flipped=s.renderer.inversed),r}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"scrollbarY",{get:function(){return this._scrollbarY},set:function(e){var t=this;this._scrollbarY&&this.removeDispose(this._scrollbarY),this._scrollbarY=e,e&&(this._disposers.push(e),e.parent=this.rightAxesContainer,e.startGrip.exportable=!1,e.shouldClone=!1,e.endGrip.exportable=!1,e.toFront(),e.orientation="vertical",e.events.on("rangechanged",this.handleYScrollbarChange,this,!1),this.events.on("datavalidated",function(){return e.updateThumb(!1)},this,!1),e.adapter.add("positionValue",function(r){var s=t.yAxes.getIndex(0);return s&&(r.value=s.getPositionLabel(s.renderer.inversed?r.position:1-r.position)),r}),e.adapter.add("positionValueDirection",function(r){var s=t.yAxes.getIndex(0);return s&&(r.flipped=!s.renderer.inversed),r}))},enumerable:!0,configurable:!0}),i.prototype.handleXScrollbarChange=function(e){if(this.inited){var t=e.target,r=t.range;r.start==0&&(r.priority="start"),r.end==1&&(r.priority="end"),r=this.zoomAxes(this.xAxes,r),t.fixRange(r)}},i.prototype.handleYScrollbarChange=function(e){if(this.inited){var t=e.target,r=t.range;r.end==1&&(r.priority="end"),r.start==0&&(r.priority="start"),r=this.zoomAxes(this.yAxes,r),t.fixRange(r)}},i.prototype.zoomAxes=function(e,t,r,s,n,o){var l={start:0,end:1};this.showSeriesTooltip();var u=t;return this.dataInvalid||V(e.iterator(),function(h){var p=h.maxZoomFactor;if(b(h.minZoomCount)&&(p=p/h.minZoomCount),!(o&&1/(t.end-t.start)>=p)){if(h.zoomable){if(h.renderer.inversed?t=Is(u):t=u,h.hideTooltip(0),s)if(h instanceof $e){var d=h.getCellEndPosition(0)-h.getCellStartPosition(0);t.start=h.roundPosition(t.start+d/2-h.startLocation*d,h.startLocation),t.end=h.roundPosition(t.end-d/2+(1-h.endLocation)*d,h.endLocation)}else{var c=1e-4;t.start=h.roundPosition(t.start+c,0,h.startLocation),t.end=h.roundPosition(t.end+c,0,h.endLocation)}var f=h.zoom(t,r,r,n);h.renderer.inversed&&(f=Is(f)),l=f}}}),l},Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)&&this.bulletsContainer&&(e?this.bulletsContainer.mask=this._bulletMask:this.bulletsContainer.mask=void 0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arrangeTooltips",{get:function(){return this.getPropertyValue("arrangeTooltips")},set:function(e){this.setPropertyValue("arrangeTooltips",e,!0)},enumerable:!0,configurable:!0}),i.prototype.handleWheel=function(e){var t=this.plotContainer,r=er(e.point,this.htmlContainer,this.svgContainer.cssScale),s=Bt(r,t),n=e.shift.y;this.handleWheelReal(n,this.mouseWheelBehavior,s)},i.prototype.handleHorizontalWheel=function(e){var t=this.plotContainer,r=er(e.point,this.htmlContainer,this.svgContainer.cssScale),s=Bt(r,t);this.handleWheelReal(e.shift.x,this.horizontalMouseWheelBehavior,s)},i.prototype.handleWheelReal=function(e,t,r){if(e!=0){var s=this.plotContainer,n=this.getCommonAxisRange(this.xAxes),o=this.getCommonAxisRange(this.yAxes),l=.1,u=0;if(t=="panX"||t=="panXY"){var h=this.xAxes.getIndex(0),p=!1,d=l;h instanceof $e&&(d=.5/((n.end-n.start)*h.dataItems.length),p=!0),l=Math.max(.2,d);var c=n.end-n.start,f=Math.max(-u,n.start+l*e/100*(n.end-n.start)),y=Math.min(n.end+l*e/100*(n.end-n.start),1+u);f<=0&&(y=f+c),y>=1&&(f=y-c),this.zoomAxes(this.xAxes,{start:f,end:y},void 0,p)}if(t=="panY"||t=="panXY"){var g=this.yAxes.getIndex(0),d=l,p=!1;g instanceof $e&&(d=.5/((n.end-n.start)*g.dataItems.length),p=!0),l=Math.max(.2,d),e*=-1;var v=o.end-o.start,x=Math.max(-u,o.start+l*e/100*(o.end-o.start)),P=Math.min(o.end+l*e/100*(o.end-o.start),1+u);x<=0&&(P=x+v),P>=1&&(x=P-v),this.zoomAxes(this.yAxes,{start:x,end:P},void 0,p)}if(t=="zoomX"||t=="zoomXY"){var T=r.x/s.maxWidth,C=this.xAxes.getIndex(0).toAxisPosition(T),f=Math.max(-u,n.start-l*(n.end-n.start)*e/100*T);f=Math.min(f,C);var y=Math.min(n.end+l*(n.end-n.start)*e/100*(1-T),1+u);y=Math.max(y,C),this.zoomAxes(this.xAxes,{start:f,end:y},void 0)}if(t=="zoomY"||t=="zoomXY"){var O=r.y/s.maxHeight,w=this.yAxes.getIndex(0).toAxisPosition(O),x=Math.max(-u,o.start-l*(o.end-o.start)*e/100*(1-O));x=Math.min(x,w);var P=Math.min(o.end+l*e/100*O*(o.end-o.start),1+u);P=Math.max(P,w),this.zoomAxes(this.yAxes,{start:x,end:P},void 0)}}},Object.defineProperty(i.prototype,"mouseWheelBehavior",{get:function(){return this.getPropertyValue("mouseWheelBehavior")},set:function(e){this.setPropertyValue("mouseWheelBehavior",e)&&(e!="none"?(this._mouseWheelDisposer=this.plotContainer.events.on("wheel",this.handleWheel,this,!1),this._disposers.push(this._mouseWheelDisposer)):this._mouseWheelDisposer&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer.dispose()))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalMouseWheelBehavior",{get:function(){return this.getPropertyValue("horizontalMouseWheelBehavior")},set:function(e){this.setPropertyValue("horizontalMouseWheelBehavior",e)&&(e!="none"?(this._mouseWheelDisposer2=this.plotContainer.events.on("wheel",this.handleHorizontalWheel,this,!1),this._disposers.push(this._mouseWheelDisposer2)):this._mouseWheelDisposer2&&(this.plotContainer.wheelable=!1,this.plotContainer.hoverable=!1,this._mouseWheelDisposer2.dispose()))},enumerable:!0,configurable:!0}),i.prototype.dataSourceDateFields=function(e){var t=this;return e=a.prototype.dataSourceDateFields.call(this,e),V(this.series.iterator(),function(r){e=t.populateDataSourceFields(e,r.dataFields,["dateX","dateY","openDateX","openDateY"])}),e},i.prototype.dataSourceNumberFields=function(e){var t=this;return e=a.prototype.dataSourceDateFields.call(this,e),V(this.series.iterator(),function(r){e=t.populateDataSourceFields(e,r.dataFields,["valueX","valueY","openValueX","openValueY"])}),e},i.prototype.processConfig=function(e){if(e){var t=[],r=[];if($(e.xAxes)&&je(e.xAxes))for(var s=0,n=e.xAxes.length;s<n;s++)if(e.xAxes[s].type){if($(e.xAxes[s].axisRanges)){for(var o=0,l=e.xAxes[s].axisRanges.length;o<l;o++){var u=e.xAxes[s].axisRanges[o];$(u.date)&&se(u.date)&&(u.date=this.dateFormatter.parse(u.date)),$(u.endDate)&&se(u.endDate)&&(u.endDate=this.dateFormatter.parse(u.endDate))}t.push({axisRanges:e.xAxes[s].axisRanges,index:s}),delete e.xAxes[s].axisRanges}}else throw Error("[XYChart error] No type set for xAxes["+s+"].");if($(e.yAxes)&&je(e.yAxes))for(var s=0,n=e.yAxes.length;s<n;s++)if(e.yAxes[s].type){if($(e.yAxes[s].axisRanges)){for(var o=0,h=e.yAxes[s].axisRanges.length;o<h;o++){var u=e.yAxes[s].axisRanges[o];$(u.date)&&se(u.date)&&(u.date=this.dateFormatter.parse(u.date)),$(u.endDate)&&se(u.endDate)&&(u.endDate=this.dateFormatter.parse(u.endDate))}r.push({axisRanges:e.yAxes[s].axisRanges,index:s}),delete e.yAxes[s].axisRanges}}else throw Error("[XYChart error] No type set for yAxes["+s+"].");if($(e.series)&&je(e.series))for(var s=0,n=e.series.length;s<n;s++)e.series[s].type=e.series[s].type||"LineSeries";if($(e.cursor)&&!$(e.cursor.type)&&(e.cursor.type="XYCursor"),$(e.scrollbarX)&&!$(e.scrollbarX.type)&&(e.scrollbarX.type="Scrollbar"),$(e.scrollbarY)&&!$(e.scrollbarY.type)&&(e.scrollbarY.type="Scrollbar"),a.prototype.processConfig.call(this,e),r.length)for(var s=0,n=r.length;s<n;s++)this.yAxes.getIndex(r[s].index).config={axisRanges:r[s].axisRanges};if(t.length)for(var s=0,n=t.length;s<n;s++)this.xAxes.getIndex(t[s].index).config={axisRanges:t[s].axisRanges}}},i.prototype.configOrder=function(e,t){return e==t?0:e=="scrollbarX"?1:t=="scrollbarX"?-1:e=="scrollbarY"?1:t=="scrollbarY"?-1:e=="cursor"?1:t=="cursor"?-1:e=="series"?1:t=="series"?-1:a.prototype.configOrder.call(this,e,t)},i.prototype.createSeries=function(){return new Vt},Object.defineProperty(i.prototype,"zoomOutButton",{get:function(){return this._zoomOutButton},set:function(e){var t=this;this._zoomOutButton=e,e&&e.events.on("hit",function(){t.zoomAxes(t.xAxes,{start:0,end:1}),t.zoomAxes(t.yAxes,{start:0,end:1})},void 0,!1)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){var t=this;e.xAxes.each(function(r){var s=t.xAxes.push(r.clone());s.chart=t,s.renderer.chart=t}),e.yAxes.each(function(r){var s=t.yAxes.push(r.clone());s.renderer.chart=t,s.chart=t}),a.prototype.copyFrom.call(this,e),e.cursor&&(this.cursor=e.cursor.clone()),e.scrollbarX&&(this.scrollbarX=e.scrollbarX.clone()),e.scrollbarY&&(this.scrollbarY=e.scrollbarY.clone())},i.prototype.disposeData=function(){a.prototype.disposeData.call(this);var e=this.scrollbarX;e&&e instanceof Kr&&e.scrollbarChart.disposeData();var t=this.scrollbarY;t&&t instanceof Kr&&t.scrollbarChart.disposeData(),this.xAxes.each(function(r){r instanceof $e&&r.disposeData()}),this.yAxes.each(function(r){r instanceof $e&&r.disposeData()})},i.prototype.addData=function(e,t){this.scrollbarX instanceof Kr&&this.addScrollbarData(this.scrollbarX,t),this.scrollbarY instanceof Kr&&this.addScrollbarData(this.scrollbarY,t),a.prototype.addData.call(this,e,t)},i.prototype.addScrollbarData=function(e,t){var r=e.scrollbarChart;r._parseDataFrom=r.data.length,r.invalidateData()},i.prototype.removeScrollbarData=function(e,t){var r=e.scrollbarChart;if(b(t)){for(;t>0;){var s=this.dataItems.getIndex(0);s&&r.dataItems.remove(s),r.dataUsers.each(function(n){var o=n.dataItems.getIndex(0);o&&n.dataItems.remove(o)}),r._parseDataFrom--,t--}r.invalidateData()}},i.prototype.removeData=function(e){this.scrollbarX instanceof Kr&&this.removeScrollbarData(this.scrollbarX,e),this.scrollbarY instanceof Kr&&this.removeScrollbarData(this.scrollbarY,e),a.prototype.removeData.call(this,e)},i.prototype.setTapToActivate=function(e){a.prototype.setTapToActivate.call(this,e),this.cursor&&(this.cursor.interactions.isTouchProtected=e,this.plotContainer.interactions.isTouchProtected=e)},i.prototype.handleTapToActivate=function(){a.prototype.handleTapToActivate.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!1,this.plotContainer.interactions.isTouchProtected=!1)},i.prototype.handleTapToActivateDeactivation=function(){a.prototype.handleTapToActivateDeactivation.call(this),this.cursor&&(this.cursor.interactions.isTouchProtected=!0,this.plotContainer.interactions.isTouchProtected=!0)},i})(Ur);_.registeredClasses.XYChart=qe;tt.push({relevant:lt.maybeXS,state:function(a,i){if(a instanceof qe&&a.scrollbarX){var e=a.states.create(i),t=a.scrollbarX.states.create(i);return t.properties.disabled=!0,e}return null}});tt.push({relevant:lt.maybeXS,state:function(a,i){if(a instanceof qe&&a.scrollbarY){var e=a.states.create(i),t=a.scrollbarY.states.create(i);return t.properties.disabled=!0,e}return null}});var hn=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="LineSeriesSegment",e.isMeasured=!1,e.interactionsEnabled=!1,e.layout="none";var t=e.createChild(U);e.fillSprite=t,t.shouldClone=!1,t.setElement(e.paper.add("path")),t.isMeasured=!1,e._disposers.push(t);var r=e.createChild(U);return e.strokeSprite=r,r.shouldClone=!1,r.fill=Z(),r.setElement(e.paper.add("path")),r.isMeasured=!1,e._disposers.push(r),e}return i.prototype.drawSegment=function(e,t,r,s){if(!this.disabled)if(e.length>0&&t.length>0&&b(e[0].x)&&b(e[0].y)){var n=R({x:e[0].x-.2,y:e[0].y-.2})+R(e[0]),o=this.series;o.smoothing=="bezier"?n+=new Mi(r,s).smooth(e):o.smoothing=="monotoneX"?n+=new Dp({closed:!1}).smooth(e):o.smoothing=="monotoneY"&&(n+=new Ap({closed:!1}).smooth(e)),this.strokeOpacity==0||this.strokeSprite.strokeOpacity==0||(this.strokeSprite.path=n),(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&b(t[0].x)&&b(t[0].y)&&(n+=F(t[0]),o.smoothing=="bezier"?n+=new Mi(r,s).smooth(t):o.smoothing=="monotoneX"?n+=new Dp({closed:!1}).smooth(t):o.smoothing=="monotoneY"&&(n+=new Ap({closed:!1}).smooth(t)),n+=F(e[0]),n+=Ee(),this.fillSprite.path=n)}else this.fillSprite.path="",this.strokeSprite.path=""},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e);var t=this.strokeSprite;Ke(e,t.properties,He),t.events.copyFrom(e.strokeSprite.events),t.fillOpacity=0;var r=this.fillSprite;Ke(e,r.properties,He),r.events.copyFrom(e.fillSprite.events),r.strokeOpacity=0},i})(Y);_.registeredClasses.LineSeriesSegment=hn;var nm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="DurationAxisDataItem",e.applyTheme(),e}return i})(or);var mo=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._baseUnit="second",e.className="DurationAxis",e.setPropertyValue("maxZoomFactor",1e6),e.applyTheme(),e}return i.prototype.formatLabel=function(e,t){return this.durationFormatter.format(e,t||this.axisDurationFormat)},i.prototype.adjustMinMax=function(e,t,r,s,n){var o,l,u,h=this.baseUnit;if(this.setPropertyValue("maxPrecision",0),h=="millisecond"||h=="second"||h=="minute"||h=="hour"){s<=1&&(s=1),s=Math.round(s);var p=e,d=t;r===0&&(r=Math.abs(t));var c=r/s,f=[60,30,20,15,10,2,1],y=1;h=="hour"&&(f=[24,12,6,4,2,1]);try{for(var g=Ra(f),v=g.next();!v.done;v=g.next()){var x=v.value;if(r/x>s){y=x;break}}}catch(D){o={error:D}}finally{try{v&&!v.done&&(l=g.return)&&l.call(g)}finally{if(o)throw o.error}}var P=Math.ceil((t-e)/y/s),T=Math.log(Math.abs(P))*Math.LOG10E,C=Math.pow(10,Math.floor(T))/10,O=P/C,w=Zc(f,O);P=w*C,c=y*P,this.durationFormatter.getValueUnit(c,this.baseUnit),e=Math.floor(e/c)*c,t=Math.ceil(t/c)*c,n&&(e-=c,e<0&&p>=0&&(e=0),t+=c,t>0&&d<=0&&(t=0)),u={min:e,max:t,step:c}}else u=a.prototype.adjustMinMax.call(this,e,t,r,s,n);return this.axisDurationFormat=this.durationFormatter.getFormat(u.step,u.max,this.baseUnit),u},Object.defineProperty(i.prototype,"tooltipDurationFormat",{get:function(){return this._tooltipDurationFormat},set:function(e){this._tooltipDurationFormat=e},enumerable:!0,configurable:!0}),i.prototype.getTooltipText=function(e){var t=I(this.positionToValue(e),this._stepDecimalPlaces),r=this.formatLabel(t,this.tooltipDurationFormat);return this._adapterO?this._adapterO.apply("getTooltipText",r):r},Object.defineProperty(i.prototype,"baseUnit",{get:function(){return this._baseUnit},set:function(e){this._baseUnit!=e&&(this._baseUnit=e,this.durationFormatter.baseUnit=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.baseUnit=e.baseUnit},i})(Q);_.registeredClasses.DurationAxis=mo;_.registeredClasses.DurationAxisDataItem=nm;var Ni=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="LineSeriesDataItem",e}return i})(rs);var et=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.minDistance=.5,e.segments=new Te(e.createSegment()),e.segments.template.applyOnClones=!0,e._disposers.push(new ge(e.segments)),e._disposers.push(e.segments.template),e._segmentsIterator=new Ea(e.segments,function(){return e.segments.create()}),e._segmentsIterator.createNewItems=!0,e.className="LineSeries",e.strokeOpacity=1,e.fillOpacity=0,e.connect=!0,e.tensionX=1,e.tensionY=1,e.autoGapCount=1.1,e.smoothing="bezier",e.segmentsContainer=e.mainContainer.createChild(Y),e.segmentsContainer.isMeasured=!1,e.bulletsContainer.toFront(),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Line Series"))},i.prototype.createSegment=function(){return new hn},i.prototype.createDataItem=function(){return new Ni},i.prototype.setInitialWorkingValues=function(e){var t=this._yAxis.get(),r=this._xAxis.get();if(this.appeared&&this.visible){var s=this.dataItems.getIndex(e.index-1);if(e.component=this,this.baseAxis==r&&t instanceof Q){var n=t.minZoomed;if(s&&(n=s.values.valueY.workingValue),e.setWorkingValue("valueY",n,0),e.setWorkingValue("valueY",e.values.valueY.value),r instanceof fe)e.setWorkingLocation("dateX",e.locations.dateX-1,0),e.setWorkingLocation("dateX",e.locations.dateX);else if(r instanceof mo&&s){var o=e.valueX;e.setWorkingValue("valueX",s.valueX,0),e.setWorkingValue("valueX",o)}}if(this.baseAxis==t&&r instanceof Q){var l=r.minZoomed;if(s&&(l=s.values.valueX.workingValue),e.setWorkingValue("valueX",l,0),e.setWorkingValue("valueX",e.values.valueX.value),t instanceof fe)e.setWorkingLocation("dateY",e.locations.dateX-1,0),e.setWorkingLocation("dateY",e.locations.dateY);else if(t instanceof mo&&s){var o=e.valueY;e.setWorkingValue("valueY",s.valueY,0),e.setWorkingValue("valueY",o)}}}else this.baseAxis==r&&t instanceof Q&&(r instanceof fe&&e.setWorkingLocation("dateX",e.locations.dateX),r instanceof $e&&e.setWorkingLocation("categoryX",e.locations.categoryX)),this.baseAxis==t&&r instanceof Q&&(t instanceof fe&&e.setWorkingLocation("dateY",e.locations.dateY),t instanceof $e&&e.setWorkingLocation("categoryY",e.locations.categoryY))},i.prototype.updateLegendValue=function(e,t){a.prototype.updateLegendValue.call(this,e,t),e&&e.segment&&(this.tooltipColorSource=e.segment)},i.prototype.validate=function(){var e=this;a.prototype.validate.call(this),this.xAxis&&this.yAxis&&(this._segmentsIterator.reset(),this.openSegmentWrapper(this._adjustedStartIndex),V(this.axisRanges.iterator(),function(t){e.openSegmentWrapper(e._adjustedStartIndex,t)}),V(this._segmentsIterator.iterator(),function(t){t.__disabled=!0}))},i.prototype.sliceData=function(){for(var e=this.startIndex,t=this.endIndex,r=this.startIndex-1;r>=0;r--){var s=this.dataItems.getIndex(r);if(s&&s.hasValue(this._xValueFields)&&s.hasValue(this._yValueFields)){e=r;break}}this._adjustedStartIndex=this.findAdjustedIndex(e,["stroke","strokeWidth","strokeDasharray","strokeOpacity","fill","fillOpacity","opacity"]);for(var r=this.endIndex,n=this.dataItems.length;r<n;r++){var s=this.dataItems.getIndex(r);if(s&&s.hasValue(this._xValueFields)&&s.hasValue(this._yValueFields)){t=r+1;break}}this._workingStartIndex=e,this._workingEndIndex=t},i.prototype.findAdjustedIndex=function(e,t){var r=this,s=this.propertyFields,n=e;return M(t,function(o){if($(s[o]))for(var l=n;l>=0;l--){var u=r.dataItems.getIndex(l);if(u&&$(u.properties[o])){e>l&&(e=l);break}}}),e},i.prototype.openSegmentWrapper=function(e,t){var r={index:e,axisRange:t};do r=this.openSegment(r.index,r.axisRange);while(r)},i.prototype.getSegment=function(){var e=this._segmentsIterator.getFirst();return e.series=this,e.isDisposed()?(this.segments.removeValue(e),this.getSegment()):e},i.prototype.openSegment=function(e,t){var r=!1,s=[];e=Math.min(e,this.dataItems.length);var n=Math.min(this._workingEndIndex,this.dataItems.length);this._workingEndIndex=Math.min(this._workingEndIndex,this.dataItems.length);var o,l=!1,u=this.getSegment();u.strokeDasharray=void 0,u.__disabled=!1,t?(u.parent=t.contents,Ke(t.contents,u,He)):(Ke(this,u,He),u.filters.clear(),u.parent=this.segmentsContainer),this.group.node.removeAttribute("fill");for(var h=this.connect,p=!1,d=e;d<n;d++){var c=this.dataItems.getIndex(d);if(c.segment=u,c.hasProperties&&(d==e?this.updateSegmentProperties(c.properties,u):l=this.updateSegmentProperties(c.properties,u,!0)),c.hasValue(this._xValueFields)&&c.hasValue(this._yValueFields))this.addPoints(s,c,this.xField,this.yField),p=!0;else{if(d==e)continue;if(!h&&p){o=d;break}}if(o=d,this.baseAxis instanceof fe){var f=this.dataItems.getIndex(d+1);if(f&&this.baseAxis.makeGap(f,c)){r=!0;break}}if(l)break}return this.closeSegment(u,s,e,o,t,r)},i.prototype.addPoints=function(e,t,r,s,n){var o=this.getPoint(t,r,s,t.workingLocations[r],t.workingLocations[s]);n||(t.point=o),e.push(o)},i.prototype.closeSegment=function(e,t,r,s,n,o){var l=[];if(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)for(var u=s;u>=r;u--){var h=this.dataItems.getIndex(u);h.hasValue(this._xValueFields)&&h.hasValue(this._yValueFields)&&this.addPoints(l,h,this.xOpenField,this.yOpenField,!0)}else{var p=this.baseAxis,d=t.length,c=this.xAxis,f=this.yAxis;d>0&&(p==c?(l.push({x:t[d-1].x,y:f.basePoint.y}),l.push({x:t[0].x,y:f.basePoint.y})):(l.push({x:c.basePoint.x,y:t[d-1].y}),l.push({x:c.basePoint.x,y:t[0].y})))}return this.drawSegment(e,t,l),o&&s++,s<this._workingEndIndex-1?{index:s,axisRange:n}:null},i.prototype.drawSegment=function(e,t,r){e.drawSegment(t,r,this.tensionX,this.tensionY)},i.prototype.updateSegmentProperties=function(e,t,r){var s=!1;return q(e,function(n,o){if($(o)){var l=t[n],u=void 0;l&&(l.toString?u=l.toString():u=l);var h=void 0;o&&(o.toString?h=o.toString():h=o),l==o||u!=null&&h!=null&&u==h||(r||(t[n]=o),s=!0)}}),s},Object.defineProperty(i.prototype,"connect",{get:function(){return this.getPropertyValue("connect")},set:function(e){this.setPropertyValue("connect",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(e){this.setPropertyValue("tensionX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(e){this.setPropertyValue("tensionY",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){var t=this,r=e.pixelWidth,s=e.pixelHeight;e.disposeChildren();var n=e.createChild(Kt);if(n.shouldClone=!1,Ke(this,n,He),n.x2=r,n.y=s/2,n.y2=1e-5,n.visible=!0,this.fillOpacity>0){var o=e.createChild(ca);Ke(this,o,He),o.width=r,o.height=s,o.y=0,o.strokeOpacity=0,o.visible=!0,n.y=0}var l=e.dataItem;l.color=this.stroke,l.colorOrig=this.fill,St(this.bullets.iterator(),function(u){if(u instanceof qt&&!u.copyToLegendMarker)return!1;var h=!1;if(u instanceof Y&&V(u.children.iterator(),function(d){if(d instanceof Je)return h=!0,!0}),!h){var p=u.clone();return p.parent=e,p.isMeasured=!0,p.tooltipText=void 0,p.x=r/2,t.fillOpacity>0?p.y=0:p.y=s/2,p.visible=!0,$(p.fill)||(p.fill=t.fill),$(p.stroke)||(p.stroke=t.stroke),!1}})},i.prototype.disposeData=function(){a.prototype.disposeData.call(this),this.segments.clear()},Object.defineProperty(i.prototype,"autoGapCount",{get:function(){return this.getPropertyValue("autoGapCount")},set:function(e){this.setPropertyValue("autoGapCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"smoothing",{get:function(){return this.getPropertyValue("smoothing")},set:function(e){this.setPropertyValue("smoothing",e,!0)},enumerable:!0,configurable:!0}),i})(Vt);_.registeredClasses.LineSeries=et;_.registeredClasses.LineSeriesDataItem=Ni;var ur=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.fdx=0,e.fdy=0,e.className="AxisLabelCircular",e.padding(0,0,0,0),e.location=.5,e.locationOnPath=.5,e.radius=0,e.isMeasured=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"relativeRotation",{get:function(){return this.getPropertyValue("relativeRotation")},set:function(e){if(this.setPropertyValue("relativeRotation",e,!0),!$(e)){this.rotation=void 0;var t=this.dataItem;t&&t.component&&t.component.invalidateDataItems()}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bent",{get:function(){return this.getPropertyValue("bent")},set:function(e){this.setPropertyValue("bent",e,!0),this.setPropertyValue("wrap",!1),this.setPropertyValue("horizontalCenter","none"),this.setPropertyValue("verticalCenter","none"),e?(this.setPropertyValue("dx",0),this.setPropertyValue("dy",0),this.setPropertyValue("x",0),this.setPropertyValue("y",0),this.setPropertyValue("rotation",0),this.fdx=0,this.fdy=0,this.textAlign="middle"):this.textPathElement&&(this.textPathElement.dispose(),this.textPathElement=void 0)},enumerable:!0,configurable:!0}),i.prototype.pixelRadius=function(e){var t=1;return this.inside&&(t=-1),Ie(this.radius,e)*t},i.prototype.pixelRadiusY=function(e,t){var r=1;this.inside&&(r=-1);var s=this.radius;return b(s)?(s*=t/e,Ie(s,e)*r):Ie(s,t)*r},i.prototype.fixPosition=function(e,t,r,s,n){b(r)||(r=t),b(s)||(s=0),b(n)||(n=0);var o={x:t*B(e),y:r*N(e)};this.invalid&&this.validate();var l=!1,u=this.radius;(u instanceof ae&&u.value<0||u<0)&&(l=!0);var h=this.relativeRotation,p=this.pixelRadius(t);if(this.bent){var d={x:(t+p)*B(e+180),y:(r+p*r/t)*N(e+180)};this.path=R(d)+pt(e+180,360,t+p,r+p*r/t),this.textPathElement&&this.textPathElement.attr({startOffset:this.locationOnPath*100+"%"});return}if(b(h)){this.horizontalCenter="none",this.verticalCenter="none",e=Li(e,-180,180);var c=this.bbox.width,f=this.bbox.height,y=this.pixelPaddingBottom,g=this.pixelPaddingTop,v=this.pixelPaddingLeft,x=this.pixelPaddingRight;e>90||e<-90?h==-90&&(h=90,c=0):(h==-90&&(f=-f),h==90&&(h=-90,c=-v-x,f=-f-g-y)),this.rotation=h+e+90;var P=N(h)/2,T=B(h)/2,C=this.rotation;this.dx=f*P*N(C)-c*T*B(C),this.dy=-f*P*B(C)-c*T*N(C),this.inside?e>90||e<-90?p-=(y+g)*B(h)+(v+x)*N(h):p+=(y+this.bbox.height+g)*B(h)+(v+x+this.bbox.width)*N(h):p+=(f+y+g)*B(h)+(c+v+x)*N(h),o.x+=B(e)*p,o.y+=N(e)*p*r/t}else this.horizontalCenter="middle",this.verticalCenter="middle",l?(this.dx=0,this.dy=0,o.x=(t+p)*B(e),o.y=(r+p*r/t)*N(e)):(this.dy=this._measuredHeight/2*N(e),this.dx=this._measuredWidth/2*B(e),o.x+=B(e)*p,o.y+=N(e)*p*r/t);o.x+=s,o.y+=n,this.fdx=this.dx,this.fdy=this.dy,this.moveTo(o)},i})(wr);_.registeredClasses.AxisLabelCircular=ur;var wi=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Circle",e.element=e.paper.add("circle"),e.setPercentProperty("radius",k(100)),e.setPropertyValue("horizontalCenter","middle"),e.setPropertyValue("verticalCenter","middle"),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this),this.element.attr({r:this.pixelRadius})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return Ie(this.radius,le(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),i.prototype.measureElement=function(){var e=this.pixelRadius;this._bbox={x:-e,y:-e,width:e*2,height:e*2}},i})(U);_.registeredClasses.Circle=wi;var Zl=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Trapezoid",e.element=e.paper.add("path"),e.topSide=k(100),e.bottomSide=k(100),e.leftSide=k(100),e.rightSide=k(100),e.isMeasured=!1,e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight,r=Ie(this.topSide,e),s=Ie(this.bottomSide,e),n=Ie(this.leftSide,t),o=Ie(this.rightSide,t),l=(e-r)/2,u=(t-n)/2,h=e-(e-r)/2,p=(t-o)/2,d=e-(e-s)/2,c=t-(t-o)/2,f=(e-s)/2,y=t-(t-n)/2,g="",v="",x="",P="";if($(this.horizontalNeck)){var T=this.horizontalNeck.value;g=F({x:e*T,y:Math.max(u,p)}),x=F({x:e*T,y:Math.min(c,y)})}if($(this.verticalNeck)){var C=this.verticalNeck.value;v=F({x:Math.min(h,d),y:t*C}),P=F({x:Math.max(l,f),y:t*C})}var O=R({x:l,y:u})+g+F({x:h,y:p})+v+F({x:d,y:c})+x+F({x:f,y})+P;this.path=O},Object.defineProperty(i.prototype,"topSide",{get:function(){return this.getPropertyValue("topSide")},set:function(e){this.setPercentProperty("topSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomSide",{get:function(){return this.getPropertyValue("bottomSide")},set:function(e){this.setPercentProperty("bottomSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"leftSide",{get:function(){return this.getPropertyValue("leftSide")},set:function(e){this.setPercentProperty("leftSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightSide",{get:function(){return this.getPropertyValue("rightSide")},set:function(e){this.setPercentProperty("rightSide",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"horizontalNeck",{get:function(){return this.getPropertyValue("horizontalNeck")},set:function(e){this.setPropertyValue("horizontalNeck",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"verticalNeck",{get:function(){return this.getPropertyValue("verticalNeck")},set:function(e){this.setPropertyValue("verticalNeck",e,!0)},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.Trapezoid=Zl;var Ql=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._axis=new We,e.className="ClockHand";var t=new J;e.fill=t.getFor("alternativeBackground"),e.stroke=e.fill;var r=new wi;r.radius=5,e.pin=r,e.isMeasured=!1,e.startWidth=5,e.endWidth=1,e.width=k(100),e.height=k(100),e.radius=k(100),e.innerRadius=k(0);var s=new Zl;return e.hand=s,e._disposers.push(e._axis),e.applyTheme(),e}return i.prototype.validate=function(){a.prototype.validate.call(this);var e=this.hand;e.width=this.pixelWidth;var t=Math.max(this.startWidth,this.endWidth);if(e.height=t,e.leftSide=k(this.startWidth/t*100),e.rightSide=k(this.endWidth/t*100),this.axis){var r=this.axis.renderer,s=ot(this.innerRadius,r.pixelRadius),n=ot(this.radius,r.pixelRadius);e.x=s,e.y=-t/2,e.width=n-s}},Object.defineProperty(i.prototype,"pin",{get:function(){return this._pin},set:function(e){this._pin&&this.removeDispose(this._pin),e&&(this._pin=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hand",{get:function(){return this._hand},set:function(e){this._hand&&this.removeDispose(this._hand),e&&(this._hand=e,e.parent=this,this._disposers.push(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startWidth",{get:function(){return this.getPropertyValue("startWidth")},set:function(e){this.setPropertyValue("startWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endWidth",{get:function(){return this.getPropertyValue("endWidth")},set:function(e){this.setPropertyValue("endWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rotationDirection",{get:function(){return this.getPropertyValue("rotationDirection")},set:function(e){this.setPropertyValue("rotationDirection",e)},enumerable:!0,configurable:!0}),i.prototype.showValue=function(e,t,r){if(this._value=e,e!=null&&(b(t)||(t=0),this.axis)){var s=this.axis.renderer,n=s.positionToAngle(this.axis.anyToPosition(e)),o=this.rotation;this.rotationDirection=="clockWise"&&n<o&&(this.rotation=o-360),this.rotationDirection=="counterClockWise"&&n>o&&(this.rotation=o+360),this.animate({property:"rotation",to:n},t,r)}},Object.defineProperty(i.prototype,"currentPosition",{get:function(){if(this.axis){var e=this.axis.renderer;return e.angleToPosition(this.rotation)}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this._value},set:function(e){this.showValue(e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axis",{get:function(){return this._axis.get()},set:function(e){if(this.axis!=e&&this._axis.set(e,new Pe([e.events.on("datavalidated",this.updateValue,this,!1),e.events.on("datarangechanged",this.updateValue,this,!1),e.events.on("dataitemsvalidated",this.updateValue,this,!1),e.events.on("propertychanged",this.invalidate,this,!1)])),e){var t=e.chart;t&&(this.rotation=t.startAngle)}this.parent=e.renderer,this.zIndex=5},enumerable:!0,configurable:!0}),i.prototype.updateValue=function(){this.value=this.value},i.prototype.processConfig=function(e){e&&$(e.axis)&&se(e.axis)&&this.map.hasKey(e.axis)&&(e.axis=this.map.getKey(e.axis)),a.prototype.processConfig.call(this,e)},i})(Y);_.registeredClasses.ClockHand=Ql;var Lp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RadarSeriesDataItem",e.setLocation("dateX",0,0),e.setLocation("dateY",0,0),e.setLocation("categoryX",0,0),e.setLocation("categoryY",0,0),e.applyTheme(),e}return i})(Ni);var Jl=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RadarSeries",e.connectEnds=!0,e.applyTheme(),e}return i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},i.prototype.createDataItem=function(){return new Lp},i.prototype.getPoint=function(e,t,r,s,n,o,l){o||(o="valueX"),l||(l="valueY");var u=this.yAxis.getX(e,r,n,l),h=this.yAxis.getY(e,r,n,l),p=xe({x:u,y:h});p==0&&(p=1e-5);var d=this.xAxis.getAngle(e,t,s,o),c=this.chart.startAngle,f=this.chart.endAngle;if(!(d<c||d>f))return{x:p*B(d),y:p*N(d)}},i.prototype.addPoints=function(e,t,r,s,n){var o=this.getPoint(t,r,s,t.locations[r],t.locations[s]);o&&e.push(o)},i.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return qi(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},i.prototype.drawSegment=function(e,t,r){var s=this.yAxis,n=s.renderer;this.connectEnds&&Math.abs(n.endAngle-n.startAngle)==360&&(this.dataFields[this._xOpenField]||this.dataFields[this._yOpenField]||this.stacked)&&(t.push(t[0]),r.length>0&&r.unshift(r[r.length-1])),a.prototype.drawSegment.call(this,e,t,r)},Object.defineProperty(i.prototype,"connectEnds",{get:function(){return this.getPropertyValue("connectEnds")},set:function(e){this.setPropertyValue("connectEnds",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBulletReal=function(e,t,r){var s=this.xAxis,n=this.yAxis;(t<s.start||t>s.end||r<n.start||r>n.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,r))},i.prototype.setXAxis=function(e){a.prototype.setXAxis.call(this,e),this.updateRendererRefs()},i.prototype.setYAxis=function(e){a.prototype.setYAxis.call(this,e),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){var e=this.xAxis.renderer,t=this.yAxis.renderer;e.axisRendererY=t},i})(et);_.registeredClasses.RadarSeries=Jl;_.registeredClasses.RadarSeriesDataItem=Lp;var pn=(function(a){S(i,a);function i(e){var t=a.call(this,e)||this;return t.className="AxisFillCircular",t.element=t.paper.add("path"),t.radius=k(100),t.applyTheme(),t}return i.prototype.draw=function(){if(a.prototype.draw.call(this),!(this.__disabled||this.disabled)&&this.axis){var e=this.axis.renderer;this.fillPath=e.getPositionRangePath(this.startPosition,this.endPosition,this.radius,$(this.innerRadius)?this.innerRadius:e.innerRadius,this.cornerRadius),this.path=this.fillPath}},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),i})(va);_.registeredClasses.AxisFillCircular=pn;var eu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="GridCircular",e.pixelPerfect=!1,e.applyTheme(),e}return Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i})(ba);_.registeredClasses.GridCircular=eu;var qr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.pixelRadiusReal=0,e.layout="none",e.className="AxisRendererCircular",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.useChartAngles=!0,e.radius=k(100),e.isMeasured=!1,e.grid.template.location=0,e.labels.template.location=0,e.labels.template.radius=15,e.ticks.template.location=0,e.ticks.template.pixelPerfect=!1,e.tooltipLocation=0,e.line.strokeOpacity=0,e.applyTheme(),e}return i.prototype.setAxis=function(e){var t=this;a.prototype.setAxis.call(this,e),e.isMeasured=!1;var r=e.tooltip;r.adapter.add("dx",function(s,n){var o=Bt({x:n.pixelX,y:n.pixelY},t);return t.pixelRadius*Math.cos(Math.atan2(o.y,o.x))-o.x}),r.adapter.add("dy",function(s,n){var o=Bt({x:n.pixelX,y:n.pixelY},t);return t.pixelRadius*Math.sin(Math.atan2(o.y,o.x))-o.y})},i.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},Object.defineProperty(i.prototype,"axisLength",{get:function(){return 2*Math.PI*this.pixelRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return ot(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){var e=this.chart,t=this.getPropertyValue("innerRadius");if(e){if(!$(t))t=e.innerRadius,t instanceof ae&&e&&(t=k(t.value*e.innerRadiusModifyer*100));else if(t instanceof ae&&e){var r=e.mr,s=t.value;s=Math.max(r*s,r-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/r,t=k(s*100)}return t}},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)&&this.axis&&this.axis.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"useChartAngles",{get:function(){return this.getPropertyValue("useChartAngles")},set:function(e){this.setPropertyValue("useChartAngles",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return ot(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){b(t)||(t=1);var r=this.positionToCoordinate(e),s=this.startAngle+(this.endAngle-this.startAngle)*r/this.axisLength,n=this.pixelRadius,o=this.pixelInnerRadius;if(this.axisRendererY){var l=X(this.axisRendererY.positionToCoordinate(t),0,1/0);l==0&&(l=1e-6);var u={x:l*B(s),y:l*N(s)};return u}return{x:B(s)*o+(n-o)*B(s)*t,y:N(s)*o+(n-o)*N(s)*t}},i.prototype.positionToAngle=function(e){var t=this.axis,r=(this.endAngle-this.startAngle)/(t.end-t.start),s;return t.renderer.inversed?s=this.startAngle+(t.end-e)*r:s=this.startAngle+(e-t.start)*r,I(s,3)},i.prototype.angleToPosition=function(e){var t=this.axis,r=(this.endAngle-this.startAngle)/(t.end-t.start),s;return t.renderer.inversed?s=t.end-(e-this.startAngle)/r:s=(e-this.startAngle)/r+t.start,I(s,5)},i.prototype.updateAxisLine=function(){var e=this.pixelRadius,t=this.startAngle,r=this.endAngle,s=le(360,r-t);this.line.path=R({x:e*B(t),y:e*N(t)})+pt(t,s,e,e)},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t);if(b(s.x)&&b(s.y)&&e.element){var n=br*Math.atan2(s.y,s.x),o=ot($(e.radius)?e.radius:k(100),this.pixelRadius),l=ot(e.innerRadius,this.pixelRadius);e.zIndex=0;var u=ot(b(l)?l:this.innerRadius,this.pixelRadiusReal,!0);b(u)||(u=0),e.path=R({x:u*B(n),y:u*N(n)})+F({x:o*B(n),y:o*N(n)})}this.toggleVisibility(e,t,0,1)},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t);if(e.element){var n=this.pixelRadius,o=br*Math.atan2(s.y,s.x),l=e.length;e.inside&&(l=-l),e.zIndex=1,e.path=R({x:n*B(o),y:n*N(o)})+F({x:(n+l)*B(o),y:(n+l)*N(o)})}this.toggleVisibility(e,t,0,1)},i.prototype.updateBullet=function(e,t,r){var s=.5;e instanceof Ar&&(s=e.location),t=t+(r-t)*s;var n=this.positionToPoint(t),o=this.pixelRadius,l=br*Math.atan2(n.y,n.x);n={x:o*B(l),y:o*N(l)},this.positionItem(e,n),this.toggleVisibility(e,t,0,1)},i.prototype.updateLabelElement=function(e,t,r,s){$(s)||(s=e.location),t=t+(r-t)*s,e.fixPosition(this.positionToAngle(t),this.pixelRadius),e.zIndex=2,this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.invalidateAxisItems(),this.axis&&this.axis.invalidateSeries())},enumerable:!0,configurable:!0}),i.prototype.getPositionRangePath=function(e,t,r,s,n){var o="";if(b(e)&&b(t)){$(r)||(r=this.radius),e=ie(e,this.axis.start),t=le(t,this.axis.end),t<e&&(t=e);var l=ot(r,this.pixelRadius),u=ot(s,this.pixelRadius,!0),h=this.positionToAngle(e),p=this.positionToAngle(t),d=p-h;o=qi(h,d,l,u,l,n)}return o},i.prototype.createGrid=function(){return new eu},i.prototype.createFill=function(e){return new pn(e)},i.prototype.createLabel=function(){return new ur},i.prototype.pointToPosition=function(e){var t=Li(nt(e),this.startAngle,this.endAngle);return this.coordinateToPosition((t-this.startAngle)/360*this.axisLength)},i})(xa);_.registeredClasses.AxisRendererCircular=qr;var dn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="WavedCircle",e.element=e.paper.add("path"),e.waveLength=16,e.waveHeight=4,e.fill=void 0,e.fillOpacity=0,e.tension=.8,e.applyTheme(),e}return i.prototype.draw=function(){var e="",t=this.pixelRadius;if(t>0){var r=this.getPoints(t);e=R(r[0])+new Mi(this.tension,this.tension).smooth(r)}var s=this.pixelInnerRadius;if(s>0){var r=this.getPoints(s);r.reverse(),e+=R(r[0])+new Mi(this.tension,this.tension).smooth(r)}this.path=e},i.prototype.getPoints=function(e){for(var t=e*Math.PI*2,r=this.waveHeight/2,s=t/Math.round(t/this.waveLength),n=s/2,o=[],l=t/s,u=0;u<=l;u++){var h=u*s/t*360,p=(u*s+n)/t*360;o.push({x:(e-r)*B(h),y:(e-r)*N(h)}),o.push({x:(e+r)*B(p),y:(e+r)*N(p)})}return o.pop(),o},Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return Ie(this.innerRadius,le(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveLength",{get:function(){return this.getPropertyValue("waveLength")},set:function(e){this.setPropertyValue("waveLength",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"waveHeight",{get:function(){return this.getPropertyValue("waveHeight")},set:function(e){this.setPropertyValue("waveHeight",e),this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e),this.invalidate()},enumerable:!0,configurable:!0}),i})(wi);_.registeredClasses.WavedCircle=dn;var tu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._chart=new We,e.pixelRadiusReal=0,e.className="AxisRendererRadial",e.isMeasured=!1,e.startAngle=-90,e.endAngle=270,e.minGridDistance=30,e.gridType="circles",e.axisAngle=-90,e.isMeasured=!1,e.layout="none",e.radius=k(100),e.line.strokeOpacity=0,e.labels.template.horizontalCenter="middle",e._disposers.push(e._chart),e.applyTheme(),e}return i.prototype.validate=function(){this.chart&&this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},Object.defineProperty(i.prototype,"axisLength",{get:function(){return this.pixelRadius-this.pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return ot(this.radius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){var e=this.chart,t=this.getPropertyValue("innerRadius");if(e){if(!$(t))t=e.innerRadius,t instanceof ae&&e&&(t=k(t.value*e.innerRadiusModifyer*100));else if(t instanceof ae&&e){var r=e.mr,s=t.value;s=Math.max(r*s,r-Math.min(e.plotContainer.innerHeight,e.plotContainer.innerWidth))/r,t=k(s*100)}}return t},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return ot(this.innerRadius,this.pixelRadiusReal)||0},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){var r=X(this.positionToCoordinate(e),0,1/0);return{x:r*B(this.axisAngle),y:r*N(this.axisAngle)}},i.prototype.updateAxisLine=function(){this.line.path=R({x:this.pixelInnerRadius*B(this.axisAngle),y:this.pixelInnerRadius*N(this.axisAngle)})+F({x:this.pixelRadius*B(this.axisAngle),y:this.pixelRadius*N(this.axisAngle)});var e=this.axis.title;e.valign="none",e.horizontalCenter="middle",e.verticalCenter="bottom",e.y=-this.axisLength/2;var t=90;this.opposite?this.inside||(t=-90):this.inside&&(t=-90),e.rotation=t},i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t),n,o=xe(s),l=this.startAngle,u=this.endAngle,h=this.chart;if(b(o)&&e.element&&h){var p=h.xAxes.getIndex(0),d=0,c=h.series.getIndex(0);if(c&&(d=c.dataItems.length),this.gridType=="polygons"&&d>0&&c&&p&&p instanceof $e){var f=p.renderer.grid.template.location,y=p.getAngle(c.dataItems.getIndex(0),"categoryX",f);n=R({x:o*B(y),y:o*N(y)});for(var g=1;g<d;g++)y=p.getAngle(c.dataItems.getIndex(g),"categoryX",f),n+=F({x:o*B(y),y:o*N(y)});y=p.getAngle(c.dataItems.getIndex(d-1),"categoryX",p.renderer.cellEndLocation),n+=F({x:o*B(y),y:o*N(y)})}else n=R({x:o*B(l),y:o*N(l)})+pt(l,u-l,o,o);e.path=n}this.toggleVisibility(e,t,0,1)},i.prototype.updateLabelElement=function(e,t,r,s){$(s)||(s=e.location),t=t+(r-t)*s;var n=this.positionToPoint(t);this.positionItem(e,n),this.toggleVisibility(e,t,this.minLabelPosition,this.maxLabelPosition)},i.prototype.updateBaseGridElement=function(){},i.prototype.fitsToBounds=function(e){return!0},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"axisAngle",{get:function(){return this.getPropertyValue("axisAngle")},set:function(e){this.setPropertyValue("axisAngle",vr(e)),this.invalidateAxisItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"gridType",{get:function(){var e=this.chart.xAxes.getIndex(0);return e instanceof $e?this.getPropertyValue("gridType"):"circles"},set:function(e){this.setPropertyValue("gridType",e,!0)},enumerable:!0,configurable:!0}),i.prototype.getPositionRangePath=function(e,t){var r=this.pixelInnerRadius,s=this.axisLength+r,n=X(this.positionToCoordinate(e),r,s),o=X(this.positionToCoordinate(t),r,s),l=this.startAngle,u=this.endAngle,h=u-l,p,d=this.chart,c=d.xAxes.getIndex(0),f=d.series.getIndex(0),y=0;if(f&&(y=f.dataItems.length),this.gridType=="polygons"&&y>0&&f&&c&&c instanceof $e){var g=c.renderer.grid.template.location,v=c.getAngle(f.dataItems.getIndex(0),"categoryX",g);p=R({x:o*B(v),y:o*N(v)});for(var x=1;x<y;x++)v=c.getAngle(f.dataItems.getIndex(x),"categoryX",g),p+=F({x:o*B(v),y:o*N(v)});v=c.getAngle(f.dataItems.getIndex(y-1),"categoryX",c.renderer.cellEndLocation),p+=F({x:o*B(v),y:o*N(v)}),p+=R({x:n*B(v),y:n*N(v)});for(var x=y-1;x>=0;x--)v=c.getAngle(f.dataItems.getIndex(x),"categoryX",g),p+=F({x:n*B(v),y:n*N(v)})}else p=qi(l,h,o,n);return p},i.prototype.updateBreakElement=function(e){var t=e.startLine,r=e.endLine,s=e.fillShape,n=e.startPoint,o=e.endPoint;t.radius=Math.abs(n.y),r.radius=Math.abs(o.y),s.radius=Math.abs(o.y),s.innerRadius=Math.abs(n.y)},i.prototype.createBreakSprites=function(e){e.startLine=new dn,e.endLine=new dn,e.fillShape=new dn},i.prototype.updateTooltip=function(){var e=this.axis;if(e){var t=4e3,r=-4e3,s=-4e3,n=t*2,o=t*2,l=this.axisAngle;l<0&&(l+=360);var u="vertical";(l>45&&l<135||l>225&&l<315)&&(u="horizontal"),this.axis.updateTooltip(u,{x:r,y:s,width:n,height:o})}},i.prototype.updateTickElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t);if(e.element){var n=vr(this.axisAngle+90);n/90!=Math.round(n/90)?e.pixelPerfect=!1:e.pixelPerfect=!0;var o=-e.length;e.inside&&(o*=-1),e.path=R({x:0,y:0})+F({x:o*B(n),y:o*N(n)})}this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateBullet=function(e,t,r){var s=.5;e instanceof Ar&&(s=e.location),t=t+(r-t)*s;var n=this.positionToPoint(t);this.positionItem(e,n),this.toggleVisibility(e,t,0,1)},i.prototype.positionToCoordinate=function(e){var t,r=this.axis,s=r.axisFullLength,n=this.pixelInnerRadius;return r.renderer.inversed?t=(r.end-e)*s+n:t=(e-r.start)*s+n,I(t,1)},i.prototype.pointToPosition=function(e){var t=xe(e)-this.pixelInnerRadius;return this.coordinateToPosition(t)},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){this._chart.set(e,null)},enumerable:!0,configurable:!0}),i})(_t);_.registeredClasses.AxisRendererRadial=tu;var Ip=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RadarChartDataItem",e.applyTheme(),e}return i})(ss);var iu=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._axisRendererX=qr,e._axisRendererY=tu,e.innerRadiusModifyer=1,e.mr=1,e.className="RadarChart",e.startAngle=-90,e.endAngle=270,e.radius=k(80),e.innerRadius=0;var t=e.plotContainer.createChild(Y);return t.shouldClone=!1,t.layout="absolute",t.align="center",t.valign="middle",e.seriesContainer.parent=t,e.radarContainer=t,e.bulletsContainer.parent=t,e.axisBulletsContainer=t,e._cursorContainer=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e._bulletMask=t.createChild(wi),e._bulletMask.shouldClone=!1,e._bulletMask.element=e.paper.add("path"),e._bulletMask.opacity=0,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Radar chart"))},i.prototype.processAxis=function(e){a.prototype.processAxis.call(this,e);var t=e.renderer;t.gridContainer.parent=t,t.breakContainer.parent=t,e.parent=this.radarContainer,t.toBack()},i.prototype.handleXAxisRangeChange=function(){a.prototype.handleXAxisRangeChange.call(this),V(this.yAxes.iterator(),function(e){e.invalidate()})},i.prototype.handleYAxisRangeChange=function(){a.prototype.handleYAxisRangeChange.call(this),V(this.xAxes.iterator(),function(e){e.invalidate()})},i.prototype.processConfig=function(e){if(e&&($(e.cursor)&&!$(e.cursor.type)&&(e.cursor.type="RadarCursor"),$(e.series)&&je(e.series)))for(var t=0,r=e.series.length;t<r;t++)e.series[t].type=e.series[t].type||"RadarSeries";a.prototype.processConfig.call(this,e)},i.prototype.beforeDraw=function(){a.prototype.beforeDraw.call(this);var e=this.plotContainer,t=ci(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0},s=e.innerWidth/t.width,n=e.innerHeight/t.height,o=this.innerRadius;if(o instanceof ae){var l=o.value,u=Math.min(s,n);this.mr=u,l=Math.max(u*l,u-Math.min(e.innerHeight,e.innerWidth))/u,r=ci(this.startAngle,this.endAngle,l),this.innerRadiusModifyer=l/o.value,o=k(l*100)}t=xr([t,r]);var h=Math.min(e.innerWidth/t.width,e.innerHeight/t.height),p=ot(this.radius,h)*2||0,d=p/2,c=this.startAngle,f=this.endAngle;this._pixelInnerRadius=ot(o,d),this._bulletMask.path=qi(c,f-c,d,this._pixelInnerRadius),V(this.xAxes.iterator(),function(g){g.renderer.useChartAngles&&(g.renderer.startAngle=c,g.renderer.endAngle=f),g.width=p,g.height=p,g.renderer.pixelRadiusReal=d}),V(this.yAxes.iterator(),function(g){g.renderer.startAngle=c,g.renderer.endAngle=f,g.width=p,g.height=p,g.renderer.pixelRadiusReal=d});var y=this.cursor;y&&(y.width=p,y.height=p,y.startAngle=c,y.endAngle=f),this.radarContainer.definedBBox={x:d*t.x,y:d*t.y,width:d*t.width,height:d*t.height},this.radarContainer.validatePosition()},i.prototype.createSeries=function(){return new Jl},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i.prototype.updateXAxis=function(e){e&&e.processRenderer()},i.prototype.updateYAxis=function(e){e&&e.processRenderer()},i})(qe);_.registeredClasses.RadarChart=iu;var gv=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="GaugeChartDataItem",e.applyTheme(),e}return i})(Ip);var hr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="GaugeChart",e.startAngle=180,e.endAngle=360,e.hands=new Te(new Ql),e.hands.events.on("inserted",e.processHand,e,!1),e._disposers.push(new ge(e.hands)),e._disposers.push(e.hands.template),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Gauge chart"))},i.prototype.processHand=function(e){var t=e.newValue;t.axis||(t.axis=this.xAxes.getIndex(0))},i.prototype.configOrder=function(e,t){return e==t?0:e=="hands"?1:t=="hands"?-1:a.prototype.configOrder.call(this,e,t)},i})(iu);_.registeredClasses.GaugeChart=hr;var Ei=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Slice",e.setPropertyValue("cornerRadius",0),e.setPropertyValue("startAngle",0),e.setPercentProperty("innerRadius",0),e.setPercentProperty("radius",0),e.setPropertyValue("arc",0),e.setPropertyValue("shiftRadius",0),e.strokeOpacity=1,e.setPropertyValue("layout","none"),e.slice=e.createChild(U),e.slice.isMeasured=!1,e._disposers.push(e.slice),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.radiusY;this.radius>0&&e==0&&(e=.01),this.slice.path=qi(this.startAngle,this.arc,this.radius,this.pixelInnerRadius,e,this.cornerRadius,this.innerCornerRadius),this.slice.invalidate(),this.shiftRadius=this.shiftRadius,this.realFill instanceof Si&&this.updateGradient(this.realFill),this.realStroke instanceof Si&&this.updateGradient(this.realStroke)},i.prototype.updateGradient=function(e){e.element.attr({gradientUnits:"userSpaceOnUse"}),e.element.attr({r:this.radius}),e.cx=0,e.cy=0,e.element.attr({radius:this.radius})},Object.defineProperty(i.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;if(this.isMeasured){var e=ci(this.startAngle,this.startAngle+this.arc,this.pixelInnerRadius),t=ci(this.startAngle,this.startAngle+this.arc,this.radius);return xr([e,t])}else return{x:0,y:0,width:0,height:0}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",vr(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){b(e)||(e=0),this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){var e=this.getPropertyValue("radius");return b(e)||(e=0),e},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return b(e)||(e=this.radius),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return Ie(this.innerRadius,this.radius)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cornerRadius",{get:function(){return this.getPropertyValue("cornerRadius")},set:function(e){this.setPropertyValue("cornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerCornerRadius",{get:function(){return this.getPropertyValue("innerCornerRadius")},set:function(e){this.setPropertyValue("innerCornerRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"shiftRadius",{get:function(){return this.getPropertyValue("shiftRadius")},set:function(e){this.setPropertyValue("shiftRadius",e),e=this.getPropertyValue("shiftRadius"),this.dx=e*this.radius*this.ix,this.dy=e*this.radiusY*this.iy},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ix",{get:function(){return B(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"iy",{get:function(){return N(this.middleAngle)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"middleAngle",{get:function(){return this.startAngle+this.arc/2},enumerable:!0,configurable:!0}),i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");if(b(e))return e;var t=.5;e instanceof ae&&(t=e.value);var r=Ie(this.innerRadius,this.radius);return this.ix*(r+(this.radius-r)*t)},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipY");if(b(e))return e;var t=.5;e instanceof ae&&(t=e.value);var r=Ie(this.innerRadius,this.radius);return this.iy*(r+(this.radius-r)*t)+this.slice.dy},i})(Y);_.registeredClasses.Slice=Ei;var cn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PercentSeriesDataItem",e.applyTheme(),e}return i.prototype.uidAttr=function(){return this.slice.uidAttr()},i.prototype.hide=function(e,t,r,s){return s||(s=["value"]),a.prototype.hide.call(this,e,t,0,s)},i.prototype.setVisibility=function(e,t){t||(e?this.setWorkingValue("value",this.values.value.value,0,0):this.setWorkingValue("value",0,0,0)),a.prototype.setVisibility.call(this,e,t)},i.prototype.show=function(e,t,r){return r||(r=["value"]),a.prototype.show.call(this,e,t,r)},Object.defineProperty(i.prototype,"category",{get:function(){return this.properties.category},set:function(e){this.setProperty("category",e)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){this.component.createLegendMarker(e,this)},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tick",{get:function(){var e=this;if(!this._tick){var t=this.component.ticks.create();this._tick=t,this.addSprite(t),this._disposers.push(t),t.parent=this.component.ticksContainer,this._disposers.push(new ye(function(){e.component&&e.component.ticks.removeValue(t)})),t.visible=this.visible}return this._tick},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){var e=this;if(!this._label){var t=this.component.labels.create();this.addSprite(t),this._label=t,this._disposers.push(t),t.parent=this.component.labelsContainer,this._disposers.push(new ye(function(){e.component&&e.component.labels.removeValue(t)})),t.visible=this.visible}return this._label},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"slice",{get:function(){var e=this;if(!this._slice){var t=this.component,r=t.slices.create();this.addSprite(r),this._slice=r,this._disposers.push(r),r.parent=t.slicesContainer,this._disposers.push(new ye(function(){t.slices.removeValue(r)})),r.visible=this.visible,t.itemsFocusable()?($(this.component.role)||(this.component.role="menu"),$(r.role)||(r.role="menuitem"),r.focusable=!0):($(this.component.role)||(this.component.role="list"),$(r.role)||(r.role="listitem"),r.focusable=!1),r.focusable&&(r.events.on("focus",function(s){r.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),r.events.on("blur",function(s){r.readerTitle=""},void 0,!1)),r.hoverable&&(r.events.on("over",function(s){r.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),r.events.on("out",function(s){r.readerTitle=""},void 0,!1))}return this._slice},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hiddenInLegend",{get:function(){return this.properties.hiddenInLegend},set:function(e){this.setProperty("hiddenInLegend",e)},enumerable:!0,configurable:!0}),i})(is);var $a=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="PercentSeries",e._addAllDataItems=!1,e.colors=new Vr,e.colors.step=1,e.isMeasured=!0,e.calculatePercent=!0;var t=e.createChild(Y);t.shouldClone=!1,t.isMeasured=!1,e.slicesContainer=t;var r=e.createChild(Y);r.shouldClone=!1,r.isMeasured=!1,r.layout="none",e.ticksContainer=r;var s=e.createChild(Y);s.shouldClone=!1,s.isMeasured=!1,s.layout="none",e.labelsContainer=s,e.alignLabels=!1,e.bulletsContainer.toFront(),e.skipFocusThreshold=50;var n=e.defaultState;return n.transitionEasing=rp,e.itemReaderText="{category}: {value.percent.formatNumber('#.#p')}",e.applyTheme(),e}return i.prototype.createSlice=function(){return new U},i.prototype.createTick=function(){return new Dr},i.prototype.createLabel=function(){return new Je},Object.defineProperty(i.prototype,"slices",{get:function(){if(!this._slices){var e=this.createSlice();e.applyOnClones=!0,this._disposers.push(e),this.initSlice(e),this._slices=new Te(e),this._disposers.push(new ge(this._slices))}return this._slices},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"ticks",{get:function(){if(!this._ticks){var e=this.createTick();e.applyOnClones=!0,this._disposers.push(e),this.initTick(e),this._ticks=new Te(e),this._disposers.push(new ge(this._ticks))}return this._ticks},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"labels",{get:function(){if(!this._labels){var e=this.createLabel();e.applyOnClones=!0,this._disposers.push(e),this.initLabel(e),this._labels=new Te(e),this._disposers.push(new ge(this._labels))}return this._labels},enumerable:!0,configurable:!0}),i.prototype.createDataItem=function(){return new cn},i.prototype.initSlice=function(e){},i.prototype.initLabel=function(e){e.text="{category}: {value.percent.formatNumber('#.0p')}",e.isMeasured=!1,e.padding(5,5,5,5)},i.prototype.initTick=function(e){},i.prototype.validateDataItems=function(){this.colors.reset(),this.patterns&&this.patterns.reset(),a.prototype.validateDataItems.call(this)},i.prototype.validateDataElement=function(e){var t=e.slice;t&&(t.fill==null?this.patterns?($(t.stroke)||(t.stroke=this.colors.next()),t.fill=this.patterns.next(),$(t.fillOpacity)&&(t.fill.backgroundOpacity=t.fillOpacity),t.stroke instanceof de&&(t.fill.stroke=t.stroke,t.fill.fill=t.stroke)):t.fill=this.colors.next():this.colors.currentStep+=this.colors.step,t.stroke==null&&(t.stroke=t.fill)),a.prototype.validateDataElement.call(this,e),t&&e.bullets.each(function(r,s){s.fill==null&&(s.fill=t.fill),s.stroke==null&&(s.stroke=t.stroke)}),this.updateLegendValue(e)},i.prototype.validateData=function(){a.prototype.validateData.call(this),this.chart&&this.chart.feedLegend()},i.prototype.arrangeLabels=function(e){for(var t=0,r=e.length;t<r;t++){var s=e[t],n=s.label;if(n){n.invalid&&n.validate();var o=n.measuredHeight;n.visible||(o=0),n.pixelY-o/2<-this.maxHeight/2&&(n.y=-this.maxHeight/2+o/2);var l=this.getNextLabel(t+1,e),u=n.pixelY+o/2;if(l){l.invalid&&l.validate();var h=l.measuredHeight;l.visible||(h=0);var p=l.pixelY;p==null&&(p=0),p-h/2<u&&(l.y=u+h/2)}}}},i.prototype.arrangeLabels2=function(e){for(var t=this.maxHeight/2,r=e.length-1;r>=0;r--){var s=e[r],n=s.label;if(n){n.invalid&&n.validate();var o=n.measuredHeight;n.visible||(o=0),n.pixelY+o/2>t&&(n.y=t-o/2,t=n.y-o/2)}}},i.prototype.getNextLabel=function(e,t){if(t.length>=e){var r=t[e];if(r)return r.label?r.visible?r.label:this.getNextLabel(e+1,t):this.getNextLabel(e+1,t)}},Object.defineProperty(i.prototype,"colors",{get:function(){return this.getPropertyValue("colors")},set:function(e){this.setPropertyValue("colors",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"patterns",{get:function(){return this.getPropertyValue("patterns")},set:function(e){this.setPropertyValue("patterns",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e,t){V(e.children.iterator(),function(r){var s=t.slice;r.defaultState.properties.fill=s.fill,r.defaultState.properties.stroke=s.stroke,r.defaultState.properties.fillOpacity=s.fillOpacity,r.defaultState.properties.strokeOpacity=s.strokeOpacity,r.fill=s.fill,r.stroke=s.stroke,r.fillOpacity=s.fillOpacity,r.strokeOpacity=s.strokeOpacity,r.fill==null&&(r.__disabled=!0);var n=e.dataItem;n.color=s.fill,n.colorOrig=s.fill,r.addDisposer(s.events.on("propertychanged",function(o){o.property=="fill"&&(r.__disabled=!1,r.isActive||(r.fill=s.fill),r.defaultState.properties.fill=s.fill,n.color=s.fill,n.colorOrig=s.fill),o.property=="stroke"&&(r.isActive||(r.stroke=s.stroke),r.defaultState.properties.stroke=s.stroke),o.property=="strokeOpacity"&&(r.isActive||(r.strokeOpacity=s.strokeOpacity),r.defaultState.properties.strokeOpacity=s.strokeOpacity)},void 0,!1))})},i.prototype.handleSliceScale=function(e){var t=this,r=e.target,s=r.dataItem;s&&s.bullets&&V(s.bullets.iterator(),function(n){var o=n[1];t.positionBullet(o)})},i.prototype.handleSliceMove=function(e){},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.slices.template.copyFrom(e.slices.template),this.labels.template.copyFrom(e.labels.template),this.ticks.template.copyFrom(e.ticks.template),this.colors=e.colors.clone()},Object.defineProperty(i.prototype,"alignLabels",{get:function(){return this.getPropertyValue("alignLabels")},set:function(e){this.setAlignLabels(e)},enumerable:!0,configurable:!0}),i.prototype.setAlignLabels=function(e){this.setPropertyValue("alignLabels",e,!0)},Object.defineProperty(i.prototype,"ignoreZeroValues",{get:function(){return this.getPropertyValue("ignoreZeroValues")},set:function(e){this.setPropertyValue("ignoreZeroValues",e,!0)},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e){if(e){var t=e.legendDataItem,r=e.legendSettings;t&&r&&r&&(r.labelText&&(t.label.text=r.labelText),r.itemLabelText&&(t.label.text=r.itemLabelText),r.valueText&&(t.valueLabel.text=r.valueText),r.itemValueText&&(t.valueLabel.text=r.itemValueText))}},i})(lr);_.registeredClasses.PercentSeries=$a;_.registeredClasses.PercentSeriesDataItem=cn;tt.push({relevant:lt.maybeXS,state:function(a,i){if(a instanceof $a){var e=a.states.create(i),t=a.labels.template.states.create(i);t.properties.disabled=!0;var r=a.ticks.template.states.create(i);return r.properties.disabled=!0,e}return null}});var ru=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._label=new We,e._slice=new We,e.className="PieTick",e.element=e.paper.add("polyline"),e._disposers.push(e._label),e._disposers.push(e._slice),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.slice,t=this.label,r=e.dataItem.component;if(e&&e.radius>0&&t&&t.text){var s=e.dx+e.slice.dx+e.pixelX+e.ix*e.radius*e.scale,n=e.dy+e.slice.dy+e.pixelY+e.iy*e.radiusY*e.scale,o=void 0,l=void 0,u=void 0,h=void 0;if(r.alignLabels)o=t.pixelX-this.length,l=t.pixelY,u=t.pixelX,h=l,t.horizontalCenter=="right"&&(o+=2*this.length,u=o-this.length);else{var p=t.pixelRadius(e.radius);o=s+p*e.ix,l=n+p*e.iy,u=o,h=l}this.element.attr({points:[s,n,o,l,u,h]})}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new Pe([e.events.on("transformed",this.invalidate,this),e.events.on("validated",this.invalidate,this)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),i})(Dr);_.registeredClasses.PieTick=ru;var Lr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PieSeriesDataItem",e.values.radiusValue={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"radiusValue",{get:function(){return this.values.radiusValue.value},set:function(e){this.setValue("radiusValue",e)},enumerable:!0,configurable:!0}),i.prototype.hide=function(e,t,r,s){return a.prototype.hide.call(this,e,t,0,["value","radiusValue"])},i.prototype.show=function(e,t,r){return a.prototype.show.call(this,e,t,["value","radiusValue"])},i})(cn);var ei=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PieSeries",e.alignLabels=!0,e.layout="none",e.labels.template.radius=k(5),e.addDisposer(e.labels.template.events.on("enabled",e.invalidate,e,!1)),e.applyTheme(),e}return i.prototype.createSlice=function(){return new Ei},i.prototype.createTick=function(){return new ru},i.prototype.createLabel=function(){return new ur},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Pie Slice Series"))},i.prototype.createDataItem=function(){return new Lr},i.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y","shiftRadius"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var t=e.states.create("hover");t.properties.scale=1.05;var r=e.defaultState;r.properties.shiftRadius=0,e.togglable=!0,e.events.on("toggled",function(n){n.target.hideTooltip(),n.target.interactions.lastHitPointer&&n.target.interactions.lastHitPointer.touch&&!n.target.isActive&&(n.target.isHover=!1)});var s=e.states.create("active");s.properties.shiftRadius=.1},i.prototype.validate=function(){this._leftItems=[],this._rightItems=[],this._currentStartAngle=this.startAngle,this._arcRect=ci(this.startAngle,this.endAngle),this._maxRadiusPercent=0;for(var e=this.startIndex;e<this.endIndex;e++){var t=this.dataItems.getIndex(e),r=t.values.radiusValue.percent;r>this._maxRadiusPercent&&(this._maxRadiusPercent=r)}a.prototype.validate.call(this),this.alignLabels&&(this.startAngle>this.endAngle?this._rightItems.reverse():this._leftItems.reverse(),this._rightItems.sort(function(s,n){var o=(s.slice.middleAngle+360)%360,l=(n.slice.middleAngle+360)%360;return o>270&&(o-=360),l>270&&(l-=360),o<l?-1:o>l?1:0}),this._leftItems.sort(function(s,n){var o=(s.slice.middleAngle+360)%360,l=(n.slice.middleAngle+360)%360;return o<l?1:o>l?-1:0}),this.arrangeLabels(this._rightItems),this.arrangeLabels2(this._rightItems),this.arrangeLabels(this._leftItems),this.arrangeLabels2(this._leftItems))},i.prototype.validateDataElement=function(e){if(this.pixelRadius>0){this.ignoreZeroValues&&(e.value==0||e.value==null)?e.__disabled=!0:e.__disabled=!1;var t=e.slice;if(t.radius=this.pixelRadius,b(e.radiusValue)&&(t.radius=this.pixelInnerRadius+(this.pixelRadius-this.pixelInnerRadius)*e.values.radiusValue.percent/this._maxRadiusPercent),t.innerRadius instanceof ae||(t.innerRadius=this.pixelInnerRadius),t.startAngle=this._currentStartAngle,t.arc=Math.abs(e.values.value.percent)*(this.endAngle-this.startAngle)/100,!this.labels.template.disabled){var r=e.label,s=e.tick;s.slice=t,s.label=r;var n=(t.middleAngle+360)%360,o=void 0;if(this.alignLabels){var l=r.pixelRadius(t.radius),u=s.length+l;r.dx=0,r.dy=0,r.verticalCenter="middle";var h=this._arcRect;n>270||n<=90?(u+=(h.width+h.x)*this.pixelRadius,r.horizontalCenter="left",this._rightItems.push(e)):(u-=h.x*this.pixelRadius,r.horizontalCenter="right",this._leftItems.push(e),u*=-1);var p=t.radius+s.length+l;o={x:u,y:t.iy*p},r.moveTo(o)}else{var d=t.depth;b(d)||(d=0),r.fixPosition(t.middleAngle,t.radius,t.radiusY,0,-d)}}this._currentStartAngle+=t.arc,a.prototype.validateDataElement.call(this,e)}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return this._pixelRadius},set:function(e){this._pixelRadius!=e&&(this._pixelRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){return this._pixelInnerRadius},set:function(e){this._pixelInnerRadius!=e&&(this._pixelInnerRadius=e,this.invalidateDataItems())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startAngle",{get:function(){var e=this.getPropertyValue("startAngle");return b(e)?e:this._startAngleInternal},set:function(e){this.setPropertyValue("startAngle",vr(e),!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){var e=this.getPropertyValue("endAngle");return b(e)?e:this._endAngleInternal},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var t=e.dataItem,r=t.slice,s=e.locationX;b(s)||(s=.5);var n=e.locationY;b(n)||(n=1);var o=r.startAngle+r.arc*s;e.x=n*r.radius*B(o),e.y=n*r.radiusY*N(o)},i.prototype.handleSliceMove=function(e){if(!this.alignLabels){var t=e.target,r=t.dataItem;if(r){var s=r.label;s&&(s.dx=s.fdx+t.dx+t.pixelX,s.dy=s.fdy+t.dy+t.pixelY)}}},Object.defineProperty(i.prototype,"bbox",{get:function(){if(this.definedBBox)return this.definedBBox;var e=this.chart;return e?ci(e.startAngle,e.endAngle,this.pixelRadius):ci(this.startAngle,this.endAngle,this.pixelRadius)},enumerable:!0,configurable:!0}),i})($a);_.registeredClasses.PieSeries=ei;_.registeredClasses.PieSeriesDataItem=Lr;var yo=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PercentChartDataItem",e.applyTheme(),e}return i})(fo);var go=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PercentChart",e.align="none",e.valign="none",e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.applyTheme(),e}return i.prototype.validateData=function(){a.prototype.validateData.call(this),this.feedLegend()},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];V(this.series.iterator(),function(r){r.hiddenInLegend||V(r.dataItems.iterator(),function(s){s.hiddenInLegend||(t.push(s),s.legendSettings||(s.legendSettings=r.legendSettings))})}),e.data=t,e.dataFields.name="category"}},i.prototype.createSeries=function(){return new $a},i.prototype.setLegend=function(e){a.prototype.setLegend.call(this,e),e&&(e.labels.template.text="{category}",e.valueLabels.template.text="{value.percent.formatNumber('#.0p')}",e.itemContainers.template.events.on("over",function(t){var r=t.target.dataItem.dataContext;if(r.visible&&!r.isHiding){var s=r.slice;s.dispatchImmediately("over"),s.isHover=!0,s.interactions.isRealHover=!0}}),e.itemContainers.template.events.on("out",function(t){var r=t.target.dataItem.dataContext,s=r.slice;s.dispatchImmediately("out"),s.isHover=!1}))},i})(Ur);_.registeredClasses.PercentChart=go;_.registeredClasses.PercentChartDataItem=yo;var au=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PieChartDataItem",e.applyTheme(),e}return i})(yo);var Tt=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="PieChart",e.innerRadius=0,e.radius=k(80),e.align="none",e.valign="none",e.startAngle=-90,e.endAngle=270;var t=e.seriesContainer;return t.isMeasured=!0,t.valign="middle",t.align="center",t.layout="absolute",t.width=void 0,t.height=void 0,e.chartContainer.minHeight=50,e.chartContainer.minWidth=50,e.chartContainer.events.on("maxsizechanged",e.updateRadius,e,!1),e._disposers.push(e.seriesContainer.events.on("positionchanged",function(){e.bulletsContainer.x=e.seriesContainer.x,e.bulletsContainer.y=e.seriesContainer.y})),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Pie chart"))},i.prototype.validateLayout=function(){a.prototype.validateLayout.call(this),this.updateRadius()},i.prototype.handleSeriesAdded=function(e){a.prototype.handleSeriesAdded.call(this,e),this._chartPixelRadius=void 0,this.updateSeriesAngles()},i.prototype.updateSeriesAngles=function(){var e=this;this.series.each(function(t){t._startAngleInternal=e.startAngle,t._endAngleInternal=e.endAngle})},i.prototype.updateRadius=function(){var e=this.chartContainer,t=ci(this.startAngle,this.endAngle,1),r={x:0,y:0,width:0,height:0},s=this.innerRadius;s instanceof ae&&(r=ci(this.startAngle,this.endAngle,s.value)),t=xr([t,r]);var n=Math.min(e.innerWidth/t.width,e.innerHeight/t.height);b(n)||(n=0);var o=ot(this.radius,n),l=ot(this.innerRadius,n),u=(o-l)/this.series.length;(o!=this._chartPixelRadius||l!=this._chartPixelInnerRadius)&&(this._chartPixelRadius=o,this._chartPixelInnerRadius=l,V(Yi(this.series.iterator()),function(h){var p=h[0],d=h[1],c=l+ot(d.radius,o-l),f=l+ot(d.innerRadius,o-l);b(c)||(c=l+u*(p+1)),b(f)||(f=l+u*p),d.pixelRadius=c,d.pixelInnerRadius=f}),this.seriesContainer.definedBBox={x:o*t.x,y:o*t.y,width:o*t.width,height:o*t.height},this.seriesContainer.invalidateLayout())},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)&&this.invalidateLayout()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new ei},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e)&&(this.updateRadius(),this.updateSeriesAngles())},enumerable:!0,configurable:!0}),i})(go);_.registeredClasses.PieChart=Tt;_.registeredClasses.PieChartDataItem=au;var Di=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Column",e.width=k(80),e.height=k(80),e.events.disableType("transformed"),e.applyOnClones=!0,e.strokeOpacity=1,e.layout="none",e.createAssets(),e.events.on("childadded",e.handleKidAdded,e,!1),e}return i.prototype.handleKidAdded=function(){this.layout=="none"&&(this.layout="absolute")},i.prototype.createAssets=function(){this.column=this.createChild(Ft),this.column.shouldClone=!1,this.column.isMeasured=!1,this.column.cornerRadius(0,0,0,0),this._disposers.push(this.column)},i.prototype.validate=function(){a.prototype.validate.call(this);var e=this.column;e&&(e.width=le(this.pixelWidth,this.maxWidth),e.height=le(this.pixelHeight,this.maxHeight),e.invalid&&e.validate())},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.column&&this.column.copyFrom(e.column)},Object.defineProperty(i.prototype,"bbox",{get:function(){return this.definedBBox?this.definedBBox:this.column?{x:0,y:0,width:this.column.measuredWidth,height:this.column.measuredHeight}:{x:0,y:0,width:le(this.pixelWidth,this.maxWidth),height:le(this.pixelHeight,this.maxHeight)}},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.Column=Di;var Ht=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ColumnSeriesDataItem",e.locations.dateX=.5,e.locations.dateY=.5,e.locations.categoryX=.5,e.locations.categoryY=.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"column",{get:function(){return this._column},set:function(e){this.setColumn(e)},enumerable:!0,configurable:!0}),i.prototype.setColumn=function(e){var t=this;if(this._column&&e!=this._column&&ee(this.sprites,this._column),this._column=e,e){var r=e.dataItem;r&&r!=this&&(r.column=void 0),this.addSprite(e),this._disposers.push(new ye(function(){t.component&&t.component.columns.removeValue(e)}))}},Object.defineProperty(i.prototype,"width",{get:function(){var e=this.properties.width;return this._adapterO&&(e=this._adapterO.apply("width",e)),e},set:function(e){this.properties.width!=e&&(this.properties.width=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"height",{get:function(){var e=this.properties.height;return this._adapterO&&(e=this._adapterO.apply("height",e)),e},set:function(e){this.properties.height!=e&&(this.properties.height=e,this.component&&this.component.validateDataElement(this))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rangesColumns",{get:function(){return this._rangesColumns||(this._rangesColumns=new _e),this._rangesColumns},enumerable:!0,configurable:!0}),i})(rs);var it=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._startLocation=0,e._endLocation=1,e.className="ColumnSeries",e.width=k(100),e.height=k(100),e.strokeOpacity=0,e.fillOpacity=1,e.clustered=!0;var t=e.mainContainer.createChild(Y);return t.shouldClone=!1,t.isMeasured=!1,t.layout="none",e._columnsContainer=t,e.columns.template.pixelPerfect=!1,e.tooltipColorSource=e.columns.template,e.applyTheme(),e}return Object.defineProperty(i.prototype,"columnsContainer",{get:function(){return this._columnsContainer},enumerable:!0,configurable:!0}),i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Column Series"))},i.prototype.createDataItem=function(){return new Ht},i.prototype.validate=function(){var e=this;if(this.group.node.removeAttribute("fill"),this.chart&&this.xAxis&&this.yAxis){var t=this.chart.series,r=0,s=0,n=[];V(t.iterator(),function(y){if(y instanceof i&&e.baseAxis==y.baseAxis){var g;e.baseAxis==e.xAxis?g=e.chart.yAxes.indexOf(y.yAxis):g=e.chart.xAxes.indexOf(y.xAxis),n.push({series:y,axis:g})}}),n.sort(function(y,g){return y.axis-g.axis});var o;M(n,function(y){var g=y.series;g instanceof i&&((!g.stacked&&g.clustered||o!=y.axis&&g.clustered)&&r++,g==e&&(s=r-1)),o=y.axis}),this.clustered||(s=0,r=1);var l=this.baseAxis.renderer,u=l.cellStartLocation,h=l.cellEndLocation;this._startLocation=u+s/r*(h-u),this._endLocation=u+(s+1)/r*(h-u);var p=this.xAxis,d=this.yAxis;p instanceof $e&&d instanceof Q&&p.sortBySeries==this&&this.sortCategoryAxis(p,"valueY"),d instanceof $e&&p instanceof Q&&d.sortBySeries==this&&this.sortCategoryAxis(d,"valueX")}a.prototype.validate.call(this);for(var c=0;c<this.startIndex;c++){var f=this.dataItems.getIndex(c);this.disableUnusedColumns(f)}for(var c=this.dataItems.length-1;c>this.endIndex;c--){var f=this.dataItems.getIndex(c);this.disableUnusedColumns(f)}this._propertiesChanged=!1},i.prototype.sortCategoryAxis=function(e,t){var r=this;this.dataItems.values.sort(function(n,o){return o.values[t].workingValue-n.values[t].workingValue});var s=0;this.dataItems.each(function(n){n._index=s,s++}),e.dataItems.each(function(n){var o=n.component,l=o.categoryToPosition(n.category)-n.deltaPosition,u=o.getSeriesDataItemByCategory(n.category,r);if(u){var h=r.dataItems.indexOf(u);n._index=h;var p=I((h+.5)/r.dataItems.length-l,3);n.deltaAnimation&&!n.deltaAnimation.isDisposed()&&n.deltaAnimation.animationOptions[0].to==p||p!=I(n.deltaPosition,3)&&(n.deltaAnimation&&n.deltaAnimation.stop(),n.deltaAnimation=n.animate({property:"deltaPosition",from:-p,to:0},o.interpolationDuration,o.interpolationEasing),r._disposers.push(n.deltaAnimation))}}),e.dataItems.values.sort(function(n,o){return n.index-o.index})},i.prototype.validateDataElement=function(e){this.chart&&this.xAxis&&this.yAxis&&(this.validateDataElementReal(e),a.prototype.validateDataElement.call(this,e))},i.prototype.getStartLocation=function(e){var t=this._startLocation;return this.baseAxis==this.xAxis?t+=e.locations[this.xOpenField]-.5:t+=e.locations[this.yOpenField]-.5,t},i.prototype.getEndLocation=function(e){var t=this._endLocation;return this.baseAxis==this.xAxis?t+=e.locations[this.xField]-.5:t+=e.locations[this.yField]-.5,t},i.prototype.validateDataElementReal=function(e){var t=this,r,s,n,o,l=this.getStartLocation(e),u=this.getEndLocation(e),h=this.xField,p=this.xOpenField,d=this.yField,c=this.yOpenField,f=this.columns.template,y=f.percentWidth,g=f.percentHeight,v=f.pixelWidth,x=f.pixelHeight,P=f.maxWidth,T=f.maxHeight,C=f.pixelPaddingLeft,O=f.pixelPaddingRight,w=f.pixelPaddingTop,D=f.pixelPaddingBottom,A=!1,H=e.width;$(H)&&(b(H)&&(v=H),H instanceof ae&&(y=H.value*100));var E=e.height;if($(E)&&(b(E)&&(x=E),E instanceof ae&&(g=E.value*100)),this.xAxis instanceof $e&&this.yAxis instanceof $e){if(!e.hasValue(this._xValueFields)||!e.hasValue(this._yValueFields))return;if(l=0,u=1,!xt(y)){var j=I((u-l)*(1-y/100)/2,5);l+=j,u-=j}if(r=this.xAxis.getX(e,p,l),s=this.xAxis.getX(e,h,u),xt(y)){var j=(s-r-v)/2;r+=j,s-=j}if(!xt(P)&&P<Math.abs(s-r)){var j=(s-r-P)/2;r+=j,s-=j}if(l=0,u=1,!xt(g)){var j=I((1-g/100)/2,5);l+=j,u-=j}if(n=this.yAxis.getY(e,c,l),o=this.yAxis.getY(e,d,u),xt(g)){var j=(o-n-x)/2;o+=j,n-=j}if(!xt(T)&&T<Math.abs(o-n)){var j=(o-n-T)/2;o+=j,n-=j}s=this.fixHorizontalCoordinate(s),r=this.fixHorizontalCoordinate(r),n=this.fixVerticalCoordinate(n),o=this.fixVerticalCoordinate(o)}else if(this.baseAxis==this.xAxis){if(!e.hasValue(this._yValueFields))return;if(!xt(y)){var j=I((u-l)*(1-y/100)/2,5);l+=j,u-=j}if(r=this.xAxis.getX(e,p,l),s=this.xAxis.getX(e,h,u),xt(y)){var j=(s-r-v)/2;r+=j,s-=j}if(!xt(P)&&P<Math.abs(s-r)){var j=(s-r-P)/2;r+=j,s-=j}var ce=e.locations[c],be=e.locations[d];this.yAxis instanceof Q&&this.dataFields[this.yField]!=this.dataFields[this.yOpenField]&&(ce=0,be=0),o=this.yAxis.getY(e,c,ce),n=this.yAxis.getY(e,d,be);var ke=Math.ceil(this.yAxis.axisLength);(n<0&&o<0||n>ke&&o>ke)&&(A=!0),n=this.fixVerticalCoordinate(n),o=this.fixVerticalCoordinate(o),Math.abs(s-r)-C-O==0&&(A=!0)}else{if(!e.hasValue(this._xValueFields))return;if(!xt(g)){var j=I((u-l)*(1-g/100)/2,5);l+=j,u-=j}if(n=this.yAxis.getY(e,c,l),o=this.yAxis.getY(e,d,u),xt(g)){var j=(o-n-x)/2;o-=j,n+=j}if(!xt(T)&&T<Math.abs(o-n)){var j=(o-n-T)/2;o-=j,n+=j}var K=e.locations[h],De=e.locations[p];this.xAxis instanceof Q&&this.dataFields[this.xField]!=this.dataFields[this.xOpenField]&&(K=0,De=0),s=this.xAxis.getX(e,h,K),r=this.xAxis.getX(e,p,De);var ke=Math.ceil(this.xAxis.axisLength);(s<0&&r<0||s>ke&&r>ke)&&(A=!0),s=this.fixHorizontalCoordinate(s),r=this.fixHorizontalCoordinate(r),Math.abs(n-o)-w-D==0&&(A=!0)}var Le=Math.abs(s-r),ze=Math.abs(o-n),ft=Math.min(r,s),at=Math.min(n,o);if(A)this.disableUnusedColumns(e);else{var oe;e.column?(oe=e.column,this._propertiesChanged&&(Ke(this,oe,He),Ke(this.columns.template,oe,He),M(He,function(Be){oe[Be]=oe[Be]}))):(oe=this.columns.create(),Ke(this,oe,He),Ke(this.columns.template,oe,He),e.addSprite(oe),e.column=oe,oe.paper=this.paper,this.itemsFocusable()?($(this.role)||(this.role="menu"),$(oe.role)||(oe.role="menuitem"),oe.focusable=!0):($(this.role)||(this.role="list"),$(oe.role)||(oe.role="listitem"),oe.focusable=!1),oe.focusable&&(oe.events.on("focus",function(Be){oe.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),oe.events.on("blur",function(Be){oe.readerTitle=""},void 0,!1)),oe.hoverable&&(oe.events.on("over",function(Be){oe.readerTitle=t.populateString(t.itemReaderText,e)},void 0,!1),oe.events.on("out",function(Be){oe.readerTitle=""},void 0,!1)),oe.parent=this.columnsContainer,oe.virtualParent=this),oe.width=Le,oe.height=ze,oe.x=ft,oe.y=at,oe.realX=r,oe.realY=n,oe.realWidth=s-r,oe.realHeight=o-n,this.setColumnStates(oe),oe.invalid&&oe.validate(),oe.__disabled=!1,V(this.axisRanges.iterator(),function(Be){var st=e.rangesColumns.getKey(Be.uid);st||(st=t.columns.create(),Ke(Be.contents,st,He),e.addSprite(st),e.rangesColumns.setKey(Be.uid,st),st.paper=t.paper),st.parent=Be.contents,st.width=Le,st.height=ze,st.x=ft,st.y=at,t.setColumnStates(st),st.invalid&&st.validate(),st.__disabled=!1})}e.itemWidth=Le,e.itemHeight=ze},i.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.width=0,e.column.height=0,e.column.__disabled=!0),V(this.axisRanges.iterator(),function(t){var r=e.rangesColumns.getKey(t.uid);r&&(r.width=0,r.height=0,r.__disabled=!0)}))},i.prototype.setColumnStates=function(e){if(this._dropFromOpenState||this._dropFromPreviousState||this._riseFromOpenState||this._riseFromPreviousState){var t=e.dataItem;if(this.xAxis instanceof Q||this.yAxis instanceof Q){var r,s=void 0,n=void 0;this.baseAxis==this.yAxis?(this.xOpenField&&this.xField&&this.xAxis instanceof Q&&(r=t.getValue(this.xOpenField),s=t.getValue(this.xField)),n=t.getValue(this.xAxis.axisFieldName+"X","previousChange")):(this.yOpenField&&this.yField&&this.yAxis instanceof Q&&(r=t.getValue(this.yOpenField),s=t.getValue(this.yField)),n=t.getValue(this.yAxis.axisFieldName+"Y","previousChange")),s<r?(t.droppedFromOpen=!0,e.defaultState.copyFrom(this._dropFromOpenState),e.setState(this._dropFromOpenState,0)):(t.droppedFromOpen=!1,e.defaultState.copyFrom(this._riseFromOpenState),e.setState(this._riseFromOpenState,0)),n<0?(t.droppedFromPrevious=!0,e.defaultState.copyFrom(this._dropFromPreviousState),e.setState(this._dropFromPreviousState,0)):(t.droppedFromPrevious=!1,e.defaultState.copyFrom(this._riseFromPreviousState),e.setState(this._riseFromPreviousState,0))}}},Object.defineProperty(i.prototype,"columns",{get:function(){return this._columns||(this._columns=new Te(this.createColumnTemplate()),this._disposers.push(new ge(this._columns)),this._disposers.push(this._columns.template)),this._columns},enumerable:!0,configurable:!0}),i.prototype.createColumnTemplate=function(){return new Di},Object.defineProperty(i.prototype,"clustered",{get:function(){return this.getPropertyValue("clustered")},set:function(e){this.setPropertyValue("clustered",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropFromOpenState",{get:function(){return this._dropFromOpenState||(this._dropFromOpenState=this.states.create("dropFromOpenState")),this._dropFromOpenState},set:function(e){this._dropFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dropFromPreviousState",{get:function(){return this._dropFromPreviousState||(this._dropFromPreviousState=this.states.create("dropFromPreviousState")),this._dropFromPreviousState},set:function(e){this._dropFromPreviousState=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"riseFromOpenState",{get:function(){return this._riseFromOpenState||(this._riseFromOpenState=this.states.create("riseFromOpenState")),this._riseFromOpenState},set:function(e){this._riseFromOpenState=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"riseFromPreviousState",{get:function(){return this._riseFromPreviousState||(this._riseFromPreviousState=this.states.create("riseFromPreviousState")),this._riseFromPreviousState},set:function(e){this._riseFromPreviousState=e},enumerable:!0,configurable:!0}),i.prototype.updateLegendValue=function(e,t){var r=this;if(a.prototype.updateLegendValue.call(this,e,t),this.legendDataItem){var s=this.legendDataItem.marker,n,o;e&&(e.droppedFromOpen?n=this._dropFromOpenState:n=this._riseFromOpenState,e.droppedFromPrevious?o=this._dropFromPreviousState:o=this._riseFromPreviousState),V(s.children.iterator(),function(l){e?(l.setState(o),l.setState(n)):(l.setState(r._riseFromPreviousState),l.setState(r._riseFromOpenState))})}},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var s=e.createChild(Ft);s.shouldClone=!1,Ke(this,s,He),s.copyFrom(this.columns.template),s.padding(0,0,0,0),s.width=t,s.height=r;var n=e.dataItem;n.color=this.fill,n.colorOrig=this.fill},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.columns.template.copyFrom(e.columns.template)},i.prototype.getBulletLocationX=function(e,t){if(this.baseAxis==this.xAxis){var r=e.locationX;b(r)||(r=.5);var s=this.getEndLocation(e.dataItem),n=this.getStartLocation(e.dataItem);return s-(s-n)*r}else return a.prototype.getBulletLocationX.call(this,e,t)},i.prototype.getBulletLocationY=function(e,t){if(this.baseAxis==this.yAxis){var r=e.locationY;b(r)||(r=.5);var s=this.getEndLocation(e.dataItem),n=this.getStartLocation(e.dataItem);return s-(s-n)*r}else return a.prototype.getBulletLocationY.call(this,e,t)},i.prototype.getAdjustedXLocation=function(e,t,r){return b(r)||(e?r=e.locations[t]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*(1-r)},i.prototype.getAdjustedYLocation=function(e,t,r){return b(r)||(e?r=e.locations[t]:r=.5),this._endLocation-(this._endLocation-this._startLocation)*r},i.prototype.fixVerticalCoordinate=function(e){var t=this.columns.template.pixelPaddingBottom,r=this.columns.template.pixelPaddingTop,s=-r,n=this.yAxis.axisLength+t;return X(e,s,n)},i.prototype.fixHorizontalCoordinate=function(e){var t=this.columns.template.pixelPaddingLeft,r=this.columns.template.pixelPaddingRight,s=-t,n=this.xAxis.axisLength+r;return X(e,s,n)},i.prototype.disposeData=function(){a.prototype.disposeData.call(this),this.columns.clear()},i})(Vt);_.registeredClasses.ColumnSeries=it;_.registeredClasses.ColumnSeriesDataItem=Ht;var ns=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Candlestick",e.layout="none",e}return i.prototype.createAssets=function(){a.prototype.createAssets.call(this),this.lowLine=this.createChild(Kt),this.lowLine.shouldClone=!1,this.highLine=this.createChild(Kt),this.highLine.shouldClone=!1},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.lowLine&&this.lowLine.copyFrom(e.lowLine),this.highLine&&this.highLine.copyFrom(e.highLine)},i})(Di);_.registeredClasses.Candlestick=ns;var os=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.values.lowValueX={},e.values.lowValueY={},e.values.highValueX={},e.values.highValueY={},e.className="CandlestickSeriesDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"lowValueX",{get:function(){return this.values.lowValueX.value},set:function(e){this.setValue("lowValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lowValueY",{get:function(){return this.values.lowValueY.value},set:function(e){this.setValue("lowValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"highValueX",{get:function(){return this.values.highValueX.value},set:function(e){this.setValue("highValueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"highValueY",{get:function(){return this.values.highValueY.value},set:function(e){this.setValue("highValueY",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closeValueX",{get:function(){return this.values.valueX.value},set:function(e){this.setValue("valueX",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"closeValueY",{get:function(){return this.values.valueY.value},set:function(e){this.setValue("valueY",e)},enumerable:!0,configurable:!0}),i})(Ht);var $t=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="CandlestickSeries",e.groupFields.lowValueX="low",e.groupFields.lowValueY="low",e.groupFields.highValueX="high",e.groupFields.highValueY="high",e.strokeOpacity=1;var t=new J,r=t.getFor("positive"),s=t.getFor("negative");return e.dropFromOpenState.properties.fill=s,e.dropFromOpenState.properties.stroke=s,e.riseFromOpenState.properties.fill=r,e.riseFromOpenState.properties.stroke=r,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Candlestick Series"))},i.prototype.createDataItem=function(){return new os},i.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e),this.validateCandlestick(e)},i.prototype.validateCandlestick=function(e){var t=e.column;if(t){var r=t.lowLine,s=t.highLine;if(this.baseAxis==this.xAxis){var n=t.pixelWidth/2;r.x=n,s.x=n;var o=e.getWorkingValue(this.yOpenField),l=e.getWorkingValue(this.yField),u=this.yAxis.getY(e,this.yOpenField),h=this.yAxis.getY(e,this.yField),p=this.yAxis.getY(e,this.yLowField),d=this.yAxis.getY(e,this.yHighField),c=t.pixelY;r.y1=p-c,s.y1=d-c,o<l?(r.y2=u-c,s.y2=h-c):(r.y2=h-c,s.y2=u-c)}if(this.baseAxis==this.yAxis){var f=t.pixelHeight/2;r.y=f,s.y=f;var y=e.getWorkingValue(this.xOpenField),g=e.getWorkingValue(this.xField),v=this.xAxis.getX(e,this.xOpenField),x=this.xAxis.getX(e,this.xField),P=this.xAxis.getX(e,this.xLowField),T=this.xAxis.getX(e,this.xHighField),C=t.pixelX;r.x1=P-C,s.x1=T-C,y<g?(r.x2=v-C,s.x2=x-C):(r.x2=x-C,s.x2=v-C)}V(this.axisRanges.iterator(),function(O){var w=e.rangesColumns.getKey(O.uid);if(w){var D=w.lowLine;D.x=r.x,D.y=r.y,D.x1=r.x1,D.x2=r.x2,D.y1=r.y1,D.y2=r.y2;var A=w.highLine;A.x=s.x,A.y=s.y,A.x1=s.x1,A.x2=s.x2,A.y1=s.y1,A.y2=s.y2}})}},Object.defineProperty(i.prototype,"xLowField",{get:function(){return this._xLowField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yLowField",{get:function(){return this._yLowField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xHighField",{get:function(){return this._xHighField},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yHighField",{get:function(){return this._yHighField},enumerable:!0,configurable:!0}),i.prototype.defineFields=function(){a.prototype.defineFields.call(this);var e=this.xAxis,t=this.yAxis;if(e&&t){if(this.baseAxis==e){var r=Ya(t.axisFieldName);this._yLowField="low"+r+"Y",this._yHighField="high"+r+"Y"}if(this.baseAxis==t){var s=Ya(e.axisFieldName);this._xLowField="low"+s+"X",this._xHighField="high"+s+"X"}this.addValueField(e,this._xValueFields,this._xLowField),this.addValueField(e,this._xValueFields,this._xHighField),this.addValueField(t,this._yValueFields,this._yLowField),this.addValueField(t,this._yValueFields,this._yHighField)}},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var s=e.createChild(ns);s.shouldClone=!1,s.copyFrom(this.columns.template);var n,o,l=s.lowLine,u=s.highLine;this.baseAxis==this.yAxis?(n=t/3,o=r,l.y=r/2,u.y=r/2,l.x2=t/3,u.x2=t/3,u.x=t/3*2,s.column.x=t/3):(n=t,o=r/3,l.x=t/2,u.x=t/2,l.y2=r/3,u.y2=r/3,u.y=r/3*2,s.column.y=r/3),s.width=n,s.height=o,Ke(this,e,He),Ke(this.columns.template,s,He),s.stroke=this.riseFromOpenState.properties.stroke,s.fill=s.stroke;var h=e.dataItem;h.color=s.fill,h.colorOrig=s.fill},i.prototype.createColumnTemplate=function(){return new ns},i})(it);_.registeredClasses.CandlestickSeries=$t;_.registeredClasses.CandlestickSeriesDataItem=os;var Rp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="StepLineSeriesSegment",e}return i.prototype.drawSegment=function(e,t,r,s,n,o){if(e.length>0&&t.length>0)if(n){var l=R(e[0]);if(e.length>0)for(var u=1;u<e.length;u++){var h=e[u];u/2==Math.round(u/2)?l+=R(h):l+=F(h)}this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l=R(e[0])+Za(e),l+=F(t[0])+Za(t),l+=F(e[0]),l+=Ee(),this.fillSprite.path=l)}else{var l=R(e[0])+Za(e);this.strokeSprite.path=l,(this.fillOpacity>0||this.fillSprite.fillOpacity>0)&&(l+=F(t[0])+Za(t),l+=F(e[0]),l+=Ee(),this.fillSprite.path=l)}else this.strokeSprite.path="",this.fillSprite.path=""},i})(hn);_.registeredClasses.StepLineSeriesSegment=Rp;var Mp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="StepLineSeriesDataItem",e.applyTheme(),e}return i})(Ni);var yi=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="StepLineSeries",e.applyTheme(),e.startLocation=0,e.endLocation=1,e}return i.prototype.createDataItem=function(){return new Mp},i.prototype.addPoints=function(e,t,r,s,n){var o,l,u,h;this.baseAxis==this.xAxis&&(o=this.startLocation,l=this.endLocation,u=this.getAdjustedXLocation(t,this.yOpenField),h=this.getAdjustedXLocation(t,this.yField)),this.baseAxis==this.yAxis&&(u=this.startLocation,h=this.endLocation,o=this.getAdjustedXLocation(t,this.xOpenField),l=this.getAdjustedXLocation(t,this.xField));var p=this.xAxis.getX(t,r,o),d=this.yAxis.getY(t,s,u),c=this.xAxis.getX(t,r,l),f=this.yAxis.getY(t,s,h);if(p=X(p,-1e5,1e5),d=X(d,-1e5,1e5),c=X(c,-1e5,1e5),f=X(f,-1e5,1e5),!this.noRisers&&e.length>1){var y=e[e.length-1];this.baseAxis==this.xAxis&&(n?e.push({x:y.x,y:f}):e.push({x:p,y:y.y})),this.baseAxis==this.yAxis&&(n?e.push({x:c,y:y.y}):e.push({x:y.x,y:d}))}var g={x:p,y:d},v={x:c,y:f};n?e.push(v,g):e.push(g,v)},i.prototype.drawSegment=function(e,t,r){var s=!1;this.yAxis==this.baseAxis&&(s=!0),e.drawSegment(t,r,this.tensionX,this.tensionY,this.noRisers,s)},i.prototype.createSegment=function(){return new Rp},Object.defineProperty(i.prototype,"noRisers",{get:function(){return this.getPropertyValue("noRisers")},set:function(e){this.setPropertyValue("noRisers",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e,!0)},enumerable:!0,configurable:!0}),i})(et);_.registeredClasses.StepLineSeries=yi;_.registeredClasses.StepLineSeriesDataItem=Mp;var fn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="LightenFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.lightness=0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"lightness",{get:function(){return this.properties.lightness},set:function(e){this.properties.lightness=e;var t=e+1;this.feColorMatrix.attr({values:t+" 0 0 0 0 0 "+t+" 0 0 0 0 0 "+t+" 0 0 0 0 0 1 0"})},enumerable:!0,configurable:!0}),i})(ji);_.registeredClasses.LightenFilter=fn;var jp=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="Slice3D",e.layout="none";var t=e.createChild(U);e.edge=t,t.shouldClone=!1,t.isMeasured=!1,t.toBack(),e.angle=30,e.depth=20;var r=e.createChild(U);e.sideA=r,r.shouldClone=!1,r.isMeasured=!1;var s=e.createChild(U);return e.sideB=s,s.shouldClone=!1,s.isMeasured=!1,e.applyTheme(),e}return i.prototype.setFill=function(e){a.prototype.setFill.call(this,e);var t;if(e instanceof de)t=e.hex;else if(e instanceof Mt||e instanceof Si)t=e.stops.getIndex(0).color.hex;else{var r=new fn;r.lightness=-.25,this.edge.filters.push(r),this.sideA.filters.push(r.clone()),this.sideB.filters.push(r.clone())}if(t){var s=Z(t).lighten(-.25);this.edge.fill=s,this.sideA.fill=s,this.sideB.fill=s,this.edge.stroke=s,this.sideA.stroke=s,this.sideB.stroke=s}},i.prototype.draw=function(){if(this.cornerRadius=0,this.innerCornerRadius=0,a.prototype.draw.call(this),this.arc!==0&&this.radius>0&&this.depth>0){this.sideB.show(0),this.sideA.show(0),this.edge.show(0);for(var e=this.startAngle,t=this.arc,r=this.pixelInnerRadius||0,s=this.radiusY||0,n=this.radius,o=e+t,l=s/n*r,u={x:B(e)*r,y:N(e)*l},h={x:B(e)*n,y:N(e)*s},p={x:B(o)*n,y:N(o)*s},d={x:B(o)*r,y:N(o)*l},c=this.depth,f={x:u.x,y:u.y-c},y={x:h.x,y:h.y-c},g={x:p.x,y:p.y-c},v={x:d.x,y:d.y-c},x="",P=Math.ceil(t/5),T=t/P,C=e,O=y,w=0;w<P;w++)if(C+=T,C>0&&C<180){x+=R(O);var D={x:B(C)*n,y:N(C)*s-c};x+=F({x:O.x,y:O.y+c}),x+=Ci({x:D.x,y:D.y+c},n,s,!0),x+=F(D),x+=Ci(O,n,s),x+="z",O=D}else{x+=R(O);var D={x:B(C)*n,y:N(C)*s-c};x+=Ci(D,n,s,!0),x+=F({x:D.x,y:D.y+c}),x+=Ci({x:O.x,y:O.y+c},n,s),x+=F(O),x+="z",O=D}O=f,C=e;for(var w=0;w<P;w++)if(C+=T,C>0&&C<180){x+=R(O);var D={x:B(C)*r,y:N(C)*l-c};x+=F({x:O.x,y:O.y+c}),x+=Ci({x:D.x,y:D.y+c},r,l,!0),x+=F(D),x+=Ci(O,r,l),x+="z",O=D}else{x+=R(O);var D={x:B(C)*r,y:N(C)*l-c};x+=Ci(D,r,l,!0),x+=F({x:D.x,y:D.y+c}),x+=Ci({x:O.x,y:O.y+c},r,l),x+=F(O),x+="z",O=D}this.edge.path=x,this.sideA.path=R(u)+F(h)+F(y)+F(f)+Ee(),this.sideB.path=R(p)+F(d)+F(v)+F(g)+Ee(),this.startAngle<90?this.sideA.toBack():this.sideA.toFront(),this.startAngle+this.arc>90?this.sideB.toBack():this.sideB.toFront(),this.slice.dy=-c}else this.sideA.hide(0),this.sideB.hide(0),this.edge.hide(0)},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){var e=this.getPropertyValue("angle");return b(e)||(e=0),e},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radiusY",{get:function(){var e=this.getPropertyValue("radiusY");return b(e)||(e=this.radius-this.radius*this.angle/90),e},set:function(e){this.setPropertyValue("radiusY",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.edge.copyFrom(e.edge),this.sideA.copyFrom(e.sideA),this.sideB.copyFrom(e.sideB)},i})(Ei);var Np=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PieSeries3DDataItem",e.values.depthValue={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"depthValue",{get:function(){return this.values.depthValue.value},set:function(e){this.setValue("depthValue",e)},enumerable:!0,configurable:!0}),i})(Lr);var su=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PieSeries3D",e.applyTheme(),e}return i.prototype.createDataItem=function(){return new Np},i.prototype.createSlice=function(){return new jp},i.prototype.validateDataElement=function(e){var t=e.slice,r=this.depth;b(r)||(r=this.chart.depth);var s=e.values.depthValue.percent;b(s)||(s=100),t.depth=s*r/100;var n=this.angle;b(n)||(n=this.chart.angle),t.angle=n,a.prototype.validateDataElement.call(this,e)},i.prototype.validate=function(){a.prototype.validate.call(this);for(var e=this._workingStartIndex;e<this._workingEndIndex;e++){var t=this.dataItems.getIndex(e),r=t.slice,s=r.startAngle;s>=-90&&s<90?r.toFront():s>=90&&r.toBack()}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e)},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var t=e.dataItem,r=t.slice;e.y=e.pixelY-r.depth},i})(ei);_.registeredClasses.PieSeries3D=su;_.registeredClasses.PieSeries3DDataItem=Np;var vv=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PieChart3DDataItem",e.applyTheme(),e}return i})(au);var om=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PieChart3D",e.depth=20,e.angle=10,e.applyTheme(),e}return Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){e=X(e,0,90),this.setPropertyValue("angle",e)&&this.invalidateDataUsers()},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new su},i})(Tt);_.registeredClasses.PieChart3D=om;var lm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="SlicedChartDataItem",e.applyTheme(),e}return i})(yo);var um=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="SlicedChart",e.seriesContainer.layout="horizontal",e.padding(15,15,15,15),e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Sliced chart"))},i.prototype.validate=function(){a.prototype.validate.call(this)},i})(go);_.registeredClasses.SlicedChart=um;_.registeredClasses.SlicedChartDataItem=lm;var Pa=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.legendSettings=new ho,e.className="FlowDiagramNode",e.isMeasured=!1,new J,e.draggable=!0,e.inert=!0,e.setStateOnChildren=!0,e.events.on("positionchanged",e.invalidateLinks,e,!1),e.events.on("sizechanged",e.invalidateLinks,e,!1),e}return i.prototype.handleHit=function(e){this.isHidden||this.isHiding?this.show():this.hide()},i.prototype.show=function(e){var t=a.prototype.show.call(this,e);return this.outgoingDataItems.each(function(r){(!r.toNode||r.toNode&&!r.toNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),e),r.link.show())}),this.incomingDataItems.each(function(r){(!r.fromNode||r.fromNode&&!r.fromNode.isHidden)&&(r.setWorkingValue("value",r.getValue("value"),e),r.link.show())}),t},i.prototype.hide=function(e){var t=a.prototype.hide.call(this,e);return this.outgoingDataItems.each(function(r){r.setWorkingValue("value",0,e),r.link.hide()}),this.incomingDataItems.each(function(r){r.setWorkingValue("value",0,e),r.link.hide()}),t},i.prototype.validate=function(){this.isDisposed()||(a.prototype.validate.call(this),this.invalidateLinks())},i.prototype.invalidateLinks=function(){var e=this;this.outgoingDataItems.each(function(t){var r=t.link;if(r.colorMode=="fromNode"&&(r.fill=r.dataItem.fromNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var s=r.gradient.stops.getIndex(0);s&&(s.color=e.color,r.gradient.validate())}}),this.incomingDataItems.each(function(t){var r=t.link;if(r.colorMode=="toNode"&&(r.fill=r.dataItem.toNode.color),r.colorMode=="gradient"){r.fill=r.gradient,r.stroke=r.gradient;var s=r.gradient.stops.getIndex(1);s&&(s.color=e.color,r.gradient.validate())}})},Object.defineProperty(i.prototype,"incomingDataItems",{get:function(){var e=this;if(!this._incomingDataItems){var t=new he;t.events.on("inserted",function(){e.chart.sortBy=="name"?e._incomingSorted=Hr(e._incomingDataItems.iterator(),function(r,s){return Mn(r.fromName,s.fromName)}):e.chart.sortBy=="value"?e._incomingSorted=Hr(e._incomingDataItems.iterator(),function(r,s){return Hs(fi(r.value,s.value))}):e._incomingSorted=e._incomingDataItems.iterator()},void 0,!1),this._incomingDataItems=t}return this._incomingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"outgoingDataItems",{get:function(){var e=this;if(!this._outgoingDataItems){var t=new he;t.events.on("inserted",function(){e.chart.sortBy=="name"?e._outgoingSorted=Hr(e._outgoingDataItems.iterator(),function(r,s){return Mn(r.fromName,s.fromName)}):e.chart.sortBy=="value"?e._outgoingSorted=Hr(e._outgoingDataItems.iterator(),function(r,s){return Hs(fi(r.value,s.value))}):e._outgoingSorted=e._outgoingDataItems.iterator()},void 0,!1),this._outgoingDataItems=t}return this._outgoingDataItems},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.getPropertyValue("name")},set:function(e){this.setPropertyValue("name",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"total",{get:function(){return this.getPropertyValue("total")},set:function(e){this.setPropertyValue("total",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalIncoming",{get:function(){return this.getPropertyValue("totalIncoming")},set:function(e){this.setPropertyValue("totalIncoming",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"totalOutgoing",{get:function(){return this.getPropertyValue("totalOutgoing")},set:function(e){this.setPropertyValue("totalOutgoing",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.getPropertyValue("color")},set:function(e){this.setColorProperty("color",e),this._background&&(this._background.fill=e),this.fill=e},enumerable:!0,configurable:!0}),i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var s=e.createChild(Ft);s.shouldClone=!1,Ke(this,s,He),s.stroke=this.fill,s.copyFrom(this),s.padding(0,0,0,0),s.width=t,s.height=r;var n=e.dataItem;n.color=s.fill,n.colorOrig=s.fill},Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,this._legendDataItem.itemContainer.deepInvalidate()},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.FlowDiagramNode=Pa;var Zr=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._distance=0,e.className="Polyline",e.element=e.paper.add("path"),e.shapeRendering="auto",e.fill=Z(),e.strokeOpacity=1,e.applyTheme(),e}return i.prototype.makePath=function(){this._distance=0;var e=this.segments;if(e&&e.length>0){for(var t="",r=0,s=e.length;r<s;r++){var n=e[r];if(n.length>0){t+=R(n[0]);for(var o=1;o<n.length;o++){var l=n[o];t+=F(l),this._distance+=xe(n[o-1],l)}}}this.path=t}this._realSegments=e},Object.defineProperty(i.prototype,"segments",{get:function(){return this.getPropertyValue("segments")},set:function(e){this.setPropertyValue("segments",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"distance",{get:function(){return this._distance},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t=0;e<0&&(e=Math.abs(e),t=180);var r=this._realSegments;if(r){for(var s=this.distance,n=0,o=void 0,l=0,u=0,h=void 0,p=void 0,d=0;d<r.length;d++){var c=r[d];if(c.length>1){for(var f=1;f<c.length;f++)if(h=c[f-1],p=c[f],l=n/s,o=xe(h,p),n+=o,u=n/s,l<=e&&u>e){d=r.length;break}}else c.length==1&&(h=c[0],p=c[0],l=0,u=1)}if(h&&p){var y=(e-l)/(u-l),g=Ma(h,p,y);return{x:g.x,y:g.y,angle:t+nt(h,p)}}}return{x:0,y:0,angle:0}},Object.defineProperty(i.prototype,"realSegments",{get:function(){return this._realSegments},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.Polyline=Zr;var Sa=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="FlowDiagramLink";var t=new J;return e.maskBullets=!1,e.colorMode="fromNode",e.layout="none",e.isMeasured=!1,e.startAngle=0,e.endAngle=0,e.strokeOpacity=0,e.verticalCenter="none",e.horizontalCenter="none",e.tooltipText="{fromName}\u2192{toName}:{value.value}",e.tooltipLocation=.5,e.link=e.createChild(U),e.link.shouldClone=!1,e.link.setElement(e.paper.add("path")),e.link.isMeasured=!1,e.fillOpacity=.2,e.fill=t.getFor("alternativeBackground"),e.applyTheme(),e}return i.prototype.positionBullets=function(){var e=this;V(this.bullets.iterator(),function(t){t.parent=e.bulletsContainer,t.maxWidth=e.maxWidth,t.maxHeight=e.maxHeight,e.positionBullet(t)})},Object.defineProperty(i.prototype,"bulletsContainer",{get:function(){if(!this._bulletsContainer){var e=this.createChild(Y);e.shouldClone=!1,e.layout="none",this._bulletsContainer=e}return this._bulletsContainer},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bulletsMask",{get:function(){if(!this._bulletsMask){var e=this.createChild(U);e.shouldClone=!1,e.setElement(this.paper.add("path")),e.isMeasured=!1,this._bulletsMask=e}return this._bulletsMask},enumerable:!0,configurable:!0}),i.prototype.positionBullet=function(e){var t=e.locationX;b(t)||(t=e.locationY),b(t)||(t=.5);var r=this.middleLine.positionToPoint(t);e.moveTo(r);var s=e.propertyFields.rotation,n;if(e.dataItem){var o=e.dataItem.dataContext;n=o[s]}b(n)||(n=r.angle),e.rotation=n},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"colorMode",{get:function(){return this.getPropertyValue("colorMode")},set:function(e){if(e=="gradient"){var t=this.fill;this.gradient.stops.clear(),t instanceof de&&(this.gradient.addColor(t),this.gradient.addColor(t)),this.fill=this.gradient,this.stroke=this.gradient}this.setPropertyValue("colorMode",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maskBullets",{get:function(){return this.getPropertyValue("maskBullets")},set:function(e){this.setPropertyValue("maskBullets",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tooltipLocation",{get:function(){return this.getPropertyValue("tooltipLocation")},set:function(e){this.setPropertyValue("tooltipLocation",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){a.prototype.setFill.call(this,e);var t=this._gradient;t&&e instanceof de&&(t.stops.clear(),t.addColor(e),t.addColor(e))},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"bullets",{get:function(){var e=this;return this._bullets||(this._bullets=new Te(new qt),this._disposers.push(new ge(this._bullets)),this._disposers.push(this._bullets.template),this._bullets.events.on("inserted",function(t){t.newValue.events.on("propertychanged",function(r){(r.property=="locationX"||r.property=="locationY")&&e.positionBullet(r.target)},void 0,!1)},void 0,!1)),this._bullets},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.bullets.copyFrom(e.bullets);var t=this.middleLine;t&&(t instanceof Kt&&e.middleLine instanceof Kt&&t.copyFrom(e.middleLine),t instanceof Zr&&e.middleLine instanceof Zr&&t.copyFrom(e.middleLine)),this.link.copyFrom(e.link)},i.prototype.getTooltipX=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).x},i.prototype.getTooltipY=function(){if(this.middleLine)return this.middleLine.positionToPoint(this.tooltipLocation).y},Object.defineProperty(i.prototype,"gradient",{get:function(){return this._gradient||(this._gradient=new Mt),this._gradient},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.FlowDiagramLink=Sa;var nu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ColorModifier",e.applyTheme(),e}return i.prototype.modify=function(e){return e},i})(Ze);_.registeredClasses.ColorModifier=nu;var vo=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.lightnesses=[],e.brightnesses=[],e.opacities=[],e.offsets=[],e.className="GradientModifier",e.applyTheme(),e}return Object.defineProperty(i.prototype,"lightnesses",{get:function(){return this._lightnesses},set:function(e){this._lightnesses=e,this._brightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"brightnesses",{get:function(){return this._brightnesses},set:function(e){this._brightnesses=e,this._lightnesses=[]},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacities",{get:function(){return this._opacities},set:function(e){this._opacities=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"offsets",{get:function(){return this._offsets},set:function(e){this._offsets=e},enumerable:!0,configurable:!0}),i.prototype.modify=function(e){this.gradient.clear();var t=0;this.opacities&&(t=ie(t,this.opacities.length)),this.lightnesses&&(t=ie(t,this.lightnesses.length)),this.brightnesses&&(t=ie(t,this.brightnesses.length));for(var r=1,s,n,o=0;o<t;o++){var l=e;this.opacities&&b(this.opacities[o])&&(r=this.opacities[o]),this.lightnesses&&b(this.lightnesses[o])&&(s=this.lightnesses[o],n=void 0),this.brightnesses&&b(this.brightnesses[o])&&(n=this.brightnesses[o],s=void 0),b(n)?l=e.brighten(this.brightnesses[o]):b(s)&&(l=e.lighten(this.lightnesses[o]));var u=this.offsets[o];this.gradient.addColor(l,r,u)}return this.gradient},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this._offsets=e.offsets,this._brightnesses=e.brightnesses,this._lightnesses=e.lightnesses,this._opacities=e.opacities},i})(nu);_.registeredClasses.GradientModifier=vo;var ls=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="LinearGradientModifier",e.gradient=new Mt,e.applyTheme(),e}return i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},i})(vo);_.registeredClasses.LinearGradientModifier=ls;var mn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="FlowDiagramDataItem",e.values.value={},e.applyTheme(),e}return Object.defineProperty(i.prototype,"fromName",{get:function(){return this.properties.fromName},set:function(e){this.setProperty("fromName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"toName",{get:function(){return this.properties.toName},set:function(e){this.setProperty("toName",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.setProperty("color",Qt(e))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){return this.values.value.value},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"link",{get:function(){var e=this;if(!this._link){var t=this.component.links.create();this._link=t,this.addSprite(t),this._disposers.push(new ye(function(){e.component&&e.component.links.removeValue(t)}))}return this._link},enumerable:!0,configurable:!0}),i})(co);var yn=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.colors=new Vr,e.className="FlowDiagram",e.nodePadding=20,e.sortBy="none",e.sequencedInterpolation=!0,e.colors.step=2,e.minNodeSize=.02;var t=e.chartContainer.createChild(Y);t.shouldClone=!1,t.layout="none",t.isMeasured=!1,e.linksContainer=t;var r=e.chartContainer.createChild(Y);return r.shouldClone=!1,r.layout="none",r.isMeasured=!1,e.nodesContainer=r,e.dataItem=e.createDataItem(),e.dataItem.component=e,e.applyTheme(),e}return i.prototype.dispose=function(){a.prototype.dispose.call(this),this.dataItem.dispose()},i.prototype.validateData=function(){var e=this;this._parseDataFrom==0&&this.nodes.clear(),this.sortNodes(),this.colors.reset(),a.prototype.validateData.call(this);var t=0,r=0,s,n;V(this.dataItems.iterator(),function(l){var u=l.fromName;if(u){var h=e.nodes.getKey(u);h||(h=e.nodes.create(u),h.name=u,h.chart=e,h.dataItem=l),l.fromNode=h,l.fromNode.outgoingDataItems.push(l)}var p=l.toName;if(p){var h=e.nodes.getKey(p);h||(h=e.nodes.create(p),h.name=p,h.chart=e,h.dataItem=l),l.toNode=h,l.toNode.incomingDataItems.push(l)}if(!l.fromNode){var d=new ls;d.opacities=[0,1],l.link.strokeModifier=d}if(!l.toNode){var c=new ls;c.opacities=[1,0],l.link.strokeModifier=c}var f=l.value;b(f)&&(t+=f,r++,(s>f||!b(s))&&(s=f),(n<f||!b(n))&&(n=f))});var o="value";this.dataItem.setCalculatedValue(o,n,"high"),this.dataItem.setCalculatedValue(o,s,"low"),this.dataItem.setCalculatedValue(o,t,"sum"),this.dataItem.setCalculatedValue(o,t/r,"average"),this.dataItem.setCalculatedValue(o,r,"count"),V(this.nodes.iterator(),function(l){var u=l[1];u.fill instanceof de&&(u.color=u.fill),u.color==null&&(u.color=e.colors.next()),u.dataItem.color!=null&&(u.color=u.dataItem.color),u.dataItem.visible||u.hide(0),e.getNodeValue(u)}),this.sortNodes(),this.feedLegend()},i.prototype.handleDataItemWorkingValueChange=function(e,t){this.invalidate()},i.prototype.sortNodes=function(){this.sortBy=="name"?this._sorted=this.nodes.sortedIterator():this.sortBy=="value"?this._sorted=Hr(this.nodes.iterator(),function(e,t){return Hs(fi(e[1].total,t[1].total))}):this._sorted=this.nodes.iterator()},i.prototype.getNodeValue=function(e){var t=0,r=0;V(e.incomingDataItems.iterator(),function(s){var n=s.getWorkingValue("value");b(n)&&(t+=n)}),V(e.outgoingDataItems.iterator(),function(s){var n=s.getWorkingValue("value");b(n)&&(r+=n)}),e.total=t+r,e.totalIncoming=t,e.totalOutgoing=r},i.prototype.changeSorting=function(){this.sortNodes()},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Flow diagram"))},i.prototype.createDataItem=function(){return new mn},Object.defineProperty(i.prototype,"nodePadding",{get:function(){return this.getPropertyValue("nodePadding")},set:function(e){this.setPropertyValue("nodePadding",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sortBy",{get:function(){return this.getPropertyValue("sortBy")},set:function(e){this.setPropertyValue("sortBy",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minNodeSize",{get:function(){return this.getPropertyValue("minNodeSize")},set:function(e){this.setPropertyValue("minNodeSize",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nodes",{get:function(){if(!this._nodes){var e=this.createNode();e.events.on("hit",function(t){t.target.handleHit(t)}),this._nodes=new $r(e),this._disposers.push(new Pi(this._nodes))}return this._nodes},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var e=new Pa;return this._disposers.push(e),e},Object.defineProperty(i.prototype,"links",{get:function(){return this._links||(this._links=new Te(this.createLink()),this._disposers.push(new ge(this._links))),this._links},enumerable:!0,configurable:!0}),i.prototype.createLink=function(){var e=new Sa;return this._disposers.push(e),e},i.prototype.feedLegend=function(){var e=this.legend;if(e){var t=[];this.nodes.each(function(r,s){t.push(s)}),e.data=t,e.dataFields.name="name"}},i.prototype.disposeData=function(){a.prototype.disposeData.call(this),this.nodes.clear()},i})(Fr);_.registeredClasses.FlowDiagram=yn;var bo=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="LabelBullet";var t=e.createChild(Je);return t.shouldClone=!1,t.verticalCenter="middle",t.horizontalCenter="middle",t.truncate=!0,t.hideOversized=!1,t.maxWidth=500,t.maxHeight=500,t.stroke=Z(),t.strokeOpacity=0,t.fill=new J().getFor("text"),e.events.on("maxsizechanged",e.handleMaxSize,e,!1),e.label=t,e.applyTheme(),e}return i.prototype.handleMaxSize=function(){this.label.maxWidth=this.maxWidth,this.label.maxHeight=this.maxHeight},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label)},i})(qt);_.registeredClasses.LabelBullet=bo;var ou=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.nextInCoord=0,e.nextOutCoord=0,e.className="SankeyNode",e.width=10,e.height=10;var t=e.createChild(bo);t.shouldClone=!1,t.locationX=1,t.locationY=.5,t.label.text="{name}",t.width=150,t.height=150,t.label.horizontalCenter="left",t.label.padding(0,5,0,5),e.nameLabel=t;var r=e.createChild(bo);r.shouldClone=!1,r.label.hideOversized=!1,r.locationX=.5,r.locationY=.5,r.width=150,r.height=150,r.label.horizontalCenter="middle",e.valueLabel=r;var s=e.hiddenState;return s.properties.fill=new J().getFor("disabledBackground"),s.properties.opacity=.5,s.properties.visible=!0,e.background.hiddenState.copyFrom(s),e}return i.prototype.invalidateLinks=function(){var e=this;a.prototype.invalidateLinks.call(this),this.nextInCoord=0,this.nextOutCoord=0;var t=this.chart;if(t){var r=t.orientation;this._incomingSorted&&V(this._incomingSorted,function(s){var n=s.link,o=s.getWorkingValue("value");if(b(o)){n.parent=e.chart.linksContainer;var l=void 0,u=void 0,h=void 0;if(r=="horizontal"?(l=e.pixelX+e.dx,u=e.nextInCoord+e.pixelY+e.dy,h=0):(u=e.pixelY+e.dy,l=e.nextInCoord+e.pixelX+e.dx,h=90),n.endX=l,n.endY=u,n.startAngle=h,n.endAngle=h,n.gradient.rotation=h,n.linkWidth=o*t.valueHeight,!s.fromNode){r=="horizontal"?(n.maxWidth=200,n.startX=e.pixelX+e.dx-n.maxWidth,n.startY=n.endY):(n.maxHeight=200,n.startX=n.endX,n.startY=e.pixelY+e.dy-n.maxHeight),n.gradient,n.fill=s.toNode.color;var p=n.gradient.stops.getIndex(0);p&&(n.colorMode=="gradient"&&(p.color=e.color),p.opacity=0,n.fill=n.gradient,n.stroke=n.gradient,n.gradient.validate())}e.nextInCoord+=n.linkWidth}}),this._outgoingSorted&&V(this._outgoingSorted,function(s){var n=s.link;n.parent=e.chart.linksContainer;var o=s.getWorkingValue("value");if(b(o)){var l=void 0,u=void 0,h=void 0;if(r=="horizontal"?(h=0,l=e.pixelX+e.pixelWidth+e.dx-1,u=e.nextOutCoord+e.pixelY+e.dy):(h=90,l=e.nextOutCoord+e.pixelX+e.dx,u=e.pixelY+e.pixelHeight+e.dy-1),n.startX=l,n.startY=u,n.startAngle=h,n.endAngle=h,n.gradient.rotation=h,n.linkWidth=o*e.chart.valueHeight,!s.toNode){r=="horizontal"?(n.maxWidth=200,n.endX=e.pixelX+n.maxWidth+e.dx,n.endY=n.startY):(n.maxHeight=200,n.endX=n.startX,n.endY=e.pixelY+n.maxHeight+e.dy),n.opacity=e.opacity;var p=n.gradient.stops.getIndex(1);p&&(n.colorMode=="gradient"&&(p.color=e.color),p.opacity=0,n.fill=n.gradient,n.stroke=n.gradient,n.gradient.validate())}e.nextOutCoord+=n.linkWidth}})}this.positionBullet(this.nameLabel),this.positionBullet(this.valueLabel)},i.prototype.positionBullet=function(e){e&&(e.x=this.measuredWidth*e.locationX,e.y=this.measuredHeight*e.locationY)},Object.defineProperty(i.prototype,"level",{get:function(){return this.getPropertyValue("level")},set:function(e){this.setPropertyValue("level",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.nameLabel.copyFrom(e.nameLabel),this.valueLabel.copyFrom(e.valueLabel)},i})(Pa);_.registeredClasses.SankeyNode=ou;var us=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Polyspline",e.tensionX=.5,e.tensionY=.5,e.applyTheme(),e}return i.prototype.makePath=function(){this._distance=0;var e=this.segments,t=this.tensionX,r=this.tensionY;if(this.allPoints=[],e&&e.length>0){var s="";this._realSegments=[];for(var n=0,o=e.length;n<o;n++){var l=e[n],u=[];if(this._realSegments.push(u),l.length>0){var h=l[0],p=l[l.length-1],d=!1;I(h.x,3)==I(p.x)&&I(h.y)==I(p.y)&&(d=!0),s+=R(l[0]);for(var c=0;c<l.length-1;c++){var f=l[c-1],y=l[c],g=l[c+1],v=l[c+2];c===0?f=l[c]:c==l.length-2&&(v=l[c+1]),v||(v=g),c===0?d?f=l[l.length-2]:f=l[n]:c==l.length-2&&(d?v=l[1]:v=l[c+1]);var x=cl(f,y,g,v,t,r),P=fl(f,y,g,v,t,r);s+=Yr(g,x,P);var T=Math.ceil(tf(y,g,x,P,20))*1.2,C=y;if(T>0)for(var O=0;O<=T;O++){var w=Vn(y,g,x,P,O/T);if(!(w.x==C.x&&w.y==C.y)){u.push(w);var D=I(nt(C,w),5);this._distance+=xe(C,w),this.allPoints[Math.floor(this._distance)]={x:w.x,y:w.y,angle:D},C=w}}else u.push(f)}}var A=this.allPoints;if(A.length>1){for(var H=0;H<A.length;H++)if(!A[H]){if(H>1)A[H]=A[H-1];else for(var E=1;E<A.length;E++)if(A[E]){A[H]=A[E];break}}}}this.path=s}},i.prototype.getClosestPointIndex=function(e){var t=this.allPoints,r,s=1/0;if(t.length>1)for(var n=1;n<t.length;n++){var o=xe(e,t[n]);o<s&&(r=n,s=o)}return r},Object.defineProperty(i.prototype,"tensionX",{get:function(){return this.getPropertyValue("tensionX")},set:function(e){this.setPropertyValue("tensionX",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tensionY",{get:function(){return this.getPropertyValue("tensionY")},set:function(e){this.setPropertyValue("tensionY",e,!0),this.makePath()},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e,t){var r=0,s=this.allPoints,n=s.length;if(b(e)||(e=0),n>1){if(t&&n>3){if(e<0){e<-.01&&(e=-.01);var o=s[0],l=s[1],u=o.x-(o.x-l.x)*n*e,h=o.y-(o.y-l.y)*n*e;return{x:u,y:h,angle:nt(o,l)}}else if(e>1){e>1.01&&(e=1.01);var o=s[s.length-2],l=s[s.length-3],u=o.x+(o.x-l.x)*n*(e-1),h=o.y+(o.y-l.y)*n*(e-1);return{x:u,y:h,angle:nt(o,{x:u,y:h})}}else if(e==1){var p=s[s.length-1];return{x:p.x,y:p.y,angle:p.angle}}}else e<0&&(e=Math.abs(e),r=180),e>=1&&(e=.9999999999999);var d=s[Math.floor(e*n)];return{x:d.x,y:d.y,angle:d.angle+r}}else if(n==1){var d=s[0];return{x:d.x,y:d.y,angle:d.angle}}else return{x:0,y:0,angle:0}},i})(Zr);_.registeredClasses.Polyspline=us;var lu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="SankeyLink",new J,e.tension=.8,e.controlPointDistance=.2,e.startAngle=0,e.endAngle=0,e.linkWidth=0,e.startX=0,e.endX=0,e.startY=0,e.endY=0,e.middleLine=e.createChild(us),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return i.prototype.makeBackwards=function(){this.states.getKey("backwards")!=null&&this.setState("backwards")},i.prototype.validate=function(){var e,t,r,s;if(a.prototype.validate.call(this),!this.isTemplate){var n=this.startX,o=this.startY,l=this.endX,u=this.endY;if(this.states.getKey("backwards")&&this.setState("default"),this.dataItem){var h=this.dataItem.component;h&&(h.orientation=="horizontal"?l<n&&(e=aa([l,n],2),n=e[0],l=e[1],t=aa([u,o],2),o=t[0],u=t[1],this.makeBackwards()):u<o&&(r=aa([u,o],2),o=r[0],u=r[1],s=aa([l,n],2),n=s[0],l=s[1],this.makeBackwards()))}b(l)||(l=n),b(u)||(u=o);var p=this.startAngle,d=this.endAngle,c=this.linkWidth,f="",y=n,g=o,v=l,x=u,P=n+c*N(p),T=l+c*N(d),C=o+c*B(p),O=u+c*B(d),w=n+c/2*N(p),D=l+c/2*N(d),A=o+c/2*B(p),H=u+c/2*B(d);this.zIndex=this.zIndex||this.dataItem.index;var E=this.tension+(1-this.tension)*N(p),j=this.tension+(1-this.tension)*B(p);if(this.middleLine.tensionX=E,this.middleLine.tensionY=j,b(c)&&b(n)&&b(l)&&b(o)&&b(u)){I(y,3)==I(v,3)&&(v+=.01),I(g,3)==I(x,3)&&(x+=.01),I(P,3)==I(T,3)&&(T+=.01),I(C,3)==I(O,3)&&(O+=.01);var ce=Math.min(P,T,y,v),be=Math.min(C,O,g,x),ke=Math.max(P,T,y,v),K=Math.max(C,O,g,x);this._bbox={x:ce,y:be,width:ke-ce,height:K-be};var De=this.controlPointDistance,Le=y+(v-y)*De*B(p),ze=g+(x-g)*De*N(p),ft=v-(v-y)*De*B(d),at=x-(x-g)*De*N(d),oe=w+(D-w)*De*B(p),Be=A+(H-A)*De*N(p),st=D-(D-w)*De*B(d),Hi=H-(H-A)*De*N(d),Fi=nt({x:Le,y:ze},{x:ft,y:at}),ii=(c/B(Fi)-c)/Sh(Fi)*B(p),vi=(c/N(Fi)-c)*Sh(Fi)*N(p),dr=-ii/2+P+(T-P)*De*B(p),Qi=-vi/2+C+(O-C)*De*N(p),Da=-ii/2+T-(T-P)*De*B(d),Aa=-vi/2+O-(O-C)*De*N(d);H==A&&(H+=.01),this.middleLine.segments=[[{x:w,y:A},{x:oe,y:Be},{x:st,y:Hi},{x:D,y:H}]],Le+=ii/2,ze+=vi/2,ft+=ii/2,at+=vi/2,f+=R({x:y,y:g}),f+=new Mi(E,j).smooth([{x:y,y:g},{x:Le,y:ze},{x:ft,y:at},{x:v,y:x}]),f+=F({x:T,y:O}),f+=new Mi(E,j).smooth([{x:T,y:O},{x:Da,y:Aa},{x:dr,y:Qi},{x:P,y:C}]),f+=Ee()}this.link.path=f,this.maskBullets&&(this.bulletsMask.path=f,this.bulletsContainer.mask=this.bulletsMask),this.positionBullets()}},Object.defineProperty(i.prototype,"startX",{get:function(){return this.getPropertyValue("startX")},set:function(e){this.setPropertyValue("startX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endX",{get:function(){return this.getPropertyValue("endX")},set:function(e){this.setPropertyValue("endX",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startY",{get:function(){return this.getPropertyValue("startY")},set:function(e){this.setPropertyValue("startY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endY",{get:function(){return this.getPropertyValue("endY")},set:function(e){this.setPropertyValue("endY",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"linkWidth",{get:function(){return this.getPropertyValue("linkWidth")},set:function(e){this.setPropertyValue("linkWidth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),i})(Sa);_.registeredClasses.SankeyLink=lu;var hm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="SankeyDiagramDataItem",e.applyTheme(),e}return i})(mn);var pm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="SankeyDiagram",e.orientation="horizontal",e.nodeAlign="middle",e.nodesContainer.width=k(100),e.nodesContainer.height=k(100),e.linksContainer.width=k(100),e.linksContainer.height=k(100),e.applyTheme(),e}return i.prototype.validateData=function(){var e=this;this._valueHeight=void 0,a.prototype.validateData.call(this),this._levelCount=0,this.nodes.each(function(t,r){r.level=void 0}),this.nodes.each(function(t,r){r.level=e.getNodeLevel(r,0),e._levelCount=ie(e._levelCount,r.level)})},i.prototype.getNodeLevel=function(e,t){var r=this,s=[t];return V(e.incomingDataItems.iterator(),function(n){n.fromNode&&(b(n.fromNode.level)?s.push(n.fromNode.level+1):(r._counter=0,r.checkLoop(n.fromNode),r._counter<r.dataItems.length&&s.push(r.getNodeLevel(n.fromNode,t+1))))}),Math.max.apply(Math,Nr(s))},i.prototype.checkLoop=function(e){var t=this;this._counter++,!(this._counter>this.dataItems.length)&&V(e.incomingDataItems.iterator(),function(r){t.checkLoop(r.fromNode)})},i.prototype.calculateValueHeight=function(){var e=this;this._levelSum={},this._levelNodesCount={},this.maxSum=0;var t=this.dataItem.values.value.sum;V(this._sorted,function(p){var d=p[1];e.getNodeValue(d)}),this.nodes.each(function(p,d){var c=d.level,f=Math.max(d.totalIncoming,d.totalOutgoing);f/t<e.minNodeSize&&(f=t*e.minNodeSize),b(e._levelSum[c])?e._levelSum[c]+=f:e._levelSum[c]=f,b(e._levelNodesCount[c])?e._levelNodesCount[c]++:e._levelNodesCount[c]=1});var r;this.orientation=="horizontal"?r=this.chartContainer.maxHeight-1:r=this.chartContainer.maxWidth-1;var s,n;q(this._levelSum,function(p,d){var c=d,f=e._levelNodesCount[p],y=(r-(f-1)*e.nodePadding)/c;y==1/0&&(y=0),(n>y||!b(n))&&(n=y,e.maxSum=c,s=Oe(p))}),this._maxSumLevel=s;var o=this._levelNodesCount[this._maxSumLevel],l=(r-(o-1)*this.nodePadding)/this.maxSum;if(l==1/0&&(l=0),!b(this.valueHeight))this.valueHeight=l;else{var u=void 0;try{u=this._heightAnimation.animationOptions[0].to}catch{}if(u!=l){var h=this.interpolationDuration;try{h=this.nodes.template.states.getKey("active").transitionDuration}catch{}this._heightAnimation=new Nt(this,{property:"valueHeight",from:this.valueHeight,to:l},h,this.interpolationEasing).start(),this._disposers.push(this._heightAnimation)}}},i.prototype.validate=function(){var e=this;a.prototype.validate.call(this),this.calculateValueHeight();var t=this.nodesContainer,r={},s=this._levelNodesCount[this._maxSumLevel],n=this.dataItem.values.value.sum,o;this.orientation=="horizontal"?o=this.chartContainer.maxHeight-1:o=this.chartContainer.maxWidth-1,V(this._sorted,function(l){var u=l[1],h=u.level,p=0,d=e._levelNodesCount[h];switch(e.nodeAlign){case"bottom":p=(e.maxSum-e._levelSum[h])*e.valueHeight-(d-s)*e.nodePadding;break;case"middle":p=(e.maxSum-e._levelSum[h])*e.valueHeight/2-(d-s)*e.nodePadding/2;break}if(e.maxSum==0)switch(e.nodeAlign){case"bottom":p=o-d*(e.minNodeSize*o+e.nodePadding);break;case"middle":p=o/2-d/2*(e.minNodeSize*o+e.nodePadding);break}u.parent=t;var c,f,y,g=Math.max(u.totalIncoming,u.totalOutgoing);if(g/n<e.minNodeSize&&(g=n*e.minNodeSize),e.orientation=="horizontal"){c=(e.innerWidth-u.pixelWidth)/e._levelCount,f=c*u.level,y=r[h]||p;var v=g*e.valueHeight;n==0&&v==0&&(v=e.minNodeSize*o),u.height=v,u.minX=f,u.maxX=f,r[h]=y+v+e.nodePadding}else{c=(e.innerHeight-u.pixelHeight)/e._levelCount,f=r[h]||p,y=c*u.level;var x=g*e.valueHeight;n==0&&x==0&&(x=e.minNodeSize*o),u.width=x,u.minY=y,u.maxY=y,r[h]=f+x+e.nodePadding}u.x=f,u.y=y})},i.prototype.showReal=function(e){var t=this;if(!this.preventShow){if(this.interpolationDuration>0){var r=this.nodesContainer,s=0;V(this.links.iterator(),function(n){n.hide(0)}),V(this._sorted,function(n){var o=n[1],l;t.orientation=="horizontal"?(o.dx=-(r.pixelWidth-o.pixelWidth)/Math.max(t._levelCount,1),l="dx"):(o.dy=-(r.pixelHeight-o.pixelHeight)/Math.max(t._levelCount,1),l="dy");var u=0,h=t.interpolationDuration;t.sequencedInterpolation&&(u=t.sequencedInterpolationDelay*s+h*s/mf(t.nodes.iterator())),o.opacity=0,o.invalidateLinks(),o.animate([{property:"opacity",from:0,to:1},{property:l,to:0}],t.interpolationDuration,t.interpolationEasing).delay(u),V(o.outgoingDataItems.iterator(),function(p){var d=p.link.show(t.interpolationDuration);d&&!d.isFinished()&&d.delay(u)}),V(o.incomingDataItems.iterator(),function(p){if(!p.fromNode){var d=p.link.show(t.interpolationDuration);d&&!d.isFinished()&&d.delay(u)}}),s++})}return a.prototype.showReal.call(this)}},i.prototype.changeSorting=function(){var e=this;this.sortNodes();var t={};V(this._sorted,function(r){var s=r[1],n=s.level,o=(e.maxSum-e._levelSum[n])*e.valueHeight/2,l,u;e.orientation=="horizontal"?(l="y",u=s.pixelHeight):(l="x",u=s.pixelWidth),s.animate({property:l,to:t[n]||o},e.interpolationDuration,e.interpolationEasing),t[n]=(t[n]||o)+u+e.nodePadding,s.invalidateLinks()})},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Sankey diagram"))},i.prototype.createDataItem=function(){return new hm},Object.defineProperty(i.prototype,"nodeAlign",{get:function(){return this.getPropertyValue("nodeAlign")},set:function(e){this.setPropertyValue("nodeAlign",e),this.changeSorting()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var t=this.nodes.template.nameLabel;e=="vertical"?(this.nodes.template.width=void 0,t.label.horizontalCenter="middle",t.locationX=.5):(this.nodes.template.height=void 0,t.label.horizontalCenter="left",t.locationX=1)},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var e=new ou;return this._disposers.push(e),e},i.prototype.createLink=function(){var e=new lu;return this._disposers.push(e),e},Object.defineProperty(i.prototype,"valueHeight",{get:function(){return this._valueHeight},set:function(e){e!=this._valueHeight&&(this._valueHeight=e,this.invalidate())},enumerable:!0,configurable:!0}),i.prototype.disposeData=function(){a.prototype.disposeData.call(this),this._sorted=this.nodes.iterator()},i})(yn);_.registeredClasses.SankeyDiagram=pm;var uu=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="ChordNode";var t=e.createChild(ur);t.location=.5,t.radius=5,t.text="{name}",t.zIndex=1,t.shouldClone=!1,e.label=t,e.layout="none",e.events.on("positionchanged",e.updateRotation,e,!1),e.isMeasured=!1,e.slice=e.createChild(Ei),e.slice.isMeasured=!1;var r=e.hiddenState;return r.properties.fill=new J().getFor("disabledBackground"),r.properties.opacity=.5,r.properties.visible=!0,e.setStateOnChildren=!1,e.slice.hiddenState.properties.visible=!0,e.adapter.add("tooltipX",function(s,n){return n.slice.ix*(n.slice.radius-(n.slice.radius-n.slice.pixelInnerRadius)/2)}),e.adapter.add("tooltipY",function(s,n){return n.slice.iy*(n.slice.radius-(n.slice.radius-n.slice.pixelInnerRadius)/2)}),e}return i.prototype.invalidateLinks=function(){var e=this;a.prototype.invalidateLinks.call(this);var t=this.label,r=this.slice,s=this.chart;if(s&&r){var n=this.total,o=r.arc,l=r.startAngle;this.children.each(function(p){if(p instanceof qt){var d=p.locationX;b(d)||(d=.5);var c=p.locationY;b(c)||(c=1);var f=l+o*d,y=c*r.radius;p.x=y*B(f),p.y=y*N(f)}});var u=l+o*t.location,h=l+(1-n/this.adjustedTotal)*o*.5;xt(h)&&(h=l),t.fixPosition(u,r.radius),this.nextAngle=h,this._outgoingSorted&&V(this._outgoingSorted,function(p){var d=p.link;d.parent=e.chart.linksContainer;var c=p.getWorkingValue("value");if(b(c)){if(s.nonRibbon){var f=d.percentWidth;b(f)||(f=5),f=f/100,d.startAngle=l+o/2-o/2*f,d.arc=o*f}else d.arc=c*s.valueAngle,d.startAngle=e.nextAngle,e.nextAngle+=d.arc;p.toNode||(d.endAngle=d.startAngle),d.radius=r.pixelInnerRadius}}),this._incomingSorted&&V(this._incomingSorted,function(p){var d=p.link;if(d.radius=r.pixelInnerRadius,s.nonRibbon){var c=d.percentWidth;b(c)||(c=5),c=c/100,d.endAngle=l+o/2-o/2*c,d.arc=o*c}else{d.endAngle=e.nextAngle;var f=p.getWorkingValue("value");b(f)&&(d.arc=f*s.valueAngle,e.nextAngle+=d.arc)}p.fromNode||(d.startAngle=d.endAngle)})}},i.prototype.updateRotation=function(){var e=this.slice,t=this.trueStartAngle+e.arc/2,r=e.radius,s=r*B(t),n=r*N(t),o=nt({x:s+this.pixelX,y:n+this.pixelY});e.startAngle=this.trueStartAngle+(o-t),this.dx=-this.pixelX,this.dy=-this.pixelY},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.label.copyFrom(e.label),this.slice.copyFrom(e.slice)},i})(Pa);_.registeredClasses.ChordNode=uu;var dm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="QuadraticCurve",e.element=e.paper.add("path"),e.pixelPerfect=!1,e.fill=Z(),e.applyTheme(),e}return i.prototype.draw=function(){if(b(this.x1+this.x2+this.y1+this.y2+this.cpx+this.cpy)){var e={x:this.x1,y:this.y1},t={x:this.x2,y:this.y2},r={x:this.cpx,y:this.cpy},s=R(e)+Tr(t,r);this.path=s}},Object.defineProperty(i.prototype,"cpx",{get:function(){return this.getPropertyValue("cpx")},set:function(e){this.setPropertyValue("cpx",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"cpy",{get:function(){return this.getPropertyValue("cpy")},set:function(e){this.setPropertyValue("cpy",e,!0)},enumerable:!0,configurable:!0}),i.prototype.positionToPoint=function(e){var t={x:this.x1,y:this.y1},r={x:this.cpx,y:this.cpy},s={x:this.x2,y:this.y2},n=Ch(t,s,r,e),o=Ch(t,s,r,e+.001);return{x:n.x,y:n.y,angle:nt(n,o)}},i})(Kt);var hu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ChordLink",e.middleLine=e.createChild(dm),e.middleLine.shouldClone=!1,e.middleLine.strokeOpacity=0,e.applyTheme(),e}return i.prototype.validate=function(){if(a.prototype.validate.call(this),!this.isTemplate){var e=this.startAngle,t=this.endAngle,r=this.arc,s=this.radius,n=this.dataItem.fromNode,o=this.dataItem.toNode,l=0,u=0;n&&(l=n.pixelX+n.dx,u=n.pixelY+n.dy);var h=0,p=0;if(o&&(h=o.pixelX+o.dx,p=o.pixelY+o.dy),s>0){var d=s*B(e)+l,c=s*N(e)+u,f=s*B(t)+h,y=s*N(t)+p,g={x:0,y:0},v=R({x:d,y:c});v+=pt(e,r,s),v+=Tr({x:f,y},g),v+=pt(t,r,s),v+=Tr({x:d,y:c},g),r>0?this.link.path=v:this.link.path="",this.maskBullets&&(this.bulletsMask.path=v,this.bulletsContainer.mask=this.bulletsMask);var x=e+r/2,P=t+r/2,T=this.middleLine;T.x1=s*B(x)+l,T.y1=s*N(x)+u,T.x2=s*B(P)+h,T.y2=s*N(P)+p,T.cpx=0,T.cpy=0,T.stroke=this.fill,this.positionBullets()}}},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"arc",{get:function(){return this.getPropertyValue("arc")},set:function(e){this.setPropertyValue("arc",e,!0)},enumerable:!0,configurable:!0}),i})(Sa);_.registeredClasses.ChordLink=hu;var cm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ChordDiagramDataItem",e.applyTheme(),e}return i})(mn);var fm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.valueAngle=0,e.className="ChordDiagram",e.startAngle=-90,e.endAngle=270,e.radius=k(80),e.innerRadius=-15,e.nodePadding=5;var t=e.chartContainer.createChild(Y);return t.align="center",t.valign="middle",t.shouldClone=!1,t.layout="absolute",e.chordContainer=t,e.nodesContainer.parent=t,e.linksContainer.parent=t,e.chartContainer.events.on("maxsizechanged",e.invalidate,e,!1),e.applyTheme(),e}return i.prototype.validate=function(){var e=this,t=this.chartContainer,r=this.endAngle,s=this.startAngle+this.nodePadding/2,n=ci(this.startAngle,this.endAngle,1),o={x:0,y:0,width:0,height:0};n=xr([n,o]);var l=Math.min(t.innerWidth/n.width,t.innerHeight/n.height);b(l)||(l=0);var u=ot(this.radius,l),h=ot(this.innerRadius,u,!0),p=this.dataItem.values.value.sum,d=0,c=0;V(this._sorted,function(f){var y=f[1];e.getNodeValue(y),d++;var g=y.total;y.total/p<e.minNodeSize&&(g=p*e.minNodeSize),c+=g}),this.valueAngle=(r-this.startAngle-this.nodePadding*d)/c,V(this._sorted,function(f){var y=f[1],g=y.slice;g.radius=u,g.innerRadius=h;var v=y.total;y.total/p<e.minNodeSize&&(v=p*e.minNodeSize),y.adjustedTotal=v;var x;e.nonRibbon?x=(r-e.startAngle)/d-e.nodePadding:x=e.valueAngle*v,g.arc=x,g.startAngle=s,y.trueStartAngle=s,y.parent=e.nodesContainer,y.validate(),s+=x+e.nodePadding}),this.chordContainer.definedBBox={x:u*n.x,y:u*n.y,width:u*n.width,height:u*n.height},this.chordContainer.invalidateLayout(),a.prototype.validate.call(this)},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Chord diagram"))},i.prototype.createDataItem=function(){return new cm},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"nonRibbon",{get:function(){return this.getPropertyValue("nonRibbon")},set:function(e){this.setPropertyValue("nonRibbon",e,!0),this.links.template.middleLine.strokeOpacity=1,this.links.template.link.fillOpacity=0},enumerable:!0,configurable:!0}),i.prototype.createNode=function(){var e=new uu;return this._disposers.push(e),e},i.prototype.createLink=function(){var e=new hu;return this._disposers.push(e),e},i})(yn);_.registeredClasses.ChordDiagram=fm;var Ep=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="TreeMapSeriesDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"parentName",{get:function(){var e=this.treeMapDataItem;if(e&&e.parent)return e.parent.name},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"value",{get:function(){var e=this.treeMapDataItem;if(e)return e.value},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"treeMapDataItem",{get:function(){return this._dataContext},enumerable:!0,configurable:!0}),i.prototype.hide=function(e,t,r,s){var n=this.treeMapDataItem;return n&&n.hide(e),a.prototype.hide.call(this,e,t,r,s)},i.prototype.show=function(e,t,r){var s=this.treeMapDataItem;return s&&s.show(e,t,r),a.prototype.show.call(this,e,t,r)},i})(Ht);var xo=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="TreeMapSeries",e.applyTheme(),e.fillOpacity=1,e.strokeOpacity=1,e.minBulletDistance=0,e.columns.template.tooltipText="{parentName} {name}: {value}",e.columns.template.configField="config";var t=new J;return e.stroke=t.getFor("background"),e.dataFields.openValueX="x0",e.dataFields.valueX="x1",e.dataFields.openValueY="y0",e.dataFields.valueY="y1",e.sequencedInterpolation=!1,e.showOnInit=!1,e.columns.template.pixelPerfect=!1,e}return i.prototype.processDataItem=function(e,t){t.seriesDataItem=e,a.prototype.processDataItem.call(this,e,t)},i.prototype.createDataItem=function(){return new Ep},i.prototype.show=function(e){if(!this.preventShow){var t=this.defaultState.transitionDuration;return b(e)&&(t=e),this.dataItems.each(function(r){r.show(e)}),a.prototype.showReal.call(this,t)}},i.prototype.hide=function(e){var t=this.defaultState.transitionDuration;b(e)&&(t=e);var r=a.prototype.hideReal.call(this,t);return this.dataItems.each(function(s){s.hide(e)}),r},i.prototype.processValues=function(){},i.prototype.getStartLocation=function(e){return 0},i.prototype.getEndLocation=function(e){return 1},i.prototype.dataChangeUpdate=function(){},i.prototype.processConfig=function(e){e&&(!$(e.dataFields)||!Fe(e.dataFields))&&(e.dataFields={}),a.prototype.processConfig.call(this,e)},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var s=e.createChild(Ft);s.shouldClone=!1,Ke(this,s,He),s.padding(0,0,0,0),s.width=t,s.height=r;var n=e.dataItem;n.color=s.fill,n.colorOrig=s.fill},i.prototype.disableUnusedColumns=function(e){a.prototype.disableUnusedColumns.call(this,e),e.column&&(e.column.__disabled=!1)},i})(it);_.registeredClasses.TreeMapSeries=xo;_.registeredClasses.TreeMapSeriesDataItem=Ep;var mm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.rows=[],e.className="TreeMapDataItem",e.values.value={workingValue:0},e.values.x0={},e.values.y0={},e.values.x1={},e.values.y1={},e.hasChildren.children=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"legendDataItem",{get:function(){return this._legendDataItem},set:function(e){this._legendDataItem=e,e.label&&(e.label.dataItem=this),e.valueLabel&&(e.valueLabel.dataItem=this)},enumerable:!0,configurable:!0}),i.prototype.getDuration=function(){return 0},Object.defineProperty(i.prototype,"value",{get:function(){var e=0;return!this.children||this.children.length==0?e=this.values.value.workingValue:V(this.children.iterator(),function(t){var r=t.value;b(r)&&(e+=r)}),e},set:function(e){this.setValue("value",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"percent",{get:function(){return this.parent?this.value/this.parent.value*100:100},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x0",{get:function(){return this.values.x0.value},set:function(e){this.setValue("x0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"x1",{get:function(){return this.values.x1.value},set:function(e){this.setValue("x1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y0",{get:function(){return this.values.y0.value},set:function(e){this.setValue("y0",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"y1",{get:function(){return this.values.y1.value},set:function(e){this.setValue("y1",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"children",{get:function(){return this.properties.children},set:function(e){this.setProperty("children",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"level",{get:function(){return this.parent?this.parent.level+1:0},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"color",{get:function(){var e=this.properties.color;return e==null&&this.parent&&(e=this.parent.color),e==null&&this.component&&(e=this.component.colors.getIndex(this.component.colors.step*this.index)),e},set:function(e){this.setProperty("color",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fill",{get:function(){return this.color},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},set:function(e){e!=this._series&&(this._series&&(this.component.series.removeValue(this._series),this._series.dispose()),this._series=e,this._disposers.push(e))},enumerable:!0,configurable:!0}),i.prototype.hide=function(e,t,r,s){this.setWorkingValue("value",0),this.children&&this.children.each(function(o){o.hide(e,t,r,s)});var n=this.seriesDataItem;return n&&n.bullets.each(function(o,l){l.hide(),l.preventShow=!0}),a.prototype.hide.call(this,e,t,r,s)},i.prototype.show=function(e,t,r){this.setWorkingValue("value",this.values.value.value),this.children&&this.children.each(function(n){n.show(e,t,r)});var s=this.seriesDataItem;return s&&s.bullets.each(function(n,o){o.preventShow=!1}),a.prototype.show.call(this,e,t,r)},i})(ss);var ym=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.layoutAlgorithm=e.squarify,e.zoomable=!0,e.className="TreeMap",e._usesData=!0,e.maxLevels=2,e.currentLevel=0,e.hideParentColumns=!1,e.colors=new Vr,e.sorting="descending";var t=e.xAxes.push(new Q);t.title.disabled=!0,t.strictMinMax=!0;var r=t.renderer;r.inside=!0,r.labels.template.disabled=!0,r.ticks.template.disabled=!0,r.grid.template.disabled=!0,r.axisFills.template.disabled=!0,r.minGridDistance=100,r.line.disabled=!0,r.baseGrid.disabled=!0;var s=e.yAxes.push(new Q);s.title.disabled=!0,s.strictMinMax=!0;var n=s.renderer;n.inside=!0,n.labels.template.disabled=!0,n.ticks.template.disabled=!0,n.grid.template.disabled=!0,n.axisFills.template.disabled=!0,n.minGridDistance=100,n.line.disabled=!0,n.baseGrid.disabled=!0,n.inversed=!0,e.xAxis=t,e.yAxis=s;var o=new xo;return e.seriesTemplates=new $r(o),o.virtualParent=e,e._disposers.push(new Pi(e.seriesTemplates)),e._disposers.push(o),e.zoomOutButton.events.on("hit",function(){e.zoomToChartDataItem(e._homeDataItem)},void 0,!1),e.seriesTemplates.events.on("insertKey",function(l){l.newValue.isTemplate=!0},void 0,!1),e.applyTheme(),e}return Object.defineProperty(i.prototype,"navigationBar",{get:function(){return this._navigationBar},set:function(e){var t=this;this._navigationBar!=e&&(this._navigationBar=e,e.parent=this,e.toBack(),e.links.template.events.on("hit",function(r){var s=r.target.dataItem.dataContext;s.isDisposed()||(t.zoomToChartDataItem(s),t.createTreeSeries(s))},void 0,!0),this._disposers.push(e))},enumerable:!0,configurable:!0}),i.prototype.validateData=function(){this.series.clear(),this._tempSeries=[],a.prototype.validateData.call(this),this._homeDataItem&&this._homeDataItem.dispose();var e=this.dataItems.template.clone();this._homeDataItem=e,V(this.dataItems.iterator(),function(s){s.parent=e}),e.children=this.dataItems,e.x0=0,e.y0=0,e.name=this._homeText;var t=1e3,r=Math.round(t*this.pixelHeight/this.pixelWidth/10)*10||1e3;e.x1=t,e.y1=r,this.xAxis.min=0,this.xAxis.max=t,this.xAxis.getMinMax(),this.yAxis.min=0,this.yAxis.max=r,this.yAxis.getMinMax(),this.layoutItems(e),this.createTreeSeries(e),this.feedLegend()},i.prototype.layoutItems=function(e,t){if(e){var r=e.children;t||(t=this.sorting),t=="ascending"&&r.values.sort(function(l,u){return l.value-u.value}),t=="descending"&&r.values.sort(function(l,u){return u.value-l.value}),this._updateDataItemIndexes(0),this.layoutAlgorithm(e);for(var s=0,n=r.length;s<n;s++){var o=r.getIndex(s);o.children&&this.layoutItems(o)}}},i.prototype.createTreeSeries=function(e){var t=this;this._tempSeries=[];for(var r=[e],s=e.parent;s!=null;)this.initSeries(s),r.push(s),s=s.parent;r.reverse(),this.navigationBar&&(this.navigationBar.data=r),this.createTreeSeriesReal(e),M(this._tempSeries,function(n){t.series.indexOf(n)==-1&&t.series.push(n),n.zIndex=n.level})},i.prototype.createTreeSeriesReal=function(e){if(e.children){var t=e.level;if(t<this.currentLevel+this.maxLevels){this.initSeries(e);for(var r=0;r<e.children.length;r++){var s=e.children.getIndex(r);s.children&&this.createTreeSeriesReal(s)}}}},i.prototype.setData=function(e){this.currentLevel=0,this.currentlyZoomed=void 0,this.xAxis.start=0,this.xAxis.end=1,this.yAxis.start=0,this.yAxis.end=1,a.prototype.setData.call(this,e)},i.prototype.seriesAppeared=function(){return!0},i.prototype.initSeries=function(e){var t=this;if(!e.series){var r=void 0,s=this.seriesTemplates.getKey(e.level.toString());s?r=s.clone():r=this.series.create(),r.dataItem.dataContext=e,r.name=e.name,r.parentDataItem=e,e.series=r;var n=e.level;r.level=n;var o=e.dataContext;o&&(r.config=o.config),this.dataUsers.removeValue(r),r.data=e.children.values,r.fill=e.color,r.columnsContainer.hide(0),r.bulletsContainer.hide(0),r.columns.template.adapter.add("fill",function(l,u){var h=u.dataItem;if(h){var p=h.treeMapDataItem;if(p)return u.fill=p.color,u.adapter.remove("fill"),p.color}}),this.zoomable&&(e.level>this.currentLevel||e.children&&e.children.length>0)&&(r.columns.template.cursorOverStyle=Re.pointer,this.zoomable&&r.columns.template.events.on("hit",function(l){var u=l.target.dataItem;e.level>t.currentLevel?t.zoomToChartDataItem(u.treeMapDataItem.parent):t.zoomToSeriesDataItem(u)},this,void 0))}this._tempSeries.push(e.series)},i.prototype.toggleBullets=function(e){var t=this;V(this.series.iterator(),function(r){t._tempSeries.indexOf(r)==-1?(r.columnsContainer.hide(),r.bulletsContainer.hide(e)):(r.columnsContainer.show(),r.bulletsContainer.show(e),r.dataItems.each(function(s){s.bullets.each(function(n,o){o.show()})}),r.level<t.currentLevel?(t.hideParentColumns&&r.columnsContainer.hide(),r.bulletsContainer.hide(e)):r.level==t.currentLevel&&t.maxLevels>1&&r.dataItems.each(function(s){s.treeMapDataItem.children&&s.bullets.each(function(n,o){o.hide()})}))})},i.prototype.zoomToSeriesDataItem=function(e){this.zoomToChartDataItem(e.treeMapDataItem)},i.prototype.zoomToChartDataItem=function(e){var t=this;e||(e=this._homeDataItem);var r=this.zoomOutButton;if(r&&(e!=this._homeDataItem?r.show():r.hide()),e&&e.children){this.xAxis.zoomToValues(e.x0,e.x1),this.yAxis.zoomToValues(e.y0,e.y1),this.currentLevel=e.level,this.currentlyZoomed=e,this.createTreeSeries(e);var s=this.xAxis.rangeChangeAnimation||this.yAxis.rangeChangeAnimation;s&&!s.isDisposed()&&!s.isFinished()?(this._dataDisposers.push(s),s.events.once("animationended",function(){t.toggleBullets()})):this.toggleBullets()}},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("TreeMap chart"))},i.prototype.createDataItem=function(){return new mm},Object.defineProperty(i.prototype,"maxLevels",{get:function(){return this.getPropertyValue("maxLevels")},set:function(e){this.setPropertyValue("maxLevels",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentLevel",{get:function(){return this.getPropertyValue("currentLevel")},set:function(e){this.setPropertyValue("currentLevel",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideParentColumns",{get:function(){return this.getPropertyValue("hideParentColumns")},set:function(e){this.setPropertyValue("hideParentColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sorting",{get:function(){return this.getPropertyValue("sorting")},set:function(e){this.setPropertyValue("sorting",e,!0)},enumerable:!0,configurable:!0}),i.prototype.createSeries=function(){return new xo},Object.defineProperty(i.prototype,"homeText",{get:function(){return this._homeText},set:function(e){this._homeText=e,this._homeDataItem&&(this._homeDataItem.name=this._homeText)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){if(e){if($(e.layoutAlgorithm)&&se(e.layoutAlgorithm))switch(e.layoutAlgorithm){case"squarify":e.layoutAlgorithm=this.squarify;break;case"binaryTree":e.layoutAlgorithm=this.binaryTree;break;case"slice":e.layoutAlgorithm=this.slice;break;case"dice":e.layoutAlgorithm=this.dice;break;case"sliceDice":e.layoutAlgorithm=this.sliceDice;break;default:delete e.layoutAlgorithm;break}$(e.navigationBar)&&!$(e.navigationBar.type)&&(e.navigationBar.type="NavigationBar"),a.prototype.processConfig.call(this,e)}},i.prototype.validateLayout=function(){a.prototype.validateLayout.call(this),this.layoutItems(this.currentlyZoomed)},i.prototype.validateDataItems=function(){a.prototype.validateDataItems.call(this),this.layoutItems(this._homeDataItem),V(this.series.iterator(),function(e){e.validateRawData()}),this.zoomToChartDataItem(this._homeDataItem)},i.prototype.binaryTree=function(e){var t=e.children,r,s=t.length,n,o=new Array(s+1);for(o[0]=n=r=0;r<s;++r)o[r+1]=n+=t.getIndex(r).value;s>0&&l(0,s,e.value,e.x0,e.y0,e.x1,e.y1);function l(u,h,p,d,c,f,y){if(u>=h-1){var g=t.getIndex(u);g.x0=d,g.y0=c,g.x1=f,g.y1=y;return}for(var v=o[u],x=p/2+v,P=u+1,T=h-1;P<T;){var C=P+T>>>1;o[C]<x?P=C+1:T=C}x-o[P-1]<o[P]-x&&u+1<P&&--P;var O=o[P]-v,w=p-O;if(p==0){var g=t.getIndex(u);g.x0=d,g.y0=c,g.x1=f,g.y1=y;return}if(f-d>y-c){var D=(d*w+f*O)/p;l(u,P,O,d,c,D,y),l(P,h,w,D,c,f,y)}else{var A=(c*w+y*O)/p;l(u,P,O,d,c,f,A),l(P,h,w,d,A,f,y)}}},i.prototype.slice=function(e){for(var t=e.x0,r=e.x1,s=e.y0,n=e.y1,o=e.children,l,u=-1,h=o.length,p=e.value&&(n-s)/e.value;++u<h;)l=o.getIndex(u),l.x0=t,l.x1=r,l.y0=s,s+=l.value*p,l.y1=s},i.prototype.dice=function(e){for(var t=e.x0,r=e.x1,s=e.y0,n=e.y1,o=e.children,l,u=-1,h=o.length,p=e.value&&(r-t)/e.value;++u<h;)l=o.getIndex(u),l.y0=s,l.y1=n,l.x0=t,t+=l.value*p,l.x1=t},i.prototype.sliceDice=function(e){e.level&1?this.slice(e):this.dice(e)},i.prototype.squarify=function(e){for(var t=(1+Math.sqrt(5))/2,r=e.x0,s=e.x1,n=e.y0,o=e.y1,l=e.children,u,h=0,p=0,d=l.length,c,f,y=e.value,g,v,x,P,T,C,O;h<d;){c=s-r,f=o-n;do g=l.getIndex(p++).value;while(!g&&p<d);for(v=x=g,C=Math.max(f/c,c/f)/(y*t),O=g*g*C,T=Math.max(x/O,O/v);p<d;++p){if(g+=u=l.getIndex(p).value,u<v&&(v=u),u>x&&(x=u),O=g*g*C,P=Math.max(x/O,O/v),P>T){g-=u;break}T=P}var w=this.dataItems.template.clone();w.value=g,w.dice=c<f,w.children=l.slice(h,p),w.x0=r,w.y0=n,w.x1=s,w.y1=o,w.dice?(w.y1=y?n+=f*g/y:o,this.dice(w)):(w.x1=y?r+=c*g/y:s,this.slice(w)),y-=g,h=p}},i.prototype.handleSeriesAdded2=function(){},i.prototype.handleDataItemValueChange=function(e,t){t=="value"&&this.invalidateDataItems()},i.prototype.handleDataItemWorkingValueChange=function(e,t){t=="value"&&this.invalidateDataItems()},i.prototype.getLegendLevel=function(e){if(e&&e.children){if(e.children.length>1)return e;if(e.children.length==1){var t=e.children.getIndex(0);return t.children?this.getLegendLevel(t):e}else return e}},i.prototype.handleLegendSeriesAdded=function(e){},Object.defineProperty(i.prototype,"homeDataItem",{get:function(){return this._homeDataItem},enumerable:!0,configurable:!0}),i.prototype.feedLegend=function(){var e=this.legend;if(e){e.dataFields.name="name";var t=this.getLegendLevel(this._homeDataItem);if(t){var r=[];t.children.each(function(s){r.push(s)}),e.data=r}}},i.prototype.disposeData=function(){a.prototype.disposeData.call(this),this._homeDataItem=void 0,this.series.clear(),this.navigationBar&&this.navigationBar.disposeData(),this.xAxis.disposeData(),this.yAxis.disposeData()},i.prototype.getExporting=function(){var e=this,t=a.prototype.getExporting.call(this);return t.adapter.add("formatDataFields",function(r){return(r.format=="csv"||r.format=="xlsx")&&$(e.dataFields.children)&&delete r.dataFields[e.dataFields.children],r}),t},i})(qe);_.registeredClasses.TreeMap=ym;var pu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._chart=new We,e.className="AxisRendererX3D",e._disposers.push(e._chart),e.applyTheme(),e}return i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t);if(e.element){var n=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getHeight();e.path=R({x:n,y:o})+F({x:n,y:l+o})+F({x:0,y:l})}this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.getHeight(),t=this.chart.dx3D||0,r=this.chart.dy3D||0;this.baseGrid.path=R({x:t,y:r})+F({x:0,y:0})+F({x:0,y:e})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(e){(e.property=="depth"||e.property=="angle")&&this.invalidate()},i})(dt);_.registeredClasses.AxisRendererX3D=pu;var Bp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._chart=new We,e.className="AxisRendererY3D",e._disposers.push(e._chart),e.applyTheme(),e}return i.prototype.updateGridElement=function(e,t,r){t=t+(r-t)*e.location;var s=this.positionToPoint(t);if(e.element){var n=this.chart.dx3D||0,o=this.chart.dy3D||0,l=this.getWidth();e.path=R({x:0,y:0})+F({x:n,y:o})+F({x:l+n,y:o})}this.positionItem(e,s),this.toggleVisibility(e,t,0,1)},i.prototype.updateBaseGridElement=function(){a.prototype.updateBaseGridElement.call(this);var e=this.chart.dx3D||0,t=this.chart.dy3D||0,r=this.getWidth();this.baseGrid.path=R({x:0,y:0})+F({x:r,y:0})+F({x:r+e,y:t})},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart.get()},set:function(e){e&&this._chart.set(e,e.events.on("propertychanged",this.handle3DChanged,this,!1))},enumerable:!0,configurable:!0}),i.prototype.handle3DChanged=function(e){(e.property=="depth"||e.property=="angle")&&this.invalidate()},i})(_t);var Wp=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.angle=30,e.depth=30,e.className="Rectangle3D",e.layout="none";var t=e.createChild(U);t.shouldClone=!1,t.setElement(e.paper.add("path")),t.isMeasured=!1,e.sideBack=t,e._disposers.push(e.sideBack);var r=e.createChild(U);r.shouldClone=!1,r.setElement(e.paper.add("path")),r.isMeasured=!1,e.sideBottom=r,e._disposers.push(e.sideBottom);var s=e.createChild(U);s.shouldClone=!1,s.setElement(e.paper.add("path")),s.isMeasured=!1,e.sideLeft=s,e._disposers.push(e.sideLeft);var n=e.createChild(U);n.shouldClone=!1,n.setElement(e.paper.add("path")),n.isMeasured=!1,e.sideRight=n,e._disposers.push(e.sideRight);var o=e.createChild(U);o.shouldClone=!1,o.setElement(e.paper.add("path")),o.isMeasured=!1,e.sideTop=o,e._disposers.push(e.sideTop);var l=e.createChild(U);return l.shouldClone=!1,l.setElement(e.paper.add("path")),l.isMeasured=!1,e.sideFront=l,e._disposers.push(e.sideFront),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.innerWidth,t=this.innerHeight,r=this.depth,s=this.angle,n=N(s),o=B(s),l={x:0,y:0},u={x:e,y:0},h={x:e,y:t},p={x:0,y:t},d={x:r*o,y:-r*n},c={x:r*o+e,y:-r*n},f={x:r*o+e,y:-r*n+t},y={x:r*o,y:-r*n+t};this.sideFront.path=R(l)+F(u)+F(h)+F(p)+Ee(),this.sideBack.path=R(d)+F(c)+F(f)+F(y)+Ee(),this.sideLeft.path=R(l)+F(d)+F(y)+F(p)+Ee(),this.sideRight.path=R(u)+F(c)+F(f)+F(h)+Ee(),this.sideBottom.path=R(p)+F(y)+F(f)+F(h)+Ee(),this.sideTop.path=R(l)+F(d)+F(c)+F(u)+Ee()},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.setFill=function(e){a.prototype.setFill.call(this,e),(!Fe(e)||"r"in e)&&(e=Qt(e));var t;if(e instanceof de)t=e.hex;else if(e instanceof Mt||e instanceof Si)t=e.stops.getIndex(0).color.hex;else{var r=new fn;r.lightness=-.2,this.sideBack.filters.push(r);var s=r.clone();s.lightness=-.4,this.sideLeft.filters.push(s);var n=r.clone();n.lightness=-.2,this.sideRight.filters.push(n);var o=r.clone();o.lightness=-.1,this.sideTop.filters.push(o);var l=r.clone();l.lightness=-.5,this.sideBottom.filters.push(l)}t&&(this.sideBack.fill=Z(t).lighten(-.2),this.sideLeft.fill=Z(t).lighten(-.4),this.sideRight.fill=Z(t).lighten(-.2),this.sideTop.fill=Z(t).lighten(-.1),this.sideBottom.fill=Z(t).lighten(-.5))},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.sideBack.copyFrom(e.sideBack),this.sideLeft.copyFrom(e.sideLeft),this.sideRight.copyFrom(e.sideRight),this.sideTop.copyFrom(e.sideTop),this.sideBottom.copyFrom(e.sideBottom)},i})(Y);var du=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Column3D",e}return i.prototype.createAssets=function(){this.column3D=this.createChild(Wp),this.column3D.shouldClone=!1,this.column3D.strokeOpacity=0,this.column=this.column3D},i.prototype.validate=function(){a.prototype.validate.call(this),this.column3D&&(this.column3D.width=this.pixelWidth,this.column3D.height=this.pixelHeight,this.column3D.invalid&&this.column3D.validate())},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.column3D&&this.column3D.copyFrom(e.column3D)},i.prototype.setFill=function(e){a.prototype.setFill.call(this,e),this.column.fill=e},i})(Di);_.registeredClasses.Column3D=du;var gm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ColumnSeries3DDataItem",e.applyTheme(),e}return i})(Ht);var _o=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ColumnSeries3D",e.columns.template.column3D.applyOnClones=!0,e.columns.template.hiddenState.properties.visible=!0,e.applyTheme(),e}return Object.defineProperty(i.prototype,"columnsContainer",{get:function(){var e=this.chart;return e&&e.columnsContainer&&e.leftAxesContainer.layout!="vertical"&&e.rightAxesContainer.layout!="vertical"&&e.bottomAxesContainer.layout!="horizontal"&&e.topAxesContainer.layout!="horizontal"?e.columnsContainer:this._columnsContainer},enumerable:!0,configurable:!0}),i.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e),e.column&&(e.column.dx=this.dx,e.column.dy=this.dy,e.column.visible=this.visible)},i.prototype.validateDataElements=function(){a.prototype.validateDataElements.call(this),this.chart&&this.chart.invalidateLayout()},i.prototype.createColumnTemplate=function(){return new du},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e,!0);var t=this.columns.template;t.column3D.depth=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e);var t=this.columns.template;t.column3D.angle=e},enumerable:!0,configurable:!0}),i})(it);_.registeredClasses.ColumnSeries3D=_o;_.registeredClasses.ColumnSeries3DDataItem=gm;var bv=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="XYChart3DDataItem",e.applyTheme(),e}return i})(ss);var vm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._axisRendererX=pu,e._axisRendererY=Bp,e.className="XYChart3D",e.depth=30,e.angle=30;var t=e.seriesContainer.createChild(Y);return t.shouldClone=!1,t.isMeasured=!1,t.layout="none",e.columnsContainer=t,e.columnsContainer.mask=e.createChild(U),e.applyTheme(),e}return i.prototype.updateSeriesMasks=function(){if(a.prototype.updateSeriesMasks.call(this),Sr()){var e=this.columnsContainer,t=e.mask;e.mask=void 0,e.mask=t}},Object.defineProperty(i.prototype,"depth",{get:function(){return this.getPropertyValue("depth")},set:function(e){this.setPropertyValue("depth",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e),this.fixLayout(),this.invalidateDataUsers()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dx3D",{get:function(){return B(this.angle)*this.depth},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"dy3D",{get:function(){return-N(this.angle)*this.depth},enumerable:!0,configurable:!0}),i.prototype.validateLayout=function(){a.prototype.validateLayout.call(this),this.fixColumns()},i.prototype.fixLayout=function(){this.chartContainer.paddingTop=-this.dy3D,this.chartContainer.paddingRight=this.dx3D,this.scrollbarX&&(this.scrollbarX.dy=this.dy3D,this.scrollbarX.dx=this.dx3D),this.scrollbarY&&(this.scrollbarY.dy=this.dy3D,this.scrollbarY.dx=this.dx3D),this.fixColumns(),a.prototype.fixLayout.call(this)},i.prototype.fixColumns=function(){var e=this,t=1,r=0;V(this.series.iterator(),function(n){n instanceof _o&&(!n.clustered&&r>0&&t++,n.depthIndex=t-1,r++)});var s=0;V(this.series.iterator(),function(n){if(n instanceof _o){n.depth=e.depth/t,n.angle=e.angle,n.columnsContainer==e.columnsContainer&&(n.dx=e.depth/t*B(e.angle)*n.depthIndex,n.dy=-e.depth/t*N(e.angle)*n.depthIndex);var o=!1;(n.baseAxis==n.xAxis&&n.xAxis.renderer.inversed||n.baseAxis==n.yAxis&&n.yAxis.renderer.inversed)&&(o=!0);var l=1;n.dataItems.each(function(u){var h=u.column;h&&(o?h.zIndex=1e3*(1e3-l)+s-n.depthIndex*100:h.zIndex=1e3*l+s-n.depthIndex*100),l++}),o?s--:s++}}),this.maskColumns()},i.prototype.processConfig=function(e){if(e&&$(e.series)&&je(e.series))for(var t=0,r=e.series.length;t<r;t++)e.series[t].type=e.series[t].type||"ColumnSeries3D";a.prototype.processConfig.call(this,e)},i.prototype.maskColumns=function(){var e=this.plotContainer.pixelWidth,t=this.plotContainer.pixelHeight,r=this.dx3D,s=this.dy3D,n=R({x:0,y:0})+F({x:r,y:s})+F({x:e+r,y:s})+F({x:e+r,y:t+s})+F({x:e,y:t})+F({x:e,y:t})+F({x:0,y:t})+Ee(),o=this.columnsContainer;o&&o.mask&&(o.mask.path=n)},i})(qe);_.registeredClasses.XYChart3D=vm;var bm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="HeatLegend",e.markerContainer=e.createChild(Y),e.markerContainer.shouldClone=!1,e.markerCount=1;var t=new Ft;return t.minHeight=20,t.minWidth=20,t.interactionsEnabled=!1,t.fillOpacity=1,t.cornerRadius(0,0,0,0),e.markerContainer.minHeight=20,e.markerContainer.minWidth=20,e.orientation="horizontal",e.markers=new Te(t),e._disposers.push(new ge(e.markers)),e._disposers.push(e.markers.template),e.applyTheme(),e}return i.prototype.getMinFromRules=function(e){var t=this.series;if(t){var r;return St(t.heatRules.iterator(),function(s){return s.property==e?(r=s.min,!1):!0}),r}},i.prototype.getMaxFromRules=function(e){var t=this.series;if(t){var r;return V(t.heatRules.iterator(),function(s){return s.property==e?(r=s.max,!1):!0}),r}},i.prototype.validate=function(){a.prototype.validate.call(this),this.valueAxis.renderer.inversed=this.reverseOrder;var e=this.series,t=this.minColor,r=this.maxColor;if($(t)||(t=Qt(this.getMinFromRules("fill"))),$(r)||(r=Qt(this.getMaxFromRules("fill"))),e){var s=e.fill;!$(t)&&s instanceof de&&(t=s),!$(r)&&s instanceof de&&(r=s)}$(r)||(r=Qt(this.getMaxFromRules("fill")));var n=Oe(this.getMinFromRules("fillOpacity"));b(n)||(n=1);var o=Oe(this.getMaxFromRules("fillOpacity"));b(o)||(o=1);var l=Oe(this.getMinFromRules("strokeOpacity"));b(l)||(l=1);var u=Oe(this.getMaxFromRules("strokeOpacity"));b(u)||(u=1);for(var h=Qt(this.getMinFromRules("stroke")),p=Qt(this.getMaxFromRules("stroke")),d=0;d<this.markerCount;d++){var c=this.markers.getIndex(d);if(c||(c=this.markers.create(),c.parent=this.markerContainer,c.height=k(100),c.width=k(100)),this.markerCount==1){var f=new Mt;if(this.reverseOrder?(f.addColor(r,o),f.addColor(t,n)):(f.addColor(t,n),f.addColor(r,o)),this.orientation=="vertical"&&(f.rotation=-90),c.fill=f,$(h)&&$(p)){var y=new Mt;this.reverseOrder?(y.addColor(p,u),y.addColor(h,l)):(y.addColor(h,l),y.addColor(p,u)),this.orientation=="vertical"&&(y.rotation=-90),c.stroke=y}}else{var g=d;this.reverseOrder&&(g=this.markerCount-d-1);var v=new de(Ba(t.rgb,r.rgb,g/this.markerCount));c.fill=v;var x=n+(o-n)*g/this.markerCount;if(c.fillOpacity=x,$(h)&&$(p)){var P=new de(Ba(h.rgb,p.rgb,g/this.markerCount));c.stroke=P;var T=l+(u-l)*g/this.markerCount;c.strokeOpacity=T}}}var C=this.valueAxis.renderer;this.markerCount>1&&(this.orientation=="horizontal"?C.minGridDistance=this.measuredWidth/this.markerCount:C.minGridDistance=this.measuredHeight/this.markerCount),this.valueAxis.invalidate();for(var d=this.markerCount,O=this.markers.length;d<O;d++)this.markers.getIndex(d).parent=void 0},Object.defineProperty(i.prototype,"minColor",{get:function(){return this.getPropertyValue("minColor")},set:function(e){e instanceof de||(e=Qt(e)),this.setColorProperty("minColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxColor",{get:function(){return this.getPropertyValue("maxColor")},set:function(e){e instanceof de||(e=Qt(e)),this.setColorProperty("maxColor",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"markerCount",{get:function(){return this.getPropertyValue("markerCount")},set:function(e){this.setPropertyValue("markerCount",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"minValue",{get:function(){return this.getPropertyValue("minValue")},set:function(e){this.setPropertyValue("minValue",e),this.valueAxis.min=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxValue",{get:function(){return this.getPropertyValue("maxValue")},set:function(e){this.setPropertyValue("maxValue",e),this.valueAxis.max=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0);var t=this.markerContainer,r=this.valueAxis;e=="horizontal"?($(this.width)||(this.width=200),this.height=void 0,r.width=k(100),r.height=void 0,r.tooltip.pointerOrientation="vertical",this.layout="vertical",t.width=k(100),t.height=void 0,r.renderer instanceof dt||(r.renderer=new dt)):($(this.height)||(this.height=200),this.width=void 0,this.layout="horizontal",t.width=void 0,t.height=k(100),r.height=k(100),r.width=void 0,r.tooltip.pointerOrientation="horizontal",r.renderer instanceof _t||(r.renderer=new _t),r.renderer.inside=!0,r.renderer.labels.template.inside=!0,this.markerContainer.reverseOrder=!0);var s=r.renderer;s.grid.template.disabled=!0,s.axisFills.template.disabled=!0,s.baseGrid.disabled=!0,s.labels.template.padding(2,3,2,3),s.minHeight=void 0,s.minWidth=void 0,this.markerContainer.layout=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueAxis",{get:function(){return this._valueAxis||(this.valueAxis=this.createChild(Q),this.valueAxis.shouldClone=!1),this._valueAxis},set:function(e){this._valueAxis=e,e.parent=this,e.strictMinMax=!0,this.orientation=this.orientation},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"series",{get:function(){return this._series},set:function(e){var t=this;this._series=e;var r="value";try{var s=e.heatRules.getIndex(0).dataField;s&&(r=s)}catch{}this.updateMinMax(e.dataItem.values[r].low,e.dataItem.values[r].high),e.dataItem.events.on("calculatedvaluechanged",function(n){t.updateMinMax(e.dataItem.values[r].low,e.dataItem.values[r].high)},void 0,!1),e.heatRules.events.on("inserted",this.invalidate,this,!1),e.heatRules.events.on("removed",this.invalidate,this,!1)},enumerable:!0,configurable:!0}),i.prototype.updateMinMax=function(e,t){var r=this.valueAxis;b(this.minValue)||(r.min=e,r.invalidate()),b(this.maxValue)||(r.max=t,r.invalidate())},i.prototype.processConfig=function(e){if(e&&$(e.series)&&se(e.series)&&se(e.series))if(this.map.hasKey(e.series))e.series=this.map.getKey(e.series);else{var t=e.series,r=this.map.events.on("insertKey",function(s){s.key==t&&(this.series=s.newValue,r.dispose())},this);this._disposers.push(r),delete e.series}a.prototype.processConfig.call(this,e)},i})(Y);_.registeredClasses.HeatLegend=bm;var $o=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="OHLC",e.layout="none",e}return i.prototype.createAssets=function(){this.openLine=this.createChild(Kt),this.openLine.shouldClone=!1,this.highLowLine=this.createChild(Kt),this.highLowLine.shouldClone=!1,this.closeLine=this.createChild(Kt),this.closeLine.shouldClone=!1},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.openLine&&this.openLine.copyFrom(e.openLine),this.highLowLine&&this.highLowLine.copyFrom(e.highLowLine),this.closeLine&&this.closeLine.copyFrom(e.closeLine)},i})(ns);_.registeredClasses.OHLC=$o;var Hp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="OHLCSeriesDataItem",e.applyTheme(),e}return i})(os);var xm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="OHLCSeries",e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("OHLC Series"))},i.prototype.createDataItem=function(){return new Hp},i.prototype.validateCandlestick=function(e){var t=e.column;if(t){var r=t.openLine,s=t.highLowLine,n=t.closeLine;if(this.baseAxis==this.xAxis){var o=t.pixelWidth/2;s.x=o,e.getWorkingValue(this.yOpenField),e.getWorkingValue(this.yField);var l=this.yAxis.getY(e,this.yOpenField),u=this.yAxis.getY(e,this.yField),h=this.yAxis.getY(e,this.yLowField),p=this.yAxis.getY(e,this.yHighField),d=t.pixelY;r.y1=l-d,r.y2=l-d,r.x1=0,r.x2=o,n.y1=u-d,n.y2=u-d,n.x1=o,n.x2=2*o,s.y1=p-d,s.y2=h-d}if(this.baseAxis==this.yAxis){var c=t.pixelHeight/2;s.y=c,e.getWorkingValue(this.xOpenField),e.getWorkingValue(this.xField);var f=this.xAxis.getX(e,this.xOpenField),y=this.xAxis.getX(e,this.xField),g=this.xAxis.getX(e,this.xLowField),v=this.xAxis.getX(e,this.xHighField),x=t.pixelX;r.x1=f-x,r.x2=f-x,r.y1=c,r.y2=2*c,n.x1=y-x,n.x2=y-x,n.y1=0,n.y2=c,s.x1=v-x,s.x2=g-x}V(this.axisRanges.iterator(),function(P){var T=e.rangesColumns.getKey(P.uid);if(T){var C=T.openLine;C.x=r.x,C.y=r.y,C.x1=r.x1,C.x2=r.x2,C.y1=r.y1,C.y2=r.y2;var O=T.closeLine;O.x=n.x,O.y=n.y,O.x1=n.x1,O.x2=n.x2,O.y1=n.y1,O.y2=n.y2;var w=T.highLowLine;w.x=s.x,w.y=s.y,w.x1=s.x1,w.x2=s.x2,w.y1=s.y1,w.y2=s.y2}})}},i.prototype.createLegendMarker=function(e){var t=e.pixelWidth,r=e.pixelHeight;e.removeChildren();var s=e.createChild($o);s.shouldClone=!1,s.copyFrom(this.columns.template);var n,o,l=s.openLine,u=s.closeLine,h=s.highLowLine;this.baseAxis==this.yAxis?(n=t/3,o=r,h.y=r/2,h.x2=t,l.x=t/3*2,l.y2=r/2,u.x=t/3,u.y2=r,u.y1=r/2):(n=t,o=r/3,h.x=t/2,h.y2=r,l.y=r/3*2,l.x2=t/2,u.y=r/3,u.x2=t,u.x1=t/2),s.width=n,s.height=o,Ke(this,e,He),Ke(this.columns.template,s,He),s.stroke=this.riseFromOpenState.properties.stroke;var p=e.dataItem;p.color=s.stroke,p.colorOrig=s.stroke},i.prototype.createColumnTemplate=function(){return new $o},i})($t);_.registeredClasses.OHLCSeries=xm;_.registeredClasses.OHLCSeriesDataItem=Hp;var cu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RadarColumn",e}return i.prototype.createAssets=function(){this.radarColumn=this.createChild(Ei),this.radarColumn.shouldClone=!1,this.radarColumn.strokeOpacity=void 0,this.column=this.radarColumn},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.radarColumn&&this.radarColumn.copyFrom(e.radarColumn)},i.prototype.getTooltipX=function(){var e=this.getPropertyValue("tooltipX");return b(e)?e:this.radarColumn.getTooltipX()},i.prototype.getTooltipY=function(){var e=this.getPropertyValue("tooltipX");return b(e)?e:this.radarColumn.getTooltipY()},i})(Di);_.registeredClasses.RadarColumn=cu;var _m=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ColumnSeriesDataItem",e.applyTheme(),e}return i})(Ht);var $m=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RadarColumnSeries",e.applyTheme(),e}return i.prototype.createColumnTemplate=function(){return new cu},i.prototype.validate=function(){this.chart.invalid&&this.chart.validate(),a.prototype.validate.call(this)},i.prototype.disableUnusedColumns=function(e){e&&(e.column&&(e.column.__disabled=!0),V(this.axisRanges.iterator(),function(t){var r=e.rangesColumns.getKey(t.uid);r&&(r.__disabled=!0)}))},i.prototype.validateDataElementReal=function(e){var t=this,r=this.chart.startAngle,s=this.chart.endAngle,n=this.yField,o=this.yOpenField,l=this.xField,u=this.xOpenField,h,p,d,c,f=this.getStartLocation(e),y=this.getEndLocation(e),g=(s-r)/(this.dataItems.length*(this.end-this.start)),v=e.column;v||(v=this.columns.create(),e.column=v,Ke(this,v,He),Ke(this.columns.template,v,He),e.addSprite(v),v.paper=this.paper,this.setColumnStates(v));var x=v.width,P=100;x instanceof ae&&(P=x.percent);var T=I((y-f)*(1-P/100)/2,5);if(f+=T,y-=T,this.xAxis instanceof $e&&this.yAxis instanceof $e)d=xe({x:this.yAxis.getX(e,n,0,"valueY"),y:this.yAxis.getY(e,n,0,"valueY")}),c=xe({x:this.yAxis.getX(e,o,1,"valueY"),y:this.yAxis.getY(e,o,1,"valueY")}),h=this.xAxis.getAngle(e,u,0,"valueX"),p=this.xAxis.getAngle(e,l,1,"valueX"),r=r+f*g,s=s-(1-y)*g;else if(this.baseAxis==this.xAxis)d=xe({x:this.yAxis.getX(e,n,e.locations[n],"valueY"),y:this.yAxis.getY(e,n,e.locations[n],"valueY")}),c=xe({x:this.yAxis.getX(e,o,e.locations[o],"valueY"),y:this.yAxis.getY(e,o,e.locations[o],"valueY")}),h=this.xAxis.getAngle(e,u,f,"valueX"),p=this.xAxis.getAngle(e,l,y,"valueX"),r=r+f*g,s=s-(1-y)*g;else{if(d=xe({x:this.yAxis.getX(e,n,f,"valueY"),y:this.yAxis.getY(e,n,f,"valueY")}),c=xe({x:this.yAxis.getX(e,o,y,"valueY"),y:this.yAxis.getY(e,o,y,"valueY")}),b(x)){var C=Math.abs(d-c);if(C>x){var O=(C-x)/2;d+=O,c-=O}}h=this.xAxis.getAngle(e,l,e.locations[l],"valueX"),p=this.xAxis.getAngle(e,u,e.locations[u],"valueX")}if(p<h){var w=p;p=h,h=w}h=X(h,r,s),p=X(p,r,s);var D=v.radarColumn;D.startAngle=h;var A=p-h;A>0?(D.arc=A,D.radius=d,D.innerRadius=c,v.__disabled=!1,v.parent=this.columnsContainer,V(this.axisRanges.iterator(),function(H){var E=e.rangesColumns.getKey(H.uid);E||(E=t.columns.create(),ff(t.columns.template,E,He),Ke(H.contents,E,He),E.dataItem&&ee(E.dataItem.sprites,E),e.addSprite(E),E.paper=t.paper,t.setColumnStates(E),e.rangesColumns.setKey(H.uid,E));var j=E.radarColumn;j.startAngle=h,j.arc=A,j.radius=d,j.innerRadius=c,j.invalid&&(j.paper=t.paper,j.validate()),E.__disabled=!1,E.parent=H.contents})):this.disableUnusedColumns(e)},i.prototype.getPoint=function(e,t,r,s,n,o,l){o||(o="valueX"),l||(l="valueY");var u=this.yAxis.getX(e,r,n,l),h=this.yAxis.getY(e,r,n,l),p=xe({x:u,y:h});p==0&&(p=1e-5);var d=this.xAxis.getAngle(e,t,s,o);return{x:p*B(d),y:p*N(d)}},i.prototype.getMaskPath=function(){var e=this.yAxis.renderer;return qi(e.startAngle,e.endAngle-e.startAngle,e.pixelRadius,e.pixelInnerRadius)},i.prototype.positionBulletReal=function(e,t,r){var s=this.xAxis,n=this.yAxis;(t<s.start||t>s.end||r<n.start||r>n.end)&&(e.visible=!1),e.moveTo(this.xAxis.renderer.positionToPoint(t,r))},i.prototype.setXAxis=function(e){a.prototype.setXAxis.call(this,e),this.updateRendererRefs()},i.prototype.setYAxis=function(e){a.prototype.setYAxis.call(this,e),this.updateRendererRefs()},i.prototype.updateRendererRefs=function(){var e=this.xAxis.renderer,t=this.yAxis.renderer;e.axisRendererY=t},i})(it);_.registeredClasses.RadarColumnSeries=$m;_.registeredClasses.RadarColumnSeriesDataItem=_m;var Po=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.slice=e.createChild(U),e.slice.shouldClone=!1,e.slice.setElement(e.paper.add("path")),e.slice.isMeasured=!1,e.orientation="vertical",e.bottomWidth=k(100),e.topWidth=k(100),e.isMeasured=!1,e.width=10,e.height=10,e.expandDistance=0,e.className="FunnelSlice",e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelPaddingTop,t=this.pixelPaddingBottom,r=this.pixelPaddingRight,s=this.pixelPaddingLeft,n=this.pixelWidth-r-s,o=this.pixelHeight-e-t,l=this.expandDistance,u="";if(this.orientation=="vertical"){var h=Ie(this.topWidth,n),p=Ie(this.bottomWidth,n),d={x:(n-h)/2+s,y:e},c={x:(n+h)/2+s,y:e},f={x:(n+p)/2+s,y:e+o},y={x:(n-p)/2+s,y:e+o},g={x:c.x+(f.x-c.x)/2+l*o,y:c.y+.5*o},v={x:d.x+(y.x-d.x)/2-l*o,y:d.y+.5*o},x=F(f),P=F(d);l!=0&&(x=Tr(f,g),P=Tr(d,v)),u=R(d)+F(c)+x+F(y)+P,this.tickPoint={x:c.x+(f.x-c.x)/2,y:c.y+(f.y-c.y)/2}}else{var h=Ie(this.topWidth,o),p=Ie(this.bottomWidth,o),T={x:s,y:(o-h)/2+e},C={x:s,y:(o+h)/2+e},O={x:s+n,y:(o-p)/2+e},w={x:s+n,y:(o+p)/2+e},g={y:T.y+(O.y-T.y)/2-l*n,x:T.x+.5*n},v={y:C.y+(w.y-C.y)/2+l*n,x:C.x+.5*n},x=F(O),P=F(C);l!=0&&(x=Tr(O,g),P=Tr(C,v)),u=R(C)+F(T)+x+F(w)+P,this.tickPoint={y:C.y+(w.y-C.y)/2,x:C.x+(w.x-C.x)/2}}this.slice.path=u,this.invalidateLayout()},i.prototype.getPoint=function(e,t){var r=this.pixelPaddingTop,s=this.pixelPaddingBottom,n=this.pixelPaddingRight,o=this.pixelPaddingLeft,l=this.pixelWidth-n-o,u=this.pixelHeight-r-s;if(this.orientation=="vertical"){var h=Ie(this.topWidth,l),p=Ie(this.bottomWidth,l),d={x:(l-h)/2+o,y:r},c={x:(l+h)/2+o,y:r},f={x:(l+p)/2+o,y:r+u},y={x:(l-p)/2+o,y:r+u},g=d.x+(y.x-d.x)*t,v=c.x+(f.x-c.x)*t;return{x:g+(v-g)*e,y:c.y+(f.y-c.y)*t}}else{var h=Ie(this.topWidth,u),p=Ie(this.bottomWidth,u),x={x:o,y:(u-h)/2+r},P={x:o,y:(u+h)/2+r},T={x:o+l,y:(u-p)/2+r},C={x:o+l,y:(u+p)/2+r},O=x.y+(T.y-x.y)*e,w=P.y+(C.y-P.y)*e;return{y:O+(w-O)*t,x:x.x+(T.x-x.x)*e}}},Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!0,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"expandDistance",{get:function(){return this.getPropertyValue("expandDistance")},set:function(e){this.setPropertyValue("expandDistance",e,!0)},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.slice&&this.slice.copyFrom(e.slice)},i})(Y);_.registeredClasses.FunnelSlice=Po;var zp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._label=new We,e._slice=new We,e.className="FunnelTick",e.element=e.paper.add("path"),e._disposers.push(e._label),e._disposers.push(e._slice),e.setPropertyValue("locationX",0),e.setPropertyValue("locationY",0),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.slice,t=e.getPoint(this.locationX,this.locationY);if(t){var r=this.label,s=e.dataItem.component,n=void 0,o=void 0,l=void 0;if(s.orientation=="vertical"){var u=r.pixelX,h=r.pixelY;s.labelsOpposite||(u+=r.maxRight),n=At(t,e,this.parent),l=At({x:u,y:h},r.parent,this.parent),o={x:r.parent.pixelX-this.length,y:l.y},s.labelsOpposite||(o.x=r.parent.measuredWidth+this.length)}else{var u=r.pixelX,h=r.pixelY;s.labelsOpposite||(h+=r.maxBottom),n=At(t,e,this.parent),l=At({x:u,y:h},r.parent,this.parent),o={x:l.x,y:r.parent.pixelY-this.length},s.labelsOpposite||(o.y=r.parent.measuredHeight+this.length)}this.path=R(n)+F(o)+F(l)}},Object.defineProperty(i.prototype,"slice",{get:function(){return this._slice.get()},set:function(e){this._slice.set(e,new Pe([e.events.on("transformed",this.invalidate,this,!1),e.events.on("validated",this.invalidate,this,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"label",{get:function(){return this._label.get()},set:function(e){this._label.set(e,e.events.on("transformed",this.invalidate,this,!1))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationX",{get:function(){return this.getPropertyValue("locationX")},set:function(e){this.setPropertyValue("locationX",e,!1,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"locationY",{get:function(){return this.getPropertyValue("locationY")},set:function(e){this.setPropertyValue("locationY",e,!1,!0)},enumerable:!0,configurable:!0}),i})(Dr);_.registeredClasses.FunnelTick=zp;var So=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="FunnelSeriesDataItem",e.events.on("visibilitychanged",function(){e.component&&e.component.invalidateDataItems()},e,!1),e.applyTheme(),e}return Object.defineProperty(i.prototype,"sliceLink",{get:function(){var e=this;if(!this._sliceLink){var t=this.component.sliceLinks.create();this._sliceLink=t,this._disposers.push(t),t.parent=this.component.slicesContainer,this._disposers.push(new ye(function(){e.component&&e.component.sliceLinks.removeValue(t)})),this.addSprite(t),t.visible=this.visible}return this._sliceLink},enumerable:!0,configurable:!0}),i})(cn);var fu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e._nextY=0,e.className="FunnelSeries",e.orientation="vertical",e.width=k(100),e.height=k(100),e.slicesContainer.width=k(100),e.slicesContainer.height=k(100),e._disposers.push(e.slicesContainer.events.on("maxsizechanged",e.invalidateDataItems,e,!1)),e.labelsOpposite=!0,e.labelsContainer.layout="absolute",e.bottomRatio=0,e.applyTheme(),e}return i.prototype.createSlice=function(){return new Po},i.prototype.createTick=function(){return new zp},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Funnel Series"))},i.prototype.createDataItem=function(){return new So},i.prototype.initSlice=function(e){e.isMeasured=!1,e.defaultState.properties.scale=1,e.observe("scale",this.handleSliceScale,this),e.observe(["dx","dy","x","y"],this.handleSliceMove,this),e.tooltipText="{category}: {value.percent.formatNumber('#.#p')} ({value.value})";var t=e.states.create("hover");t.properties.expandDistance=.2},i.prototype.initLabel=function(e){a.prototype.initLabel.call(this,e),e.verticalCenter="middle",e.horizontalCenter="middle",e.isMeasured=!0,e.padding(5,5,5,5)},i.prototype.validate=function(){a.prototype.validate.call(this),this._nextY=0},i.prototype.validateDataElements=function(){var e=this,t=this.slicesContainer,r=this.labelsContainer,s=this.labels.template;this.alignLabels?(s.interactionsEnabled=!0,t.isMeasured=!0,r.isMeasured=!0):(s.interactionsEnabled=!1,t.isMeasured=!1,r.isMeasured=!1);var n=0,o=0;this.dataItems.each(function(l){$(l.value)&&(o++,l.value>0?n+=Math.abs(l.getWorkingValue("value")/l.value):e.ignoreZeroValues||!l.visible||l.__disabled||l.isHiding?o--:n+=1)}),this._total=1/o*n,this._count=o,a.prototype.validateDataElements.call(this),this.arrangeLabels()},i.prototype.getNextValue=function(e){var t=e.index,r=e.getWorkingValue("value");if(t<this.dataItems.length-1){var s=this.dataItems.getIndex(t+1);if(r=s.getWorkingValue("value"),!s.visible||s.isHiding||s.__disabled||s.value==0&&this.ignoreZeroValues)return this.getNextValue(s)}return r},i.prototype.formDataElement=function(){},i.prototype.validateDataElement=function(e){var t=this,r=e.slice;r.orientation=this.orientation;var s=e.sliceLink;s.orientation=this.orientation;var n=e.tick,o=e.label;n.slice=r,n.label=o,$(e.value)?(this.decorateSlice(e),M(e.sprites,function(l){e.value==0&&t.ignoreZeroValues?l.__disabled=!0:l.__disabled=!1})):M(e.sprites,function(l){l.__disabled=!0}),e.index==this.dataItems.length-1&&(s.disabled=!0),a.prototype.validateDataElement.call(this,e),s.fill=r.fill},i.prototype.decorateSlice=function(e){var t=e.slice,r=e.sliceLink,s=e.label,n=e.tick,o=this.slicesContainer.innerWidth,l=this.slicesContainer.innerHeight,u=this.getNextValue(e),h=Math.abs(e.getWorkingValue("value")),p=this.bottomRatio,d=1;if(e.value!=0?d=h/Math.abs(e.value):(e.__disabled||e.isHiding||!e.visible)&&(d=1e-6),this.ignoreZeroValues&&e.value==0){e.__disabled=!0;return}else e.__disabled=!1;if(this._nextY==1/0&&(this._nextY=0),this.orientation=="vertical"){var c=r.pixelHeight*d;l=l+c,t.topWidth=h/this.dataItem.values.value.high*o,t.bottomWidth=(h-(h-u)*p)/this.dataItem.values.value.high*o,r.topWidth=t.bottomWidth,r.bottomWidth=(h-(h-u))/this.dataItem.values.value.high*o,t.y=this._nextY,t.height=Math.min(1e5,ie(0,l/this._count*d/this._total-c)),t.x=o/2,this.alignLabels?s.x=void 0:s.x=t.x,s.y=t.pixelY+t.pixelHeight*n.locationY,this._nextY+=t.pixelHeight+c,r.y=this._nextY-c,r.x=t.x}else{var f=r.pixelWidth*d;o=o+f,t.topWidth=h/this.dataItem.values.value.high*l,t.bottomWidth=(h-(h-u)*p)/this.dataItem.values.value.high*l,r.topWidth=t.bottomWidth,r.bottomWidth=(h-(h-u))/this.dataItem.values.value.high*l,t.x=this._nextY,t.width=Math.min(1e5,o/this._count*d*1/this._total-f),t.y=l/2,this.alignLabels?s.y=this.labelsContainer.measuredHeight:s.y=t.y,s.x=t.pixelX+t.pixelWidth*n.locationX,this._nextY+=t.pixelWidth+f,r.x=this._nextY-f,r.y=t.y}},i.prototype.getLastLabel=function(e){if(e>0){var t=this.labels.getIndex(e);return t.__disabled||!t.visible?this.getLastLabel(e-1):t}},i.prototype.arrangeLabels=function(){if(this.alignLabels){var e=this.labels.length;if(e>1){var t=this.getLastLabel(e-1);if(t){var r=t.pixelY,s=t.pixelX;if(e>1){for(var n=e-2;n>=0;n--){var o=this.labels.getIndex(n);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY+o.measuredHeight>r&&(o.y=Math.min(1e6,r-o.measuredHeight)):o.pixelX+o.measuredWidth>s&&(o.x=Math.min(1e6,s-o.measuredWidth)),r=o.pixelY,s=o.pixelX)}r=0,s=0;for(var n=0;n<e;n++){var o=this.labels.getIndex(n);o.visible&&!o.__disabled&&(o.invalid&&o.validate(),this.orientation=="vertical"?o.pixelY<r&&(o.y=Math.min(1e6,r)):o.pixelX<s&&(o.x=Math.min(1e6,s)),r+=o.measuredHeight,s+=o.measuredWidth)}}}}}},i.prototype.positionBullet=function(e){a.prototype.positionBullet.call(this,e);var t=e.dataItem,r=t.slice,s=e.locationX;b(s)||(s=.5);var n=e.locationY;b(n)||(n=1),e.x=r.pixelX+r.measuredWidth*s,e.y=r.pixelY+r.measuredHeight*n},Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e)&&(this.labelsOpposite=this.labelsOpposite,this.invalidate(),e=="vertical"?(this.ticks.template.locationX=1,this.ticks.template.locationY=.5,this.labels.template.rotation=0,this.layout="horizontal"):(this.ticks.template.locationX=.5,this.ticks.template.locationY=1,this.labels.template.rotation=-90,this.layout="vertical"))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomRatio",{get:function(){return this.getPropertyValue("bottomRatio")},set:function(e){this.setPropertyValue("bottomRatio",e)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"sliceLinks",{get:function(){if(!this._sliceLinks){var e=new Po;e.applyOnClones=!0,e.fillOpacity=.5,e.expandDistance=-.3,e.hiddenState.properties.opacity=0,this._disposers.push(e),this._sliceLinks=new Te(e),this._disposers.push(new ge(this._sliceLinks))}return this._sliceLinks},enumerable:!0,configurable:!0}),i.prototype.show=function(e){var t=this,r=this.startIndex,s=this.endIndex,n=this.defaultState.transitionDuration;b(e)&&(n=e),ue.animationsEnabled||(n=0);var o=0;V(Yi(this.dataItems.iterator()),function(u){var h=u[0],p=u[1];t.sequencedInterpolation&&(o=t.sequencedInterpolationDelay*h+n*(h-r)/(s-r)),p.show(n,o,["value"])});var l=a.prototype.show.call(this,e);return l},i.prototype.hide=function(e){var t=this,r=["value"],s=0,n=this.startIndex,o=this.endIndex,l=0,u=this.hiddenState.transitionDuration;b(e)&&(u=e),ue.animationsEnabled||(u=0),V(Yi(this.dataItems.iterator()),function(p){var d=p[0],c=p[1];t.sequencedInterpolation&&(l=t.sequencedInterpolationDelay*d+u*(d-n)/(o-n)),c.hide(u,l,s,r)});var h=a.prototype.hide.call(this,e);return h&&!h.isFinished()&&h.delay(l),h},i.prototype.setAlignLabels=function(e){a.prototype.setAlignLabels.call(this,e),this.ticks.template.disabled=!e;var t=this.labelsContainer;t&&(e?(t.height=void 0,t.width=void 0,t.margin(10,10,10,10)):(t.width=k(100),t.height=k(100))),this.labelsOpposite=this.labelsOpposite},Object.defineProperty(i.prototype,"labelsOpposite",{get:function(){return this.getPropertyValue("labelsOpposite")},set:function(e){this.setPropertyValue("labelsOpposite",e);var t=this.labels.template,r="none",s="none";this.alignLabels?e?(this.labelsContainer.toFront(),this.orientation=="vertical"?(this.ticks.template.locationX=1,t.horizontalCenter="left",r="right"):(this.ticks.template.locationY=1,t.horizontalCenter="right",s="bottom")):(this.labelsContainer.toBack(),this.orientation=="vertical"?(this.ticks.template.locationX=0,r="left"):(s="top",this.ticks.template.locationY=0)):this.orientation=="vertical"?r="center":s="middle",t.align=r,t.valign=s,this.validateLayout(),this.ticks.each(function(n){n.invalidate()}),this.invalidateDataItems()},enumerable:!0,configurable:!0}),i})($a);_.registeredClasses.FunnelSeries=fu;_.registeredClasses.FunnelSeriesDataItem=So;var Co=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PyramidSeriesDataItem",e.applyTheme(),e}return i})(So);var mu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PyramidSeries",e.topWidth=k(0),e.bottomWidth=k(100),e.pyramidHeight=k(100),e.valueIs="area",e.sliceLinks.template.width=0,e.sliceLinks.template.height=0,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},i.prototype.createDataItem=function(){return new Co},i.prototype.validate=function(){a.prototype.validate.call(this),this._nextWidth=void 0},i.prototype.getNextValue=function(e){var t=e.index,r=e.getWorkingValue("value");if(t<this.dataItems.length-1){var s=this.dataItems.getIndex(t+1);r=s.getWorkingValue("value")}return r==0&&(r=1e-6),r},i.prototype.validateDataElements=function(){var e=this,t=this.slicesContainer.innerWidth,r=this.slicesContainer.innerHeight;if(this.dataItems.each(function(o){if(o.value>0){var l=o.getWorkingValue("value")/o.value,u=o.sliceLink;e.orientation=="vertical"?r-=u.pixelHeight*l:t-=u.pixelWidth*l}}),this._pyramidHeight=Ie(this.pyramidHeight,r),this._pyramidWidth=Ie(this.pyramidHeight,t),this.orientation=="vertical"){var s=(r-this._pyramidHeight)/2;this.slicesContainer.y=s,this.labelsContainer.y=s,this.ticksContainer.y=s}else{var n=(t-this._pyramidWidth)/2;this.slicesContainer.x=n,this.labelsContainer.x=n,this.ticksContainer.x=n}a.prototype.validateDataElements.call(this)},i.prototype.decorateSlice=function(e){var t=this.dataItem.values.value.absoluteSum;if(t!=0){var r=e.slice,s=e.sliceLink,n=e.label,o=e.tick;this.getNextValue(e);var l=Math.abs(e.getWorkingValue("value")),u=this._pyramidWidth,h=this._pyramidHeight,p=this.slicesContainer.innerWidth,d=this.slicesContainer.innerHeight,c=s.pixelWidth,f=s.pixelHeight;if((e.value==0||e.value==null)&&this.ignoreZeroValues?e.__disabled=!0:e.__disabled=!1,this.orientation=="vertical"){var y=Ie(this.topWidth,p);b(this._nextWidth)||(this._nextWidth=y);var g=Ie(this.bottomWidth,p),v=this._nextWidth,x=Math.atan2(h,y-g),P=Math.tan(Math.PI/2-x);P==0&&(P=1e-8);var T=void 0,C=void 0;if(this.valueIs=="area"){var O=(y+g)/2*h,w=O*l/t,D=Math.abs(v*v-2*w*P);T=(v-Math.sqrt(D))/P,T>0?C=(2*w-T*v)/T:C=v}else T=h*l/t,C=v-T*P;r.height=T,r.width=p,r.bottomWidth=C,r.topWidth=v,s.topWidth=r.bottomWidth,s.bottomWidth=r.bottomWidth,r.y=this._nextY,this.alignLabels?n.x=0:n.x=p/2,n.y=r.pixelY+r.pixelHeight*o.locationY+r.dy,this._nextY+=r.pixelHeight+f*l/Math.max(Math.abs(e.value),1e-8),s.y=this._nextY-f,s.x=p/2}else{var y=Ie(this.topWidth,d);b(this._nextWidth)||(this._nextWidth=y);var g=Ie(this.bottomWidth,d),v=this._nextWidth,x=Math.atan2(u,y-g),P=Math.tan(Math.PI/2-x);P==0&&(P=1e-8);var A=void 0,C=void 0;if(this.valueIs=="area"){var O=(y+g)/2*u,w=O*l/t;A=(v-Math.sqrt(v*v-2*w*P))/P,C=(2*w-A*v)/A}else A=u*l/t,C=v-A*P;r.width=A,r.height=d,r.bottomWidth=C,r.topWidth=v,s.topWidth=r.bottomWidth,s.bottomWidth=r.bottomWidth,r.x=this._nextY,this.alignLabels?n.y=this.labelsContainer.measuredHeight:n.y=d/2,n.x=r.pixelX+r.pixelWidth*o.locationX+r.dx,this._nextY+=r.pixelWidth+c*l/Math.max(Math.abs(e.value),1e-8),s.x=this._nextY-c,s.y=d/2}this._nextWidth=r.bottomWidth}},Object.defineProperty(i.prototype,"topWidth",{get:function(){return this.getPropertyValue("topWidth")},set:function(e){this.setPercentProperty("topWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pyramidHeight",{get:function(){return this.getPropertyValue("pyramidHeight")},set:function(e){this.setPercentProperty("pyramidHeight",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bottomWidth",{get:function(){return this.getPropertyValue("bottomWidth")},set:function(e){this.setPercentProperty("bottomWidth",e,!1,!1,10,!1)&&this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"valueIs",{get:function(){return this.getPropertyValue("valueIs")},set:function(e){this.setPropertyValue("valueIs",e)&&this.invalidate()},enumerable:!0,configurable:!0}),i})(fu);_.registeredClasses.PyramidSeries=mu;_.registeredClasses.PyramidSeriesDataItem=Co;var Xp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PictorialStackedSeriesDataItem",e.applyTheme(),e}return i})(Co);var Pm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="PictorialStackedSeries",e.topWidth=k(100),e.bottomWidth=k(100),e.valueIs="height",e.applyTheme(),e.startLocation=0,e.endLocation=1,e.align="center",e.valign="middle",e._maskSprite=e.slicesContainer.createChild(U),e._maskSprite.visible=!1,e._maskSprite.zIndex=100,e._maskSprite.shouldClone=!1,e}return i.prototype.validateDataElements=function(){var e=this.slicesContainer.maxWidth,t=this.slicesContainer.maxHeight,r=this._maskSprite,s=r.measuredWidth/r.scale,n=r.measuredHeight/r.scale,o=le(t/n,e/s);o==1/0&&(o=1),o=ie(.001,o);var l=this.startLocation,u=this.endLocation,h=le(e,s*o),p=le(t,n*o);r.scale=o,this.orientation=="vertical"?(this.topWidth=h+4,this.bottomWidth=h+4,this.pyramidHeight=p*(u-l),r.x=e/2,r.y=p/2):(this.topWidth=p+4,this.bottomWidth=p+4,this.pyramidHeight=h*(u-l),r.valign="middle",r.x=h/2,r.y=t/2),r.verticalCenter="middle",r.horizontalCenter="middle",a.prototype.validateDataElements.call(this);var d,c;this.orientation=="vertical"?(this.valign=="bottom"&&(d=t-p),this.valign=="middle"&&(d=(t-p)/2),this.valign=="top"&&(d=0),this.align=="left"&&(c=-(e-h)/2),this.align=="center"&&(c=0),this.align=="right"&&(c=(e-h)/2),this.slices.template.dy=l*p,this.alignLabels&&(this.slicesContainer.dx=c)):(this.valign=="bottom"&&(d=(t-p)/2),this.valign=="middle"&&(d=0),this.valign=="top"&&(d=-(t-p)/2),this.align=="left"&&(c=0),this.align=="center"&&(c=(e-h)/2),this.align=="right"&&(c=e-h),this.slices.template.dx=l*h,this.alignLabels&&(this.slicesContainer.dy=d)),this.slicesContainer.x=c,this.labelsContainer.x=c,this.ticksContainer.x=c,this.slicesContainer.y=d,this.labelsContainer.y=d,this.ticksContainer.y=d,h>0&&p>0&&(this.slicesContainer.mask=r)},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Pyramid Series"))},i.prototype.createDataItem=function(){return new Xp},Object.defineProperty(i.prototype,"maskSprite",{get:function(){return this._maskSprite},enumerable:!0,configurable:!0}),i.prototype.initSlice=function(e){a.prototype.initSlice.call(this,e);var t=e.states.getKey("hover");t&&(t.properties.expandDistance=0)},Object.defineProperty(i.prototype,"startLocation",{get:function(){return this.getPropertyValue("startLocation")},set:function(e){this.setPropertyValue("startLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endLocation",{get:function(){return this.getPropertyValue("endLocation")},set:function(e){this.setPropertyValue("endLocation",e)&&this.invalidateDataItems()},enumerable:!0,configurable:!0}),i})(mu);_.registeredClasses.PictorialStackedSeries=Pm;_.registeredClasses.PictorialStackedSeriesDataItem=Xp;var To=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Ellipse",e.element=e.paper.add("ellipse"),e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this),this.element.attr({rx:this.radius}),this.element.attr({ry:this.radiusY})},Object.defineProperty(i.prototype,"radiusY",{get:function(){return this.innerHeight/2},set:function(e){this.height=e*2,this.invalidate()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.innerWidth/2},set:function(e){this.width=e*2,this.invalidate()},enumerable:!0,configurable:!0}),i})(wi);_.registeredClasses.Ellipse=To;var Yp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Cone",e.angle=30,e.radius=k(100),e.topRadius=k(100),e.top=e.createChild(To),e.top.shouldClone=!1,e.bottom=e.createChild(To),e.bottom.shouldClone=!1,e.body=e.createChild(U),e.body.shouldClone=!1,e.body.setElement(e.paper.add("path")),e.layout="none",e.bodyFillModifier=new ls,e.bodyFillModifier.lightnesses=[0,-.25,0],e.body.fillModifier=e.bodyFillModifier,e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this),Ke(this,this.top,He),Ke(this,this.bottom,He),Ke(this,this.body,He);var e=this.innerWidth,t=this.innerHeight,r=this.bottom,s=this.top,n=this.angle,o,l,u;this.orientation=="horizontal"?(o=t/2,r.y=t/2,r.x=0,s.y=t/2,s.x=e,l=(90-n)/90,u=0,this.bodyFillModifier.gradient.rotation=90):(l=0,u=(90-n)/90,o=e/2,r.y=t,r.x=e/2,s.x=e/2,this.bodyFillModifier.gradient.rotation=0);var h=this.radius.value*o,p=this.topRadius.value*o;r.radius=h-h*l,r.radiusY=h-h*u,s.radius=p-p*l,s.radiusY=p-p*u;var d;this.orientation=="horizontal"?d=R({x:0,y:t/2-r.radiusY})+pt(-90,-180,r.radius,r.radiusY)+F({x:e,y:t/2+s.radiusY})+pt(90,180,s.radius,s.radiusY)+Ee():d=R({x:e/2-s.radius,y:0})+pt(180,-180,s.radius,s.radiusY)+F({x:e/2+r.radius,y:t})+pt(0,180,r.radius,r.radiusY)+Ee(),this.body.path=d},Object.defineProperty(i.prototype,"angle",{get:function(){return this.getPropertyValue("angle")},set:function(e){this.setPropertyValue("angle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPropertyValue("radius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"topRadius",{get:function(){return this.getPropertyValue("topRadius")},set:function(e){this.setPropertyValue("topRadius",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),i})(Y);var yu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ConeColumn",e}return i.prototype.createAssets=function(){this.coneColumn=this.createChild(Yp),this.coneColumn.shouldClone=!1,this.column=this.coneColumn},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.coneColumn&&this.coneColumn.copyFrom(e.coneColumn)},i})(Di);_.registeredClasses.ConeColumn=yu;var Sm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ConeSeriesDataItem",e.applyTheme(),e}return i})(Ht);var Cm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ConeSeries",e.applyTheme(),e}return i.prototype.createColumnTemplate=function(){return new yu},i.prototype.getMaskPath=function(){var e=0,t=0,r=this.columns.getIndex(0);if(r)return this.baseAxis==this.xAxis?t=r.coneColumn.innerWidth/2+1:e=r.coneColumn.innerHeight/2+1,Ri({x:-e,y:0,width:this.xAxis.axisLength+e,height:this.yAxis.axisLength+t})},i.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e);var t=e.column;if(t){var r=e.column.coneColumn;r.fill=e.column.fill,this.baseAxis==this.yAxis?r.orientation="horizontal":r.orientation="vertical"}},i})(it);_.registeredClasses.ConeSeries=Cm;_.registeredClasses.ConeSeriesDataItem=Sm;var gu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="CurvedColumn",e}return i.prototype.createAssets=function(){this.curvedColumn=this.createChild(U),this.curvedColumn.shouldClone=!1,this.setPropertyValue("tension",.7),this.width=k(120),this.height=k(120),this.column=this.curvedColumn},i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.realWidth,t=this.realHeight,r=this.realX-this.pixelX,s=this.realY-this.pixelY,n;this.width;var o=1,l=1;this.orientation=="vertical"?(o=this.tension,n=[{x:0,y:t+s},{x:e/2,y:s},{x:e,y:t+s}]):(l=this.tension,t=Math.abs(t),n=[{x:r,y:t},{x:r+e,y:t/2},{x:r,y:0}]);var u=R(n[0])+new Mi(o,l).smooth(n);this.column.path=u},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.curvedColumn&&this.curvedColumn.copyFrom(e.curvedColumn)},Object.defineProperty(i.prototype,"tension",{get:function(){return this.getPropertyValue("tension")},set:function(e){this.setPropertyValue("tension",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"orientation",{get:function(){return this.getPropertyValue("orientation")},set:function(e){this.setPropertyValue("orientation",e,!0)},enumerable:!0,configurable:!0}),i})(Di);_.registeredClasses.CurvedColumn=gu;var Tm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="CurvedColumnSeriesDataItem",e.applyTheme(),e}return i})(Ht);var Om=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="CurvedColumnSeries",e.applyTheme(),e}return i.prototype.createColumnTemplate=function(){return new gu},i.prototype.validateDataElementReal=function(e){a.prototype.validateDataElementReal.call(this,e);var t=e.column;if(t=e.column,t){var r=e.column.curvedColumn;r.fill=e.column.fill,this.baseAxis==this.yAxis?t.orientation="horizontal":t.orientation="vertical"}},i})(it);_.registeredClasses.CurvedColumnSeries=Om;_.registeredClasses.CurvedColumnSeriesDataItem=Tm;var wm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="CircleBullet";var t=e.createChild(wi);return t.shouldClone=!1,t.radius=5,t.isMeasured=!1,e.circle=t,e.applyTheme(),e}return i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.circle.copyFrom(e.circle)},i})(qt);_.registeredClasses.CircleBullet=wm;var Dm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ErrorBullet",e.errorLine=e.createChild(U),e.errorLine.shouldClone=!1,e.width=20,e.height=20,e.strokeOpacity=1,e.isDynamic=!0,e}return i.prototype.validatePosition=function(){a.prototype.validatePosition.call(this);var e=this.pixelWidth/2,t=this.pixelHeight/2;this.errorLine.path=R({x:-e,y:-t})+F({x:e,y:-t})+R({x:0,y:-t})+F({x:0,y:t})+R({x:-e,y:t})+F({x:e,y:t})},i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.errorLine.copyFrom(e.errorLine)},i})(qt);_.registeredClasses.ErrorBullet=Dm;var Oo=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="TextLink",e.selectable=!0;var t=new J;e.fill=t.getFor("primaryButton").brighten(.3);var r=e.states.create("hover");r.properties.fill=t.getFor("primaryButtonHover").brighten(.3);var s=e.states.create("down");return s.properties.fill=t.getFor("primaryButtonDown").brighten(.3),e.cursorOverStyle=Re.pointer,e.applyTheme(),e}return i})(Je);_.registeredClasses.TextLink=Oo;var gn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Triangle",e.element=e.paper.add("path"),e.direction="top",e.applyTheme(),e}return i.prototype.draw=function(){a.prototype.draw.call(this);var e=this.pixelWidth,t=this.pixelHeight,r;switch(this.direction){case"right":r=R({x:0,y:0})+F({x:e,y:t/2})+F({x:0,y:t})+Ee();break;case"left":r=R({x:e,y:0})+F({x:0,y:t/2})+F({x:e,y:t})+Ee();break;case"bottom":r=R({x:0,y:0})+F({x:e,y:0})+F({x:e/2,y:t})+Ee();break;case"top":r=R({x:e/2,y:0})+F({x:e,y:t})+F({x:0,y:t})+Ee();break}this.path=r},Object.defineProperty(i.prototype,"direction",{get:function(){return this.getPropertyValue("direction")},set:function(e){this.setPropertyValue("direction",e,!0)},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.Triangle=gn;var Am=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="NavigationBarDataItem",e.applyTheme(),e}return Object.defineProperty(i.prototype,"name",{get:function(){return this.properties.name},set:function(e){this.setProperty("name",e)},enumerable:!0,configurable:!0}),i})(Ti);var Fm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="NavigationBar";var t=new J,r=new Oo;r.valign="middle",r.paddingTop=8,r.paddingBottom=8,e.paddingBottom=2,e.links=new Te(r),e._disposers.push(new ge(e.links)),e._disposers.push(r),e._linksIterator=new Ea(e.links,function(){return e.links.create()}),e._linksIterator.createNewItems=!0;var s=new gn;s.direction="right",s.width=8,s.height=12,s.fill=t.getFor("alternativeBackground"),s.fillOpacity=.5,s.valign="middle",s.marginLeft=10,s.marginRight=10,e.separators=new Te(s),e._disposers.push(new ge(e.separators)),e._disposers.push(s);var n=new Oo;return e.activeLink=n,n.copyFrom(r),n.valign="middle",n.fontWeight="bold",e.width=k(100),e.layout="grid",e.dataFields.name="name",e.applyTheme(),e}return i.prototype.validateDataElements=function(){this.removeChildren(),this._linksIterator.reset(),a.prototype.validateDataElements.call(this)},i.prototype.validateDataElement=function(e){a.prototype.validateDataElement.call(this,e);var t;if(e.index<this.dataItems.length-1){t=this._linksIterator.getLast(),t.parent=this;var r=this.separators.create();r.parent=this,r.valign="middle"}else t=this.activeLink,t.events.copyFrom(this.links.template.events),t.hide(0),t.show(),t.parent=this;t.dataItem=e,t.text=e.name,t.validate()},i})(Oi);_.registeredClasses.NavigationBar=Fm;_.registeredClasses.NavigationBarDataItem=Am;var vn=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.point={x:0,y:0},e._stick="none",e.className="Cursor",e.width=k(100),e.height=k(100),e.shouldClone=!1,e.hide(0),e.trackable=!0,e.clickable=!0,e.isMeasured=!1;var t=re();return e._disposers.push(t.body.events.on("down",e.handleCursorDown,e)),e._disposers.push(t.body.events.on("up",e.handleCursorUp,e)),e._disposers.push(t.body.events.on("track",e.handleCursorMove,e)),e.applyTheme(),e}return i.prototype.handleCursorMove=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch)){if((this._generalBehavior!="zoom"&&this._generalBehavior!="pan"||!this.downPoint)&&!re().isLocalElement(e.pointer,this.paper.svg,this.uid)){(!this.isHidden||!this.isHiding)&&this.hide();return}var t=Pr(e.pointer.point,this);return this._stick=="hard"&&this._stickPoint&&(t=this._stickPoint),this._stick=="soft"&&this._stickPoint&&(this.fitsToBounds(t)||(t=this._stickPoint)),this._adapterO&&this._adapterO.apply("cursorPoint",t),this.triggerMove(t),t}},i.prototype.hideReal=function(e){if(!((this._stick=="hard"||this._stick=="soft")&&this._stickPoint))return a.prototype.hideReal.call(this,e)},i.prototype.triggerMove=function(e,t,r){e.x=I(e.x,1),e.y=I(e.y,1),t&&(this._stick=t),(t=="hard"||t=="soft")&&(this._stickPoint=e),this.triggerMoveReal(e,r)},i.prototype.triggerMoveReal=function(e,t){(this.point.x!=e.x||this.point.y!=e.y||t)&&(this.point=e,this.invalidatePosition(),this.fitsToBounds(e)?this.show(0):this.downPoint||this.hide(0),this.visible&&(this.getPositions(),this.dispatch("cursorpositionchanged")))},i.prototype.triggerDown=function(e){this.triggerDownReal(e)},i.prototype.triggerDownReal=function(e){switch(this._generalBehavior){case"zoom":this.dispatchImmediately("zoomstarted");break;case"select":this.dispatchImmediately("selectstarted");break;case"pan":this.dispatchImmediately("panstarted"),re().setGlobalStyle(Re.grabbing);break}},i.prototype.triggerUp=function(e){this.triggerUpReal(e)},i.prototype.triggerUpReal=function(e){me.requestFrame(),this.updatePoint(this.upPoint);var t=re();if(xe(this._upPointOrig,this._downPointOrig)>t.getHitOption(this.interactions,"hitTolerance")){switch(this._generalBehavior){case"zoom":this.dispatch("zoomended");break;case"select":this.dispatch("selectended");break;case"pan":this.dispatch("panended"),t.setGlobalStyle(Re.default);break}this.downPoint=void 0,this.updateSelection()}},i.prototype.updateSelection=function(){},i.prototype.getPositions=function(){this.xPosition=this.point.x/this.innerWidth,this.yPosition=1-this.point.y/this.innerHeight},i.prototype.handleCursorDown=function(e){if(!(!this.interactionsEnabled||this.interactions.isTouchProtected&&e.touch||!re().isLocalElement(e.pointer,this.paper.svg,this.uid))){Ka();var t=Pr(e.pointer.point,this);this._stick=="hard"&&this._stickPoint&&(t=this._stickPoint),this._adapterO&&this._adapterO.apply("cursorPoint",t),this.fitsToBounds(t)&&(this._downPointOrig={x:t.x,y:t.y},e.event.cancelable&&this.shouldPreventGestures(e.touch)&&this.fitsToBounds(t)&&e.event.preventDefault(),this.triggerMove(t),this.triggerDown(t))}},i.prototype.shouldPreventGestures=function(e){return!0},i.prototype.updatePoint=function(e){},i.prototype.handleCursorUp=function(e){if(this.interactionsEnabled&&!(!this.downPoint&&!re().isLocalElement(e.pointer,this.paper.svg,this.uid))){var t=Pr(e.pointer.point,this);this._adapterO&&this._adapterO.apply("cursorPoint",t),!(!this.downPoint||!this.fitsToBounds(this.downPoint))&&(this._stick=="hard"&&this._stickPoint&&(t=this._stickPoint),this._upPointOrig={x:t.x,y:t.y},this.triggerMove(t),this.triggerUp(t))}},Object.defineProperty(i.prototype,"chart",{get:function(){return this._chart},set:function(e){this._chart=e,$(this._chart.plotContainer)&&re().lockElement(this._chart.plotContainer.interactions)},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.Cursor=vn;var hs=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._lineX=new We,e._lineY=new We,e._xAxis=new We,e._yAxis=new We,e._snapToDisposers=[],e.className="XYCursor",e.behavior="zoomX",e.maxPanOut=.1;var t=new J;e.snapOnPan=!0;var r=e.createChild(U);r.shouldClone=!1,r.fillOpacity=.2,r.fill=t.getFor("alternativeBackground"),r.isMeasured=!1,r.visible=!1,r.interactionsEnabled=!1,e.selection=r,e._disposers.push(e.selection);var s=e.createChild(U);s.shouldClone=!1,s.stroke=t.getFor("grid"),s.fill=Z(),s.strokeDasharray="3,3",s.isMeasured=!1,s.strokeOpacity=.4,s.interactionsEnabled=!1,s.y=0,e.lineX=s,e._disposers.push(e.lineX);var n=e.createChild(U);return n.shouldClone=!1,n.stroke=t.getFor("grid"),n.fill=Z(),n.strokeDasharray="3,3",n.isMeasured=!1,n.strokeOpacity=.4,n.interactionsEnabled=!1,n.x=0,e.lineY=n,e._disposers.push(e.lineY),e.events.on("sizechanged",e.updateSize,e,!1),e._disposers.push(e._lineX),e._disposers.push(e._lineY),e._disposers.push(e._xAxis),e._disposers.push(e._yAxis),e.mask=e,e.hideSeriesTooltipsOnSelection=!0,e.applyTheme(),e}return i.prototype.updateSize=function(){this.lineX&&(this.lineX.path=R({x:0,y:0})+F({x:0,y:this.innerHeight})),this.lineY&&(this.lineY.path=R({x:0,y:0})+F({x:this.innerWidth,y:0}))},i.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint,t=this.behavior;if(e){var r=this.point;this.lineX&&(r.x=this.lineX.pixelX),this.lineY&&(r.y=this.lineY.pixelY);var s=this.selection,n=Math.min(r.x,e.x),o=Math.min(r.y,e.y),l=I(Math.abs(e.x-r.x),this._positionPrecision),u=I(Math.abs(e.y-r.y),this._positionPrecision);switch(t){case"zoomX":o=0,u=this.pixelHeight;break;case"zoomY":n=0,l=this.pixelWidth;break;case"selectX":o=0,u=this.pixelHeight;break;case"selectY":n=0,l=this.pixelWidth;break}s.x=n,s.y=o,s.path=zl(l,u),s.validatePosition()}else this._generalBehavior!="select"&&this.selection.hide()}},i.prototype.fixPoint=function(e){return e.x=Math.max(0,e.x),e.y=Math.max(0,e.y),e.x=Math.min(this.pixelWidth,e.x),e.y=Math.min(this.pixelHeight,e.y),e},i.prototype.triggerMoveReal=function(e,t){a.prototype.triggerMoveReal.call(this,e,t);var r=this.snapToSeries;if(r&&!this.downPoint)if(r instanceof Vt)r.isHidden&&this.updateLinePositions(e);else{var s=!0;M(r,function(n){n.isHidden||(s=!1)}),s&&this.updateLinePositions(e)}else this.updateLinePositions(e);this.downPoint&&xe(this.downPoint,e)>3&&this._generalBehavior=="pan"&&(this.getPanningRanges(),this.dispatch("panning"))},i.prototype.updateLinePositions=function(e){e=this.fixPoint(this.point),this.lineX&&this.lineX.visible&&!this.xAxis&&(this.lineX.x=e.x),this.lineY&&this.lineY.visible&&!this.yAxis&&(this.lineY.y=e.y),this.updateSelection()},i.prototype.triggerDownReal=function(e){if(this.visible&&!this.isHiding)if(this._generalBehavior=="select"&&(this.selection.parent=this.parent),this.fitsToBounds(e)){this.downPoint={x:e.x,y:e.y},this.updatePoint(e),this.point.x=this.downPoint.x,this.point.y=this.downPoint.y;var t=this.selection,r=this.downPoint.x,s=this.downPoint.y;this._usesSelection&&(t.x=r,t.y=s,t.path="",t.show()),a.prototype.triggerDownReal.call(this,e)}else this.downPoint=void 0;else this.downPoint=void 0},i.prototype.updatePoint=function(e){this.lineX&&(e.x=this.lineX.pixelX),this.lineY&&(e.y=this.lineY.pixelY)},i.prototype.triggerUpReal=function(e){if(this.hasMoved())this.downPoint&&(this.upPoint=e,this.updatePoint(this.upPoint),this._generalBehavior!="pan"&&this.getRanges(),this._generalBehavior!="select"&&this.selection.hide(),a.prototype.triggerUpReal.call(this,e));else{if(this._generalBehavior!="select"?this.selection.hide(0):(this.xRange=void 0,this.yRange=void 0,this.dispatchImmediately("selectended")),this._generalBehavior=="pan"){var t=re();t.setGlobalStyle(Re.default)}this.dispatchImmediately("behaviorcanceled")}this.downPoint=void 0,this.dispatch("cursorpositionchanged")},i.prototype.hasMoved=function(){var e;return this.behavior=="zoomX"||this.behavior=="panX"?e=Jc(this._upPointOrig,this._downPointOrig):this.behavior=="zoomY"||this.behavior=="panY"?e=ef(this._upPointOrig,this._downPointOrig):e=xe(this._upPointOrig,this._downPointOrig),e>re().getHitOption(this.interactions,"hitTolerance")},i.prototype.getPanningRanges=function(){var e=I(this.downPoint.x/this.innerWidth,5),t=1-I(this.downPoint.y/this.innerHeight,5),r=I(this.point.x/this.innerWidth,5),s=1-I(this.point.y/this.innerHeight,5),n=e-r,o=t-s;this.xRange={start:n,end:1+n},this.yRange={start:o,end:1+o},this.behavior=="panX"&&(this.yRange.start=0,this.yRange.end=1),this.behavior=="panY"&&(this.xRange.start=0,this.xRange.end=1)},i.prototype.getRanges=function(){this.lineX&&(this.upPoint.x=this.lineX.pixelX),this.lineY&&(this.upPoint.y=this.lineY.pixelY),this.selection;var e=I(this.downPoint.x/this.innerWidth,5),t=I(this.upPoint.x/this.innerWidth,5),r=1-I(this.downPoint.y/this.innerHeight,5),s=1-I(this.upPoint.y/this.innerHeight,5);this.xRange={start:le(e,t),end:ie(e,t)},this.yRange={start:le(r,s),end:ie(r,s)}},Object.defineProperty(i.prototype,"behavior",{get:function(){return this.getPropertyValue("behavior")},set:function(e){this.setPropertyValue("behavior",e,!0),this._usesSelection=!1,e.indexOf("zoom")!=-1&&(this._generalBehavior="zoom",this._usesSelection=!0),e.indexOf("select")!=-1&&(this._generalBehavior="select",this._usesSelection=!0),e.indexOf("pan")!=-1&&(this._generalBehavior="pan",this._usesSelection=!1)},enumerable:!0,configurable:!0}),i.prototype.shouldPreventGestures=function(e){return(!this.interactions.isTouchProtected||!e)&&this.behavior!="none"},Object.defineProperty(i.prototype,"fullWidthLineX",{get:function(){return this.getPropertyValue("fullWidthLineX")},set:function(e){this.setPropertyValue("fullWidthLineX",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"fullWidthLineY",{get:function(){return this.getPropertyValue("fullWidthLineY")},set:function(e){this.setPropertyValue("fullWidthLineY",e),e||this.updateSize()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"hideSeriesTooltipsOnSelection",{get:function(){return this.getPropertyValue("hideSeriesTooltipsOnSelection")},set:function(e){this.setPropertyValue("hideSeriesTooltipsOnSelection",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxTooltipDistance",{get:function(){return this.getPropertyValue("maxTooltipDistance")},set:function(e){this.setPropertyValue("maxTooltipDistance",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"maxPanOut",{get:function(){return this.getPropertyValue("maxPanOut")},set:function(e){this.setPropertyValue("maxPanOut",e)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"xAxis",{get:function(){return this._xAxis.get()},set:function(e){var t=this;this._xAxis.get()!=e&&this._xAxis.set(e,new Pe([e.tooltip.events.on("positionchanged",this.handleXTooltipPosition,this,!1),e.events.on("rangechangestarted",function(r){t.hide(0),t.preventShow=!0},void 0,!1),e.events.on("rangechangeended",function(r){t.preventShow=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"yAxis",{get:function(){return this._yAxis.get()},set:function(e){var t=this;this._yAxis.get()!=e&&this._yAxis.set(e,new Pe([e.tooltip.events.on("positionchanged",this.handleYTooltipPosition,this,!1),e.events.on("rangechangestarted",function(r){t.hide(0),t.__disabled=!0},void 0,!1),e.events.on("rangechangeended",function(r){t.__disabled=!1,t.hide(0),t.dispatch("cursorpositionchanged")},void 0,!1)]))},enumerable:!0,configurable:!0}),i.prototype.handleXTooltipPosition=function(e){var t=this.xAxis.tooltip,r=Bt({x:t.pixelX,y:t.pixelY},this),s=r.x;if(r.y=1,this.lineX&&(this.lineX.x=s,this.fitsToBounds(r)||this.hide()),this.xAxis&&this.fullWidthLineX){var n=this.xAxis.currentItemStartPoint,o=this.xAxis.currentItemEndPoint;if(n&&o){this.lineX.x=s;var l=o.x-n.x;this.lineX.path=zl(l,this.innerHeight,-l/2)}}},i.prototype.handleYTooltipPosition=function(e){var t=this.yAxis.tooltip,r=Bt({x:t.pixelX,y:t.pixelY},this),s=r.y;if(r.x=1,this.lineY&&(this.lineY.y=s,this.fitsToBounds(r)||this.hide()),this.yAxis&&this.fullWidthLineY){var n=this.yAxis.currentItemStartPoint,o=this.yAxis.currentItemEndPoint;if(n&&o){this.lineY.y=s;var l=o.y-n.y;this.lineY.path=zl(this.innerWidth,l,0,-l/2)}}},Object.defineProperty(i.prototype,"lineX",{get:function(){return this._lineX.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineX.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.interactionsEnabled=!1,e.parent=this):this._lineX.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"lineY",{get:function(){return this._lineY.get()},set:function(e){e?(e.setElement(this.paper.add("path")),this._lineY.set(e,e.events.on("positionchanged",this.updateSelection,this,!1)),e.parent=this,e.interactionsEnabled=!1):this._lineY.reset()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"selection",{get:function(){return this._selection},set:function(e){this._selection=e,e&&(e.element=this.paper.add("path"),e.parent=this)},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){var t=this;if(e&&($(e.xAxis)&&se(e.xAxis)&&(this.map.hasKey(e.xAxis)?e.xAxis=this.map.getKey(e.xAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.xAxis+'" found for `xAxis`'),delete e.xAxis)),$(e.yAxis)&&se(e.yAxis)&&(this.map.hasKey(e.yAxis)?e.yAxis=this.map.getKey(e.yAxis):(this.processingErrors.push('[XYCursor] No axis with id "'+e.yAxis+'" found for `yAxis`'),delete e.yAxis)),$(e.snapToSeries))){var r=je(e.snapToSeries)?e.snapToSeries:[e.snapToSeries],s=!1;M(r,function(n,o){se(n)&&(t.map.hasKey(n)?r[o]=t.map.getKey(n):(t.processingErrors.push('[XYCursor] No series with id "'+n+'" found for `series`'),s=!0))}),s?delete e.snapToSeries:e.snapToSeries=r}a.prototype.processConfig.call(this,e)},Object.defineProperty(i.prototype,"snapToSeries",{get:function(){return this.getPropertyValue("snapToSeries")},set:function(e){var t=this;this.setPropertyValue("snapToSeries",e)&&(e instanceof Vt&&(e=[e]),this._snapToDisposers&&M(this._snapToDisposers,function(r){r.dispose()}),this._snapToDisposers=[],e&&M(e,function(r){t._snapToDisposers.push(r.events.on("tooltipshownat",function(){t.handleSnap(r)},void 0,!1))}))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"snapOnPan",{get:function(){return this.getPropertyValue("snapOnPan")},set:function(e){this.setPropertyValue("snapOnPan",e)},enumerable:!0,configurable:!0}),i.prototype.handleSnap=function(e){if(!this.downPoint){var t=e.getTooltipX()+e.xAxis.pixelX,r=e.getTooltipY()+e.yAxis.pixelY,s=e.xAxis,n=e.yAxis;s&&s.renderer.opposite&&(r-=this.pixelHeight),this.point={x:t,y:r},this.getPositions();var o=t,l=r;t-=this.pixelWidth,n&&n.renderer.opposite&&(t+=this.pixelWidth);var u=e.tooltip,h=u.animationDuration,p=u.animationEasing;s instanceof Q&&!(s instanceof fe)&&n instanceof Q&&!(n instanceof fe)?(e.yAxis.showTooltipAtPosition(this.yPosition),e.xAxis.showTooltipAtPosition(this.xPosition)):(e.baseAxis==e.xAxis&&e.yAxis.showTooltipAtPosition(this.yPosition),e.baseAxis==e.yAxis&&e.xAxis.showTooltipAtPosition(this.xPosition)),this.lineY.x=t,this.lineX.y=r,this.xAxis||this.lineX.animate([{property:"x",to:o}],h,p),this.yAxis||this.lineY.animate([{property:"y",to:l}],h,p)}},i.prototype.dispose=function(){this.hide(0),a.prototype.dispose.call(this)},i})(vn);_.registeredClasses.XYCursor=hs;var Vm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RadarCursor",e.radius=k(100),e.innerRadius=k(0),e.applyTheme(),e.mask=void 0,e}return i.prototype.fitsToBounds=function(e){var t=xe(e);return t<this.truePixelRadius+1&&t>this.pixelInnerRadius-1},Object.defineProperty(i.prototype,"startAngle",{get:function(){return this.getPropertyValue("startAngle")},set:function(e){this.setPropertyValue("startAngle",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"endAngle",{get:function(){return this.getPropertyValue("endAngle")},set:function(e){this.setPropertyValue("endAngle",e,!0)},enumerable:!0,configurable:!0}),i.prototype.triggerMoveReal=function(e,t){(!this.xAxis||this.xAxis&&(!this.xAxis.cursorTooltipEnabled||this.xAxis.tooltip.disabled))&&this.updateLineX(this.point),(!this.yAxis||this.yAxis&&(!this.yAxis.cursorTooltipEnabled||this.yAxis.tooltip.disabled))&&this.updateLineY(this.point),this.updateSelection(),a.prototype.triggerMoveReal.call(this,e,t)},i.prototype.updateLineX=function(e){var t=this.pixelRadius,r=this.startAngle,s=this.endAngle,n=this.pixelInnerRadius;if(t>0&&b(r)&&b(s)&&b(n)){var o=Li(nt(e),r,s),l=void 0;if(this.lineX&&this.lineX.visible){if(this.lineX.moveTo({x:0,y:0}),this.xAxis&&this.fullWidthLineX){var u=this.xAxis.currentItemStartPoint,h=this.xAxis.currentItemEndPoint;if(u&&h){var p=Li(nt(u),r,s),d=Li(nt(h),r,s),c=d-p;r<s?c<0&&(c+=360):c>0&&(c-=360),o-=c/2,l=R({x:n*B(o),y:n*N(o)})+F({x:t*B(o),y:t*N(o)})+pt(o,c,t)+F({x:n*B(o+c),y:n*N(o+c)})+pt(o+c,-c,n)}}l||(l=R({x:n*B(o),y:n*N(o)})+F({x:t*B(o),y:t*N(o)})),this.lineX.path=l}}},i.prototype.updateLineY=function(e){if(this.lineY&&this.lineY.visible){var t=this.startAngle,r=this.endAngle,s=this.truePixelRadius,n=X(xe(e),0,this.truePixelRadius);if(b(n)&&b(t)){this.lineY.moveTo({x:0,y:0});var o=void 0,l=r-t;if(this.yAxis&&this.fullWidthLineY){var u=this.yAxis.currentItemStartPoint,h=this.yAxis.currentItemEndPoint;if(u&&h){var p=X(xe(u),0,s);n=X(xe(h),0,s),o=R({x:n*B(t),y:n*N(t)})+pt(t,l,n),o+=R({x:p*B(r),y:p*N(r)})+pt(r,-l,p)}}o||(o=R({x:n*B(t),y:n*N(t)})+pt(t,r-t,n)),this.lineY.path=o}}},i.prototype.updateSelection=function(){if(this._usesSelection){var e=this.downPoint;if(e){var t=this.point,r=this.pixelRadius,s=this.truePixelRadius,n=this.pixelInnerRadius,o=Math.min(this.startAngle,this.endAngle),l=Math.max(this.startAngle,this.endAngle),u=Li(nt(e),o,l),h=Li(nt(t),o,l),p=xe(e);if(p<s){var d=X(xe(t),0,s);this._prevAngle=h;var c=R({x:0,y:0}),f=N(u),y=B(u),g=N(h),v=B(h),x=this.behavior;x=="zoomX"||x=="selectX"?c+=F({x:r*y,y:r*f})+pt(u,h-u,r)+F({x:n*v,y:n*g})+pt(h,u-h,n):x=="zoomY"||x=="selectY"?c=R({x:d*B(o),y:d*N(o)})+pt(o,l-o,d)+F({x:p*B(l),y:p*N(l)})+pt(l,o-l,p)+Ee():x=="zoomXY"&&(c=R({x:d*B(u),y:d*N(u)})+pt(u,h-u,d)+F({x:p*B(h),y:p*N(h)})+pt(h,u-h,p)+Ee()),this.selection.path=c}this.selection.moveTo({x:0,y:0})}}},i.prototype.getPositions=function(){var e=this.chart;if(e){var t=this.pixelInnerRadius,r=this.truePixelRadius-t,s=this.startAngle,n=this.endAngle,o=Li(nt(this.point),s,n),l=(o-s)/(n-s);this.xPosition=l,this.yPosition=X((xe(this.point)-t)/r,0,1)}},i.prototype.updatePoint=function(e){},i.prototype.handleXTooltipPosition=function(e){if(this.xAxis.cursorTooltipEnabled){var t=this.xAxis.tooltip;this.updateLineX(Bt({x:t.pixelX,y:t.pixelY},this))}},i.prototype.handleYTooltipPosition=function(e){if(this.yAxis.cursorTooltipEnabled){var t=this.yAxis.tooltip;this.updateLineY(Bt({x:t.pixelX,y:t.pixelY},this))}},i.prototype.updateLinePositions=function(e){},i.prototype.getRanges=function(){var e=this.downPoint;if(e){var t=this.upPoint,r=this.chart;if(r){var s=this.pixelRadius,n=this.startAngle,o=this.endAngle,l=Li(nt(e),this.startAngle,this.endAngle),u=Li(nt(t),this.startAngle,this.endAngle),h=X(xe(e),0,s),p=X(xe(t),0,s),d=0,c=1,f=0,y=1,g=this.behavior;if(g=="zoomX"||g=="selectX"||g=="zoomXY"||g=="selectXY"){var v=o-n;d=I((l-n)/v,5),c=I((u-n)/v,5)}(g=="zoomY"||g=="selectY"||g=="zoomXY"||g=="selectXY")&&(f=I(h/s,5),y=I(p/s,5)),this.xRange={start:Math.min(d,c),end:Math.max(d,c)},this.yRange={start:Math.min(f,y),end:Math.max(f,y)},this.behavior=="selectX"||this.behavior=="selectY"||this.behavior=="selectXY"||this.selection.hide()}}},i.prototype.updateSize=function(){},Object.defineProperty(i.prototype,"radius",{get:function(){return this.getPropertyValue("radius")},set:function(e){this.setPercentProperty("radius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelRadius",{get:function(){return ot(this.radius,this.truePixelRadius)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"truePixelRadius",{get:function(){return Ie(k(100),le(this.innerWidth/2,this.innerHeight/2))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"innerRadius",{get:function(){return this.getPropertyValue("innerRadius")},set:function(e){this.setPercentProperty("innerRadius",e,!1,!1,10,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"pixelInnerRadius",{get:function(){var e=this.innerRadius;return e instanceof ae&&(e=k(100*e.value*this.chart.innerRadiusModifyer)),ot(e,this.truePixelRadius)||0},enumerable:!0,configurable:!0}),i.prototype.fixPoint=function(e){return e},i})(hs);_.registeredClasses.RadarCursor=Vm;var bn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.properties.gap=0,e._line=e.paper.add("path"),e.addElement(e._line),e}return i.prototype.draw=function(){if(a.prototype.draw.call(this),Math.round(this.rotation/90)!=this.rotation/90&&(this.properties.shapeRendering="auto"),this._line){var e=this.width,t=this.height,r="";if(!this.gap)Math.round(this.rotation/90)!=this.rotation/90?(r=R({x:-e,y:t/2})+F({x:e*2,y:t/2}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r=R({x:0,y:0})+F({x:e,y:0});else for(var s=this.gap+this.strokeWidth,n=this.height/s,o=-n/2;o<n*1.5;o++)Math.round(this.rotation/90)!=this.rotation/90?(r+=R({x:-e,y:(o+.5)*s})+F({x:e*2,y:(o+.5)*s}),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2):r+=R({x:-e,y:o*s})+F({x:e*2,y:o*s});this._line.attr({d:r})}},Object.defineProperty(i.prototype,"gap",{get:function(){return this.properties.gap},set:function(e){this.properties.gap=e,this.draw()},enumerable:!0,configurable:!0}),i})(ar);_.registeredClasses.LinePattern=bn;var xn=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.rectHeight=1,e.rectWidth=1,e._rect=e.paper.add("rect"),e.addElement(e._rect),e}return i.prototype.draw=function(){a.prototype.draw.call(this),this.properties.rotationX=this.width/2,this.properties.rotationY=this.height/2,this._rect&&this._rect.attr({width:this.rectWidth,height:this.rectHeight,x:(this.width-this.rectWidth)/2,y:(this.height-this.rectHeight)/2})},Object.defineProperty(i.prototype,"rectWidth",{get:function(){return this.properties.rectWidth},set:function(e){this.properties.rectWidth=e,this.draw()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rectHeight",{get:function(){return this.properties.rectHeight},set:function(e){this.properties.rectHeight=e,this.draw()},enumerable:!0,configurable:!0}),i})(ar);_.registeredClasses.RectPattern=xn;var Gp=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="FocusFilter",e.feFlood=e.paper.add("feFlood"),e.feFlood.attr({"flood-color":new J().getFor("primaryButtonHover"),result:"base"}),e.filterPrimitives.push(e.feFlood),e.feMorphology=e.paper.add("feMorphology"),e.feMorphology.attr({result:"bigger",in:"SourceGraphic",operator:"dilate",radius:"2"}),e.filterPrimitives.push(e.feMorphology),e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({result:"mask",in:"bigger",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0"}),e.filterPrimitives.push(e.feColorMatrix),e.feComposite=e.paper.add("feComposite"),e.feComposite.attr({result:"drop",in:"base",in2:"mask",operator:"in"}),e.filterPrimitives.push(e.feComposite),e.feBlend=e.paper.add("feBlend"),e.feBlend.attr({in:"SourceGraphic",in2:"drop",mode:"normal"}),e.filterPrimitives.push(e.feBlend),e.width=130,e.height=130,e.applyTheme(),e}return Object.defineProperty(i.prototype,"stroke",{get:function(){return this.properties.stroke},set:function(e){this.properties.stroke=e,this.feFlood.attr({"flood-color":e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"strokeWidth",{get:function(){return this.properties.strokeWidth},set:function(e){this.properties.strokeWidth=e,this.feMorphology.attr({radius:e})},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"opacity",{get:function(){return this.properties.opacity},set:function(e){this.properties.opacity=e,this.feColorMatrix.attr({values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 "+e+" 0"})},enumerable:!0,configurable:!0}),i.prototype.setSprite=function(e){this._sprite&&this._sprite!=e&&this._sprite.group.removeStyle("outline"),e.group.addStyle({outline:"none"}),a.prototype.setSprite.call(this,e)},i})(ji);var vu=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="Preloader",e.width=k(100),e.height=k(100);var t=new J,r=e.createChild(Y);r.shouldClone=!1;var s=r.createChild(Ei);s.shouldClone=!1,s.radius=53,s.arc=360,s.fill=t.getFor("fill"),s.fillOpacity=.8,s.innerRadius=42,s.isMeasured=!1,e.backgroundSlice=s;var n=r.createChild(Ei);n.shouldClone=!1,n.radius=50,n.innerRadius=45,n.fill=t.getFor("alternativeBackground"),n.fillOpacity=.2,n.isMeasured=!1,e.progressSlice=n;var o=r.createChild(Je);o.shouldClone=!1,o.horizontalCenter="middle",o.verticalCenter="middle",o.isMeasured=!1,o.fill=t.getFor("text"),o.align="center",o.valign="middle",o.textAlign="middle",o.fillOpacity=.4,e.label=o,e.background.opacity=1,e.background.fill=t.getFor("background"),e.contentAlign="center",e.contentValign="middle",e.delay=300;var l=e.states.create("hidden");return l.properties.opacity=0,e.visible=!1,e.hide(0),e.__disabled=!0,e._disposers.push(e.backgroundSlice),e._disposers.push(e.progressSlice),e._disposers.push(e.label),e._disposers.push(r),e}return Object.defineProperty(i.prototype,"progress",{get:function(){return this.getPropertyValue("progress")},set:function(e){var t=this;this.__disabled=!1,this.validateLayout(),this.setPropertyValue("progress",e),this.progressSlice.arc=360*e,this.label&&(this.label.text=Math.round(e*100)+"%"),e>=1?(this._started&&(this._started=void 0),_.events.once("enterframe",function(){var r=t.hide();r&&!r.isFinished()?r.events.once("animationended",function(){t.__disabled=!0}):t.__disabled=!0}),this.interactionsEnabled=!1,this.setPropertyValue("progress",0)):e>0&&(this.delay?this._started?this._started+this.delay<=new Date().getTime()&&(this.__disabled=!1,this.show(),this.interactionsEnabled=!0):this._started=new Date().getTime():(this.__disabled=!1,this.show(),this.interactionsEnabled=!0))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"delay",{get:function(){return this.getPropertyValue("delay")},set:function(e){this.setPropertyValue("delay",e)},enumerable:!0,configurable:!0}),i})(Y);_.registeredClasses.Preloader=vu;var km=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="AmChartsLogo",e.valign="bottom";var t=.3;e.opacity=.3,e.defaultState.properties.opacity=.4,e.url="https://www.amcharts.com/",e.urlTarget="_blank",e.showSystemTooltip=!0,e.readerTitle="Chart created using amCharts library",e.width=220*t,e.height=70*t,e.background.opacity=0;var r=Z("#474758");new J().getFor("background").alternative.hex=="#ffffff"&&(r=Z("#ffffff"));var s=new Mt;s.addColor(r),s.addColor(r,1,.75),s.addColor(Z("#3cabff"),1,.755),s.rotation=-10;var n=s,o=e.createChild(us);o.shouldClone=!1,o.isMeasured=!1,o.segments=[[{x:50*t,y:50*t},{x:90*t,y:50*t},{x:120*t,y:20*t},{x:135*t,y:35*t},{x:150*t,y:20*t},{x:180*t,y:50*t},{x:200*t,y:50*t}]],o.strokeWidth=6*t,o.tensionX=.8,o.tensionY=1,o.stroke=Z("#3cabff");var l=e.createChild(us);l.shouldClone=!1,l.isMeasured=!1,l.segments=[[{x:20*t,y:50*t},{x:50*t,y:50*t},{x:90*t,y:12*t},{x:133*t,y:50*t},{x:170*t,y:50*t},{x:200*t,y:50*t}]],l.strokeWidth=6*t,l.tensionX=.75,l.tensionY=1,l.stroke=n,e._disposers.push(l);var u=new as;e.filters.push(u);var h=new as;h.saturation=1;var p=e.states.create("hover");return p.properties.opacity=1,p.filters.push(h),e.applyTheme(),e}return i})(Y);function xv(a,i){var e=Qn(a),t=!1;if(e||(e=document.createElement("div"),e.style.width="200px",e.style.height="200px",e.style.top="0",e.style.left="0",e.style.visibility="hidden",e.style.position="absolute",document.body.appendChild(e),t=!0),e){e.innerHTML="";var r=new so(e),s=new Hl(r.SVGContainer,"svg-"+(Wl.length-1)),n=new Y;n.htmlContainer=e,n.svgContainer=r,n.width=k(100),n.height=k(100),n.background.fillOpacity=0,n.paper=s,s.append(n.group),t&&yp(function(){n.moveHtmlContainer(a)}),n.relativeWidth=1,n.relativeHeight=1,r.container=n;var o=n.createChild(i);o.topParent=n;var l=o.uid;_.invalidSprites[l]=[],_.invalidDatas[l]=[],_.invalidPositions[l]=[],_.invalidLayouts[l]=[],n.baseId=l,o.isBaseSprite=!0,o.focusFilter=new Gp,_.baseSprites.push(o),_.baseSpritesByUid[l]=o,o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)},n.events.on("maxsizechanged",function(P){(P.previousWidth==0||P.previousHeight==0)&&n.deepInvalidate(),o.maskRectangle&&(o.maskRectangle={x:0,y:0,width:Math.max(r.width||0,0),height:Math.max(r.height||0,0)})});var u=null,h=function(){o.isDisposed()?u=null:Ml(o.dom)==null?(ue.autoDispose?(n.htmlContainer=void 0,r.htmlElement=void 0,o.dispose()):sn("Chart was not disposed",o.uid),u=null):u=window.setTimeout(h,1e3)};h(),o.addDisposer(new ye(function(){u!==null&&clearTimeout(u),ee(_.baseSprites,o),_.baseSpritesByUid[o.uid]=void 0})),o.addDisposer(n);var p=n.createChild(Y);p.topParent=n,p.width=k(100),p.height=k(100),p.isMeasured=!1,n.tooltipContainer=p,o.tooltip=new nr,o.tooltip.hide(0),o.tooltip.setBounds({x:0,y:0,width:p.maxWidth,height:p.maxHeight}),p.events.on("maxsizechanged",function(){Me(o.tooltip).setBounds({x:0,y:0,width:p.maxWidth,height:p.maxHeight})},void 0,!1);var d=new vu;if(d.events.on("inited",function(){d.__disabled=!0},void 0,!1),n.preloader=d,o instanceof Y&&!o.hasLicense()){var c=p.createChild(km);p.events.on("maxsizechanged",function(P){p.maxWidth<=100||p.maxHeight<=50?c.hide():(c.isHidden||c.isHiding)&&c.show()},void 0,!1),o.logo=c,c.align="left",c.valign="bottom"}if(o.numberFormatter,n.isStandaloneInstance=!0,ue.onlyShowOnViewport)if(jl(e,ue.viewportTarget))ue.queue&&Up(o);else{o.__disabled=!0,o.tooltipContainer.__disabled=!0;var f=[Qe(window,"DOMContentLoaded",function(){ps(o)}),Qe(window,"load",function(){ps(o)}),Qe(window,"resize",function(){ps(o)}),Qe(window,"scroll",function(){ps(o)})];if(ue.viewportTarget)for(var y=je(ue.viewportTarget)?ue.viewportTarget:ue.viewportTarget?[ue.viewportTarget]:[],g=0;g<y.length;g++){var v=y[g];f.push(Qe(v,"resize",function(){ps(o)})),f.push(Qe(v,"scroll",function(){ps(o)}))}var x=new Pe(f);o.addDisposer(x),o.vpDisposer=x}else ue.queue&&Up(o);return o}else throw me.log("html container not found"),new Error("html container not found")}function Up(a){_.queue.indexOf(a)==-1&&(a.__disabled=!0,a.tooltipContainer.__disabled=!0,a.events.disableType("appeared"),_.queue.length==0&&(_.events.once("exitframe",function(){Lm(a)}),me.requestFrame()),a.addDisposer(new ye(function(){bu(a)})),_.queue.push(a))}function bu(a){var i=_.queue.indexOf(a);if(i>=0){_.queue.splice(_.queue.indexOf(a),1);var e=_.queue[i];e&&Lm(e)}}function ps(a){a.__disabled&&jl(a.htmlContainer,ue.viewportTarget)&&(a.vpDisposer&&a.vpDisposer.dispose(),Up(a))}function Lm(a){a&&a.tooltipContainer&&(a.__disabled=!1,a.tooltipContainer.__disabled=!1,a.events.enableType("appeared"),a.dispatch("removedfromqueue"),a.showOnInit&&a.events.on("appeared",function(){bu(a)}),a.vpDisposer&&a.vpDisposer.dispose(),a instanceof Y&&a.invalidateLabels(),a.tooltipContainer&&a.tooltipContainer.invalidateLayout(),a instanceof Oi?(a.invalidateData(),a.reinit(),a.events.once("datavalidated",function(){a.showOnInit?a.appear():bu(a)})):(a.reinit(),a.events.once("inited",function(){bu(a)}),a.showOnInit&&a.appear()))}function _v(a,i){var e;se(i)&&($(_.registeredClasses[i])?i=_.registeredClasses[i]:(i=_.registeredClasses.Container,e=new Error("Class ["+i+"] is not loaded.")));var t=xv(a,i);return e&&t.raiseCriticalError(e),t}function $v(a){_.themes.indexOf(a)===-1&&_.themes.push(a)}function Pv(a){ee(_.themes,a)}var Im=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Image",e.element=e.paper.add("image"),e.applyTheme(),e.width=50,e.height=50,e}return i.prototype.draw=function(){if(a.prototype.draw.call(this),this.href){var e=this.innerWidth,t=this.innerHeight;b(this.widthRatio)&&(e=t*this.widthRatio,this.width=e),b(this.heightRatio)&&(t=e*this.heightRatio,this.height=t),this.element.attr({width:e,height:t}),this.element.attrNS(Js,"xlink:href",this.href)}},Object.defineProperty(i.prototype,"href",{get:function(){return this.getPropertyValue("href")},set:function(e){this.setPropertyValue("href",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"widthRatio",{get:function(){return this.getPropertyValue("widthRatio")},set:function(e){this.setPropertyValue("widthRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"heightRatio",{get:function(){return this.getPropertyValue("heightRatio")},set:function(e){this.setPropertyValue("heightRatio",e,!0)},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"bbox",{get:function(){return{x:0,y:0,width:this.pixelWidth,height:this.pixelHeight}},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.Image=Im;var Rm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Polyarc",e.controlPointDistance=.5,e.controlPointPosition=.5,e.applyTheme(),e}return i.prototype.makePath=function(){this._distance=0;var e=this.segments;if(e&&e.length>0){var t="";this._realSegments=[];for(var r=0,s=e.length;r<s;r++){var n=e[r],o=[];if(this._realSegments.push(o),n.length>0){t+=R(n[0]);for(var l=1;l<n.length;l++){var u=n[l-1],h=n[l],p=xe(h,u),d=p*this.controlPointDistance,c=this.controlPointPosition,f=-nt(u,h),y=u.x+(h.x-u.x)*c*.5-d*N(f),g=u.y+(h.y-u.y)*c*.5-d*B(f),v={x:y,y:g},x=u.x+(h.x-u.x)*c*1.5-d*N(f),P=u.y+(h.y-u.y)*c*1.5-d*B(f),T={x,y:P};t+=Yr(h,v,T);var C=Math.ceil(p),O=u;if(C>0)for(var w=0;w<=C;w++){var D=Vn(u,h,v,T,w/C);o.push(D),this._distance+=xe(O,D),O=D}else o.push(u)}}}this.path=t}},Object.defineProperty(i.prototype,"controlPointPosition",{get:function(){return this.getPropertyValue("controlPointPosition")},set:function(e){this.setPropertyValue("controlPointPosition",e),this.makePath()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"controlPointDistance",{get:function(){return this.getPropertyValue("controlPointDistance")},set:function(e){this.setPropertyValue("controlPointDistance",e),this.makePath()},enumerable:!0,configurable:!0}),i})(Zr);_.registeredClasses.Polyarc=Rm;var Kp=(function(a){S(i,a);function i(e){var t=a.call(this)||this;return t._bboxes=[],t.morphDuration=800,t.morphEasing=Ui,t.morphToSingle=!0,t.scaleRatio=1,t.className="Morpher",t.morphable=e,t.applyTheme(),t}return i.prototype.morphToPolygon=function(e,t,r){var s=this.morphable.currentPoints;if(s&&e){this.sortPoints(s),this.sortPoints(e),this._morphFromPointsReal=[],this._morphToPointsReal=[],$(t)||(t=this.morphDuration),$(r)||(r=this.morphEasing),this._morphFromPointsReal=this.normalizePoints(e,s),this._morphToPointsReal=this.normalizePoints(s,e),this.morphable.currentPoints=this._morphFromPointsReal;var n=new Nt(this,{property:"morphProgress",from:0,to:1},t,r);return this._disposers.push(n),n.start(),n}},i.prototype.normalizePoints=function(e,t){for(var r=0,s=e.length;r<s;r++){var n=e[r][0],o=e[r][1],l=Me(Rs(n)),u=l.x+l.width,h=l.y+l.height;if(t[r]||(t[r]=[]),n&&!t[r][0]&&(t[r][0]=[{x:u,y:h},{x:u,y:h}]),t[r][0]){t[r][0]=this.addPoints(t[r][0],n.length);for(var p=1/0,d=0,c=0;c<t[r][0].length;c++){var f=xe(t[r][0][c],n[0]);f<p&&(d=c,p=f)}var y=t[r][0].slice(0,d),g=t[r][0].slice(d);t[r][0]=g.concat(y)}o&&(t[r][1]||(t[r][1]=[{x:u,y:h},{x:u,y:h}]),t[r][1]=this.addPoints(t[r][1],o.length))}return t},i.prototype.sortPoints=function(e){e.sort(function(o,l){var u=Me(Rs(o[0])),h=Me(Rs(l[0]));return u.width*u.height>h.width*h.height?-1:1});for(var t=[],r=0,s=e.length;r<s;r++){var n=e[r][0];n&&t.push(Me(Rs(n)))}return xr(t)},i.prototype.morphToCircle=function(e,t,r){var s=this.morphable.points,n=this.sortPoints(s);this._morphFromPointsReal=[],this._morphToPointsReal=[],$(t)||(t=this.morphDuration),$(r)||(r=this.morphEasing);for(var o=0,l=s.length;o<l;o++){var u=s[o][0],h=s[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],u){var p=u,d=u,c=Me(Rs(d));this.morphToSingle&&(c=Me(n));var f=c.x+c.width/2,y=c.y+c.height/2,g=e;b(g)||(g=Math.min(c.width/2,c.height/2)),p=[];var v=nt({x:f,y},u[0]),x=100;u.length>x&&(x=u.length),d=this.addPoints(u,x),x=d.length;for(var P=360/(x-1),T=0;T<x;T++){var C=P*T+v,O={x:f+g*B(C),y:y+g*N(C)};p[T]=O}if(h&&h.length>0)for(var w=0,D=h.length;w<D;w++)p.push({x:f,y});this._morphFromPointsReal[o][0]=d,this._morphToPointsReal[o][0]=p}}this.morphable.currentPoints=this._morphFromPointsReal;var A=new Nt(this,{property:"morphProgress",from:0,to:1},t,r);return this._disposers.push(A),A.start(),A},i.prototype.addPoints=function(e,t){for(var r=Math.round(t/e.length),s=[],n=0,o=e.length;n<o;n++){var l=e[n],u=void 0;n==e.length-1?u=e[0]:u=e[n+1],s.push(l);for(var h=1;h<r;h++){var p=h/r,d={x:l.x+(u.x-l.x)*p,y:l.y+(u.y-l.y)*p};s.push(d)}s.length+e.length-n==t&&(r=0)}if(s.length<t&&e.length>0)for(var c=e[e.length-1],h=s.length;h<t;h++)s.push({x:c.x,y:c.y});return s},i.prototype.morphToRectangle=function(e,t,r,s){var n=this.morphable.points;this.sortPoints(n),this._morphFromPointsReal=[],this._morphToPointsReal=[],$(r)||(r=this.morphDuration),$(s)||(s=this.morphEasing);for(var o=0,l=n.length;o<l;o++){var u=n[o][0],h=n[o][1];if(this._morphFromPointsReal[o]=[],this._morphToPointsReal[o]=[],u){var p=u,d=u,c=this._bboxes[o];this.morphToSingle;var f=c.x,y=c.y,g=e,v=t;if(b(g)||(g=c.width),b(v)||(v=c.height),p=[{x:f,y},{x:f+g,y},{x:f+g,y:y+v},{x:f,y:y+v}],p=this.addPoints(p,u.length),u.length<4)for(var x=u.length;x<4;x++)p.push({x:u[x].x,y:u[x].y});if(h&&h.length>0)for(var P=c.x+c.width/2,T=c.y+c.height/2,C=0,O=h.length;C<O;C++)p.push({x:P,y:T});this._morphFromPointsReal[o][0]=d,this._morphToPointsReal[o][0]=p}}this.morphable.currentPoints=this._morphFromPointsReal;var w=new Nt(this,{property:"morphProgress",from:0,to:1},r,s);return this._disposers.push(w),w.start(),w},Object.defineProperty(i.prototype,"morphProgress",{get:function(){return this._morphProgress},set:function(e){this._morphProgress=e;var t=[];if(e!=null){var r=this._morphFromPointsReal,s=this._morphToPointsReal;if(r!=null&&s!=null)for(var n=0,o=r.length;n<o;n++){var l=[];t.push(l);var u=r[n][0],h=r[n][1],p=s[n][0],d=s[n][1];if(u&&u.length>0&&p&&p.length>0){for(var c=[],f=0,y=u.length;f<y;f++){var g=u[f],v=p[f],x={x:g.x+(v.x*this.scaleRatio-g.x)*e,y:g.y+(v.y*this.scaleRatio-g.y)*e};c.push(x)}l[0]=c}if(h&&h.length>0&&d&&d.length>0){for(var P=[],T=0,C=h.length;T<C;T++){var g=h[T],v=d[T],x={x:g.x+(v.x*this.scaleRatio-g.x)*e,y:g.y+(v.y*this.scaleRatio-g.y)*e};P.push(x)}l[1]=P}}}this.morphable.currentPoints=t},enumerable:!0,configurable:!0}),i.prototype.morphBack=function(e,t){this._morphToPointsReal=this._morphFromPointsReal,this._morphFromPointsReal=this.morphable.currentPoints,$(e)||(e=this.morphDuration),$(t)||(t=this.morphEasing);var r=new Nt(this,{property:"morphProgress",from:0,to:1},e,t);return this._disposers.push(r),r.start(),r},Object.defineProperty(i.prototype,"animations",{get:function(){return this._animations||(this._animations=[],this._disposers.push(new Ki(this._animations))),this._animations},enumerable:!0,configurable:!0}),i})(Ze);var Mm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Polygon",e.element=e.paper.add("path"),e.shapeRendering="auto",e._currentPoints=[],e.applyTheme(),e}return Object.defineProperty(i.prototype,"points",{get:function(){var e=this.getPropertyValue("points"),t=this.path;if(t&&(!e||e.length==0)){for(var r=t.slice(1,t.length-1),s=r.split("ZM"),n=0;n<s.length;n++){var o=s[n];if(o.length>0){var l=o.split("M"),u=l[0],h=l[1];if(u&&u.length>0){var p=u.split("L");if(p.length>0){var d=[],c=[d];e.push(c);for(var f=0;f<p.length;f++){var y=p[f].split(",");d.push({x:+y[0],y:+y[1]})}if(h&&h.length>0){var g=h.split("L");if(g.length>0){var v=[];c.push(v);for(var f=g.length-1;f>=0;f--){var y=g[f].split(",");v.push({x:+y[0],y:+y[1]})}}}}}}}this.setPropertyValue("points",e),this._currentPoints=e}return e},set:function(e){this.setPropertyValue("points",e,!0),this._currentPoints=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"currentPoints",{get:function(){return(!this._currentPoints||this._currentPoints.length==0)&&this.path&&(this._currentPoints=this.points),this._currentPoints},set:function(e){this._currentPoints!=e&&(this._currentPoints=e,this.draw())},enumerable:!0,configurable:!0}),i.prototype.draw=function(){var e="",t=this._currentPoints,r,s,n,o;if(t.length>0){for(var l=0,u=t.length;l<u;l++){var h=t[l][0],p=t[l][1];if(h&&h.length>0){var d=h[0];e+=R(d);for(var c=0;c<h.length;c++)d=h[c],e+=F(d),(!b(s)||s<d.x)&&(s=d.x),(!b(r)||r>d.x)&&(r=d.x),(!b(n)||n>d.y)&&(n=d.y),(!b(o)||o<d.y)&&(o=d.y)}if(p&&p.length>0){var d=p[0];e+=R(d);for(var f=0,y=p.length;f<y;f++)d=p[f],e+=F(d)}}e&&(e+=Ee()),this.bbox.x=r,this.bbox.y=n,this.bbox.width=s-r,this.bbox.height=o-n,a.prototype.setPath.call(this,e)}},i.prototype.setPath=function(e){return a.prototype.setPath.call(this,e)?(this.points=[],this._bbox=this.group.getBBox(),!0):!1},i.prototype.measureElement=function(){},Object.defineProperty(i.prototype,"centerPoint",{get:function(){return{x:this.bbox.x+this.bbox.width/2,y:this.bbox.y+this.bbox.height/2}},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"morpher",{get:function(){return this._morpher||(this._morpher=new Kp(this),this._disposers.push(this._morpher)),this._morpher},enumerable:!0,configurable:!0}),i})(U);_.registeredClasses.Polygon=Mm;var jm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="CloseButton",e.padding(8,8,8,8),e.showSystemTooltip=!0,e.width=30,e.height=30;var t=new J;e.cursorOverStyle=Re.pointer;var r=e.background;r.cornerRadius(20,20,20,20);var s=t.getFor("background");r.fill=s,r.stroke=t.getFor("primaryButton"),r.strokeOpacity=1,r.strokeWidth=1;var n=t.getFor("primaryButtonActive"),o=r.states.getKey("hover");o.properties.strokeWidth=3,o.properties.fill=s;var l=r.states.getKey("down");l.properties.stroke=n,l.properties.fill=s;var u=new U;return u.element=e.paper.add("path"),u.stroke=r.stroke,e.icon=u,e.applyTheme(),e}return i.prototype.validate=function(){a.prototype.validate.call(this);var e=this.pixelWidth/3,t=this.pixelHeight/3,r=R({x:-e/2,y:-t/2});r+=F({x:e/2,y:t/2}),r+=R({x:e/2,y:-t/2}),r+=F({x:-e/2,y:t/2}),this.icon.path=r,this.invalidateLayout()},i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Close"))},i})(oi);_.registeredClasses.CloseButton=jm;var Nm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="SwitchButton",e.tooltipY=0,e.layout="horizontal",e.contentAlign="center",e.contentValign="middle",e.padding(8,16,8,16),e.setStateOnChildren=!0,e.states.create("active");var t=new J,r=new Je;r.fillOpacity=.3;var s=r.states.create("active");s.properties.fillOpacity=1,r.isActive=!0,e.leftLabel=r;var n=new oi,o=new wi;n.contentValign="none",n.padding(0,0,0,0),o.radius=10,n.icon=o,n.icon.valign="middle",n.label=void 0;var l=k(100);n.background.cornerRadius(l,l,l,l),n.width=o.radius*3.5,n.height=o.radius*2.1,n.marginLeft=8,n.marginRight=8,n.togglable=!0,o.dx=-o.radius*.7,o.fill=t.getFor("primaryButton");var u=o.states.create("hover");u.properties.fill=t.getFor("primaryButtonHover");var h=o.states.create("active");h.properties.fill=t.getFor("primaryButtonActive"),h.properties.dx=o.radius*.7,e.switchButton=n,e.events.on("toggled",function(){e.leftLabel.isActive=!e.isActive,e.rightLabel.isActive=e.isActive});var p=new Je;p.fillOpacity=.3;var d=p.states.create("active");return d.properties.fillOpacity=1,e.rightLabel=p,e.role="button",e.focusable=!0,p.valign="middle",r.valign="middle",n.valign="middle",e.applyTheme(),e}return Object.defineProperty(i.prototype,"leftLabel",{get:function(){return this._leftLabel},set:function(e){this._leftLabel&&this.removeDispose(this._leftLabel),this._leftLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._leftLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"rightLabel",{get:function(){return this._rightLabel},set:function(e){this._rightLabel&&this.removeDispose(this._rightLabel),this._rightLabel=e,e&&(e.parent=this,e.interactionsEnabled=!1,e.shouldClone=!1,this._disposers.push(this._rightLabel))},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switch",{get:function(){return this._switchButton},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"switchButton",{get:function(){return this._switchButton},set:function(e){this._switchButton&&this.removeDispose(this._switchButton),this._switchButton=e,e&&(e.parent=this,e.shouldClone=!1,this._disposers.push(this._switchButton))},enumerable:!0,configurable:!0}),i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),e.leftLabel&&this.leftLabel.copyFrom(e.leftLabel),e.rightLabel&&this.rightLabel.copyFrom(e.rightLabel),e.switchButton&&this.switchButton.copyFrom(e.switchButton)},i})(Y);_.registeredClasses.SwitchButton=Nm;var Em=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="Slider",e.thumb.opacity=0,e.thumb.interactionsEnabled=!1,e.endGrip.opacity=0,e.endGrip.interactionsEnabled=!1,e.startGrip.events.on("drag",function(){e.endGrip.x=e.startGrip.x,e.endGrip.y=e.startGrip.y}),e.applyTheme(),e}return Object.defineProperty(i.prototype,"__end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"end",{get:function(){return this._start},set:function(e){},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"start",{get:function(){return this._start},set:function(e){this._isBusy||(this.__start=e)},enumerable:!0,configurable:!0}),i})(ma);_.registeredClasses.Slider=Em;var Bm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e.className="PlayButton",e.padding(12,12,12,12),e.showSystemTooltip=!0;var t=new J,r=e.background;r.cornerRadius(25,25,25,25),r.fill=t.getFor("primaryButton"),r.stroke=t.getFor("primaryButtonStroke"),r.strokeOpacity=0,r.states.getKey("hover").properties.fill=t.getFor("primaryButtonHover"),r.states.getKey("down").properties.fill=t.getFor("primaryButtonActive");var s=new gn;s.direction="right",s.width=9,s.height=11,s.marginLeft=1,s.marginRight=1,s.horizontalCenter="middle",s.verticalCenter="middle",s.stroke=t.getFor("primaryButtonText"),s.fill=s.stroke,e.icon=s;var n=new Ft;n.width=11,n.height=11,n.horizontalCenter="middle",n.verticalCenter="middle",n.cornerRadius(0,0,0,0),n.stroke=t.getFor("primaryButtonText"),n.fill=s.stroke,e.togglable=!0;var o=e.states.create("active");return o.transitionDuration=0,o.properties.icon=n,e.defaultState.transitionDuration=0,e.applyTheme(),e}return i.prototype.applyInternalDefaults=function(){a.prototype.applyInternalDefaults.call(this),$(this.readerTitle)||(this.readerTitle=this.language.translate("Play"))},i})(oi);_.registeredClasses.PlayButton=Bm;var Wm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="RadialGradientModifier",e.gradient=new Si,e.applyTheme(),e}return i.prototype.copyFrom=function(e){a.prototype.copyFrom.call(this,e),this.gradient=e.gradient.clone()},i})(vo);_.registeredClasses.RadialGradientModifier=Wm;var xu=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.properties.radius=2,e._circle=e.paper.add("circle"),e.addElement(e._circle),e.shapeRendering="auto",e}return i.prototype.draw=function(){a.prototype.draw.call(this),this._circle&&this._circle.attr({r:this.radius,cx:this.width/2,cy:this.height/2})},Object.defineProperty(i.prototype,"radius",{get:function(){return this.properties.radius},set:function(e){this.properties.radius=e,this.draw()},enumerable:!0,configurable:!0}),i})(ar);_.registeredClasses.CirclePattern=xu;var Hm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="ColorizeFilter",e.feColorMatrix=e.paper.add("feColorMatrix"),e.feColorMatrix.attr({type:"matrix"}),e.filterPrimitives.push(e.feColorMatrix),e.intensity=1,e.applyTheme(),e}return i.prototype.applyFilter=function(){var e=this.intensity,t=1-e,r,s,n,o=this.color;o&&o.rgb?(r=o.rgb.r/255*e,s=o.rgb.g/255*e,n=o.rgb.b/255*e):(r=0,s=0,n=0),this.feColorMatrix.attr({values:t+" 0 0 0 "+r+" 0 "+t+" 0 0 "+s+" 0 0 "+t+" 0 "+n+" 0 0 0 1 0"})},Object.defineProperty(i.prototype,"color",{get:function(){return this.properties.color},set:function(e){this.properties.color=e,this.applyFilter()},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"intensity",{get:function(){return this.properties.intensity},set:function(e){this.properties.intensity=e,this.applyFilter()},enumerable:!0,configurable:!0}),i})(ji);_.registeredClasses.ColorizeFilter=Hm;var zm=(function(a){S(i,a);function i(){var e=a.call(this)||this;return e.className="BlurFilter",e.feGaussianBlur=e.paper.add("feGaussianBlur"),e.feGaussianBlur.attr({result:"blurOut",in:"SourceGraphic"}),e.filterPrimitives.push(e.feGaussianBlur),e.width=200,e.height=200,e.blur=1.5,e.applyTheme(),e}return Object.defineProperty(i.prototype,"blur",{get:function(){return this.properties.blur},set:function(e){this.properties.blur=e,this.feGaussianBlur.attr({stdDeviation:e/this.scale})},enumerable:!0,configurable:!0}),i})(ji);_.registeredClasses.BlurFilter=zm;var Xm=(function(a){S(i,a);function i(){var e=a.call(this)||this;e._list=[],e._currentStep=0,e._startIndex=0,e._currentPass=0,e.baseColor=new de({r:103,g:183,b:220}),e.className="PatternSet";var t=new J;return e.list=[e.getLinePattern(1e3,45,1,6),e.getRectPattern(10,0,4),e.getLinePattern(1e3,-45,1,6),e.getCirclePattern(11,2,!0),e.getLinePattern(6,90,1),e.getRectPattern(12,45,6,!0),e.getLinePattern(6,0,1),e.getRectPattern(7,0,4),e.getLinePattern(1e3,45,2,3,"4,2"),e.getCirclePattern(9,3,!1),e.getLinePattern(1e3,-45,2,3,"4,2"),e.getRectPattern(10,45,Math.sqrt(50)),e.getLinePattern(1e3,-45,2,1),e.getRectPattern(10,0,9),e.getLinePattern(1e3,45,2,1),e.getLinePattern(1e3,0,3,1),e.getRectPattern(10,45,10),e.getLinePattern(1e3,90,3,1)],e.baseColor=t.getFor("stroke"),e.applyTheme(),e}return i.prototype.getLinePattern=function(e,t,r,s,n){var o=new bn;return o.width=e,o.height=e,o.stroke=this.baseColor,o.gap=s,o.strokeDasharray=n,o.strokeWidth=r,o.rotation=t,o},i.prototype.getRectPattern=function(e,t,r,s){var n=new xn;return n.width=e,n.height=e,n.rectWidth=r,n.rectHeight=r,s?(n.stroke=this.baseColor,n.strokeWidth=1,n.fillOpacity=0):(n.fill=this.baseColor,n.strokeWidth=0),t!=0&&(n.shapeRendering="auto"),n.rotation=t,n},i.prototype.getCirclePattern=function(e,t,r){var s=new xu;return s.width=e,s.height=e,s.shapeRendering="auto",s.radius=t,r?(s.stroke=this.baseColor,s.strokeWidth=1,s.fillOpacity=0):(s.fill=this.baseColor,s.strokeWidth=0),s},Object.defineProperty(i.prototype,"list",{get:function(){return this._list},set:function(e){this._list=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.next=function(){var e=this.getIndex(this.currentStep);return this._currentStep++,e},i.prototype.getIndex=function(e){for(var t;this.list.length<=e;)this.generatePatterns();return t=this.list[e],t.clone()},i.prototype.generatePatterns=function(){var e=this.list.length/(this._currentPass+1);this._currentPass++;for(var t=0;t<e;t++)this.list.push(this.list[t].clone())},i.prototype.reset=function(){this._currentStep=this._startIndex},Object.defineProperty(i.prototype,"currentStep",{get:function(){return this._currentStep},set:function(e){this._currentStep=e},enumerable:!0,configurable:!0}),Object.defineProperty(i.prototype,"startIndex",{get:function(){return this._startIndex},set:function(e){this._startIndex=e,this.reset()},enumerable:!0,configurable:!0}),i.prototype.processConfig=function(e){a.prototype.processConfig.call(this,e)},i})(Ze);_.registeredClasses.PatternSet=Xm;var Sv=(function(){function a(){this._disposed=!1,this._disposers=[]}return a.prototype.init=function(){},a.prototype.isDisposed=function(){return this._disposed},a.prototype.dispose=function(){if(!this._disposed){this._disposed=!0;var i=this._disposers;for(this._disposers=null;i.length!==0;){var e=i.shift();e.dispose()}}},a})();var Ym=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Cv(a){return typeof a=="string"&&Ym.test(a)}var Gm=Cv;function Tv(a){if(!Gm(a))throw TypeError("Invalid UUID");let i;return Uint8Array.of((i=parseInt(a.slice(0,8),16))>>>24,i>>>16&255,i>>>8&255,i&255,(i=parseInt(a.slice(9,13),16))>>>8,i&255,(i=parseInt(a.slice(14,18),16))>>>8,i&255,(i=parseInt(a.slice(19,23),16))>>>8,i&255,(i=parseInt(a.slice(24,36),16))/1099511627776&255,i/4294967296&255,i>>>24&255,i>>>16&255,i>>>8&255,i&255)}var qp=Tv;var ti=[];for(let a=0;a<256;++a)ti.push((a+256).toString(16).slice(1));function Um(a,i=0){return(ti[a[i+0]]+ti[a[i+1]]+ti[a[i+2]]+ti[a[i+3]]+"-"+ti[a[i+4]]+ti[a[i+5]]+"-"+ti[a[i+6]]+ti[a[i+7]]+"-"+ti[a[i+8]]+ti[a[i+9]]+"-"+ti[a[i+10]]+ti[a[i+11]]+ti[a[i+12]]+ti[a[i+13]]+ti[a[i+14]]+ti[a[i+15]]).toLowerCase()}function Ov(a){a=unescape(encodeURIComponent(a));let i=new Uint8Array(a.length);for(let e=0;e<a.length;++e)i[e]=a.charCodeAt(e);return i}var Km="6ba7b810-9dad-11d1-80b4-00c04fd430c8",qm="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Zp(a,i,e,t,r,s){let n=typeof e=="string"?Ov(e):e,o=typeof t=="string"?qp(t):t;if(typeof t=="string"&&(t=qp(t)),t?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+n.length);if(l.set(o),l.set(n,o.length),l=i(l),l[6]=l[6]&15|a,l[8]=l[8]&63|128,r){s=s||0;for(let u=0;u<16;++u)r[s+u]=l[u];return r}return Um(l)}function wv(a,i,e,t){switch(a){case 0:return i&e^~i&t;case 1:return i^e^t;case 2:return i&e^i&t^e&t;case 3:return i^e^t}}function Qp(a,i){return a<<i|a>>>32-i}function Dv(a){let i=[1518500249,1859775393,2400959708,3395469782],e=[1732584193,4023233417,2562383102,271733878,3285377520],t=new Uint8Array(a.length+1);t.set(a),t[a.length]=128,a=t;let r=a.length/4+2,s=Math.ceil(r/16),n=new Array(s);for(let o=0;o<s;++o){let l=new Uint32Array(16);for(let u=0;u<16;++u)l[u]=a[o*64+u*4]<<24|a[o*64+u*4+1]<<16|a[o*64+u*4+2]<<8|a[o*64+u*4+3];n[o]=l}n[s-1][14]=(a.length-1)*8/Math.pow(2,32),n[s-1][14]=Math.floor(n[s-1][14]),n[s-1][15]=(a.length-1)*8&4294967295;for(let o=0;o<s;++o){let l=new Uint32Array(80);for(let f=0;f<16;++f)l[f]=n[o][f];for(let f=16;f<80;++f)l[f]=Qp(l[f-3]^l[f-8]^l[f-14]^l[f-16],1);let u=e[0],h=e[1],p=e[2],d=e[3],c=e[4];for(let f=0;f<80;++f){let y=Math.floor(f/20),g=Qp(u,5)+wv(y,h,p,d)+c+i[y]+l[f]>>>0;c=d,d=p,p=Qp(h,30)>>>0,h=u,u=g}e[0]=e[0]+u>>>0,e[1]=e[1]+h>>>0,e[2]=e[2]+p>>>0,e[3]=e[3]+d>>>0,e[4]=e[4]+c>>>0}return Uint8Array.of(e[0]>>24,e[0]>>16,e[0]>>8,e[0],e[1]>>24,e[1]>>16,e[1]>>8,e[1],e[2]>>24,e[2]>>16,e[2]>>8,e[2],e[3]>>24,e[3]>>16,e[3]>>8,e[3],e[4]>>24,e[4]>>16,e[4]>>8,e[4])}var Zm=Dv;function Jp(a,i,e,t){return Zp(80,Zm,a,i,e,t)}Jp.DNS=Km;Jp.URL=qm;var _u=Jp;var Et={SelectXY:"selectXY",SelectX:"selectX",SelectY:"selectY",ZoomXY:"zoomXY",ZoomX:"zoomX",ZoomY:"zoomY",None:"none"},Wi={Top:"top",Bottom:"bottom",Median:"median",Outliers:"outliers"};function Av(a){let{dataContext:i,dataIndex:e,objectIdField:t}=a;return`${$s.sliceIdPrefix}-${i[t??""]?.toString()??e}`}function Fv(a){let{chartConfig:i,chartData:e,fieldList:t}=a,r=gt(i.series)===pe.PieFromFields;if(i.orderOptions?.data!==void 0||r){dc({arrayToSort:e,chartConfig:i,fieldList:t});let{slices:s}=i.series[0];s!==void 0&&s.sort((n,o)=>{let l=e.findIndex(h=>h[Se.pieChart.technicalFieldSliceId]===n.sliceId),u=e.findIndex(h=>h[Se.pieChart.technicalFieldSliceId]===o.sliceId);return l-u})}}function q3(a){let{data:i,newChartConfig:e,pieSlicesSymbols:t,fieldList:r}=a,s=e.series[0],n=gt(e.series)===pe.PieFromFields?Va:s.x;i.forEach(o=>{let l=Ts(o),u=o[Se.pieChart.technicalFieldSliceId],h=l?s.sliceGrouping?.label:kv(t?.slices,u)?.label;Vv({dataContext:o,x:n,newLabel:h})}),Fv({chartConfig:e,chartData:i,fieldList:r})}function Vv(a){let{dataContext:i,newLabel:e,x:t}=a;e===void 0?i[Se.originalCategoryValue]!==void 0&&(i[t]=i[Se.originalCategoryValue]):i[t]!==e&&(i[Se.originalCategoryValue]===void 0&&(i[Se.originalCategoryValue]=i[t]),i[t]=e)}function kv(a,i){let e;return a!==void 0&&i!==void 0&&(e=a.find(t=>t.sliceId===i)),e}function Z3(a){let{dataContext:i,isNonAggregatedChart:e,x:t,dataIndex:r,objectIdField:s,isPieFromFields:n}=a,o="";return n===!0?o=i[Se.originalCategoryValue]??i[Va]:e?o=Av({dataContext:i,dataIndex:r,objectIdField:s}):(o=i[Se.originalCategoryValue],o===void 0||o===""?o=$s.emptySliceId:o===null&&(o=$s.nullSliceId),o=o??i[t]),o===void 0&&(o=$s.undefinedSliceId),o.toString()}function Q3(a){let{dataContext:i,sliceFromConfig:e,isGroupOfSlices:t,seriesConfig:r,fieldList:s,isPieFromFields:n,labelUpdateNeeded:o,colorMatch:l,utilsStrings:u}=a,{sliceGrouping:h}=r,{x:p}=r;n&&(p=Va);let d=i[p]??i[Se.originalCategoryValue],c=i[Se.originalCategoryValue]??d,f=d;return o&&(t?f=h?.label??h?.originalLabel?.toString()??u.pieChart.defaultSliceGroupingLabel:l&&i[Se.rendererSymbolField]?.label!==void 0?f=i[Se.rendererSymbolField].label:e!==void 0||s!==void 0?(e?.label&&e.label!==e?.sliceId&&(f=e?.label),f===c&&c!==void 0&&c!==null&&(f=Dt(s,c))):e===void 0&&(f=c),f===Se.nullValue?f="null":f!=null&&(f=f.toString())),f}function J3(a,i){return a[0]?.sliceGrouping?.percentageThreshold!==i[0]?.sliceGrouping?.percentageThreshold}function pd(a){let{groupOfSlicesDataContext:i,chartData:e}=a;return(i??e?.find(t=>t[$s.defaultGroupOfSlicesId]===!0))?.[Se.pieChart.technicalFieldGroupedSlices]}function eG(a){let{dataContext:i,pieSlicesSymbols:e,seriesConfig:t}=a,r=t.fillSymbol?{...t.fillSymbol}:Uu();if(Ts(i))r={...Se.pieChart.sliceGrouping.fillSymbol,...e?.groupOfSlices?.fillSymbol};else{let s=i[Se.pieChart.technicalFieldSliceId],n=e?.slices?.find(o=>o.sliceId===s);r=Cn(n?.fillSymbol??t.fillSymbol??Uu())}return r}var Su=new Map;function Zi(a){a!==void 0&&Su.delete(a)}function cs(a,i){let e=Su.get(a)??{};Su.set(a,{...e,...i})}function fs(a,i){return Su.get(a)?.[i]}function Lv(a,i){return fs(a,i)}function Iv(a,i){cs(a,i)}function Rv(a,i){return fs(a,i)}function Mv(a,i){cs(a,i)}function G(a,i){return fs(a,i)}function Ai(a,i){cs(a,i)}function gi(a,i){return fs(a,i)}function wa(a,i){cs(a,i)}function Zt(a,i){return fs(a,i)}function zt(a,i){cs(a,i)}function jv(a,i){return fs(a,i)}function Nv(a,i){cs(a,i)}function li(a,i){return fs(a,i)}function Do(a,i){cs(a,i)}var L={...Se};async function Ev(a){let i=Dd(`assets/common/t9n/messages.${a}.json`),e=await fetch(i);if(!e.ok)throw new Error(`Failed to load t9n file: ${i}`);return await e.json()}async function tG(a=kd(document.documentElement).t9nLocale){let i=await import("./H6G4K2SI.js");switch(a){case"ar":i=await import("./C32DLPO2.js");break;case"bs":i=await import("./ZGRLFOVN.js");break;case"bg":i=await import("./2MVU33EQ.js");break;case"ca":i=await import("./K7M5S6GY.js");break;case"cs":i=await import("./W5WI6CWC.js");break;case"da":i=await import("./A2SOXYD7.js");break;case"de":i=await import("./5WSLX3X6.js");break;case"el":i=await import("./INFEECC2.js");break;case"es":i=await import("./ANEY3G3T.js");break;case"et":i=await import("./UJ7GGLFA.js");break;case"fi":i=await import("./577EV2JF.js");break;case"fr":i=await import("./TLSTPQNA.js");break;case"he":i=await import("./XTWWNXCJ.js");break;case"hr":i=await import("./RRDNOR24.js");break;case"hu":i=await import("./SWQ7K4X5.js");break;case"id":i=await import("./FW27X6ZH.js");break;case"it":i=await import("./AGJRXDBI.js");break;case"ja":i=await import("./OLBJGP5C.js");break;case"ko":i=await import("./43SJZXD3.js");break;case"lt":i=await import("./PI6HSSQL.js");break;case"lv":i=await import("./VHOYFIGY.js");break;case"no":i=await import("./X5TUHBXH.js");break;case"nl":i=await import("./KSNCOD3U.js");break;case"pl":i=await import("./BHNYXBUZ.js");break;case"pt-BR":i=await import("./4VMTBYLY.js");break;case"pt-PT":i=await import("./2JPFAFHJ.js");break;case"ro":i=await import("./WQRZ7LGV.js");break;case"ru":i=await import("./RKXV44WI.js");break;case"sr":i=await import("./B3HEXSCX.js");break;case"sk":i=await import("./DF2JGSK4.js");break;case"sv":i=await import("./NXRLNLM4.js");break;case"th":i=await import("./WMSU5OWP.js");break;case"tr":i=await import("./MIVV22F3.js");break;case"uk":i=await import("./GBCL3LR7.js");break;case"vi":i=await import("./YZTAP3PR.js");break;case"zh-CN":i=await import("./PF6HSS3J.js");break;case"zh-HK":i=await import("./Z5L2GNFQ.js");break;case"zh-TW":i=await import("./Z5L2GNFQ.js");break}let e=(await Ev(a)).customAmchartsStrings;return{...i.default,...e}}function Oa(a){let{type:i,iLocale:e,formatLocale:t=Mc(document.documentElement)}=a,r;switch(i){case W.NumberAxisFormat:{r=new Xr,r.language.locale=e,r.intlLocales=t;break}case W.DateAxisFormat:{r=new Ii,r.language!==void 0&&(r.language.locale=e),r.intlLocales=t;break}}return r}function Qm(a){let{axis:i,valueFormat:e,chartType:t}=a,r=Qo({isXAxis:!0,chartType:t,valueFormat:e}),s=xs(e)&&i instanceof fe,n=ta(e)&&i instanceof Q&&!(i instanceof fe),o=r&&i instanceof $e;return!s&&!n&&!o}function fy(a,i){let e=typeof i=="number"?`${i}`:i,t=Zt(a.uid,"numberFormatter");return t!==void 0&&(e=t(i)),yr(e)&&(e=L.htmlEmptyContent),gr(e)}function Bv(a){a.renderer.labels.template.html=L.htmlEmptyContent,a.renderer.labels.template.adapter.add("htmlOutput",(i,e)=>fy(a,e?.dataItem?.value??i),0)}function my(a){let{axis:i,defaultOutput:e,dataItem:t}=a,r=e,s=Zt(i.uid,"categoryFormatter"),n=Zt(i.uid,"numberFormatter");if((n!==void 0||s!==void 0)&&t instanceof kr){let o=G(i.chart.uid,"config"),l=gt(o?.series),u=G(i.chart.uid,"rendererFieldNames"),h=ia({value:t.category,dataContext:t.dataContext,useRendererLabel:Zu(o,u),specificField:eh(l,o?.series?.[0]),config:o});if(typeof h=="number"&&n!==void 0)r=n(h);else if(s!==void 0){if([pe.BoxPlotMonoField,pe.BoxPlotMultiFields,pe.BoxPlotMonoFieldAndSplitBy,pe.BoxPlotMultiFieldsAndSplitBy,pe.BarAndLineFromFields].includes(l)&&typeof h=="string"){let d=G(i.chart.uid,"fieldList");h=Dt(d,h)}let p=Ss(t.dataContext);p===void 0&&(p=h),r=s(h,p)}}return yr(r)&&(r=L.htmlEmptyContent),gr(r)}function Wv(a){a.renderer.labels.template.html=L.htmlEmptyContent,a.renderer.labels.template.adapter.add("htmlOutput",(i,e)=>my({axis:a,defaultOutput:i,dataItem:e?.dataItem}),0)}function Hv(a){let{axis:i,defaultOutput:e,dataItem:t}=a,r=e,s=Zt(i.uid,"dateFormatter");return s!==void 0&&t instanceof _a&&(r=s(t.value??e)),yr(r)&&(r=L.htmlEmptyContent),gr(r)}function zv(a){a.renderer.labels.template.adapter.add("htmlOutput",(i,e)=>Hv({axis:a,dataItem:e?.dataItem,defaultOutput:i}),0),a.renderer.labels.template.adapter.disableKey("htmlOutput")}function Xv(a){a.renderer.labels.template.adapter.add("htmlOutput",i=>{let e=i,t=Zt(a.uid,"fontStyleCallback");return t!==void 0&&(e=t(e)),gr(e)},1)}function Yv(a){a instanceof Q&&!(a instanceof fe)?Bv(a):a instanceof $e?Wv(a):a instanceof fe&&zv(a),Xv(a)}function Gv(a){let{axis:i,formatOptions:e,dateAxisFormatter:t,isTimeOnlyField:r}=a;if(zt(i.uid,{dateFormatter:t}),t===void 0){i.renderer.labels.template.adapter.isEnabled("htmlOutput")&&(i.renderer.labels.template.adapter.disableKey("htmlOutput"),i.renderer.labels.each(o=>{o.element instanceof io&&o.element.removeChildren()}));let s={hour:r?"numeric":void 0,minute:r?"numeric":void 0,...On(e)},n=["year","month","day","hour","minute","second"];i.timezone!==s.timeZone&&(i.setPropertyValue("timezone",s.timeZone),i.chart.validateData()),i.dateFormatter.timezone=s.timeZone,delete s.timeZone;for(let o=0;o<n.length;o+=1){let l=n[o],u=o===0?l:n[o-1],h=e?.formatPerDateTimeUnit?.[l]??s,p=e?.formatPerDateTimeUnit?.[u];ea(h)||(i.dateFormats.setKey(l,h),i.periodChangeDateFormats.setKey(l,p??h))}i.dateFormats.getKey("day")||i.dateFormats.setKey("day",L.dayDefaultFormat),i.periodChangeDateFormats.getKey("day")||i.periodChangeDateFormats.setKey("day",L.dayDefaultFormat),i.dateFormats.getKey("week")||i.dateFormats.setKey("week",i.dateFormats.getKey("day")??L.weekDefaultFormat),i.periodChangeDateFormats.getKey("week")||i.periodChangeDateFormats.setKey("week",i.periodChangeDateFormats.getKey("day")??L.weekDefaultFormat),i.invalidateLabels()}else i.renderer.labels.template.html=L.htmlEmptyContent,i.renderer.labels.template.adapter.enableKey("htmlOutput")}function Uv(a,i,e,t){let r=Oa({type:W.NumberAxisFormat,iLocale:i,formatLocale:e});return r.numberFormat=a,s=>{let n=0;return s instanceof Date?s.toLocaleString(void 0,a):(n=typeof s!="string"?s??0:Rc(s,r.intlLocales),t===!0&&a.style==="percent"&&(n/=100),r.format(n))}}function Jm(a){let{axis:i,formatOptions:e,overridePercentMultiplication:t,valueAxisFormatter:r}=a,s=On(e),n=G(i.chart.uid,"formatLocale");zt(i.uid,{numberFormatter:r??Uv(s,i.chart.language.locale,n,t)})}function Kv(a){let{axis:i,formatOptions:e,categoryAxisFormatter:t}=a,r=t!==void 0?t:Zd(e.characterLimit);zt(i.uid,{categoryFormatter:r})}function qv(a){let{axis:i,labelsTextSymbol:e,axisValueFormatter:t}=a,r=G(i.chart.uid,"config")?.horizontalAxisLabelsBehavior;if(zt(i.uid,{axisLabelsBehavior:r}),t!==void 0)zt(i.uid,{fontStyleCallback:void 0});else if(Zt(i.uid,"fontStyleCallback")===void 0){let s=n=>{let o=Zt(i.uid,"axisLabelsBehavior");return wn({textSymbol:e,placeholderString:n,format:"html",axisLabelsBehavior:o,defaults:{maxWidth:i.renderer.labels.template.maxWidth}})};zt(i.uid,{fontStyleCallback:s})}}function Zv(a){let{axis:i,isXAxis:e,formatOptions:t,labelsTextSymbol:r,overridePercentMultiplication:s,chartType:n,axisValueFormatter:o,isTimeOnlyField:l,errorStrings:u}=a,h=Qo({isXAxis:e,chartType:n,valueFormat:t}),p=!1;!(i instanceof fe)&&ta(t)?Jm({axis:i,formatOptions:t,overridePercentMultiplication:s,valueAxisFormatter:o}):i instanceof fe&&xs(t)?Gv({axis:i,formatOptions:t,dateAxisFormatter:o,isTimeOnlyField:l}):i instanceof $e?Zo(t)||h?(Kv({axis:i,formatOptions:t,categoryAxisFormatter:o}),zt(i.uid,{numberFormatter:void 0})):ta(t)?(Jm({axis:i,formatOptions:t,overridePercentMultiplication:s,valueAxisFormatter:o}),zt(i.uid,{categoryFormatter:void 0})):p=!0:p=!0,p&&Id("mismatchAxisAndValueFormat",u),qv({axis:i,labelsTextSymbol:r,axisValueFormatter:o}),i.invalidateLabels()}function Qv(a){let i=a;return a>=1?i=10**(a.toFixed(0).length-1):a<1&&a>0&&(i=10**-Math.abs(Math.floor(Math.log10(a)))),i}function Jv(a){let{minimumFromConfig:i,maximumFromConfig:e,isLogarithmic:t}=a,r=t===!0&&i!==null&&i!==void 0&&i<=0,s=!Number.isFinite(i)||!Number.isFinite(e);return r||s}var eb="arcgis-charts-randomization-seed";_u(eb,_u.URL);var Bi={XAxisTitle:"XAxisTitle",YAxisTitle:"YAxisTitle",ChartTitle:"ChartTitle",ChartSubTitle:"ChartSubTitle",ChartFooter:"ChartFooter",GuideLabel:"GuideLabel",LegendTitle:"LegendTitle"},te={Ready:"ready",Hidden:"hidden",Shown:"shown",Hit:"hit",DoubleHit:"doublehit",Up:"up",SelectEnded:"selectended",Over:"over",Out:"out",SizeChanged:"sizechanged",VisibilityChanged:"visibilitychanged",PositionChanged:"positionchanged",Validated:"validated",DataItemsValidated:"dataitemsvalidated",Inited:"inited",ChildAdded:"childadded",DataRangeChanged:"datarangechanged",LayoutValidated:"layoutvalidated"};function tb(a){let{actionMode:i,cursorRange:e,isRotated:t}=a,r=Et.None;switch(e){case Jo.MultiAxes:i===wt.MultiSelectionWithCtrlKey||i===wt.MultiSelection?r=Et.SelectXY:i===wt.Zoom&&(r=Et.ZoomXY);break;case Jo.XAxis:i===wt.MultiSelectionWithCtrlKey||i===wt.MultiSelection?r=t===!0?Et.SelectY:Et.SelectX:i===wt.Zoom&&(r=t===!0?Et.ZoomY:Et.ZoomX);break;case Jo.YAxis:i===wt.MultiSelectionWithCtrlKey||i===wt.MultiSelection?r=t===!0?Et.SelectX:Et.SelectY:i===wt.Zoom&&(r=t===!0?Et.ZoomX:Et.ZoomY);break}return r}function rt(a,i){i===!1&&!a.isHiding?(a.visible=!1,a.hide()):a.isShowing||(a.visible=!0,a.show())}function iG(a,i){for(let e=0;e<i.length;e+=1){let t=i[e][0],r=i[e][1],s=a.length;t>=0&&t<s&&r>=0&&r<s&&a.swap(i[e][0],i[e][1])}}function yy(a,i){let e;if(a!==void 0&&"rgb"in a&&a.rgb!==void 0){let t=a.rgb;if(t!==void 0){let{r,g:s,b:n}=t;e=[r,s,n,255]}}return e}function Ao(a){let i=a??[0,0,0,255];return new de({a:i[3]/255,b:i[2],g:i[1],r:i[0]})}function kt(a){return a.bullets.values.find(i=>jv(i.uid,"isBulletMarker"))}function Jr(a){return a!=null&&!a.isDisposed()}function Cu(a){return(a.isShowing||a.visible)&&!a.isHidden&&!a.isHiding&&!a.disabled&&!a.__disabled}function gy(a,i){return a.pixelX<0||a.pixelX>i?.plotContainer?.measuredWidth||a.pixelY<0||a.pixelY>i?.plotContainer?.measuredHeight}function ib(a){let i;return a.baseSprite instanceof qe||a.baseSprite instanceof Tt?i=a.baseSprite:(a instanceof va||a instanceof pn)&&(i=a.axis.chart),i}function rb(a){return yy(a.background.fill)}function ab(a){let{fill:i,rotation:e,isLinePattern:t,chartBackgroundColor:r}=a,s;return t!==!1?(s=new bn,s.width=L.patternLineProperties.width??Number.NaN,s.height=L.patternLineProperties.height??Number.NaN,s.strokeWidth=L.patternLineProperties.strokeWidth??Number.NaN,s.stroke=i,s.rotation=e??Number.NaN):(s=new xn,s.rectWidth=L.patternRectProperties.rectWidth??Number.NaN,s.rectHeight=L.patternRectProperties.rectHeight??Number.NaN,s.width=L.patternRectProperties.width??Number.NaN,s.height=L.patternRectProperties.height??Number.NaN,s.fillOpacity=L.patternRectProperties.fillOpacity??Number.NaN,s.strokeWidth=L.patternRectProperties.strokeWidth??Number.NaN,s.fill=Ao(r),s.stroke=i,s.rotation=e??Number.NaN),s}function ey(a){let i=Number.NaN;if(typeof a=="number")i=a;else if(a.includes("%")){let e=Number.parseFloat(a.trim().replace("%","").trim());Number.isFinite(e)&&(i=k(e))}return i}function sb(a){let{fill:i,style:e,chartBackgroundColor:t}=a,r,s,n=!0;switch(e){case fr.Horizontal:{s=0;break}case fr.Vertical:{s=90;break}case fr.ForwardDiagonal:{s=45;break}case fr.BackwardDiagonal:{s=135;break}case fr.Cross:{s=0,n=!1;break}case fr.DiagonalCross:{s=135,n=!1;break}case fr.Solid:}return s!==void 0&&(r=ab({fill:i,rotation:s,isLinePattern:n,chartBackgroundColor:t})),r}function pr(a,i){let e;i!==void 0&&(e=Ao(i));let t=e??new de({r:0,g:0,b:0,a:0});if(a!=null){let[r,s,n,o]=a;t=new de({r,g:s,b:n,a:o/255})}return t}function vy(a,i=0){return(a??i)%360}function nb(a,i){return i!==!0||a?.includes("Dot")===!0?"round":"square"}function by(a,i){let e="none";switch(a??i){case Yt.Justify:case Yt.Center:e="center";break;case Yt.Left:e="left";break;case Yt.Right:e="right";break}return e}function dd(a,i){let e="middle";switch(a??i){case Yt.Right:e="left";break;case Yt.Left:e="right";break;case Yt.Center:case Yt.Justify:}return e}function ob(a,i){let e="none";switch(a??i){case Vi.Baseline:case Vi.Middle:e="middle";break;case Vi.Top:e="top";break;case Vi.Bottom:e="bottom";break}return e}function xy(a,i){let e=Vi.Middle;switch(a??i){case Vi.Top:e="bottom";break;case Vi.Bottom:e="top";break;case Vi.Baseline:case Vi.Middle:default:e="middle";break}return e}function lb(a,i){let e=a??cr.Solid,t=i??L.lineWidth,r={[cr.Solid]:"none",[cr.Dot]:[1,t],[cr.DashDotDot]:[4*t,t,1,t,1,t],[cr.Dash]:[4*t,3*t],[cr.DashDot]:[4*t,3*t,1,3*t],[cr.Null]:"none"};return(r[e]??r[cr.Null]).toString()}function _y(a,i){let e={stroke:pr(),strokeWidth:L.lineWidth,strokeDasharray:"",strokeLinecap:i!==!0?"round":"square",strokeOpacity:Hu};return a!=null&&(e.stroke=pr(a.color),e.strokeOpacity=1,a.width!==void 0&&(e.strokeWidth=a.width),a.style!==void 0&&a.style!==cr.Null&&(e.strokeDasharray=lb(a.style,e.strokeWidth),e.strokeLinecap=nb(a.style,i))),e}function $y(a,i){let e=a,[t,r,s,n]=a?.color??i??L.color,o=[t,r,s,n];return e==null?e={type:Gt.SLS,color:o}:e.color===void 0&&(e.color=o),_y(e,!1)}function ub(a,i){let{color:e,outline:t,style:r}=a,s=pr(e);return{pattern:sb({fill:s,style:r,chartBackgroundColor:i}),fill:s,outline:$y(t,e)}}function hb(a){let{color:i,outline:e,xoffset:t,yoffset:r,style:s,size:n,angle:o}=a,l=s!==void 0?qd(s,n):"",u=vy(o);return{path:l,fill:pr(i),outline:$y(e,i),xOffset:t??0,yOffset:r??0,angle:u}}function cd(a){let{symbol:i,defaultToColorFromRamp:e,colorRampIndex:t,isChartFillSymbol:r=!1,chartBackgroundColor:s}=a,n;if(e===!0){let o=r?Md:Hu;if(i.color=i.color??Xu({colorIndex:t,opacity:o}),hh(i)||ph(i)){let{outline:l}=i;l!==void 0&&(l.color=l?.color??Xu({colorIndex:t}),i.outline={...l})}}return jc(i)?n=_y(i,!0):ph(i)?(i.style??=L.lineSeries.marker.markerStyle,i.size??=L.lineSeries.marker.markerBigSize,n=hb(i)):hh(i)&&(n=ub(i,s)),n}function Tu(a,i,e){let t=dd(a.horizontalAlignment,e?.horizontalCenter),r=by(a.horizontalAlignment,e?.align),s=xy(a.verticalAlignment,e?.verticalCenter),n=ob(a.verticalAlignment,e?.valign);return{fill:pr(a.color,L.color),fontFamily:a.font?.family??"Arial, Helvetica, sans-serif",fontSize:a.font?.size??L.generalFontSize,fontWeight:a.font?.weight??"400",textDecoration:a.font?.decoration??"none",align:r,valign:n,verticalCenter:s,horizontalCenter:t,text:wn({textSymbol:a,format:"amChartsV4"}),angle:vy(a.angle,e?.rotation),xOffset:a.xoffset??e?.dx??0,yOffset:a.yoffset??e?.dy??0,backgroundFill:pr(a.backgroundColor),borderFill:pr(a.borderLineColor),borderWidth:a.borderLineSize??1,haloSize:a.haloSize??-1,haloColor:pr(a.haloColor),rtl:a.rightToLeft??i,wrap:e?.wrap??!1,maxWidth:e?.maxWidth??Number.NaN}}function Py(a,i,e){e!==void 0&&a.tooltip!==void 0&&(a.tooltip.getFillFromObject=!1,a.tooltip.background.fill=i),a.fill=e??i,a.fillOpacity=Z(a.fill.toString()).alpha===0?0:1}function _n(a,i){a.stroke=i.stroke,a.strokeOpacity=i.stroke.alpha===0?0:1,a.strokeDasharray=i.strokeDasharray,a.strokeLinecap=i.strokeLinecap,a.strokeWidth=i.strokeWidth}function Ou(a){let{element:i,markerSymbol:e,visible:t,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return e!==void 0?(n=cd({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&(i.path=n.path,i.rotation=n.angle,i.dx=n.xOffset,i.dy=n.yOffset,Py(i,n.fill),_n(i,n.outline)),rt(i,t),i.disabled=t===!1):i.disabled=!0,n}function $n(a){let{element:i,lineSymbol:e,visible:t,defaultToColorFromRamp:r,colorRampIndex:s}=a,n;return e!==void 0?(n=cd({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s}),n!==void 0&&_n(i,n),rt(i,t)):rt(i,!1),n}function ad(a){let{element:i,fillSymbol:e,visible:t,defaultToColorFromRamp:r,colorRampIndex:s,isChartFillSymbol:n}=a,o,l;if(e!==void 0){if(e.style===fr.Cross||e.style===fr.DiagonalCross){let u=ib(i);u!==void 0&&(l=rb(u))}o=cd({symbol:e,defaultToColorFromRamp:r,colorRampIndex:s,isChartFillSymbol:n,chartBackgroundColor:l}),o!==void 0&&(Py(i,o.fill,o.pattern),_n(i,o.outline)),i.disabled=t===!1}else i.disabled=!0;return o}function wu(a){let{element:i,seriesIndex:e,colorMatch:t,seriesSymbol:r,isChartFillSymbol:s,rendererSymbol:n,seriesConfig:o}=a,l,u;t===!0&&n&&(l=ec({rendererSymbol:n,seriesSymbol:r,colorIndex:e}));let h={element:i,defaultToColorFromRamp:!0,colorRampIndex:e,seriesConfig:o},p=l??{...r};switch(r.type){case Gt.SLS:u=$n({...h,lineSymbol:p});break;case Gt.SFS:u=ad({...h,fillSymbol:p,isChartFillSymbol:s});break;case Gt.SMS:u=Ou({...h,markerSymbol:p});break}return{symbolWithColorInfo:p,stylingInfo:u}}function ty(a,i){if(i!==void 0){let e=a.properties,{elementColor:t,elementOutlineColor:r,elementOutlineWidth:s,rotation:n,transformation:o}=i,{opacity:l,scale:u}=o??{};t!==void 0&&(e.fill=Ao(t),e.fillOpacity=Z(e.fill.toString()).alpha===0?0:1),r!==void 0&&(e.stroke=Ao(r)),s!==void 0&&(e.strokeWidth=s),n!==void 0&&(e.rotation=n),u!==void 0&&(e.scale=u),l!==void 0&&(e.fillOpacity=(e.fillOpacity??1)*l,e.strokeOpacity=(e.strokeOpacity??1)*l)}}function pb(a,i){let e=L.cursorCrosshair.style,t={type:Gt.SLS,style:i.style??e.style,color:i.color??e.color,width:i.width??e.width};$n({element:a.cursor.lineX,lineSymbol:t}),$n({element:a.cursor.lineY,lineSymbol:t})}function db(a){!(a instanceof hr)&&!(a instanceof Tt)&&(a.cursor=new hs)}function rG(a,i){if(!(a instanceof hr)&&!(a instanceof Tt)){let e=a,t=e.cursor??new hs;i?.style!==void 0&&pb(e,i.style);let r=L.cursorCrosshair;t.lineX.disabled=r.verticalLineVisible?i?.verticalLineVisible===!1:i?.verticalLineVisible!==!0,t.lineY.disabled=r.horizontalLineVisible?i?.horizontalLineVisible===!1:i?.horizontalLineVisible!==!0,e.cursor=t}}function aG(a){return!(a instanceof hr)&&a.cursor===void 0&&db(a),a.cursor}function sd(a,i){let e=a.renderer.labels.template;e.events.hasListenersByType(te.Hit)&&(e.cursorOverStyle=i),a.renderer.labels.each(t=>{t.cursorOverStyle=i})}function cb(a){let{chart:i,chartType:e,showMean:t,enabled:r}=a,s=r?Re.pointer:Re.default;switch(e){case W.ComboLineAndBarSeries:case W.BarSeries:case W.PieSeries:i.series.each(n=>{(n instanceof it||n instanceof ei)&&(n.cursorOverStyle=s)});break;case W.BoxPlotSeries:i.series.each(n=>{let o=s;if(n instanceof et){let l=kt(n);l!==void 0&&(t&&gi(n.uid,"isBoxPlotOutliersSeries")&&(o=Re.default),l.cursorOverStyle=o,l.clones.each(u=>{u.cursorOverStyle=o}))}else n.cursorOverStyle=t?Re.default:s});break;case W.LineSeries:i.series.each(n=>{if(n instanceof et){let o=kt(n);o!==void 0&&(o.cursorOverStyle=s,o.clones.each(l=>{l.cursorOverStyle=s}))}});break}}function sG(a){let{chart:i,actionMode:e,cursorRange:t}=a,r=G(i.uid,"isRotated"),s=G(i.uid,"config"),n=jr(s),o=Ot(s?.series),l=o===W.LineSeries&&ta(s?.axes?.[0]?.valueFormat),u=o===W.LineSeries&&Zo(s?.axes?.[0]?.valueFormat),h=o===W.LineSeries&&xs(s?.axes?.[0]?.valueFormat),p,d=!1,c=e??G(i.uid,"actionMode")??L.actionMode;if(G(i.uid,"filterBySelection")===!0)p=Et.None,d=!1;else if(t!==void 0)p=tb({actionMode:c,cursorRange:t,isRotated:r});else switch(c){case wt.Zoom:l||h?p=Et.ZoomXY:p=r===!0?Et.ZoomY:Et.ZoomX,d=!1;break;case wt.MultiSelection:case wt.MultiSelectionWithCtrlKey:u?p=r===!0?Et.SelectY:Et.SelectX:p=Et.SelectXY,d=!0;break;case wt.MonoSelection:p=Et.None,d=!0;break;case wt.None:p=Et.None,d=!1;break}i instanceof qe&&i.cursor!==void 0&&p!==void 0&&(i.cursor.behavior=p),cb({chart:i,chartType:o,enabled:d,showMean:n})}function Sy(a){let i="";return a instanceof Vt?i=a.dataFields?.categoryX??a.dataFields?.dateX??a.dataFields?.valueX??"":a instanceof ei&&(i=a.dataFields?.category??""),i}function Cy(a){let i="";return a instanceof Vt?i=a.dataFields?.categoryY??a.dataFields?.dateY??a.dataFields?.valueY??"":a instanceof ei&&(i=a.dataFields?.value??""),i}function fb(a){return G(a.chart.uid,"isRotated")===!0?Cy(a):Sy(a)}function ms(a){return G(a.chart.uid,"isRotated")===!0?Sy(a):Cy(a)}function ku(a,i=0){let e=G(a.chart.uid,"config");return Ot(e?.series,i)}var Ta={Outlier:"outlier",Box:"box",OutlierToOutlier:"outlier-outlier",OutlierToBox:"outlier-box",BoxToOutlier:"box-outlier",BoxToBox:"box-box"};function mb(a,i){let e=a[Se.boxPlot.boxPlotOutlierId]===!0?Ta.Outlier:Ta.Box,t=typeof i=="number"?Ta.Outlier:Ta.Box;return`${e}-${t}`}function yb(a){let{oneSelectedItem:i,dataContext:e,selectedOutlierKey:t}=a;return i[t]===e[t]}function gb(a){let{elementMin:i,elementMax:e,selectedOutlierValue:t}=a,r;return typeof i=="number"&&typeof e=="number"&&typeof t=="number"&&(r=t>=i&&t<=e),r}function vb(a){let{selectedMin:i,selectedMax:e,elementOutlierValue:t,oneSelectedItem:r,iqrField:s}=a,n;typeof i=="number"&&typeof e=="number"&&typeof t=="number"&&(n=t>=i&&t<=e);let o=s in r;return n!==!1&&o}function bb(a){let{selectedMin:i,selectedMax:e,elementMin:t,oneSelectedItem:r,elementMax:s,iqrField:n}=a,o;typeof t=="number"&&typeof s=="number"&&typeof i=="number"&&typeof e=="number"&&(o=!(t>=e||s<=i));let l=n in r;return o!==!1&&l}function xb(a){let{oneSelectedItem:i,dataContext:e,xAxisField:t}=a,r=e[Se.originalCategoryValue]??e[Se.boxPlot.boxPlotCategory]??e[t],s=i[Se.originalCategoryValue]??i[Se.boxPlot.boxPlotCategory]??i[t];return r===s}function _b(a){let{chartSubType:i,yAxisField:e,splitBy:t,showOutliers:r}=a,s=i===pe.BoxPlotMultiFieldsAndCategory?e:void 0,n={y:s,splitBy:t},o=yt({...n,key:Ge.Outlier}),l=yt({...n,key:Ge.Max,showOutliers:r}),u=yt({...n,key:Ge.Min,showOutliers:r}),h=yt({...n,key:Ge.Max,showOutliers:!1}),p=yt({...n,key:Ge.Min,showOutliers:!1}),d=yt({...n,key:Ge.Max,showOutliers:!0}),c=yt({...n,key:Ge.Min,showOutliers:!0}),f=yt({splitBy:t,y:s,key:Ge.IQR});return{selectedOutlierKey:o,maxField:l,minField:u,selectedMaxFieldWoOutliers:h,selectedMinFieldWoOutliers:p,selectedMaxFieldWithOutliers:d,selectedMinFieldWithOutliers:c,iqrField:f}}function $b(a){let{elementDataContext:i,layerOidField:e,xAxisField:t,splitBy:r,yAxisField:s,chartSubType:n,showOutliers:o}=a,l=i,u;if(l?.[Se.boxPlot.boxPlotMeanLineMarkerId]===!0){let h=yt({splitBy:r,key:Ge.Average});u=p=>{let d=!t||!(t in p&&t in l)||p[t]===l[t],c=h in p&&h in l;return d&&c}}else t!==void 0&&s!==void 0&&(u=h=>{let p;if(e!==void 0&&e in h&&e in l)p=h[e]===l[e];else{let{selectedOutlierKey:d,maxField:c,minField:f,selectedMaxFieldWoOutliers:y,selectedMinFieldWoOutliers:g,selectedMaxFieldWithOutliers:v,selectedMinFieldWithOutliers:x,iqrField:P}=_b({chartSubType:n,yAxisField:s,splitBy:r,showOutliers:o}),T=l[d],C=h[d],O=l[f],w=l[c],D=h[g]??h[x],A=h[y]??h[v],H=xb({oneSelectedItem:h,dataContext:l,xAxisField:t});if(H)switch(mb(h,T)){case Ta.OutlierToOutlier:H=yb({oneSelectedItem:h,dataContext:l,selectedOutlierKey:d});break;case Ta.OutlierToBox:H=gb({elementMin:O,elementMax:w,selectedOutlierValue:C});break;case Ta.BoxToOutlier:H=vb({selectedMin:D,selectedMax:A,elementOutlierValue:T,oneSelectedItem:h,iqrField:P});break;case Ta.BoxToBox:H=bb({selectedMin:D,selectedMax:A,elementMin:O,oneSelectedItem:h,elementMax:w,iqrField:P});break}p=H===!0}return p});return u}function Ty(a){let{layerOidField:i,sliceDataContext:e,selectionDataContext:t,xAxisField:r}=a,s=!1;if(i!==void 0&&i in e&&i in t)s=t[i]?.toString()===e[i]?.toString();else{let n=e[Se.originalCategoryValue];n===void 0&&(n=e[r]),n===void 0&&(n=e[Va]);let o=t[Se.originalCategoryValue];o===void 0&&(o=t[r]),o===void 0&&(o=t[Va]),s=n!==void 0&&o!==void 0&&n===o}return s}function $u(a){let{dataContext:i,specificField:e,xOrY:t}=a,r=i[t==="x"?Se.originalCategoryValue:Se.originalYCategoryValue];return r===void 0&&e&&(r=i[e]),r===void 0&&(r=i[t==="x"?zu.xField:zu.yField]),r}function Oy(a){let{options:i,elementDataContext:e,selectionDataItems:t,layerOidField:r,xAxisField:s,yAxisField:n,chartType:o,splitBy:l,chartSubType:u}=a,h=!1,p;if(e!==void 0&&t!==void 0)switch(o){case W.HeatSeries:let d=e,c=$u({dataContext:d,specificField:s,xOrY:"x"}),f=$u({dataContext:d,specificField:n,xOrY:"y"});p=y=>{let g=$u({dataContext:y,specificField:s,xOrY:"x"}),v=$u({dataContext:y,specificField:n,xOrY:"y"});return c===g&&f===v};break;case W.RadarSeries:case W.BarSeries:case W.LineSeries:case W.ComboLineAndBarSeries:if(s!==void 0&&n!==void 0){let y=e;p=g=>{let v,x=r;if(u===pe.BarAndLineSplitByNoAggregation){let P=ra({where:l,keepSurroundingQuotes:!1,escape:!1});x=`${r}_${P}`}if(r!==void 0&&r in g&&r in y)v=g[r]===y[r];else if(x!==void 0&&x in g&&x in y)v=g[x]===y[x];else if(Se.dateBinningRange in y&&typeof g[s]=="number"){let P=g[s],T=g[Se.dateBinningRange],C=Array.isArray(T)&&Number.isFinite(T[0])&&Number.isFinite(T[1]),[O,w]=C?T:[0,0],[D,A]=y[Se.dateBinningRange],H=y[Se.lastTemporalBin]===!0?P<=A:P<A;v=(C?O<A&&D<w:P>=D&&H)&&n in g&&Number.isFinite(g[n])}else{let P=C=>{let O=C[Se.originalCategoryValue];return O===void 0&&(O=C[s]),O=O===null?Se.nullValue:O,O},T=P(y);v=P(g)===T&&n in g}return v}}break;case W.BoxPlotSeries:p=$b(a);break;case W.ScatterSeries:if(s!==void 0&&n!==void 0){let y=e;if(!tc({dataContext:y,chartLimits:i?.chartLimits}))p=g=>{let v;return r!==void 0&&r in y&&r in g?v=g[r]===y[r]:v=g[s]===y[s]&&g[n]===y[n],v};else{let{dataContextXMinField:g,dataContextXMaxField:v,dataContextYMinField:x,dataContextYMaxField:P}=Se.scatterplotAggregationFields,{[g]:T,[v]:C}=y,O=s!==n?y[x]:T,w=s!==n?y[P]:C,D=H=>{let E=H[s]??Number.NaN,j=T??Number.NaN,ce=C??Number.NaN;return T===C?E===j:(E??Number.NaN)>=j&&(E??Number.NaN)<ce},A=H=>{let E=H[n]??Number.NaN,j=O??Number.NaN,ce=w??Number.NaN;return O===w?E===j:E>=j&&E<ce};p=H=>D(H)&&A(H)}}break;case W.HistogramSeries:p=y=>{let g=!1,{minValue:v,maxValue:x}=e,{isLastBin:P}=e;if(s!==void 0&&s in y){let T=y[s];g=typeof T=="number"&&T>=v&&(P&&T<=x||!P&&T<x)}else if("minValue"in y&&"maxValue"in y){let{minValue:T,maxValue:C}=y;g=!(v>=C||x<=T)}return g};break;case W.PieSeries:s!==void 0&&(p=y=>{let g=e,v=Ts(g),x=[g];return v&&x.push(...pd({groupOfSlicesDataContext:g})??[]),x.some(P=>Ty({sliceDataContext:P,selectionDataContext:y,layerOidField:r,xAxisField:s}))});break}return p!==void 0&&(h=t.some(p)),h}function Fo(a){let{isFeatureCollectionLayer:i,dataContext:e,yAxisField:t,yList:r,xAxisField:s,splitBy:n,chartType:o,chartSubType:l,showOutliers:u}=a,h={...e};if(e!==void 0){if(o===W.RadarSeries||o===W.BarSeries||o===W.LineSeries||o===W.ComboLineAndBarSeries||o===W.PieSeries){o!==W.PieSeries&&(i||l!==pe.BarAndLineNoAggregation&&l!==pe.BarAndLineSplitByNoAggregation)&&r.forEach(d=>{d!==t&&delete h[d]});let p=ia({value:e[s],dataContext:e,keepNullValues:!0});h[s]=p,!yr(n)&&!oh(n)&&(h[Ia(n)]=ra({where:n,escape:!1}))}else if(o===W.BoxPlotSeries){h={[s]:e[s]},[_s.uniqueIdsName,Se.boxPlot.boxPlotMeanLineMarkerId,Se.boxPlot.boxPlotOutlierId,Se.originalCategoryValue,Se.originalYCategoryValue].forEach(d=>{e[d]&&(h[d]=e[d])});let p=l===pe.BoxPlotMultiFieldsAndCategory?t:void 0;Object.values(Ge).forEach(d=>{let c=yt({key:d,y:p,splitBy:n,showOutliers:u});e[c]!==void 0&&(h[c]=e[c])})}}return h}function Pb(a){let{data:i,colorMatch:e,chartSubType:t,rendererType:r}=a;return i!==void 0&&e&&r!==void 0&&(t===pe.BoxPlotMultiFields&&(r===qo.UniqueValue||r===qo.PieChart)||t===pe.BoxPlotMonoFieldAndCategory&&r===qo.UniqueValue)&&i.some(s=>Object.keys(s).some(n=>n.includes(Se.rendererSymbolField)))}function Sb(a){return!!/^data:[a-z]+\/[a-z+.-]+;base64/u.test(a)}function Cb(a,i=512){if(!Sb(a))throw new Error("Cannot convert a string that is not a data uri to a blob");let e=a.split(",")[0].split(":")[1].split(";")[0],t=atob(a.split(",")[1]),r=[];for(let s=0;s<t.length;s+=i){let n=t.slice(s,s+i),o=new Array(n.length);for(let u=0;u<n.length;u++)o[u]=n.charCodeAt(u);let l=new Uint8Array(o);r.push(l)}return new Blob(r,{type:e})}function Vo(a){let{value:i,valueFormat:e,iLocale:t,formatLocale:r}=a,s=i?.toString(),n=Oa({type:e.type,iLocale:t,formatLocale:r});return typeof i=="number"&&e.type===W.NumberAxisFormat?s=n.format(i,On(e)):(typeof i=="number"||i instanceof Date)&&e.type===W.DateAxisFormat&&(s=n.format(i,On(e))),s}function ds(a){let{chart:i,config:e}=a,t=e;return e===void 0&&i!==void 0&&(t=G(i.uid,"config")),Ju(t)}function nG(a){a instanceof Ur&&a.series.each(i=>{Zi(i.uid),i instanceof et&&Zi(kt(i)?.uid),i.bullets.each(e=>{Zi(e.uid)}),i instanceof it&&i.columns.template.children.each(e=>{Zi(e.uid)})}),a instanceof qe&&[a.xAxes.getIndex(0),a.xAxes.getIndex(1),a.yAxes.getIndex(0),a.yAxes.getIndex(1)].forEach(i=>{i!==void 0&&(Zi(i.uid??""),i.axisRanges.each(e=>{Zi(e.label?.uid)}))}),a instanceof hr&&a.radarContainer.children.each(i=>{Zi(i.uid)}),a instanceof Tt&&a.series.getIndex(0)?.slices.each(i=>{Zi(i.uid)}),"cursor"in a&&a.cursor instanceof vn&&Zi(a.cursor?.uid),"legend"in a&&a.legend!==void 0&&(Zi(a.legend.uid),Zi(a.legend.valueLabels?.template?.uid)),Zi(a.uid)}function oG(a){return typeof a=="number"?a:a.value}async function lG(a){let{chart:i,exportOptions:e}=a,{format:t,quality:r=1,...s}=e,n=r<0||r>1?1:r,o=await i.exporting.getImage(t,{quality:n,...s}),l=Cb(o),u=t==="jpg"?"image/jpeg":"image/png";return new File([l],`chart.${t}`,{type:u})}function fd(a,i){i!==void 0&&(i.marginBottom!==void 0&&(a.marginBottom=i.marginBottom),i.marginTop!==void 0&&(a.marginTop=i.marginTop),i.marginRight!==void 0&&(a.marginRight=i.marginRight),i.marginLeft!==void 0&&(a.marginLeft=i.marginLeft),i.verticalCenter!==void 0&&(a.verticalCenter=xy(i.verticalCenter)),i.horizontalCenter!==void 0&&(a.horizontalCenter=dd(i.horizontalCenter)),i.strokeWidth!==void 0&&(a.strokeWidth=i.strokeWidth),i.wrap!==void 0&&(a.wrap=i.wrap),i.truncate!==void 0&&(a.truncate=i.truncate),i.maxWidth!==void 0&&(a.maxWidth=i.maxWidth),i.applyOnClones!==void 0&&(a.applyOnClones=i.applyOnClones,a.background.applyOnClones=i.applyOnClones))}function Pn(a,i){let e=i?.createChild(Je)??new Je;return fd(e,a),e}function Tb(a){let i=a.push(new ln);i.dx=1,i.dy=1,i.opacity=1}function Ob(a,i,e){if(e.alpha>0&&i>=0){a.length===0&&Tb(a);let t=a.getIndex(0);t.blur=i,t.color=e}else a.clear()}function wb(a,i){let e=li(a.uid,"isGuide"),t=i.visible===!1;return!t&&(e===!0||!(a instanceof wr))&&i.content.text===""&&(t=!0),t}function iy(a){let{label:i,offset:e,offsetProperty:t}=a,r=99;if(i.adapter.remove(t,r),typeof e=="string"&&!Number.isFinite(Number(e))){let s=Qu(e);s!==void 0&&(s/=100,i.adapter.add(t,()=>(i.parent?.[t==="dx"?"measuredWidth":"measuredHeight"]??0)*s,r))}else i[t]=e}function ys(a){let{label:i,labelConfig:e,defaults:t,skipSettingText:r}=a;if(e!==void 0){let s=Tu(e.content,i.rtl,t);i.fill=s.fill,i.fontFamily=s.fontFamily,i.fontWeight=s.fontWeight,i.fontSize=s.fontSize,i.textDecoration=s.textDecoration,i.align=s.align,i.valign=s.valign,i.verticalCenter=s.verticalCenter,i.horizontalCenter=s.horizontalCenter,i.background.fill=s.backgroundFill,i.background.stroke=s.borderFill,i.background.strokeWidth=s.borderWidth,i.rotation=s.angle,iy({label:i,offset:s.xOffset,offsetProperty:"dx"}),iy({label:i,offset:s.yOffset,offsetProperty:"dy"}),i.rtl=s.rtl,i.wrap=s.wrap,i instanceof wr||(i.maxWidth=s.maxWidth),r||(i.text=s.text),Ob(i.filters,s.haloSize,s.haloColor);let n=wb(i,e);i.disabled=n,rt(i,e.visible!==!1&&!n)}else i.disabled=!0}function wy(a,i){i!==void 0&&(a===W.BarSeries||a===W.LineSeries)&&i.adapter.add("dy",(e,t)=>{let r=t.dataItem,{chart:s}=r?.component??{};return s instanceof qe&&(t.visible=!gy(t,s)),e??0})}function Dy(a,i){i!==void 0&&(a===W.BarSeries&&i.adapter.add("dx",(e,t)=>{let r=e??0,s=t.dataItem,{chart:n}=s?.component??{};return(n!==void 0?G(n.uid,"isRotated"):!1)===!0&&(s.valueX??s.valueY)<0&&(r-=t.measuredWidth+L.dataLabelNegative.paddingRight),r}),(a===W.BarSeries||a===W.LineSeries)&&i.adapter.add("dy",(e,t)=>{let r=e??0,s=t.dataItem,{chart:n}=s?.component??{};return(n!==void 0?G(n.uid,"isRotated"):!1)!==!0&&(s.valueX??s.valueY)<0&&(r+=t.measuredHeight+L.dataLabelNegative.paddingTop),r}))}function nd(a){a.bulletsContainer.invalidateLabels(),a instanceof it&&a.columns?.template.invalidateLabels()}function Db(a){let{dataValue:i,series:e,seriesType:t,stackedType:r,axisMin:s}=a,n=i===void 0;return i!==void 0&&(s!==void 0&&i<s?n=!0:e instanceof it&&(t===W.BarSeries||t===W.ComboLineAndBarSeries)&&(n=i===0&&r!==void 0&&r!==ui.Side)),n}function od(a,i){let e,t=r=>li(r.uid,"isDataLabel")??!1;return i==="bullets"?e=a.bullets.values.find(t):a instanceof it&&(e=a.columns.template.children.values.find(t)),e}function ld(a,i){a.adapter.add("htmlOutput",(e,t)=>{let r=e,{dataItem:s}=t;if(Cu(a)&&(i instanceof it&&s instanceof Ht||i instanceof et&&s instanceof Ni)){let n=gi(i.uid,i instanceof it?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(n!==void 0){let o=G(i.chart.uid,"isRotated"),l=gi(i.uid,"stackedType"),u=o===!0?s.valueX:s.valueY,h=o===!0?s.values?.valueX?.totalPercent:s.values?.valueY?.totalPercent,p=o===!0?(s.component?.xAxis).min:(s.component?.yAxis).min;r=Db({dataValue:u,series:i,seriesType:i instanceof it?W.BarSeries:W.LineSeries,stackedType:l,axisMin:p})?"":n(u,h)}}return gr(r)},0)}function Ay(a){let{numberFormatter:i,dataLabelsConfigContent:e,stackedType:t}=a;return(r,s)=>{let n=t===ui.Stacked100&&s!==void 0?s:r;return i.numberFormat.style==="percent"&&(n/=100),wn({textSymbol:{...e,text:i.format(n)},format:"html"})}}function Fy(a){a.tabindex=-1}function Vy(a){let{series:i,seriesType:e,dataLabel:t,labelDefaults:r,dataLabelsConfig:s,yAxisValueFormat:n,stackedType:o,isRotated:l,defaultDataLabelFormatter:u,customDataLabelFormatter:h}=a;if(t!==void 0){let p=h,d=s?.content??{type:Gt.TS};if(h===void 0&&u!==void 0&&n?.type===W.NumberAxisFormat){let f=G(i.chart.uid,"formatLocale"),y=Oa({type:n.type,iLocale:i.chart.language.locale,formatLocale:f});y.numberFormat=n.intlOptions,p=u({numberFormatter:y,dataLabelsConfigContent:d,stackedType:o})}let c;switch(e){case W.BarSeries:c="barSeriesDataLabelFormatter";break;case W.LineSeries:c="lineSeriesDataLabelFormatter";break}c!==void 0&&wa(i.uid,{[c]:p}),s!==void 0&&(s.content.text=l===!0?"{valueX}":"{valueY}",s.visible=s.visible!==!1),ys({label:t,labelConfig:s,defaults:r??L.dataLabel}),nd(i)}}function ky(a,i){let e=i;e===void 0&&(e=G(a.uid,"config"));let t=G(a.uid,"colorMatchApplied")??!1;return(e?.colorMatch??!1)&&t}function Ab(a,i){let e;return a instanceof fe?e=i===!0?"dateY":"dateX":a instanceof $e?e=i===!0?"categoryY":"categoryX":e=i===!0?"valueY":"valueX",e}function Io(a,i){a.name=i}function md(a){let{chart:i,lineSeries:e,applyPropertiesToClones:t}=a,r=e.bullets.push(new U);return Nv(r.uid,{isBulletMarker:!0}),t!==!1&&(r.applyOnClones=!0),e.bulletsContainer.parent=i.seriesContainer,r}function Fb(a){let{series:i,seriesConfig:e,rotationChanged:t,stackedType:r,isRotated:s}=a;switch(r){case ui.Stacked:{i.stacked=!0,i instanceof et&&(i.stackToNegative=e.stackNegativeValuesToBaseline??L.lineSeries.stackNegativeValuesToBaseline),t===s?i.dataFields.valueYShow=void 0:i.dataFields.valueXShow=void 0,i.updateStacking();break}case ui.Stacked100:{i.stacked=!0,s?i.dataFields.valueXShow="totalPercent":i.dataFields.valueYShow="totalPercent",i.updateStacking();break}case ui.Side:default:{i.stacked=!1,t===s?i.dataFields.valueYShow=void 0:i.dataFields.valueXShow=void 0;break}}}function Vb(a){return()=>{let{chart:i,marker:e}=a;e.clones.each(t=>{rt(t,!gy(t,i))})}}function kb(a){let{chart:i,series:e,seriesType:t,marker:r,numberOfChartSeries:s,ignoreSmoothRenderingLimit:n}=a,o=Vb({marker:r,chart:i}),l=s??1,u=i.data.length*l+l;n!==!0&&u>L.elementLimitForSmoothRendering&&(o=zi(o,L.debounceTime)),i.xAxes.getIndex(0)?.events.on(te.Validated,o),i.yAxes.getIndex(0)?.events.on(te.Validated,o),t===W.LineSeries&&(i.xAxes.getIndex(0)?.events.on(te.Validated,()=>{nd(e)}),i.yAxes.getIndex(0)?.events.on(te.Validated,()=>{nd(e)}))}function Ly(a,i){a.series.each(e=>{let t=gi(e.uid,i);t!==void 0&&!t.isDisposed()&&t.dispose()})}function Lb(a){let i;return a!==void 0&&a.series.length>0&&(i=a.series.values.map(e=>e.visible?e.id:"").filter(e=>e!=="")),i}function ed(a){let{dataItem:i,y:e,splitBy:t,showOutliers:r}=a,s=yt({key:Ge.Min,y:e,splitBy:t,showOutliers:r}),n=yt({key:Ge.Max,y:e,splitBy:t,showOutliers:r}),o=yt({key:Ge.FirstQuartile,y:e,splitBy:t,showOutliers:r}),l=yt({key:Ge.ThirdQuartile,y:e,splitBy:t,showOutliers:r});return Number.isFinite(i[s])&&Number.isFinite(i[n])&&Number.isFinite(i[o])&&Number.isFinite(i[l])}function Ib(a,i){let e=!1;if(i!==void 0){let t=yt({key:Ge.Average,splitBy:i});e=Number.isFinite(a[t])}return e}function Rb(a,i){let e=0;if(a!==void 0&&i!==void 0){let t=Ds(i.series),r=gt(i.series),s=ka(i);a.data.forEach(n=>{switch(r){case pe.BoxPlotMonoField:case pe.BoxPlotMultiFields:case pe.BoxPlotMonoFieldAndCategory:ed({dataItem:n,showOutliers:s})&&(e+=1);break;case pe.BoxPlotMultiFieldsAndCategory:t.forEach(o=>{ed({dataItem:n,y:o,showOutliers:s})&&(e+=1)});break;case pe.BoxPlotMonoFieldAndSplitBy:case pe.BoxPlotMultiFieldsAndSplitBy:case pe.BoxPlotMonoFieldAndCategoryAndSplitBy:i.series.forEach(o=>{ed({dataItem:n,splitBy:o.query?.where,showOutliers:s})&&(e+=1)});break}})}return e}function ry(){return a=>{let i=G(a.chart.uid,"config"),e=!1;if(i!==void 0&&a instanceof Vt){let t=Rb(a.chart,i),r=0,s=0,n=0,o=0,l=0;a.chart.series.values.forEach(p=>{if(p instanceof $t)r+=p.columns.length;else if(p instanceof et&&!(p instanceof yi)){let d=kt(p);if(d!==void 0&&!d.disabled){let c=d.clones.values.filter(f=>!(f.dataItem instanceof Or))?.length??0;if(gi(p.uid,"isBoxPlotMeanLineSeries")===!0){o+=c;let f=p.data.filter(y=>Number.isFinite(y[p.dataFields.valueX??p.dataFields.valueY??""])).length;l+=f}else{let f=p.data.filter(y=>Number.isFinite(y[p.dataFields.valueX??p.dataFields.valueY??""])).length;n+=f,s+=c}}}});let u=n===0||s>=n,h=l===0||o>=l;e=r>=t&&u&&h&&a.chart.appeared&&a.isReady()&&a.chart.isReady()}return e}}function Mb(a,i){let e;switch(a){case W.BarSeries:e=(t,r)=>{if(t instanceof it){let s=ds({chart:t.chart}),n=0;if(r.type===W.BarSeries){let o=(s?t.dataFields.valueX:t.dataFields.valueY)??r.y;n=t.chart?.data?.filter(l=>Number.isFinite(l[o])).length}return t.chart.isReady()&&t.columns.length===n}return!1};break;case W.LineSeries:i===!0?e=ry():e=(t,r)=>{if(t instanceof et){let s=ds({chart:t.chart}),n=kt(t),o=0;if(r.type===W.LineSeries){let{y:l}=r,u=(s?t.dataFields.valueX:t.dataFields.valueY)??[l].flat()[0];o=t.chart?.data?.filter(h=>Number.isFinite(h[u])).length}return t.chart.appeared&&t.chart.isReady()&&n!==void 0&&n.clones.values.length>=o}return!1};break;case W.PieSeries:e=t=>t instanceof ei&&t.slices.length>0;break;case W.BoxPlotSeries:e=ry();break}return e}function Iy(a){let{series:i,callbackInfo:e,seriesConfig:t,onReadyEvent:r}=a,{type:s}=e,n=Ot([t]),o=gi(i.uid,"isBoxPlotMeanLineSeries"),l=s==="style"?"updateStyleCallbackDisposer":"updateSelectionCallbackDisposer",u=async d=>{let{type:c,callbackProps:f}=d;c==="selection"?d0(f):d.styleCallback!==void 0&&(rt(i,t.visible),await d.styleCallback(f))};r===!0&&i.events.once(te.Ready,async()=>await u(e));let h=gi(i.uid,l);h!==void 0&&h.dispose();let p=Mb(n,o);h=(n===W.PieSeries?i.chart:i).events.on(te.Validated,async()=>{p!==void 0&&p(i,t)&&(h!==void 0&&h.dispose(),await u(e))}),i.dispatchImmediately(te.Validated),wa(i.uid,{[l]:h})}function Ry(a){let{series:i,styleCallback:e,callbackProps:t,onReadyEvent:r,seriesConfig:s}=a;Iy({callbackInfo:{styleCallback:e,callbackProps:t,type:"style"},series:i,seriesConfig:s,onReadyEvent:r})}function jb(a){let{series:i,callbackProps:e,seriesConfig:t,onReadyEvent:r}=a;Iy({callbackInfo:{callbackProps:e,type:"selection"},series:i,seriesConfig:t,onReadyEvent:r})}function Ro(a){let{defaultChartItemRole:i}=L.aria;a instanceof $t||a instanceof it?(a.columns.template.properties.role=i,a.columns.template.focusable=!0,a.columns.template.hoverOnFocus=!0,a.itemReaderText=qu()):a instanceof yi?a.segments.template.properties.role=i:a instanceof et?a.bullets.values.forEach(e=>{e.focusable=!0,e.properties.role=i,e.readerTitle=qu(),e.hoverOnFocus=!0}):a instanceof ei&&(a.slices.template.properties.role=i,a.slices.template.hoverOnFocus=!0,a.itemReaderText="{category} {value.formatNumber('#.#')} {value.percent.formatNumber('#.#')}%")}function Nb(a){let i=G(a.uid,"config");a.series.each(e=>{let t=i?.series?.find(r=>r.id===e.id);t!==void 0&&t.visible!==!1&&!e.visible&&rt(e)})}function Lu(a,i){let e=Ot(i?.series);return i?.series.find(t=>{let r=!1;return e!==W.BoxPlotSeries||a instanceof $t?r=a.id===t.id:a instanceof yi?r=a.id.replace(`_${Wi.Top}`,"")===t.id||a.id.replace(`_${Wi.Median}`,"")===t.id||a.id.replace(`_${Wi.Bottom}`,"")===t.id:a instanceof et&&(r=a.id.replace(`_${Wi.Outliers}`,"")===t.id),r})}var Rr={CustomActive:"custom-active",CustomInactive:"custom-inactive",Default:"default",Active:"active"};function Eb(a,i){let e=!1;if(i!==void 0&&Cu(a)){let t=ve.spriteRectToSvg(a.bbox,a),r=i.x,s=i.y,n=i.x+i.width,o=i.y+i.height,l=t.x,u=t.y,h=t.x+t.width,p=t.y+t.height;e=!(l>n||h<r||u>o||p<s)}return e}function Mo(a){let{element:i,customSelectionTheme:e,useNativeState:t}=a,r=t===!0?Rr.Active:Rr.CustomActive,s=i.states.getKey(r)??i.states.create(r),n=i.states.getKey(Rr.CustomInactive)??i.states.create(Rr.CustomInactive),{selectedElementsTheme:o,nonSelectedElementsTheme:l}=e??L.selectionTheme??{};ty(s,o),ty(n,l)}function Mr(a){let{element:i,selected:e,multiSelect:t,isDateOrCategoryAxis:r,useNativeState:s,backToDefaultState:n}=a;if(i!==void 0){let o=i.isActive;t!==!0?r===!0?o=i.isActive?!1:i.isActive!==e:o=e:o=i.isActive!==e,o!==i.isActive&&(i.isActive=o);let l=s===!0?Rr.Active:Rr.CustomActive,u=n===!0?Rr.Default:Rr.CustomInactive;i.setState(i.isActive?l:u,0),i.isActive&&(i.toFront(),i.dataItem?.component instanceof lr&&i.dataItem.component.toFront())}return i?.isActive??!1}function yd(a,i){let e=!1;if(i instanceof qe||i instanceof Tt){let t=G(i.uid,"actionMode");t!==void 0&&(e=t===wt.MultiSelection||t===wt.MultiSelectionWithCtrlKey&&(a?.event?.ctrlKey||a?.event?.metaKey))}return e}function Bb(a){let i=a instanceof qe&&a.zoomOutButton.isHover,e=a.legend.isHover,t=!1,r=!1,s=!1,n=!1;if(a instanceof qe){t=a.xAxes.values.some(l=>l.renderer.labels.template.events.has(te.Hit)&&l.renderer.isHover),r=a.yAxes.values.some(l=>l.renderer.labels.template.events.has(te.Hit)&&l.renderer.isHover),s=t||r;let o=G(a.uid,"config");jr(o)&&(n=a.series.values.find(l=>l instanceof $t)?.isHover??!1)}return!i&&!e&&!s&&!n}function gd(a,i){return a.values.filter(e=>{let t=!1,r=!e.isActive;if(!(e.dataItem instanceof Or)){e.isActive=!e.isActive;let s=G(i.uid,"filterBySelection")!==!0&&r;Mr({element:e,selected:s}),t=r}return t})}function ay(a,i){let e=[],{columns:t,chart:r}=a,s=G(r.uid,"config");if(s&&t!==void 0&&a.visible){let n=s?.series[0].x,o=a?.dataFields?.customValue??"",l=ku(a,i),u=Lu(a,s),h=l===W.BoxPlotSeries?u?.y:ms(a),p={element:{},yAxisField:h,xAxisField:n,splitBy:o,seriesIndex:i,chartConfig:s};e=gd(t,r).map(d=>({...p,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:d.dataItem?.index}))}return e}function sy(a,i){let e=[];if(a.visible){let t=kt(a)?.clones;if(t!==void 0){let{chart:r}=a,s=G(r.uid,"config");if(s){let n=s.series[0].x??"",o=ms(a),l=a?.dataFields?.customValue??"",u={element:{},xAxisField:n,yAxisField:o,splitBy:l,seriesIndex:i,chartConfig:s};e=gd(t,r).map(h=>({...u,element:h,elementDataContext:h.dataItem?.dataContext,elementIndex:h.dataItem?.index}))}}}return e}function Wb(a){let i=[];if(a.visible){let{chart:e}=a,t=G(e.uid,"config");if(t){let r=fb(a),s=ms(a),n={element:{},xAxisField:r,yAxisField:s,seriesIndex:0,chartConfig:t},o;i=gd(a.slices,e).map(l=>{let u=l.dataItem?.dataContext??{};return Ts(u)&&(o=pd({groupOfSlicesDataContext:u})),{...n,element:l,elementIndex:l.dataItem?.index,elementDataContext:u}}),o!==void 0&&o.forEach((l,u)=>{i.push({...n,elementIndex:u,elementDataContext:l})})}}return i}function Hb(a){let{chart:i,selectionSource:e,chartConfig:t}=a,r=!1,s=[];if(Ku(t)){if(r=jr(t),s=i.series.values.filter(n=>!(n instanceof yi)),e===mr.SelectionByClick){let n=new Set,o=s.find(l=>l instanceof $t&&l.isHover);o===void 0?s.forEach(l=>{l instanceof et&&(l.id.includes(Wi.Outliers)&&l.tooltip?.visible===!0||gi(l.uid,"isBoxPlotMeanLineSeries"))&&n.add(l)}):n.add(o),s=Array.from(n)}}else s=i.series.values;return s=s.filter(n=>n.visible&&(!r||!(n instanceof $t||gi(n.uid,"isBoxPlotOutliersSeries")))),s}async function My(a){let{chart:i,cursorSelectionRectangle:e,multiSelect:t,selectionSource:r,hitElement:s,queryObject:n}=a,o=G(i.uid,"config"),l=o?.series[0]?.x??"",u=[];Ai(i.uid,{pendingSelectionQueries:!0});let h=[],p=!0;Hb({chart:i,selectionSource:r,chartConfig:o}).forEach((d,c)=>{let f=Lu(d,o);if(o&&d.visible&&d instanceof Vt){let y=ku(d,c)===W.BoxPlotSeries?f?.y:ms(d),g=d.dataFields?.customValue??"",v={element:{},yAxisField:y,xAxisField:l,splitBy:g,seriesIndex:c,chartConfig:o},x;d instanceof it||d instanceof $t?x=d.columns?.values:d instanceof yi?x=d.segments.values:d instanceof et&&(x=kt(d)?.clones?.values,v.uniqueFeature=!0),x!==void 0&&(h=[...h,...x],x.forEach((P,T)=>{if(!(P.dataItem instanceof Or)){let C=P.isActive,O=P===s||Eb(P,e);O&&(p=!1);let w=!1;C?O?w=r!==mr.SelectionByClick:w=t===!0:w=O,w&&u.push({...v,element:P,elementDataContext:P.dataItem?.dataContext,elementIndex:T}),Mr({element:P,selected:w})}}))}}),p&&(u=[]),await _d({chart:i,listSelectedElements:u,selectionSource:r,queryObject:n})}function uG(a,i){let e=async t=>{let r=t.target.cursor;if(r.xRange!==void 0){r.selection.isMeasured=!0,r.validate(),r.selection.validate();let s=ve.spriteRectToSvg(r.selection.bbox,r.selection);if(r.selection.hide(),s.width>0||s.height>0){let n=yd(t,a);await My({chart:a,cursorSelectionRectangle:s,multiSelect:n,selectionSource:mr.SelectionByRange,queryObject:i})}}r.selection.hide()};Jr(a)&&a.events.on(te.Up,async t=>{let r=t.target.cursor,s=Lv(a.uid,"selectEndedCallbackDisposer");if(s!==void 0&&s.dispose(),r.xRange!==void 0&&t.event instanceof TouchEvent)await e(t);else{let n=r.events.once(te.SelectEnded,async()=>{await e(t)});Iv(a.uid,{selectEndedCallbackDisposer:n})}})}async function Du(a){let{hitEvent:i,chart:e,queryObject:t}=a,{target:r}=i,s=G(e.uid,"actionMode");if(e!==void 0&&Bb(e)&&s!==wt.None&&s!==wt.Zoom&&(r instanceof qe||i.point===void 0)){let n=i.svgPoint?{x:i.svgPoint.x,y:i.svgPoint.y,width:0,height:0}:void 0,o=yd(i,e);await My({chart:e,cursorSelectionRectangle:n,multiSelect:o,selectionSource:mr.SelectionByClick,hitElement:r,queryObject:t})}}function hG(a,i){Jr(a)&&(a.zoomOutButton.hoverable=!0,a.events.on(te.Hit,async e=>await Du({hitEvent:e,chart:a,queryObject:i})),a.events.on(te.DoubleHit,async e=>await Du({hitEvent:e,chart:a,queryObject:i})))}function Iu(a){let{chart:i,element:e,queryObject:t}=a;e.events.on(te.Hit,async r=>await Du({hitEvent:r,chart:i,queryObject:t})),e.events.on(te.DoubleHit,async r=>await Du({hitEvent:r,chart:i,queryObject:t}))}async function pG(a,i){let{series:e}=a;if(e.length>0){Ai(a.uid,{pendingSelectionQueries:!0});let t=G(a.uid,"config"),r=e.values.map((s,n)=>{let o=[];if(s.visible){let l=Ot(t?.series,n);l===W.BarSeries?o=ay(s,n):l===W.LineSeries?o=sy(s,n):l===W.PieSeries?o=Wb(s):l===W.BoxPlotSeries&&(s instanceof $t?o=ay(s,n):s instanceof et&&!(s instanceof yi)&&(o=sy(s,n)))}return o}).flat();await _d({chart:a,listSelectedElements:r,selectionSource:mr.ProgrammaticSelection,queryObject:i}),a instanceof Tt&&a.feedLegend()}}function dG(a){if(Jr(a))if(a.events.disableType(te.Hit),a.events.disableType(te.DoubleHit),a instanceof Tt){let i=a.series.getIndex(0);i!==void 0&&(i.slices.template.clickable=!1,i.slices.template.togglable=!1,i.slices.template.events.disableType(te.Hit),i.slices.template.events.disableType(te.DoubleHit),i.labels.template.clickable=!1,i.labels.template.togglable=!1,i.labels.template.events.disableType(te.Hit),i.labels.template.events.disableType(te.DoubleHit))}else a instanceof qe&&(a.xAxes.each(i=>Fu(i,!0)),a.yAxes.each(i=>Fu(i,!0)),a.events.disableType(te.Up))}function cG(a){if(Jr(a))if(a.events.enableType(te.Hit),a.events.enableType(te.DoubleHit),a instanceof Tt){let i=a.series.getIndex(0);i!==void 0&&(i.slices.template.clickable=!0,i.slices.template.togglable=!0,i.slices.template.events.enableType(te.Hit),i.slices.template.events.enableType(te.DoubleHit),i.labels.template.clickable=!0,i.labels.template.togglable=!0,i.labels.template.events.enableType(te.Hit),i.labels.template.events.enableType(te.DoubleHit))}else a instanceof qe&&(a.xAxes.each(i=>Fu(i,!1)),a.yAxes.each(i=>Fu(i,!1)),a.events.enableType(te.Up))}function Au(a){let{element:i,stylingInfo:e,stateKey:t="default"}=a;if(i!==void 0&&e!==void 0){let r=i.states.getKey(t)?.properties??i.defaultState.properties;if(r.fill=e.pattern??e.fill,r.fillOpacity=Z(r.fill.toString()).alpha===0?0:1,e.outline!==void 0){let{outline:s}=e;r.stroke=s.stroke,r.strokeOpacity=s.stroke.alpha===0?0:1,r.strokeDasharray=s.strokeDasharray,r.strokeLinecap=s.strokeLinecap,r.strokeWidth=s.strokeWidth}}}function zb(a){return a.values.every(i=>i.isReady())}function jo(a,i){a.events.on(te.Ready,()=>{let{chart:e}=a;e!==void 0&&zb(a.chart.series)&&(Nb(e),i(),fc(a.chart.htmlContainer))})}function vd(a,i){return i!=null&&i!==""?i:a}function jy(a,i){let e;switch(a){case mt.Average:{e=i.statistics.mean;break}case mt.ContinuousPercentile:{e=i.statistics.median;break}case mt.Sum:{e=i.statistics.sum;break}case mt.Minimum:{e=i.statistics.minimum;break}case mt.Maximum:{e=i.statistics.maximum;break}case mt.Variance:{e=i.statistics.variance;break}case mt.DiscretePercentile:{e=i.statistics.discretePercentile;break}case mt.NoAggregation:{e=i.statistics.noAggregation;break}case mt.Count:default:{e=i.statistics.count;break}}return e}function Xb(a){let{config:i,fieldName:e="",utilsStrings:t}=a,r=i.series[0].query?.outStatistics?.[0].statisticType??Bu.statisticType,s=jy(r,t);return Ir(t.statistics.aggregation,{statistics:s,fieldName:e})}function Yb(a){let{config:i,fieldList:e,objectIdField:t,seriesIndex:r,isStacked100:s,utilsStrings:n}=a,o="",l=i.series[r].name,u=i.series[r],h=[u.y].flat()[0],p=i.axes,d=gt(i.series),c=t??_s.outStatistics.onStatisticField,f=u.query?.outStatistics?.[0].onStatisticField??c,y=Dt(e,f),g=u.query?.outStatistics?.[0].statisticType??Bu.statisticType,v=jy(g,n);return d===pe.BarAndLineNoAggregation?o=l??Dt(e,h):d===pe.BarAndLineSplitByNoAggregation?o=Dt(e,h):(o=g===mt.Count&&f===c?n.statistics.count:Ir(n.statistics.aggregation,{statistics:v,fieldName:y??l}),d===pe.BarAndLineMonoField&&!s&&(o=vd(o,p[1].title?.content?.text))),o}function Ny(a,i){let{dataTooltipStyle:e,dataTooltipStyleReversed:t}=L;if(i===!0){let r=a.background.fill;if(r!==void 0){a.background.stroke=r,a.background.strokeWidth=t?.outline?.width??Number.NaN,a.background.fill=pr(t?.color);let s=a.background.fill.rgb;if(s!==void 0){let n=a.label.fill;a.label.fill=Sl(s)?n?.darkColor:n?.lightColor}}}else a.getStrokeFromObject=!0,a.getFillFromObject=!0,a.background.strokeWidth=e?.outline?.width??Number.NaN,a.background.stroke=pr(e?.outline?.color)}function Gb(a){let i=a.tooltip??new nr;i.pointerOrientation="vertical",a instanceof $t||a instanceof yi?i.label.maxWidth=L.boxPlot.boxPlotTooltipLabelWidth:i.label.maxWidth=L.tooltipWidth,i.label.wrap=!0,i.events.on(te.Shown,e=>{let t=G(a.chart.uid,"config");if(t!==void 0){let r=Lu(a,t),{dataTooltipReverseColor:s}=r??{};Ny(e.target,s)}})}function fG(a){a instanceof hr||a.series.each(i=>{Gb(i)})}function Ub(a,i){a.tooltipHTML=L.htmlEmptyContent,a.adapter.add("tooltipHTML",(e,t)=>{let r=e??"",{chart:s}=i;if(s!==void 0){let n=G(s.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)r="";else{let l=gi(i.uid,"barAndLineTooltipFormatter");if(l!==void 0&&i.isReady()){let{dataItem:u}=t;if(u instanceof Ht||u instanceof Ni){let h=n?.series.find(p=>p.id===i.id);if(h!==void 0){let p=ds({config:n}),d=p?u.valueX:u.valueY,c=(p?u.values.valueX.totalPercent:u.values.valueY.totalPercent)/100,f=u.dataContext??{};if(f!==void 0){let y=G(s.uid,"rendererFieldNames"),g=ia({value:f[h.x],dataContext:f,useRendererLabel:Zu(n,y),specificField:eh(gt([h]),h)}),v=Ss(f);v===void 0&&(v=g);let x=f[L.dateBinningRange];r=l({seriesName:i.name,xValue:g,originalXValue:v,dateBinningRange:x,statValue:d,percentValue:c})}}}}}}return gr(r)}),a.tooltipPosition=i instanceof et?L.markerTooltipPosition:L.columnTooltipPosition,i.cursorTooltipEnabled=!1}function Kb(a){let{isStacked100:i,series:e,statValue:t,percentValue:r,yAxisValueFormat:s,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=a,l=n;l===void 0&&(ta(s)&&s?(l=s,i&&(l.intlOptions.style="decimal")):l=el());let u=G(e.chart.uid,"formatLocale"),h=t!==void 0?Vo({value:t,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:u}):"",p="";if(i&&r!==void 0){let d=o;d===void 0&&(d=Ed(),d.intlOptions.minimumFractionDigits=2,d.intlOptions.maximumFractionDigits=2),p=Vo({value:r,valueFormat:d,iLocale:e.chart.language.locale,formatLocale:u})}return{formattedStatValue:h,formattedPercentValue:p}}function qb(a){let{series:i,dateRange:e,xAxisValueFormat:t}=a,r,s=G(i.chart.uid,"timeIntervalInfo");if(e!==void 0&&e.length>0){let n={};switch(s?.unit){case Xt.Second:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case Xt.Minute:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case Xt.Hour:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case Xt.Day:case Xt.Week:case Xt.Month:case Xt.Year:n={month:"numeric",day:"numeric",year:"numeric"};break}n.timeZone=t.intlOptions.timeZone;let o=new Date(e[0]),l=new Date(e[1]);if(!Number.isNaN(o.valueOf())){let u=G(i.chart.uid,"formatLocale"),h=Oa({type:W.DateAxisFormat,iLocale:i.chart.language.locale,formatLocale:u}),p=h.format(o,n);if(r=p,!Number.isNaN(l.valueOf())){let d=h.format(l,n);d!==p&&(r=`${r} - ${d}`)}}}return r?.toString()??""}function Ey(a){let{seriesConfig:i,xAxisValueFormat:e,setTimeBinningInfoWhenNotProvided:t,dataTooltipValueFormat:r,dataTooltipDateFormat:s,series:n,xValue:o,dateBinningRange:l,isTimeOnlyField:u,queryObject:h}=a,p,d=G(n.chart.uid,"formatLocale");return lh({seriesConfig:i,xAxisValueFormatType:e?.type,setTimeBinningInfoWhenNotProvided:t,queryObject:h})&&l!==void 0&&e?.type===W.DateAxisFormat?p=qb({series:n,dateRange:l,xAxisValueFormat:e}):xs(e)?u&&typeof o=="number"?p=new Date(o).toLocaleTimeString(d):o instanceof Date&&(p=Vo({value:o,valueFormat:s??e,iLocale:n.chart.language.locale,formatLocale:d})):typeof o=="number"&&ta(e)?p=Vo({value:o,valueFormat:r??e,iLocale:n.chart.language.locale,formatLocale:d}):p=o,p?.toString()??""}function Zb(a){let{series:i,fieldList:e,queryObject:t,setTimeBinningInfoWhenNotProvided:r,seriesIndex:s,seriesConfig:n,utilsStrings:o}=a,{dataTooltipValueFormat:l,dataTooltipPercentFormat:u,dataTooltipDateFormat:h}=n,p=()=>"",{chart:d}=i;if(d!==void 0){let c=G(d.uid,"config");if(c!==void 0){let{dataTooltipVisible:f}=n,y=i instanceof et?n.markerVisible:void 0;if(f===!1||y===!1)p=()=>"";else{let g=c.axes,v=g[0].valueFormat,x=g[1].valueFormat,P=gt(c.series),T=e?.find(E=>E.name===n.x)?.type===Ko.TimeOnly,C=Cs(c)===ui.Stacked100,O=La(sl(t)).idField,w=Dt(e,n.x),D=vd(w,g[0].title?.content.text),A=Yb({config:c,fieldList:e,objectIdField:O,seriesIndex:s,utilsStrings:o,isStacked100:C}),H=Ps(d.rtl);p=E=>{let{statValue:j,percentValue:ce,xValue:be,dateBinningRange:ke}=E,K=Ey({seriesConfig:n,xAxisValueFormat:v,dataTooltipValueFormat:l,dataTooltipDateFormat:h,setTimeBinningInfoWhenNotProvided:r,series:i,xValue:be,dateBinningRange:ke,isTimeOnlyField:T,queryObject:t}),{formattedStatValue:De,formattedPercentValue:Le}=Kb({isStacked100:C,yAxisValueFormat:x,dataTooltipValueFormat:l,dataTooltipPercentFormat:u,series:i,statValue:j,percentValue:ce}),ze=[`<b>${D}${H} </b>${K}`];switch(P){case pe.BarAndLineFromFields:{ze.pop();let ft=Xb({config:c,fieldName:Dt(e,K??""),utilsStrings:o});ze.push(`<b>${ft}${H} </b>${De}`);break}case pe.BarAndLineMonoField:case pe.BarAndLineNoAggregation:case pe.BarAndLineMultiFields:ze.push(`<b>${A}${H} </b>${De}`);break;case pe.BarAndLineSplitByNoAggregation:case pe.BarAndLineSplitBy:{let ft=Ia(n.query?.where,!1),at=ic({value:Dt(e,ft)});ze.push(`<b>${at}${H} </b>${i.name}<br /><b>${A}${H} </b>${De}`)}break}return C&&ze.push(`<b>${o.statistics.percent}${H} </b>${Le}`),ze.join("<br />")}}}}return p}function Qb(a){let{series:i,tooltipFormatter:e}=a;wa(i.uid,{barAndLineTooltipFormatter:e??Zb(a)})}function bd(a){let{target:i,defaultTooltipHTML:e,candleStickSeries:t,meanLineSeries:r,outliersSeries:s,tooltipCallback:n}=a,o=e,l=t??r;if(l!==void 0){let{chart:u}=l;if(u!==void 0){let h=G(u.uid,"config"),{dataTooltipVisible:p}=h?.series[0]??{};if(p===!1)o="";else{let d=gi(l.uid,"boxPlotTooltipFormatter");d!==void 0&&l.isReady()&&h&&(o=n({target:i,defaultTooltipHTML:e,config:h,candleStickSeries:t,meanLineSeries:r,outliersSeries:s,boxPlotTooltipFormatter:d}))}}}return gr(o)}function Jb(a){let{target:i,defaultTooltipHTML:e,config:t,candleStickSeries:r,outliersSeries:s,boxPlotTooltipFormatter:n}=a,o=e;if(r!==void 0&&s!==void 0){let l=r.dataItems.values.find(h=>(h.categories.categoryX??h.categories.categoryY)===(i.dataItem?.categories.categoryX??i.dataItem?.categories.categoryY)),u=t.series.find(h=>h.id===r.id);if(u!==void 0){let h=l?.dataContext??{};if(h!==void 0){let p=ia({value:h[u.x],dataContext:h,useRendererLabel:rl(t),specificField:Se.xAxisField}),d=Ss(h);d===void 0&&(d=p),o=n({seriesName:s.name,xValue:p,originalXValue:d,dataContext:h})}}}return o}function ex(a){let{target:i,defaultTooltipHTML:e,config:t,meanLineSeries:r,boxPlotTooltipFormatter:s}=a,n=e;if(r!==void 0){let o=r.dataItems.values.find(l=>(l.categories.categoryX??l.categories.categoryY)===(i.dataItem?.categories.categoryX??i.dataItem?.categories.categoryY));if(o instanceof Ni){let l=t.series.find(u=>u.id===r.id);if(l!==void 0){let u=o.dataContext??{};if(u!==void 0){let h=ia({value:u[l.x],dataContext:u,useRendererLabel:rl(t),specificField:Se.xAxisField}),p=Ss(u);p===void 0&&(p=h),n=s({seriesName:r.name,xValue:h,originalXValue:p,dataContext:u})}}}}return n}function tx(a){let{target:i,defaultTooltipHTML:e,config:t,candleStickSeries:r,boxPlotTooltipFormatter:s}=a,n=e;if(r!==void 0){let o=i.dataItem;if(o instanceof os){let l=t.series.find(u=>u.id===r.id);if(l!==void 0){let u=o.dataContext??{};if(u!==void 0){let h=ia({value:u[l.x],dataContext:u,useRendererLabel:rl(t),specificField:Se.xAxisField}),p=Ss(u);p===void 0&&(p=h),n=s({seriesName:r.name,xValue:h,originalXValue:p,dataContext:u})}}}}return n}function ix(a){a.cursorTooltipEnabled=!1,a.tooltipPosition=L.columnTooltipPosition,a.columns.template.tooltipHTML=L.htmlEmptyContent,a.columns.template.adapter.add("tooltipHTML",(i,e)=>bd({target:e,defaultTooltipHTML:i??"",candleStickSeries:a,tooltipCallback:tx}))}function rx(a,i){let e=kt(a);e!==void 0&&(e.tooltipPosition=L.markerTooltipPosition,e.tooltipHTML=L.htmlEmptyContent,a.cursorTooltipEnabled=!1,e.adapter.add("tooltipHTML",(t,r)=>bd({target:r,defaultTooltipHTML:t??"",candleStickSeries:i,outliersSeries:a,tooltipCallback:Jb})))}function ax(a){let i=kt(a);i!==void 0&&(a.cursorTooltipEnabled=!1,i.tooltipPosition=L.markerTooltipPosition,i.tooltipHTML=L.htmlEmptyContent,i.adapter.add("tooltipHTML",(e,t)=>bd({target:t,defaultTooltipHTML:e??"",meanLineSeries:a,tooltipCallback:ex})))}function Ca(a){let{label:i,value:e,strongColon:t,useTable:r}=a,s=`<b>${i}${t}</b> ${e}`;return r!==!1?`<tr><td>${s}</td></tr>`:s}function sx(a){let{dataContext:i,series:e,dataTooltipValueFormat:t,y:r,splitBy:s,utilsStrings:n,useTable:o}=a,l=t??el(),u=Object.values(Ge),h=Ps(e.rtl),p=o!==!1?['<tr><td colspan="2"><hr style="border-top: solid black;"></td></tr>']:[""];return u.forEach(d=>{let c=yt({key:d,y:r,splitBy:s}),f=i[c];if(f!=null&&typeof f=="number"){let y=G(e.chart.uid,"formatLocale"),g=Vo({value:f,valueFormat:l,iLocale:e.chart.language.locale,formatLocale:y}),v="";switch(d){case Ge.Min:v=n.statistics.minimum;break;case Ge.FirstQuartile:v=n.statistics.firstQuartile;break;case Ge.Median:v=n.statistics.median;break;case Ge.ThirdQuartile:v=n.statistics.thirdQuartile;break;case Ge.Max:v=n.statistics.maximum;break;case Ge.IQR:v=n.statistics.iqr;break;case Ge.Average:v=n.statistics.mean;break;case Ge.StandardDeviation:}ea(v)||p.push(Ca({label:v,value:g,strongColon:h,useTable:o}))}}),p}function nx(a){let{series:i,fieldList:e,seriesConfig:t,utilsStrings:r,queryObject:s}=a,{dataTooltipValueFormat:n}=t,o=()=>"",{chart:l}=i;if(l!==void 0){let u=G(l.uid,"config");if(u!==void 0){let h=u.axes,p=h?.[0].valueFormat,{showMean:d}=u,c=gt(u.series),f=Ia(t.query?.where),y=Dt(e,f),g=ra({where:t.query?.where,escape:!1}),v=Dt(e,t.x),x;t.x!==jd&&(x=vd(v,h?.[0].title?.content.text));let P=Ps(l.rtl);o=T=>{let{dataContext:C,xValue:O}=T,w=Ey({seriesConfig:t,xAxisValueFormat:p,series:i,xValue:O,queryObject:s}),D=[],A=w!==void 0&&!ea(w)?Dt(e,w):"",H=d===!0?[u.series[0].y].flat()[0]:[t.y].flat()[0],E=Dt(e,H);switch(c){case pe.BoxPlotMonoField:case pe.BoxPlotMultiFields:case pe.BoxPlotMonoFieldAndSplitBy:case pe.BoxPlotMultiFieldsAndSplitBy:{if(w!==void 0&&!ea(w)){let K=c===pe.BoxPlotMonoField?t.name??A:A;D.push(Ca({label:r.field,strongColon:P,value:K}))}yr(y)||D.push(Ca({label:y,strongColon:P,value:t.name??g?.toString()}));break}case pe.BoxPlotMonoFieldAndCategory:case pe.BoxPlotMultiFieldsAndCategory:{D.push(Ca({label:r.field,strongColon:P,value:t.name??E})),w!==void 0&&!ea(w)&&D.push(Ca({label:x,strongColon:P,value:A}));break}case pe.BoxPlotMonoFieldAndCategoryAndSplitBy:D.push(Ca({label:r.field,strongColon:P,value:E})),w!==void 0&&!ea(w)&&D.push(Ca({label:x,strongColon:P,value:A})),yr(y)||D.push(Ca({label:y,strongColon:P,value:t.name??g?.toString()}));break}let j=[pe.BoxPlotMultiFieldsAndCategory],ce=C[L.boxPlot.boxPlotMeanLineMarkerId]!==void 0,be=D.length>0&&!ce,ke=sx({dataContext:C,series:i,dataTooltipValueFormat:n,splitBy:t.query?.where,y:j.includes(c)?[t.y].flat()[0]:void 0,utilsStrings:r,useTable:be});return be?`${D.join("<br>")}<table>${ke.join("")}</table>`:`${D.join("<br>")}${ke.join("<br>")}`}}}return o}function ox(a){let{series:i,tooltipFormatter:e}=a;wa(i.uid,{boxPlotTooltipFormatter:e??nx(a)})}function lx(a){let i=Pn(L.dataLabelInitialize);return Do(i.uid,{isDataLabel:!0}),a.bullets.push(i),Fy(i),wy(W.LineSeries,i),Dy(W.LineSeries,i),ld(i,a),i.html="{valueX}",i}function ux(a){let{series:i}=a,e=od(i,"bullets");Vy({...a,dataLabel:e,defaultDataLabelFormatter:Ay})}var m={Rotated:0,NonRotated:1,RTL:2,LTR:3,Stacked:4,Stacked100:5,SideBySide:6,LegendTop:7,LegendBottom:8,LegendLeft:9,LegendRight:10,DateAxis:11,ValueAxis:12,CategoryAxis:13,OrderByFieldsASC:14,OrderByFieldsDESC:15},hx=new Set([`${m.NonRotated}-${m.LTR}-${m.SideBySide}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.SideBySide}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.SideBySide}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.SideBySide}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.LTR}-${m.SideBySide}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.LTR}-${m.SideBySide}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.LTR}-${m.SideBySide}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.LTR}-${m.SideBySide}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendLeft}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendRight}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendTop}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendBottom}-${m.DateAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendLeft}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendRight}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendTop}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendBottom}-${m.CategoryAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsASC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.SideBySide}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.LTR}-${m.Stacked100}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendLeft}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.NonRotated}-${m.RTL}-${m.Stacked100}-${m.LegendRight}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendTop}-${m.ValueAxis}-${m.OrderByFieldsDESC}`,`${m.Rotated}-${m.RTL}-${m.Stacked100}-${m.LegendBottom}-${m.ValueAxis}-${m.OrderByFieldsDESC}`]);function px(a,i){i!==void 0&&(i.layout!==void 0&&(a.layout=i.layout),i.width!==void 0&&(a.width=ey(i.width)),i.height!==void 0&&(a.height=ey(i.height)),i.paddingTop!==void 0&&(a.paddingTop=i.paddingTop),i.paddingBottom!==void 0&&(a.paddingBottom=i.paddingBottom))}function dx(a){let i=!1,e=a.legend?.visible,t=a.legend?.title?.content.text,r=a.legend?.title?.visible;return i=e!==!1&&r!==!1&&t!==void 0&&t.length>0,i}function mG(a,i){let e=new Y;return px(e,a),e.parent=i,e}function yG(a,i){a.disabled=i}function gG(a,i){a.toBack()}function vG(a){if(a instanceof hr){let{paddingTop:i,paddingRight:e,paddingBottom:t,paddingLeft:r}=L.gauge;a.padding(i,e,t,r)}else{let{paddingMinSize:i,marginMinSize:e,chartPaddingMinSize:t,chartContainer:r}=L;a.padding(t,t,t,t),a.chartAndLegendContainer.margin(e,e,e,e),a.chartAndLegendContainer.padding(i,i,i,i),a.chartContainer.margin(e,e,e,e),a.chartContainer.padding(r.paddingTop,i,i,i)}}function cx(a,i){let e=(t,r)=>{let{chartContainer:s,chartAndLegendContainer:n}=L,o=G(t.uid,"config");if(o!==void 0){let l=dx(o),u=o.legend?.position;if(l)switch(u){case ct.Top:t.chartAndLegendContainer.paddingTop=r.bbox.height??0,t.chartContainer.paddingBottom=s.paddingBottom??0;break;case ct.Bottom:t.chartContainer.paddingBottom=r.bbox.height??0,t.chartAndLegendContainer.paddingTop=n.paddingTop??0;break;default:t.chartAndLegendContainer.paddingTop=n.paddingTop??0,t.chartContainer.paddingBottom=s.paddingBottom??0;break}else t.chartAndLegendContainer.paddingTop=n.paddingTop??0,t.chartContainer.paddingBottom=s.paddingBottom??0}};i.events.on(te.PositionChanged,()=>{e(a,i)})}function fx(a){let{iLocale:i,pieChart:e,valueIntlOptions:t,percentageIntlOptions:r,displayNumericValue:s,displayPercentage:n,valuePrefix:o,valueSuffix:l,percentagePrefix:u,percentageSuffix:h}=a,p=G(e.uid,"formatLocale"),d=Oa({type:W.NumberAxisFormat,iLocale:i,formatLocale:p}),c=Oa({type:W.NumberAxisFormat,iLocale:i,formatLocale:p});d.numberFormat={...t},c.numberFormat={...r,style:"percent"};let f=Ps(e.rtl," ");return(y,g,v)=>{let x="";if(g!==void 0&&v!==void 0){let P=`${o??""}${d.format(g)}${l??""}`,T=`${u??""}${c.format(Math.abs(v/100))}${h??""}`;Number.isFinite(g)?s===!0&&n===!0?x=`${T}${f}(${P})`:s===!0?x=P:n===!0&&(x=T):x=""}return x}}function By(a){let i=!1;if(a.position===ct.Right||a.position===ct.Left)i=!0;else{let e=a.labels.getIndex(0)?.parent?.x;e!==void 0&&(i=!a.labels.values.some(t=>t.parent?.x!==e))}return i}function mx(a){let i=!1,e=a.labels.getIndex(0)?.parent?.y;return e!==void 0&&(i=!a.labels.values.some(t=>t.parent?.y!==e)),i}function yx(a){a.events.on(te.LayoutValidated,()=>{let i=By(a),e=mx(a),t=i||!e?Yt.Right:Yt.Center;a.valueLabels.template.horizontalCenter=dd(t),a.valueLabels.template.align=by(t)})}function gx(a){Do(a.valueLabels.template.uid,{isLegendValueLabel:!0}),a.valueLabels.template.adapter.add("htmlOutput",(i,e)=>{let t=i,r=Rv(a.uid,"pieChartLegendValueLabelsFormatter");if(r!==void 0&&(t=r(e.dataItem?.values?.value?.value??0,e.dataItem?.values?.value?.percent??0)),yr(t)&&(t=L.htmlEmptyContent),a.baseSprite instanceof Ur){let s=G(a.baseSprite.uid,"config");s?.legend?.body!==void 0&&(t=wn({textSymbol:{...s.legend.body,text:t},format:"html"}))}return gr(t)}),a.valueLabels.template.html=L.htmlEmptyContent,yx(a)}function vx(a){let{legendElements:{legend:i},seriesConfig:e,webChartLegend:t,pieChartLegendValueLabelFormatter:r}=a,{visible:s,body:n,displayNumericValue:o,displayPercentage:l,displayCategory:u}=t??{};if(Ot(e)===W.PieSeries){let{numericValueFormat:h,percentValueFormat:p,valuePrefix:d,valueSuffix:c,percentagePrefix:f,percentageSuffix:y}=e[0],g=u??L.pieChart.displayCategoryOnLegend,v=o??L.pieChart.displayNumericValueOnLegend,x=l??L.pieChart.displayPercentageOnLegend,P=r;if(r===void 0){let O=fx({iLocale:i.language.locale,pieChart:i.baseSprite,valueIntlOptions:h?.intlOptions,percentageIntlOptions:p?.intlOptions,displayNumericValue:v,displayPercentage:x,valuePrefix:d,valueSuffix:c,percentagePrefix:f,percentageSuffix:y});P=(w,D)=>O("",w,D)}Mv(i.uid,{pieChartLegendValueLabelsFormatter:P});let T=By(i),C={type:W.Text,visible:s,content:{...n,type:Gt.TS,text:".",verticalAlignment:Vi.Middle,horizontalAlignment:T?Yt.Right:Yt.Center}};ys({label:i.valueLabels.template,labelConfig:C,defaults:L.legendProperties.valueLabels}),i.labels.template.disabled=g===!1,i.valueLabels.template.disabled=v===!1&&x===!1}}function bx(a){let{dataContext:i}=a.target.dataItem??{};if(i instanceof Lr){let{component:e}=i;e instanceof ei&&e.showTooltip()}}function xx(a){let i=()=>{let e=a.children.values.find(t=>t.className==="Container");if(e?.children.length===3){let t=e.children.values.findIndex(r=>r.className==="Container");if(t!==-1){let r=t!==0?0:2,s=e.children.getIndex(r)?.clonedFrom;s!==void 0&&li(s.uid,"isLegendValueLabel")!==!0&&a.children.each(n=>{n.className==="Container"&&n.children.swap(1,r)})}}};a.events.on(te.Validated,i),i()}function ny(a,i){let{legendLabelReducedOpacity:e}=L.legendProperties;a!==void 0&&(a.fillOpacity=i===!1?e:1)}function wo(a){let{labels:i,seriesId:e,sliceCategory:t}=a;i.each(r=>{t!==void 0?t===r.dataItem.category&&ny(r,r.dataItem.slice.visible??!0):e===r.dataItem?.component?.id&&ny(r,r.dataItem?.component?.visible??!0)})}function _x(a){a instanceof ei?(a.slices.template.events.on(te.Shown,i=>{let e=i.target.dataItem.category;wo({labels:a.chart?.legend?.labels,sliceCategory:e}),wo({labels:a.chart?.legend?.valueLabels,sliceCategory:e})}),a.slices.template.events.on(te.Hidden,i=>{let e=i.target.dataItem.category;wo({labels:a.chart?.legend?.labels,sliceCategory:e}),wo({labels:a.chart?.legend?.valueLabels,sliceCategory:e})})):a.events.on(te.VisibilityChanged,i=>{let e=i.target.id;wo({labels:a.chart?.legend?.labels,seriesId:e})})}function Wy(a){let{title:i,visible:e}=a;return i!==void 0&&e!==!1&&i?.visible!==!1}function $x(a,i){let{legendProperties:e}=L;if(a.position===ct.Bottom)a.marginTop=e.marginTop??0,a.marginBottom=0,a.dy=0;else if(a.position===ct.Top)a.marginBottom=e.marginBottom??0,a.marginTop=0,a.dy=0;else if(a.marginTop=0,a.marginBottom=0,!(a.baseSprite instanceof Tt)){let t=Wy(i),r=i.title?.content?.font?.size??L.generalFontSize;a.dy=-(t?r:15)}}function Px(a){let i=a.baseSprite,e;if(i!==void 0){let t=G(i?.uid,"config");e=i?.rtl&&(t?.legend?.position===ct.Top||t?.legend?.position===ct.Bottom)}return e??!1}function Sx(a){let i=a.baseSprite,e="";if(i instanceof qe){let t=G(i.uid,"config"),r=Ju(t),s=r?m.Rotated:m.NonRotated,n=Cs(t),o=m.SideBySide;n===ui.Stacked?o=m.Stacked:n===ui.Stacked100&&(o=m.Stacked100);let l=i.rtl?m.RTL:m.LTR,u;switch(t?.legend?.position){case ct.Left:u=m.LegendLeft;break;case ct.Top:u=m.LegendTop;break;case ct.Bottom:u=m.LegendBottom;break;case ct.Right:default:u=m.LegendRight;break}let h=r?i.yAxes.getIndex(0):i.xAxes.getIndex(0),p;h instanceof fe?p=m.DateAxis:h instanceof Q?p=m.ValueAxis:p=m.CategoryAxis;let d=t?.orderOptions?.data&&"orderBy"in t.orderOptions.data&&t.orderOptions.data.orderBy===Uo.Descending?m.OrderByFieldsDESC:m.OrderByFieldsASC;e=`${s}-${l}-${o}-${u}-${p}-${d}`}return e}function Cx(a){let i=Sx(a);return hx.has(i)}function Hy(a,i){let{legend:e,legendTitle:t}=a??{};switch(i){case W.PieSeries:e.reverseOrder=Px(e);break;case W.BarSeries:case W.LineSeries:case W.ComboLineAndBarSeries:e.reverseOrder=Cx(e);break}let r=e.reverseOrder===!0?e.children.length-1:0;e.children.moveValue(t,r)}function Tx(a){if(a.visible){let i=G(a.chart.uid,"config")?.series.find(e=>e.id===a.id);if(i!==void 0&&Ot([i])===W.LineSeries){let{markerVisible:e}=i;e!==!1&&a.bulletsContainer.show()}}}function Ox(a,i){let e=a.target.dataItem,t=a.target.isActive;if(e?.dataContext!==void 0){let{dataContext:r}=e,s={visible:t};if(r instanceof Lr)G(i.uid,"isNonAggregatedChart")===!0?s.sliceData=r.dataContext:s.sliceId=r.category;else if(r instanceof $t){let o=r.id,l=No(i,o);if(l!==void 0){let d=G(i.uid,"config"),c=xd(d?.showOutliers,t),f=kt(l);f!==void 0&&(f.disabled=!c),rt(l,c)}let{topStepLineSeries:u,medianStepLineSeries:h,bottomStepLineSeries:p}=Ru(i,o);u!==void 0&&rt(u,t),h!==void 0&&rt(h,t),p!==void 0&&rt(p,t),s.seriesId=r.id}else s.seriesId=r.id;let n=r instanceof Lr?r.component:r;(n instanceof Vt||n instanceof ei)&&n.events.once(te.Validated,()=>{n instanceof Vt&&(f_(n),n.events.dispatchImmediately(te.Validated,{type:te.Validated,target:n}));let o=n instanceof ei,l=G(i.uid,"currentSelectionDataItems"),u=l!==void 0&&l.length>0,h=G(i.uid,"actionMode")??L.actionMode,p;n instanceof it?p=n.columns:o?p=n.slices:n instanceof et&&(Tx(n),p=kt(n)?.clones),p?.each(d=>{d.dataItem instanceof Or||(Mr({element:d,selected:d.isActive,useNativeState:o,backToDefaultState:!u}),o&&h===wt.None&&(d.clickable=!1))})}),cc(s,i.htmlContainer)}}function wx(a){let{legendProperties:i,legendProperties:e}=L;a.adapter.add("paddingRight",()=>a.scrollbar.visible?e.legendPaddingRightWithScrollbarVisible:i.paddingRight),a.adapter.add("paddingLeft",()=>i.paddingLeft),a.adapter.add("paddingTop",()=>i.paddingTop),a.adapter.add("paddingBottom",()=>i.paddingBottom)}function Dx(a){a.scrollable=!0}function Ax(a){let i=Pn(void 0,a);return i.adapter.add("paddingTop",e=>{let t=e,r=i.bbox.height;return r>0&&(t=-r),t}),i.adapter.add("x",e=>{let t=e,{marginLeft:r,marginRight:s}=L.legendProperties.legendTitle;switch(G(a.baseSprite.uid,"config")?.legend?.title?.content?.horizontalAlignment){case Yt.Left:t=i.measuredWidth+(r??0);break;case Yt.Right:t=a.measuredWidth-i.measuredWidth-(s??0);break;case Yt.Center:case Yt.Justify:default:t=a.measuredWidth/2;break}return t}),i.adapter.add("disabled",e=>(e===!1&&i.validate(),e)),i}function Fx(a){let{legendConfig:i,legendTitle:e}=a,{title:t,position:r}=i,{legendTitle:s}=L.legendProperties,n=Wy(i);if(t!==void 0){let o={...t,visible:n};ys({label:e,labelConfig:o,defaults:s}),e.marginLeft=s.marginLeft??0}r===ct.Top||r===ct.Bottom?(e.maxWidth=Number.NaN,e.isMeasured=!1):(e.maxWidth=s.maxWidth??Number.NaN,e.marginTop=n?e.bbox?.height??t?.content?.font?.size??L.generalFontSize:0,e.isMeasured=!0)}function Vx(a){let i=L.legendProperties;a.labels.template=Pn(i.legendLabels),a.valueLabels.template=Pn(i.legendLabels),a.markers.template.width=i.legendMarkersSize,a.markers.template.height=i.legendMarkersSize,a.labels.template.adapter.add("wrap",()=>!0),a.labels.template.adapter.add("maxWidth",e=>{let t=e,r;if(a.baseSprite instanceof Tt&&(r=G(a.baseSprite.uid,"config")?.legend?.labelMaxWidth),a.position===ct.Right||a.position===ct.Left)t=r??L.legendProperties.legendLabels.maxWidth;else if(r!==void 0)t=r;else{let s=0;a.valueLabels.template.disabled||a.valueLabels.each(n=>{s=Math.max(s,n.measuredWidth)}),t=a.measuredWidth-s-45}return t}),a.labels.template.adapter.add("textOutput",(e,t)=>{let r=t.dataItem?.label?.currentText,s,n=G(a.baseSprite.uid,"config");if(n!==void 0){let{series:o}=n;if(Ot(o)===W.PieSeries){let l=gt(o)===pe.PieFromFields?Va:o[0].x,u=t.dataItem?.dataContext?.[l];typeof u=="string"?s=u:u&&typeof u!="object"&&(s=u.toString())}else t.dataItem?.component instanceof lr&&(s=t.dataItem.component.name)}return(s!==void 0&&!yr(s)?Qd(s):s)??r}),a.valueLabels.template.adapter.add("maxWidth",e=>{let t=e,r;return a.baseSprite instanceof Tt&&(r=G(a.baseSprite.uid,"config")?.legend?.valueLabelMaxWidth),a.position===ct.Right||a.position===ct.Left?t=r??L.legendProperties.valueLabels.maxWidth:t=r??Number.NaN,t})}function kx(a,i){a.itemContainers.template.events.on(te.Hit,e=>Ox(e,i)),i instanceof Tt&&a.itemContainers.template.events.on(te.Over,e=>bx(e))}function Lx(a){a.itemContainers.template.reverseOrder=a.rtl}function Pu(a,i){a.adapter.keys().includes(i)||a.adapter.add(i,e=>{let t=e,r=a.dataItem?.dataContext;if(r!==void 0){let s=r instanceof Lr?r.component?.chart:r.chart;if(s!==void 0){let n=G(s.uid,"config"),{rectangleMarkerRadius:o,roundedMarkerRadius:l}=L.legendProperties;t=n?.legend?.roundMarkers===!0?l:o}}return t})}function oy(a){a.markers.each(i=>{let e=i.children.getIndex(0);e instanceof Ft&&(Pu(e,"cornerRadiusBottomLeft"),Pu(e,"cornerRadiusBottomRight"),Pu(e,"cornerRadiusTopLeft"),Pu(e,"cornerRadiusTopRight"),e.validate())})}function Ix(a){a.markers.template.events.on(te.Inited,()=>{oy(a)}),a.events.once(te.Validated,()=>{oy(a)})}function Rx(a){let{legendElements:{legend:i},seriesConfig:e,webChartLegend:t}=a,{visible:r,body:s}=t??{},n=Ot(e),o={type:W.Text,visible:r,content:{...s,type:Gt.TS,text:" "}};ys({label:i.labels.template,labelConfig:o,defaults:L.legendProperties.legendLabels}),i.labels.template.valign=Vi.Middle,i.valueLabels.template.valign=Vi.Middle,n===W.PieSeries&&vx(a),i.valueLabels.template.width=Number.NaN}function Mx(a,i){i.chartContainer.events.on(te.SizeChanged,zi(()=>{let e=G(i.uid,"config")?.legend?.maxHeight??Number.NaN;Number.isFinite(e)||(a.position===ct.Top||a.position===ct.Bottom?e=L.legendProperties.maxHeight:e=i instanceof Tt?i.chartContainer.measuredHeight:i.seriesContainer.measuredHeight),a.maxHeight=e,a.invalidateLayout()}),L.debounceTime)}function jx(a,i){let{position:e}=i;e===ct.Top||e===ct.Bottom?a.contentAlign=Yt.Center:a.contentAlign="none"}function Nx(a,i){let{legend:e}=a;e.events.on(te.DataItemsValidated,()=>{e.dataItems.length>0&&Hy(a,i)})}function Ex(a,i){i===ct.Right||i===ct.Left?a.width=Number.NaN:a.maxWidth=Number.MAX_SAFE_INTEGER}function zy(a,i){let e=Re.pointer;i===!0?(a.itemContainers.template.clickable=!1,a.itemContainers.template.focusable=!1,e=Re.default):(a.itemContainers.template.clickable=!0,a.itemContainers.template.focusable=!0),a.itemContainers.values.forEach(t=>{t.cursorOverStyle=e})}function bG(a,i){let e=new Ja;a.legend=e,Dx(e);let t=Ax(e);return Vx(e),gx(e),kx(e,a),Lx(e),wx(e),Nx({legend:e,legendTitle:t},Ot(i)),Mx(e,a),cx(a,t),xx(e),a.legend.events.on(te.ChildAdded,()=>{let r=G(a.uid,"options");zy(e,r?.disableTogglingLegendItems)}),{legend:e,legendTitle:t}}function xG(a){let{legendElements:i,seriesConfig:e,webChartLegend:t}=a,{legend:r,legendTitle:s}=i,n=r.baseSprite,o=(n===void 0?!0:rc(e))&&t?.visible!==!1;if(n&&t&&o){let{position:l=L.legendProperties.position}=t;rt(r,!0),Fx({legendConfig:t,legendTitle:s}),Ix(r),Rx(a),jx(r,t),Hy(i,Ot(e)),r.position=l,Ex(r,l),$x(r,t),zy(r,G(n.uid,"options")?.disableTogglingLegendItems)}else r.position=ct.Right,r.width=0,rt(r,!1)}function _G(a){let{chart:i,chartConfig:e,seriesIndex:t,axisList:r=[],queryObject:s,hideLoaderHandle:n,selectionTheme:o,ignoreSmoothRenderingLimit:l}=a,u=e.series.length,{rotated:h}=e,p=e.series[t],{y:d,name:c,id:f,assignToSecondValueAxis:y}=p,g=new et;g.id=f,jo(g,n),Io(g,c);let v,x;h!==!0?(v=r[0],x=y===!0&&r[2]?r[2]:r[1]):(v=y===!0&&r[2]?r[2]:r[0],x=r[1]),v!==void 0&&(g.xAxis=v),x!==void 0&&(g.yAxis=x);let P=ds({chart:i}),T=gt(e.series),C=T===pe.BarAndLineSplitByNoAggregation?`${d.toString()}_${ra({where:p.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:[d].flat()[0];P?g.dataFields.valueX=C:g.dataFields.valueY=C;let O=P?r[1]:r[0];if(O!==void 0){let A=Ab(O,P);g.dataFields[A]=L.xAxisField}g.dataFields.customValue=p?.query?.where;let w=sl(s);Xy({series:g,seriesConfig:p,seriesIndex:t,chartSubType:T,colorMatch:e.colorMatch===!0,rendererType:Jd(e.chartRenderer,w?.renderer)}),Yy(p,g);let D=md({chart:i,lineSeries:g,applyPropertiesToClones:!1});return Ub(D,g),lx(g),Mo({element:D,customSelectionTheme:o}),Iu({chart:i,element:D,queryObject:s}),kb({chart:i,numberOfChartSeries:u,series:g,seriesType:W.LineSeries,marker:D,ignoreSmoothRenderingLimit:l}),_x(g),Ro(g),g}function Bx(a){let{series:i,seriesIndex:e,chartSubType:t,seriesConfig:r,colorMatch:s,lineColor:n,rendererType:o}=a,l=kt(i),u=!1,h;if(l!==void 0){r.markerVisible!==!1&&r.visible!==!1?i.bulletsContainer.show():i.bulletsContainer.hide();let{markerSymbol:p}=r;p===void 0&&(p=Wd(),p.color=n),s?p.color=n:p.color??=n;let d=new Set,c;Ou({element:l,markerSymbol:p}),l.clones.each(f=>{if(f.dataItem instanceof Or)Ou({element:f,markerSymbol:p}),f.states.getKey(Rr.CustomActive)?.reset(),f.states.getKey(Rr.CustomInactive)?.reset();else{let y=f.dataItem?.dataContext,g=il({seriesConfig:r,dataItem:y,chartSubType:t,colorMatch:s,rendererType:o}),v=wu({seriesConfig:r,seriesIndex:e,seriesSymbol:p,element:f,colorMatch:s,rendererSymbol:g});h=v.symbolWithColorInfo,c=v.stylingInfo,Au({element:f,stylingInfo:c}),d.add(JSON.stringify(c))}}),u=d.size>1,u||Au({element:l,stylingInfo:c})}return u?void 0:h}function Wx(a){let{series:i,seriesConfig:e,chartSubType:t,colorMatch:r,rendererType:s}=a,n;return i.dataItems?.values.every(o=>{let l=!0,u=o.dataContext;return n=il({seriesConfig:e,dataItem:u,chartSubType:t,colorMatch:r,rendererType:s}),n!==void 0&&(l=!1),l}),n}function Xy(a){let{series:i,seriesIndex:e,seriesConfig:t,chartSubType:r,colorMatch:s,rendererType:n}=a,o=i,l=Wx({series:o,seriesConfig:t,chartSubType:r,colorMatch:s,rendererType:n}),u=wu({seriesConfig:t,seriesIndex:e,seriesSymbol:t.lineSymbol??Hd(e),element:o,colorMatch:s,rendererSymbol:l});return rt(o,t.visible),u.symbolWithColorInfo}function Yy(a,i){a.showArea===!0?a.areaColor!==void 0?(i.fill=pr(a.areaColor),i.fillOpacity=i.fill.alpha===0?0:1):(i.fill=Z(i.stroke.hex,1),i.fillOpacity=L.lineSeries.areaOpacity):i.fillOpacity=0}function Gy(a){let{series:i,seriesIndexMapper:e,seriesSymbolMapForEvent:t,seriesIndex:r,colorMatch:s,rendererType:n}=a,o=a.seriesConfig,l=G(i.chart.uid,"config"),u=l?.series.length??0,h=gt(l?.series);rt(i,o.visible);let p=Xy({series:i,seriesConfig:o,seriesIndex:r,chartSubType:h,colorMatch:s,rendererType:n}),d=Bx({series:i,seriesIndex:r,seriesConfig:o,chartSubType:h,colorMatch:s,lineColor:p.color,rendererType:n});t.set(e.get(o.id)??r,{lineSymbol:p,markerSymbol:d}),Yy(o,i),t.size===u&&(rh({data:t,htmlContainer:i.chart.htmlContainer,chartId:i.chart.id,colorMatchApplied:ky(i.chart)}),i.chart.feedLegend())}function Hx(a){let{seriesConfig:i,lineSeries:e,isRotated:t}=a;i.lineSmoothed===!0?e.smoothing=t?Wu.MonotoneY:Wu.MonotoneX:e.smoothing=L.lineSeries.lineSmoothedKind}function ly(a,i){let{connectLines:e,temporalBinning:t}=i,r=t?.nullPolicy;a.connect=e!==!1&&r!==bs.Null}function $G(a){let{seriesConfig:i,series:e,axes:t,rotationChanged:r,seriesIndex:s,fieldList:n,stackedType:o,queryObject:l,options:u,utilsStrings:h}=a,{visible:p,name:d}=i,c=t[1].valueFormat,f=G(e.chart.uid,"config"),y=ds({config:f}),g=gt(f?.series);e.id=i.id,rt(e,p);let v=d,x=e.dataFields?.customValue??"";(g===pe.BarAndLineSplitBy||g===pe.BarAndLineSplitByNoAggregation)&&(v=nl({queryObject:l,fieldName:Ia(x),fieldValue:v})??v),Io(e,v),ly(e,i),Fb({series:e,seriesConfig:i,rotationChanged:r,stackedType:o,isRotated:y}),ly(e,i),Ry({styleCallback:Gy,callbackProps:a,series:e,seriesConfig:i,onReadyEvent:!0}),Hx({seriesConfig:i,lineSeries:e,isRotated:y}),Qb({series:e,seriesConfig:i,fieldList:n,queryObject:l,seriesIndex:s,setTimeBinningInfoWhenNotProvided:u?.setTimeBinningInfoWhenNotProvided,utilsStrings:h,tooltipFormatter:u?.tooltipFormatter}),ux({series:e,seriesType:W.LineSeries,stackedType:o,dataLabelsConfig:i.dataLabels,yAxisValueFormat:c,customDataLabelFormatter:u?.dataLabelFormatter})}function Ru(a,i){let e=a.series.values.find(s=>s.id===`${i}_${Wi.Top}`),t=a.series.values.find(s=>s.id===`${i}_${Wi.Median}`),r=a.series.values.find(s=>s.id===`${i}_${Wi.Bottom}`);return{topStepLineSeries:e,medianStepLineSeries:t,bottomStepLineSeries:r}}function No(a,i){return a.series.values.find(e=>e.id===`${i}_${Wi.Outliers}`)}function xd(a,i){return(a??L.boxPlot.boxPlotOutliersVisibility)&&i!==!1}function zx(a){let{chart:i,axisList:e=[],chartConfig:t,seriesIndex:r,hideLoaderHandle:s,selectionTheme:n,queryObject:o}=a,l=jr(t),u=t.series[r],[h,p]=e,d=new $t;return d.hoverable=!0,jo(d,s),l||(Mo({element:d.columns.template,customSelectionTheme:n}),Iu({chart:i,element:d.columns.template,queryObject:o})),d.id=u.id,h!==void 0&&(d.xAxis=h),p!==void 0&&(d.yAxis=p),d.simplifiedProcessing=!0,d.columns.template.applyOnClones=!0,d.riseFromOpenState.reset(),d.riseFromPreviousState.reset(),d.dropFromOpenState.reset(),d.dropFromPreviousState.reset(),Io(d,u.name),Ro(d),d}function td(a){let{axisList:i=[],chartConfig:e,seriesIndex:t,type:r,hideLoaderHandle:s,selectionTheme:n}=a,o=e.series[t],[l,u]=i,h=new yi;return h.hoverable=!0,jo(h,s),h.id=`${o.id}_${r}`,l!==void 0&&(h.xAxis=l),u!==void 0&&(h.yAxis=u),h.noRisers=!0,h.simplifiedProcessing=!0,Mo({element:h.segments.template,customSelectionTheme:n}),h.hiddenInLegend=!0,Ro(h),h}function Xx(a){let{chart:i,axisList:e=[],chartConfig:t,hideLoaderHandle:r,seriesIndex:s,selectionTheme:n,queryObject:o}=a,l=t.series[s],u=jr(t),[h,p]=e,d=new et;wa(d.uid,{isBoxPlotOutliersSeries:!0}),jo(d,r),d.id=`${l.id}_${Wi.Outliers}`,h!==void 0&&(d.xAxis=h),p!==void 0&&(d.yAxis=p),d.simplifiedProcessing=!0,d.hiddenInLegend=!0,d.strokeOpacity=0;let c=md({chart:i,lineSeries:d});return u||(Mo({element:c,customSelectionTheme:n}),Iu({chart:i,element:c,queryObject:o})),Ro(d),d}function Sn(a){let{chartConfig:i,seriesConfig:e,meanLineSeries:t,candleStickSeries:r,topStepLineSeries:s,medianStepLineSeries:n,bottomStepLineSeries:o,outliersSeries:l,creation:u=!1,rotationChanged:h,outliersVisibilityChanged:p,standardizeValuesVisibilityChanged:d}=a,{x:c,y:f}=e,y=u||h===!0||d===!0,g=y||p===!0,v=y,x=y;if(i!==void 0){let{showOutliers:P,standardizeValues:T,showMean:C}=i,O=ds({config:i});if(t instanceof et&&x){let j=gt(i.series),ce=e?.query?.where,be=yt({y:j===pe.BoxPlotMultiFieldsAndCategory?f:void 0,chartSubType:j,splitBy:ce,showOutliers:P,standardizeValues:uh(j)?T:!1,key:Ge.Average});O?(t.dataFields.valueX=be,t.dataFields.categoryY=c):(t.dataFields.valueY=be,t.dataFields.categoryX=c),t.dataFields.customValue=ce}let w=ac(i),D=gt(w.series),A=C===!0?void 0:e?.query?.where,H={y:D===pe.BoxPlotMultiFieldsAndCategory?f:void 0,chartSubType:D,splitBy:A,showOutliers:P,standardizeValues:uh(D)?T:!1};if(g){if(r instanceof $t){let j=yt({...H,key:Ge.Min}),ce=yt({...H,key:Ge.FirstQuartile}),be=yt({...H,key:Ge.Max}),ke=yt({...H,key:Ge.ThirdQuartile});O?(r.dataFields.lowValueX=j,r.dataFields.openValueX=ce,r.dataFields.highValueX=be,r.dataFields.valueX=ke,r.dataFields.categoryY=c):(r.dataFields.lowValueY=j,r.dataFields.openValueY=ce,r.dataFields.highValueY=be,r.dataFields.valueY=ke,r.dataFields.categoryX=c),r.dataFields.customValue=A}if(s instanceof yi&&n instanceof yi&&o instanceof yi){let j=yt({key:Ge.Max,...H}),ce=yt({key:Ge.Median,...H}),be=yt({key:Ge.Min,...H});O?(s.dataFields.valueX=j,n.dataFields.valueX=ce,o.dataFields.valueX=be,s.dataFields.categoryY=c,n.dataFields.categoryY=c,o.dataFields.categoryY=c):(s.dataFields.valueY=j,n.dataFields.valueY=ce,o.dataFields.valueY=be,s.dataFields.categoryX=c,n.dataFields.categoryX=c,o.dataFields.categoryX=c),s.dataFields.customValue=A,o.dataFields.customValue=A,n.dataFields.customValue=A}}if(l instanceof et&&v){let j=yt({...H,key:Ge.Outlier});O?(l.dataFields.valueX=j,l.dataFields.categoryY=c):(l.dataFields.valueY=j,l.dataFields.categoryX=c),l.dataFields.customValue=A,l.invalidateRawData()}let E=t?.chart??r?.chart;E!==void 0&&(g||x)&&E.invalidateRawData()}}function Yx(a){let{chart:i,axisList:e=[],chartConfig:t,hideLoaderHandle:r,seriesIndex:s,selectionTheme:n,queryObject:o}=a,l=t.series[s],[u,h]=e,p=new et;wa(p.uid,{isBoxPlotMeanLineSeries:!0}),jo(p,r),p.id=l.id,u!==void 0&&(p.xAxis=u),h!==void 0&&(p.yAxis=h),p.simplifiedProcessing=!0;let d=md({chart:i,lineSeries:p});return Mo({element:d,customSelectionTheme:n}),Iu({chart:i,element:d,queryObject:o}),Ro(p),ax(p),Sn({chartConfig:t,seriesConfig:l,meanLineSeries:p,creation:!0}),p}function PG(a){let{chartConfig:i,seriesIndex:e}=a,t=i.series[e],r=Ot([t]),s=[];if(r===W.BoxPlotSeries){let n=zx(a),o=td({...a,type:Wi.Top}),l=td({...a,type:Wi.Median}),u=td({...a,type:Wi.Bottom}),h=Xx(a);ix(n),rx(h,n),Sn({chartConfig:i,seriesConfig:t,candleStickSeries:n,topStepLineSeries:o,medianStepLineSeries:l,bottomStepLineSeries:u,outliersSeries:h,creation:!0}),s.push(n,o,l,u,h)}else if(r===W.LineSeries){let n=Yx(a);s.push(n)}return s}function SG(a){let{chart:i,chartData:e,chartConfig:t}=a;if(i&&e?.length>1&&t?.showMean===!0){let r=t.series[0].x??L.originalCategoryValue,s=G(i.uid,"boxPlotMeanLinesData");if(s!==void 0&&s.length>1){let n=[];for(let o of e){let l=s.find(u=>r in u&&u[r]===o[r]);l!==void 0&&n.push(l)}Ai(i.uid,{boxPlotMeanLinesData:n})}}}function Gx(a){let{candleStickSeries:i,seriesConfig:e,stylingInfo:t,chartSubType:r,colorMatch:s,rendererType:n}=a;if(t!==void 0){let o={...t},l=Pb({data:i.chart.data,colorMatch:s,chartSubType:r,rendererType:n});t?.outline!==void 0&&l&&(o.outline.stroke=Ao(L.boxPlot.boxPlotWhiskersColor));let{topStepLineSeries:u,medianStepLineSeries:h,bottomStepLineSeries:p}=Ru(i.chart,i.id);if(u!==void 0&&h!==void 0&&p!==void 0&&o.outline!==void 0){o.outline.strokeWidth=L.boxPlot.boxPlotLineWidth,_n(u,o.outline),_n(h,o.outline),_n(p,o.outline);let d=e.visible!==!1;rt(u,d),rt(h,d),rt(p,d)}}}function Ux(a){let{candleStickSeries:i,seriesConfig:e,showOutliers:t,seriesSymbol:r}=a;if(r!==void 0){let s=No(i.chart,i.id);if(s!==void 0){let n=kt(s);if(n!==void 0){let o=xd(t,e.visible),l={type:Gt.SMS,style:Ld.Circle,color:r.color,size:L.boxPlot.boxPlotOutliersSize};n.clones.each(u=>{let h=i.dataItems.values.find(p=>(p.categories.categoryX??p.categories.categoryY)===(u.dataItem?.categories.categoryX??u.dataItem?.categories.categoryY))?.column.fill;Ou({element:u,markerSymbol:{...l,color:yy(h)??l.color},visible:o})})}}}}function Kx(a){let{series:i,seriesConfig:e,seriesIndex:t,numberOfSeries:r,chartSubType:s,colorMatch:n,showMean:o,rendererType:l}=a,u,h,p,d=new Set,c=!1,f=e.fillSymbol??Bd(t);if(i.columns.length===0?(p=wu({seriesConfig:e,seriesIndex:t,seriesSymbol:f,element:new U,colorMatch:n,isChartFillSymbol:!0}),u=p.symbolWithColorInfo,h=p.stylingInfo):i.columns.each(y=>{p=wu({seriesConfig:e,seriesIndex:t,seriesSymbol:f,element:y,colorMatch:n,isChartFillSymbol:!0,rendererSymbol:o?void 0:il({dataItem:y.dataItem?.dataContext,seriesConfig:e,chartSubType:s,colorMatch:n,rendererType:l})}),u=p.symbolWithColorInfo,h=p.stylingInfo,d.add(JSON.stringify(u))}),c=d.size>1,r>1){let y=i.legendDataItem?.marker.children.getIndex(0);y!==void 0?Au({element:y,stylingInfo:h}):i.chart.legend.events.once(te.Validated,()=>{Au({element:i.legendDataItem?.marker.children.getIndex(0),stylingInfo:h}),i.chart.legend.invalidate()})}return{multipleSymbolsForOneSeries:c,seriesSymbol:u,stylingInfo:h}}function qx(a){let{series:i,showOutliers:e,colorMatch:t,seriesIndex:r,seriesIndexMapper:s,seriesSymbolMapForEvent:n,seriesConfig:o,rendererType:l,queryObject:u}=a,h=G(i.chart.uid,"config"),p=jr(h),d=h?.series.length??0,c=gt(h?.series),f=!1,y;if(i instanceof $t&&o.type===W.BoxPlotSeries){let g=Kx({series:i,seriesConfig:o,seriesIndex:r,numberOfSeries:d,chartSubType:c,colorMatch:t,showMean:p,rendererType:l}),{stylingInfo:v}=g;({multipleSymbolsForOneSeries:f,seriesSymbol:y}=g),n.set(s.get(o.id)??r,f?void 0:{fillSymbol:y??o.fillSymbol}),Gx({candleStickSeries:i,seriesConfig:o,colorMatch:t,stylingInfo:v,chartSubType:c,rendererType:l}),Ux({candleStickSeries:i,seriesConfig:o,showOutliers:e,seriesSymbol:y})}else i instanceof et&&o.type===W.LineSeries&&Gy({series:i,seriesConfig:o,seriesIndexMapper:s,seriesSymbolMapForEvent:n,seriesIndex:r,colorMatch:t,rendererType:l});n.size===d&&rh({data:n,htmlContainer:i.chart.htmlContainer,chartId:i.chart.id,colorMatchApplied:ky(i.chart)})}function Zx(a){let{numberOfSeries:i,chart:e,showMean:t}=a,r=ds({chart:e}),s=r?e.yAxes.getIndex(0)?.renderer:e.xAxes.getIndex(0)?.renderer;if(s!==void 0){let{cellStartLocation:n,cellEndLocation:o}=s,l=n/(t===!0?1:i),u=e.series.values.filter(h=>h instanceof $t);u.forEach((h,p)=>{let d=n+p/u.length*(o-n)+l,c=n+(p+1)/u.length*(o-n)-l,{topStepLineSeries:f,medianStepLineSeries:y,bottomStepLineSeries:g}=Ru(e,h.id);f!==void 0&&(f.startLocation=d,f.endLocation=c),y!==void 0&&(y.startLocation=d,y.endLocation=c),g!==void 0&&(g.startLocation=d,g.endLocation=c);let v=No(e,h.id);if(v!==void 0){let x=(d+c)/2;r?v.dataItems.template.locations.categoryY=x:v.dataItems.template.locations.categoryX=x}})}}function Qx(a){let{outliersSeries:i,chartData:e,dataWasUpdated:t,rotationChanged:r,seriesReordered:s}=a;(r===!0||t===!0||s===!0)&&(i.data=e?.outliers??[])}function Jx(a){let{meanLineSeries:i,chartData:e,rotationChanged:t,sortChanged:r,dataWasUpdated:s,seriesReordered:n}=a;(t===!0||s===!0||r===!0||n===!0)&&(i.data=e?.meanLines??[],i.invalidateData())}function e0(a){let{chart:i,chartConfig:e,seriesConfig:t,chartData:r,candleStickSeriesId:s,showOutliers:n,dataWasUpdated:o,rotationChanged:l,seriesReordered:u,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:p}=a,d=No(i,s);if(d!==void 0){let c=kt(d);if(c!==void 0){let f=xd(n,t.visible);c.disabled=!f,Qx({outliersSeries:d,chartData:r,dataWasUpdated:o,rotationChanged:l,seriesReordered:u})}Sn({chartConfig:e,seriesConfig:t,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:p,rotationChanged:l,outliersSeries:d})}}function t0(a){let{meanLineSeries:i,seriesConfig:e,chartData:t,dataWasUpdated:r,seriesReordered:s,sortChanged:n,rotationChanged:o,chartConfig:l,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:h}=a;Io(i,e?.name),Sn({chartConfig:l,seriesConfig:e,meanLineSeries:i,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:h,rotationChanged:o}),Jx({meanLineSeries:i,chartData:t,dataWasUpdated:r,seriesReordered:s,sortChanged:n,rotationChanged:o})}function i0(a){let{series:i,chartConfig:e,seriesConfig:t,rotationChanged:r,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n}=a;Io(i,t?.name),i.hiddenInLegend=jr(e),Sn({chartConfig:e,seriesConfig:t,candleStickSeries:i,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:r})}function r0(a){let{chart:i,chartConfig:e,seriesConfig:t,candleStickSeriesId:r,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:o}=a,l=t.visible!==!1,{topStepLineSeries:u,medianStepLineSeries:h,bottomStepLineSeries:p}=Ru(i,r);u!==void 0&&rt(u,l),h!==void 0&&rt(h,l),p!==void 0&&rt(p,l),Sn({chartConfig:e,seriesConfig:t,outliersVisibilityChanged:s,standardizeValuesVisibilityChanged:n,rotationChanged:o,topStepLineSeries:u,medianStepLineSeries:h,bottomStepLineSeries:p})}function CG(a){let{chart:i,series:e,chartData:t,utilsStrings:r,dataWasUpdated:s,sortChanged:n,seriesReordered:o,fieldList:l,outliersVisibilityChanged:u,showMean:h,seriesConfig:p,showOutliers:d,standardizeValuesVisibilityChanged:c,rotationChanged:f,options:y,queryObject:g}=a,{tooltipFormatter:v}=y??{};Zx({numberOfSeries:a.numberOfSeries,chart:i,showMean:h});let x=G(i.uid,"config");if(x!==void 0){if(e instanceof $t&&p.type===W.BoxPlotSeries){let{id:P}=e;i0({series:e,chartConfig:x,seriesConfig:p,rotationChanged:f,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:c}),r0({chart:i,chartConfig:x,seriesConfig:p,candleStickSeriesId:P,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:c,rotationChanged:f}),e0({chart:i,chartConfig:x,seriesConfig:p,chartData:t,showOutliers:d,candleStickSeriesId:P,dataWasUpdated:s,rotationChanged:f,seriesReordered:o,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:c})}else e instanceof et&&p.type===W.LineSeries&&t0({chartConfig:x,chartData:t,meanLineSeries:e,seriesConfig:p,dataWasUpdated:s,seriesReordered:o,sortChanged:n,rotationChanged:f,outliersVisibilityChanged:u,standardizeValuesVisibilityChanged:c});Ry({styleCallback:qx,callbackProps:a,series:e,seriesConfig:p,onReadyEvent:!0}),ox({series:e,seriesConfig:p,fieldList:l,tooltipFormatter:v,utilsStrings:r,queryObject:g})}}function a0(a){let i=a.series.getIndex(0);if(i!==void 0){let e=!1;i.slices.each(t=>{t.isActive&&(e=!0),Mr({element:t,selected:!1,backToDefaultState:!0})}),e&&a.feedLegend()}}function s0(a,i=!0){let e;a.series.each((t,r)=>{if(!i||t.visible){e=ku(t,r);let s=[];if(e===W.BarSeries)s=t.columns?.values;else if(e===W.LineSeries)s=kt(t)?.clones?.values;else if(e===W.BoxPlotSeries){if(t instanceof $t)s.push(...t.columns.values);else if(t instanceof yi)s.push(...t.segments.values);else if(t instanceof et){let n=kt(t)?.clones?.values;n!==void 0&&s.push(...n)}}s!==void 0&&s.forEach(n=>{Mr({element:n,selected:!1,backToDefaultState:!0})})}})}function Mu(a){let{chart:i,selectionSource:e,clearOnlyVisibleSeries:t,disposeStyleAndSelection:r}=a,s=G(i.uid,"currentSelectionDataItems");r!==!1&&Ly(i,"updateSelectionCallbackDisposer"),Ai(i.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),Jr(i)&&(i instanceof qe?s0(i,t??!0):i instanceof Tt&&a0(i)),s&&al({data:{selectionSource:e??mr.ClearSelection},htmlContainer:i.htmlContainer})}function n0(a){$c(),mc(a.htmlContainer),Mu({chart:a})}function o0(a){let{chart:i,chartType:e,showMean:t}=a;return i.series.values.filter(r=>e!==W.BoxPlotSeries||!t&&r instanceof $t||t&&gi(r.uid,"isBoxPlotMeanLineSeries")).every(r=>gi(r.uid,"isSelectionApplied")===!0)}function l0(a){a.series.each(i=>wa(i.uid,{isSelectionApplied:void 0}))}function Uy(a,i){let e=G(a.uid,"actionMode");if((e===wt.MonoSelection||e===wt.None)&&i.length>1)Mu({chart:a});else{let t=a instanceof Tt;i.forEach(r=>{Mr({element:r,useNativeState:t,selected:!0})})}}function u0(a){let{chart:i,chartConfig:e,series:t,options:r,elementsToApplySelectionTo:s,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:u,queryObject:h}=a,p=Ot(e.series),d=gt(e.series),c=ka(e),f=[],y=[],g=[],v=Ds(e.series),x=t instanceof Vt?t.dataFields?.customValue??"":"";return s.forEach(P=>{if(!(P instanceof Or)){let T=P.dataItem?.dataContext;if(T!==void 0&&(p===W.BoxPlotSeries&&T[L.boxPlot.boxPlotOutlierId]!==!0||d===pe.BarAndLineMultiFields)&&(T=Fo({dataContext:T,yAxisField:u,yList:v,xAxisField:l,splitBy:x,chartType:p,chartSubType:d,showOutliers:c,isFeatureCollectionLayer:ws(h)})),Oy({elementDataContext:T,options:r,selectionDataItems:n,layerOidField:o,xAxisField:l,yAxisField:u,chartType:p,splitBy:x,chartSubType:d,showOutliers:c}))if(f.push(P),P.dataItem!==void 0&&y.push(P.dataItem.index),P?.dataItem instanceof Ni&&T!==void 0)g.push(T);else{let C=new Set;p===W.PieSeries&&Ts(T)?(pd({groupOfSlicesDataContext:T})??[]).forEach(O=>{n.forEach(w=>{Ty({layerOidField:o,sliceDataContext:O,selectionDataContext:w,xAxisField:l})&&C.add(O)})}):C.add(T),Array.from(C)?.forEach(O=>{let w=Fo({dataContext:O,yAxisField:u,yList:v,xAxisField:l,splitBy:x,chartType:p,chartSubType:d,showOutliers:c,isFeatureCollectionLayer:ws(h)});w!==void 0&&g.push(w)})}else Mr({element:P,useNativeState:i instanceof Tt,selected:!1})}}),Uy(i,f),{selectedIndexes:y,newSelectionDataItems:g}}function h0(a){let{chart:i,selectionIndexes:e,queryObject:t}=a,r=[],s=[],n=G(i.uid,"config"),o=ka(n),l=Ds(n?.series??[]),u=gt(n?.series);return i.series.each((h,p)=>{if(n&&h.visible){let d=n.series[0].x,c=ms(h),f=h instanceof Vt?h.dataFields?.customValue??"":"",y=ku(h,p),g=e.get(p);if(g!==void 0){let v;if(h instanceof it?v=h.columns:h instanceof ei?v=h.slices:v=kt(h)?.clones,v!==void 0){let{indexesToSelect:x}=g;v.each((P,T)=>{if(P&&(x===void 0||x.includes(T))){let C;y===W.BoxPlotSeries&&P.dataItem instanceof Ni?C=P.dataItem.dataContext:P.dataItem instanceof Or||(C=Fo({dataContext:P.dataItem?.dataContext,yList:l,yAxisField:c,xAxisField:d,splitBy:f,chartType:y,chartSubType:u,showOutliers:o,isFeatureCollectionLayer:ws(t)})),C!==void 0&&r.push(C),s.push(P)}else Mr({element:P,useNativeState:i instanceof Tt,selected:!1})})}}}}),Uy(i,s),r}function p0(a){let{series:i,chartType:e,showMean:t}=a,r;switch(e){case W.ComboLineAndBarSeries:if(i instanceof it)r=i.columns.values;else if(i instanceof et){let s=kt(i);s!==void 0&&(r=s.clones.values)}break;case W.BarSeries:i instanceof it&&(r=i.columns.values);break;case W.LineSeries:if(i instanceof et){let s=kt(i);s!==void 0&&(r=s.clones.values)}break;case W.PieSeries:r=i.slices.values;break;case W.BoxPlotSeries:if(i.chart instanceof qe){if(i instanceof $t&&t!==!0){r=[...i.columns.values];let s=No(i.chart,i.id);if(s!==void 0&&s.visible){let n=kt(s);n!==void 0&&r.push(...n.clones.values)}}else if(t===!0&&i instanceof et&&gi(i.uid,"isBoxPlotMeanLineSeries")){let s=kt(i);s!==void 0&&(r=s.clones.values)}}break}return r}function d0(a){let{series:i,seriesIndex:e,queryObject:t,options:r,dataWasUpdated:s,sortChanged:n,groupOfSlicesWasUpdated:o,xAxisField:l,yAxisField:u,rotationChanged:h}=a,{filterBySelection:p,selectionData:d,returnSelectionIndexes:c,returnSelectionOIDs:f}=r??{},{selectionIndexes:y}=d??{},{chart:g}=i,v=G(g.uid,"config"),x=ka(v),P=jr(v),T=Ot(v?.series);if(p!==!0&&v!==void 0){let C=p0({series:i,chartType:T,showMean:P}),O=gt(v?.series),w=sl(t),D=La(w).idField,A=G(g.uid,"currentSelectionDataItems"),H=!1,E=!1,j,ce=!1;if(C?.[0]!==void 0){if(r?.viewExtentUpdated!==!0){j=r?.selectionData?.selectionItems??A;let be=G(g.uid,"currentSelectionIndexes");ce=nc({itemsA:j,itemsB:A,isPieFromFields:O===pe.PieFromFields,x:v.series[0].x});let ke=y?.keys.length!==be?.keys.length||!Fd(y,be);H=n===!0||s===!0||o===!0||h===!0||j!==void 0&&ce;let K=!0;if(y!==void 0&&y.size>0){let{indexesToSelect:De}=y.get(e??0)??{};K=De!==void 0&&De[0]===void 0}E=s===!0||o===!0||h===!0||!K&&ke}if(H&&j!==void 0&&j.length>0){let{selectedIndexes:be,newSelectionDataItems:ke}=u0({chart:g,chartConfig:v,options:r,series:i,elementsToApplySelectionTo:C,selectionDataItems:j,layerOidField:D,xAxisField:l,yAxisField:u}),K=G(g.uid,"computedSelectionDataItems")??[];if(K.push(...ke),v.series.length>1&&O!==pe.BarAndLineNoAggregation&&O!==pe.BarAndLineSplitByNoAggregation&&(K=hc({data:K,x:v.series[0].x,splitByField:Ia(v.series[0].query?.where)})),Ai(g.uid,{computedSelectionDataItems:K}),c===!0){let De=Array.from(new Set(be)),Le=G(g.uid,"computedSelectionIndexes");Le===void 0&&(Le=new Map),De.length===C.length?Le.set(e??0,{}):Le.set(e??0,{indexesToSelect:De}),Ai(g.uid,{computedSelectionIndexes:Le})}}else if(y!==void 0&&E)j=h0({chart:g,selectionIndexes:y,queryObject:t});else{let be=j===void 0||j.length===0,ke=i instanceof Vt?i.dataFields?.customValue??"":"",K=De=>{let Le=De.dataItem?.dataContext;return Le!==void 0&&T===W.BoxPlotSeries&&Le[L.boxPlot.boxPlotOutlierId]!==!0&&(Le=Fo({dataContext:Le,yAxisField:u,yList:Ds(v.series),xAxisField:l,splitBy:ke,chartType:T,chartSubType:O,showOutliers:x,isFeatureCollectionLayer:ws(t)})),Oy({elementDataContext:Le,options:r,selectionDataItems:j??A??[],layerOidField:D,xAxisField:l,yAxisField:u,chartType:T,splitBy:ke,chartSubType:O,showOutliers:x})};C.forEach(De=>{let Le=De.isActive||K(De);Mr({element:De,selected:Le,useNativeState:g instanceof Tt,backToDefaultState:be})})}}if(wa(i.uid,{isSelectionApplied:!0}),o0({chart:g,chartType:T,showMean:P})&&(l0(g),ce||E)){let be=G(g.uid,"computedSelectionDataItems")??j;be=Array.from(new Set(be?.map(K=>JSON.stringify(K)))).map(K=>JSON.parse(K)),j!==void 0&&Ai(g.uid,{currentSelectionDataItems:be}),d?.selectionOIDs!==void 0&&Ai(g.uid,{currentSelectionOIDs:d.selectionOIDs});let ke;if(c===!0&&(ke=G(g.uid,"computedSelectionIndexes")??y,ke!==void 0&&Ai(g.uid,{currentSelectionIndexes:ke})),be===void 0||be.length===0)Mu({chart:g,selectionSource:mr.ProgrammaticSelection});else{let K={selectionItems:be,selectionSource:mr.ProgrammaticSelection};c===!0&&(K.selectionIndexes=ke),f!==!1&&(K.selectionOIDs=d?.selectionOIDs??G(g.uid,"currentSelectionOIDs")),al({data:K,htmlContainer:g.htmlContainer})}Ai(g.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}async function TG(a){let{chart:i,options:e,dataWasUpdated:t,chartData:r,chartConfig:s,queryObject:n,rotationChanged:o,errorStrings:l}=a,u=G(i.uid,"currentSelectionOIDs"),h=G(i.uid,"queryConfig");if(!Os(n)){let p=await lc({chartConfig:s,queryConfig:h,chartData:r,currentSelectionOIDs:u,dataWasUpdated:t,queryObject:n,options:e,errorStrings:l});p!==void 0&&e!==void 0&&(e.selectionData={...e?.selectionData,selectionItems:p})}for(let p=0;p<i.series.length;p+=1){let d=i.series.getIndex(p);if(d){let c=Lu(d,s);if(c){let f=Ot([c]);if(f===W.BoxPlotSeries&&(d=i.series.values.find(y=>y.id===c.id)),d!==void 0){let y=c.x,g=f===W.BoxPlotSeries?c.y.toString():ms(d);jb({callbackProps:{...a,series:d,seriesIndex:p,xAxisField:y,yAxisField:g},series:d,seriesConfig:c,onReadyEvent:o===!0})}}}}}async function _d(a){let{chart:i,listSelectedElements:e,selectionSource:t,queryObject:r}=a,s=G(i.uid,"options"),n=G(i.uid,"config"),o=Os(r);if(n)if(e.length===0)Mu({chart:i,selectionSource:t,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1});else try{Ly(i,"updateSelectionCallbackDisposer");let l=ka(n),u=[],h=[],p=[],d=new Map,{xAxisField:c}=e[0]??{},f=Ot(n?.series),y=gt(n?.series),g=Ds(n?.series??[]),v=ah(r).find(P=>P.name===c)?.type;if(e.forEach(P=>{let{elementDataContext:T,yAxisField:C,splitBy:O}=P,w=Fo({dataContext:T,yAxisField:C,yList:g,xAxisField:c,splitBy:O,chartType:f,chartSubType:y,showOutliers:l,isFeatureCollectionLayer:ws(r)});w!==void 0&&h.push(w);let{seriesIndex:D,elementIndex:A}=P;if(A!==void 0){let H=d.get(D)?.indexesToSelect??[];H.push(A),d.set(D,{indexesToSelect:Array.from(new Set(H))})}if(!o&&T!==void 0){let H=T[_s.uniqueIdsName]!==void 0?[T[_s.uniqueIdsName]].flat():[];if(H.length>0)p.push(...H);else if(s?.returnSelectionOIDs!==!1){let E=oc({dataContext:T,options:s,xAxisField:c,yAxisField:C??"",splitBy:O,xAxisFieldType:v,chartConfig:n,queryObject:r});u.push(E)}}}),!o&&s?.returnSelectionOIDs!==!1&&u.length>0){let P={...G(i.uid,"queryConfig")};delete P.groupByFieldsForStatistics,delete P.orderByFields,delete P.outStatistics;let T=await uc({whereList:u,queryObject:r,queryConfig:P});if(u.length===e.length)p=T;else for(let C=0;C<T.length;C+=1)p.push(T[C])}Ai(i.uid,{currentSelectionDataItems:h,currentSelectionOIDs:p,currentSelectionIndexes:d});let x={selectionItems:h,selectionSource:t};s?.returnSelectionIndexes===!0&&(x.selectionIndexes=d),s?.returnSelectionOIDs!==!1&&(x.selectionOIDs=p),al({data:x,htmlContainer:i.htmlContainer})}catch(l){Ai(i.uid,{pendingSelectionQueries:!1});let{httpStatus:u}=l instanceof gc?l.details.details:l.details??{};if(u===429)n0(i);else throw l}Ai(i.uid,{pendingSelectionQueries:!1})}function c0(a){let{axis:i}=a,e=i.chart;return{axis:i,chart:e}}async function f0(a,i){let e=a.target,{axis:t,chart:r}=c0(e),s=[],{seriesDataItems:n}=a.target.dataItem;Object.keys(n).forEach(p=>{if(Object.hasOwn(n,p)){let d=n[p];for(let c of d)if(c instanceof Ht)s.push(c.column);else{let f=c.sprites.find(y=>!(y instanceof Je));f!==void 0&&s.push(f)}}});let o=yd(a,r),l=t instanceof fe||t instanceof $e,u=[],h=G(r.uid,"config");if(h){let p=h.series[0].x??"";r.series.each((d,c)=>{let f;if(d instanceof it?f=d.columns:f=kt(d)?.clones,d.visible){let y=ms(d),g=d.dataFields?.customValue??"";f?.each((v,x)=>{let P=s.includes(v);Mr({element:v,selected:P,multiSelect:o,isDateOrCategoryAxis:l})&&u.push({element:v,elementDataContext:v.dataItem?.dataContext,yAxisField:y,xAxisField:p,splitBy:g,seriesIndex:c,elementIndex:x,chartConfig:h})})}}),await _d({chart:r,listSelectedElements:u,selectionSource:mr.SelectionByClick,queryObject:i})}}function m0(a,i){if(Jr(a.renderer.labels.template)){a.renderer.labels.template.events.on(te.Hit,async t=>{a.renderer.labels.template.events.isEnabled(te.Hit)&&await f0(t,i)});let e=G(a.chart.uid,"filterBySelection")===!0?Re.default:Re.pointer;sd(a,e)}}function Fu(a,i){if(Jr(a?.renderer?.labels?.template)&&(a instanceof $e||a instanceof fe))if(i)a.renderer.labels.template.events.disableType(te.Hit),sd(a,Re.default);else{a.renderer.labels.template.events.enableType(te.Hit);let e=G(a.chart.uid,"filterBySelection")===!0?Re.default:Re.pointer;sd(a,e)}}var Qr={Guides:"guides",Ticks:"ticks",GaugeFirstAndLastGuides:"firstAndLast",GaugeTicksWithLabels:"gaugeTicksWithLabels"};function Vu(a){let{chart:i,label:e,labelType:t}=a,r=Number.NaN;switch(t){case Bi.GuideLabel:!(i instanceof hr)&&i instanceof qe&&(e.rotation===90||e.rotation===270?r=i.seriesContainer.measuredHeight:r=i.seriesContainer.measuredWidth);break;case Bi.XAxisTitle:i instanceof qe&&(r=i.seriesContainer.measuredWidth);break;case Bi.YAxisTitle:i instanceof qe&&(r=i.seriesContainer.measuredHeight);break;case Bi.ChartTitle:case Bi.ChartSubTitle:case Bi.ChartFooter:r=i.measuredWidth-20;break}r>0&&(e.maxWidth=r,i.invalidateLabels(),i instanceof qe&&(i.xAxes.getIndex(0)?.invalidateLabels(),i.xAxes.getIndex(1)?.invalidateLabels(),i.yAxes.getIndex(0)?.invalidateLabels(),i.yAxes.getIndex(1)?.invalidateLabels()))}function Ky(a){let{chart:i,labelType:e}=a;Vu(a);let t=e===Bi.YAxisTitle?1:0;i.events.on(te.Validated,zi(()=>Vu(a),L.debounceTime),t)}function y0(a,i){a.chart instanceof hr||(i.adapter.add("dx",e=>{let t=e;return(i.rotation===90||i.rotation===270)&&(t=i.bbox.height,i.dataItem.value!==i.dataItem.endValue&&(t/=2)),t}),i.padding(0,10,0,10))}function g0(a,i){let e=a.renderer instanceof qr?new ur:new wr;return e.disabled=!0,e.axis=a,fd(e),Do(e.uid,{isGuide:i}),Ky({chart:a.chart,label:e,labelType:Bi.GuideLabel}),y0(a,e),e}function v0(a){let{label:i,labelConfig:e,guideType:t}=a,r=i.axis.renderer instanceof dt,s;i instanceof ur||(r?t===Gt.SFS?s=L.verticalSurfaceGuideLabels:s=L.verticalLineGuideLabels:t===Gt.SFS?s=L.horizontalSurfaceGuideLabels:s=L.horizontalLineGuideLabels);let n={...e};n.content.rightToLeft=i.axis.rtl,ys({label:i,labelConfig:n,defaults:s}),i.axis.invalidateLabels()}function b0(a,i,e){let t=e.chart;a.axisFill.tooltip=new nr,a.axisFill.interactionsEnabled=!0,a.axisFill.tooltipPosition=L.guideTooltipPosition,a.axisFill.tooltip.label.wrap=!0,a.axisFill.tooltip.adapter.add("maxWidth",()=>Math.min(L.tooltipWidth,t.seriesContainer.maxWidth)),a.axisFill.tooltip.boundingContainer=t.chartAndLegendContainer,a.axisFill.adapter.add("tooltipHTML",(r,s)=>{let n=r,{dataItem:o,axis:l}=s;if(!(l.renderer instanceof qr)){let u=Zt(l.uid,"guideTooltipFormatter");if(u!==void 0){let h="",p;o instanceof or?(h=o.value,p=o.endValue):o instanceof kr?(h=o.category,p=o.endCategory):o instanceof _a&&(h=o.date,p=o.endDate),n=u({guideName:o.id??"",start:h,end:p,guideIndex:i})}}return n}),a.axisFill.tooltip.events.on(te.Shown,r=>{let s=G(a.axisFill.axis.chart.uid,"config");if(s!==void 0){let n=G(a.axisFill.axis.chart.uid,"isRotated"),o=Eo(a.axisFill.axis.renderer,n)?0:1,l=s.axes?.[o]?.guides,{tooltipReverseColor:u}=l?.[i]??{};Ny(r.target,u)}})}function x0(a,i){return e=>{let{guideName:t,start:r,end:s,guideIndex:n}=e,{chart:o}=a,l="";if(o!==void 0){let u=G(o.uid,"config"),h=G(o.uid,"isRotated"),p=Eo(a.renderer,h)?0:1,d=u?.axes?.[p]?.guides,c=r,f=s;if(a instanceof fe){let x=new Ii,P;if(o!==void 0){let T=G(a.chart.uid,"formatLocale");x=Oa({type:W.DateAxisFormat,iLocale:o.language.locale,formatLocale:T}),P=u?.axes?.[0]?.valueFormat?.intlOptions}c=x.format(r,P),s!==void 0&&(f=x.format(s,P))}else if(a instanceof Q&&!(r instanceof Date)&&!(s instanceof Date)){let{start:x,end:P}=$d(a,d?.[n]);Number.isFinite(x)&&(c=x),Number.isFinite(P)&&(f=P);let T=Zt(a.uid,"numberFormatter")??(C=>new Xr().format(C));c=T(c),f!==void 0&&(f=T(f))}else a instanceof $e&&(c=r,f=s);let y=c.toString(),g=f?.toString()??"";!yr(g)&&y!==g?l=Ir(i.guideTooltipLabel,{guideStart:y,guideEnd:g}):l=y;let v=Ps(o.rtl);l=`${t}${v} ${l}`}return l}}function _0(a){let{axis:i,guideTooltipFormatter:e,utilsStrings:t}=a;zt(i.uid,{guideTooltipFormatter:e??x0(i,t)})}function $0(a){let i=Fa.Value;return a instanceof fe?i=Fa.Date:a instanceof $e&&(i=Fa.Category),i}function uy(a){let{inputValue:i,axisType:e,axisMin:t,axisMax:r}=a,s=i;if(i!=null)switch(e){case Fa.Date:s=i instanceof Date?i:new Date(i);break;case Fa.Category:s=i.toString();break;case Fa.Value:if(typeof i!="number"){let n=i.toString().trim(),o=Qu(n);o!==void 0?t!==void 0&&r!==void 0?s=o/100*(r-t)+t:s=null:s=Number.parseFloat(n)}break}return s}function $d(a,i){let{start:e,end:t}=i??{},r;if(i!==void 0&&e!==void 0&&e!==null){let s=$0(a),n=a instanceof Q?a.min:void 0,o=a instanceof Q?a.max:void 0,l=uy({inputValue:e,axisType:s,axisMin:n,axisMax:o}),u=i.style?.type===Gt.SFS&&t!==null&&t!==void 0?uy({inputValue:t,axisType:s,axisMin:n,axisMax:o}):l;r={isValidGuide:l!=null&&u!=null,start:l,end:u}}else r={isValidGuide:!1,start:void 0,end:void 0};return r}function P0(a){let{axis:i,tickOrGuide:e,numberOfElementsToBeDeleted:t}=a,r=[],s=i.axisRanges.length-1,n=t;for(;n>0&&s>=0;){let o=i.axisRanges.getIndex(s);o!==void 0&&(li(o.label?.uid,"isGuide")??!1)===!0&&e===Qr.Guides&&(r.push(o),n-=1),s-=1}for(let o=0;o<r.length;o+=1)i.axisRanges.removeValue(r[o])}function Pd(a,i){return a.axisRanges?.values?.filter(e=>{let t=li(e.label?.uid,"isGuide")??!1,r=li(e.label?.uid,"isGaugeAxisLabel")??!1,s=!1;switch(i){case Qr.Ticks:s=t===!1;break;case Qr.Guides:s=t===!0;break;case Qr.GaugeTicksWithLabels:s=r===!0&&e.value!==void 0;break;case Qr.GaugeFirstAndLastGuides:s=t===!0&&(e.id===L.gaugeFirstLabelId||e.id===L.gaugeLastLabelId);break}return s})??[]}function S0(a,i){let e=a.axisRanges.length;{let r=a.axisRanges.values.findIndex(s=>s.id===L.gaugeFirstLabelId);r!==-1&&(e=r)}let t;return a instanceof $e?t=new kr:a instanceof fe?t=new _a:t=new or,a.axisRanges.insertIndex(e,t),t.label=g0(a,i),t.axisFill.fillOpacity=1,t.axisFill.disabled=!0,t.grid.strokeOpacity=1,t}function C0(a,i){let e=S0(a,!0);b0(e,i,a),e.tick!==void 0&&(e.tick.disabled=!0),e.label!==void 0&&(e.label.inside=!0),e.grid!==void 0&&(e.grid.disabled=!0)}function T0(a,i){let{start:e,end:t}=i,r=G(a.uid,"config"),s=th(r),n=e!==null?e:void 0;n=a.data.find(l=>l[L.originalCategoryValue]===e)?.[s]??n;let o=t!==null?t:void 0;if(o!==void 0)for(let l=a.data.length-1;l>=0;l-=1){let u=a.data[l];if(u[L.originalCategoryValue]===t){o=u[s];break}}return{modifiedStart:n,modifiedEnd:o}}function O0(a,i){let{start:e,end:t}=i;if(e!==void 0){let{chart:r}=a?.component??{},s;if(a instanceof kr&&r instanceof qe&&G(r.uid,"isNonAggregatedChart")===!0){let{modifiedStart:n,modifiedEnd:o}=T0(r,i);s={isValidGuide:!0,start:n??e,end:o??t}}else s=$d(a.axisFill.axis,i);s.isValidGuide&&(a instanceof kr?(a.category=`${s.start?.toString()}`,a.endCategory=`${s.end?.toString()}`):a instanceof _a?(a.date=s.start,a.endDate=s.end):(a.value=s.start,a.endValue=s.end))}}function w0(a,i){a.axisFill.above=i??L.guideAbove,a.grid.above=i??L.guideAbove}function D0(a,i){let{axisFill:e,label:t}=a;if(i!==void 0){if(a.id=i.name,a.visible=i.visible!==void 0?i.visible:a.visible,O0(a,i),i.style.type===Gt.SLS?ad({element:e,fillSymbol:{type:Gt.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===Gt.SFS&&ad({element:e,fillSymbol:i.style,visible:i.visible}),w0(a,i.above),i.label!==void 0){let s={type:W.Text,visible:i.visible,content:i.label};v0({label:t,labelConfig:s,guideType:i.style.type})}let r=a.component?.chart;r!==void 0&&Vu({chart:r,label:t,labelType:Bi.GuideLabel})}else e.disabled=!0,t.disabled=!0}function A0(a,i){let e=Pd(a,Qr.Guides).length,t=i?.length??e;for(let r=e;r<t;r+=1)C0(a,r)}function F0(a){let{axis:i,guides:e,guideTooltipFormatter:t,utilsStrings:r}=a;if(e!==void 0){for(let s=0;s<e.length;s+=1){let n=Pd(i,Qr.Guides)[s];n!==void 0&&D0(n,e[s])}_0({axis:i,guideTooltipFormatter:t,utilsStrings:r})}}function V0(a,i){let e=Pd(a,Qr.Guides).length,t=i?.length??0,r=e-t;P0({axis:a,numberOfElementsToBeDeleted:r,tickOrGuide:Qr.Guides})}function k0(a){let{axis:i,guides:e}=a;A0(i,e),F0(a),V0(i,e)}function L0(a){let{axis:i,labels:e,restoreLabelsVisibility:t=!0}=a;(e??i.renderer.labels.values).forEach(r=>{r.x instanceof ae?r.x.value:r.x,t&&rt(r,!0)})}function qy(a){let i=a.renderer.labels.values.filter(e=>li(e.uid,"isGuide")!==!0&&e.measuredWidth>0).length;return a.pixelWidth/i}function I0(a){let{target:i}=a;if((G(i.chart.uid,"config")?.horizontalAxisLabelsBehavior??xi.Rotate)===xi.Wrap){let e=Number.MAX_SAFE_INTEGER;i.renderer.labels.each(r=>{li(r.uid,"isGuide")!==!0&&r.measuredWidth>0&&(e=Math.min(e,r.bbox.width))});let t=i instanceof fe?i.pixelWidth/L.maxNumberOfXAxisLabelsInWrapModeForDateAxis:i.pixelWidth/L.maxNumberOfXAxisLabelsInWrapMode;i.renderer.minGridDistance=Math.max(e+1,t)}}function R0(a){let{axis:i,labelsConfig:e,horizontalAxisLabelsBehavior:t,isSecondValueAxis:r,tickSpacing:s}=a,n=i.renderer.minGridDistance;if(typeof s=="number"&&Number.isFinite(s))n=s;else if(i.renderer instanceof qr)n=L.gauge.gaugeMinGridDistance;else if(i instanceof Q)n=i.renderer instanceof dt?L.xAxisMinGridDistance:L.yAxisMinGridDistance;else if(i.renderer instanceof dt)if(r===!0)n=L.secondRotatedValueAxisMinGridDistance;else if(t===void 0||t===xi.Rotate){let o=e.content.font?.size??L.generalFontSize,l=i instanceof $e?L.categoryAxisLabelPadding:L.axisLabelPadding;n=o*l}else if(t===xi.Wrap){let o=zi(I0,L.debounceTime);zt(i.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:o}),i.events.on(te.SizeChanged,o),i.dispatchImmediately(te.SizeChanged)}else t===xi.Stagger?n=L.staggerMinGridDistance:n=i instanceof $e?L.xCategoryAxisMinGridDistance:L.xAxisMinGridDistance;else n=i instanceof $e?L.yCategoryAxisMinGridDistance:L.yAxisMinGridDistance;i.renderer.minGridDistance=n}function M0(a){let i=a.renderer.labels.template;Jr(i)&&(i.adapter.add("rotation",(e,t)=>li(t.uid,"isGuide")!==!0?Zt(a.uid,"labelsSymbol")?.angle??e:e),i.adapter.add("verticalCenter",(e,t)=>li(t.uid,"isGuide")!==!0?Zt(a.uid,"labelsSymbol")?.verticalCenter??e:e),i.adapter.add("horizontalCenter",(e,t)=>li(t.uid,"isGuide")!==!0?Zt(a.uid,"labelsSymbol")?.horizontalCenter??e:e),i.adapter.add("dy",(e,t)=>{let r=L.axisLabel.dy??e??0;return t.dataItem?.tick?.length>L.axisTickLength?r=e??0:r=Number(li(t.uid,"isGuide")!==!0?Zt(a.uid,"labelsSymbol")?.yOffset??r:r),r}))}function j0(a){let{target:i}=a;if(i.chart!==void 0){let e=G(i.chart.uid,"config")?.axes?.[0].labels;if((e?.visible??!0)&&e!==void 0&&i.renderer.labels.length>1){let t=0;i.renderer.labels.each(n=>{if(li(n.uid,"isGuide")!==!0&&n.measuredWidth>0){let o=n.bbox.width;o>t&&(t=o)}});let r=Zt(i.uid,"labelsSymbol")?.angle??0,s=qy(i)>=t+5;if(!s&&r===0||s&&r===L.rotatedAxisLabel.rotation){let n=s?Tu(e.content,i.rtl,L.axisLabel):Tu({type:Gt.TS},i.rtl,L.rotatedAxisLabel);zt(i.uid,{labelsSymbol:n}),i.renderer.invalidateLabels()}}}}function N0(a,i=1){let{target:e}=a,t=qy(e);Number.isFinite(t)&&(e.renderer.labels.template.maxWidth=Math.min(t*i,e.renderer.minGridDistance))}function E0(a){let{target:i}=a;if(G(i.chart.uid,"config")?.axes?.[0].labels?.visible!==!1){let e=0;i.dataItems.each(t=>{let{label:r,itemIndex:s}=t;li(r.uid,"isGuide")!==!0&&r.currentText!==void 0&&r.measuredWidth>0&&s%2===0&&r.bbox.height>e&&(e=r.bbox.height)}),i.dataItems.each(t=>{let{tick:r,label:s,itemIndex:n}=t;if(li(s.uid,"isGuide")!==!0&&s.currentText!==void 0&&s.measuredWidth>0){let o=n%2===1;r.length=o?e+5:L.axisTickLength,r.dataItem.label.dy=L.axisLabel.dy+(o?e:0)}}),e!==void 0&&(i.renderer.labels.template.paddingBottom=e+5),i.validate()}}function B0(a){let{chart:i}=a;a.renderer.labels.template.paddingLeft=Number.NaN,a.renderer.labels.template.paddingRight=Number.NaN;let e=Zt(a.uid,"debouncedAxisLabelRotationCallback");if(e!==void 0&&(a.events.off(te.Validated,e),zt(a.uid,{debouncedAxisLabelRotationCallback:void 0})),i!==void 0){let t=G(i.uid,"config")?.axes?.[0].labels;if(t!==void 0){let r=Tu(t.content,i.rtl,L.axisLabel),s=a.renderer.labels.template;s.rotation=r.angle,s.verticalCenter=r.verticalCenter,s.horizontalCenter=r.horizontalCenter,Number.isFinite(r.yOffset)&&(s.dy=r.yOffset)}zt(a.uid,{labelsSymbol:void 0})}}function Zy(a){a.renderer.labels.template.wrap=!1,a.renderer.labels.template.textAlign="start"}function W0(a){Zy(a),a.renderer.labels.template.paddingLeft=Number.NaN,a.renderer.labels.template.paddingRight=Number.NaN;let i=Zt(a.uid,"debouncedAxisLabelWrapCallback");i!==void 0&&(a.events.off(te.DataRangeChanged,i),zt(a.uid,{debouncedAxisLabelWrapCallback:void 0}))}function H0(a){Zy(a);let i=Zt(a.uid,"debouncedUpdateMinGridDistanceForWrapBehavior");i!==void 0&&(a.events.off(te.SizeChanged,i),zt(a.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:void 0}))}function z0(a){let i=Zt(a.uid,"debouncedAxisLabelStaggerCallback");i!==void 0&&(a.events.off(te.DataRangeChanged,i),zt(a.uid,{debouncedAxisLabelStaggerCallback:void 0})),a.renderer.ticks.each(e=>{e.length=L.axisTickLength,e.dataItem?.label&&(e.dataItem.label.dy=L.axisLabel.dy??0)})}function X0(a){B0(a),W0(a),z0(a)}function hy(a){M0(a),a.renderer.labels.template.paddingLeft=0,a.renderer.labels.template.paddingRight=0,a.renderer.labels.template.maxWidth=Number.NaN;let i=zi(j0,L.debounceTime,{leading:!0});zt(a.uid,{debouncedAxisLabelRotationCallback:i}),a.events.on(te.Validated,i),a.dispatchImmediately(te.Validated)}function py(a,i=1){a.renderer.labels.template.wrap=!0,a.renderer.labels.template.paddingLeft=.5,a.renderer.labels.template.paddingRight=.5,a.renderer.labels.template.textAlign="middle";let e=zi(t=>N0(t,i),L.debounceTime);zt(a.uid,{debouncedAxisLabelWrapCallback:e}),a.events.on(te.DataRangeChanged,e)}function Y0(a){a.renderer.labels.template.maxWidth=L.yAxisLabelMaxWidth,a.renderer.labels.template.wrap=!0,a.renderer.labels.template.textAlign="end"}function G0(a){let i=zi(E0,L.debounceTime);zt(a.uid,{debouncedAxisLabelStaggerCallback:i}),a.events.on(te.DataRangeChanged,i)}function U0(a){let{axis:i,horizontalAxisLabelsBehavior:e,verticalAxisLabelsBehavior:t,labelsConfig:r,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}=a;if(i.renderer instanceof dt&&s?.[0]!==!1){if(X0(i),n!==!0)switch(e){case xi.Hide:break;case xi.Stagger:G0(i),py(i,1.5);break;case xi.Wrap:py(i);break;case xi.Rotate:hy(i);break;default:r.content.angle!==null&&r.content.angle===void 0&&hy(i);break}}else i.renderer instanceof _t&&(t!==xi.Hide?Y0(i):H0(i))}function K0(a){let{axis:i,axisConfig:e,horizontalAxisLabelsBehavior:t,verticalAxisLabelsBehavior:r,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}=a,o=i.renderer.labels.template;o.axis=i;let{labels:l}=e,u=i.renderer instanceof dt&&o.rotation===L.rotatedAxisLabel.rotation,h=l,p;u?(h.content.angle=void 0,h.content.horizontalAlignment=void 0,h.content.verticalAlignment=void 0,h.content.yoffset=void 0,p=L.rotatedAxisLabel):i.renderer instanceof dt&&(t===xi.Stagger||t===xi.Wrap)&&(p={wrap:!0,dy:L.axisLabel.dy}),i.renderer instanceof _t&&r!==xi.Hide&&(p={wrap:!0}),ys({label:o,labelConfig:h,defaults:p}),i.renderer.labels.template.paddingTop=i.renderer instanceof dt?0:L.axisLabel.dy,o.align="none",o.valign="none",U0({axis:i,horizontalAxisLabelsBehavior:t,verticalAxisLabelsBehavior:r,labelsConfig:l,axisLabelsBehaviorChanged:s,isSecondValueAxis:n}),o.axis.invalidateLabels()}function Sd(a){return(a??Kd())===ui.Side}function Qy(a,i){let e,t,r=od(a,"bullets"),s=od(a,"columns"),n=Sd(i);return n&&r!==void 0?(e=r,t=s):n||(e=s,t=r),{labelToRender:e,labelToHide:t}}function q0(a,i=!0){a.hideOversized=i}function Z0(a,i){let e,t,r=Pn(L.dataLabelInitialize);Do(r.uid,{isDataLabel:!0}),a.bullets.push(r);let s=Pn(L.dataLabelInitialize,a.columns.template);return Do(s.uid,{isDataLabel:!0}),ld(s,a),ld(r,a),a.events.on(te.Validated,zi(()=>{Cu(s)&&s.clones.each(n=>{Cu(n)&&n.validate()})},L.debounceTime)),s.html="{valueX}",r.html="{valueX}",Fy(r),Sd(i)?(e=r,t=s):(e=s,t=r),wy(W.BarSeries,r),Dy(W.BarSeries,e),{newLabelToRender:e,newLabelToHide:t}}function OG(a){let{series:i,stackedType:e,isRotated:t,hideOversizedStackedLabels:r,hideOversizedSideBySideLabels:s}=a,{labelToRender:n,labelToHide:o}=Qy(i,e);if(n===void 0){let{newLabelToRender:h,newLabelToHide:p}=Z0(i,e);n=h,o=p}let l=L.dataLabel,u=!0;Sd(e)?(l=t===!0?L.dataLabelRotated:L.dataLabel,u=s===!0):(l=t===!0?L.dataLabelStackedRotated:L.dataLabelStackedNonRotated,u=r!==!1),q0(n,u),o!==void 0&&(o.visible=!1,o.disabled=!0),n.html="{valueX}",Vy({...a,dataLabel:n,labelDefaults:l,defaultDataLabelFormatter:Ay})}function Q0(a){let i=a.tooltip;i!==void 0&&!(a instanceof fe)&&(i.label.adapter.add("html",(e,t)=>{let r=e??"";return a instanceof Q?r=fy(a,t.properties?.text??e??""):a instanceof $e&&(r=my({axis:a,defaultOutput:e??"",dataItem:i.dataItem})),gr(r)}),i.label.html=L.htmlEmptyContent)}function ud(a){let{axis:i,start:e,end:t}=a;i.zoom({start:e??0,end:t??1})}function dy(a){a!==void 0&&(a.start=0,a.end=1)}function wG(a){a!==void 0&&(a.xAxes!==void 0&&a.xAxes.each(i=>ud({axis:i})),a.yAxes!==void 0&&a.yAxes.each(i=>ud({axis:i})),dy(a.scrollbarX),dy(a.scrollbarY),rt(a.zoomOutButton,!1))}function Eo(a,i){return a instanceof dt&&i!==!0||a instanceof _t&&i===!0}function J0(a){Jr(a.labels.template)&&(a.labels.template.events.on(te.Over,i=>{let{axisLabelOveredOpacity:e}=L;i.target.fillOpacity=(i.target.fillOpacity??1)*e}),a.labels.template.events.on(te.Out,i=>{let{axisLabelOveredOpacity:e}=L;i.target.fillOpacity=(i.target.fillOpacity??.5)/e}))}function e_(a){let{axis:i,valueFormat:e,axisRenderer:t,queryObject:r}=a;t.grid.template.applyOnClones=!0,t.ticks.template.applyOnClones=!0,t.labels.template.applyOnClones=!0,t.hoverable=!0,t.line.strokeOpacity=1,t.grid.template.strokeOpacity=1,t.ticks.template.strokeOpacity=1,fd(t.labels.template,L.axisLabel),t.ticks.template.disabled=!1,t.labels.template.disabled=!0,Q0(i),Zo(e)&&(J0(t),m0(i,r)),Ky({chart:i.chart,label:i.title,labelType:i.renderer instanceof dt?Bi.XAxisTitle:Bi.YAxisTitle}),i.renderer instanceof dt&&i.events.on(te.Validated,zi(()=>{L0({axis:i,restoreLabelsVisibility:!0})},L.debounceTime))}function t_(a){let i=a.target,e=G(i.chart.uid,"isRotated"),t=[];if(i instanceof Q){if(i.renderer instanceof qr)t.push({isXAxis:!0,minimum:i.min,maximum:i.max});else if(i.renderer instanceof(e!==!0?_t:dt)){i.maxZoomFactor=1;let r=a.target,s=r.chart,n=e!==!0?s.xAxes.getIndex(0):s.yAxes.getIndex(0),o=s.yAxes.getIndex(1)??s.xAxes.getIndex(1);t=[{isXAxis:!1,minimum:r.min,maximum:r.max},{isXAxis:!0,minimum:n instanceof Q?n.min:void 0,maximum:n instanceof Q?n.max:void 0}],o instanceof Q&&t.push({isXAxis:!1,isSecondValueAxis:!0,minimum:o.min,maximum:o.max})}t.length>0&&t.every(r=>!Number.isNaN(r.minimum)&&!Number.isNaN(r.maximum))&&yc(t,i.chart.htmlContainer)}}function i_(a){a.events.on(te.Validated,zi(t_,L.debounceTime))}function r_(a){let{axis:i,isNonAggregatedChart:e}=a,t,r,s,n=i.dataItems.values,o=i.axisRanges.values;if(i instanceof $e)for(let l=0;l<o.length;l+=1){t=!1,r=!1,s=!1;let u=o[l],{category:h,endCategory:p,axisFill:d,grid:c,label:f}=u;if(u instanceof kr&&u.visible)for(let y=0;y<n.length;y+=1){let g;e===!0?g=ia({value:n[y].category,dataContext:n[y].dataContext}):g=n[y].category.toString(),h===g&&(r=!0),p===g&&(s=!0)}r&&s&&(t=!0),rt(d,t),rt(c,t),rt(f,t)}}function cy(a){let{axis:i,axisMinimum:e,axisMaximum:t}=a,r;if(i instanceof Q&&t!==void 0&&e!==void 0){let s=i.axisRanges.values,n=G(i.chart.uid,"config"),o=G(i.chart.uid,"isRotated"),l=Eo(i.renderer,o)?0:1,u=n?.axes?.[l]?.guides;for(let h=0;h<s.length;h+=1){let p=s[h],{value:d,endValue:c,axisFill:f,grid:y,label:g}=p;if(li(g?.uid,"isGuide")===!0){if(r=p.visible,r&&p instanceof or){let{start:v,end:x}=$d(i,u?.[h]),P=Math.min(d,c,v??d,x??c),T=Math.max(d,c,v??d,x??c);P<e&&T<e||P>t&&T>t?r=!1:(p.value=P<e?e:P,p.endValue=T>t?t:T)}rt(f,r),rt(y,r),rt(g,r)}}}}function a_(a){a instanceof Q?(a.adapter.add("min",i=>(cy({axis:a,axisMinimum:i,axisMaximum:a.max}),i)),a.adapter.add("max",i=>(cy({axis:a,axisMinimum:a.min,axisMaximum:i}),i))):a instanceof $e&&a.events.on(te.Validated,()=>{let i=G(a.chart.uid,"isNonAggregatedChart");r_({axis:a,isNonAggregatedChart:i})})}function id(a){let{axes:i,isSecondValueAxis:e=!1,isXAxis:t,valueFormat:r,chartType:s,queryObject:n}=a,o;if(Qo({isXAxis:t,chartType:s,valueFormat:r})&&!e)o=i.push(new $e);else if(xs(r))o=i.push(new fe);else if(ta(r)){o=i.push(new Q);let l=G(o.chart.uid,"formatLocale");o.numberFormatter=Oa({type:W.NumberAxisFormat,iLocale:o.chart.language.locale,formatLocale:l}),o.numberFormatter.numberFormat="#",e?(o.renderer.opposite=!0,o.renderer.grid.template.disabled=!0):i_(o)}o!==void 0&&(Yv(o),e_({axis:o,valueFormat:r,axisRenderer:o.renderer,queryObject:n}),a_(o))}function Jy(a){let{chart:i,axesConfig:e,isRotated:t,chartType:r,queryObject:s}=a;Ai(i.uid,{isRotated:t===!0});let n=t===!0?e?.[1]:e?.[0],o=t===!0?e?.[0]:e?.[1],l=n?.valueFormat,u=o?.valueFormat;l!==void 0&&u!==void 0&&(i.xAxes.clear(),i.yAxes.clear(),id({chartType:r,isXAxis:t!==!0,axes:i.xAxes,valueFormat:l,queryObject:s}),id({chartType:r,isXAxis:t===!0,axes:i.yAxes,valueFormat:u,queryObject:s}),e?.[2]!==void 0&&id({chartType:r,isXAxis:t===!0,axes:t===!0?i.xAxes:i.yAxes,valueFormat:e[2].valueFormat,isSecondValueAxis:!0,queryObject:s}))}function s_(a){let{axis:i,isLogarithmic:e,axisConfigIndex:t}=a,r=G(i.chart.uid,"config"),s=e===!0&&Ic({chartConfig:r,chartData:i.chart.data,axisConfigIndex:t});(i instanceof fe||i instanceof Q)&&(i.logarithmic=s,i.treatZeroAs=s?L.treatZeroValueAs:0)}function n_(a,i){let{minimum:e,maximum:t,isLogarithmic:r}=i??{},{buffer:s}=i??{};return s??=L.buffer,a instanceof Q&&!(a instanceof fe)&&!s&&(r!==!0||t!=null||e!=null)}function o_(a,i){let e=!1;return a instanceof Q&&!(a instanceof fe)&&(e=n_(a,i),a.strictMinMax=e),e}function l_(a){let{axis:i,axisConfig:e,chartType:t,isSecondValueAxis:r}=a,s=e?.minimum,n=e?.maximum,o=e?.isLogarithmic??!1,l=s,u=n,{chart:h}=i,p=G(h.uid,"isRotated"),d=G(h.uid,"config"),c=0;if(h instanceof qe&&d!==void 0){let f=Cs(d),y=Eo(i.renderer,p),g=Lb(h),v=Lc({chartConfig:d,isSecondValueAxis:r,seriesIds:g}),x=kc({chartConfig:d,chartData:h.data,filteredSeriesIds:v});if(f===ui.Stacked100)l=Number.NaN,u=Number.NaN;else{let{minX:P,maxX:T,minY:C,maxY:O}=x,[w,D]=y?[P??Number.NaN,T??Number.NaN]:[C,O];c=w,t===W.BarSeries||t===W.ComboLineAndBarSeries||t===W.LineSeries&&f===ui.Stacked&&!y?(l=Math.min(w,0),u=Math.max(D,0)):(l=w,u=D)}l=s??l,u=n??u}return o&&l!==void 0&&l!==null&&l<=0&&(l=Qv(c)),{min:l,max:u}}function eg(a){let{axis:i,axisConfig:e,chartType:t,isSecondValueAxis:r}=a,{minimum:s,maximum:n,isLogarithmic:o}=e??{};if(i instanceof Q||i instanceof fe)if(o_(i,e)){let l=s,u=n;if(Jv({minimumFromConfig:s,maximumFromConfig:n,isLogarithmic:o})){let h=l_({axis:i,axisConfig:e,chartType:t,isSecondValueAxis:r});l=h.min,u=h.max}l=l??Number.NaN,u=u??Number.NaN,Number.isNaN(l)||Number.isNaN(u)||l<u?(i.min=l,i.max=u):(i.min=Number.NaN,i.max=Number.NaN),t===W.GaugeSeries&&i.validate()}else i.min=Number.NaN,i.max=Number.NaN}function u_(a){let{axis:i,timeIntervalInfo:e,dateBaseInterval:t}=a;if(i instanceof fe){let{size:r,unit:s}=e??{};if(s||({size:r,unit:s}=t??{}),r&&s!==void 0){let n;switch(s){case Xt.Second:n="second";break;case Xt.Minute:n="minute";break;case Xt.Hour:n="hour";break;case Xt.Day:n="day";break;case Xt.Week:n="week";break;case Xt.Month:n="month";break;case Xt.Year:n="year";break}n!==void 0&&(i.baseInterval={timeUnit:n,count:r})}}}function h_(a,i){a instanceof Q&&(a.renderer.baseGrid.disabled=i!==!0)}function p_(a,i){a.cursorTooltipEnabled=i===!0}function d_(a,i){let e=a.renderer instanceof dt;a.events.once(te.Validated,()=>{let t=a.renderer instanceof _t?L.yAxisTitleLabel:L.xAxisTitleLabel;e&&(t={...t,dy:t.dy??0}),ys({label:a.title,labelConfig:i,defaults:t}),Vu({chart:a.chart,label:a.title,labelType:a.renderer instanceof dt?Bi.XAxisTitle:Bi.YAxisTitle})})}function c_(a,i){let e=!0;switch(i){case W.BoxPlotSeries:e=a instanceof $t;break}return e}function f_(a){let i=zi(()=>{let{chart:e}=a,t=G(e.uid,"config");if(e!==void 0&&t!==void 0){let r=Ot(t?.series);if(c_(a,r)){let s=G(e.uid,"isRotated"),n=gi(a.uid,"stackedType");n===ui.Stacked100&&!a.visible&&rt(a,!1);let o=e.xAxes.getIndex(0),l=e.yAxes.getIndex(0),u=e.yAxes.getIndex(1),h=s===!0?1:0,p=t.axes?.[h],d=s===!0?0:1,c=t.axes?.[d],f=t.axes?.[2];[{axis:o,axisConfig:p,updateLabels:!1},{axis:l,axisConfig:c,updateLabels:!0},{axis:u,axisConfig:f,updateLabels:!0,isSecondValueAxis:!0}].forEach(y=>{let{axis:g,axisConfig:v,updateLabels:x,isSecondValueAxis:P}=y;g!==void 0&&(eg({axis:g,chartType:r,axisConfig:v,isSecondValueAxis:P}),x!==void 0&&g.events.once(te.Validated,()=>{let{labelToRender:T}=Qy(a,n);T&&(T.html=s===!0?"{valueX}":"{valueY}")}))})}}},L.debounceTime);a.events.once(te.Validated,i)}function m_(a,i){if(a instanceof Q){let{integerOnlyValues:e,valueFormat:t}=i,r=Bc(t)?t.intlOptions.maximumFractionDigits:void 0;a.maxPrecision=e===!0||r===0?0:Number.NaN}}function rd(a){let{axis:i,axisConfig:e,axisConfigIndex:t,timeIntervalInfo:r,chartType:s,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,guideTooltipFormatter:u,stackedType:h,axisValueFormatter:p,isSecondValueAxis:d,isRotated:c,isTimeOnlyField:f,utilsStrings:y,errorStrings:g}=a,{visible:v,isLogarithmic:x,title:P,grid:T,lineSymbol:C,labels:O,guides:w,valueFormat:D,displayZeroLine:A,displayCursorTooltip:H,tickSpacing:E,dateBaseInterval:j}=e;u_({axis:i,timeIntervalInfo:r,dateBaseInterval:j}),$n({element:i.renderer.grid.template,lineSymbol:T,visible:v}),$n({element:i.renderer.line,lineSymbol:{color:[...L.color],...C??Nd()},visible:v}),$n({element:i.renderer.ticks.template,lineSymbol:C,visible:v}),K0({axis:i,axisConfig:e,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:l,isSecondValueAxis:d}),m_(i,e),R0({axis:i,labelsConfig:O,horizontalAxisLabelsBehavior:n,isSecondValueAxis:d,tickSpacing:E}),Zv({axis:i,isXAxis:Eo(i.renderer,c),chartType:s,labelsTextSymbol:e.labels.content,formatOptions:D,overridePercentMultiplication:h===ui.Stacked100,axisValueFormatter:p,isTimeOnlyField:f,errorStrings:g}),eg({axis:i,axisConfig:e,chartType:s,isSecondValueAxis:d}),s_({axis:i,isLogarithmic:x,axisConfigIndex:t}),d_(i,P),p_(i,H),d!==!0&&(k0({axis:i,guides:w,guideTooltipFormatter:u,utilsStrings:y}),h_(i,A))}function y_(a){let{chart:i,rotationChanged:e,isRotated:t,dualAxisChanged:r,timeIntervalInfoWasReset:s,timeIntervalInfo:n,guideTooltipFormatter:o,xAxisLabelFormatter:l,yAxisLabelFormatter:u,secondaryYAxisLabelFormatter:h,utilsStrings:p,errorStrings:d,queryObject:c}=a,{axisLabelsBehaviorChanged:f}=a,y=G(i.uid,"config"),g=y.axes,{horizontalAxisLabelsBehavior:v,verticalAxisLabelsBehavior:x}=y,P=Ot(y.series),T=Cs(y),C=G(i.uid,"fieldList")?.some(ft=>ft.name===y.series[0].x&&ft.type===Ko.TimeOnly)??!1,O=t===!0?1:0,w=t===!0?0:1,D=g?.[O],A=g?.[w],H=i.xAxes.getIndex(0);g_({chart:i,dualAxisChanged:r,rotationChanged:e,timeIntervalInfoWasReset:s,axisLabelsBehaviorChanged:f})&&(Jy({chart:i,axesConfig:g,isRotated:t,chartType:P,queryObject:c}),f=[!0,!0]),H=i.xAxes.getIndex(0);let E=i.yAxes.getIndex(0),j=i.xAxes.getIndex(1)??i.yAxes.getIndex(1),ce=H?.start,be=H?.end,ke=E?.start,K=E?.end,De=j?.start,Le=j?.end,ze={timeIntervalInfo:n,chartType:P,horizontalAxisLabelsBehavior:v,verticalAxisLabelsBehavior:x,axisLabelsBehaviorChanged:f,guideTooltipFormatter:o,stackedType:T,isRotated:t,utilsStrings:p,errorStrings:d};H!==void 0&&D!==void 0&&rd({...ze,axis:H,axisConfig:D,axisConfigIndex:O,axisValueFormatter:O===0?l:u,isTimeOnlyField:C}),E!==void 0&&A!==void 0&&rd({...ze,axis:E,axisConfig:A,axisConfigIndex:w,axisValueFormatter:w===1?u:l,isTimeOnlyField:C}),j!==void 0&&g?.[2]!==void 0&&rd({...ze,axis:j,axisConfig:g[2],axisConfigIndex:2,axisValueFormatter:h,isSecondValueAxis:!0,isTimeOnlyField:C}),e===!0&&[{axis:H,start:ce,end:be},{axis:E,start:ke,end:K},{axis:j,start:De,end:Le}].forEach(ft=>{let{axis:at,start:oe,end:Be}=ft;at!==void 0&&at.events.once(te.Validated,()=>{ud({axis:at,start:oe,end:Be})})}),H!==void 0&&H.ghostLabel.setPropertyValue("disabled",!0),E!==void 0&&E.ghostLabel.setPropertyValue("disabled",!0),j!==void 0&&j.ghostLabel.setPropertyValue("disabled",!0)}function g_(a){let{chart:i,dualAxisChanged:e,rotationChanged:t,timeIntervalInfoWasReset:r,axisLabelsBehaviorChanged:s}=a,n=G(i.uid,"config"),{rotated:o,series:l}=n,u=n.axes,h=Ot(l),p=o===!0?1:0,d=o===!0?0:1,c=u?.[p]?.valueFormat,f=u?.[d]?.valueFormat,y=i.xAxes.getIndex(0),g=i.yAxes.getIndex(0),v=y===void 0||t||c!==void 0&&Qm({axis:y,valueFormat:c,chartType:h}),x=g===void 0||t||f!==void 0&&Qm({axis:g,valueFormat:f,chartType:h});return e===!0||t===!0||r===!0||s?.[0]||s?.[1]||v||x}function DG(a){Jy(a)}function AG(a){let{chart:i,chartConfig:e,rotationChanged:t,axisLabelsBehaviorChanged:r,isRotated:s,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:u,xAxisLabelFormatter:h,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:d,utilsStrings:c,errorStrings:f,queryObject:y}=a,g=Cs(e);y_({chart:i,rotationChanged:t,axisLabelsBehaviorChanged:r,isRotated:s,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:l,guideTooltipFormatter:u,xAxisLabelFormatter:h,yAxisLabelFormatter:p,secondaryYAxisLabelFormatter:d,utilsStrings:c,errorStrings:f,queryObject:y});let v=s===!0?i.yAxes.getIndex(0):i.xAxes.getIndex(0);if(v!==void 0){v instanceof $e&&(v.dataFields.category=th(e));let T=v.renderer,C=T.grid.template;C.location=0,T.cellStartLocation=.1,T.cellEndLocation=.9;let O=e.orderOptions?.data&&"orderBy"in e.orderOptions.data&&e.orderOptions.data.orderBy===Uo.Descending,w=s===!0;O&&v instanceof fe&&(w=!w),T.inversed=w}let x=s===!0?i.xAxes.getIndex(0):i.yAxes.getIndex(0),P=s===!0?i.xAxes.getIndex(1):i.yAxes.getIndex(1);g===ui.Stacked100?(x instanceof Q&&(x.calculateTotals=!0),P instanceof Q&&(P.calculateTotals=!0)):(x instanceof Q&&(x.calculateTotals=!1),P instanceof Q&&(P.calculateTotals=!1))}function FG(a,i){let e;return i!==void 0&&(e={...i},e.legend!==void 0&&(e.legend.position=a)),e}function VG(a,i){let e;return i!==void 0&&(e={...i},e.legend!==void 0&&(e.legend.visible=a)),e}function kG(a,i){let e;return i!==void 0&&(e={...i,rotated:a}),e}function v_(a){let i;return a!==void 0&&(i={...a},delete i.axes?.[0]?.minimum,delete i.axes?.[0]?.maximum,delete i.axes?.[1]?.minimum,delete i.axes?.[1]?.maximum),i}function LG(a,i){return i!=null||dh(a)}async function IG(a,i){let e=!1;return Os(i)||vc(a)?a&&Os(i)&&(e=await Sc(a,i)):e=!0,e}async function b_(a){let{queryObject:i,chartConfig:e,options:t,splitByField:r}=a,s=[],n,o=Cn(e),l=o.series[0],u=wc({queryObject:i,chartConfig:o,runtimeDataFilters:t?.runtimeDataFilters,ignoreViewExtent:t?.ignoreViewExtent});if(u.outStatistics?.[0]?.outStatisticFieldName&&(u.outStatistics[0].outStatisticFieldName=_s.outStatistics.outStatisticFieldName),pi(l)&&lh({xAxisValueFormatType:Rd(o),setTimeBinningInfoWhenNotProvided:t?.setTimeBinningInfoWhenNotProvided,seriesConfig:l,queryObject:i})&&bc(i)){let{temporalBinning:h,x:p}=l,{uniqueQuery:d}=ih({chartConfig:o,queryConfig:u,queryObject:i,options:t});n=await Pc({queryObject:i,dateField:p,splitByField:r,queryConfig:d,temporalBinning:h}),s=Array.from(new Set(n.flatMap(c=>{let{stackedAttributes:f}=c,y=[];return f&&(y=f.map(g=>g[r]).filter(g=>g!==void 0)),y})).values())}else{let{uniqueQuery:h}=ih({chartConfig:o,queryObject:i,queryConfig:u,options:t}),{elementCount:p}=await pc({chartConfig:o,queryObject:i,queryConfig:u,behaviorAfterLimit:t?.chartLimits?.behaviorAfterLimit,numberMaxOfFeaturesToFetch:h.num});n=await _c({queryObject:i,queryConfig:h,featureCount:p}),s=Array.from(new Set(n.map(d=>d.attributes[r]).filter(d=>d!==void 0)).values())}return{allValues:s,preFetchedQueryResponse:n}}function x_(a,i){let e=new Map;return a.series.forEach(t=>{let r=ra({where:t.query?.where,normalize:!0,escape:!1});i&&r!==null&&(r=Number(r));let s=Ot([t]);s!==void 0&&e.set(s,[...e.get(s)??[],r])}),e}function __(a){let{allValues:i,configUniqueValuesPerSeriesType:e,initialConfigWasEmpty:t}=a,r=new Map;return Array.from(e.keys()).forEach(s=>{let n=e.get(s)??[],o=[];t?o=i:i.forEach(l=>{n.includes(l)||o.push(l)}),r.set(s,o)}),r}function $_(a){let{chartConfig:i,missingValue:e,splitByField:t,seriesTemplate:r}=a,s=JSON.parse(JSON.stringify({...i.series[0],...r}));if(s.query){if(s.id=`${e}-${i.series.length}-${Date.now()}`,s.name=`${e}`,s.query.outStatistics?.[0]!==void 0){let o=s.id;s.query.outStatistics[0].outStatisticFieldName=o,"y"in s&&(s.y=o)}let n=typeof e=="number"||e===null?e:`'${e}'`;s.query.where=`${t}=${n}`}return s}async function P_(a){let{updateSplitBySeries:i,config:e,options:t,queryObject:r}=a,{seriesTemplate:s}=i??{},n;if(r&&!Os(r)&&i!==void 0&&e!==void 0&&(e.series.length>0||s!==void 0)&&i.addMissingSeries){let o=e.series.length===0;e.series.length===0&&s!==void 0&&e.series.push(s);let l=gt(e.series);if(l===pe.BoxPlotMonoFieldAndSplitBy||l===pe.BoxPlotMultiFieldsAndSplitBy||l===pe.BoxPlotMonoFieldAndCategoryAndSplitBy||l===pe.BarAndLineSplitBy||l===pe.BarAndLineSplitByNoAggregation){let u=Ia(e.series[0]?.query?.where),h=ah(r),p=Cc(u,h),d=p?Tc(p):!1,c=await b_({queryObject:r,chartConfig:e,splitByField:u,options:t}),{allValues:f}=c;if({preFetchedQueryResponse:n}=c,f.length>0){let y=x_(e,d),g=__({allValues:f,configUniqueValuesPerSeriesType:y,initialConfigWasEmpty:o});Array.from(g.keys()).forEach(v=>{(g.get(v)??[]).forEach(x=>{e.series.push($_({chartConfig:e,seriesTemplate:s,missingValue:x,splitByField:u}))}),o&&e.series.shift()})}}}return n}function S_(a,i){i&&!dh(i)&&(i=xc({chartConfig:i,queryObject:a}))}async function RG(a){let{configToAlter:i,layer:e,addMissingSeries:t,updateSplitBySeries:r,chartContainer:s,queryObject:n,options:o}=a,l=i,u;return l&&(S_(e,l),l=await Yc(l,e),t&&(u=await P_({updateSplitBySeries:r,config:l,options:o,queryObject:n})),l=Dc(l,s)),{alteredConfig:l,preFetchedQueryResponse:u}}function MG(a){let{data:i,config:e,hideEmptySeries:t}=a,r=e.series.length,s=Cn(e),n=!1;if(t&&r>1&&i){let o=Ac(i),l=Ot(e?.series),u=gt(e?.series),h=new Set;switch(l){case W.ComboLineAndBarSeries:case W.BarSeries:case W.RadarSeries:case W.LineSeries:{s.series.forEach(d=>{if(Array.isArray(o)){let c="";"y"in d&&(c=Array.isArray(d.y)?d.y[0]:d.y,u===pe.BarAndLineSplitByNoAggregation&&(c=`${c}_${ra({where:d.query?.where,keepSurroundingQuotes:!1,escape:!1})}`),o.some(f=>Vc({dataItem:f,x:d.x,y:c}))&&h.add(d))}});break}case W.BoxPlotSeries:{if(Ku(e)){let d=ka(e);e.series.forEach(c=>{let f,y;c.type===W.BoxPlotSeries?(f=i.dataItems,y=f?.some(g=>Fc({dataItem:g,splitBy:c.query?.where,showOutliers:d}))):c.type===W.LineSeries&&(f=i.meanLines,y=f?.some(g=>Ib(g,c.query?.where))),y&&h.add(c)})}break}}let p=Array.from(h.values());n=p.length>0&&p.length<r,n&&(s.series=p)}return{seriesFilteredOut:n,filteredConfig:s}}var jG=a=>{let i,e=a.series[0];return pi(e)&&(i=e.temporalBinning?.size),i},C_=a=>{let i,e=a.series[0];return pi(e)&&(i=e.temporalBinning?.unit),i},NG=a=>{let i,e=a.series[0];return pi(e)&&(i=e.temporalBinning?.timeAggregationType),i},EG=a=>{let i,e=a.series[0];return pi(e)&&(i=e.temporalBinning?.trimIncompleteTimeInterval),i},BG=a=>{let i,e=a.series[0];return pi(e)&&(i=e.temporalBinning?.nullPolicy),i},T_=(a,i)=>{i?.series?.forEach(e=>{pi(e)&&(e.temporalBinning??={},e.temporalBinning.size=a)}),di({config:i,value:null,axisIndex:1,isMax:!1}),di({config:i,value:null,axisIndex:1,isMax:!0})},O_=(a,i)=>{i?.series?.forEach(e=>{pi(e)&&(e.temporalBinning??={},e.temporalBinning.nullPolicy=a)}),di({config:i,value:null,axisIndex:1,isMax:!1}),di({config:i,value:null,axisIndex:1,isMax:!0})},WG=(a,i)=>{i.series?.forEach(e=>{pi(e)&&(e.temporalBinning??={},e.temporalBinning.unit=a)}),di({config:i,value:null,axisIndex:1,isMax:!1}),di({config:i,value:null,axisIndex:1,isMax:!0})},HG=(a,i)=>{i.series?.forEach(e=>{pi(e)&&(e.temporalBinning??={},e.temporalBinning.timeAggregationType=a)}),di({config:i,value:null,axisIndex:1,isMax:!1}),di({config:i,value:null,axisIndex:1,isMax:!0})},zG=(a,i)=>{i.series?.forEach(e=>{pi(e)&&(e.temporalBinning??={},e.temporalBinning.trimIncompleteTimeInterval=a)}),di({config:i,value:null,axisIndex:1,isMax:!1}),di({config:i,value:null,axisIndex:1,isMax:!0})},XG=a=>{T_(0,a)},YG=a=>a.hideEmptyRowsAndColumns,GG=(a,i)=>{a.hideEmptyRowsAndColumns=i},UG=(a,i)=>{let e=a.series[0];e.heatRulesType=i},KG=a=>a.series[0].heatRulesType,qG=(a,i)=>{let e=a.series[0];e.gradientRules=i},ZG=a=>a.series[0].gradientRules,QG=a=>{let{yField:i,config:e,layerInfo:t}=a,{layerFieldsInfo:r}=t,s=ul(1,e),n=w_(e),o=An(e),l=e.series[0];if(typeof i=="string"&&n!==i&&l&&(l.y=i,v_(e),n===s||o)){let u=Dt(r,i);As(e,1,u)}},w_=a=>a.series[0].y??"",JG=a=>{let{binning:i,config:e,commonStrings:t}=a,r=e.series[0];if(r.xTemporalBinning=i,i?.unit!==void 0&&i.unit in t.utilsStrings.heatChartCalendarDatePartsUnits){let s=t.utilsStrings.heatChartCalendarDatePartsUnits[i.unit];As(e,0,s)}},eU=a=>a.series[0].xTemporalBinning,tU=a=>{let{binning:i,config:e,commonStrings:t}=a,r=e.series[0];if(r.yTemporalBinning=i,i?.unit!==void 0&&i.unit in t.utilsStrings.heatChartCalendarDatePartsUnits){let s=t.utilsStrings.heatChartCalendarDatePartsUnits[i.unit];As(e,1,s)}},iU=a=>a.series[0].yTemporalBinning,D_=(a,i)=>{i.orderOptions??={};let e=i.axes?.[0]?.valueFormat?.type==="category"?hi.Category:hi.YValue,t=hd(i)[0],r=i.axes?.[1]?.valueFormat?.type==="category"?hi.Category:hi.YValue,s=hd(i)[1],n={...i.orderOptions.data??{},orderType:hi.MultiAxes};t===ol.customSort&&e===hi.Category&&(n.orderByX=[...a]),s===ol.customSort&&r===hi.Category&&(n.orderByY=[...a]),Object.keys(n).length>1&&(i.orderOptions.data=n)},rU=(a,i)=>{let e=i.series[0];e.gridLine&&(e.gridLine.width=a)},aU=a=>a.series[0].gridLine?.width,sU=(a,i)=>{let e=i.series[0],t=a?.length===4&&a.every(r=>typeof r=="number");e.gridLine&&t&&(e.gridLine.color=a)},nU=a=>a.series[0].gridLine?.color,oU=(a,i)=>{let e=i.legend;e&&(e.position=a)},lU=a=>a.legend?.position??ct.Bottom,uU=a=>a.series[0].query?.outStatistics?.[0]?.onStatisticField,hU=a=>{let{field:i,config:e,layerInfo:t,commonStrings:r}=a,s=e.series[0].query?.outStatistics?.[0],n=Od(e,t,r);s?(s.onStatisticField=i,s.outStatisticFieldName=`${s.statisticType}_${i}`):e.series[0].query={outStatistics:[{onStatisticField:i,outStatisticFieldName:`${mt.Count}_${i}`,statisticType:mt.Count}]},e.title&&n&&(e.title.content.text=ju(e,t,r))},pU=a=>a.series[0].query?.outStatistics?.[0].statisticType??mt.Count,dU=a=>{let{aggregationType:i,config:e,layerInfo:t,commonStrings:r}=a,s=e.series[0]?.query?.outStatistics?.[0],n=Od(e,t,r);s&&i!==mt.NoAggregation&&(s.statisticType=i,s.outStatisticFieldName=`${i}_${s.onStatisticField}`),(i===mt.Count||i===mt.Sum)&&A_(bs.Zero,e),e.title&&n&&(e.title.content.text=ju(e,t,r))},cU=a=>a.nullPolicy,A_=(a,i)=>{i.nullPolicy=a},fU=a=>a.series[0].emptyCells,mU=(a,i)=>{i.series[0].emptyCells=a},yU=a=>a.series[0].emptyCells?.text,gU=(a,i)=>{i.series[0].emptyCells?i.series[0].emptyCells.text=a:i.series[0].emptyCells={text:a}},vU=a=>a.includeLeapDay,bU=(a,i)=>{i.includeLeapDay=a},xU=a=>a.series[0].emptyCells?.symbol,_U=(a,i)=>{i.series[0].emptyCells?i.series[0].emptyCells.symbol=a:i.series[0].emptyCells={symbol:a}};function $U(a){return a.viewType}function PU(a,i){sc(i)||(i.viewType=a)}function SU(a){return a.series[0].classBreaksRules?.breaksCount??Se.classBreaks.breaksCount}function CU(a,i){i.series[0].classBreaksRules!==void 0?i.series[0].classBreaksRules.breaksCount=a??Se.classBreaks.breaksCount:i.series[0].classBreaksRules={breaksCount:a??Se.classBreaks.breaksCount}}function TU(a){return a.series[0].classBreaksRules?.classificationMethod}function OU(a,i){i.series[0].classBreaksRules!==void 0?i.series[0].classBreaksRules.classificationMethod=a:i.series[0].classBreaksRules={classificationMethod:a},i.series[0].classBreaksRules.breaksCount=i.series[0].classBreaksRules.breaksCount??Se.classBreaks.breaksCount}function wU(a,i){i.firstDayOfWeek=a}function DU(a){return a.firstDayOfWeek}function ko(a){let{seriesIndex:i,xAxisField:e,aggregationType:t,config:r,layerInfo:s,commonStrings:n}=a,o=La(s?.layer).idField,l,u=r.series[i??0],h=!1,p=!1,d=!1;if(u===void 0){let y=r.series;h=y.slice(0,i).every(g=>vt(g)),p=y.slice(0,i).every(g=>bt(g)),d=y.slice(0,i).every(g=>ch(g))}else h=vt(u),p=bt(u),d=ch(u);h?l=Xd({commonStrings:n,seriesIndex:i,objectIDField:o}):p?l=Yd({commonStrings:n,seriesIndex:i,objectIDField:o}):d?l=zd(n,o):l=Gd({seriesIndex:i,objectIDField:o,commonStrings:n});let c=r.series[0]?.dataLabels,f={...l,x:e,y:"",dataLabels:{...l.dataLabels,type:l.dataLabels?.type??W.Text,content:{...l.dataLabels?.content,...c?.content,type:Gt.TS},visible:c?.visible??!1}};if(f.query={groupByFieldsForStatistics:[e]},t!==mt.NoAggregation&&o!==void 0){let y=`${t}_${o}_0`.toUpperCase();f.y=y,f.query.outStatistics=[{statisticType:t,onStatisticField:o,outStatisticFieldName:y}]}if(pi(r.series[0])&&pi(f)){let y;if(r?.series?.[0]!==void 0&&(y=gt(r.series)),y!==pe.BarAndLineNoAggregation&&y!==pe.BarAndLineSplitByNoAggregation){let g=C_(r);g===Xt.Quarter&&(g=Xt.Month),f.temporalBinning={...r.series[0]?.temporalBinning,unit:g}}}return Cn(f)}function ju(a,i,e){let{layerFieldsInfo:t}=i,{idField:r,isTraditionalTypeOID:s}=La(i.layer),n=Fs(a),o=Td(a),l=ig(a),u=Cd(a),h=s&&(o.length===0||o.includes(r)),p=Ud(l,e),d=h?"":o.map(P=>Dt(t??[],P)).join(", "),c=Dt(t??[],n),f=Dt(t??[],u),y=a.series.some(P=>_i(P)),g=y?"category":"xAxisField",v=c,x="";if(vh({fieldName:n,numericFields:o,fieldList:t}))x=Ir(e.titleLabels.aggrTypeOfAggrFields,{aggregationType:p,aggregationFields:d});else if(l===mt.NoAggregation){let P=h?r:d;if(u===""){let T=y?"aggrTypeCategory":"aggrTypeXAxisField";x=Ir(e.titleLabels[T],{aggregationType:P,[g]:v})}else{let T=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=Ir(e.titleLabels[T],{aggregationType:P,[g]:v,splitByField:f})}}else if(l===mt.Count)if(u===""){let P=y?"aggrTypeCategory":"aggrTypeXAxisField";x=Ir(e.titleLabels[P],{aggregationType:p,[g]:v})}else{let P=y?"aggrTypeCategoryBySplitBy":"aggrTypeXAxisFieldBySplitBy";x=Ir(e.titleLabels[P],{aggregationType:p,[g]:v,splitByField:f})}else if(u!==""){let P=y?"aggrTypeOfAggrFieldByCategoryBySplitByField":"aggrTypeOfAggrFieldByXAxisFieldBySplitByField";x=Ir(e.titleLabels[P],{aggregationType:p,aggregationField:d,[g]:v,splitByField:f})}else if(o.length>0){let P=y?"aggrTypeOfAggrFieldsByCategory":"aggrTypeOfAggrFieldsByXAxisField";x=Ir(e.titleLabels[P],{aggregationType:p,aggregationFields:d,[g]:v})}return x}var tg=a=>ra({where:a.query?.where,normalize:!1,escape:!1})??"",ig=a=>a?.series?.[0]?.query?.outStatistics?.[0]?.statisticType??mt.NoAggregation,Cd=Ad(a=>{let i=a?.series?.[0]?.query?.where?.split("=")[0].trim()??"";return oh(a?.series?.[0]?.query?.where)?"":i},a=>a?.series?.[0]?.query?.where),Td=a=>{let i=[];if(Cd(a)==="")i=a?.series.map(e=>{let t=e.query?.outStatistics?.map(r=>r.onStatisticField)??[];return t?.length>0?t:e.y}).flat()??[];else{let e=a?.series?.[0],t=e?.query?.outStatistics?.[0]?.onStatisticField??[e?.y].flat()[0];i=t!==void 0?[t]:[]}return i.filter(e=>e!=="")};function F_(a){let{numericFields:i,aggregationType:e,config:t,layerInfo:r}=a,s=!1;e===mt.Count?s=!0:e===mt.NoAggregation&&(s=i.every(l=>{let u=r.layerFieldsInfo.find(h=>h.name===l);return u!==void 0?nh(u):!1})),yh(t,1,s);let n=t.series.some(l=>vt(l)),o=t.series.some(l=>bt(l));if(n||o){let l=Fs(t),u=r.layerFieldsInfo.find(p=>p.name===l),h=u!==void 0&&nh(u);yh(t,0,h)}}var hd=a=>{let i;if(tl(a)){let e=a.orderOptions?.data?.orderByX??[""],t=a.orderOptions?.data?.orderByY??[""],r=a.axes?.[0]?.valueFormat?.type==="category"?hi.Category:hi.YValue,s=a.axes?.[1]?.valueFormat?.type==="category"?hi.Category:hi.YValue;i=[gh(e,r),gh(t,s)]}else{let e=a.orderOptions?.data?.orderType??hi.Category,t=a.orderOptions?.data&&"orderBy"in a.orderOptions.data?a.orderOptions.data.orderBy:Uo.Ascending;i=[Xc(t,e)]}return i};function V_(a){let{xAxisField:i,numericFields:e,aggregationType:t,config:r,layerInfo:s,commonStrings:n}=a,{layerFieldsInfo:o}=s,l=!1,u=ko({config:r,xAxisField:i,aggregationType:t,layerInfo:s,seriesIndex:0,commonStrings:n}),h=ll({config:r,xAxisField:i,numericFields:e,aggregationType:t,layer:s.layer,fieldList:o}).name,p={...u,id:`series_${Date.now()}`,name:n.axisLabels.values,x:Tn,y:h},d=[];for(let f of e)d.push({onStatisticField:f,outStatisticFieldName:`${f}_0`.toUpperCase(),statisticType:t});p.query={outStatistics:d};let c=r.series[0];return c!==void 0&&(p.id=c.id,(vt(p)&&vt(c)||bt(p)&&bt(c))&&Lo(p,c),r.colorMatch||(_i(c)&&_i(p)?p.fillSymbol=c.fillSymbol:(vt(p)&&vt(c)||bt(p)&&bt(c))&&(p.lineSymbol=c.lineSymbol,p.markerSymbol=c.markerSymbol),l=!0),p.id=c.id,c.name!==u.name&&(p.name=c.name)),r.series.length===1&&((vt(p)||bt(p))&&Lo(p,r.series[0]),r.colorMatch||(_i(p)?p.fillSymbol=r.series[0].fillSymbol:(vt(p)||bt(p))&&(p.lineSymbol=r.series[0].lineSymbol,p.markerSymbol=r.series[0].markerSymbol),l=!0)),r.colorMatch=!l,[p]}function rg(a){let{xAxisField:i,numericFields:e,aggregationType:t,config:r,layerInfo:s,commonStrings:n}=a,{layerFieldsInfo:o}=s,l=La(s.layer).idField,u=[],h=!1;for(let y=0;y<e.length;y+=1){let g=ko({config:r,xAxisField:i,aggregationType:t,layerInfo:s,seriesIndex:y,commonStrings:n}),v=ll({config:r,xAxisField:i,numericFields:e,aggregationType:t,layer:s.layer,numericFieldIndex:y,fieldList:o}).name,x=e[y],P={...g,query:{...g.query}};e&&x!==l&&(P={...P,id:x,name:Dt(o,x)});let T=x;P.query!==void 0&&(t!==mt.NoAggregation?(T=v,P.query.outStatistics=[{...g.query?.outStatistics?.[0]??{},onStatisticField:x,outStatisticFieldName:v,statisticType:t}]):delete P.query.outStatistics),P.y=T;let C=r.series.find(O=>O.query?.outStatistics?.[0]?.onStatisticField===x&&O.query.where===void 0||O.query?.outStatistics===void 0&&(O.y===x||O.x===x));if(C!==void 0&&typeof C.y=="string"&&C.y.trim()!==""){(vt(P)&&vt(C)||bt(P)&&bt(C))&&Lo(P,C),r.colorMatch||(_i(P)&&_i(C)?P.fillSymbol=C.fillSymbol:(vt(P)&&vt(C)||bt(P)&&bt(C))&&(P.lineSymbol=C.lineSymbol,P.markerSymbol=C.markerSymbol),h=!0);let O=ko({config:r,xAxisField:i,aggregationType:t,layerInfo:s,seriesIndex:y,commonStrings:n});P.id=C.id,C.id!==O.id&&C.name!==O.name&&(P.id=C.id,P.name=C.name),P.assignToSecondValueAxis=C.assignToSecondValueAxis,P.type===W.HeatSeries&&C.type===W.HeatSeries&&(P.y=C.y,P.heatRulesType=C.heatRulesType)}u.push(P)}let p=u.filter(y=>_i(y)),d=u.filter(y=>vt(y)||bt(y)),c=r.series.filter(y=>_i(y)),f=r.series.filter(y=>vt(y)||bt(y));return c.length===1&&p.length===1&&!r.colorMatch&&(_i(c[0])&&_i(p[0])&&(p[0].fillSymbol=c[0].fillSymbol),h=!0),f.length===1&&d.length===1&&((vt(f[0])&&vt(d[0])||bt(f[0])&&bt(d[0]))&&Lo(d[0],f[0]),r.colorMatch||((vt(f[0])&&vt(d[0])||bt(f[0])&&bt(d[0]))&&(d[0].lineSymbol=f[0].lineSymbol,d[0].markerSymbol=f[0].markerSymbol),h=!0)),r.colorMatch=!h,u}async function k_(a){let{splitByField:i,xAxisField:e,numericFields:t,aggregationType:r,config:s,layerInfo:n,commonStrings:o}=a,{layer:l,layerFieldsInfo:u}=n,{fetchNullValues:h}=s?.series?.[0]?.query??{},p=e!==Tn?e:void 0,{categoriesArray:d,splitByFieldType:c,numericalField:f}=await Hc({config:s,layer:l,layerFieldsInfo:u,xAxisField:p,aggregationFields:t,splitByField:i,fetchNullValues:h}),y=[],g=!1;if(d.length===0){y=rg({xAxisField:e,numericFields:t,aggregationType:r,config:s,layerInfo:n,commonStrings:o});for(let v of y)v.query&&(v.query.where=`${i}=''`)}else for(let v=0;v<d.length;v+=1){let x=d[v],P=ll({config:s,xAxisField:e,numericFields:t,aggregationType:r,layer:n.layer,seriesIndex:v,splitByField:i,fieldList:u}).name,T=ko({config:s,xAxisField:e,aggregationType:r,layerInfo:n,seriesIndex:v,commonStrings:o}),C=nl({queryObject:n.layer,fieldName:i,fieldValue:x??""}),O=`${x}`,w={...T,id:O,name:C??O,y:P,query:{...T.query,where:`${i}=${c===Ko.String&&x!==null?`'${x}'`:x}`,outStatistics:r!==mt.NoAggregation?[{...T.query?.outStatistics?.[0]??{},onStatisticField:f,outStatisticFieldName:P,statisticType:r}]:void 0}};r===mt.NoAggregation&&(w.query!==void 0&&(delete w.query.outStatistics,delete w.query.groupByFieldsForStatistics),w.y=f);let D=s.series.find(A=>String(tg(A)).trim().replace(/'/gu,"")===O);D!==void 0&&((vt(w)&&vt(D)||bt(w)&&bt(D))&&Lo(w,D),s.colorMatch||(_i(w)&&_i(D)?w.fillSymbol=D.fillSymbol:(vt(w)&&vt(D)||bt(w)&&bt(D))&&(w.lineSymbol=D.lineSymbol,w.markerSymbol=D.markerSymbol),g=!0),w.id=D.id,w.name=D.name,w.assignToSecondValueAxis=D.assignToSecondValueAxis),w.query&&(w.query.fetchNullValues=s.series.some(A=>A.query?.fetchNullValues)),y.push(w)}return s.colorMatch=!g,y}var AU=async a=>{let{xAxisFieldName:i,splitByField:e,numericFields:t,aggregationType:r,config:s,layerInfo:n,commonStrings:o}=a,{layerFieldsInfo:l}=n??{},u=Uc(s),h=Fs(s),p=l.find(D=>D.name===h),d=s.series[0]?.query===void 0,c=l.find(D=>D.name===i),f=Od(s,n,o),y=L_(s,n,o),g=I_(s,n),v=mh(s),x=s.series.some(D=>_i(D)),P=Nc(s.series),T=Ec(s.series),C=tl(s),O={};C&&(O.classBreaksRules=s.series[0]?.classBreaksRules,O.xTemporalBinning=s.series[0]?.xTemporalBinning,O.yTemporalBinning=s.series[0]?.yTemporalBinning,O.emptyCells=s.series[0]?.emptyCells,O.nullPolicy=s.nullPolicy);let w=!1;if(Oc(c)?v=Yu():!sh(p)&&sh(c)?v=Gu():!Dn(p)&&Dn(c)?(v=Gu(),w=!0):Dn(p)&&!Dn(c)&&(x?v=Yu():v=el(),w=!0),v!==void 0&&Wc(s,o,v),u===0&&(s.series=[ko({config:s,xAxisField:i,aggregationType:r,layerInfo:n,commonStrings:o})]),s.series.forEach(D=>{D.x=i,D.query!==void 0&&(D.query.groupByFieldsForStatistics=[i])}),e===""||t.length>1?vh({fieldName:i,numericFields:t,fieldList:l})?s.series=V_({config:s,layerInfo:n,xAxisField:i,numericFields:t,aggregationType:r,commonStrings:o}):s.series=rg({config:s,layerInfo:n,xAxisField:i,numericFields:t,aggregationType:r,commonStrings:o}):(await Promise.resolve(),s.series=await k_({config:s,layerInfo:n,splitByField:e,xAxisField:i,numericFields:t,aggregationType:r,commonStrings:o})),g&&s.series[0].type!==W.HeatSeries){let D=Dt(l,i);As(s,0,D)}if(y&&s.series[0].type!==W.HeatSeries){let D=fh({config:s,layerInfo:n,commonStrings:o,numericFields:t,aggregationType:r});As(s,1,D)}if(s.title&&f&&(s.title.content.text=ju(s,n,o)),di({config:s,value:null,axisIndex:1,isMax:!1}),di({config:s,value:null,axisIndex:1,isMax:!0}),F_({numericFields:t,aggregationType:r,config:s,layerInfo:n}),(P||T)&&(di({config:s,value:null,axisIndex:0,isMax:!1}),di({config:s,value:null,axisIndex:0,isMax:!0}),w)){let D=v?.type===W.DateAxisFormat?bs.Null:bs.Interpolate;O_(D,s)}C&&(s.series[0].classBreaksRules=O.classBreaksRules,s.series[0].xTemporalBinning=O.xTemporalBinning,s.series[0].yTemporalBinning=O.yTemporalBinning,s.series[0].emptyCells=O.emptyCells,s.nullPolicy=O.nullPolicy),d&&s.series.forEach(D=>{delete D.query})},Lo=(a,i)=>{a.markerVisible=i.markerVisible,a.lineSmoothed=i.lineSmoothed,a.showArea=i.showArea,a.areaColor=i.areaColor,a.stackNegativeValuesToBaseline=i.stackNegativeValuesToBaseline,i.lineSymbol&&(a.lineSymbol={...i.lineSymbol,color:a.lineSymbol?.color}),i.markerSymbol&&(a.markerSymbol={...i.markerSymbol,color:a.markerSymbol?.color})},FU=a=>{let{config:i,seriesIndex:e,layerInfo:t,commonStrings:r}=a,s=i.series?.[e],n=Cd(i),o;if(gt(i.series)===pe.BarAndLineFromFields)o=r.axisLabels.values;else if(ea(n)){let l=s.query?.outStatistics?.[0]?.onStatisticField;l!==void 0&&l!==La(t.layer).idField&&(o=Dt(t.layerFieldsInfo,l))}else{let l=String(tg(s)).trim().replace(/'/gu,"");o=nl({queryObject:t.layer,fieldName:n,fieldValue:l??""})??l}return o??s.id},VU=(a,i)=>{if(tl(i))D_(a,i);else{i.orderOptions??={};let e=i.orderOptions?.data?.orderType;hd(i)[0]===ol.customSort&&e===hi.Category&&(i.orderOptions.data={orderType:hi.Category,orderBy:[...a]})}},kU=async(a,i)=>{let e=Fs(a),t=mh(a)?.type,r=Td(a),s=gt(a.series),n=[];return t===W.CategoryAxisFormat&&(s===pe.BarAndLineFromFields||e===Tn?n=r.map(o=>Dt(i?.layerFieldsInfo,o)):e.trim()!==""&&e!==Tn&&i!==void 0&&(n=await zc({layerInfo:i,config:a,category:e}))),n};function Od(a,i,e){let t=ju(a,i,e),r=Gc(a),s=An(a);return t===r||s}function L_(a,i,e){let t=fh({config:a,layerInfo:i,commonStrings:e,numericFields:Td(a),aggregationType:ig(a)}),r=ul(1,a),s=An(a);return t===r||s}function I_(a,i){let e=Dt(i.layerFieldsInfo,Fs(a)),t=ul(0,a),r=An(a);return e===t||r}function LU(a){return pi(a.series[0])?a.series[0].binTemporalData??!0:!1}function IU(a,i){i?.series.forEach(e=>{(e?.type===W.BarSeries||e?.type===W.LineSeries)&&(e.binTemporalData=a,a?e.temporalBinning={unit:Xt.Day,size:0,timeAggregationType:Vd.Start,trimIncompleteTimeInterval:!0,nullPolicy:bs.Null}:delete e.temporalBinning)})}return{a:Xe,b:ae,c:k,d:Lh,e:de,f:ue,g:U,h:Je,i:ma,j:Or,k:Q,l:qe,m:Ni,n:et,o:ur,p:Ql,q:hr,r:Ei,s:Lr,t:ei,u:Tt,v:it,w:$t,x:yi,y:bn,z:xn,A:_v,B:$v,C:Pv,D:Et,E:Wi,F:q3,G:kv,H:Z3,I:Q3,J:J3,K:pd,L:eG,M:G,N:Ai,O:gi,P:wa,Q:li,R:Do,S:L,T:Ev,U:tG,V:Oa,W:Qm,X:Jv,Y:Bi,Z:te,_:tb,$:rt,aa:iG,ba:Ao,ca:Jr,da:Cu,ea:pr,fa:$n,ga:ad,ha:wu,ia:db,ja:rG,ka:aG,la:sG,ma:fb,na:ms,oa:Ty,pa:Oy,qa:Fo,ra:Pb,sa:Cb,ta:ds,ua:nG,va:oG,wa:lG,xa:fd,ya:Pn,za:ys,Aa:ky,Ba:Ab,Ca:Io,Da:Fb,Ea:Ry,Fa:Ro,Ga:Rr,Ha:Mo,Ia:Mr,Ja:yd,Ka:Bb,La:uG,Ma:hG,Na:Iu,Oa:pG,Pa:dG,Qa:cG,Ra:Au,Sa:zb,Ta:jo,Ua:vd,Va:Xb,Wa:Yb,Xa:fG,Ya:Ub,Za:Qb,_a:m,$a:hx,ab:mG,bb:yG,cb:gG,db:vG,eb:fx,fb:_x,gb:bG,hb:xG,ib:_G,jb:$G,kb:PG,lb:SG,mb:CG,nb:Mu,ob:TG,pb:_d,qb:Qr,rb:Vu,sb:Ky,tb:Pd,ub:OG,vb:wG,wb:id,xb:f_,yb:rd,zb:g_,Ab:DG,Bb:AG,Cb:FG,Db:VG,Eb:kG,Fb:v_,Gb:LG,Hb:IG,Ib:RG,Jb:MG,Kb:jG,Lb:C_,Mb:NG,Nb:EG,Ob:BG,Pb:T_,Qb:O_,Rb:WG,Sb:HG,Tb:zG,Ub:XG,Vb:YG,Wb:GG,Xb:UG,Yb:KG,Zb:qG,_b:ZG,$b:QG,ac:w_,bc:JG,cc:eU,dc:tU,ec:iU,fc:rU,gc:aU,hc:sU,ic:nU,jc:oU,kc:lU,lc:uU,mc:hU,nc:pU,oc:dU,pc:cU,qc:A_,rc:fU,sc:mU,tc:yU,uc:gU,vc:vU,wc:bU,xc:xU,yc:_U,zc:$U,Ac:PU,Bc:SU,Cc:CU,Dc:TU,Ec:OU,Fc:wU,Gc:DU,Hc:ju,Ic:ig,Jc:Cd,Kc:Td,Lc:hd,Mc:AU,Nc:FU,Oc:VU,Pc:kU,Qc:LU,Rc:IU}},"intl","geometry/support/jsonUtils","rest/support/AttributeBinsQuery","rest/support/Query","rest/support/StatisticDefinition","time/TimeExtent","core/promiseUtils","request","applications/Components/imageryUtils","geometry/Extent","geometry/Point","Graphic","renderers/support/jsonUtils","symbols/support/symbolUtils","AttributeBinsGraphic","layers/support/CodedValueDomain","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","core/sql",a,b,c,d,e,f)
|