@arcgis/charts-components 5.1.0-next.78 → 5.1.0-next.79
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/2EFFPZSB.js +2 -0
- package/dist/cdn/{5MK4KEXO.js → 2NN5AE5D.js} +1 -1
- package/dist/cdn/3AIE3FUA.js +2 -0
- package/dist/cdn/3LYW7DPP.js +2 -0
- package/dist/cdn/3MHB5VAM.js +37 -0
- package/dist/cdn/3VEQ7HMG.js +2 -0
- package/dist/cdn/{2RI4SWDF.js → 45P5JEKC.js} +1 -1
- package/dist/cdn/{ES3W7RXX.js → 47WDNO2P.js} +1 -1
- package/dist/cdn/4GCUO37L.js +2 -0
- package/dist/cdn/4IYPGSMC.js +2 -0
- package/dist/cdn/{E25WCICG.js → 4LH6RELA.js} +1 -1
- package/dist/cdn/4YZHTVL7.js +2 -0
- package/dist/cdn/52XNA2DH.js +2 -0
- package/dist/cdn/57CR5SOU.js +2 -0
- package/dist/cdn/5ZYCFKFX.js +2 -0
- package/dist/cdn/66KEM4LG.js +2 -0
- package/dist/cdn/6DGQQ4V4.js +2 -0
- package/dist/cdn/6FB455E4.js +2 -0
- package/dist/cdn/6P6HFKV2.js +2 -0
- package/dist/cdn/7GWVJEAI.js +2 -0
- package/dist/cdn/7I2D5SVD.js +2 -0
- package/dist/cdn/7ICRLJ5R.js +2 -0
- package/dist/cdn/7K2V6YNA.js +2 -0
- package/dist/cdn/7X23S5SF.js +2 -0
- package/dist/cdn/A4FCRGKH.js +2 -0
- package/dist/cdn/ALMGT4ZN.js +2 -0
- package/dist/cdn/BBBLK7RI.js +2 -0
- package/dist/cdn/BCPVUKSF.js +2 -0
- package/dist/cdn/CXSNVG3M.js +2 -0
- package/dist/cdn/DYQRIA4G.js +2 -0
- package/dist/cdn/E5P3LY6E.js +2 -0
- package/dist/cdn/E6S67HXA.js +2 -0
- package/dist/cdn/{F64DUA56.js → EEBFNI6X.js} +1 -1
- package/dist/cdn/{ZHHGFM7A.js → FOYNQPWL.js} +1 -1
- package/dist/cdn/G2EWR4OS.js +2 -0
- package/dist/cdn/GDTHQBCP.js +2 -0
- package/dist/cdn/{IXB466HO.js → GPXGV2W3.js} +1 -1
- package/dist/cdn/H32MCV7J.js +2 -0
- package/dist/cdn/{Z65YSXAM.js → HESIIJTB.js} +1 -1
- package/dist/cdn/HNRWEWFM.js +2 -0
- package/dist/cdn/{TTFGPQEV.js → HWJIFGRR.js} +1 -1
- package/dist/cdn/{Y63HMEHX.js → ICCNKIGD.js} +1 -1
- package/dist/cdn/IKRCUXIB.js +2 -0
- package/dist/cdn/IO7TJZDW.js +2 -0
- package/dist/cdn/{HJI2UDQ5.js → IVWZLS7W.js} +1 -1
- package/dist/cdn/IXGXDRYR.js +2 -0
- package/dist/cdn/{VO3T2EU2.js → IZCUAYGW.js} +1 -1
- package/dist/cdn/JB527BEY.js +2 -0
- package/dist/cdn/JLFVNF5U.js +2 -0
- package/dist/cdn/JZPDA4LD.js +2 -0
- package/dist/cdn/KC5H5WGK.js +2 -0
- package/dist/cdn/{3M3XDPTP.js → KFBMPA6U.js} +1 -1
- package/dist/cdn/KFIYYH54.js +2 -0
- package/dist/cdn/KQD5PSPV.js +2 -0
- package/dist/cdn/KRGZLJM5.js +2 -0
- package/dist/cdn/KUO2EPUE.js +2 -0
- package/dist/cdn/LD2K2FUM.js +2 -0
- package/dist/cdn/{ADEXGHEI.js → LHNPAXRS.js} +1 -1
- package/dist/cdn/LNTDBU7W.js +2 -0
- package/dist/cdn/LPGL66XP.js +2 -0
- package/dist/cdn/LT4HKSXR.js +2 -0
- package/dist/cdn/LX5QI6J3.js +2 -0
- package/dist/cdn/{GI5KVQT7.js → MBC2KQUK.js} +1 -1
- package/dist/cdn/MFIKF7RC.js +2 -0
- package/dist/cdn/{S6LNDEBR.js → MGIPPTHG.js} +1 -1
- package/dist/cdn/NFBNUOS2.js +2 -0
- package/dist/cdn/NHN6CQRE.js +2 -0
- package/dist/cdn/OQLV6YYT.js +2 -0
- package/dist/cdn/P2MVLEZ7.js +2 -0
- package/dist/cdn/{JMAFYRD7.js → PV4ROV2W.js} +1 -1
- package/dist/cdn/Q3YDW4V6.js +2 -0
- package/dist/cdn/QGLWCPMB.js +2 -0
- package/dist/cdn/QJKJNE7A.js +2 -0
- package/dist/cdn/RI65IJRW.js +2 -0
- package/dist/cdn/SJWEUS4D.js +2 -0
- package/dist/cdn/SLB3Y7Q2.js +2 -0
- package/dist/cdn/SUUMGHCO.js +2 -0
- package/dist/cdn/{3QCPYVCJ.js → SYV4I4MD.js} +2 -2
- package/dist/cdn/T47JP5N6.js +2 -0
- package/dist/cdn/TJ3ALCTV.js +2 -0
- package/dist/cdn/TZG37HE4.js +2 -0
- package/dist/cdn/UM7JZ2DY.js +2 -0
- package/dist/cdn/V45SCYTC.js +2 -0
- package/dist/cdn/{SQSCQJPU.js → VOR2H3D7.js} +1 -1
- package/dist/cdn/VPLVBL2P.js +2 -0
- package/dist/cdn/WTQDFRE7.js +2 -0
- package/dist/cdn/X234G7PD.js +2 -0
- package/dist/cdn/X7FQPP5T.js +2 -0
- package/dist/cdn/XJFKEIB4.js +2 -0
- package/dist/cdn/XLHQQCTU.js +2 -0
- package/dist/cdn/XSH2YEV4.js +2 -0
- package/dist/cdn/Y3E4HJZ6.js +2 -0
- package/dist/cdn/Y5KIJ6GX.js +120 -0
- package/dist/cdn/YKJO6KSB.js +2 -0
- package/dist/cdn/YSZU65DU.js +2 -0
- package/dist/cdn/{TMV7ZINW.js → ZEQ6Q5SM.js} +1 -1
- package/dist/cdn/ZMVYIIG4.js +2 -0
- package/dist/cdn/index.js +1 -1
- package/dist/chunks/action-bar-utils.js +15 -12
- package/dist/chunks/bar-chart-model.js +9 -6
- package/dist/chunks/bar-chart-series.js +10 -8
- package/dist/chunks/box-plot-data.js +53 -51
- package/dist/chunks/box-plot-model.js +15 -16
- package/dist/chunks/chart-model.js +53 -50
- package/dist/chunks/chart-ui-utils2.js +54 -51
- package/dist/chunks/class-breaks.js +1 -1
- package/dist/chunks/combo-bar-line-chart-model.js +19 -20
- package/dist/chunks/data.js +13 -10
- package/dist/chunks/gauge-model.js +13 -10
- package/dist/chunks/generate-x-axis-title.js +11 -8
- package/dist/chunks/heat-chart-model.js +9 -6
- package/dist/chunks/histogram-data.js +40 -37
- package/dist/chunks/index.js +5244 -4428
- package/dist/chunks/index2.js +27 -28
- package/dist/chunks/index4.js +63 -95
- package/dist/chunks/line-chart-model.js +1 -1
- package/dist/chunks/model-setter.js +24 -21
- package/dist/chunks/model-with-guides.js +10 -8
- package/dist/chunks/model-with-tooltips.js +29 -26
- package/dist/chunks/model-with-y-guides.js +3 -0
- package/dist/chunks/negative-values-stacked-to-baseline.js +50 -48
- package/dist/chunks/pie-chart-data.js +60 -57
- package/dist/chunks/pie-chart-model.js +4 -1
- package/dist/chunks/radar-chart-model.js +9 -6
- package/dist/chunks/rotated-state.js +10 -7
- package/dist/chunks/scatterplot-model.js +12 -9
- package/dist/chunks/serial-chart-data.js +189 -187
- package/dist/chunks/serial-chart-model.js +14 -12
- package/dist/chunks/series-length.js +7 -4
- package/dist/chunks/series.js +9 -6
- package/dist/chunks/utils.js +60 -58
- package/dist/chunks/utils2.js +25 -22
- package/dist/chunks/web-component-utils.js +19 -19
- package/dist/components/arcgis-chart/customElement.js +7051 -7773
- package/dist/components/arcgis-charts-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-charts-config-bar-chart/customElement.js +9 -7
- package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +7 -4
- package/dist/components/arcgis-charts-config-bar-chart-popover/customElement.js +12 -9
- package/dist/components/arcgis-charts-config-bar-chart-series/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-bar-chart-series-popover/customElement.js +8 -5
- package/dist/components/arcgis-charts-config-box-plot/customElement.js +7 -5
- package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +3 -0
- package/dist/components/arcgis-charts-config-box-plot-popover/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-box-plot-series/customElement.js +3 -0
- package/dist/components/arcgis-charts-config-box-plot-series-popover/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-chart-rename-popover/customElement.js +12 -9
- package/dist/components/arcgis-charts-config-create-flow/customElement.js +14 -11
- package/dist/components/arcgis-charts-config-font-style/customElement.js +3 -0
- package/dist/components/arcgis-charts-config-format/customElement.js +4 -2
- package/dist/components/arcgis-charts-config-format-popover/customElement.js +3 -0
- package/dist/components/arcgis-charts-config-general/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-guide/customElement.js +14 -12
- package/dist/components/arcgis-charts-config-guide-popover/customElement.js +6 -3
- package/dist/components/arcgis-charts-config-guides-type-popover/customElement.js +6 -3
- package/dist/components/arcgis-charts-config-heat-chart/customElement.js +9 -7
- package/dist/components/arcgis-charts-config-heat-chart-data/customElement.js +15 -12
- package/dist/components/arcgis-charts-config-heat-chart-popover/customElement.js +13 -10
- package/dist/components/arcgis-charts-config-histogram/customElement.js +13 -11
- package/dist/components/arcgis-charts-config-histogram-data/customElement.js +10 -7
- package/dist/components/arcgis-charts-config-histogram-popover/customElement.js +23 -20
- package/dist/components/arcgis-charts-config-line-chart/customElement.js +8 -6
- package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-line-chart-popover/customElement.js +6 -3
- package/dist/components/arcgis-charts-config-line-chart-series/customElement.js +3 -0
- package/dist/components/arcgis-charts-config-line-chart-series-popover/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-pie-chart/customElement.js +7 -5
- package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +3 -0
- package/dist/components/arcgis-charts-config-pie-chart-popover/customElement.js +8 -5
- package/dist/components/arcgis-charts-config-pie-chart-slices/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-pie-chart-slices-popover/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-scatter-plot/customElement.js +8 -6
- package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-scatter-plot-popover/customElement.js +12 -9
- package/dist/components/arcgis-charts-config-select-chart-type-popover/customElement.js +4 -1
- package/dist/components/arcgis-charts-config-view-charts/customElement.js +3 -0
- package/dist/components/arcgis-charts-info-modal/customElement.js +4 -1
- 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 +304 -305
- package/package.json +4 -4
- package/dist/cdn/2AEFBZA6.js +0 -2
- package/dist/cdn/2GM63EE7.js +0 -2
- package/dist/cdn/2HKPJLJW.js +0 -2
- package/dist/cdn/3LMKKZTL.js +0 -2
- package/dist/cdn/3RGF75DP.js +0 -2
- package/dist/cdn/3UNAXCYW.js +0 -2
- package/dist/cdn/3WLUKAWB.js +0 -2
- package/dist/cdn/4YOJ5O2A.js +0 -2
- package/dist/cdn/4ZD2CXQ4.js +0 -2
- package/dist/cdn/5BO7XUS5.js +0 -2
- package/dist/cdn/5EYJNFF4.js +0 -2
- package/dist/cdn/5LJ7XHSC.js +0 -2
- package/dist/cdn/5SAY5GKS.js +0 -2
- package/dist/cdn/76VEGYRQ.js +0 -2
- package/dist/cdn/7H7OKCSJ.js +0 -2
- package/dist/cdn/BGZSASP3.js +0 -2
- package/dist/cdn/CKH25CUY.js +0 -2
- package/dist/cdn/CN6T42GJ.js +0 -2
- package/dist/cdn/CVAHFSCI.js +0 -2
- package/dist/cdn/CXCFDZNV.js +0 -99
- package/dist/cdn/D6AR4347.js +0 -2
- package/dist/cdn/DDMTRVZZ.js +0 -2
- package/dist/cdn/DFNF5JJP.js +0 -2
- package/dist/cdn/DGLPS4VB.js +0 -2
- package/dist/cdn/DHMPSHCO.js +0 -2
- package/dist/cdn/DUTXELFO.js +0 -2
- package/dist/cdn/DVFRUSFN.js +0 -2
- package/dist/cdn/EHKQ4VUW.js +0 -2
- package/dist/cdn/EUABZJAR.js +0 -2
- package/dist/cdn/F7NB6TLJ.js +0 -2
- package/dist/cdn/FNRKUKHJ.js +0 -2
- package/dist/cdn/GJ2MADW4.js +0 -2
- package/dist/cdn/HSEIANOJ.js +0 -2
- package/dist/cdn/HUZB5MRQ.js +0 -2
- package/dist/cdn/ICVOJ7IE.js +0 -2
- package/dist/cdn/II3DOWSZ.js +0 -2
- package/dist/cdn/ILXAOG2N.js +0 -2
- package/dist/cdn/IQXDRGAE.js +0 -2
- package/dist/cdn/IULLXZVB.js +0 -2
- package/dist/cdn/JWNRXRTN.js +0 -2
- package/dist/cdn/KYCMT6LY.js +0 -2
- package/dist/cdn/LKHHL4H6.js +0 -2
- package/dist/cdn/MHEM3WWA.js +0 -2
- package/dist/cdn/MRXNE4YH.js +0 -2
- package/dist/cdn/NSZATHN3.js +0 -2
- package/dist/cdn/OBM32R6B.js +0 -2
- package/dist/cdn/OGALOQBF.js +0 -2
- package/dist/cdn/PLTUCUAY.js +0 -2
- package/dist/cdn/PMHRG46V.js +0 -2
- package/dist/cdn/PORI3GND.js +0 -2
- package/dist/cdn/PTSX6YX3.js +0 -2
- package/dist/cdn/QKPTLIKE.js +0 -2
- package/dist/cdn/QLFRU6NC.js +0 -2
- package/dist/cdn/R2QN6SOP.js +0 -2
- package/dist/cdn/R7TM4YQC.js +0 -2
- package/dist/cdn/RRSTM5Z4.js +0 -2
- package/dist/cdn/RUVPQ3SR.js +0 -2
- package/dist/cdn/RZOTVNT6.js +0 -2
- package/dist/cdn/SC7B4TMS.js +0 -2
- package/dist/cdn/SKC3WBMM.js +0 -2
- package/dist/cdn/SM2XPYTZ.js +0 -2
- package/dist/cdn/SS3X7TIN.js +0 -58
- package/dist/cdn/SZQB2BFT.js +0 -2
- package/dist/cdn/TKV4MOIG.js +0 -2
- package/dist/cdn/VKYTI3FK.js +0 -2
- package/dist/cdn/WJYUEMVM.js +0 -2
- package/dist/cdn/WNHQFTOB.js +0 -2
- package/dist/cdn/WNN63OQH.js +0 -2
- package/dist/cdn/WPOOPO7Z.js +0 -2
- package/dist/cdn/WVHJGHTZ.js +0 -2
- package/dist/cdn/XEOYAC7D.js +0 -2
- package/dist/cdn/XLIKADWU.js +0 -2
- package/dist/cdn/YJXIGYX6.js +0 -2
- package/dist/cdn/Z5QMTA2S.js +0 -2
- package/dist/cdn/ZIU7IJJR.js +0 -2
- package/dist/cdn/ZOI5XSSA.js +0 -2
- package/dist/cdn/ZSIFL33O.js +0 -2
- package/dist/cdn/ZTW474GL.js +0 -2
- package/dist/chunks/index5.js +0 -66
- /package/dist/cdn/{M2XPJIOQ.js → 3OGKV4KZ.js} +0 -0
- /package/dist/cdn/{LJCSR2IZ.js → 3VMIFF7C.js} +0 -0
- /package/dist/cdn/{2QPNL7Y2.js → 47EOUNYO.js} +0 -0
- /package/dist/cdn/{B55FRUGA.js → 5TOYNVTW.js} +0 -0
- /package/dist/cdn/{B4MAGTAP.js → 6HUDF5Q2.js} +0 -0
- /package/dist/cdn/{76DFMYG4.js → ALRIN5E5.js} +0 -0
- /package/dist/cdn/{KCPSHLUL.js → AVU2CHAB.js} +0 -0
- /package/dist/cdn/{FFW6SQJB.js → B4ULOSFG.js} +0 -0
- /package/dist/cdn/{DQUKRY3M.js → BQOMKKBK.js} +0 -0
- /package/dist/cdn/{QZ3WZKSG.js → BUCYRXMT.js} +0 -0
- /package/dist/cdn/{B56AXPLG.js → BY77PBZ2.js} +0 -0
- /package/dist/cdn/{LXIM3RKN.js → COQ55XOW.js} +0 -0
- /package/dist/cdn/{GDLCLCPQ.js → DNSUOJXJ.js} +0 -0
- /package/dist/cdn/{3WRAGIMC.js → EIIQ2CSC.js} +0 -0
- /package/dist/cdn/{HPONDACN.js → EVHJVY4I.js} +0 -0
- /package/dist/cdn/{KAQTKYYM.js → F57IRWBF.js} +0 -0
- /package/dist/cdn/{5C7U7CYQ.js → FLSUJTUZ.js} +0 -0
- /package/dist/cdn/{6IQ2FQTN.js → FSNQ3YXX.js} +0 -0
- /package/dist/cdn/{SWOSRENC.js → G2L5FYWK.js} +0 -0
- /package/dist/cdn/{CAOSVB4R.js → GR4BZF3L.js} +0 -0
- /package/dist/cdn/{Q2TVJHZD.js → GWPFABGL.js} +0 -0
- /package/dist/cdn/{2KVU566F.js → HJW6UNEH.js} +0 -0
- /package/dist/cdn/{XD62BPHL.js → I3BNBZ4D.js} +0 -0
- /package/dist/cdn/{S5OM65RV.js → J6TUXYMO.js} +0 -0
- /package/dist/cdn/{DPTNMDQ2.js → JM6E3U5J.js} +0 -0
- /package/dist/cdn/{FDZIENVW.js → KBDOBMB5.js} +0 -0
- /package/dist/cdn/{QR3YISEA.js → LOX7MXL4.js} +0 -0
- /package/dist/cdn/{K437RPD5.js → MS6EYP4R.js} +0 -0
- /package/dist/cdn/{VQJLB7UN.js → NGLXQHZ2.js} +0 -0
- /package/dist/cdn/{JFGFCKMZ.js → NPVXLEZW.js} +0 -0
- /package/dist/cdn/{NEJTN4I6.js → NSRIVIOH.js} +0 -0
- /package/dist/cdn/{5MWQVGQZ.js → RHGKKMJG.js} +0 -0
- /package/dist/cdn/{HQMC6YQ6.js → S5EI7T2D.js} +0 -0
- /package/dist/cdn/{PYCYFLNO.js → SOIF6AMX.js} +0 -0
- /package/dist/cdn/{MOBZATNH.js → THJTENN5.js} +0 -0
- /package/dist/cdn/{SQPFZZKR.js → TX2SYGTH.js} +0 -0
- /package/dist/cdn/{K7ALB3FX.js → YQJLA77R.js} +0 -0
- /package/dist/cdn/{2BS7WCYC.js → ZL5EGDOW.js} +0 -0
- /package/dist/cdn/{SZKFAXS4.js → ZRULG7VV.js} +0 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{a as Nr}from"./QVD6LHQ2.js";import o from"./4IYPGSMC.js";import n from"./SYV4I4MD.js";import{a as nv,g as ov}from"./7BDNLABD.js";import m from"./JZPDA4LD.js";import{c as yg,e as Kh,f as Gh,g as Wh,h as Yh,i as Pl,j as Ol}from"./J6TUXYMO.js";import l from"./6FB455E4.js";import{a as Yb}from"./FPDW4F45.js";import{a as ug}from"./4LH6RELA.js";import k from"./KUO2EPUE.js";import j from"./3LYW7DPP.js";import i from"./E5P3LY6E.js";import h from"./NFBNUOS2.js";import g from"./HESIIJTB.js";import f from"./GDTHQBCP.js";import e from"./66KEM4LG.js";import d from"./BBBLK7RI.js";import c from"./IKRCUXIB.js";import b from"./KQD5PSPV.js";import a from"./Y5KIJ6GX.js";import{C as mh,D as yh,g as Hi,h as ls,k as po,l as Ya,t as Cl,u as $r,v as wl,w as ha,x as Vt,y as Tt,z as je}from"./Y7IQV44J.js";import{a as nx,b as ox,c as ch,g as Bl}from"./KFBMPA6U.js";import{a as av}from"./EEBFNI6X.js";import{d as xa,e as zb,f as jb,g as Zb,h as fg,n as gg,t as qb}from"./T5RPAQYI.js";import"./EZM4ZDQI.js";import{a as Q,b as Br,e as Te,f as Qt,h as vl,i as bf,j as vf,k as Nt,l as Cr,m as xo,n as Bf,p as $t,q as Cx,r as bo,t as Cf,u as wf,y as _e,z as wx}from"./ETLJKITO.js";import{A as ix,B as sx,G as rx,H as ax,g as q0,h as J0,i as fA,l as ex,n as As,y as tx,z as lf}from"./ZRULG7VV.js";import{a as pl,b as j0,c as YT,d as Z0}from"./QPIMTXPL.js";export default $arcgis.t(([Ps,{substitute:OA},Yp,,,,,,,,,,,,,,,,,,,,{$:xx,$a:Lf,$b:V,$c:es,$e:Bb,A:pA,Aa:Bh,Ac:qa,Ae:qf,Af:ag,B:uh,Ba:Ff,Bc:Et,Bd:Lo,Be:lb,C:zt,Ca:Sf,Cc:Hx,Cd:ws,Ce:Ql,Cf:Hh,D:xl,Dc:Nx,De:Us,Df:Gr,E:fi,Ec:Lh,Ee:pa,Ef:SA,F:Xs,Fa:wo,Fb:Tx,Fc:pi,Fd:Wx,Fe:El,Ff:Ot,G:mo,Ga:Ch,Gc:or,Gd:Yf,Ge:rt,H:Ji,Ha:ri,Hc:vA,Hf:ya,I:la,Ib:Ix,Ic:Nf,Id:kh,If:Mb,J:Rt,Ja:_l,Jc:Z,Jd:Yx,Je:cb,Jf:Pb,K:yo,Ka:xA,Kc:$f,Kd:_A,Kf:Ob,L:Ht,Lb:Qf,Lc:BA,Ld:zx,Lf:ng,M:fh,Mc:$x,Me:ma,Mf:Nh,N:bl,Nc:Vf,Ne:Tn,Nf:$h,O:gx,Oa:Fx,Oc:Vx,Oe:hb,Of:Hb,P:Ds,Pa:Sx,Pc:Ll,Pd:jx,Pe:ze,Pf:Nb,Q:px,Qa:bA,Qc:Th,Qe:Mh,Qf:$b,R:ca,Rc:Ih,Re:db,S:rr,Sb:We,Sc:Fo,Sd:zf,Se:ub,Sf:og,T:gi,Tb:Ef,Tc:Tl,Td:_r,Te:fb,Tf:Vb,U:gh,Ub:Fn,Uc:So,Ue:gb,V:Xi,Vb:_o,Vc:Xf,Vd:To,Ve:pb,W:mx,Wb:Rf,Wc:fa,Wd:Zx,We:mb,Wf:Vh,X:Li,Xa:Fl,Xb:ar,Xc:CA,Xd:qx,Xe:yb,Xf:Xb,Y:Ks,Yb:Mf,Yc:xe,Ye:xb,Yf:Ag,Z:yx,Zb:Pf,Zc:li,Zd:Jx,Ze:bb,_:xf,_a:wh,_b:Dx,_c:Sn,_e:vb,a:Ze,aa:bx,ab:Tf,ac:ua,ad:Il,af:Cb,b:ml,ba:ph,bc:Xr,bd:Ys,be:Uh,bf:wb,c:vs,ca:vx,cc:kx,cd:Kf,cf:Jf,d:Bs,da:Bx,dc:Of,dd:vi,df:_b,e:Ax,eb:_h,ec:Sl,ef:Fb,f:lx,fb:If,fc:Hf,fd:Gf,ff:Sb,g:cf,ga:ja,gb:Df,gc:Gs,ge:jf,gf:eg,h:hf,ha:vo,hb:kf,hc:Fh,hd:Mt,he:Ja,hf:Lb,hg:lg,i:gA,ib:Lx,ic:Sh,ie:en,if:Tb,ig:Kb,j:cx,jc:Ws,jd:Wf,je:Zf,jf:tg,jg:Xh,k:vr,ka:ti,kd:Xx,ke:eb,kf:Ib,kg:Gb,l:df,la:mA,lc:Ux,ld:mi,le:tb,lf:Db,lg:Ml,m:uf,ma:xh,mc:Qx,me:ib,mf:kb,mg:cg,n:hh,na:_x,nc:nr,ne:sb,ng:Io,o:hx,oa:da,oc:Ex,oe:rb,of:Rl,p:yl,pa:ks,pb:Uf,pc:Rx,pe:Qh,pf:Ph,q:dx,qa:Bo,qc:Mx,qd:Dl,qe:FA,qf:Ub,qg:hg,r:ff,ra:yA,rc:Px,rd:kl,re:Eh,rf:ig,rg:Wb,s:ux,sa:Vr,sc:ce,sd:Kx,se:ab,sf:Oh,t:gf,ta:_f,tc:ot,te:nb,u:pf,ua:Za,uc:Ki,ud:Cs,ue:Ln,uf:Qb,ug:dg,v:za,va:bh,vc:wr,vd:Gx,ve:ob,vg:LA,w:fx,wa:et,wc:Gi,wd:Kr,we:Rh,wf:Eb,x:mf,xa:vh,xc:Ni,xd:ga,xe:Fr,xf:sg,y:yf,yc:Ox,yd:wA,ye:Ab,yf:rg,z:dh,za:Co,zc:Ti,zd:Dh,ze:Ul,zf:Rb},,,,,,,{a:Jb,b:ev,c:tv,d:iv,e:pg,f:mg,g:sv,h:rv},,,,{b:cv,r:xg},{b:Av,c:lv},{c:bg,d:vg,e:hv},{f:dv,h:uv}])=>{var pv=j0((Bg,Cg)=>{(function(r,e){typeof Bg=="object"&&typeof Cg<"u"?Cg.exports=e():typeof define=="function"&&define.amd?define(e):(r=typeof globalThis<"u"?globalThis:r||self,r.html2canvas=e())})(Bg,(function(){"use strict";var r=function(y,p){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(b,x){b.__proto__=x}||function(b,x){for(var F in x)Object.prototype.hasOwnProperty.call(x,F)&&(b[F]=x[F])},r(y,p)};function e(y,p){if(typeof p!="function"&&p!==null)throw new TypeError("Class extends value "+String(p)+" is not a constructor or null");r(y,p);function b(){this.constructor=y}y.prototype=p===null?Object.create(p):(b.prototype=p.prototype,new b)}var t=function(){return t=Object.assign||function(p){for(var b,x=1,F=arguments.length;x<F;x++){b=arguments[x];for(var T in b)Object.prototype.hasOwnProperty.call(b,T)&&(p[T]=b[T])}return p},t.apply(this,arguments)};function i(y,p,b,x){function F(T){return T instanceof b?T:new b(function(R){R(T)})}return new(b||(b=Promise))(function(T,R){function N(ee){try{q(x.next(ee))}catch(se){R(se)}}function H(ee){try{q(x.throw(ee))}catch(se){R(se)}}function q(ee){ee.done?T(ee.value):F(ee.value).then(N,H)}q((x=x.apply(y,p||[])).next())})}function s(y,p){var b={label:0,sent:function(){if(T[0]&1)throw T[1];return T[1]},trys:[],ops:[]},x,F,T,R;return R={next:N(0),throw:N(1),return:N(2)},typeof Symbol=="function"&&(R[Symbol.iterator]=function(){return this}),R;function N(q){return function(ee){return H([q,ee])}}function H(q){if(x)throw new TypeError("Generator is already executing.");for(;b;)try{if(x=1,F&&(T=q[0]&2?F.return:q[0]?F.throw||((T=F.return)&&T.call(F),0):F.next)&&!(T=T.call(F,q[1])).done)return T;switch(F=0,T&&(q=[q[0]&2,T.value]),q[0]){case 0:case 1:T=q;break;case 4:return b.label++,{value:q[1],done:!1};case 5:b.label++,F=q[1],q=[0];continue;case 7:q=b.ops.pop(),b.trys.pop();continue;default:if(T=b.trys,!(T=T.length>0&&T[T.length-1])&&(q[0]===6||q[0]===2)){b=0;continue}if(q[0]===3&&(!T||q[1]>T[0]&&q[1]<T[3])){b.label=q[1];break}if(q[0]===6&&b.label<T[1]){b.label=T[1],T=q;break}if(T&&b.label<T[2]){b.label=T[2],b.ops.push(q);break}T[2]&&b.ops.pop(),b.trys.pop();continue}q=p.call(y,b)}catch(ee){q=[6,ee],F=0}finally{x=T=0}if(q[0]&5)throw q[1];return{value:q[0]?q[1]:void 0,done:!0}}}function a(y,p,b){if(b||arguments.length===2)for(var x=0,F=p.length,T;x<F;x++)(T||!(x in p))&&(T||(T=Array.prototype.slice.call(p,0,x)),T[x]=p[x]);return y.concat(T||p)}for(var n=(function(){function y(p,b,x,F){this.left=p,this.top=b,this.width=x,this.height=F}return y.prototype.add=function(p,b,x,F){return new y(this.left+p,this.top+b,this.width+x,this.height+F)},y.fromClientRect=function(p,b){return new y(b.left+p.windowBounds.left,b.top+p.windowBounds.top,b.width,b.height)},y.fromDOMRectList=function(p,b){var x=Array.from(b).find(function(F){return F.width!==0});return x?new y(x.left+p.windowBounds.left,x.top+p.windowBounds.top,x.width,x.height):y.EMPTY},y.EMPTY=new y(0,0,0,0),y})(),o=function(y,p){return n.fromClientRect(y,p.getBoundingClientRect())},A=function(y){var p=y.body,b=y.documentElement;if(!p||!b)throw new Error("Unable to get document size");var x=Math.max(Math.max(p.scrollWidth,b.scrollWidth),Math.max(p.offsetWidth,b.offsetWidth),Math.max(p.clientWidth,b.clientWidth)),F=Math.max(Math.max(p.scrollHeight,b.scrollHeight),Math.max(p.offsetHeight,b.offsetHeight),Math.max(p.clientHeight,b.clientHeight));return new n(0,0,x,F)},l=function(y){for(var p=[],b=0,x=y.length;b<x;){var F=y.charCodeAt(b++);if(F>=55296&&F<=56319&&b<x){var T=y.charCodeAt(b++);(T&64512)===56320?p.push(((F&1023)<<10)+(T&1023)+65536):(p.push(F),b--)}else p.push(F)}return p},h=function(){for(var y=[],p=0;p<arguments.length;p++)y[p]=arguments[p];if(String.fromCodePoint)return String.fromCodePoint.apply(String,y);var b=y.length;if(!b)return"";for(var x=[],F=-1,T="";++F<b;){var R=y[F];R<=65535?x.push(R):(R-=65536,x.push((R>>10)+55296,R%1024+56320)),(F+1===b||x.length>16384)&&(T+=String.fromCharCode.apply(String,x),x.length=0)}return T},c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",d=typeof Uint8Array>"u"?[]:new Uint8Array(256),u=0;u<c.length;u++)d[c.charCodeAt(u)]=u;for(var f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",m=typeof Uint8Array>"u"?[]:new Uint8Array(256),g=0;g<f.length;g++)m[f.charCodeAt(g)]=g;for(var v=function(y){var p=y.length*.75,b=y.length,x,F=0,T,R,N,H;y[y.length-1]==="="&&(p--,y[y.length-2]==="="&&p--);var q=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(p):new Array(p),ee=Array.isArray(q)?q:new Uint8Array(q);for(x=0;x<b;x+=4)T=m[y.charCodeAt(x)],R=m[y.charCodeAt(x+1)],N=m[y.charCodeAt(x+2)],H=m[y.charCodeAt(x+3)],ee[F++]=T<<2|R>>4,ee[F++]=(R&15)<<4|N>>2,ee[F++]=(N&3)<<6|H&63;return q},B=function(y){for(var p=y.length,b=[],x=0;x<p;x+=2)b.push(y[x+1]<<8|y[x]);return b},w=function(y){for(var p=y.length,b=[],x=0;x<p;x+=4)b.push(y[x+3]<<24|y[x+2]<<16|y[x+1]<<8|y[x]);return b},_=5,L=11,k=2,D=L-_,E=65536>>_,O=1<<_,I=O-1,M=1024>>_,S=E+M,P=S,Y=32,G=P+Y,ie=65536>>L,J=1<<D,ne=J-1,z=function(y,p,b){return y.slice?y.slice(p,b):new Uint16Array(Array.prototype.slice.call(y,p,b))},K=function(y,p,b){return y.slice?y.slice(p,b):new Uint32Array(Array.prototype.slice.call(y,p,b))},ge=function(y,p){var b=v(y),x=Array.isArray(b)?w(b):new Uint32Array(b),F=Array.isArray(b)?B(b):new Uint16Array(b),T=24,R=z(F,T/2,x[4]/2),N=x[5]===2?z(F,(T+x[4])/2):K(x,Math.ceil((T+x[4])/4));return new he(x[0],x[1],x[2],x[3],R,N)},he=(function(){function y(p,b,x,F,T,R){this.initialValue=p,this.errorValue=b,this.highStart=x,this.highValueIndex=F,this.index=T,this.data=R}return y.prototype.get=function(p){var b;if(p>=0){if(p<55296||p>56319&&p<=65535)return b=this.index[p>>_],b=(b<<k)+(p&I),this.data[b];if(p<=65535)return b=this.index[E+(p-55296>>_)],b=(b<<k)+(p&I),this.data[b];if(p<this.highStart)return b=G-ie+(p>>L),b=this.index[b],b+=p>>_&ne,b=this.index[b],b=(b<<k)+(p&I),this.data[b];if(p<=1114111)return this.data[this.highValueIndex]}return this.errorValue},y})(),re="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Me=typeof Uint8Array>"u"?[]:new Uint8Array(256),Ne=0;Ne<re.length;Ne++)Me[re.charCodeAt(Ne)]=Ne;var Ee="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Ge=50,yt=1,Xe=2,Mi=3,oi=4,U=5,ue=7,le=8,X=9,$=10,te=11,fe=12,pe=13,ae=14,ye=15,De=16,be=17,$e=18,Gt=19,xt=20,ys=21,Or=22,Os=23,pr=24,Ct=25,ra=26,Ha=27,xs=28,_c=29,Na=30,Bu=31,iA=32,oo=33,$a=34,gn=35,Cu=36,el=37,wu=38,Fc=39,Sc=40,_u=41,oy=42,j_=43,Z_=[9001,65288],Ay="!",vt="\xD7",Lc="\xF7",Fu=ge(Ee),Va=[Na,Cu],Su=[yt,Xe,Mi,U],ly=[$,le],cy=[Ha,ra],q_=Su.concat(ly),hy=[wu,Fc,Sc,$a,gn],J_=[ye,pe],eF=function(y,p){p===void 0&&(p="strict");var b=[],x=[],F=[];return y.forEach(function(T,R){var N=Fu.get(T);if(N>Ge?(F.push(!0),N-=Ge):F.push(!1),["normal","auto","loose"].indexOf(p)!==-1&&[8208,8211,12316,12448].indexOf(T)!==-1)return x.push(R),b.push(De);if(N===oi||N===te){if(R===0)return x.push(R),b.push(Na);var H=b[R-1];return q_.indexOf(H)===-1?(x.push(x[R-1]),b.push(H)):(x.push(R),b.push(Na))}if(x.push(R),N===Bu)return b.push(p==="strict"?ys:el);if(N===oy||N===_c)return b.push(Na);if(N===j_)return T>=131072&&T<=196605||T>=196608&&T<=262141?b.push(el):b.push(Na);b.push(N)}),[x,b,F]},Lu=function(y,p,b,x){var F=x[b];if(Array.isArray(y)?y.indexOf(F)!==-1:y===F)for(var T=b;T<=x.length;){T++;var R=x[T];if(R===p)return!0;if(R!==$)break}if(F===$)for(var T=b;T>0;){T--;var N=x[T];if(Array.isArray(y)?y.indexOf(N)!==-1:y===N)for(var H=b;H<=x.length;){H++;var R=x[H];if(R===p)return!0;if(R!==$)break}if(N!==$)break}return!1},dy=function(y,p){for(var b=y;b>=0;){var x=p[b];if(x===$)b--;else return x}return 0},tF=function(y,p,b,x,F){if(b[x]===0)return vt;var T=x-1;if(Array.isArray(F)&&F[T]===!0)return vt;var R=T-1,N=T+1,H=p[T],q=R>=0?p[R]:0,ee=p[N];if(H===Xe&&ee===Mi)return vt;if(Su.indexOf(H)!==-1)return Ay;if(Su.indexOf(ee)!==-1||ly.indexOf(ee)!==-1)return vt;if(dy(T,p)===le)return Lc;if(Fu.get(y[T])===te||(H===iA||H===oo)&&Fu.get(y[N])===te||H===ue||ee===ue||H===X||[$,pe,ye].indexOf(H)===-1&&ee===X||[be,$e,Gt,pr,xs].indexOf(ee)!==-1||dy(T,p)===Or||Lu(Os,Or,T,p)||Lu([be,$e],ys,T,p)||Lu(fe,fe,T,p))return vt;if(H===$)return Lc;if(H===Os||ee===Os)return vt;if(ee===De||H===De)return Lc;if([pe,ye,ys].indexOf(ee)!==-1||H===ae||q===Cu&&J_.indexOf(H)!==-1||H===xs&&ee===Cu||ee===xt||Va.indexOf(ee)!==-1&&H===Ct||Va.indexOf(H)!==-1&&ee===Ct||H===Ha&&[el,iA,oo].indexOf(ee)!==-1||[el,iA,oo].indexOf(H)!==-1&&ee===ra||Va.indexOf(H)!==-1&&cy.indexOf(ee)!==-1||cy.indexOf(H)!==-1&&Va.indexOf(ee)!==-1||[Ha,ra].indexOf(H)!==-1&&(ee===Ct||[Or,ye].indexOf(ee)!==-1&&p[N+1]===Ct)||[Or,ye].indexOf(H)!==-1&&ee===Ct||H===Ct&&[Ct,xs,pr].indexOf(ee)!==-1)return vt;if([Ct,xs,pr,be,$e].indexOf(ee)!==-1)for(var se=T;se>=0;){var de=p[se];if(de===Ct)return vt;if([xs,pr].indexOf(de)!==-1)se--;else break}if([Ha,ra].indexOf(ee)!==-1)for(var se=[be,$e].indexOf(H)!==-1?R:T;se>=0;){var de=p[se];if(de===Ct)return vt;if([xs,pr].indexOf(de)!==-1)se--;else break}if(wu===H&&[wu,Fc,$a,gn].indexOf(ee)!==-1||[Fc,$a].indexOf(H)!==-1&&[Fc,Sc].indexOf(ee)!==-1||[Sc,gn].indexOf(H)!==-1&&ee===Sc||hy.indexOf(H)!==-1&&[xt,ra].indexOf(ee)!==-1||hy.indexOf(ee)!==-1&&H===Ha||Va.indexOf(H)!==-1&&Va.indexOf(ee)!==-1||H===pr&&Va.indexOf(ee)!==-1||Va.concat(Ct).indexOf(H)!==-1&&ee===Or&&Z_.indexOf(y[N])===-1||Va.concat(Ct).indexOf(ee)!==-1&&H===$e)return vt;if(H===_u&&ee===_u){for(var ke=b[T],Be=1;ke>0&&(ke--,p[ke]===_u);)Be++;if(Be%2!==0)return vt}return H===iA&&ee===oo?vt:Lc},iF=function(y,p){p||(p={lineBreak:"normal",wordBreak:"normal"});var b=eF(y,p.lineBreak),x=b[0],F=b[1],T=b[2];(p.wordBreak==="break-all"||p.wordBreak==="break-word")&&(F=F.map(function(N){return[Ct,Na,oy].indexOf(N)!==-1?el:N}));var R=p.wordBreak==="keep-all"?T.map(function(N,H){return N&&y[H]>=19968&&y[H]<=40959}):void 0;return[x,F,R]},sF=(function(){function y(p,b,x,F){this.codePoints=p,this.required=b===Ay,this.start=x,this.end=F}return y.prototype.slice=function(){return h.apply(void 0,this.codePoints.slice(this.start,this.end))},y})(),rF=function(y,p){var b=l(y),x=iF(b,p),F=x[0],T=x[1],R=x[2],N=b.length,H=0,q=0;return{next:function(){if(q>=N)return{done:!0,value:null};for(var ee=vt;q<N&&(ee=tF(b,T,F,++q,R))===vt;);if(ee!==vt||q===N){var se=new sF(b,ee,H,q);return H=q,{value:se,done:!1}}return{done:!0,value:null}}}},aF=1,nF=2,tl=4,uy=8,Tc=10,fy=47,il=92,oF=9,AF=32,Ic=34,sl=61,lF=35,cF=36,hF=37,Dc=39,kc=40,rl=41,dF=95,Hs=45,uF=33,fF=60,gF=62,pF=64,mF=91,yF=93,xF=61,bF=123,Uc=63,vF=125,gy=124,BF=126,CF=128,py=65533,Tu=42,Ao=43,wF=44,_F=58,FF=59,al=46,SF=0,LF=8,TF=11,IF=14,DF=31,kF=127,aa=-1,my=48,yy=97,xy=101,UF=102,QF=117,EF=122,by=65,vy=69,By=70,RF=85,MF=90,bs=function(y){return y>=my&&y<=57},PF=function(y){return y>=55296&&y<=57343},sA=function(y){return bs(y)||y>=by&&y<=By||y>=yy&&y<=UF},OF=function(y){return y>=yy&&y<=EF},HF=function(y){return y>=by&&y<=MF},NF=function(y){return OF(y)||HF(y)},$F=function(y){return y>=CF},Qc=function(y){return y===Tc||y===oF||y===AF},Ec=function(y){return NF(y)||$F(y)||y===dF},Cy=function(y){return Ec(y)||bs(y)||y===Hs},VF=function(y){return y>=SF&&y<=LF||y===TF||y>=IF&&y<=DF||y===kF},pn=function(y,p){return y!==il?!1:p!==Tc},Rc=function(y,p,b){return y===Hs?Ec(p)||pn(p,b):Ec(y)?!0:!!(y===il&&pn(y,p))},Iu=function(y,p,b){return y===Ao||y===Hs?bs(p)?!0:p===al&&bs(b):bs(y===al?p:y)},XF=function(y){var p=0,b=1;(y[p]===Ao||y[p]===Hs)&&(y[p]===Hs&&(b=-1),p++);for(var x=[];bs(y[p]);)x.push(y[p++]);var F=x.length?parseInt(h.apply(void 0,x),10):0;y[p]===al&&p++;for(var T=[];bs(y[p]);)T.push(y[p++]);var R=T.length,N=R?parseInt(h.apply(void 0,T),10):0;(y[p]===vy||y[p]===xy)&&p++;var H=1;(y[p]===Ao||y[p]===Hs)&&(y[p]===Hs&&(H=-1),p++);for(var q=[];bs(y[p]);)q.push(y[p++]);var ee=q.length?parseInt(h.apply(void 0,q),10):0;return b*(F+N*Math.pow(10,-R))*Math.pow(10,H*ee)},KF={type:2},GF={type:3},WF={type:4},YF={type:13},zF={type:8},jF={type:21},ZF={type:9},qF={type:10},JF={type:11},eS={type:12},tS={type:14},Mc={type:23},iS={type:1},sS={type:25},rS={type:24},aS={type:26},nS={type:27},oS={type:28},AS={type:29},lS={type:31},Du={type:32},wy=(function(){function y(){this._value=[]}return y.prototype.write=function(p){this._value=this._value.concat(l(p))},y.prototype.read=function(){for(var p=[],b=this.consumeToken();b!==Du;)p.push(b),b=this.consumeToken();return p},y.prototype.consumeToken=function(){var p=this.consumeCodePoint();switch(p){case Ic:return this.consumeStringToken(Ic);case lF:var b=this.peekCodePoint(0),x=this.peekCodePoint(1),F=this.peekCodePoint(2);if(Cy(b)||pn(x,F)){var T=Rc(b,x,F)?nF:aF,R=this.consumeName();return{type:5,value:R,flags:T}}break;case cF:if(this.peekCodePoint(0)===sl)return this.consumeCodePoint(),YF;break;case Dc:return this.consumeStringToken(Dc);case kc:return KF;case rl:return GF;case Tu:if(this.peekCodePoint(0)===sl)return this.consumeCodePoint(),tS;break;case Ao:if(Iu(p,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(p),this.consumeNumericToken();break;case wF:return WF;case Hs:var N=p,H=this.peekCodePoint(0),q=this.peekCodePoint(1);if(Iu(N,H,q))return this.reconsumeCodePoint(p),this.consumeNumericToken();if(Rc(N,H,q))return this.reconsumeCodePoint(p),this.consumeIdentLikeToken();if(H===Hs&&q===gF)return this.consumeCodePoint(),this.consumeCodePoint(),rS;break;case al:if(Iu(p,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(p),this.consumeNumericToken();break;case fy:if(this.peekCodePoint(0)===Tu)for(this.consumeCodePoint();;){var ee=this.consumeCodePoint();if(ee===Tu&&(ee=this.consumeCodePoint(),ee===fy))return this.consumeToken();if(ee===aa)return this.consumeToken()}break;case _F:return aS;case FF:return nS;case fF:if(this.peekCodePoint(0)===uF&&this.peekCodePoint(1)===Hs&&this.peekCodePoint(2)===Hs)return this.consumeCodePoint(),this.consumeCodePoint(),sS;break;case pF:var se=this.peekCodePoint(0),de=this.peekCodePoint(1),ke=this.peekCodePoint(2);if(Rc(se,de,ke)){var R=this.consumeName();return{type:7,value:R}}break;case mF:return oS;case il:if(pn(p,this.peekCodePoint(0)))return this.reconsumeCodePoint(p),this.consumeIdentLikeToken();break;case yF:return AS;case xF:if(this.peekCodePoint(0)===sl)return this.consumeCodePoint(),zF;break;case bF:return JF;case vF:return eS;case QF:case RF:var Be=this.peekCodePoint(0),Fe=this.peekCodePoint(1);return Be===Ao&&(sA(Fe)||Fe===Uc)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(p),this.consumeIdentLikeToken();case gy:if(this.peekCodePoint(0)===sl)return this.consumeCodePoint(),ZF;if(this.peekCodePoint(0)===gy)return this.consumeCodePoint(),jF;break;case BF:if(this.peekCodePoint(0)===sl)return this.consumeCodePoint(),qF;break;case aa:return Du}return Qc(p)?(this.consumeWhiteSpace(),lS):bs(p)?(this.reconsumeCodePoint(p),this.consumeNumericToken()):Ec(p)?(this.reconsumeCodePoint(p),this.consumeIdentLikeToken()):{type:6,value:h(p)}},y.prototype.consumeCodePoint=function(){var p=this._value.shift();return typeof p>"u"?-1:p},y.prototype.reconsumeCodePoint=function(p){this._value.unshift(p)},y.prototype.peekCodePoint=function(p){return p>=this._value.length?-1:this._value[p]},y.prototype.consumeUnicodeRangeToken=function(){for(var p=[],b=this.consumeCodePoint();sA(b)&&p.length<6;)p.push(b),b=this.consumeCodePoint();for(var x=!1;b===Uc&&p.length<6;)p.push(b),b=this.consumeCodePoint(),x=!0;if(x){var F=parseInt(h.apply(void 0,p.map(function(H){return H===Uc?my:H})),16),T=parseInt(h.apply(void 0,p.map(function(H){return H===Uc?By:H})),16);return{type:30,start:F,end:T}}var R=parseInt(h.apply(void 0,p),16);if(this.peekCodePoint(0)===Hs&&sA(this.peekCodePoint(1))){this.consumeCodePoint(),b=this.consumeCodePoint();for(var N=[];sA(b)&&N.length<6;)N.push(b),b=this.consumeCodePoint();var T=parseInt(h.apply(void 0,N),16);return{type:30,start:R,end:T}}else return{type:30,start:R,end:R}},y.prototype.consumeIdentLikeToken=function(){var p=this.consumeName();return p.toLowerCase()==="url"&&this.peekCodePoint(0)===kc?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===kc?(this.consumeCodePoint(),{type:19,value:p}):{type:20,value:p}},y.prototype.consumeUrlToken=function(){var p=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===aa)return{type:22,value:""};var b=this.peekCodePoint(0);if(b===Dc||b===Ic){var x=this.consumeStringToken(this.consumeCodePoint());return x.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===aa||this.peekCodePoint(0)===rl)?(this.consumeCodePoint(),{type:22,value:x.value}):(this.consumeBadUrlRemnants(),Mc)}for(;;){var F=this.consumeCodePoint();if(F===aa||F===rl)return{type:22,value:h.apply(void 0,p)};if(Qc(F))return this.consumeWhiteSpace(),this.peekCodePoint(0)===aa||this.peekCodePoint(0)===rl?(this.consumeCodePoint(),{type:22,value:h.apply(void 0,p)}):(this.consumeBadUrlRemnants(),Mc);if(F===Ic||F===Dc||F===kc||VF(F))return this.consumeBadUrlRemnants(),Mc;if(F===il)if(pn(F,this.peekCodePoint(0)))p.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Mc;else p.push(F)}},y.prototype.consumeWhiteSpace=function(){for(;Qc(this.peekCodePoint(0));)this.consumeCodePoint()},y.prototype.consumeBadUrlRemnants=function(){for(;;){var p=this.consumeCodePoint();if(p===rl||p===aa)return;pn(p,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},y.prototype.consumeStringSlice=function(p){for(var b=5e4,x="";p>0;){var F=Math.min(b,p);x+=h.apply(void 0,this._value.splice(0,F)),p-=F}return this._value.shift(),x},y.prototype.consumeStringToken=function(p){var b="",x=0;do{var F=this._value[x];if(F===aa||F===void 0||F===p)return b+=this.consumeStringSlice(x),{type:0,value:b};if(F===Tc)return this._value.splice(0,x),iS;if(F===il){var T=this._value[x+1];T!==aa&&T!==void 0&&(T===Tc?(b+=this.consumeStringSlice(x),x=-1,this._value.shift()):pn(F,T)&&(b+=this.consumeStringSlice(x),b+=h(this.consumeEscapedCodePoint()),x=-1))}x++}while(!0)},y.prototype.consumeNumber=function(){var p=[],b=tl,x=this.peekCodePoint(0);for((x===Ao||x===Hs)&&p.push(this.consumeCodePoint());bs(this.peekCodePoint(0));)p.push(this.consumeCodePoint());x=this.peekCodePoint(0);var F=this.peekCodePoint(1);if(x===al&&bs(F))for(p.push(this.consumeCodePoint(),this.consumeCodePoint()),b=uy;bs(this.peekCodePoint(0));)p.push(this.consumeCodePoint());x=this.peekCodePoint(0),F=this.peekCodePoint(1);var T=this.peekCodePoint(2);if((x===vy||x===xy)&&((F===Ao||F===Hs)&&bs(T)||bs(F)))for(p.push(this.consumeCodePoint(),this.consumeCodePoint()),b=uy;bs(this.peekCodePoint(0));)p.push(this.consumeCodePoint());return[XF(p),b]},y.prototype.consumeNumericToken=function(){var p=this.consumeNumber(),b=p[0],x=p[1],F=this.peekCodePoint(0),T=this.peekCodePoint(1),R=this.peekCodePoint(2);if(Rc(F,T,R)){var N=this.consumeName();return{type:15,number:b,flags:x,unit:N}}return F===hF?(this.consumeCodePoint(),{type:16,number:b,flags:x}):{type:17,number:b,flags:x}},y.prototype.consumeEscapedCodePoint=function(){var p=this.consumeCodePoint();if(sA(p)){for(var b=h(p);sA(this.peekCodePoint(0))&&b.length<6;)b+=h(this.consumeCodePoint());Qc(this.peekCodePoint(0))&&this.consumeCodePoint();var x=parseInt(b,16);return x===0||PF(x)||x>1114111?py:x}return p===aa?py:p},y.prototype.consumeName=function(){for(var p="";;){var b=this.consumeCodePoint();if(Cy(b))p+=h(b);else if(pn(b,this.peekCodePoint(0)))p+=h(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(b),p}},y})(),_y=(function(){function y(p){this._tokens=p}return y.create=function(p){var b=new wy;return b.write(p),new y(b.read())},y.parseValue=function(p){return y.create(p).parseComponentValue()},y.parseValues=function(p){return y.create(p).parseComponentValues()},y.prototype.parseComponentValue=function(){for(var p=this.consumeToken();p.type===31;)p=this.consumeToken();if(p.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(p);var b=this.consumeComponentValue();do p=this.consumeToken();while(p.type===31);if(p.type===32)return b;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},y.prototype.parseComponentValues=function(){for(var p=[];;){var b=this.consumeComponentValue();if(b.type===32)return p;p.push(b),p.push()}},y.prototype.consumeComponentValue=function(){var p=this.consumeToken();switch(p.type){case 11:case 28:case 2:return this.consumeSimpleBlock(p.type);case 19:return this.consumeFunction(p)}return p},y.prototype.consumeSimpleBlock=function(p){for(var b={type:p,values:[]},x=this.consumeToken();;){if(x.type===32||hS(x,p))return b;this.reconsumeToken(x),b.values.push(this.consumeComponentValue()),x=this.consumeToken()}},y.prototype.consumeFunction=function(p){for(var b={name:p.value,values:[],type:18};;){var x=this.consumeToken();if(x.type===32||x.type===3)return b;this.reconsumeToken(x),b.values.push(this.consumeComponentValue())}},y.prototype.consumeToken=function(){var p=this._tokens.shift();return typeof p>"u"?Du:p},y.prototype.reconsumeToken=function(p){this._tokens.unshift(p)},y})(),nl=function(y){return y.type===15},rA=function(y){return y.type===17},Wt=function(y){return y.type===20},cS=function(y){return y.type===0},ku=function(y,p){return Wt(y)&&y.value===p},Fy=function(y){return y.type!==31},aA=function(y){return y.type!==31&&y.type!==4},na=function(y){var p=[],b=[];return y.forEach(function(x){if(x.type===4){if(b.length===0)throw new Error("Error parsing function args, zero tokens for arg");p.push(b),b=[];return}x.type!==31&&b.push(x)}),b.length&&p.push(b),p},hS=function(y,p){return p===11&&y.type===12||p===28&&y.type===29?!0:p===2&&y.type===3},mn=function(y){return y.type===17||y.type===15},Pi=function(y){return y.type===16||mn(y)},Sy=function(y){return y.length>1?[y[0],y[1]]:[y[0]]},as={type:17,number:0,flags:tl},Uu={type:16,number:50,flags:tl},yn={type:16,number:100,flags:tl},ol=function(y,p,b){var x=y[0],F=y[1];return[ii(x,p),ii(typeof F<"u"?F:x,b)]},ii=function(y,p){if(y.type===16)return y.number/100*p;if(nl(y))switch(y.unit){case"rem":case"em":return 16*y.number;default:return y.number}return y.number},Ly="deg",Ty="grad",Iy="rad",Dy="turn",Pc={name:"angle",parse:function(y,p){if(p.type===15)switch(p.unit){case Ly:return Math.PI*p.number/180;case Ty:return Math.PI/200*p.number;case Iy:return p.number;case Dy:return Math.PI*2*p.number}throw new Error("Unsupported angle type")}},ky=function(y){return y.type===15&&(y.unit===Ly||y.unit===Ty||y.unit===Iy||y.unit===Dy)},Uy=function(y){var p=y.filter(Wt).map(function(b){return b.value}).join(" ");switch(p){case"to bottom right":case"to right bottom":case"left top":case"top left":return[as,as];case"to top":case"bottom":return mr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[as,yn];case"to right":case"left":return mr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[yn,yn];case"to bottom":case"top":return mr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[yn,as];case"to left":case"right":return mr(270)}return 0},mr=function(y){return Math.PI*y/180},xn={name:"color",parse:function(y,p){if(p.type===18){var b=dS[p.name];if(typeof b>"u")throw new Error('Attempting to parse an unsupported color function "'+p.name+'"');return b(y,p.values)}if(p.type===5){if(p.value.length===3){var x=p.value.substring(0,1),F=p.value.substring(1,2),T=p.value.substring(2,3);return vn(parseInt(x+x,16),parseInt(F+F,16),parseInt(T+T,16),1)}if(p.value.length===4){var x=p.value.substring(0,1),F=p.value.substring(1,2),T=p.value.substring(2,3),R=p.value.substring(3,4);return vn(parseInt(x+x,16),parseInt(F+F,16),parseInt(T+T,16),parseInt(R+R,16)/255)}if(p.value.length===6){var x=p.value.substring(0,2),F=p.value.substring(2,4),T=p.value.substring(4,6);return vn(parseInt(x,16),parseInt(F,16),parseInt(T,16),1)}if(p.value.length===8){var x=p.value.substring(0,2),F=p.value.substring(2,4),T=p.value.substring(4,6),R=p.value.substring(6,8);return vn(parseInt(x,16),parseInt(F,16),parseInt(T,16),parseInt(R,16)/255)}}if(p.type===20){var N=Xa[p.value.toUpperCase()];if(typeof N<"u")return N}return Xa.TRANSPARENT}},bn=function(y){return(255&y)===0},qi=function(y){var p=255&y,b=255&y>>8,x=255&y>>16,F=255&y>>24;return p<255?"rgba("+F+","+x+","+b+","+p/255+")":"rgb("+F+","+x+","+b+")"},vn=function(y,p,b,x){return(y<<24|p<<16|b<<8|Math.round(x*255)<<0)>>>0},Qy=function(y,p){if(y.type===17)return y.number;if(y.type===16){var b=p===3?1:255;return p===3?y.number/100*b:Math.round(y.number/100*b)}return 0},Ey=function(y,p){var b=p.filter(aA);if(b.length===3){var x=b.map(Qy),F=x[0],T=x[1],R=x[2];return vn(F,T,R,1)}if(b.length===4){var N=b.map(Qy),F=N[0],T=N[1],R=N[2],H=N[3];return vn(F,T,R,H)}return 0};function Qu(y,p,b){return b<0&&(b+=1),b>=1&&(b-=1),b<1/6?(p-y)*b*6+y:b<1/2?p:b<2/3?(p-y)*6*(2/3-b)+y:y}var Ry=function(y,p){var b=p.filter(aA),x=b[0],F=b[1],T=b[2],R=b[3],N=(x.type===17?mr(x.number):Pc.parse(y,x))/(Math.PI*2),H=Pi(F)?F.number/100:0,q=Pi(T)?T.number/100:0,ee=typeof R<"u"&&Pi(R)?ii(R,1):1;if(H===0)return vn(q*255,q*255,q*255,1);var se=q<=.5?q*(H+1):q+H-q*H,de=q*2-se,ke=Qu(de,se,N+1/3),Be=Qu(de,se,N),Fe=Qu(de,se,N-1/3);return vn(ke*255,Be*255,Fe*255,ee)},dS={hsl:Ry,hsla:Ry,rgb:Ey,rgba:Ey},Al=function(y,p){return xn.parse(y,_y.create(p).parseComponentValue())},Xa={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},uS={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(y,p){return p.map(function(b){if(Wt(b))switch(b.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},fS={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Oc=function(y,p){var b=xn.parse(y,p[0]),x=p[1];return x&&Pi(x)?{color:b,stop:x}:{color:b,stop:null}},My=function(y,p){var b=y[0],x=y[y.length-1];b.stop===null&&(b.stop=as),x.stop===null&&(x.stop=yn);for(var F=[],T=0,R=0;R<y.length;R++){var N=y[R].stop;if(N!==null){var H=ii(N,p);H>T?F.push(H):F.push(T),T=H}else F.push(null)}for(var q=null,R=0;R<F.length;R++){var ee=F[R];if(ee===null)q===null&&(q=R);else if(q!==null){for(var se=R-q,de=F[q-1],ke=(ee-de)/(se+1),Be=1;Be<=se;Be++)F[q+Be-1]=ke*Be;q=null}}return y.map(function(Fe,lt){var He=Fe.color;return{color:He,stop:Math.max(Math.min(1,F[lt]/p),0)}})},gS=function(y,p,b){var x=p/2,F=b/2,T=ii(y[0],p)-x,R=F-ii(y[1],b);return(Math.atan2(R,T)+Math.PI*2)%(Math.PI*2)},pS=function(y,p,b){var x=typeof y=="number"?y:gS(y,p,b),F=Math.abs(p*Math.sin(x))+Math.abs(b*Math.cos(x)),T=p/2,R=b/2,N=F/2,H=Math.sin(x-Math.PI/2)*N,q=Math.cos(x-Math.PI/2)*N;return[F,T-q,T+q,R-H,R+H]},Hr=function(y,p){return Math.sqrt(y*y+p*p)},Py=function(y,p,b,x,F){var T=[[0,0],[0,p],[y,0],[y,p]];return T.reduce(function(R,N){var H=N[0],q=N[1],ee=Hr(b-H,x-q);return(F?ee<R.optimumDistance:ee>R.optimumDistance)?{optimumCorner:N,optimumDistance:ee}:R},{optimumDistance:F?1/0:-1/0,optimumCorner:null}).optimumCorner},mS=function(y,p,b,x,F){var T=0,R=0;switch(y.size){case 0:y.shape===0?T=R=Math.min(Math.abs(p),Math.abs(p-x),Math.abs(b),Math.abs(b-F)):y.shape===1&&(T=Math.min(Math.abs(p),Math.abs(p-x)),R=Math.min(Math.abs(b),Math.abs(b-F)));break;case 2:if(y.shape===0)T=R=Math.min(Hr(p,b),Hr(p,b-F),Hr(p-x,b),Hr(p-x,b-F));else if(y.shape===1){var N=Math.min(Math.abs(b),Math.abs(b-F))/Math.min(Math.abs(p),Math.abs(p-x)),H=Py(x,F,p,b,!0),q=H[0],ee=H[1];T=Hr(q-p,(ee-b)/N),R=N*T}break;case 1:y.shape===0?T=R=Math.max(Math.abs(p),Math.abs(p-x),Math.abs(b),Math.abs(b-F)):y.shape===1&&(T=Math.max(Math.abs(p),Math.abs(p-x)),R=Math.max(Math.abs(b),Math.abs(b-F)));break;case 3:if(y.shape===0)T=R=Math.max(Hr(p,b),Hr(p,b-F),Hr(p-x,b),Hr(p-x,b-F));else if(y.shape===1){var N=Math.max(Math.abs(b),Math.abs(b-F))/Math.max(Math.abs(p),Math.abs(p-x)),se=Py(x,F,p,b,!1),q=se[0],ee=se[1];T=Hr(q-p,(ee-b)/N),R=N*T}break}return Array.isArray(y.size)&&(T=ii(y.size[0],x),R=y.size.length===2?ii(y.size[1],F):T),[T,R]},yS=function(y,p){var b=mr(180),x=[];return na(p).forEach(function(F,T){if(T===0){var R=F[0];if(R.type===20&&R.value==="to"){b=Uy(F);return}else if(ky(R)){b=Pc.parse(y,R);return}}var N=Oc(y,F);x.push(N)}),{angle:b,stops:x,type:1}},Hc=function(y,p){var b=mr(180),x=[];return na(p).forEach(function(F,T){if(T===0){var R=F[0];if(R.type===20&&["top","left","right","bottom"].indexOf(R.value)!==-1){b=Uy(F);return}else if(ky(R)){b=(Pc.parse(y,R)+mr(270))%mr(360);return}}var N=Oc(y,F);x.push(N)}),{angle:b,stops:x,type:1}},xS=function(y,p){var b=mr(180),x=[],F=1,T=0,R=3,N=[];return na(p).forEach(function(H,q){var ee=H[0];if(q===0){if(Wt(ee)&&ee.value==="linear"){F=1;return}else if(Wt(ee)&&ee.value==="radial"){F=2;return}}if(ee.type===18){if(ee.name==="from"){var se=xn.parse(y,ee.values[0]);x.push({stop:as,color:se})}else if(ee.name==="to"){var se=xn.parse(y,ee.values[0]);x.push({stop:yn,color:se})}else if(ee.name==="color-stop"){var de=ee.values.filter(aA);if(de.length===2){var se=xn.parse(y,de[1]),ke=de[0];rA(ke)&&x.push({stop:{type:16,number:ke.number*100,flags:ke.flags},color:se})}}}}),F===1?{angle:(b+mr(180))%mr(360),stops:x,type:F}:{size:R,shape:T,stops:x,position:N,type:F}},Oy="closest-side",Hy="farthest-side",Ny="closest-corner",$y="farthest-corner",Vy="circle",Xy="ellipse",Ky="cover",Gy="contain",bS=function(y,p){var b=0,x=3,F=[],T=[];return na(p).forEach(function(R,N){var H=!0;if(N===0){var q=!1;H=R.reduce(function(se,de){if(q)if(Wt(de))switch(de.value){case"center":return T.push(Uu),se;case"top":case"left":return T.push(as),se;case"right":case"bottom":return T.push(yn),se}else(Pi(de)||mn(de))&&T.push(de);else if(Wt(de))switch(de.value){case Vy:return b=0,!1;case Xy:return b=1,!1;case"at":return q=!0,!1;case Oy:return x=0,!1;case Ky:case Hy:return x=1,!1;case Gy:case Ny:return x=2,!1;case $y:return x=3,!1}else if(mn(de)||Pi(de))return Array.isArray(x)||(x=[]),x.push(de),!1;return se},H)}if(H){var ee=Oc(y,R);F.push(ee)}}),{size:x,shape:b,stops:F,position:T,type:2}},Nc=function(y,p){var b=0,x=3,F=[],T=[];return na(p).forEach(function(R,N){var H=!0;if(N===0?H=R.reduce(function(ee,se){if(Wt(se))switch(se.value){case"center":return T.push(Uu),!1;case"top":case"left":return T.push(as),!1;case"right":case"bottom":return T.push(yn),!1}else if(Pi(se)||mn(se))return T.push(se),!1;return ee},H):N===1&&(H=R.reduce(function(ee,se){if(Wt(se))switch(se.value){case Vy:return b=0,!1;case Xy:return b=1,!1;case Gy:case Oy:return x=0,!1;case Hy:return x=1,!1;case Ny:return x=2,!1;case Ky:case $y:return x=3,!1}else if(mn(se)||Pi(se))return Array.isArray(x)||(x=[]),x.push(se),!1;return ee},H)),H){var q=Oc(y,R);F.push(q)}}),{size:x,shape:b,stops:F,position:T,type:2}},vS=function(y){return y.type===1},BS=function(y){return y.type===2},Eu={name:"image",parse:function(y,p){if(p.type===22){var b={url:p.value,type:0};return y.cache.addImage(p.value),b}if(p.type===18){var x=Wy[p.name];if(typeof x>"u")throw new Error('Attempting to parse an unsupported image function "'+p.name+'"');return x(y,p.values)}throw new Error("Unsupported image type "+p.type)}};function CS(y){return!(y.type===20&&y.value==="none")&&(y.type!==18||!!Wy[y.name])}var Wy={"linear-gradient":yS,"-moz-linear-gradient":Hc,"-ms-linear-gradient":Hc,"-o-linear-gradient":Hc,"-webkit-linear-gradient":Hc,"radial-gradient":bS,"-moz-radial-gradient":Nc,"-ms-radial-gradient":Nc,"-o-radial-gradient":Nc,"-webkit-radial-gradient":Nc,"-webkit-gradient":xS},wS={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(y,p){if(p.length===0)return[];var b=p[0];return b.type===20&&b.value==="none"?[]:p.filter(function(x){return aA(x)&&CS(x)}).map(function(x){return Eu.parse(y,x)})}},_S={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(y,p){return p.map(function(b){if(Wt(b))switch(b.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},FS={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(y,p){return na(p).map(function(b){return b.filter(Pi)}).map(Sy)}},SS={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(y,p){return na(p).map(function(b){return b.filter(Wt).map(function(x){return x.value}).join(" ")}).map(LS)}},LS=function(y){switch(y){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},nA;(function(y){y.AUTO="auto",y.CONTAIN="contain",y.COVER="cover"})(nA||(nA={}));var TS={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(y,p){return na(p).map(function(b){return b.filter(IS)})}},IS=function(y){return Wt(y)||Pi(y)},$c=function(y){return{name:"border-"+y+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},DS=$c("top"),kS=$c("right"),US=$c("bottom"),QS=$c("left"),Vc=function(y){return{name:"border-radius-"+y,initialValue:"0 0",prefix:!1,type:1,parse:function(p,b){return Sy(b.filter(Pi))}}},ES=Vc("top-left"),RS=Vc("top-right"),MS=Vc("bottom-right"),PS=Vc("bottom-left"),Xc=function(y){return{name:"border-"+y+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(p,b){switch(b){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},OS=Xc("top"),HS=Xc("right"),NS=Xc("bottom"),$S=Xc("left"),Kc=function(y){return{name:"border-"+y+"-width",initialValue:"0",type:0,prefix:!1,parse:function(p,b){return nl(b)?b.number:0}}},VS=Kc("top"),XS=Kc("right"),KS=Kc("bottom"),GS=Kc("left"),WS={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},YS={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(y,p){return p==="rtl"?1:0}},zS={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(y,p){return p.filter(Wt).reduce(function(b,x){return b|jS(x.value)},0)}},jS=function(y){switch(y){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},ZS={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(y,p){switch(p){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},qS={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(y,p){return p.type===20&&p.value==="normal"?0:p.type===17||p.type===15?p.number:0}},Gc;(function(y){y.NORMAL="normal",y.STRICT="strict"})(Gc||(Gc={}));var JS={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(y,p){return p==="strict"?Gc.STRICT:Gc.NORMAL}},e1={name:"line-height",initialValue:"normal",prefix:!1,type:4},Yy=function(y,p){return Wt(y)&&y.value==="normal"?1.2*p:y.type===17?p*y.number:Pi(y)?ii(y,p):p},t1={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(y,p){return p.type===20&&p.value==="none"?null:Eu.parse(y,p)}},i1={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(y,p){return p==="inside"?0:1}},Ru={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(y,p){switch(p){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},Wc=function(y){return{name:"margin-"+y,initialValue:"0",prefix:!1,type:4}},s1=Wc("top"),r1=Wc("right"),a1=Wc("bottom"),n1=Wc("left"),o1={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(y,p){return p.filter(Wt).map(function(b){switch(b.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},A1={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(y,p){return p==="break-word"?"break-word":"normal"}},Yc=function(y){return{name:"padding-"+y,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},l1=Yc("top"),c1=Yc("right"),h1=Yc("bottom"),d1=Yc("left"),u1={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(y,p){switch(p){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},f1={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(y,p){switch(p){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},g1={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(y,p){return p.length===1&&ku(p[0],"none")?[]:na(p).map(function(b){for(var x={color:Xa.TRANSPARENT,offsetX:as,offsetY:as,blur:as},F=0,T=0;T<b.length;T++){var R=b[T];mn(R)?(F===0?x.offsetX=R:F===1?x.offsetY=R:x.blur=R,F++):x.color=xn.parse(y,R)}return x})}},p1={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(y,p){switch(p){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},m1={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(y,p){if(p.type===20&&p.value==="none")return null;if(p.type===18){var b=b1[p.name];if(typeof b>"u")throw new Error('Attempting to parse an unsupported transform function "'+p.name+'"');return b(p.values)}return null}},y1=function(y){var p=y.filter(function(b){return b.type===17}).map(function(b){return b.number});return p.length===6?p:null},x1=function(y){var p=y.filter(function(H){return H.type===17}).map(function(H){return H.number}),b=p[0],x=p[1];p[2],p[3];var F=p[4],T=p[5];p[6],p[7],p[8],p[9],p[10],p[11];var R=p[12],N=p[13];return p[14],p[15],p.length===16?[b,x,F,T,R,N]:null},b1={matrix:y1,matrix3d:x1},zy={type:16,number:50,flags:tl},v1=[zy,zy],B1={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(y,p){var b=p.filter(Pi);return b.length!==2?v1:[b[0],b[1]]}},C1={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(y,p){switch(p){case"hidden":return 1;case"collapse":return 2;default:return 0}}},ll;(function(y){y.NORMAL="normal",y.BREAK_ALL="break-all",y.KEEP_ALL="keep-all"})(ll||(ll={}));for(var w1={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(y,p){switch(p){case"break-all":return ll.BREAK_ALL;case"keep-all":return ll.KEEP_ALL;default:return ll.NORMAL}}},_1={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(y,p){if(p.type===20)return{auto:!0,order:0};if(rA(p))return{auto:!1,order:p.number};throw new Error("Invalid z-index number parsed")}},jy={name:"time",parse:function(y,p){if(p.type===15)switch(p.unit.toLowerCase()){case"s":return 1e3*p.number;case"ms":return p.number}throw new Error("Unsupported time type")}},F1={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(y,p){return rA(p)?p.number:1}},S1={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},L1={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(y,p){return p.filter(Wt).map(function(b){switch(b.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(b){return b!==0})}},T1={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(y,p){var b=[],x=[];return p.forEach(function(F){switch(F.type){case 20:case 0:b.push(F.value);break;case 17:b.push(F.number.toString());break;case 4:x.push(b.join(" ")),b.length=0;break}}),b.length&&x.push(b.join(" ")),x.map(function(F){return F.indexOf(" ")===-1?F:"'"+F+"'"})}},I1={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},D1={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(y,p){return rA(p)?p.number:Wt(p)&&p.value==="bold"?700:400}},k1={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(y,p){return p.filter(Wt).map(function(b){return b.value})}},U1={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(y,p){switch(p){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},Vi=function(y,p){return(y&p)!==0},Q1={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(y,p){if(p.length===0)return[];var b=p[0];return b.type===20&&b.value==="none"?[]:p}},E1={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(y,p){if(p.length===0)return null;var b=p[0];if(b.type===20&&b.value==="none")return null;for(var x=[],F=p.filter(Fy),T=0;T<F.length;T++){var R=F[T],N=F[T+1];if(R.type===20){var H=N&&rA(N)?N.number:1;x.push({counter:R.value,increment:H})}}return x}},R1={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(y,p){if(p.length===0)return[];for(var b=[],x=p.filter(Fy),F=0;F<x.length;F++){var T=x[F],R=x[F+1];if(Wt(T)&&T.value!=="none"){var N=R&&rA(R)?R.number:0;b.push({counter:T.value,reset:N})}}return b}},M1={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(y,p){return p.filter(nl).map(function(b){return jy.parse(y,b)})}},P1={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(y,p){if(p.length===0)return null;var b=p[0];if(b.type===20&&b.value==="none")return null;var x=[],F=p.filter(cS);if(F.length%2!==0)return null;for(var T=0;T<F.length;T+=2){var R=F[T].value,N=F[T+1].value;x.push({open:R,close:N})}return x}},Zy=function(y,p,b){if(!y)return"";var x=y[Math.min(p,y.length-1)];return x?b?x.open:x.close:""},O1={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(y,p){return p.length===1&&ku(p[0],"none")?[]:na(p).map(function(b){for(var x={color:255,offsetX:as,offsetY:as,blur:as,spread:as,inset:!1},F=0,T=0;T<b.length;T++){var R=b[T];ku(R,"inset")?x.inset=!0:mn(R)?(F===0?x.offsetX=R:F===1?x.offsetY=R:F===2?x.blur=R:x.spread=R,F++):x.color=xn.parse(y,R)}return x})}},H1={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(y,p){var b=[0,1,2],x=[];return p.filter(Wt).forEach(function(F){switch(F.value){case"stroke":x.push(1);break;case"fill":x.push(0);break;case"markers":x.push(2);break}}),b.forEach(function(F){x.indexOf(F)===-1&&x.push(F)}),x}},N1={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},$1={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(y,p){return nl(p)?p.number:0}},V1=(function(){function y(p,b){var x,F;this.animationDuration=Qe(p,M1,b.animationDuration),this.backgroundClip=Qe(p,uS,b.backgroundClip),this.backgroundColor=Qe(p,fS,b.backgroundColor),this.backgroundImage=Qe(p,wS,b.backgroundImage),this.backgroundOrigin=Qe(p,_S,b.backgroundOrigin),this.backgroundPosition=Qe(p,FS,b.backgroundPosition),this.backgroundRepeat=Qe(p,SS,b.backgroundRepeat),this.backgroundSize=Qe(p,TS,b.backgroundSize),this.borderTopColor=Qe(p,DS,b.borderTopColor),this.borderRightColor=Qe(p,kS,b.borderRightColor),this.borderBottomColor=Qe(p,US,b.borderBottomColor),this.borderLeftColor=Qe(p,QS,b.borderLeftColor),this.borderTopLeftRadius=Qe(p,ES,b.borderTopLeftRadius),this.borderTopRightRadius=Qe(p,RS,b.borderTopRightRadius),this.borderBottomRightRadius=Qe(p,MS,b.borderBottomRightRadius),this.borderBottomLeftRadius=Qe(p,PS,b.borderBottomLeftRadius),this.borderTopStyle=Qe(p,OS,b.borderTopStyle),this.borderRightStyle=Qe(p,HS,b.borderRightStyle),this.borderBottomStyle=Qe(p,NS,b.borderBottomStyle),this.borderLeftStyle=Qe(p,$S,b.borderLeftStyle),this.borderTopWidth=Qe(p,VS,b.borderTopWidth),this.borderRightWidth=Qe(p,XS,b.borderRightWidth),this.borderBottomWidth=Qe(p,KS,b.borderBottomWidth),this.borderLeftWidth=Qe(p,GS,b.borderLeftWidth),this.boxShadow=Qe(p,O1,b.boxShadow),this.color=Qe(p,WS,b.color),this.direction=Qe(p,YS,b.direction),this.display=Qe(p,zS,b.display),this.float=Qe(p,ZS,b.cssFloat),this.fontFamily=Qe(p,T1,b.fontFamily),this.fontSize=Qe(p,I1,b.fontSize),this.fontStyle=Qe(p,U1,b.fontStyle),this.fontVariant=Qe(p,k1,b.fontVariant),this.fontWeight=Qe(p,D1,b.fontWeight),this.letterSpacing=Qe(p,qS,b.letterSpacing),this.lineBreak=Qe(p,JS,b.lineBreak),this.lineHeight=Qe(p,e1,b.lineHeight),this.listStyleImage=Qe(p,t1,b.listStyleImage),this.listStylePosition=Qe(p,i1,b.listStylePosition),this.listStyleType=Qe(p,Ru,b.listStyleType),this.marginTop=Qe(p,s1,b.marginTop),this.marginRight=Qe(p,r1,b.marginRight),this.marginBottom=Qe(p,a1,b.marginBottom),this.marginLeft=Qe(p,n1,b.marginLeft),this.opacity=Qe(p,F1,b.opacity);var T=Qe(p,o1,b.overflow);this.overflowX=T[0],this.overflowY=T[T.length>1?1:0],this.overflowWrap=Qe(p,A1,b.overflowWrap),this.paddingTop=Qe(p,l1,b.paddingTop),this.paddingRight=Qe(p,c1,b.paddingRight),this.paddingBottom=Qe(p,h1,b.paddingBottom),this.paddingLeft=Qe(p,d1,b.paddingLeft),this.paintOrder=Qe(p,H1,b.paintOrder),this.position=Qe(p,f1,b.position),this.textAlign=Qe(p,u1,b.textAlign),this.textDecorationColor=Qe(p,S1,(x=b.textDecorationColor)!==null&&x!==void 0?x:b.color),this.textDecorationLine=Qe(p,L1,(F=b.textDecorationLine)!==null&&F!==void 0?F:b.textDecoration),this.textShadow=Qe(p,g1,b.textShadow),this.textTransform=Qe(p,p1,b.textTransform),this.transform=Qe(p,m1,b.transform),this.transformOrigin=Qe(p,B1,b.transformOrigin),this.visibility=Qe(p,C1,b.visibility),this.webkitTextStrokeColor=Qe(p,N1,b.webkitTextStrokeColor),this.webkitTextStrokeWidth=Qe(p,$1,b.webkitTextStrokeWidth),this.wordBreak=Qe(p,w1,b.wordBreak),this.zIndex=Qe(p,_1,b.zIndex)}return y.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},y.prototype.isTransparent=function(){return bn(this.backgroundColor)},y.prototype.isTransformed=function(){return this.transform!==null},y.prototype.isPositioned=function(){return this.position!==0},y.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},y.prototype.isFloating=function(){return this.float!==0},y.prototype.isInlineLevel=function(){return Vi(this.display,4)||Vi(this.display,33554432)||Vi(this.display,268435456)||Vi(this.display,536870912)||Vi(this.display,67108864)||Vi(this.display,134217728)},y})(),X1=(function(){function y(p,b){this.content=Qe(p,Q1,b.content),this.quotes=Qe(p,P1,b.quotes)}return y})(),qy=(function(){function y(p,b){this.counterIncrement=Qe(p,E1,b.counterIncrement),this.counterReset=Qe(p,R1,b.counterReset)}return y})(),Qe=function(y,p,b){var x=new wy,F=b!==null&&typeof b<"u"?b.toString():p.initialValue;x.write(F);var T=new _y(x.read());switch(p.type){case 2:var R=T.parseComponentValue();return p.parse(y,Wt(R)?R.value:p.initialValue);case 0:return p.parse(y,T.parseComponentValue());case 1:return p.parse(y,T.parseComponentValues());case 4:return T.parseComponentValue();case 3:switch(p.format){case"angle":return Pc.parse(y,T.parseComponentValue());case"color":return xn.parse(y,T.parseComponentValue());case"image":return Eu.parse(y,T.parseComponentValue());case"length":var N=T.parseComponentValue();return mn(N)?N:as;case"length-percentage":var H=T.parseComponentValue();return Pi(H)?H:as;case"time":return jy.parse(y,T.parseComponentValue())}break}},K1="data-html2canvas-debug",G1=function(y){var p=y.getAttribute(K1);switch(p){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Mu=function(y,p){var b=G1(y);return b===1||p===b},oa=(function(){function y(p,b){if(this.context=p,this.textNodes=[],this.elements=[],this.flags=0,Mu(b,3))debugger;this.styles=new V1(p,window.getComputedStyle(b,null)),Zu(b)&&(this.styles.animationDuration.some(function(x){return x>0})&&(b.style.animationDuration="0s"),this.styles.transform!==null&&(b.style.transform="none")),this.bounds=o(this.context,b),Mu(b,4)&&(this.flags|=16)}return y})(),W1="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Jy="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cl=typeof Uint8Array>"u"?[]:new Uint8Array(256),zc=0;zc<Jy.length;zc++)cl[Jy.charCodeAt(zc)]=zc;for(var Y1=function(y){var p=y.length*.75,b=y.length,x,F=0,T,R,N,H;y[y.length-1]==="="&&(p--,y[y.length-2]==="="&&p--);var q=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(p):new Array(p),ee=Array.isArray(q)?q:new Uint8Array(q);for(x=0;x<b;x+=4)T=cl[y.charCodeAt(x)],R=cl[y.charCodeAt(x+1)],N=cl[y.charCodeAt(x+2)],H=cl[y.charCodeAt(x+3)],ee[F++]=T<<2|R>>4,ee[F++]=(R&15)<<4|N>>2,ee[F++]=(N&3)<<6|H&63;return q},z1=function(y){for(var p=y.length,b=[],x=0;x<p;x+=2)b.push(y[x+1]<<8|y[x]);return b},j1=function(y){for(var p=y.length,b=[],x=0;x<p;x+=4)b.push(y[x+3]<<24|y[x+2]<<16|y[x+1]<<8|y[x]);return b},lo=5,Pu=11,Ou=2,Z1=Pu-lo,e0=65536>>lo,q1=1<<lo,Hu=q1-1,J1=1024>>lo,eL=e0+J1,tL=eL,iL=32,sL=tL+iL,rL=65536>>Pu,aL=1<<Z1,nL=aL-1,t0=function(y,p,b){return y.slice?y.slice(p,b):new Uint16Array(Array.prototype.slice.call(y,p,b))},oL=function(y,p,b){return y.slice?y.slice(p,b):new Uint32Array(Array.prototype.slice.call(y,p,b))},AL=function(y,p){var b=Y1(y),x=Array.isArray(b)?j1(b):new Uint32Array(b),F=Array.isArray(b)?z1(b):new Uint16Array(b),T=24,R=t0(F,T/2,x[4]/2),N=x[5]===2?t0(F,(T+x[4])/2):oL(x,Math.ceil((T+x[4])/4));return new lL(x[0],x[1],x[2],x[3],R,N)},lL=(function(){function y(p,b,x,F,T,R){this.initialValue=p,this.errorValue=b,this.highStart=x,this.highValueIndex=F,this.index=T,this.data=R}return y.prototype.get=function(p){var b;if(p>=0){if(p<55296||p>56319&&p<=65535)return b=this.index[p>>lo],b=(b<<Ou)+(p&Hu),this.data[b];if(p<=65535)return b=this.index[e0+(p-55296>>lo)],b=(b<<Ou)+(p&Hu),this.data[b];if(p<this.highStart)return b=sL-rL+(p>>Pu),b=this.index[b],b+=p>>lo&nL,b=this.index[b],b=(b<<Ou)+(p&Hu),this.data[b];if(p<=1114111)return this.data[this.highValueIndex]}return this.errorValue},y})(),i0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cL=typeof Uint8Array>"u"?[]:new Uint8Array(256),jc=0;jc<i0.length;jc++)cL[i0.charCodeAt(jc)]=jc;var hL=1,Nu=2,$u=3,s0=4,r0=5,dL=7,a0=8,Vu=9,Xu=10,n0=11,o0=12,A0=13,l0=14,Ku=15,uL=function(y){for(var p=[],b=0,x=y.length;b<x;){var F=y.charCodeAt(b++);if(F>=55296&&F<=56319&&b<x){var T=y.charCodeAt(b++);(T&64512)===56320?p.push(((F&1023)<<10)+(T&1023)+65536):(p.push(F),b--)}else p.push(F)}return p},fL=function(){for(var y=[],p=0;p<arguments.length;p++)y[p]=arguments[p];if(String.fromCodePoint)return String.fromCodePoint.apply(String,y);var b=y.length;if(!b)return"";for(var x=[],F=-1,T="";++F<b;){var R=y[F];R<=65535?x.push(R):(R-=65536,x.push((R>>10)+55296,R%1024+56320)),(F+1===b||x.length>16384)&&(T+=String.fromCharCode.apply(String,x),x.length=0)}return T},gL=AL(W1),yr="\xD7",Gu="\xF7",pL=function(y){return gL.get(y)},mL=function(y,p,b){var x=b-2,F=p[x],T=p[b-1],R=p[b];if(T===Nu&&R===$u)return yr;if(T===Nu||T===$u||T===s0||R===Nu||R===$u||R===s0)return Gu;if(T===a0&&[a0,Vu,n0,o0].indexOf(R)!==-1||(T===n0||T===Vu)&&(R===Vu||R===Xu)||(T===o0||T===Xu)&&R===Xu||R===A0||R===r0||R===dL||T===hL)return yr;if(T===A0&&R===l0){for(;F===r0;)F=p[--x];if(F===l0)return yr}if(T===Ku&&R===Ku){for(var N=0;F===Ku;)N++,F=p[--x];if(N%2===0)return yr}return Gu},yL=function(y){var p=uL(y),b=p.length,x=0,F=0,T=p.map(pL);return{next:function(){if(x>=b)return{done:!0,value:null};for(var R=yr;x<b&&(R=mL(p,T,++x))===yr;);if(R!==yr||x===b){var N=fL.apply(null,p.slice(F,x));return F=x,{value:N,done:!1}}return{done:!0,value:null}}}},xL=function(y){for(var p=yL(y),b=[],x;!(x=p.next()).done;)x.value&&b.push(x.value.slice());return b},bL=function(y){var p=123;if(y.createRange){var b=y.createRange();if(b.getBoundingClientRect){var x=y.createElement("boundtest");x.style.height=p+"px",x.style.display="block",y.body.appendChild(x),b.selectNode(x);var F=b.getBoundingClientRect(),T=Math.round(F.height);if(y.body.removeChild(x),T===p)return!0}}return!1},vL=function(y){var p=y.createElement("boundtest");p.style.width="50px",p.style.display="block",p.style.fontSize="12px",p.style.letterSpacing="0px",p.style.wordSpacing="0px",y.body.appendChild(p);var b=y.createRange();p.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var x=p.firstChild,F=l(x.data).map(function(H){return h(H)}),T=0,R={},N=F.every(function(H,q){b.setStart(x,T),b.setEnd(x,T+H.length);var ee=b.getBoundingClientRect();T+=H.length;var se=ee.x>R.x||ee.y>R.y;return R=ee,q===0?!0:se});return y.body.removeChild(p),N},BL=function(){return typeof new Image().crossOrigin<"u"},CL=function(){return typeof new XMLHttpRequest().responseType=="string"},wL=function(y){var p=new Image,b=y.createElement("canvas"),x=b.getContext("2d");if(!x)return!1;p.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{x.drawImage(p,0,0),b.toDataURL()}catch{return!1}return!0},c0=function(y){return y[0]===0&&y[1]===255&&y[2]===0&&y[3]===255},_L=function(y){var p=y.createElement("canvas"),b=100;p.width=b,p.height=b;var x=p.getContext("2d");if(!x)return Promise.reject(!1);x.fillStyle="rgb(0, 255, 0)",x.fillRect(0,0,b,b);var F=new Image,T=p.toDataURL();F.src=T;var R=Wu(b,b,0,0,F);return x.fillStyle="red",x.fillRect(0,0,b,b),h0(R).then(function(N){x.drawImage(N,0,0);var H=x.getImageData(0,0,b,b).data;x.fillStyle="red",x.fillRect(0,0,b,b);var q=y.createElement("div");return q.style.backgroundImage="url("+T+")",q.style.height=b+"px",c0(H)?h0(Wu(b,b,0,0,q)):Promise.reject(!1)}).then(function(N){return x.drawImage(N,0,0),c0(x.getImageData(0,0,b,b).data)}).catch(function(){return!1})},Wu=function(y,p,b,x,F){var T="http://www.w3.org/2000/svg",R=document.createElementNS(T,"svg"),N=document.createElementNS(T,"foreignObject");return R.setAttributeNS(null,"width",y.toString()),R.setAttributeNS(null,"height",p.toString()),N.setAttributeNS(null,"width","100%"),N.setAttributeNS(null,"height","100%"),N.setAttributeNS(null,"x",b.toString()),N.setAttributeNS(null,"y",x.toString()),N.setAttributeNS(null,"externalResourcesRequired","true"),R.appendChild(N),N.appendChild(F),R},h0=function(y){return new Promise(function(p,b){var x=new Image;x.onload=function(){return p(x)},x.onerror=b,x.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(y))})},ns={get SUPPORT_RANGE_BOUNDS(){var y=bL(document);return Object.defineProperty(ns,"SUPPORT_RANGE_BOUNDS",{value:y}),y},get SUPPORT_WORD_BREAKING(){var y=ns.SUPPORT_RANGE_BOUNDS&&vL(document);return Object.defineProperty(ns,"SUPPORT_WORD_BREAKING",{value:y}),y},get SUPPORT_SVG_DRAWING(){var y=wL(document);return Object.defineProperty(ns,"SUPPORT_SVG_DRAWING",{value:y}),y},get SUPPORT_FOREIGNOBJECT_DRAWING(){var y=typeof Array.from=="function"&&typeof window.fetch=="function"?_L(document):Promise.resolve(!1);return Object.defineProperty(ns,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:y}),y},get SUPPORT_CORS_IMAGES(){var y=BL();return Object.defineProperty(ns,"SUPPORT_CORS_IMAGES",{value:y}),y},get SUPPORT_RESPONSE_TYPE(){var y=CL();return Object.defineProperty(ns,"SUPPORT_RESPONSE_TYPE",{value:y}),y},get SUPPORT_CORS_XHR(){var y="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ns,"SUPPORT_CORS_XHR",{value:y}),y},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var y=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(ns,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:y}),y}},hl=(function(){function y(p,b){this.text=p,this.bounds=b}return y})(),FL=function(y,p,b,x){var F=TL(p,b),T=[],R=0;return F.forEach(function(N){if(b.textDecorationLine.length||N.trim().length>0)if(ns.SUPPORT_RANGE_BOUNDS){var H=d0(x,R,N.length).getClientRects();if(H.length>1){var q=Yu(N),ee=0;q.forEach(function(de){T.push(new hl(de,n.fromDOMRectList(y,d0(x,ee+R,de.length).getClientRects()))),ee+=de.length})}else T.push(new hl(N,n.fromDOMRectList(y,H)))}else{var se=x.splitText(N.length);T.push(new hl(N,SL(y,x))),x=se}else ns.SUPPORT_RANGE_BOUNDS||(x=x.splitText(N.length));R+=N.length}),T},SL=function(y,p){var b=p.ownerDocument;if(b){var x=b.createElement("html2canvaswrapper");x.appendChild(p.cloneNode(!0));var F=p.parentNode;if(F){F.replaceChild(x,p);var T=o(y,x);return x.firstChild&&F.replaceChild(x.firstChild,x),T}}return n.EMPTY},d0=function(y,p,b){var x=y.ownerDocument;if(!x)throw new Error("Node has no owner document");var F=x.createRange();return F.setStart(y,p),F.setEnd(y,p+b),F},Yu=function(y){if(ns.SUPPORT_NATIVE_TEXT_SEGMENTATION){var p=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(p.segment(y)).map(function(b){return b.segment})}return xL(y)},LL=function(y,p){if(ns.SUPPORT_NATIVE_TEXT_SEGMENTATION){var b=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(b.segment(y)).map(function(x){return x.segment})}return DL(y,p)},TL=function(y,p){return p.letterSpacing!==0?Yu(y):LL(y,p)},IL=[32,160,4961,65792,65793,4153,4241],DL=function(y,p){for(var b=rF(y,{lineBreak:p.lineBreak,wordBreak:p.overflowWrap==="break-word"?"break-word":p.wordBreak}),x=[],F,T=function(){if(F.value){var R=F.value.slice(),N=l(R),H="";N.forEach(function(q){IL.indexOf(q)===-1?H+=h(q):(H.length&&x.push(H),x.push(h(q)),H="")}),H.length&&x.push(H)}};!(F=b.next()).done;)T();return x},kL=(function(){function y(p,b,x){this.text=UL(b.data,x.textTransform),this.textBounds=FL(p,this.text,x,b)}return y})(),UL=function(y,p){switch(p){case 1:return y.toLowerCase();case 3:return y.replace(QL,EL);case 2:return y.toUpperCase();default:return y}},QL=/(^|\s|:|-|\(|\))([a-z])/g,EL=function(y,p,b){return y.length>0?p+b.toUpperCase():y},u0=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;return F.src=x.currentSrc||x.src,F.intrinsicWidth=x.naturalWidth,F.intrinsicHeight=x.naturalHeight,F.context.cache.addImage(F.src),F}return p})(oa),f0=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;return F.canvas=x,F.intrinsicWidth=x.width,F.intrinsicHeight=x.height,F}return p})(oa),g0=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this,T=new XMLSerializer,R=o(b,x);return x.setAttribute("width",R.width+"px"),x.setAttribute("height",R.height+"px"),F.svg="data:image/svg+xml,"+encodeURIComponent(T.serializeToString(x)),F.intrinsicWidth=x.width.baseVal.value,F.intrinsicHeight=x.height.baseVal.value,F.context.cache.addImage(F.svg),F}return p})(oa),p0=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;return F.value=x.value,F}return p})(oa),zu=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;return F.start=x.start,F.reversed=typeof x.reversed=="boolean"&&x.reversed===!0,F}return p})(oa),RL=[{type:15,flags:0,unit:"px",number:3}],ML=[{type:16,flags:0,number:50}],PL=function(y){return y.width>y.height?new n(y.left+(y.width-y.height)/2,y.top,y.height,y.height):y.width<y.height?new n(y.left,y.top+(y.height-y.width)/2,y.width,y.width):y},OL=function(y){var p=y.type===HL?new Array(y.value.length+1).join("\u2022"):y.value;return p.length===0?y.placeholder||"":p},Zc="checkbox",qc="radio",HL="password",m0=707406591,ju=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;switch(F.type=x.type.toLowerCase(),F.checked=x.checked,F.value=OL(x),(F.type===Zc||F.type===qc)&&(F.styles.backgroundColor=3739148031,F.styles.borderTopColor=F.styles.borderRightColor=F.styles.borderBottomColor=F.styles.borderLeftColor=2779096575,F.styles.borderTopWidth=F.styles.borderRightWidth=F.styles.borderBottomWidth=F.styles.borderLeftWidth=1,F.styles.borderTopStyle=F.styles.borderRightStyle=F.styles.borderBottomStyle=F.styles.borderLeftStyle=1,F.styles.backgroundClip=[0],F.styles.backgroundOrigin=[0],F.bounds=PL(F.bounds)),F.type){case Zc:F.styles.borderTopRightRadius=F.styles.borderTopLeftRadius=F.styles.borderBottomRightRadius=F.styles.borderBottomLeftRadius=RL;break;case qc:F.styles.borderTopRightRadius=F.styles.borderTopLeftRadius=F.styles.borderBottomRightRadius=F.styles.borderBottomLeftRadius=ML;break}return F}return p})(oa),y0=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this,T=x.options[x.selectedIndex||0];return F.value=T&&T.text||"",F}return p})(oa),x0=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;return F.value=x.value,F}return p})(oa),b0=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;F.src=x.src,F.width=parseInt(x.width,10)||0,F.height=parseInt(x.height,10)||0,F.backgroundColor=F.styles.backgroundColor;try{if(x.contentWindow&&x.contentWindow.document&&x.contentWindow.document.documentElement){F.tree=B0(b,x.contentWindow.document.documentElement);var T=x.contentWindow.document.documentElement?Al(b,getComputedStyle(x.contentWindow.document.documentElement).backgroundColor):Xa.TRANSPARENT,R=x.contentWindow.document.body?Al(b,getComputedStyle(x.contentWindow.document.body).backgroundColor):Xa.TRANSPARENT;F.backgroundColor=bn(T)?bn(R)?F.styles.backgroundColor:R:T}}catch{}return F}return p})(oa),NL=["OL","UL","MENU"],Jc=function(y,p,b,x){for(var F=p.firstChild,T=void 0;F;F=T)if(T=F.nextSibling,C0(F)&&F.data.trim().length>0)b.textNodes.push(new kL(y,F,b.styles));else if(oA(F))if(T0(F)&&F.assignedNodes)F.assignedNodes().forEach(function(N){return Jc(y,N,b,x)});else{var R=v0(y,F);R.styles.isVisible()&&($L(F,R,x)?R.flags|=4:VL(R.styles)&&(R.flags|=2),NL.indexOf(F.tagName)!==-1&&(R.flags|=8),b.elements.push(R),F.slot,F.shadowRoot?Jc(y,F.shadowRoot,R,x):!th(F)&&!w0(F)&&!ih(F)&&Jc(y,F,R,x))}},v0=function(y,p){return Ju(p)?new u0(y,p):_0(p)?new f0(y,p):w0(p)?new g0(y,p):XL(p)?new p0(y,p):KL(p)?new zu(y,p):GL(p)?new ju(y,p):ih(p)?new y0(y,p):th(p)?new x0(y,p):S0(p)?new b0(y,p):new oa(y,p)},B0=function(y,p){var b=v0(y,p);return b.flags|=4,Jc(y,p,b,b),b},$L=function(y,p,b){return p.styles.isPositionedWithZIndex()||p.styles.opacity<1||p.styles.isTransformed()||qu(y)&&b.styles.isTransparent()},VL=function(y){return y.isPositioned()||y.isFloating()},C0=function(y){return y.nodeType===Node.TEXT_NODE},oA=function(y){return y.nodeType===Node.ELEMENT_NODE},Zu=function(y){return oA(y)&&typeof y.style<"u"&&!eh(y)},eh=function(y){return typeof y.className=="object"},XL=function(y){return y.tagName==="LI"},KL=function(y){return y.tagName==="OL"},GL=function(y){return y.tagName==="INPUT"},WL=function(y){return y.tagName==="HTML"},w0=function(y){return y.tagName==="svg"},qu=function(y){return y.tagName==="BODY"},_0=function(y){return y.tagName==="CANVAS"},F0=function(y){return y.tagName==="VIDEO"},Ju=function(y){return y.tagName==="IMG"},S0=function(y){return y.tagName==="IFRAME"},L0=function(y){return y.tagName==="STYLE"},YL=function(y){return y.tagName==="SCRIPT"},th=function(y){return y.tagName==="TEXTAREA"},ih=function(y){return y.tagName==="SELECT"},T0=function(y){return y.tagName==="SLOT"},I0=function(y){return y.tagName.indexOf("-")>0},zL=(function(){function y(){this.counters={}}return y.prototype.getCounterValue=function(p){var b=this.counters[p];return b&&b.length?b[b.length-1]:1},y.prototype.getCounterValues=function(p){var b=this.counters[p];return b||[]},y.prototype.pop=function(p){var b=this;p.forEach(function(x){return b.counters[x].pop()})},y.prototype.parse=function(p){var b=this,x=p.counterIncrement,F=p.counterReset,T=!0;x!==null&&x.forEach(function(N){var H=b.counters[N.counter];H&&N.increment!==0&&(T=!1,H.length||H.push(1),H[Math.max(0,H.length-1)]+=N.increment)});var R=[];return T&&F.forEach(function(N){var H=b.counters[N.counter];R.push(N.counter),H||(H=b.counters[N.counter]=[]),H.push(N.reset)}),R},y})(),D0={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},k0={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},jL={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},ZL={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},AA=function(y,p,b,x,F,T){return y<p||y>b?ul(y,F,T.length>0):x.integers.reduce(function(R,N,H){for(;y>=N;)y-=N,R+=x.values[H];return R},"")+T},U0=function(y,p,b,x){var F="";do b||y--,F=x(y)+F,y/=p;while(y*p>=p);return F},Si=function(y,p,b,x,F){var T=b-p+1;return(y<0?"-":"")+(U0(Math.abs(y),T,x,function(R){return h(Math.floor(R%T)+p)})+F)},co=function(y,p,b){b===void 0&&(b=". ");var x=p.length;return U0(Math.abs(y),x,!1,function(F){return p[Math.floor(F%x)]})+b},lA=1,Bn=2,Cn=4,dl=8,Ka=function(y,p,b,x,F,T){if(y<-9999||y>9999)return ul(y,4,F.length>0);var R=Math.abs(y),N=F;if(R===0)return p[0]+N;for(var H=0;R>0&&H<=4;H++){var q=R%10;q===0&&Vi(T,lA)&&N!==""?N=p[q]+N:q>1||q===1&&H===0||q===1&&H===1&&Vi(T,Bn)||q===1&&H===1&&Vi(T,Cn)&&y>100||q===1&&H>1&&Vi(T,dl)?N=p[q]+(H>0?b[H-1]:"")+N:q===1&&H>0&&(N=b[H-1]+N),R=Math.floor(R/10)}return(y<0?x:"")+N},Q0="\u5341\u767E\u5343\u842C",E0="\u62FE\u4F70\u4EDF\u842C",R0="\u30DE\u30A4\u30CA\u30B9",ef="\uB9C8\uC774\uB108\uC2A4",ul=function(y,p,b){var x=b?". ":"",F=b?"\u3001":"",T=b?", ":"",R=b?" ":"";switch(p){case 0:return"\u2022"+R;case 1:return"\u25E6"+R;case 2:return"\u25FE"+R;case 5:var N=Si(y,48,57,!0,x);return N.length<4?"0"+N:N;case 4:return co(y,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",F);case 6:return AA(y,1,3999,D0,3,x).toLowerCase();case 7:return AA(y,1,3999,D0,3,x);case 8:return Si(y,945,969,!1,x);case 9:return Si(y,97,122,!1,x);case 10:return Si(y,65,90,!1,x);case 11:return Si(y,1632,1641,!0,x);case 12:case 49:return AA(y,1,9999,k0,3,x);case 35:return AA(y,1,9999,k0,3,x).toLowerCase();case 13:return Si(y,2534,2543,!0,x);case 14:case 30:return Si(y,6112,6121,!0,x);case 15:return co(y,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",F);case 16:return co(y,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",F);case 17:case 48:return Ka(y,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Q0,"\u8CA0",F,Bn|Cn|dl);case 47:return Ka(y,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",E0,"\u8CA0",F,lA|Bn|Cn|dl);case 42:return Ka(y,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Q0,"\u8D1F",F,Bn|Cn|dl);case 41:return Ka(y,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",E0,"\u8D1F",F,lA|Bn|Cn|dl);case 26:return Ka(y,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",R0,F,0);case 25:return Ka(y,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",R0,F,lA|Bn|Cn);case 31:return Ka(y,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ef,T,lA|Bn|Cn);case 33:return Ka(y,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ef,T,0);case 32:return Ka(y,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ef,T,lA|Bn|Cn);case 18:return Si(y,2406,2415,!0,x);case 20:return AA(y,1,19999,ZL,3,x);case 21:return Si(y,2790,2799,!0,x);case 22:return Si(y,2662,2671,!0,x);case 22:return AA(y,1,10999,jL,3,x);case 23:return co(y,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return co(y,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Si(y,3302,3311,!0,x);case 28:return co(y,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",F);case 29:return co(y,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",F);case 34:return Si(y,3792,3801,!0,x);case 37:return Si(y,6160,6169,!0,x);case 38:return Si(y,4160,4169,!0,x);case 39:return Si(y,2918,2927,!0,x);case 40:return Si(y,1776,1785,!0,x);case 43:return Si(y,3046,3055,!0,x);case 44:return Si(y,3174,3183,!0,x);case 45:return Si(y,3664,3673,!0,x);case 46:return Si(y,3872,3881,!0,x);default:return Si(y,48,57,!0,x)}},M0="data-html2canvas-ignore",P0=(function(){function y(p,b,x){if(this.context=p,this.options=x,this.scrolledElements=[],this.referenceElement=b,this.counters=new zL,this.quoteDepth=0,!b.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(b.ownerDocument.documentElement,!1)}return y.prototype.toIFrame=function(p,b){var x=this,F=qL(p,b);if(!F.contentWindow)return Promise.reject("Unable to find iframe window");var T=p.defaultView.pageXOffset,R=p.defaultView.pageYOffset,N=F.contentWindow,H=N.document,q=tT(F).then(function(){return i(x,void 0,void 0,function(){var ee,se;return s(this,function(de){switch(de.label){case 0:return this.scrolledElements.forEach(aT),N&&(N.scrollTo(b.left,b.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(N.scrollY!==b.top||N.scrollX!==b.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(N.scrollX-b.left,N.scrollY-b.top,0,0))),ee=this.options.onclone,se=this.clonedReferenceElement,typeof se>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:H.fonts&&H.fonts.ready?[4,H.fonts.ready]:[3,2];case 1:de.sent(),de.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,eT(H)]:[3,4];case 3:de.sent(),de.label=4;case 4:return typeof ee=="function"?[2,Promise.resolve().then(function(){return ee(H,se)}).then(function(){return F})]:[2,F]}})})});return H.open(),H.write(sT(document.doctype)+"<html></html>"),rT(this.referenceElement.ownerDocument,T,R),H.replaceChild(H.adoptNode(this.documentElement),H.documentElement),H.close(),q},y.prototype.createElementClone=function(p){if(Mu(p,2))debugger;if(_0(p))return this.createCanvasClone(p);if(F0(p))return this.createVideoClone(p);if(L0(p))return this.createStyleClone(p);var b=p.cloneNode(!1);return Ju(b)&&(Ju(p)&&p.currentSrc&&p.currentSrc!==p.src&&(b.src=p.currentSrc,b.srcset=""),b.loading==="lazy"&&(b.loading="eager")),I0(b)?this.createCustomElementClone(b):b},y.prototype.createCustomElementClone=function(p){var b=document.createElement("html2canvascustomelement");return tf(p.style,b),b},y.prototype.createStyleClone=function(p){try{var b=p.sheet;if(b&&b.cssRules){var x=[].slice.call(b.cssRules,0).reduce(function(T,R){return R&&typeof R.cssText=="string"?T+R.cssText:T},""),F=p.cloneNode(!1);return F.textContent=x,F}}catch(T){if(this.context.logger.error("Unable to access cssRules property",T),T.name!=="SecurityError")throw T}return p.cloneNode(!1)},y.prototype.createCanvasClone=function(p){var b;if(this.options.inlineImages&&p.ownerDocument){var x=p.ownerDocument.createElement("img");try{return x.src=p.toDataURL(),x}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",p)}}var F=p.cloneNode(!1);try{F.width=p.width,F.height=p.height;var T=p.getContext("2d"),R=F.getContext("2d");if(R)if(!this.options.allowTaint&&T)R.putImageData(T.getImageData(0,0,p.width,p.height),0,0);else{var N=(b=p.getContext("webgl2"))!==null&&b!==void 0?b:p.getContext("webgl");if(N){var H=N.getContextAttributes();H?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",p)}R.drawImage(p,0,0)}return F}catch{this.context.logger.info("Unable to clone canvas as it is tainted",p)}return F},y.prototype.createVideoClone=function(p){var b=p.ownerDocument.createElement("canvas");b.width=p.offsetWidth,b.height=p.offsetHeight;var x=b.getContext("2d");try{return x&&(x.drawImage(p,0,0,b.width,b.height),this.options.allowTaint||x.getImageData(0,0,b.width,b.height)),b}catch{this.context.logger.info("Unable to clone video as it is tainted",p)}var F=p.ownerDocument.createElement("canvas");return F.width=p.offsetWidth,F.height=p.offsetHeight,F},y.prototype.appendChildNode=function(p,b,x){(!oA(b)||!YL(b)&&!b.hasAttribute(M0)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(b)))&&(!this.options.copyStyles||!oA(b)||!L0(b))&&p.appendChild(this.cloneNode(b,x))},y.prototype.cloneChildNodes=function(p,b,x){for(var F=this,T=p.shadowRoot?p.shadowRoot.firstChild:p.firstChild;T;T=T.nextSibling)if(oA(T)&&T0(T)&&typeof T.assignedNodes=="function"){var R=T.assignedNodes();R.length&&R.forEach(function(N){return F.appendChildNode(b,N,x)})}else this.appendChildNode(b,T,x)},y.prototype.cloneNode=function(p,b){if(C0(p))return document.createTextNode(p.data);if(!p.ownerDocument)return p.cloneNode(!1);var x=p.ownerDocument.defaultView;if(x&&oA(p)&&(Zu(p)||eh(p))){var F=this.createElementClone(p);F.style.transitionProperty="none";var T=x.getComputedStyle(p),R=x.getComputedStyle(p,":before"),N=x.getComputedStyle(p,":after");this.referenceElement===p&&Zu(F)&&(this.clonedReferenceElement=F),qu(F)&&AT(F);var H=this.counters.parse(new qy(this.context,T)),q=this.resolvePseudoContent(p,F,R,fl.BEFORE);I0(p)&&(b=!0),F0(p)||this.cloneChildNodes(p,F,b),q&&F.insertBefore(q,F.firstChild);var ee=this.resolvePseudoContent(p,F,N,fl.AFTER);return ee&&F.appendChild(ee),this.counters.pop(H),(T&&(this.options.copyStyles||eh(p))&&!S0(p)||b)&&tf(T,F),(p.scrollTop!==0||p.scrollLeft!==0)&&this.scrolledElements.push([F,p.scrollLeft,p.scrollTop]),(th(p)||ih(p))&&(th(F)||ih(F))&&(F.value=p.value),F}return p.cloneNode(!1)},y.prototype.resolvePseudoContent=function(p,b,x,F){var T=this;if(x){var R=x.content,N=b.ownerDocument;if(!(!N||!R||R==="none"||R==="-moz-alt-content"||x.display==="none")){this.counters.parse(new qy(this.context,x));var H=new X1(this.context,x),q=N.createElement("html2canvaspseudoelement");tf(x,q),H.content.forEach(function(se){if(se.type===0)q.appendChild(N.createTextNode(se.value));else if(se.type===22){var de=N.createElement("img");de.src=se.value,de.style.opacity="1",q.appendChild(de)}else if(se.type===18){if(se.name==="attr"){var ke=se.values.filter(Wt);ke.length&&q.appendChild(N.createTextNode(p.getAttribute(ke[0].value)||""))}else if(se.name==="counter"){var Be=se.values.filter(aA),Fe=Be[0],lt=Be[1];if(Fe&&Wt(Fe)){var He=T.counters.getCounterValue(Fe.value),Pe=lt&&Wt(lt)?Ru.parse(T.context,lt.value):3;q.appendChild(N.createTextNode(ul(He,Pe,!1)))}}else if(se.name==="counters"){var Ut=se.values.filter(aA),Fe=Ut[0],ct=Ut[1],lt=Ut[2];if(Fe&&Wt(Fe)){var Je=T.counters.getCounterValues(Fe.value),Le=lt&&Wt(lt)?Ru.parse(T.context,lt.value):3,St=ct&&ct.type===0?ct.value:"",Lt=Je.map(function(Ns){return ul(Ns,Le,!1)}).join(St);q.appendChild(N.createTextNode(Lt))}}}else if(se.type===20)switch(se.value){case"open-quote":q.appendChild(N.createTextNode(Zy(H.quotes,T.quoteDepth++,!0)));break;case"close-quote":q.appendChild(N.createTextNode(Zy(H.quotes,--T.quoteDepth,!1)));break;default:q.appendChild(N.createTextNode(se.value))}}),q.className=sf+" "+rf;var ee=F===fl.BEFORE?" "+sf:" "+rf;return eh(b)?b.className.baseValue+=ee:b.className+=ee,q}}},y.destroy=function(p){return p.parentNode?(p.parentNode.removeChild(p),!0):!1},y})(),fl;(function(y){y[y.BEFORE=0]="BEFORE",y[y.AFTER=1]="AFTER"})(fl||(fl={}));var qL=function(y,p){var b=y.createElement("iframe");return b.className="html2canvas-container",b.style.visibility="hidden",b.style.position="fixed",b.style.left="-10000px",b.style.top="0px",b.style.border="0",b.width=p.width.toString(),b.height=p.height.toString(),b.scrolling="no",b.setAttribute(M0,"true"),y.body.appendChild(b),b},JL=function(y){return new Promise(function(p){if(y.complete){p();return}if(!y.src){p();return}y.onload=p,y.onerror=p})},eT=function(y){return Promise.all([].slice.call(y.images,0).map(JL))},tT=function(y){return new Promise(function(p,b){var x=y.contentWindow;if(!x)return b("No window assigned for iframe");var F=x.document;x.onload=y.onload=function(){x.onload=y.onload=null;var T=setInterval(function(){F.body.childNodes.length>0&&F.readyState==="complete"&&(clearInterval(T),p(y))},50)}})},iT=["all","d","content"],tf=function(y,p){for(var b=y.length-1;b>=0;b--){var x=y.item(b);iT.indexOf(x)===-1&&p.style.setProperty(x,y.getPropertyValue(x))}return p},sT=function(y){var p="";return y&&(p+="<!DOCTYPE ",y.name&&(p+=y.name),y.internalSubset&&(p+=y.internalSubset),y.publicId&&(p+='"'+y.publicId+'"'),y.systemId&&(p+='"'+y.systemId+'"'),p+=">"),p},rT=function(y,p,b){y&&y.defaultView&&(p!==y.defaultView.pageXOffset||b!==y.defaultView.pageYOffset)&&y.defaultView.scrollTo(p,b)},aT=function(y){var p=y[0],b=y[1],x=y[2];p.scrollLeft=b,p.scrollTop=x},nT=":before",oT=":after",sf="___html2canvas___pseudoelement_before",rf="___html2canvas___pseudoelement_after",O0=`{
|
|
3
|
+
content: "" !important;
|
|
4
|
+
display: none !important;
|
|
5
|
+
}`,AT=function(y){lT(y,"."+sf+nT+O0+`
|
|
6
|
+
.`+rf+oT+O0)},lT=function(y,p){var b=y.ownerDocument;if(b){var x=b.createElement("style");x.textContent=p,y.appendChild(x)}},H0=(function(){function y(){}return y.getOrigin=function(p){var b=y._link;return b?(b.href=p,b.href=b.href,b.protocol+b.hostname+b.port):"about:blank"},y.isSameOrigin=function(p){return y.getOrigin(p)===y._origin},y.setContext=function(p){y._link=p.document.createElement("a"),y._origin=y.getOrigin(p.location.href)},y._origin="about:blank",y})(),cT=(function(){function y(p,b){this.context=p,this._options=b,this._cache={}}return y.prototype.addImage=function(p){var b=Promise.resolve();return this.has(p)||(nf(p)||fT(p))&&(this._cache[p]=this.loadImage(p)).catch(function(){}),b},y.prototype.match=function(p){return this._cache[p]},y.prototype.loadImage=function(p){return i(this,void 0,void 0,function(){var b,x,F,T,R=this;return s(this,function(N){switch(N.label){case 0:return b=H0.isSameOrigin(p),x=!af(p)&&this._options.useCORS===!0&&ns.SUPPORT_CORS_IMAGES&&!b,F=!af(p)&&!b&&!nf(p)&&typeof this._options.proxy=="string"&&ns.SUPPORT_CORS_XHR&&!x,!b&&this._options.allowTaint===!1&&!af(p)&&!nf(p)&&!F&&!x?[2]:(T=p,F?[4,this.proxy(T)]:[3,2]);case 1:T=N.sent(),N.label=2;case 2:return this.context.logger.debug("Added image "+p.substring(0,256)),[4,new Promise(function(H,q){var ee=new Image;ee.onload=function(){return H(ee)},ee.onerror=q,(gT(T)||x)&&(ee.crossOrigin="anonymous"),ee.src=T,ee.complete===!0&&setTimeout(function(){return H(ee)},500),R._options.imageTimeout>0&&setTimeout(function(){return q("Timed out ("+R._options.imageTimeout+"ms) loading image")},R._options.imageTimeout)})];case 3:return[2,N.sent()]}})})},y.prototype.has=function(p){return typeof this._cache[p]<"u"},y.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},y.prototype.proxy=function(p){var b=this,x=this._options.proxy;if(!x)throw new Error("No proxy defined");var F=p.substring(0,256);return new Promise(function(T,R){var N=ns.SUPPORT_RESPONSE_TYPE?"blob":"text",H=new XMLHttpRequest;H.onload=function(){if(H.status===200)if(N==="text")T(H.response);else{var se=new FileReader;se.addEventListener("load",function(){return T(se.result)},!1),se.addEventListener("error",function(de){return R(de)},!1),se.readAsDataURL(H.response)}else R("Failed to proxy resource "+F+" with status code "+H.status)},H.onerror=R;var q=x.indexOf("?")>-1?"&":"?";if(H.open("GET",""+x+q+"url="+encodeURIComponent(p)+"&responseType="+N),N!=="text"&&H instanceof XMLHttpRequest&&(H.responseType=N),b._options.imageTimeout){var ee=b._options.imageTimeout;H.timeout=ee,H.ontimeout=function(){return R("Timed out ("+ee+"ms) proxying "+F)}}H.send()})},y})(),hT=/^data:image\/svg\+xml/i,dT=/^data:image\/.*;base64,/i,uT=/^data:image\/.*/i,fT=function(y){return ns.SUPPORT_SVG_DRAWING||!pT(y)},af=function(y){return uT.test(y)},gT=function(y){return dT.test(y)},nf=function(y){return y.substr(0,4)==="blob"},pT=function(y){return y.substr(-3).toLowerCase()==="svg"||hT.test(y)},Se=(function(){function y(p,b){this.type=0,this.x=p,this.y=b}return y.prototype.add=function(p,b){return new y(this.x+p,this.y+b)},y})(),cA=function(y,p,b){return new Se(y.x+(p.x-y.x)*b,y.y+(p.y-y.y)*b)},sh=(function(){function y(p,b,x,F){this.type=1,this.start=p,this.startControl=b,this.endControl=x,this.end=F}return y.prototype.subdivide=function(p,b){var x=cA(this.start,this.startControl,p),F=cA(this.startControl,this.endControl,p),T=cA(this.endControl,this.end,p),R=cA(x,F,p),N=cA(F,T,p),H=cA(R,N,p);return b?new y(this.start,x,R,H):new y(H,N,T,this.end)},y.prototype.add=function(p,b){return new y(this.start.add(p,b),this.startControl.add(p,b),this.endControl.add(p,b),this.end.add(p,b))},y.prototype.reverse=function(){return new y(this.end,this.endControl,this.startControl,this.start)},y})(),xr=function(y){return y.type===1},mT=(function(){function y(p){var b=p.styles,x=p.bounds,F=ol(b.borderTopLeftRadius,x.width,x.height),T=F[0],R=F[1],N=ol(b.borderTopRightRadius,x.width,x.height),H=N[0],q=N[1],ee=ol(b.borderBottomRightRadius,x.width,x.height),se=ee[0],de=ee[1],ke=ol(b.borderBottomLeftRadius,x.width,x.height),Be=ke[0],Fe=ke[1],lt=[];lt.push((T+H)/x.width),lt.push((Be+se)/x.width),lt.push((R+Fe)/x.height),lt.push((q+de)/x.height);var He=Math.max.apply(Math,lt);He>1&&(T/=He,R/=He,H/=He,q/=He,se/=He,de/=He,Be/=He,Fe/=He);var Pe=x.width-H,Ut=x.height-de,ct=x.width-se,Je=x.height-Fe,Le=b.borderTopWidth,St=b.borderRightWidth,Lt=b.borderBottomWidth,it=b.borderLeftWidth,Oi=ii(b.paddingTop,p.bounds.width),Ns=ii(b.paddingRight,p.bounds.width),sr=ii(b.paddingBottom,p.bounds.width),Yt=ii(b.paddingLeft,p.bounds.width);this.topLeftBorderDoubleOuterBox=T>0||R>0?Ai(x.left+it/3,x.top+Le/3,T-it/3,R-Le/3,Pt.TOP_LEFT):new Se(x.left+it/3,x.top+Le/3),this.topRightBorderDoubleOuterBox=T>0||R>0?Ai(x.left+Pe,x.top+Le/3,H-St/3,q-Le/3,Pt.TOP_RIGHT):new Se(x.left+x.width-St/3,x.top+Le/3),this.bottomRightBorderDoubleOuterBox=se>0||de>0?Ai(x.left+ct,x.top+Ut,se-St/3,de-Lt/3,Pt.BOTTOM_RIGHT):new Se(x.left+x.width-St/3,x.top+x.height-Lt/3),this.bottomLeftBorderDoubleOuterBox=Be>0||Fe>0?Ai(x.left+it/3,x.top+Je,Be-it/3,Fe-Lt/3,Pt.BOTTOM_LEFT):new Se(x.left+it/3,x.top+x.height-Lt/3),this.topLeftBorderDoubleInnerBox=T>0||R>0?Ai(x.left+it*2/3,x.top+Le*2/3,T-it*2/3,R-Le*2/3,Pt.TOP_LEFT):new Se(x.left+it*2/3,x.top+Le*2/3),this.topRightBorderDoubleInnerBox=T>0||R>0?Ai(x.left+Pe,x.top+Le*2/3,H-St*2/3,q-Le*2/3,Pt.TOP_RIGHT):new Se(x.left+x.width-St*2/3,x.top+Le*2/3),this.bottomRightBorderDoubleInnerBox=se>0||de>0?Ai(x.left+ct,x.top+Ut,se-St*2/3,de-Lt*2/3,Pt.BOTTOM_RIGHT):new Se(x.left+x.width-St*2/3,x.top+x.height-Lt*2/3),this.bottomLeftBorderDoubleInnerBox=Be>0||Fe>0?Ai(x.left+it*2/3,x.top+Je,Be-it*2/3,Fe-Lt*2/3,Pt.BOTTOM_LEFT):new Se(x.left+it*2/3,x.top+x.height-Lt*2/3),this.topLeftBorderStroke=T>0||R>0?Ai(x.left+it/2,x.top+Le/2,T-it/2,R-Le/2,Pt.TOP_LEFT):new Se(x.left+it/2,x.top+Le/2),this.topRightBorderStroke=T>0||R>0?Ai(x.left+Pe,x.top+Le/2,H-St/2,q-Le/2,Pt.TOP_RIGHT):new Se(x.left+x.width-St/2,x.top+Le/2),this.bottomRightBorderStroke=se>0||de>0?Ai(x.left+ct,x.top+Ut,se-St/2,de-Lt/2,Pt.BOTTOM_RIGHT):new Se(x.left+x.width-St/2,x.top+x.height-Lt/2),this.bottomLeftBorderStroke=Be>0||Fe>0?Ai(x.left+it/2,x.top+Je,Be-it/2,Fe-Lt/2,Pt.BOTTOM_LEFT):new Se(x.left+it/2,x.top+x.height-Lt/2),this.topLeftBorderBox=T>0||R>0?Ai(x.left,x.top,T,R,Pt.TOP_LEFT):new Se(x.left,x.top),this.topRightBorderBox=H>0||q>0?Ai(x.left+Pe,x.top,H,q,Pt.TOP_RIGHT):new Se(x.left+x.width,x.top),this.bottomRightBorderBox=se>0||de>0?Ai(x.left+ct,x.top+Ut,se,de,Pt.BOTTOM_RIGHT):new Se(x.left+x.width,x.top+x.height),this.bottomLeftBorderBox=Be>0||Fe>0?Ai(x.left,x.top+Je,Be,Fe,Pt.BOTTOM_LEFT):new Se(x.left,x.top+x.height),this.topLeftPaddingBox=T>0||R>0?Ai(x.left+it,x.top+Le,Math.max(0,T-it),Math.max(0,R-Le),Pt.TOP_LEFT):new Se(x.left+it,x.top+Le),this.topRightPaddingBox=H>0||q>0?Ai(x.left+Math.min(Pe,x.width-St),x.top+Le,Pe>x.width+St?0:Math.max(0,H-St),Math.max(0,q-Le),Pt.TOP_RIGHT):new Se(x.left+x.width-St,x.top+Le),this.bottomRightPaddingBox=se>0||de>0?Ai(x.left+Math.min(ct,x.width-it),x.top+Math.min(Ut,x.height-Lt),Math.max(0,se-St),Math.max(0,de-Lt),Pt.BOTTOM_RIGHT):new Se(x.left+x.width-St,x.top+x.height-Lt),this.bottomLeftPaddingBox=Be>0||Fe>0?Ai(x.left+it,x.top+Math.min(Je,x.height-Lt),Math.max(0,Be-it),Math.max(0,Fe-Lt),Pt.BOTTOM_LEFT):new Se(x.left+it,x.top+x.height-Lt),this.topLeftContentBox=T>0||R>0?Ai(x.left+it+Yt,x.top+Le+Oi,Math.max(0,T-(it+Yt)),Math.max(0,R-(Le+Oi)),Pt.TOP_LEFT):new Se(x.left+it+Yt,x.top+Le+Oi),this.topRightContentBox=H>0||q>0?Ai(x.left+Math.min(Pe,x.width+it+Yt),x.top+Le+Oi,Pe>x.width+it+Yt?0:H-it+Yt,q-(Le+Oi),Pt.TOP_RIGHT):new Se(x.left+x.width-(St+Ns),x.top+Le+Oi),this.bottomRightContentBox=se>0||de>0?Ai(x.left+Math.min(ct,x.width-(it+Yt)),x.top+Math.min(Ut,x.height+Le+Oi),Math.max(0,se-(St+Ns)),de-(Lt+sr),Pt.BOTTOM_RIGHT):new Se(x.left+x.width-(St+Ns),x.top+x.height-(Lt+sr)),this.bottomLeftContentBox=Be>0||Fe>0?Ai(x.left+it+Yt,x.top+Je,Math.max(0,Be-(it+Yt)),Fe-(Lt+sr),Pt.BOTTOM_LEFT):new Se(x.left+it+Yt,x.top+x.height-(Lt+sr))}return y})(),Pt;(function(y){y[y.TOP_LEFT=0]="TOP_LEFT",y[y.TOP_RIGHT=1]="TOP_RIGHT",y[y.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",y[y.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Pt||(Pt={}));var Ai=function(y,p,b,x,F){var T=4*((Math.sqrt(2)-1)/3),R=b*T,N=x*T,H=y+b,q=p+x;switch(F){case Pt.TOP_LEFT:return new sh(new Se(y,q),new Se(y,q-N),new Se(H-R,p),new Se(H,p));case Pt.TOP_RIGHT:return new sh(new Se(y,p),new Se(y+R,p),new Se(H,q-N),new Se(H,q));case Pt.BOTTOM_RIGHT:return new sh(new Se(H,p),new Se(H,p+N),new Se(y+R,q),new Se(y,q));case Pt.BOTTOM_LEFT:default:return new sh(new Se(H,q),new Se(H-R,q),new Se(y,p+N),new Se(y,p))}},rh=function(y){return[y.topLeftBorderBox,y.topRightBorderBox,y.bottomRightBorderBox,y.bottomLeftBorderBox]},yT=function(y){return[y.topLeftContentBox,y.topRightContentBox,y.bottomRightContentBox,y.bottomLeftContentBox]},ah=function(y){return[y.topLeftPaddingBox,y.topRightPaddingBox,y.bottomRightPaddingBox,y.bottomLeftPaddingBox]},xT=(function(){function y(p,b,x){this.offsetX=p,this.offsetY=b,this.matrix=x,this.type=0,this.target=6}return y})(),nh=(function(){function y(p,b){this.path=p,this.target=b,this.type=1}return y})(),bT=(function(){function y(p){this.opacity=p,this.type=2,this.target=6}return y})(),vT=function(y){return y.type===0},N0=function(y){return y.type===1},BT=function(y){return y.type===2},$0=function(y,p){return y.length===p.length?y.some(function(b,x){return b===p[x]}):!1},CT=function(y,p,b,x,F){return y.map(function(T,R){switch(R){case 0:return T.add(p,b);case 1:return T.add(p+x,b);case 2:return T.add(p+x,b+F);case 3:return T.add(p,b+F)}return T})},V0=(function(){function y(p){this.element=p,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return y})(),X0=(function(){function y(p,b){if(this.container=p,this.parent=b,this.effects=[],this.curves=new mT(this.container),this.container.styles.opacity<1&&this.effects.push(new bT(this.container.styles.opacity)),this.container.styles.transform!==null){var x=this.container.bounds.left+this.container.styles.transformOrigin[0].number,F=this.container.bounds.top+this.container.styles.transformOrigin[1].number,T=this.container.styles.transform;this.effects.push(new xT(x,F,T))}if(this.container.styles.overflowX!==0){var R=rh(this.curves),N=ah(this.curves);$0(R,N)?this.effects.push(new nh(R,6)):(this.effects.push(new nh(R,2)),this.effects.push(new nh(N,4)))}}return y.prototype.getEffects=function(p){for(var b=[2,3].indexOf(this.container.styles.position)===-1,x=this.parent,F=this.effects.slice(0);x;){var T=x.effects.filter(function(H){return!N0(H)});if(b||x.container.styles.position!==0||!x.parent){if(F.unshift.apply(F,T),b=[2,3].indexOf(x.container.styles.position)===-1,x.container.styles.overflowX!==0){var R=rh(x.curves),N=ah(x.curves);$0(R,N)||F.unshift(new nh(N,6))}}else F.unshift.apply(F,T);x=x.parent}return F.filter(function(H){return Vi(H.target,p)})},y})(),of=function(y,p,b,x){y.container.elements.forEach(function(F){var T=Vi(F.flags,4),R=Vi(F.flags,2),N=new X0(F,y);Vi(F.styles.display,2048)&&x.push(N);var H=Vi(F.flags,8)?[]:x;if(T||R){var q=T||F.styles.isPositioned()?b:p,ee=new V0(N);if(F.styles.isPositioned()||F.styles.opacity<1||F.styles.isTransformed()){var se=F.styles.zIndex.order;if(se<0){var de=0;q.negativeZIndex.some(function(Be,Fe){return se>Be.element.container.styles.zIndex.order?(de=Fe,!1):de>0}),q.negativeZIndex.splice(de,0,ee)}else if(se>0){var ke=0;q.positiveZIndex.some(function(Be,Fe){return se>=Be.element.container.styles.zIndex.order?(ke=Fe+1,!1):ke>0}),q.positiveZIndex.splice(ke,0,ee)}else q.zeroOrAutoZIndexOrTransformedOrOpacity.push(ee)}else F.styles.isFloating()?q.nonPositionedFloats.push(ee):q.nonPositionedInlineLevel.push(ee);of(N,ee,T?ee:b,H)}else F.styles.isInlineLevel()?p.inlineLevel.push(N):p.nonInlineLevel.push(N),of(N,p,b,H);Vi(F.flags,8)&&K0(F,H)})},K0=function(y,p){for(var b=y instanceof zu?y.start:1,x=y instanceof zu?y.reversed:!1,F=0;F<p.length;F++){var T=p[F];T.container instanceof p0&&typeof T.container.value=="number"&&T.container.value!==0&&(b=T.container.value),T.listValue=ul(b,T.container.styles.listStyleType,!0),b+=x?-1:1}},wT=function(y){var p=new X0(y,null),b=new V0(p),x=[];return of(p,b,b,x),K0(p.container,x),b},G0=function(y,p){switch(p){case 0:return br(y.topLeftBorderBox,y.topLeftPaddingBox,y.topRightBorderBox,y.topRightPaddingBox);case 1:return br(y.topRightBorderBox,y.topRightPaddingBox,y.bottomRightBorderBox,y.bottomRightPaddingBox);case 2:return br(y.bottomRightBorderBox,y.bottomRightPaddingBox,y.bottomLeftBorderBox,y.bottomLeftPaddingBox);default:return br(y.bottomLeftBorderBox,y.bottomLeftPaddingBox,y.topLeftBorderBox,y.topLeftPaddingBox)}},_T=function(y,p){switch(p){case 0:return br(y.topLeftBorderBox,y.topLeftBorderDoubleOuterBox,y.topRightBorderBox,y.topRightBorderDoubleOuterBox);case 1:return br(y.topRightBorderBox,y.topRightBorderDoubleOuterBox,y.bottomRightBorderBox,y.bottomRightBorderDoubleOuterBox);case 2:return br(y.bottomRightBorderBox,y.bottomRightBorderDoubleOuterBox,y.bottomLeftBorderBox,y.bottomLeftBorderDoubleOuterBox);default:return br(y.bottomLeftBorderBox,y.bottomLeftBorderDoubleOuterBox,y.topLeftBorderBox,y.topLeftBorderDoubleOuterBox)}},FT=function(y,p){switch(p){case 0:return br(y.topLeftBorderDoubleInnerBox,y.topLeftPaddingBox,y.topRightBorderDoubleInnerBox,y.topRightPaddingBox);case 1:return br(y.topRightBorderDoubleInnerBox,y.topRightPaddingBox,y.bottomRightBorderDoubleInnerBox,y.bottomRightPaddingBox);case 2:return br(y.bottomRightBorderDoubleInnerBox,y.bottomRightPaddingBox,y.bottomLeftBorderDoubleInnerBox,y.bottomLeftPaddingBox);default:return br(y.bottomLeftBorderDoubleInnerBox,y.bottomLeftPaddingBox,y.topLeftBorderDoubleInnerBox,y.topLeftPaddingBox)}},ST=function(y,p){switch(p){case 0:return oh(y.topLeftBorderStroke,y.topRightBorderStroke);case 1:return oh(y.topRightBorderStroke,y.bottomRightBorderStroke);case 2:return oh(y.bottomRightBorderStroke,y.bottomLeftBorderStroke);default:return oh(y.bottomLeftBorderStroke,y.topLeftBorderStroke)}},oh=function(y,p){var b=[];return xr(y)?b.push(y.subdivide(.5,!1)):b.push(y),xr(p)?b.push(p.subdivide(.5,!0)):b.push(p),b},br=function(y,p,b,x){var F=[];return xr(y)?F.push(y.subdivide(.5,!1)):F.push(y),xr(b)?F.push(b.subdivide(.5,!0)):F.push(b),xr(x)?F.push(x.subdivide(.5,!0).reverse()):F.push(x),xr(p)?F.push(p.subdivide(.5,!1).reverse()):F.push(p),F},W0=function(y){var p=y.bounds,b=y.styles;return p.add(b.borderLeftWidth,b.borderTopWidth,-(b.borderRightWidth+b.borderLeftWidth),-(b.borderTopWidth+b.borderBottomWidth))},Ah=function(y){var p=y.styles,b=y.bounds,x=ii(p.paddingLeft,b.width),F=ii(p.paddingRight,b.width),T=ii(p.paddingTop,b.width),R=ii(p.paddingBottom,b.width);return b.add(x+p.borderLeftWidth,T+p.borderTopWidth,-(p.borderRightWidth+p.borderLeftWidth+x+F),-(p.borderTopWidth+p.borderBottomWidth+T+R))},LT=function(y,p){return y===0?p.bounds:y===2?Ah(p):W0(p)},TT=function(y,p){return y===0?p.bounds:y===2?Ah(p):W0(p)},Af=function(y,p,b){var x=LT(dA(y.styles.backgroundOrigin,p),y),F=TT(dA(y.styles.backgroundClip,p),y),T=IT(dA(y.styles.backgroundSize,p),b,x),R=T[0],N=T[1],H=ol(dA(y.styles.backgroundPosition,p),x.width-R,x.height-N),q=DT(dA(y.styles.backgroundRepeat,p),H,T,x,F),ee=Math.round(x.left+H[0]),se=Math.round(x.top+H[1]);return[q,ee,se,R,N]},hA=function(y){return Wt(y)&&y.value===nA.AUTO},lh=function(y){return typeof y=="number"},IT=function(y,p,b){var x=p[0],F=p[1],T=p[2],R=y[0],N=y[1];if(!R)return[0,0];if(Pi(R)&&N&&Pi(N))return[ii(R,b.width),ii(N,b.height)];var H=lh(T);if(Wt(R)&&(R.value===nA.CONTAIN||R.value===nA.COVER)){if(lh(T)){var q=b.width/b.height;return q<T!=(R.value===nA.COVER)?[b.width,b.width/T]:[b.height*T,b.height]}return[b.width,b.height]}var ee=lh(x),se=lh(F),de=ee||se;if(hA(R)&&(!N||hA(N))){if(ee&&se)return[x,F];if(!H&&!de)return[b.width,b.height];if(de&&H){var ke=ee?x:F*T,Be=se?F:x/T;return[ke,Be]}var Fe=ee?x:b.width,lt=se?F:b.height;return[Fe,lt]}if(H){var He=0,Pe=0;return Pi(R)?He=ii(R,b.width):Pi(N)&&(Pe=ii(N,b.height)),hA(R)?He=Pe*T:(!N||hA(N))&&(Pe=He/T),[He,Pe]}var Ut=null,ct=null;if(Pi(R)?Ut=ii(R,b.width):N&&Pi(N)&&(ct=ii(N,b.height)),Ut!==null&&(!N||hA(N))&&(ct=ee&&se?Ut/x*F:b.height),ct!==null&&hA(R)&&(Ut=ee&&se?ct/F*x:b.width),Ut!==null&&ct!==null)return[Ut,ct];throw new Error("Unable to calculate background-size for element")},dA=function(y,p){var b=y[p];return typeof b>"u"?y[0]:b},DT=function(y,p,b,x,F){var T=p[0],R=p[1],N=b[0],H=b[1];switch(y){case 2:return[new Se(Math.round(x.left),Math.round(x.top+R)),new Se(Math.round(x.left+x.width),Math.round(x.top+R)),new Se(Math.round(x.left+x.width),Math.round(H+x.top+R)),new Se(Math.round(x.left),Math.round(H+x.top+R))];case 3:return[new Se(Math.round(x.left+T),Math.round(x.top)),new Se(Math.round(x.left+T+N),Math.round(x.top)),new Se(Math.round(x.left+T+N),Math.round(x.height+x.top)),new Se(Math.round(x.left+T),Math.round(x.height+x.top))];case 1:return[new Se(Math.round(x.left+T),Math.round(x.top+R)),new Se(Math.round(x.left+T+N),Math.round(x.top+R)),new Se(Math.round(x.left+T+N),Math.round(x.top+R+H)),new Se(Math.round(x.left+T),Math.round(x.top+R+H))];default:return[new Se(Math.round(F.left),Math.round(F.top)),new Se(Math.round(F.left+F.width),Math.round(F.top)),new Se(Math.round(F.left+F.width),Math.round(F.height+F.top)),new Se(Math.round(F.left),Math.round(F.height+F.top))]}},kT="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Y0="Hidden Text",UT=(function(){function y(p){this._data={},this._document=p}return y.prototype.parseMetrics=function(p,b){var x=this._document.createElement("div"),F=this._document.createElement("img"),T=this._document.createElement("span"),R=this._document.body;x.style.visibility="hidden",x.style.fontFamily=p,x.style.fontSize=b,x.style.margin="0",x.style.padding="0",x.style.whiteSpace="nowrap",R.appendChild(x),F.src=kT,F.width=1,F.height=1,F.style.margin="0",F.style.padding="0",F.style.verticalAlign="baseline",T.style.fontFamily=p,T.style.fontSize=b,T.style.margin="0",T.style.padding="0",T.appendChild(this._document.createTextNode(Y0)),x.appendChild(T),x.appendChild(F);var N=F.offsetTop-T.offsetTop+2;x.removeChild(T),x.appendChild(this._document.createTextNode(Y0)),x.style.lineHeight="normal",F.style.verticalAlign="super";var H=F.offsetTop-x.offsetTop+2;return R.removeChild(x),{baseline:N,middle:H}},y.prototype.getMetrics=function(p,b){var x=p+" "+b;return typeof this._data[x]>"u"&&(this._data[x]=this.parseMetrics(p,b)),this._data[x]},y})(),z0=(function(){function y(p,b){this.context=p,this.options=b}return y})(),QT=1e4,ET=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;return F._activeEffects=[],F.canvas=x.canvas?x.canvas:document.createElement("canvas"),F.ctx=F.canvas.getContext("2d"),x.canvas||(F.canvas.width=Math.floor(x.width*x.scale),F.canvas.height=Math.floor(x.height*x.scale),F.canvas.style.width=x.width+"px",F.canvas.style.height=x.height+"px"),F.fontMetrics=new UT(document),F.ctx.scale(F.options.scale,F.options.scale),F.ctx.translate(-x.x,-x.y),F.ctx.textBaseline="bottom",F._activeEffects=[],F.context.logger.debug("Canvas renderer initialized ("+x.width+"x"+x.height+") with scale "+x.scale),F}return p.prototype.applyEffects=function(b){for(var x=this;this._activeEffects.length;)this.popEffect();b.forEach(function(F){return x.applyEffect(F)})},p.prototype.applyEffect=function(b){this.ctx.save(),BT(b)&&(this.ctx.globalAlpha=b.opacity),vT(b)&&(this.ctx.translate(b.offsetX,b.offsetY),this.ctx.transform(b.matrix[0],b.matrix[1],b.matrix[2],b.matrix[3],b.matrix[4],b.matrix[5]),this.ctx.translate(-b.offsetX,-b.offsetY)),N0(b)&&(this.path(b.path),this.ctx.clip()),this._activeEffects.push(b)},p.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},p.prototype.renderStack=function(b){return i(this,void 0,void 0,function(){var x;return s(this,function(F){switch(F.label){case 0:return x=b.element.container.styles,x.isVisible()?[4,this.renderStackContent(b)]:[3,2];case 1:F.sent(),F.label=2;case 2:return[2]}})})},p.prototype.renderNode=function(b){return i(this,void 0,void 0,function(){return s(this,function(x){switch(x.label){case 0:if(Vi(b.container.flags,16))debugger;return b.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(b)]:[3,3];case 1:return x.sent(),[4,this.renderNodeContent(b)];case 2:x.sent(),x.label=3;case 3:return[2]}})})},p.prototype.renderTextWithLetterSpacing=function(b,x,F){var T=this;if(x===0)this.ctx.fillText(b.text,b.bounds.left,b.bounds.top+F);else{var R=Yu(b.text);R.reduce(function(N,H){return T.ctx.fillText(H,N,b.bounds.top+F),N+T.ctx.measureText(H).width},b.bounds.left)}},p.prototype.createFontStyle=function(b){var x=b.fontVariant.filter(function(R){return R==="normal"||R==="small-caps"}).join(""),F=HT(b.fontFamily).join(", "),T=nl(b.fontSize)?""+b.fontSize.number+b.fontSize.unit:b.fontSize.number+"px";return[[b.fontStyle,x,b.fontWeight,T,F].join(" "),F,T]},p.prototype.renderTextNode=function(b,x){return i(this,void 0,void 0,function(){var F,T,R,N,H,q,ee,se,de=this;return s(this,function(ke){return F=this.createFontStyle(x),T=F[0],R=F[1],N=F[2],this.ctx.font=T,this.ctx.direction=x.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",H=this.fontMetrics.getMetrics(R,N),q=H.baseline,ee=H.middle,se=x.paintOrder,b.textBounds.forEach(function(Be){se.forEach(function(Fe){switch(Fe){case 0:de.ctx.fillStyle=qi(x.color),de.renderTextWithLetterSpacing(Be,x.letterSpacing,q);var lt=x.textShadow;lt.length&&Be.text.trim().length&&(lt.slice(0).reverse().forEach(function(He){de.ctx.shadowColor=qi(He.color),de.ctx.shadowOffsetX=He.offsetX.number*de.options.scale,de.ctx.shadowOffsetY=He.offsetY.number*de.options.scale,de.ctx.shadowBlur=He.blur.number,de.renderTextWithLetterSpacing(Be,x.letterSpacing,q)}),de.ctx.shadowColor="",de.ctx.shadowOffsetX=0,de.ctx.shadowOffsetY=0,de.ctx.shadowBlur=0),x.textDecorationLine.length&&(de.ctx.fillStyle=qi(x.textDecorationColor||x.color),x.textDecorationLine.forEach(function(He){switch(He){case 1:de.ctx.fillRect(Be.bounds.left,Math.round(Be.bounds.top+q),Be.bounds.width,1);break;case 2:de.ctx.fillRect(Be.bounds.left,Math.round(Be.bounds.top),Be.bounds.width,1);break;case 3:de.ctx.fillRect(Be.bounds.left,Math.ceil(Be.bounds.top+ee),Be.bounds.width,1);break}}));break;case 1:x.webkitTextStrokeWidth&&Be.text.trim().length&&(de.ctx.strokeStyle=qi(x.webkitTextStrokeColor),de.ctx.lineWidth=x.webkitTextStrokeWidth,de.ctx.lineJoin=window.chrome?"miter":"round",de.ctx.strokeText(Be.text,Be.bounds.left,Be.bounds.top+q)),de.ctx.strokeStyle="",de.ctx.lineWidth=0,de.ctx.lineJoin="miter";break}})}),[2]})})},p.prototype.renderReplacedElement=function(b,x,F){if(F&&b.intrinsicWidth>0&&b.intrinsicHeight>0){var T=Ah(b),R=ah(x);this.path(R),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(F,0,0,b.intrinsicWidth,b.intrinsicHeight,T.left,T.top,T.width,T.height),this.ctx.restore()}},p.prototype.renderNodeContent=function(b){return i(this,void 0,void 0,function(){var x,F,T,R,N,H,Pe,Pe,q,ee,se,de,ct,ke,Be,Je,Fe,lt,He,Pe,Ut,ct,Je;return s(this,function(Le){switch(Le.label){case 0:this.applyEffects(b.getEffects(4)),x=b.container,F=b.curves,T=x.styles,R=0,N=x.textNodes,Le.label=1;case 1:return R<N.length?(H=N[R],[4,this.renderTextNode(H,T)]):[3,4];case 2:Le.sent(),Le.label=3;case 3:return R++,[3,1];case 4:if(!(x instanceof u0))return[3,8];Le.label=5;case 5:return Le.trys.push([5,7,,8]),[4,this.context.cache.match(x.src)];case 6:return Pe=Le.sent(),this.renderReplacedElement(x,F,Pe),[3,8];case 7:return Le.sent(),this.context.logger.error("Error loading image "+x.src),[3,8];case 8:if(x instanceof f0&&this.renderReplacedElement(x,F,x.canvas),!(x instanceof g0))return[3,12];Le.label=9;case 9:return Le.trys.push([9,11,,12]),[4,this.context.cache.match(x.svg)];case 10:return Pe=Le.sent(),this.renderReplacedElement(x,F,Pe),[3,12];case 11:return Le.sent(),this.context.logger.error("Error loading svg "+x.svg.substring(0,255)),[3,12];case 12:return x instanceof b0&&x.tree?(q=new p(this.context,{scale:this.options.scale,backgroundColor:x.backgroundColor,x:0,y:0,width:x.width,height:x.height}),[4,q.render(x.tree)]):[3,14];case 13:ee=Le.sent(),x.width&&x.height&&this.ctx.drawImage(ee,0,0,x.width,x.height,x.bounds.left,x.bounds.top,x.bounds.width,x.bounds.height),Le.label=14;case 14:if(x instanceof ju&&(se=Math.min(x.bounds.width,x.bounds.height),x.type===Zc?x.checked&&(this.ctx.save(),this.path([new Se(x.bounds.left+se*.39363,x.bounds.top+se*.79),new Se(x.bounds.left+se*.16,x.bounds.top+se*.5549),new Se(x.bounds.left+se*.27347,x.bounds.top+se*.44071),new Se(x.bounds.left+se*.39694,x.bounds.top+se*.5649),new Se(x.bounds.left+se*.72983,x.bounds.top+se*.23),new Se(x.bounds.left+se*.84,x.bounds.top+se*.34085),new Se(x.bounds.left+se*.39363,x.bounds.top+se*.79)]),this.ctx.fillStyle=qi(m0),this.ctx.fill(),this.ctx.restore()):x.type===qc&&x.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(x.bounds.left+se/2,x.bounds.top+se/2,se/4,0,Math.PI*2,!0),this.ctx.fillStyle=qi(m0),this.ctx.fill(),this.ctx.restore())),RT(x)&&x.value.length){switch(de=this.createFontStyle(T),ct=de[0],ke=de[1],Be=this.fontMetrics.getMetrics(ct,ke).baseline,this.ctx.font=ct,this.ctx.fillStyle=qi(T.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=PT(x.styles.textAlign),Je=Ah(x),Fe=0,x.styles.textAlign){case 1:Fe+=Je.width/2;break;case 2:Fe+=Je.width;break}lt=Je.add(Fe,0,0,-Je.height/2+1),this.ctx.save(),this.path([new Se(Je.left,Je.top),new Se(Je.left+Je.width,Je.top),new Se(Je.left+Je.width,Je.top+Je.height),new Se(Je.left,Je.top+Je.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new hl(x.value,lt),T.letterSpacing,Be),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!Vi(x.styles.display,2048))return[3,20];if(x.styles.listStyleImage===null)return[3,19];if(He=x.styles.listStyleImage,He.type!==0)return[3,18];Pe=void 0,Ut=He.url,Le.label=15;case 15:return Le.trys.push([15,17,,18]),[4,this.context.cache.match(Ut)];case 16:return Pe=Le.sent(),this.ctx.drawImage(Pe,x.bounds.left-(Pe.width+10),x.bounds.top),[3,18];case 17:return Le.sent(),this.context.logger.error("Error loading list-style-image "+Ut),[3,18];case 18:return[3,20];case 19:b.listValue&&x.styles.listStyleType!==-1&&(ct=this.createFontStyle(T)[0],this.ctx.font=ct,this.ctx.fillStyle=qi(T.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Je=new n(x.bounds.left,x.bounds.top+ii(x.styles.paddingTop,x.bounds.width),x.bounds.width,Yy(T.lineHeight,T.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new hl(b.listValue,Je),T.letterSpacing,Yy(T.lineHeight,T.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Le.label=20;case 20:return[2]}})})},p.prototype.renderStackContent=function(b){return i(this,void 0,void 0,function(){var x,F,He,T,R,He,N,H,He,q,ee,He,se,de,He,ke,Be,He,Fe,lt,He;return s(this,function(Pe){switch(Pe.label){case 0:if(Vi(b.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(b.element)];case 1:Pe.sent(),x=0,F=b.negativeZIndex,Pe.label=2;case 2:return x<F.length?(He=F[x],[4,this.renderStack(He)]):[3,5];case 3:Pe.sent(),Pe.label=4;case 4:return x++,[3,2];case 5:return[4,this.renderNodeContent(b.element)];case 6:Pe.sent(),T=0,R=b.nonInlineLevel,Pe.label=7;case 7:return T<R.length?(He=R[T],[4,this.renderNode(He)]):[3,10];case 8:Pe.sent(),Pe.label=9;case 9:return T++,[3,7];case 10:N=0,H=b.nonPositionedFloats,Pe.label=11;case 11:return N<H.length?(He=H[N],[4,this.renderStack(He)]):[3,14];case 12:Pe.sent(),Pe.label=13;case 13:return N++,[3,11];case 14:q=0,ee=b.nonPositionedInlineLevel,Pe.label=15;case 15:return q<ee.length?(He=ee[q],[4,this.renderStack(He)]):[3,18];case 16:Pe.sent(),Pe.label=17;case 17:return q++,[3,15];case 18:se=0,de=b.inlineLevel,Pe.label=19;case 19:return se<de.length?(He=de[se],[4,this.renderNode(He)]):[3,22];case 20:Pe.sent(),Pe.label=21;case 21:return se++,[3,19];case 22:ke=0,Be=b.zeroOrAutoZIndexOrTransformedOrOpacity,Pe.label=23;case 23:return ke<Be.length?(He=Be[ke],[4,this.renderStack(He)]):[3,26];case 24:Pe.sent(),Pe.label=25;case 25:return ke++,[3,23];case 26:Fe=0,lt=b.positiveZIndex,Pe.label=27;case 27:return Fe<lt.length?(He=lt[Fe],[4,this.renderStack(He)]):[3,30];case 28:Pe.sent(),Pe.label=29;case 29:return Fe++,[3,27];case 30:return[2]}})})},p.prototype.mask=function(b){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(b.slice(0).reverse()),this.ctx.closePath()},p.prototype.path=function(b){this.ctx.beginPath(),this.formatPath(b),this.ctx.closePath()},p.prototype.formatPath=function(b){var x=this;b.forEach(function(F,T){var R=xr(F)?F.start:F;T===0?x.ctx.moveTo(R.x,R.y):x.ctx.lineTo(R.x,R.y),xr(F)&&x.ctx.bezierCurveTo(F.startControl.x,F.startControl.y,F.endControl.x,F.endControl.y,F.end.x,F.end.y)})},p.prototype.renderRepeat=function(b,x,F,T){this.path(b),this.ctx.fillStyle=x,this.ctx.translate(F,T),this.ctx.fill(),this.ctx.translate(-F,-T)},p.prototype.resizeImage=function(b,x,F){var T;if(b.width===x&&b.height===F)return b;var R=(T=this.canvas.ownerDocument)!==null&&T!==void 0?T:document,N=R.createElement("canvas");N.width=Math.max(1,x),N.height=Math.max(1,F);var H=N.getContext("2d");return H.drawImage(b,0,0,b.width,b.height,0,0,x,F),N},p.prototype.renderBackgroundImage=function(b){return i(this,void 0,void 0,function(){var x,F,T,R,N,H;return s(this,function(q){switch(q.label){case 0:x=b.styles.backgroundImage.length-1,F=function(ee){var se,de,ke,Oi,$s,Vs,Yt,os,Lt,Be,Oi,$s,Vs,Yt,os,Fe,lt,He,Pe,Ut,ct,Je,Le,St,Lt,it,Oi,Ns,sr,Yt,os,wn,$s,Vs,ho,Aa,_n,uo,fo,Ga,go,Wa;return s(this,function(uA){switch(uA.label){case 0:if(ee.type!==0)return[3,5];se=void 0,de=ee.url,uA.label=1;case 1:return uA.trys.push([1,3,,4]),[4,T.context.cache.match(de)];case 2:return se=uA.sent(),[3,4];case 3:return uA.sent(),T.context.logger.error("Error loading background-image "+de),[3,4];case 4:return se&&(ke=Af(b,x,[se.width,se.height,se.width/se.height]),Oi=ke[0],$s=ke[1],Vs=ke[2],Yt=ke[3],os=ke[4],Lt=T.ctx.createPattern(T.resizeImage(se,Yt,os),"repeat"),T.renderRepeat(Oi,Lt,$s,Vs)),[3,6];case 5:vS(ee)?(Be=Af(b,x,[null,null,null]),Oi=Be[0],$s=Be[1],Vs=Be[2],Yt=Be[3],os=Be[4],Fe=pS(ee.angle,Yt,os),lt=Fe[0],He=Fe[1],Pe=Fe[2],Ut=Fe[3],ct=Fe[4],Je=document.createElement("canvas"),Je.width=Yt,Je.height=os,Le=Je.getContext("2d"),St=Le.createLinearGradient(He,Ut,Pe,ct),My(ee.stops,lt).forEach(function(gl){return St.addColorStop(gl.stop,qi(gl.color))}),Le.fillStyle=St,Le.fillRect(0,0,Yt,os),Yt>0&&os>0&&(Lt=T.ctx.createPattern(Je,"repeat"),T.renderRepeat(Oi,Lt,$s,Vs))):BS(ee)&&(it=Af(b,x,[null,null,null]),Oi=it[0],Ns=it[1],sr=it[2],Yt=it[3],os=it[4],wn=ee.position.length===0?[Uu]:ee.position,$s=ii(wn[0],Yt),Vs=ii(wn[wn.length-1],os),ho=mS(ee,$s,Vs,Yt,os),Aa=ho[0],_n=ho[1],Aa>0&&_n>0&&(uo=T.ctx.createRadialGradient(Ns+$s,sr+Vs,0,Ns+$s,sr+Vs,Aa),My(ee.stops,Aa*2).forEach(function(gl){return uo.addColorStop(gl.stop,qi(gl.color))}),T.path(Oi),T.ctx.fillStyle=uo,Aa!==_n?(fo=b.bounds.left+.5*b.bounds.width,Ga=b.bounds.top+.5*b.bounds.height,go=_n/Aa,Wa=1/go,T.ctx.save(),T.ctx.translate(fo,Ga),T.ctx.transform(1,0,0,go,0,0),T.ctx.translate(-fo,-Ga),T.ctx.fillRect(Ns,Wa*(sr-Ga)+Ga,Yt,os*Wa),T.ctx.restore()):T.ctx.fill())),uA.label=6;case 6:return x--,[2]}})},T=this,R=0,N=b.styles.backgroundImage.slice(0).reverse(),q.label=1;case 1:return R<N.length?(H=N[R],[5,F(H)]):[3,4];case 2:q.sent(),q.label=3;case 3:return R++,[3,1];case 4:return[2]}})})},p.prototype.renderSolidBorder=function(b,x,F){return i(this,void 0,void 0,function(){return s(this,function(T){return this.path(G0(F,x)),this.ctx.fillStyle=qi(b),this.ctx.fill(),[2]})})},p.prototype.renderDoubleBorder=function(b,x,F,T){return i(this,void 0,void 0,function(){var R,N;return s(this,function(H){switch(H.label){case 0:return x<3?[4,this.renderSolidBorder(b,F,T)]:[3,2];case 1:return H.sent(),[2];case 2:return R=_T(T,F),this.path(R),this.ctx.fillStyle=qi(b),this.ctx.fill(),N=FT(T,F),this.path(N),this.ctx.fill(),[2]}})})},p.prototype.renderNodeBackgroundAndBorders=function(b){return i(this,void 0,void 0,function(){var x,F,T,R,N,H,q,ee,se=this;return s(this,function(de){switch(de.label){case 0:return this.applyEffects(b.getEffects(2)),x=b.container.styles,F=!bn(x.backgroundColor)||x.backgroundImage.length,T=[{style:x.borderTopStyle,color:x.borderTopColor,width:x.borderTopWidth},{style:x.borderRightStyle,color:x.borderRightColor,width:x.borderRightWidth},{style:x.borderBottomStyle,color:x.borderBottomColor,width:x.borderBottomWidth},{style:x.borderLeftStyle,color:x.borderLeftColor,width:x.borderLeftWidth}],R=MT(dA(x.backgroundClip,0),b.curves),F||x.boxShadow.length?(this.ctx.save(),this.path(R),this.ctx.clip(),bn(x.backgroundColor)||(this.ctx.fillStyle=qi(x.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(b.container)]):[3,2];case 1:de.sent(),this.ctx.restore(),x.boxShadow.slice(0).reverse().forEach(function(ke){se.ctx.save();var Be=rh(b.curves),Fe=ke.inset?0:QT,lt=CT(Be,-Fe+(ke.inset?1:-1)*ke.spread.number,(ke.inset?1:-1)*ke.spread.number,ke.spread.number*(ke.inset?-2:2),ke.spread.number*(ke.inset?-2:2));ke.inset?(se.path(Be),se.ctx.clip(),se.mask(lt)):(se.mask(Be),se.ctx.clip(),se.path(lt)),se.ctx.shadowOffsetX=ke.offsetX.number+Fe,se.ctx.shadowOffsetY=ke.offsetY.number,se.ctx.shadowColor=qi(ke.color),se.ctx.shadowBlur=ke.blur.number,se.ctx.fillStyle=ke.inset?qi(ke.color):"rgba(0,0,0,1)",se.ctx.fill(),se.ctx.restore()}),de.label=2;case 2:N=0,H=0,q=T,de.label=3;case 3:return H<q.length?(ee=q[H],ee.style!==0&&!bn(ee.color)&&ee.width>0?ee.style!==2?[3,5]:[4,this.renderDashedDottedBorder(ee.color,ee.width,N,b.curves,2)]:[3,11]):[3,13];case 4:return de.sent(),[3,11];case 5:return ee.style!==3?[3,7]:[4,this.renderDashedDottedBorder(ee.color,ee.width,N,b.curves,3)];case 6:return de.sent(),[3,11];case 7:return ee.style!==4?[3,9]:[4,this.renderDoubleBorder(ee.color,ee.width,N,b.curves)];case 8:return de.sent(),[3,11];case 9:return[4,this.renderSolidBorder(ee.color,N,b.curves)];case 10:de.sent(),de.label=11;case 11:N++,de.label=12;case 12:return H++,[3,3];case 13:return[2]}})})},p.prototype.renderDashedDottedBorder=function(b,x,F,T,R){return i(this,void 0,void 0,function(){var N,H,q,ee,se,de,ke,Be,Fe,lt,He,Pe,Ut,ct,Je,Le,Je,Le;return s(this,function(St){return this.ctx.save(),N=ST(T,F),H=G0(T,F),R===2&&(this.path(H),this.ctx.clip()),xr(H[0])?(q=H[0].start.x,ee=H[0].start.y):(q=H[0].x,ee=H[0].y),xr(H[1])?(se=H[1].end.x,de=H[1].end.y):(se=H[1].x,de=H[1].y),F===0||F===2?ke=Math.abs(q-se):ke=Math.abs(ee-de),this.ctx.beginPath(),R===3?this.formatPath(N):this.formatPath(H.slice(0,2)),Be=x<3?x*3:x*2,Fe=x<3?x*2:x,R===3&&(Be=x,Fe=x),lt=!0,ke<=Be*2?lt=!1:ke<=Be*2+Fe?(He=ke/(2*Be+Fe),Be*=He,Fe*=He):(Pe=Math.floor((ke+Fe)/(Be+Fe)),Ut=(ke-Pe*Be)/(Pe-1),ct=(ke-(Pe+1)*Be)/Pe,Fe=ct<=0||Math.abs(Fe-Ut)<Math.abs(Fe-ct)?Ut:ct),lt&&(R===3?this.ctx.setLineDash([0,Be+Fe]):this.ctx.setLineDash([Be,Fe])),R===3?(this.ctx.lineCap="round",this.ctx.lineWidth=x):this.ctx.lineWidth=x*2+1.1,this.ctx.strokeStyle=qi(b),this.ctx.stroke(),this.ctx.setLineDash([]),R===2&&(xr(H[0])&&(Je=H[3],Le=H[0],this.ctx.beginPath(),this.formatPath([new Se(Je.end.x,Je.end.y),new Se(Le.start.x,Le.start.y)]),this.ctx.stroke()),xr(H[1])&&(Je=H[1],Le=H[2],this.ctx.beginPath(),this.formatPath([new Se(Je.end.x,Je.end.y),new Se(Le.start.x,Le.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},p.prototype.render=function(b){return i(this,void 0,void 0,function(){var x;return s(this,function(F){switch(F.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=qi(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),x=wT(b),[4,this.renderStack(x)];case 1:return F.sent(),this.applyEffects([]),[2,this.canvas]}})})},p})(z0),RT=function(y){return y instanceof x0||y instanceof y0?!0:y instanceof ju&&y.type!==qc&&y.type!==Zc},MT=function(y,p){switch(y){case 0:return rh(p);case 2:return yT(p);default:return ah(p)}},PT=function(y){switch(y){case 1:return"center";case 2:return"right";default:return"left"}},OT=["-apple-system","system-ui"],HT=function(y){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?y.filter(function(p){return OT.indexOf(p)===-1}):y},NT=(function(y){e(p,y);function p(b,x){var F=y.call(this,b,x)||this;return F.canvas=x.canvas?x.canvas:document.createElement("canvas"),F.ctx=F.canvas.getContext("2d"),F.options=x,F.canvas.width=Math.floor(x.width*x.scale),F.canvas.height=Math.floor(x.height*x.scale),F.canvas.style.width=x.width+"px",F.canvas.style.height=x.height+"px",F.ctx.scale(F.options.scale,F.options.scale),F.ctx.translate(-x.x,-x.y),F.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+x.width+"x"+x.height+" at "+x.x+","+x.y+") with scale "+x.scale),F}return p.prototype.render=function(b){return i(this,void 0,void 0,function(){var x,F;return s(this,function(T){switch(T.label){case 0:return x=Wu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,b),[4,$T(x)];case 1:return F=T.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=qi(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(F,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},p})(z0),$T=function(y){return new Promise(function(p,b){var x=new Image;x.onload=function(){p(x)},x.onerror=b,x.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(y))})},VT=(function(){function y(p){var b=p.id,x=p.enabled;this.id=b,this.enabled=x,this.start=Date.now()}return y.prototype.debug=function(){for(var p=[],b=0;b<arguments.length;b++)p[b]=arguments[b];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,a([this.id,this.getTime()+"ms"],p)):this.info.apply(this,p))},y.prototype.getTime=function(){return Date.now()-this.start},y.prototype.info=function(){for(var p=[],b=0;b<arguments.length;b++)p[b]=arguments[b];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,a([this.id,this.getTime()+"ms"],p))},y.prototype.warn=function(){for(var p=[],b=0;b<arguments.length;b++)p[b]=arguments[b];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,a([this.id,this.getTime()+"ms"],p)):this.info.apply(this,p))},y.prototype.error=function(){for(var p=[],b=0;b<arguments.length;b++)p[b]=arguments[b];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,a([this.id,this.getTime()+"ms"],p)):this.info.apply(this,p))},y.instances={},y})(),XT=(function(){function y(p,b){var x;this.windowBounds=b,this.instanceName="#"+y.instanceCount++,this.logger=new VT({id:this.instanceName,enabled:p.logging}),this.cache=(x=p.cache)!==null&&x!==void 0?x:new cT(this,p)}return y.instanceCount=1,y})(),KT=function(y,p){return p===void 0&&(p={}),GT(y,p)};typeof window<"u"&&H0.setContext(window);var GT=function(y,p){return i(void 0,void 0,void 0,function(){var b,x,F,T,R,N,H,q,ee,se,de,ke,Be,Fe,lt,He,Pe,Ut,ct,Je,St,Le,St,Lt,it,Oi,Ns,sr,Yt,os,wn,$s,Vs,ho,Aa,_n,uo,fo,Ga,go;return s(this,function(Wa){switch(Wa.label){case 0:if(!y||typeof y!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(b=y.ownerDocument,!b)throw new Error("Element is not attached to a Document");if(x=b.defaultView,!x)throw new Error("Document is not attached to a Window");return F={allowTaint:(Lt=p.allowTaint)!==null&&Lt!==void 0?Lt:!1,imageTimeout:(it=p.imageTimeout)!==null&&it!==void 0?it:15e3,proxy:p.proxy,useCORS:(Oi=p.useCORS)!==null&&Oi!==void 0?Oi:!1},T=t({logging:(Ns=p.logging)!==null&&Ns!==void 0?Ns:!0,cache:p.cache},F),R={windowWidth:(sr=p.windowWidth)!==null&&sr!==void 0?sr:x.innerWidth,windowHeight:(Yt=p.windowHeight)!==null&&Yt!==void 0?Yt:x.innerHeight,scrollX:(os=p.scrollX)!==null&&os!==void 0?os:x.pageXOffset,scrollY:(wn=p.scrollY)!==null&&wn!==void 0?wn:x.pageYOffset},N=new n(R.scrollX,R.scrollY,R.windowWidth,R.windowHeight),H=new XT(T,N),q=($s=p.foreignObjectRendering)!==null&&$s!==void 0?$s:!1,ee={allowTaint:(Vs=p.allowTaint)!==null&&Vs!==void 0?Vs:!1,onclone:p.onclone,ignoreElements:p.ignoreElements,inlineImages:q,copyStyles:q},H.logger.debug("Starting document clone with size "+N.width+"x"+N.height+" scrolled to "+-N.left+","+-N.top),se=new P0(H,y,ee),de=se.clonedReferenceElement,de?[4,se.toIFrame(b,N)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return ke=Wa.sent(),Be=qu(de)||WL(de)?A(de.ownerDocument):o(H,de),Fe=Be.width,lt=Be.height,He=Be.left,Pe=Be.top,Ut=WT(H,de,p.backgroundColor),ct={canvas:p.canvas,backgroundColor:Ut,scale:(Aa=(ho=p.scale)!==null&&ho!==void 0?ho:x.devicePixelRatio)!==null&&Aa!==void 0?Aa:1,x:((_n=p.x)!==null&&_n!==void 0?_n:0)+He,y:((uo=p.y)!==null&&uo!==void 0?uo:0)+Pe,width:(fo=p.width)!==null&&fo!==void 0?fo:Math.ceil(Fe),height:(Ga=p.height)!==null&&Ga!==void 0?Ga:Math.ceil(lt)},q?(H.logger.debug("Document cloned, using foreign object rendering"),St=new NT(H,ct),[4,St.render(de)]):[3,3];case 2:return Je=Wa.sent(),[3,5];case 3:return H.logger.debug("Document cloned, element located at "+He+","+Pe+" with size "+Fe+"x"+lt+" using computed rendering"),H.logger.debug("Starting DOM parsing"),Le=B0(H,de),Ut===Le.styles.backgroundColor&&(Le.styles.backgroundColor=Xa.TRANSPARENT),H.logger.debug("Starting renderer for element at "+ct.x+","+ct.y+" with size "+ct.width+"x"+ct.height),St=new ET(H,ct),[4,St.render(Le)];case 4:Je=Wa.sent(),Wa.label=5;case 5:return(!((go=p.removeContainer)!==null&&go!==void 0)||go)&&(P0.destroy(ke)||H.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),H.logger.debug("Finished rendering"),[2,Je]}})})},WT=function(y,p,b){var x=p.ownerDocument,F=x.documentElement?Al(y,getComputedStyle(x.documentElement).backgroundColor):Xa.TRANSPARENT,T=x.body?Al(y,getComputedStyle(x.body).backgroundColor):Xa.TRANSPARENT,R=typeof b=="string"?Al(y,b):b===null?Xa.TRANSPARENT:4294967295;return p===x.documentElement?bn(F)?bn(T)?R:T:F:R};return KT}))});var yv=j0((mv,wg)=>{(function(r){typeof mv=="object"&&typeof wg<"u"?wg.exports=r():typeof define=="function"&&define.amd?define([],r):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).JSZip=r()})(function(){return(function r(e,t,i){function s(o,A){if(!t[o]){if(!e[o]){var l=typeof pl=="function"&&pl;if(!A&&l)return l(o,!0);if(a)return a(o,!0);var h=new Error("Cannot find module '"+o+"'");throw h.code="MODULE_NOT_FOUND",h}var c=t[o]={exports:{}};e[o][0].call(c.exports,function(d){var u=e[o][1][d];return s(u||d)},c,c.exports,r,e,t,i)}return t[o].exports}for(var a=typeof pl=="function"&&pl,n=0;n<i.length;n++)s(i[n]);return s})({1:[function(r,e,t){"use strict";var i=r("./utils"),s=r("./support"),a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.encode=function(n){for(var o,A,l,h,c,d,u,f=[],m=0,g=n.length,v=g,B=i.getTypeOf(n)!=="string";m<n.length;)v=g-m,l=B?(o=n[m++],A=m<g?n[m++]:0,m<g?n[m++]:0):(o=n.charCodeAt(m++),A=m<g?n.charCodeAt(m++):0,m<g?n.charCodeAt(m++):0),h=o>>2,c=(3&o)<<4|A>>4,d=1<v?(15&A)<<2|l>>6:64,u=2<v?63&l:64,f.push(a.charAt(h)+a.charAt(c)+a.charAt(d)+a.charAt(u));return f.join("")},t.decode=function(n){var o,A,l,h,c,d,u=0,f=0,m="data:";if(n.substr(0,m.length)===m)throw new Error("Invalid base64 input, it looks like a data url.");var g,v=3*(n=n.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(n.charAt(n.length-1)===a.charAt(64)&&v--,n.charAt(n.length-2)===a.charAt(64)&&v--,v%1!=0)throw new Error("Invalid base64 input, bad content length.");for(g=s.uint8array?new Uint8Array(0|v):new Array(0|v);u<n.length;)o=a.indexOf(n.charAt(u++))<<2|(h=a.indexOf(n.charAt(u++)))>>4,A=(15&h)<<4|(c=a.indexOf(n.charAt(u++)))>>2,l=(3&c)<<6|(d=a.indexOf(n.charAt(u++))),g[f++]=o,c!==64&&(g[f++]=A),d!==64&&(g[f++]=l);return g}},{"./support":30,"./utils":32}],2:[function(r,e,t){"use strict";var i=r("./external"),s=r("./stream/DataWorker"),a=r("./stream/Crc32Probe"),n=r("./stream/DataLengthProbe");function o(A,l,h,c,d){this.compressedSize=A,this.uncompressedSize=l,this.crc32=h,this.compression=c,this.compressedContent=d}o.prototype={getContentWorker:function(){var A=new s(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new n("data_length")),l=this;return A.on("end",function(){if(this.streamInfo.data_length!==l.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),A},getCompressedWorker:function(){return new s(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},o.createWorkerFrom=function(A,l,h){return A.pipe(new a).pipe(new n("uncompressedSize")).pipe(l.compressWorker(h)).pipe(new n("compressedSize")).withStreamInfo("compression",l)},e.exports=o},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(r,e,t){"use strict";var i=r("./stream/GenericWorker");t.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},t.DEFLATE=r("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(r,e,t){"use strict";var i=r("./utils"),s=(function(){for(var a,n=[],o=0;o<256;o++){a=o;for(var A=0;A<8;A++)a=1&a?3988292384^a>>>1:a>>>1;n[o]=a}return n})();e.exports=function(a,n){return a!==void 0&&a.length?i.getTypeOf(a)!=="string"?(function(o,A,l,h){var c=s,d=h+l;o^=-1;for(var u=h;u<d;u++)o=o>>>8^c[255&(o^A[u])];return-1^o})(0|n,a,a.length,0):(function(o,A,l,h){var c=s,d=h+l;o^=-1;for(var u=h;u<d;u++)o=o>>>8^c[255&(o^A.charCodeAt(u))];return-1^o})(0|n,a,a.length,0):0}},{"./utils":32}],5:[function(r,e,t){"use strict";t.base64=!1,t.binary=!1,t.dir=!1,t.createFolders=!0,t.date=null,t.compression=null,t.compressionOptions=null,t.comment=null,t.unixPermissions=null,t.dosPermissions=null},{}],6:[function(r,e,t){"use strict";var i=null;i=typeof Promise<"u"?Promise:r("lie"),e.exports={Promise:i}},{lie:37}],7:[function(r,e,t){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",s=r("pako"),a=r("./utils"),n=r("./stream/GenericWorker"),o=i?"uint8array":"array";function A(l,h){n.call(this,"FlateWorker/"+l),this._pako=null,this._pakoAction=l,this._pakoOptions=h,this.meta={}}t.magic="\b\0",a.inherits(A,n),A.prototype.processChunk=function(l){this.meta=l.meta,this._pako===null&&this._createPako(),this._pako.push(a.transformTo(o,l.data),!1)},A.prototype.flush=function(){n.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},A.prototype.cleanUp=function(){n.prototype.cleanUp.call(this),this._pako=null},A.prototype._createPako=function(){this._pako=new s[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var l=this;this._pako.onData=function(h){l.push({data:h,meta:l.meta})}},t.compressWorker=function(l){return new A("Deflate",l)},t.uncompressWorker=function(){return new A("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(r,e,t){"use strict";function i(c,d){var u,f="";for(u=0;u<d;u++)f+=String.fromCharCode(255&c),c>>>=8;return f}function s(c,d,u,f,m,g){var v,B,w=c.file,_=c.compression,L=g!==o.utf8encode,k=a.transformTo("string",g(w.name)),D=a.transformTo("string",o.utf8encode(w.name)),E=w.comment,O=a.transformTo("string",g(E)),I=a.transformTo("string",o.utf8encode(E)),M=D.length!==w.name.length,S=I.length!==E.length,P="",Y="",G="",ie=w.dir,J=w.date,ne={crc32:0,compressedSize:0,uncompressedSize:0};d&&!u||(ne.crc32=c.crc32,ne.compressedSize=c.compressedSize,ne.uncompressedSize=c.uncompressedSize);var z=0;d&&(z|=8),L||!M&&!S||(z|=2048);var K=0,ge=0;ie&&(K|=16),m==="UNIX"?(ge=798,K|=(function(re,Me){var Ne=re;return re||(Ne=Me?16893:33204),(65535&Ne)<<16})(w.unixPermissions,ie)):(ge=20,K|=(function(re){return 63&(re||0)})(w.dosPermissions)),v=J.getUTCHours(),v<<=6,v|=J.getUTCMinutes(),v<<=5,v|=J.getUTCSeconds()/2,B=J.getUTCFullYear()-1980,B<<=4,B|=J.getUTCMonth()+1,B<<=5,B|=J.getUTCDate(),M&&(Y=i(1,1)+i(A(k),4)+D,P+="up"+i(Y.length,2)+Y),S&&(G=i(1,1)+i(A(O),4)+I,P+="uc"+i(G.length,2)+G);var he="";return he+=`
|
|
7
|
+
\0`,he+=i(z,2),he+=_.magic,he+=i(v,2),he+=i(B,2),he+=i(ne.crc32,4),he+=i(ne.compressedSize,4),he+=i(ne.uncompressedSize,4),he+=i(k.length,2),he+=i(P.length,2),{fileRecord:l.LOCAL_FILE_HEADER+he+k+P,dirRecord:l.CENTRAL_FILE_HEADER+i(ge,2)+he+i(O.length,2)+"\0\0\0\0"+i(K,4)+i(f,4)+k+P+O}}var a=r("../utils"),n=r("../stream/GenericWorker"),o=r("../utf8"),A=r("../crc32"),l=r("../signature");function h(c,d,u,f){n.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=d,this.zipPlatform=u,this.encodeFileName=f,this.streamFiles=c,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}a.inherits(h,n),h.prototype.push=function(c){var d=c.meta.percent||0,u=this.entriesCount,f=this._sources.length;this.accumulate?this.contentBuffer.push(c):(this.bytesWritten+=c.data.length,n.prototype.push.call(this,{data:c.data,meta:{currentFile:this.currentFile,percent:u?(d+100*(u-f-1))/u:100}}))},h.prototype.openedSource=function(c){this.currentSourceOffset=this.bytesWritten,this.currentFile=c.file.name;var d=this.streamFiles&&!c.file.dir;if(d){var u=s(c,d,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:u.fileRecord,meta:{percent:0}})}else this.accumulate=!0},h.prototype.closedSource=function(c){this.accumulate=!1;var d=this.streamFiles&&!c.file.dir,u=s(c,d,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(u.dirRecord),d)this.push({data:(function(f){return l.DATA_DESCRIPTOR+i(f.crc32,4)+i(f.compressedSize,4)+i(f.uncompressedSize,4)})(c),meta:{percent:100}});else for(this.push({data:u.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},h.prototype.flush=function(){for(var c=this.bytesWritten,d=0;d<this.dirRecords.length;d++)this.push({data:this.dirRecords[d],meta:{percent:100}});var u=this.bytesWritten-c,f=(function(m,g,v,B,w){var _=a.transformTo("string",w(B));return l.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(m,2)+i(m,2)+i(g,4)+i(v,4)+i(_.length,2)+_})(this.dirRecords.length,u,c,this.zipComment,this.encodeFileName);this.push({data:f,meta:{percent:100}})},h.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},h.prototype.registerPrevious=function(c){this._sources.push(c);var d=this;return c.on("data",function(u){d.processChunk(u)}),c.on("end",function(){d.closedSource(d.previous.streamInfo),d._sources.length?d.prepareNextSource():d.end()}),c.on("error",function(u){d.error(u)}),this},h.prototype.resume=function(){return!!n.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},h.prototype.error=function(c){var d=this._sources;if(!n.prototype.error.call(this,c))return!1;for(var u=0;u<d.length;u++)try{d[u].error(c)}catch{}return!0},h.prototype.lock=function(){n.prototype.lock.call(this);for(var c=this._sources,d=0;d<c.length;d++)c[d].lock()},e.exports=h},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(r,e,t){"use strict";var i=r("../compressions"),s=r("./ZipFileWorker");t.generateWorker=function(a,n,o){var A=new s(n.streamFiles,o,n.platform,n.encodeFileName),l=0;try{a.forEach(function(h,c){l++;var d=(function(g,v){var B=g||v,w=i[B];if(!w)throw new Error(B+" is not a valid compression method !");return w})(c.options.compression,n.compression),u=c.options.compressionOptions||n.compressionOptions||{},f=c.dir,m=c.date;c._compressWorker(d,u).withStreamInfo("file",{name:h,dir:f,date:m,comment:c.comment||"",unixPermissions:c.unixPermissions,dosPermissions:c.dosPermissions}).pipe(A)}),A.entriesCount=l}catch(h){A.error(h)}return A}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(r,e,t){"use strict";function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var s=new i;for(var a in this)typeof this[a]!="function"&&(s[a]=this[a]);return s}}(i.prototype=r("./object")).loadAsync=r("./load"),i.support=r("./support"),i.defaults=r("./defaults"),i.version="3.10.1",i.loadAsync=function(s,a){return new i().loadAsync(s,a)},i.external=r("./external"),e.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(r,e,t){"use strict";var i=r("./utils"),s=r("./external"),a=r("./utf8"),n=r("./zipEntries"),o=r("./stream/Crc32Probe"),A=r("./nodejsUtils");function l(h){return new s.Promise(function(c,d){var u=h.decompressed.getContentWorker().pipe(new o);u.on("error",function(f){d(f)}).on("end",function(){u.streamInfo.crc32!==h.decompressed.crc32?d(new Error("Corrupted zip : CRC32 mismatch")):c()}).resume()})}e.exports=function(h,c){var d=this;return c=i.extend(c||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:a.utf8decode}),A.isNode&&A.isStream(h)?s.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",h,!0,c.optimizedBinaryString,c.base64).then(function(u){var f=new n(c);return f.load(u),f}).then(function(u){var f=[s.Promise.resolve(u)],m=u.files;if(c.checkCRC32)for(var g=0;g<m.length;g++)f.push(l(m[g]));return s.Promise.all(f)}).then(function(u){for(var f=u.shift(),m=f.files,g=0;g<m.length;g++){var v=m[g],B=v.fileNameStr,w=i.resolve(v.fileNameStr);d.file(w,v.decompressed,{binary:!0,optimizedBinaryString:!0,date:v.date,dir:v.dir,comment:v.fileCommentStr.length?v.fileCommentStr:null,unixPermissions:v.unixPermissions,dosPermissions:v.dosPermissions,createFolders:c.createFolders}),v.dir||(d.file(w).unsafeOriginalName=B)}return f.zipComment.length&&(d.comment=f.zipComment),d})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(r,e,t){"use strict";var i=r("../utils"),s=r("../stream/GenericWorker");function a(n,o){s.call(this,"Nodejs stream input adapter for "+n),this._upstreamEnded=!1,this._bindStream(o)}i.inherits(a,s),a.prototype._bindStream=function(n){var o=this;(this._stream=n).pause(),n.on("data",function(A){o.push({data:A,meta:{percent:0}})}).on("error",function(A){o.isPaused?this.generatedError=A:o.error(A)}).on("end",function(){o.isPaused?o._upstreamEnded=!0:o.end()})},a.prototype.pause=function(){return!!s.prototype.pause.call(this)&&(this._stream.pause(),!0)},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},e.exports=a},{"../stream/GenericWorker":28,"../utils":32}],13:[function(r,e,t){"use strict";var i=r("readable-stream").Readable;function s(a,n,o){i.call(this,n),this._helper=a;var A=this;a.on("data",function(l,h){A.push(l)||A._helper.pause(),o&&o(h)}).on("error",function(l){A.emit("error",l)}).on("end",function(){A.push(null)})}r("../utils").inherits(s,i),s.prototype._read=function(){this._helper.resume()},e.exports=s},{"../utils":32,"readable-stream":16}],14:[function(r,e,t){"use strict";e.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,s){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,s);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,s)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var s=new Buffer(i);return s.fill(0),s},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(r,e,t){"use strict";function i(w,_,L){var k,D=a.getTypeOf(_),E=a.extend(L||{},A);E.date=E.date||new Date,E.compression!==null&&(E.compression=E.compression.toUpperCase()),typeof E.unixPermissions=="string"&&(E.unixPermissions=parseInt(E.unixPermissions,8)),E.unixPermissions&&16384&E.unixPermissions&&(E.dir=!0),E.dosPermissions&&16&E.dosPermissions&&(E.dir=!0),E.dir&&(w=m(w)),E.createFolders&&(k=f(w))&&g.call(this,k,!0);var O=D==="string"&&E.binary===!1&&E.base64===!1;L&&L.binary!==void 0||(E.binary=!O),(_ instanceof l&&_.uncompressedSize===0||E.dir||!_||_.length===0)&&(E.base64=!1,E.binary=!0,_="",E.compression="STORE",D="string");var I=null;I=_ instanceof l||_ instanceof n?_:d.isNode&&d.isStream(_)?new u(w,_):a.prepareContent(w,_,E.binary,E.optimizedBinaryString,E.base64);var M=new h(w,I,E);this.files[w]=M}var s=r("./utf8"),a=r("./utils"),n=r("./stream/GenericWorker"),o=r("./stream/StreamHelper"),A=r("./defaults"),l=r("./compressedObject"),h=r("./zipObject"),c=r("./generate"),d=r("./nodejsUtils"),u=r("./nodejs/NodejsStreamInputAdapter"),f=function(w){w.slice(-1)==="/"&&(w=w.substring(0,w.length-1));var _=w.lastIndexOf("/");return 0<_?w.substring(0,_):""},m=function(w){return w.slice(-1)!=="/"&&(w+="/"),w},g=function(w,_){return _=_!==void 0?_:A.createFolders,w=m(w),this.files[w]||i.call(this,w,null,{dir:!0,createFolders:_}),this.files[w]};function v(w){return Object.prototype.toString.call(w)==="[object RegExp]"}var B={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(w){var _,L,k;for(_ in this.files)k=this.files[_],(L=_.slice(this.root.length,_.length))&&_.slice(0,this.root.length)===this.root&&w(L,k)},filter:function(w){var _=[];return this.forEach(function(L,k){w(L,k)&&_.push(k)}),_},file:function(w,_,L){if(arguments.length!==1)return w=this.root+w,i.call(this,w,_,L),this;if(v(w)){var k=w;return this.filter(function(E,O){return!O.dir&&k.test(E)})}var D=this.files[this.root+w];return D&&!D.dir?D:null},folder:function(w){if(!w)return this;if(v(w))return this.filter(function(D,E){return E.dir&&w.test(D)});var _=this.root+w,L=g.call(this,_),k=this.clone();return k.root=L.name,k},remove:function(w){w=this.root+w;var _=this.files[w];if(_||(w.slice(-1)!=="/"&&(w+="/"),_=this.files[w]),_&&!_.dir)delete this.files[w];else for(var L=this.filter(function(D,E){return E.name.slice(0,w.length)===w}),k=0;k<L.length;k++)delete this.files[L[k].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(w){var _,L={};try{if((L=a.extend(w||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:s.utf8encode})).type=L.type.toLowerCase(),L.compression=L.compression.toUpperCase(),L.type==="binarystring"&&(L.type="string"),!L.type)throw new Error("No output type specified.");a.checkSupport(L.type),L.platform!=="darwin"&&L.platform!=="freebsd"&&L.platform!=="linux"&&L.platform!=="sunos"||(L.platform="UNIX"),L.platform==="win32"&&(L.platform="DOS");var k=L.comment||this.comment||"";_=c.generateWorker(this,L,k)}catch(D){(_=new n("error")).error(D)}return new o(_,L.type||"string",L.mimeType)},generateAsync:function(w,_){return this.generateInternalStream(w).accumulate(_)},generateNodeStream:function(w,_){return(w=w||{}).type||(w.type="nodebuffer"),this.generateInternalStream(w).toNodejsStream(_)}};e.exports=B},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(r,e,t){"use strict";e.exports=r("stream")},{stream:void 0}],17:[function(r,e,t){"use strict";var i=r("./DataReader");function s(a){i.call(this,a);for(var n=0;n<this.data.length;n++)a[n]=255&a[n]}r("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data[this.zero+a]},s.prototype.lastIndexOfSignature=function(a){for(var n=a.charCodeAt(0),o=a.charCodeAt(1),A=a.charCodeAt(2),l=a.charCodeAt(3),h=this.length-4;0<=h;--h)if(this.data[h]===n&&this.data[h+1]===o&&this.data[h+2]===A&&this.data[h+3]===l)return h-this.zero;return-1},s.prototype.readAndCheckSignature=function(a){var n=a.charCodeAt(0),o=a.charCodeAt(1),A=a.charCodeAt(2),l=a.charCodeAt(3),h=this.readData(4);return n===h[0]&&o===h[1]&&A===h[2]&&l===h[3]},s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return[];var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},e.exports=s},{"../utils":32,"./DataReader":18}],18:[function(r,e,t){"use strict";var i=r("../utils");function s(a){this.data=a,this.length=a.length,this.index=0,this.zero=0}s.prototype={checkOffset:function(a){this.checkIndex(this.index+a)},checkIndex:function(a){if(this.length<this.zero+a||a<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+a+"). Corrupted zip ?")},setIndex:function(a){this.checkIndex(a),this.index=a},skip:function(a){this.setIndex(this.index+a)},byteAt:function(){},readInt:function(a){var n,o=0;for(this.checkOffset(a),n=this.index+a-1;n>=this.index;n--)o=(o<<8)+this.byteAt(n);return this.index+=a,o},readString:function(a){return i.transformTo("string",this.readData(a))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var a=this.readInt(4);return new Date(Date.UTC(1980+(a>>25&127),(a>>21&15)-1,a>>16&31,a>>11&31,a>>5&63,(31&a)<<1))}},e.exports=s},{"../utils":32}],19:[function(r,e,t){"use strict";var i=r("./Uint8ArrayReader");function s(a){i.call(this,a)}r("../utils").inherits(s,i),s.prototype.readData=function(a){this.checkOffset(a);var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},e.exports=s},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(r,e,t){"use strict";var i=r("./DataReader");function s(a){i.call(this,a)}r("../utils").inherits(s,i),s.prototype.byteAt=function(a){return this.data.charCodeAt(this.zero+a)},s.prototype.lastIndexOfSignature=function(a){return this.data.lastIndexOf(a)-this.zero},s.prototype.readAndCheckSignature=function(a){return a===this.readData(4)},s.prototype.readData=function(a){this.checkOffset(a);var n=this.data.slice(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},e.exports=s},{"../utils":32,"./DataReader":18}],21:[function(r,e,t){"use strict";var i=r("./ArrayReader");function s(a){i.call(this,a)}r("../utils").inherits(s,i),s.prototype.readData=function(a){if(this.checkOffset(a),a===0)return new Uint8Array(0);var n=this.data.subarray(this.zero+this.index,this.zero+this.index+a);return this.index+=a,n},e.exports=s},{"../utils":32,"./ArrayReader":17}],22:[function(r,e,t){"use strict";var i=r("../utils"),s=r("../support"),a=r("./ArrayReader"),n=r("./StringReader"),o=r("./NodeBufferReader"),A=r("./Uint8ArrayReader");e.exports=function(l){var h=i.getTypeOf(l);return i.checkSupport(h),h!=="string"||s.uint8array?h==="nodebuffer"?new o(l):s.uint8array?new A(i.transformTo("uint8array",l)):new a(i.transformTo("array",l)):new n(l)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(r,e,t){"use strict";t.LOCAL_FILE_HEADER="PK",t.CENTRAL_FILE_HEADER="PK",t.CENTRAL_DIRECTORY_END="PK",t.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",t.ZIP64_CENTRAL_DIRECTORY_END="PK",t.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(r,e,t){"use strict";var i=r("./GenericWorker"),s=r("../utils");function a(n){i.call(this,"ConvertWorker to "+n),this.destType=n}s.inherits(a,i),a.prototype.processChunk=function(n){this.push({data:s.transformTo(this.destType,n.data),meta:n.meta})},e.exports=a},{"../utils":32,"./GenericWorker":28}],25:[function(r,e,t){"use strict";var i=r("./GenericWorker"),s=r("../crc32");function a(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}r("../utils").inherits(a,i),a.prototype.processChunk=function(n){this.streamInfo.crc32=s(n.data,this.streamInfo.crc32||0),this.push(n)},e.exports=a},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(r,e,t){"use strict";var i=r("../utils"),s=r("./GenericWorker");function a(n){s.call(this,"DataLengthProbe for "+n),this.propName=n,this.withStreamInfo(n,0)}i.inherits(a,s),a.prototype.processChunk=function(n){if(n){var o=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=o+n.data.length}s.prototype.processChunk.call(this,n)},e.exports=a},{"../utils":32,"./GenericWorker":28}],27:[function(r,e,t){"use strict";var i=r("../utils"),s=r("./GenericWorker");function a(n){s.call(this,"DataWorker");var o=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,n.then(function(A){o.dataIsReady=!0,o.data=A,o.max=A&&A.length||0,o.type=i.getTypeOf(A),o.isPaused||o._tickAndRepeat()},function(A){o.error(A)})}i.inherits(a,s),a.prototype.cleanUp=function(){s.prototype.cleanUp.call(this),this.data=null},a.prototype.resume=function(){return!!s.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},a.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},a.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var n=null,o=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":n=this.data.substring(this.index,o);break;case"uint8array":n=this.data.subarray(this.index,o);break;case"array":case"nodebuffer":n=this.data.slice(this.index,o)}return this.index=o,this.push({data:n,meta:{percent:this.max?this.index/this.max*100:0}})},e.exports=a},{"../utils":32,"./GenericWorker":28}],28:[function(r,e,t){"use strict";function i(s){this.name=s||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(s){this.emit("data",s)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(s){this.emit("error",s)}return!0},error:function(s){return!this.isFinished&&(this.isPaused?this.generatedError=s:(this.isFinished=!0,this.emit("error",s),this.previous&&this.previous.error(s),this.cleanUp()),!0)},on:function(s,a){return this._listeners[s].push(a),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(s,a){if(this._listeners[s])for(var n=0;n<this._listeners[s].length;n++)this._listeners[s][n].call(this,a)},pipe:function(s){return s.registerPrevious(this)},registerPrevious:function(s){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=s.streamInfo,this.mergeStreamInfo(),this.previous=s;var a=this;return s.on("data",function(n){a.processChunk(n)}),s.on("end",function(){a.end()}),s.on("error",function(n){a.error(n)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var s=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),s=!0),this.previous&&this.previous.resume(),!s},flush:function(){},processChunk:function(s){this.push(s)},withStreamInfo:function(s,a){return this.extraStreamInfo[s]=a,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var s in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,s)&&(this.streamInfo[s]=this.extraStreamInfo[s])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var s="Worker "+this.name;return this.previous?this.previous+" -> "+s:s}},e.exports=i},{}],29:[function(r,e,t){"use strict";var i=r("../utils"),s=r("./ConvertWorker"),a=r("./GenericWorker"),n=r("../base64"),o=r("../support"),A=r("../external"),l=null;if(o.nodestream)try{l=r("../nodejs/NodejsStreamOutputAdapter")}catch{}function h(d,u){return new A.Promise(function(f,m){var g=[],v=d._internalType,B=d._outputType,w=d._mimeType;d.on("data",function(_,L){g.push(_),u&&u(L)}).on("error",function(_){g=[],m(_)}).on("end",function(){try{var _=(function(L,k,D){switch(L){case"blob":return i.newBlob(i.transformTo("arraybuffer",k),D);case"base64":return n.encode(k);default:return i.transformTo(L,k)}})(B,(function(L,k){var D,E=0,O=null,I=0;for(D=0;D<k.length;D++)I+=k[D].length;switch(L){case"string":return k.join("");case"array":return Array.prototype.concat.apply([],k);case"uint8array":for(O=new Uint8Array(I),D=0;D<k.length;D++)O.set(k[D],E),E+=k[D].length;return O;case"nodebuffer":return Buffer.concat(k);default:throw new Error("concat : unsupported type '"+L+"'")}})(v,g),w);f(_)}catch(L){m(L)}g=[]}).resume()})}function c(d,u,f){var m=u;switch(u){case"blob":case"arraybuffer":m="uint8array";break;case"base64":m="string"}try{this._internalType=m,this._outputType=u,this._mimeType=f,i.checkSupport(m),this._worker=d.pipe(new s(m)),d.lock()}catch(g){this._worker=new a("error"),this._worker.error(g)}}c.prototype={accumulate:function(d){return h(this,d)},on:function(d,u){var f=this;return d==="data"?this._worker.on(d,function(m){u.call(f,m.data,m.meta)}):this._worker.on(d,function(){i.delay(u,arguments,f)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(d){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new l(this,{objectMode:this._outputType!=="nodebuffer"},d)}},e.exports=c},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(r,e,t){"use strict";if(t.base64=!0,t.array=!0,t.string=!0,t.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",t.nodebuffer=typeof Buffer<"u",t.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")t.blob=!1;else{var i=new ArrayBuffer(0);try{t.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var s=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);s.append(i),t.blob=s.getBlob("application/zip").size===0}catch{t.blob=!1}}}try{t.nodestream=!!r("readable-stream").Readable}catch{t.nodestream=!1}},{"readable-stream":16}],31:[function(r,e,t){"use strict";for(var i=r("./utils"),s=r("./support"),a=r("./nodejsUtils"),n=r("./stream/GenericWorker"),o=new Array(256),A=0;A<256;A++)o[A]=252<=A?6:248<=A?5:240<=A?4:224<=A?3:192<=A?2:1;o[254]=o[254]=1;function l(){n.call(this,"utf-8 decode"),this.leftOver=null}function h(){n.call(this,"utf-8 encode")}t.utf8encode=function(c){return s.nodebuffer?a.newBufferFrom(c,"utf-8"):(function(d){var u,f,m,g,v,B=d.length,w=0;for(g=0;g<B;g++)(64512&(f=d.charCodeAt(g)))==55296&&g+1<B&&(64512&(m=d.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),w+=f<128?1:f<2048?2:f<65536?3:4;for(u=s.uint8array?new Uint8Array(w):new Array(w),g=v=0;v<w;g++)(64512&(f=d.charCodeAt(g)))==55296&&g+1<B&&(64512&(m=d.charCodeAt(g+1)))==56320&&(f=65536+(f-55296<<10)+(m-56320),g++),f<128?u[v++]=f:(f<2048?u[v++]=192|f>>>6:(f<65536?u[v++]=224|f>>>12:(u[v++]=240|f>>>18,u[v++]=128|f>>>12&63),u[v++]=128|f>>>6&63),u[v++]=128|63&f);return u})(c)},t.utf8decode=function(c){return s.nodebuffer?i.transformTo("nodebuffer",c).toString("utf-8"):(function(d){var u,f,m,g,v=d.length,B=new Array(2*v);for(u=f=0;u<v;)if((m=d[u++])<128)B[f++]=m;else if(4<(g=o[m]))B[f++]=65533,u+=g-1;else{for(m&=g===2?31:g===3?15:7;1<g&&u<v;)m=m<<6|63&d[u++],g--;1<g?B[f++]=65533:m<65536?B[f++]=m:(m-=65536,B[f++]=55296|m>>10&1023,B[f++]=56320|1023&m)}return B.length!==f&&(B.subarray?B=B.subarray(0,f):B.length=f),i.applyFromCharCode(B)})(c=i.transformTo(s.uint8array?"uint8array":"array",c))},i.inherits(l,n),l.prototype.processChunk=function(c){var d=i.transformTo(s.uint8array?"uint8array":"array",c.data);if(this.leftOver&&this.leftOver.length){if(s.uint8array){var u=d;(d=new Uint8Array(u.length+this.leftOver.length)).set(this.leftOver,0),d.set(u,this.leftOver.length)}else d=this.leftOver.concat(d);this.leftOver=null}var f=(function(g,v){var B;for((v=v||g.length)>g.length&&(v=g.length),B=v-1;0<=B&&(192&g[B])==128;)B--;return B<0||B===0?v:B+o[g[B]]>v?B:v})(d),m=d;f!==d.length&&(s.uint8array?(m=d.subarray(0,f),this.leftOver=d.subarray(f,d.length)):(m=d.slice(0,f),this.leftOver=d.slice(f,d.length))),this.push({data:t.utf8decode(m),meta:c.meta})},l.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:t.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},t.Utf8DecodeWorker=l,i.inherits(h,n),h.prototype.processChunk=function(c){this.push({data:t.utf8encode(c.data),meta:c.meta})},t.Utf8EncodeWorker=h},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(r,e,t){"use strict";var i=r("./support"),s=r("./base64"),a=r("./nodejsUtils"),n=r("./external");function o(u){return u}function A(u,f){for(var m=0;m<u.length;++m)f[m]=255&u.charCodeAt(m);return f}r("setimmediate"),t.newBlob=function(u,f){t.checkSupport("blob");try{return new Blob([u],{type:f})}catch{try{var m=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return m.append(u),m.getBlob(f)}catch{throw new Error("Bug : can't construct the Blob.")}}};var l={stringifyByChunk:function(u,f,m){var g=[],v=0,B=u.length;if(B<=m)return String.fromCharCode.apply(null,u);for(;v<B;)f==="array"||f==="nodebuffer"?g.push(String.fromCharCode.apply(null,u.slice(v,Math.min(v+m,B)))):g.push(String.fromCharCode.apply(null,u.subarray(v,Math.min(v+m,B)))),v+=m;return g.join("")},stringifyByChar:function(u){for(var f="",m=0;m<u.length;m++)f+=String.fromCharCode(u[m]);return f},applyCanBeUsed:{uint8array:(function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}})(),nodebuffer:(function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,a.allocBuffer(1)).length===1}catch{return!1}})()}};function h(u){var f=65536,m=t.getTypeOf(u),g=!0;if(m==="uint8array"?g=l.applyCanBeUsed.uint8array:m==="nodebuffer"&&(g=l.applyCanBeUsed.nodebuffer),g)for(;1<f;)try{return l.stringifyByChunk(u,m,f)}catch{f=Math.floor(f/2)}return l.stringifyByChar(u)}function c(u,f){for(var m=0;m<u.length;m++)f[m]=u[m];return f}t.applyFromCharCode=h;var d={};d.string={string:o,array:function(u){return A(u,new Array(u.length))},arraybuffer:function(u){return d.string.uint8array(u).buffer},uint8array:function(u){return A(u,new Uint8Array(u.length))},nodebuffer:function(u){return A(u,a.allocBuffer(u.length))}},d.array={string:h,array:o,arraybuffer:function(u){return new Uint8Array(u).buffer},uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(u)}},d.arraybuffer={string:function(u){return h(new Uint8Array(u))},array:function(u){return c(new Uint8Array(u),new Array(u.byteLength))},arraybuffer:o,uint8array:function(u){return new Uint8Array(u)},nodebuffer:function(u){return a.newBufferFrom(new Uint8Array(u))}},d.uint8array={string:h,array:function(u){return c(u,new Array(u.length))},arraybuffer:function(u){return u.buffer},uint8array:o,nodebuffer:function(u){return a.newBufferFrom(u)}},d.nodebuffer={string:h,array:function(u){return c(u,new Array(u.length))},arraybuffer:function(u){return d.nodebuffer.uint8array(u).buffer},uint8array:function(u){return c(u,new Uint8Array(u.length))},nodebuffer:o},t.transformTo=function(u,f){if(f=f||"",!u)return f;t.checkSupport(u);var m=t.getTypeOf(f);return d[m][u](f)},t.resolve=function(u){for(var f=u.split("/"),m=[],g=0;g<f.length;g++){var v=f[g];v==="."||v===""&&g!==0&&g!==f.length-1||(v===".."?m.pop():m.push(v))}return m.join("/")},t.getTypeOf=function(u){return typeof u=="string"?"string":Object.prototype.toString.call(u)==="[object Array]"?"array":i.nodebuffer&&a.isBuffer(u)?"nodebuffer":i.uint8array&&u instanceof Uint8Array?"uint8array":i.arraybuffer&&u instanceof ArrayBuffer?"arraybuffer":void 0},t.checkSupport=function(u){if(!i[u.toLowerCase()])throw new Error(u+" is not supported by this platform")},t.MAX_VALUE_16BITS=65535,t.MAX_VALUE_32BITS=-1,t.pretty=function(u){var f,m,g="";for(m=0;m<(u||"").length;m++)g+="\\x"+((f=u.charCodeAt(m))<16?"0":"")+f.toString(16).toUpperCase();return g},t.delay=function(u,f,m){setImmediate(function(){u.apply(m||null,f||[])})},t.inherits=function(u,f){function m(){}m.prototype=f.prototype,u.prototype=new m},t.extend=function(){var u,f,m={};for(u=0;u<arguments.length;u++)for(f in arguments[u])Object.prototype.hasOwnProperty.call(arguments[u],f)&&m[f]===void 0&&(m[f]=arguments[u][f]);return m},t.prepareContent=function(u,f,m,g,v){return n.Promise.resolve(f).then(function(B){return i.blob&&(B instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(B))!==-1)&&typeof FileReader<"u"?new n.Promise(function(w,_){var L=new FileReader;L.onload=function(k){w(k.target.result)},L.onerror=function(k){_(k.target.error)},L.readAsArrayBuffer(B)}):B}).then(function(B){var w=t.getTypeOf(B);return w?(w==="arraybuffer"?B=t.transformTo("uint8array",B):w==="string"&&(v?B=s.decode(B):m&&g!==!0&&(B=(function(_){return A(_,i.uint8array?new Uint8Array(_.length):new Array(_.length))})(B))),B):n.Promise.reject(new Error("Can't read the data of '"+u+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(r,e,t){"use strict";var i=r("./reader/readerFor"),s=r("./utils"),a=r("./signature"),n=r("./zipEntry"),o=r("./support");function A(l){this.files=[],this.loadOptions=l}A.prototype={checkSignature:function(l){if(!this.reader.readAndCheckSignature(l)){this.reader.index-=4;var h=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+s.pretty(h)+", expected "+s.pretty(l)+")")}},isSignature:function(l,h){var c=this.reader.index;this.reader.setIndex(l);var d=this.reader.readString(4)===h;return this.reader.setIndex(c),d},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var l=this.reader.readData(this.zipCommentLength),h=o.uint8array?"uint8array":"array",c=s.transformTo(h,l);this.zipComment=this.loadOptions.decodeFileName(c)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var l,h,c,d=this.zip64EndOfCentralSize-44;0<d;)l=this.reader.readInt(2),h=this.reader.readInt(4),c=this.reader.readData(h),this.zip64ExtensibleData[l]={id:l,length:h,value:c}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var l,h;for(l=0;l<this.files.length;l++)h=this.files[l],this.reader.setIndex(h.localHeaderOffset),this.checkSignature(a.LOCAL_FILE_HEADER),h.readLocalPart(this.reader),h.handleUTF8(),h.processAttributes()},readCentralDir:function(){var l;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(a.CENTRAL_FILE_HEADER);)(l=new n({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(l);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var l=this.reader.lastIndexOfSignature(a.CENTRAL_DIRECTORY_END);if(l<0)throw this.isSignature(0,a.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(l);var h=l;if(this.checkSignature(a.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===s.MAX_VALUE_16BITS||this.diskWithCentralDirStart===s.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===s.MAX_VALUE_16BITS||this.centralDirRecords===s.MAX_VALUE_16BITS||this.centralDirSize===s.MAX_VALUE_32BITS||this.centralDirOffset===s.MAX_VALUE_32BITS){if(this.zip64=!0,(l=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(l),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,a.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(a.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var c=this.centralDirOffset+this.centralDirSize;this.zip64&&(c+=20,c+=12+this.zip64EndOfCentralSize);var d=h-c;if(0<d)this.isSignature(h,a.CENTRAL_FILE_HEADER)||(this.reader.zero=d);else if(d<0)throw new Error("Corrupted zip: missing "+Math.abs(d)+" bytes.")},prepareReader:function(l){this.reader=i(l)},load:function(l){this.prepareReader(l),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},e.exports=A},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(r,e,t){"use strict";var i=r("./reader/readerFor"),s=r("./utils"),a=r("./compressedObject"),n=r("./crc32"),o=r("./utf8"),A=r("./compressions"),l=r("./support");function h(c,d){this.options=c,this.loadOptions=d}h.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(c){var d,u;if(c.skip(22),this.fileNameLength=c.readInt(2),u=c.readInt(2),this.fileName=c.readData(this.fileNameLength),c.skip(u),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((d=(function(f){for(var m in A)if(Object.prototype.hasOwnProperty.call(A,m)&&A[m].magic===f)return A[m];return null})(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+s.pretty(this.compressionMethod)+" unknown (inner file : "+s.transformTo("string",this.fileName)+")");this.decompressed=new a(this.compressedSize,this.uncompressedSize,this.crc32,d,c.readData(this.compressedSize))},readCentralPart:function(c){this.versionMadeBy=c.readInt(2),c.skip(2),this.bitFlag=c.readInt(2),this.compressionMethod=c.readString(2),this.date=c.readDate(),this.crc32=c.readInt(4),this.compressedSize=c.readInt(4),this.uncompressedSize=c.readInt(4);var d=c.readInt(2);if(this.extraFieldsLength=c.readInt(2),this.fileCommentLength=c.readInt(2),this.diskNumberStart=c.readInt(2),this.internalFileAttributes=c.readInt(2),this.externalFileAttributes=c.readInt(4),this.localHeaderOffset=c.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");c.skip(d),this.readExtraFields(c),this.parseZIP64ExtraField(c),this.fileComment=c.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var c=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),c==0&&(this.dosPermissions=63&this.externalFileAttributes),c==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var c=i(this.extraFields[1].value);this.uncompressedSize===s.MAX_VALUE_32BITS&&(this.uncompressedSize=c.readInt(8)),this.compressedSize===s.MAX_VALUE_32BITS&&(this.compressedSize=c.readInt(8)),this.localHeaderOffset===s.MAX_VALUE_32BITS&&(this.localHeaderOffset=c.readInt(8)),this.diskNumberStart===s.MAX_VALUE_32BITS&&(this.diskNumberStart=c.readInt(4))}},readExtraFields:function(c){var d,u,f,m=c.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});c.index+4<m;)d=c.readInt(2),u=c.readInt(2),f=c.readData(u),this.extraFields[d]={id:d,length:u,value:f};c.setIndex(m)},handleUTF8:function(){var c=l.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=o.utf8decode(this.fileName),this.fileCommentStr=o.utf8decode(this.fileComment);else{var d=this.findExtraFieldUnicodePath();if(d!==null)this.fileNameStr=d;else{var u=s.transformTo(c,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(u)}var f=this.findExtraFieldUnicodeComment();if(f!==null)this.fileCommentStr=f;else{var m=s.transformTo(c,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(m)}}},findExtraFieldUnicodePath:function(){var c=this.extraFields[28789];if(c){var d=i(c.value);return d.readInt(1)!==1||n(this.fileName)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null},findExtraFieldUnicodeComment:function(){var c=this.extraFields[25461];if(c){var d=i(c.value);return d.readInt(1)!==1||n(this.fileComment)!==d.readInt(4)?null:o.utf8decode(d.readData(c.length-5))}return null}},e.exports=h},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(r,e,t){"use strict";function i(d,u,f){this.name=d,this.dir=f.dir,this.date=f.date,this.comment=f.comment,this.unixPermissions=f.unixPermissions,this.dosPermissions=f.dosPermissions,this._data=u,this._dataBinary=f.binary,this.options={compression:f.compression,compressionOptions:f.compressionOptions}}var s=r("./stream/StreamHelper"),a=r("./stream/DataWorker"),n=r("./utf8"),o=r("./compressedObject"),A=r("./stream/GenericWorker");i.prototype={internalStream:function(d){var u=null,f="string";try{if(!d)throw new Error("No output type specified.");var m=(f=d.toLowerCase())==="string"||f==="text";f!=="binarystring"&&f!=="text"||(f="string"),u=this._decompressWorker();var g=!this._dataBinary;g&&!m&&(u=u.pipe(new n.Utf8EncodeWorker)),!g&&m&&(u=u.pipe(new n.Utf8DecodeWorker))}catch(v){(u=new A("error")).error(v)}return new s(u,f,"")},async:function(d,u){return this.internalStream(d).accumulate(u)},nodeStream:function(d,u){return this.internalStream(d||"nodebuffer").toNodejsStream(u)},_compressWorker:function(d,u){if(this._data instanceof o&&this._data.compression.magic===d.magic)return this._data.getCompressedWorker();var f=this._decompressWorker();return this._dataBinary||(f=f.pipe(new n.Utf8EncodeWorker)),o.createWorkerFrom(f,d,u)},_decompressWorker:function(){return this._data instanceof o?this._data.getContentWorker():this._data instanceof A?this._data:new a(this._data)}};for(var l=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],h=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},c=0;c<l.length;c++)i.prototype[l[c]]=h;e.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(r,e,t){(function(i){"use strict";var s,a,n=i.MutationObserver||i.WebKitMutationObserver;if(n){var o=0,A=new n(d),l=i.document.createTextNode("");A.observe(l,{characterData:!0}),s=function(){l.data=o=++o%2}}else if(i.setImmediate||i.MessageChannel===void 0)s="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var u=i.document.createElement("script");u.onreadystatechange=function(){d(),u.onreadystatechange=null,u.parentNode.removeChild(u),u=null},i.document.documentElement.appendChild(u)}:function(){setTimeout(d,0)};else{var h=new i.MessageChannel;h.port1.onmessage=d,s=function(){h.port2.postMessage(0)}}var c=[];function d(){var u,f;a=!0;for(var m=c.length;m;){for(f=c,c=[],u=-1;++u<m;)f[u]();m=c.length}a=!1}e.exports=function(u){c.push(u)!==1||a||s()}}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(r,e,t){"use strict";var i=r("immediate");function s(){}var a={},n=["REJECTED"],o=["FULFILLED"],A=["PENDING"];function l(m){if(typeof m!="function")throw new TypeError("resolver must be a function");this.state=A,this.queue=[],this.outcome=void 0,m!==s&&u(this,m)}function h(m,g,v){this.promise=m,typeof g=="function"&&(this.onFulfilled=g,this.callFulfilled=this.otherCallFulfilled),typeof v=="function"&&(this.onRejected=v,this.callRejected=this.otherCallRejected)}function c(m,g,v){i(function(){var B;try{B=g(v)}catch(w){return a.reject(m,w)}B===m?a.reject(m,new TypeError("Cannot resolve promise with itself")):a.resolve(m,B)})}function d(m){var g=m&&m.then;if(m&&(typeof m=="object"||typeof m=="function")&&typeof g=="function")return function(){g.apply(m,arguments)}}function u(m,g){var v=!1;function B(L){v||(v=!0,a.reject(m,L))}function w(L){v||(v=!0,a.resolve(m,L))}var _=f(function(){g(w,B)});_.status==="error"&&B(_.value)}function f(m,g){var v={};try{v.value=m(g),v.status="success"}catch(B){v.status="error",v.value=B}return v}(e.exports=l).prototype.finally=function(m){if(typeof m!="function")return this;var g=this.constructor;return this.then(function(v){return g.resolve(m()).then(function(){return v})},function(v){return g.resolve(m()).then(function(){throw v})})},l.prototype.catch=function(m){return this.then(null,m)},l.prototype.then=function(m,g){if(typeof m!="function"&&this.state===o||typeof g!="function"&&this.state===n)return this;var v=new this.constructor(s);return this.state!==A?c(v,this.state===o?m:g,this.outcome):this.queue.push(new h(v,m,g)),v},h.prototype.callFulfilled=function(m){a.resolve(this.promise,m)},h.prototype.otherCallFulfilled=function(m){c(this.promise,this.onFulfilled,m)},h.prototype.callRejected=function(m){a.reject(this.promise,m)},h.prototype.otherCallRejected=function(m){c(this.promise,this.onRejected,m)},a.resolve=function(m,g){var v=f(d,g);if(v.status==="error")return a.reject(m,v.value);var B=v.value;if(B)u(m,B);else{m.state=o,m.outcome=g;for(var w=-1,_=m.queue.length;++w<_;)m.queue[w].callFulfilled(g)}return m},a.reject=function(m,g){m.state=n,m.outcome=g;for(var v=-1,B=m.queue.length;++v<B;)m.queue[v].callRejected(g);return m},l.resolve=function(m){return m instanceof this?m:a.resolve(new this(s),m)},l.reject=function(m){var g=new this(s);return a.reject(g,m)},l.all=function(m){var g=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=m.length,B=!1;if(!v)return this.resolve([]);for(var w=new Array(v),_=0,L=-1,k=new this(s);++L<v;)D(m[L],L);return k;function D(E,O){g.resolve(E).then(function(I){w[O]=I,++_!==v||B||(B=!0,a.resolve(k,w))},function(I){B||(B=!0,a.reject(k,I))})}},l.race=function(m){var g=this;if(Object.prototype.toString.call(m)!=="[object Array]")return this.reject(new TypeError("must be an array"));var v=m.length,B=!1;if(!v)return this.resolve([]);for(var w=-1,_=new this(s);++w<v;)L=m[w],g.resolve(L).then(function(k){B||(B=!0,a.resolve(_,k))},function(k){B||(B=!0,a.reject(_,k))});var L;return _}},{immediate:36}],38:[function(r,e,t){"use strict";var i={};(0,r("./lib/utils/common").assign)(i,r("./lib/deflate"),r("./lib/inflate"),r("./lib/zlib/constants")),e.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(r,e,t){"use strict";var i=r("./zlib/deflate"),s=r("./utils/common"),a=r("./utils/strings"),n=r("./zlib/messages"),o=r("./zlib/zstream"),A=Object.prototype.toString,l=0,h=-1,c=0,d=8;function u(m){if(!(this instanceof u))return new u(m);this.options=s.assign({level:h,method:d,chunkSize:16384,windowBits:15,memLevel:8,strategy:c,to:""},m||{});var g=this.options;g.raw&&0<g.windowBits?g.windowBits=-g.windowBits:g.gzip&&0<g.windowBits&&g.windowBits<16&&(g.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new o,this.strm.avail_out=0;var v=i.deflateInit2(this.strm,g.level,g.method,g.windowBits,g.memLevel,g.strategy);if(v!==l)throw new Error(n[v]);if(g.header&&i.deflateSetHeader(this.strm,g.header),g.dictionary){var B;if(B=typeof g.dictionary=="string"?a.string2buf(g.dictionary):A.call(g.dictionary)==="[object ArrayBuffer]"?new Uint8Array(g.dictionary):g.dictionary,(v=i.deflateSetDictionary(this.strm,B))!==l)throw new Error(n[v]);this._dict_set=!0}}function f(m,g){var v=new u(g);if(v.push(m,!0),v.err)throw v.msg||n[v.err];return v.result}u.prototype.push=function(m,g){var v,B,w=this.strm,_=this.options.chunkSize;if(this.ended)return!1;B=g===~~g?g:g===!0?4:0,typeof m=="string"?w.input=a.string2buf(m):A.call(m)==="[object ArrayBuffer]"?w.input=new Uint8Array(m):w.input=m,w.next_in=0,w.avail_in=w.input.length;do{if(w.avail_out===0&&(w.output=new s.Buf8(_),w.next_out=0,w.avail_out=_),(v=i.deflate(w,B))!==1&&v!==l)return this.onEnd(v),!(this.ended=!0);w.avail_out!==0&&(w.avail_in!==0||B!==4&&B!==2)||(this.options.to==="string"?this.onData(a.buf2binstring(s.shrinkBuf(w.output,w.next_out))):this.onData(s.shrinkBuf(w.output,w.next_out)))}while((0<w.avail_in||w.avail_out===0)&&v!==1);return B===4?(v=i.deflateEnd(this.strm),this.onEnd(v),this.ended=!0,v===l):B!==2||(this.onEnd(l),!(w.avail_out=0))},u.prototype.onData=function(m){this.chunks.push(m)},u.prototype.onEnd=function(m){m===l&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=m,this.msg=this.strm.msg},t.Deflate=u,t.deflate=f,t.deflateRaw=function(m,g){return(g=g||{}).raw=!0,f(m,g)},t.gzip=function(m,g){return(g=g||{}).gzip=!0,f(m,g)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(r,e,t){"use strict";var i=r("./zlib/inflate"),s=r("./utils/common"),a=r("./utils/strings"),n=r("./zlib/constants"),o=r("./zlib/messages"),A=r("./zlib/zstream"),l=r("./zlib/gzheader"),h=Object.prototype.toString;function c(u){if(!(this instanceof c))return new c(u);this.options=s.assign({chunkSize:16384,windowBits:0,to:""},u||{});var f=this.options;f.raw&&0<=f.windowBits&&f.windowBits<16&&(f.windowBits=-f.windowBits,f.windowBits===0&&(f.windowBits=-15)),!(0<=f.windowBits&&f.windowBits<16)||u&&u.windowBits||(f.windowBits+=32),15<f.windowBits&&f.windowBits<48&&(15&f.windowBits)==0&&(f.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new A,this.strm.avail_out=0;var m=i.inflateInit2(this.strm,f.windowBits);if(m!==n.Z_OK)throw new Error(o[m]);this.header=new l,i.inflateGetHeader(this.strm,this.header)}function d(u,f){var m=new c(f);if(m.push(u,!0),m.err)throw m.msg||o[m.err];return m.result}c.prototype.push=function(u,f){var m,g,v,B,w,_,L=this.strm,k=this.options.chunkSize,D=this.options.dictionary,E=!1;if(this.ended)return!1;g=f===~~f?f:f===!0?n.Z_FINISH:n.Z_NO_FLUSH,typeof u=="string"?L.input=a.binstring2buf(u):h.call(u)==="[object ArrayBuffer]"?L.input=new Uint8Array(u):L.input=u,L.next_in=0,L.avail_in=L.input.length;do{if(L.avail_out===0&&(L.output=new s.Buf8(k),L.next_out=0,L.avail_out=k),(m=i.inflate(L,n.Z_NO_FLUSH))===n.Z_NEED_DICT&&D&&(_=typeof D=="string"?a.string2buf(D):h.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,m=i.inflateSetDictionary(this.strm,_)),m===n.Z_BUF_ERROR&&E===!0&&(m=n.Z_OK,E=!1),m!==n.Z_STREAM_END&&m!==n.Z_OK)return this.onEnd(m),!(this.ended=!0);L.next_out&&(L.avail_out!==0&&m!==n.Z_STREAM_END&&(L.avail_in!==0||g!==n.Z_FINISH&&g!==n.Z_SYNC_FLUSH)||(this.options.to==="string"?(v=a.utf8border(L.output,L.next_out),B=L.next_out-v,w=a.buf2string(L.output,v),L.next_out=B,L.avail_out=k-B,B&&s.arraySet(L.output,L.output,v,B,0),this.onData(w)):this.onData(s.shrinkBuf(L.output,L.next_out)))),L.avail_in===0&&L.avail_out===0&&(E=!0)}while((0<L.avail_in||L.avail_out===0)&&m!==n.Z_STREAM_END);return m===n.Z_STREAM_END&&(g=n.Z_FINISH),g===n.Z_FINISH?(m=i.inflateEnd(this.strm),this.onEnd(m),this.ended=!0,m===n.Z_OK):g!==n.Z_SYNC_FLUSH||(this.onEnd(n.Z_OK),!(L.avail_out=0))},c.prototype.onData=function(u){this.chunks.push(u)},c.prototype.onEnd=function(u){u===n.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=s.flattenChunks(this.chunks)),this.chunks=[],this.err=u,this.msg=this.strm.msg},t.Inflate=c,t.inflate=d,t.inflateRaw=function(u,f){return(f=f||{}).raw=!0,d(u,f)},t.ungzip=d},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(r,e,t){"use strict";var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";t.assign=function(n){for(var o=Array.prototype.slice.call(arguments,1);o.length;){var A=o.shift();if(A){if(typeof A!="object")throw new TypeError(A+"must be non-object");for(var l in A)A.hasOwnProperty(l)&&(n[l]=A[l])}}return n},t.shrinkBuf=function(n,o){return n.length===o?n:n.subarray?n.subarray(0,o):(n.length=o,n)};var s={arraySet:function(n,o,A,l,h){if(o.subarray&&n.subarray)n.set(o.subarray(A,A+l),h);else for(var c=0;c<l;c++)n[h+c]=o[A+c]},flattenChunks:function(n){var o,A,l,h,c,d;for(o=l=0,A=n.length;o<A;o++)l+=n[o].length;for(d=new Uint8Array(l),o=h=0,A=n.length;o<A;o++)c=n[o],d.set(c,h),h+=c.length;return d}},a={arraySet:function(n,o,A,l,h){for(var c=0;c<l;c++)n[h+c]=o[A+c]},flattenChunks:function(n){return[].concat.apply([],n)}};t.setTyped=function(n){n?(t.Buf8=Uint8Array,t.Buf16=Uint16Array,t.Buf32=Int32Array,t.assign(t,s)):(t.Buf8=Array,t.Buf16=Array,t.Buf32=Array,t.assign(t,a))},t.setTyped(i)},{}],42:[function(r,e,t){"use strict";var i=r("./common"),s=!0,a=!0;try{String.fromCharCode.apply(null,[0])}catch{s=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{a=!1}for(var n=new i.Buf8(256),o=0;o<256;o++)n[o]=252<=o?6:248<=o?5:240<=o?4:224<=o?3:192<=o?2:1;function A(l,h){if(h<65537&&(l.subarray&&a||!l.subarray&&s))return String.fromCharCode.apply(null,i.shrinkBuf(l,h));for(var c="",d=0;d<h;d++)c+=String.fromCharCode(l[d]);return c}n[254]=n[254]=1,t.string2buf=function(l){var h,c,d,u,f,m=l.length,g=0;for(u=0;u<m;u++)(64512&(c=l.charCodeAt(u)))==55296&&u+1<m&&(64512&(d=l.charCodeAt(u+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),u++),g+=c<128?1:c<2048?2:c<65536?3:4;for(h=new i.Buf8(g),u=f=0;f<g;u++)(64512&(c=l.charCodeAt(u)))==55296&&u+1<m&&(64512&(d=l.charCodeAt(u+1)))==56320&&(c=65536+(c-55296<<10)+(d-56320),u++),c<128?h[f++]=c:(c<2048?h[f++]=192|c>>>6:(c<65536?h[f++]=224|c>>>12:(h[f++]=240|c>>>18,h[f++]=128|c>>>12&63),h[f++]=128|c>>>6&63),h[f++]=128|63&c);return h},t.buf2binstring=function(l){return A(l,l.length)},t.binstring2buf=function(l){for(var h=new i.Buf8(l.length),c=0,d=h.length;c<d;c++)h[c]=l.charCodeAt(c);return h},t.buf2string=function(l,h){var c,d,u,f,m=h||l.length,g=new Array(2*m);for(c=d=0;c<m;)if((u=l[c++])<128)g[d++]=u;else if(4<(f=n[u]))g[d++]=65533,c+=f-1;else{for(u&=f===2?31:f===3?15:7;1<f&&c<m;)u=u<<6|63&l[c++],f--;1<f?g[d++]=65533:u<65536?g[d++]=u:(u-=65536,g[d++]=55296|u>>10&1023,g[d++]=56320|1023&u)}return A(g,d)},t.utf8border=function(l,h){var c;for((h=h||l.length)>l.length&&(h=l.length),c=h-1;0<=c&&(192&l[c])==128;)c--;return c<0||c===0?h:c+n[l[c]]>h?c:h}},{"./common":41}],43:[function(r,e,t){"use strict";e.exports=function(i,s,a,n){for(var o=65535&i|0,A=i>>>16&65535|0,l=0;a!==0;){for(a-=l=2e3<a?2e3:a;A=A+(o=o+s[n++]|0)|0,--l;);o%=65521,A%=65521}return o|A<<16|0}},{}],44:[function(r,e,t){"use strict";e.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(r,e,t){"use strict";var i=(function(){for(var s,a=[],n=0;n<256;n++){s=n;for(var o=0;o<8;o++)s=1&s?3988292384^s>>>1:s>>>1;a[n]=s}return a})();e.exports=function(s,a,n,o){var A=i,l=o+n;s^=-1;for(var h=o;h<l;h++)s=s>>>8^A[255&(s^a[h])];return-1^s}},{}],46:[function(r,e,t){"use strict";var i,s=r("../utils/common"),a=r("./trees"),n=r("./adler32"),o=r("./crc32"),A=r("./messages"),l=0,h=4,c=0,d=-2,u=-1,f=4,m=2,g=8,v=9,B=286,w=30,_=19,L=2*B+1,k=15,D=3,E=258,O=E+D+1,I=42,M=113,S=1,P=2,Y=3,G=4;function ie(U,ue){return U.msg=A[ue],ue}function J(U){return(U<<1)-(4<U?9:0)}function ne(U){for(var ue=U.length;0<=--ue;)U[ue]=0}function z(U){var ue=U.state,le=ue.pending;le>U.avail_out&&(le=U.avail_out),le!==0&&(s.arraySet(U.output,ue.pending_buf,ue.pending_out,le,U.next_out),U.next_out+=le,ue.pending_out+=le,U.total_out+=le,U.avail_out-=le,ue.pending-=le,ue.pending===0&&(ue.pending_out=0))}function K(U,ue){a._tr_flush_block(U,0<=U.block_start?U.block_start:-1,U.strstart-U.block_start,ue),U.block_start=U.strstart,z(U.strm)}function ge(U,ue){U.pending_buf[U.pending++]=ue}function he(U,ue){U.pending_buf[U.pending++]=ue>>>8&255,U.pending_buf[U.pending++]=255&ue}function re(U,ue){var le,X,$=U.max_chain_length,te=U.strstart,fe=U.prev_length,pe=U.nice_match,ae=U.strstart>U.w_size-O?U.strstart-(U.w_size-O):0,ye=U.window,De=U.w_mask,be=U.prev,$e=U.strstart+E,Gt=ye[te+fe-1],xt=ye[te+fe];U.prev_length>=U.good_match&&($>>=2),pe>U.lookahead&&(pe=U.lookahead);do if(ye[(le=ue)+fe]===xt&&ye[le+fe-1]===Gt&&ye[le]===ye[te]&&ye[++le]===ye[te+1]){te+=2,le++;do;while(ye[++te]===ye[++le]&&ye[++te]===ye[++le]&&ye[++te]===ye[++le]&&ye[++te]===ye[++le]&&ye[++te]===ye[++le]&&ye[++te]===ye[++le]&&ye[++te]===ye[++le]&&ye[++te]===ye[++le]&&te<$e);if(X=E-($e-te),te=$e-E,fe<X){if(U.match_start=ue,pe<=(fe=X))break;Gt=ye[te+fe-1],xt=ye[te+fe]}}while((ue=be[ue&De])>ae&&--$!=0);return fe<=U.lookahead?fe:U.lookahead}function Me(U){var ue,le,X,$,te,fe,pe,ae,ye,De,be=U.w_size;do{if($=U.window_size-U.lookahead-U.strstart,U.strstart>=be+(be-O)){for(s.arraySet(U.window,U.window,be,be,0),U.match_start-=be,U.strstart-=be,U.block_start-=be,ue=le=U.hash_size;X=U.head[--ue],U.head[ue]=be<=X?X-be:0,--le;);for(ue=le=be;X=U.prev[--ue],U.prev[ue]=be<=X?X-be:0,--le;);$+=be}if(U.strm.avail_in===0)break;if(fe=U.strm,pe=U.window,ae=U.strstart+U.lookahead,ye=$,De=void 0,De=fe.avail_in,ye<De&&(De=ye),le=De===0?0:(fe.avail_in-=De,s.arraySet(pe,fe.input,fe.next_in,De,ae),fe.state.wrap===1?fe.adler=n(fe.adler,pe,De,ae):fe.state.wrap===2&&(fe.adler=o(fe.adler,pe,De,ae)),fe.next_in+=De,fe.total_in+=De,De),U.lookahead+=le,U.lookahead+U.insert>=D)for(te=U.strstart-U.insert,U.ins_h=U.window[te],U.ins_h=(U.ins_h<<U.hash_shift^U.window[te+1])&U.hash_mask;U.insert&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[te+D-1])&U.hash_mask,U.prev[te&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=te,te++,U.insert--,!(U.lookahead+U.insert<D)););}while(U.lookahead<O&&U.strm.avail_in!==0)}function Ne(U,ue){for(var le,X;;){if(U.lookahead<O){if(Me(U),U.lookahead<O&&ue===l)return S;if(U.lookahead===0)break}if(le=0,U.lookahead>=D&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+D-1])&U.hash_mask,le=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),le!==0&&U.strstart-le<=U.w_size-O&&(U.match_length=re(U,le)),U.match_length>=D)if(X=a._tr_tally(U,U.strstart-U.match_start,U.match_length-D),U.lookahead-=U.match_length,U.match_length<=U.max_lazy_match&&U.lookahead>=D){for(U.match_length--;U.strstart++,U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+D-1])&U.hash_mask,le=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart,--U.match_length!=0;);U.strstart++}else U.strstart+=U.match_length,U.match_length=0,U.ins_h=U.window[U.strstart],U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+1])&U.hash_mask;else X=a._tr_tally(U,0,U.window[U.strstart]),U.lookahead--,U.strstart++;if(X&&(K(U,!1),U.strm.avail_out===0))return S}return U.insert=U.strstart<D-1?U.strstart:D-1,ue===h?(K(U,!0),U.strm.avail_out===0?Y:G):U.last_lit&&(K(U,!1),U.strm.avail_out===0)?S:P}function Ee(U,ue){for(var le,X,$;;){if(U.lookahead<O){if(Me(U),U.lookahead<O&&ue===l)return S;if(U.lookahead===0)break}if(le=0,U.lookahead>=D&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+D-1])&U.hash_mask,le=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),U.prev_length=U.match_length,U.prev_match=U.match_start,U.match_length=D-1,le!==0&&U.prev_length<U.max_lazy_match&&U.strstart-le<=U.w_size-O&&(U.match_length=re(U,le),U.match_length<=5&&(U.strategy===1||U.match_length===D&&4096<U.strstart-U.match_start)&&(U.match_length=D-1)),U.prev_length>=D&&U.match_length<=U.prev_length){for($=U.strstart+U.lookahead-D,X=a._tr_tally(U,U.strstart-1-U.prev_match,U.prev_length-D),U.lookahead-=U.prev_length-1,U.prev_length-=2;++U.strstart<=$&&(U.ins_h=(U.ins_h<<U.hash_shift^U.window[U.strstart+D-1])&U.hash_mask,le=U.prev[U.strstart&U.w_mask]=U.head[U.ins_h],U.head[U.ins_h]=U.strstart),--U.prev_length!=0;);if(U.match_available=0,U.match_length=D-1,U.strstart++,X&&(K(U,!1),U.strm.avail_out===0))return S}else if(U.match_available){if((X=a._tr_tally(U,0,U.window[U.strstart-1]))&&K(U,!1),U.strstart++,U.lookahead--,U.strm.avail_out===0)return S}else U.match_available=1,U.strstart++,U.lookahead--}return U.match_available&&(X=a._tr_tally(U,0,U.window[U.strstart-1]),U.match_available=0),U.insert=U.strstart<D-1?U.strstart:D-1,ue===h?(K(U,!0),U.strm.avail_out===0?Y:G):U.last_lit&&(K(U,!1),U.strm.avail_out===0)?S:P}function Ge(U,ue,le,X,$){this.good_length=U,this.max_lazy=ue,this.nice_length=le,this.max_chain=X,this.func=$}function yt(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=g,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new s.Buf16(2*L),this.dyn_dtree=new s.Buf16(2*(2*w+1)),this.bl_tree=new s.Buf16(2*(2*_+1)),ne(this.dyn_ltree),ne(this.dyn_dtree),ne(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new s.Buf16(k+1),this.heap=new s.Buf16(2*B+1),ne(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new s.Buf16(2*B+1),ne(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Xe(U){var ue;return U&&U.state?(U.total_in=U.total_out=0,U.data_type=m,(ue=U.state).pending=0,ue.pending_out=0,ue.wrap<0&&(ue.wrap=-ue.wrap),ue.status=ue.wrap?I:M,U.adler=ue.wrap===2?0:1,ue.last_flush=l,a._tr_init(ue),c):ie(U,d)}function Mi(U){var ue=Xe(U);return ue===c&&(function(le){le.window_size=2*le.w_size,ne(le.head),le.max_lazy_match=i[le.level].max_lazy,le.good_match=i[le.level].good_length,le.nice_match=i[le.level].nice_length,le.max_chain_length=i[le.level].max_chain,le.strstart=0,le.block_start=0,le.lookahead=0,le.insert=0,le.match_length=le.prev_length=D-1,le.match_available=0,le.ins_h=0})(U.state),ue}function oi(U,ue,le,X,$,te){if(!U)return d;var fe=1;if(ue===u&&(ue=6),X<0?(fe=0,X=-X):15<X&&(fe=2,X-=16),$<1||v<$||le!==g||X<8||15<X||ue<0||9<ue||te<0||f<te)return ie(U,d);X===8&&(X=9);var pe=new yt;return(U.state=pe).strm=U,pe.wrap=fe,pe.gzhead=null,pe.w_bits=X,pe.w_size=1<<pe.w_bits,pe.w_mask=pe.w_size-1,pe.hash_bits=$+7,pe.hash_size=1<<pe.hash_bits,pe.hash_mask=pe.hash_size-1,pe.hash_shift=~~((pe.hash_bits+D-1)/D),pe.window=new s.Buf8(2*pe.w_size),pe.head=new s.Buf16(pe.hash_size),pe.prev=new s.Buf16(pe.w_size),pe.lit_bufsize=1<<$+6,pe.pending_buf_size=4*pe.lit_bufsize,pe.pending_buf=new s.Buf8(pe.pending_buf_size),pe.d_buf=1*pe.lit_bufsize,pe.l_buf=3*pe.lit_bufsize,pe.level=ue,pe.strategy=te,pe.method=le,Mi(U)}i=[new Ge(0,0,0,0,function(U,ue){var le=65535;for(le>U.pending_buf_size-5&&(le=U.pending_buf_size-5);;){if(U.lookahead<=1){if(Me(U),U.lookahead===0&&ue===l)return S;if(U.lookahead===0)break}U.strstart+=U.lookahead,U.lookahead=0;var X=U.block_start+le;if((U.strstart===0||U.strstart>=X)&&(U.lookahead=U.strstart-X,U.strstart=X,K(U,!1),U.strm.avail_out===0)||U.strstart-U.block_start>=U.w_size-O&&(K(U,!1),U.strm.avail_out===0))return S}return U.insert=0,ue===h?(K(U,!0),U.strm.avail_out===0?Y:G):(U.strstart>U.block_start&&(K(U,!1),U.strm.avail_out),S)}),new Ge(4,4,8,4,Ne),new Ge(4,5,16,8,Ne),new Ge(4,6,32,32,Ne),new Ge(4,4,16,16,Ee),new Ge(8,16,32,32,Ee),new Ge(8,16,128,128,Ee),new Ge(8,32,128,256,Ee),new Ge(32,128,258,1024,Ee),new Ge(32,258,258,4096,Ee)],t.deflateInit=function(U,ue){return oi(U,ue,g,15,8,0)},t.deflateInit2=oi,t.deflateReset=Mi,t.deflateResetKeep=Xe,t.deflateSetHeader=function(U,ue){return U&&U.state?U.state.wrap!==2?d:(U.state.gzhead=ue,c):d},t.deflate=function(U,ue){var le,X,$,te;if(!U||!U.state||5<ue||ue<0)return U?ie(U,d):d;if(X=U.state,!U.output||!U.input&&U.avail_in!==0||X.status===666&&ue!==h)return ie(U,U.avail_out===0?-5:d);if(X.strm=U,le=X.last_flush,X.last_flush=ue,X.status===I)if(X.wrap===2)U.adler=0,ge(X,31),ge(X,139),ge(X,8),X.gzhead?(ge(X,(X.gzhead.text?1:0)+(X.gzhead.hcrc?2:0)+(X.gzhead.extra?4:0)+(X.gzhead.name?8:0)+(X.gzhead.comment?16:0)),ge(X,255&X.gzhead.time),ge(X,X.gzhead.time>>8&255),ge(X,X.gzhead.time>>16&255),ge(X,X.gzhead.time>>24&255),ge(X,X.level===9?2:2<=X.strategy||X.level<2?4:0),ge(X,255&X.gzhead.os),X.gzhead.extra&&X.gzhead.extra.length&&(ge(X,255&X.gzhead.extra.length),ge(X,X.gzhead.extra.length>>8&255)),X.gzhead.hcrc&&(U.adler=o(U.adler,X.pending_buf,X.pending,0)),X.gzindex=0,X.status=69):(ge(X,0),ge(X,0),ge(X,0),ge(X,0),ge(X,0),ge(X,X.level===9?2:2<=X.strategy||X.level<2?4:0),ge(X,3),X.status=M);else{var fe=g+(X.w_bits-8<<4)<<8;fe|=(2<=X.strategy||X.level<2?0:X.level<6?1:X.level===6?2:3)<<6,X.strstart!==0&&(fe|=32),fe+=31-fe%31,X.status=M,he(X,fe),X.strstart!==0&&(he(X,U.adler>>>16),he(X,65535&U.adler)),U.adler=1}if(X.status===69)if(X.gzhead.extra){for($=X.pending;X.gzindex<(65535&X.gzhead.extra.length)&&(X.pending!==X.pending_buf_size||(X.gzhead.hcrc&&X.pending>$&&(U.adler=o(U.adler,X.pending_buf,X.pending-$,$)),z(U),$=X.pending,X.pending!==X.pending_buf_size));)ge(X,255&X.gzhead.extra[X.gzindex]),X.gzindex++;X.gzhead.hcrc&&X.pending>$&&(U.adler=o(U.adler,X.pending_buf,X.pending-$,$)),X.gzindex===X.gzhead.extra.length&&(X.gzindex=0,X.status=73)}else X.status=73;if(X.status===73)if(X.gzhead.name){$=X.pending;do{if(X.pending===X.pending_buf_size&&(X.gzhead.hcrc&&X.pending>$&&(U.adler=o(U.adler,X.pending_buf,X.pending-$,$)),z(U),$=X.pending,X.pending===X.pending_buf_size)){te=1;break}te=X.gzindex<X.gzhead.name.length?255&X.gzhead.name.charCodeAt(X.gzindex++):0,ge(X,te)}while(te!==0);X.gzhead.hcrc&&X.pending>$&&(U.adler=o(U.adler,X.pending_buf,X.pending-$,$)),te===0&&(X.gzindex=0,X.status=91)}else X.status=91;if(X.status===91)if(X.gzhead.comment){$=X.pending;do{if(X.pending===X.pending_buf_size&&(X.gzhead.hcrc&&X.pending>$&&(U.adler=o(U.adler,X.pending_buf,X.pending-$,$)),z(U),$=X.pending,X.pending===X.pending_buf_size)){te=1;break}te=X.gzindex<X.gzhead.comment.length?255&X.gzhead.comment.charCodeAt(X.gzindex++):0,ge(X,te)}while(te!==0);X.gzhead.hcrc&&X.pending>$&&(U.adler=o(U.adler,X.pending_buf,X.pending-$,$)),te===0&&(X.status=103)}else X.status=103;if(X.status===103&&(X.gzhead.hcrc?(X.pending+2>X.pending_buf_size&&z(U),X.pending+2<=X.pending_buf_size&&(ge(X,255&U.adler),ge(X,U.adler>>8&255),U.adler=0,X.status=M)):X.status=M),X.pending!==0){if(z(U),U.avail_out===0)return X.last_flush=-1,c}else if(U.avail_in===0&&J(ue)<=J(le)&&ue!==h)return ie(U,-5);if(X.status===666&&U.avail_in!==0)return ie(U,-5);if(U.avail_in!==0||X.lookahead!==0||ue!==l&&X.status!==666){var pe=X.strategy===2?(function(ae,ye){for(var De;;){if(ae.lookahead===0&&(Me(ae),ae.lookahead===0)){if(ye===l)return S;break}if(ae.match_length=0,De=a._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++,De&&(K(ae,!1),ae.strm.avail_out===0))return S}return ae.insert=0,ye===h?(K(ae,!0),ae.strm.avail_out===0?Y:G):ae.last_lit&&(K(ae,!1),ae.strm.avail_out===0)?S:P})(X,ue):X.strategy===3?(function(ae,ye){for(var De,be,$e,Gt,xt=ae.window;;){if(ae.lookahead<=E){if(Me(ae),ae.lookahead<=E&&ye===l)return S;if(ae.lookahead===0)break}if(ae.match_length=0,ae.lookahead>=D&&0<ae.strstart&&(be=xt[$e=ae.strstart-1])===xt[++$e]&&be===xt[++$e]&&be===xt[++$e]){Gt=ae.strstart+E;do;while(be===xt[++$e]&&be===xt[++$e]&&be===xt[++$e]&&be===xt[++$e]&&be===xt[++$e]&&be===xt[++$e]&&be===xt[++$e]&&be===xt[++$e]&&$e<Gt);ae.match_length=E-(Gt-$e),ae.match_length>ae.lookahead&&(ae.match_length=ae.lookahead)}if(ae.match_length>=D?(De=a._tr_tally(ae,1,ae.match_length-D),ae.lookahead-=ae.match_length,ae.strstart+=ae.match_length,ae.match_length=0):(De=a._tr_tally(ae,0,ae.window[ae.strstart]),ae.lookahead--,ae.strstart++),De&&(K(ae,!1),ae.strm.avail_out===0))return S}return ae.insert=0,ye===h?(K(ae,!0),ae.strm.avail_out===0?Y:G):ae.last_lit&&(K(ae,!1),ae.strm.avail_out===0)?S:P})(X,ue):i[X.level].func(X,ue);if(pe!==Y&&pe!==G||(X.status=666),pe===S||pe===Y)return U.avail_out===0&&(X.last_flush=-1),c;if(pe===P&&(ue===1?a._tr_align(X):ue!==5&&(a._tr_stored_block(X,0,0,!1),ue===3&&(ne(X.head),X.lookahead===0&&(X.strstart=0,X.block_start=0,X.insert=0))),z(U),U.avail_out===0))return X.last_flush=-1,c}return ue!==h?c:X.wrap<=0?1:(X.wrap===2?(ge(X,255&U.adler),ge(X,U.adler>>8&255),ge(X,U.adler>>16&255),ge(X,U.adler>>24&255),ge(X,255&U.total_in),ge(X,U.total_in>>8&255),ge(X,U.total_in>>16&255),ge(X,U.total_in>>24&255)):(he(X,U.adler>>>16),he(X,65535&U.adler)),z(U),0<X.wrap&&(X.wrap=-X.wrap),X.pending!==0?c:1)},t.deflateEnd=function(U){var ue;return U&&U.state?(ue=U.state.status)!==I&&ue!==69&&ue!==73&&ue!==91&&ue!==103&&ue!==M&&ue!==666?ie(U,d):(U.state=null,ue===M?ie(U,-3):c):d},t.deflateSetDictionary=function(U,ue){var le,X,$,te,fe,pe,ae,ye,De=ue.length;if(!U||!U.state||(te=(le=U.state).wrap)===2||te===1&&le.status!==I||le.lookahead)return d;for(te===1&&(U.adler=n(U.adler,ue,De,0)),le.wrap=0,De>=le.w_size&&(te===0&&(ne(le.head),le.strstart=0,le.block_start=0,le.insert=0),ye=new s.Buf8(le.w_size),s.arraySet(ye,ue,De-le.w_size,le.w_size,0),ue=ye,De=le.w_size),fe=U.avail_in,pe=U.next_in,ae=U.input,U.avail_in=De,U.next_in=0,U.input=ue,Me(le);le.lookahead>=D;){for(X=le.strstart,$=le.lookahead-(D-1);le.ins_h=(le.ins_h<<le.hash_shift^le.window[X+D-1])&le.hash_mask,le.prev[X&le.w_mask]=le.head[le.ins_h],le.head[le.ins_h]=X,X++,--$;);le.strstart=X,le.lookahead=D-1,Me(le)}return le.strstart+=le.lookahead,le.block_start=le.strstart,le.insert=le.lookahead,le.lookahead=0,le.match_length=le.prev_length=D-1,le.match_available=0,U.next_in=pe,U.input=ae,U.avail_in=fe,le.wrap=te,c},t.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(r,e,t){"use strict";e.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(r,e,t){"use strict";e.exports=function(i,s){var a,n,o,A,l,h,c,d,u,f,m,g,v,B,w,_,L,k,D,E,O,I,M,S,P;a=i.state,n=i.next_in,S=i.input,o=n+(i.avail_in-5),A=i.next_out,P=i.output,l=A-(s-i.avail_out),h=A+(i.avail_out-257),c=a.dmax,d=a.wsize,u=a.whave,f=a.wnext,m=a.window,g=a.hold,v=a.bits,B=a.lencode,w=a.distcode,_=(1<<a.lenbits)-1,L=(1<<a.distbits)-1;e:do{v<15&&(g+=S[n++]<<v,v+=8,g+=S[n++]<<v,v+=8),k=B[g&_];t:for(;;){if(g>>>=D=k>>>24,v-=D,(D=k>>>16&255)===0)P[A++]=65535&k;else{if(!(16&D)){if((64&D)==0){k=B[(65535&k)+(g&(1<<D)-1)];continue t}if(32&D){a.mode=12;break e}i.msg="invalid literal/length code",a.mode=30;break e}E=65535&k,(D&=15)&&(v<D&&(g+=S[n++]<<v,v+=8),E+=g&(1<<D)-1,g>>>=D,v-=D),v<15&&(g+=S[n++]<<v,v+=8,g+=S[n++]<<v,v+=8),k=w[g&L];i:for(;;){if(g>>>=D=k>>>24,v-=D,!(16&(D=k>>>16&255))){if((64&D)==0){k=w[(65535&k)+(g&(1<<D)-1)];continue i}i.msg="invalid distance code",a.mode=30;break e}if(O=65535&k,v<(D&=15)&&(g+=S[n++]<<v,(v+=8)<D&&(g+=S[n++]<<v,v+=8)),c<(O+=g&(1<<D)-1)){i.msg="invalid distance too far back",a.mode=30;break e}if(g>>>=D,v-=D,(D=A-l)<O){if(u<(D=O-D)&&a.sane){i.msg="invalid distance too far back",a.mode=30;break e}if(M=m,(I=0)===f){if(I+=d-D,D<E){for(E-=D;P[A++]=m[I++],--D;);I=A-O,M=P}}else if(f<D){if(I+=d+f-D,(D-=f)<E){for(E-=D;P[A++]=m[I++],--D;);if(I=0,f<E){for(E-=D=f;P[A++]=m[I++],--D;);I=A-O,M=P}}}else if(I+=f-D,D<E){for(E-=D;P[A++]=m[I++],--D;);I=A-O,M=P}for(;2<E;)P[A++]=M[I++],P[A++]=M[I++],P[A++]=M[I++],E-=3;E&&(P[A++]=M[I++],1<E&&(P[A++]=M[I++]))}else{for(I=A-O;P[A++]=P[I++],P[A++]=P[I++],P[A++]=P[I++],2<(E-=3););E&&(P[A++]=P[I++],1<E&&(P[A++]=P[I++]))}break}}break}}while(n<o&&A<h);n-=E=v>>3,g&=(1<<(v-=E<<3))-1,i.next_in=n,i.next_out=A,i.avail_in=n<o?o-n+5:5-(n-o),i.avail_out=A<h?h-A+257:257-(A-h),a.hold=g,a.bits=v}},{}],49:[function(r,e,t){"use strict";var i=r("../utils/common"),s=r("./adler32"),a=r("./crc32"),n=r("./inffast"),o=r("./inftrees"),A=1,l=2,h=0,c=-2,d=1,u=852,f=592;function m(I){return(I>>>24&255)+(I>>>8&65280)+((65280&I)<<8)+((255&I)<<24)}function g(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function v(I){var M;return I&&I.state?(M=I.state,I.total_in=I.total_out=M.total=0,I.msg="",M.wrap&&(I.adler=1&M.wrap),M.mode=d,M.last=0,M.havedict=0,M.dmax=32768,M.head=null,M.hold=0,M.bits=0,M.lencode=M.lendyn=new i.Buf32(u),M.distcode=M.distdyn=new i.Buf32(f),M.sane=1,M.back=-1,h):c}function B(I){var M;return I&&I.state?((M=I.state).wsize=0,M.whave=0,M.wnext=0,v(I)):c}function w(I,M){var S,P;return I&&I.state?(P=I.state,M<0?(S=0,M=-M):(S=1+(M>>4),M<48&&(M&=15)),M&&(M<8||15<M)?c:(P.window!==null&&P.wbits!==M&&(P.window=null),P.wrap=S,P.wbits=M,B(I))):c}function _(I,M){var S,P;return I?(P=new g,(I.state=P).window=null,(S=w(I,M))!==h&&(I.state=null),S):c}var L,k,D=!0;function E(I){if(D){var M;for(L=new i.Buf32(512),k=new i.Buf32(32),M=0;M<144;)I.lens[M++]=8;for(;M<256;)I.lens[M++]=9;for(;M<280;)I.lens[M++]=7;for(;M<288;)I.lens[M++]=8;for(o(A,I.lens,0,288,L,0,I.work,{bits:9}),M=0;M<32;)I.lens[M++]=5;o(l,I.lens,0,32,k,0,I.work,{bits:5}),D=!1}I.lencode=L,I.lenbits=9,I.distcode=k,I.distbits=5}function O(I,M,S,P){var Y,G=I.state;return G.window===null&&(G.wsize=1<<G.wbits,G.wnext=0,G.whave=0,G.window=new i.Buf8(G.wsize)),P>=G.wsize?(i.arraySet(G.window,M,S-G.wsize,G.wsize,0),G.wnext=0,G.whave=G.wsize):(P<(Y=G.wsize-G.wnext)&&(Y=P),i.arraySet(G.window,M,S-P,Y,G.wnext),(P-=Y)?(i.arraySet(G.window,M,S-P,P,0),G.wnext=P,G.whave=G.wsize):(G.wnext+=Y,G.wnext===G.wsize&&(G.wnext=0),G.whave<G.wsize&&(G.whave+=Y))),0}t.inflateReset=B,t.inflateReset2=w,t.inflateResetKeep=v,t.inflateInit=function(I){return _(I,15)},t.inflateInit2=_,t.inflate=function(I,M){var S,P,Y,G,ie,J,ne,z,K,ge,he,re,Me,Ne,Ee,Ge,yt,Xe,Mi,oi,U,ue,le,X,$=0,te=new i.Buf8(4),fe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!I||!I.state||!I.output||!I.input&&I.avail_in!==0)return c;(S=I.state).mode===12&&(S.mode=13),ie=I.next_out,Y=I.output,ne=I.avail_out,G=I.next_in,P=I.input,J=I.avail_in,z=S.hold,K=S.bits,ge=J,he=ne,ue=h;e:for(;;)switch(S.mode){case d:if(S.wrap===0){S.mode=13;break}for(;K<16;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(2&S.wrap&&z===35615){te[S.check=0]=255&z,te[1]=z>>>8&255,S.check=a(S.check,te,2,0),K=z=0,S.mode=2;break}if(S.flags=0,S.head&&(S.head.done=!1),!(1&S.wrap)||(((255&z)<<8)+(z>>8))%31){I.msg="incorrect header check",S.mode=30;break}if((15&z)!=8){I.msg="unknown compression method",S.mode=30;break}if(K-=4,U=8+(15&(z>>>=4)),S.wbits===0)S.wbits=U;else if(U>S.wbits){I.msg="invalid window size",S.mode=30;break}S.dmax=1<<U,I.adler=S.check=1,S.mode=512&z?10:12,K=z=0;break;case 2:for(;K<16;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(S.flags=z,(255&S.flags)!=8){I.msg="unknown compression method",S.mode=30;break}if(57344&S.flags){I.msg="unknown header flags set",S.mode=30;break}S.head&&(S.head.text=z>>8&1),512&S.flags&&(te[0]=255&z,te[1]=z>>>8&255,S.check=a(S.check,te,2,0)),K=z=0,S.mode=3;case 3:for(;K<32;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}S.head&&(S.head.time=z),512&S.flags&&(te[0]=255&z,te[1]=z>>>8&255,te[2]=z>>>16&255,te[3]=z>>>24&255,S.check=a(S.check,te,4,0)),K=z=0,S.mode=4;case 4:for(;K<16;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}S.head&&(S.head.xflags=255&z,S.head.os=z>>8),512&S.flags&&(te[0]=255&z,te[1]=z>>>8&255,S.check=a(S.check,te,2,0)),K=z=0,S.mode=5;case 5:if(1024&S.flags){for(;K<16;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}S.length=z,S.head&&(S.head.extra_len=z),512&S.flags&&(te[0]=255&z,te[1]=z>>>8&255,S.check=a(S.check,te,2,0)),K=z=0}else S.head&&(S.head.extra=null);S.mode=6;case 6:if(1024&S.flags&&(J<(re=S.length)&&(re=J),re&&(S.head&&(U=S.head.extra_len-S.length,S.head.extra||(S.head.extra=new Array(S.head.extra_len)),i.arraySet(S.head.extra,P,G,re,U)),512&S.flags&&(S.check=a(S.check,P,re,G)),J-=re,G+=re,S.length-=re),S.length))break e;S.length=0,S.mode=7;case 7:if(2048&S.flags){if(J===0)break e;for(re=0;U=P[G+re++],S.head&&U&&S.length<65536&&(S.head.name+=String.fromCharCode(U)),U&&re<J;);if(512&S.flags&&(S.check=a(S.check,P,re,G)),J-=re,G+=re,U)break e}else S.head&&(S.head.name=null);S.length=0,S.mode=8;case 8:if(4096&S.flags){if(J===0)break e;for(re=0;U=P[G+re++],S.head&&U&&S.length<65536&&(S.head.comment+=String.fromCharCode(U)),U&&re<J;);if(512&S.flags&&(S.check=a(S.check,P,re,G)),J-=re,G+=re,U)break e}else S.head&&(S.head.comment=null);S.mode=9;case 9:if(512&S.flags){for(;K<16;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(z!==(65535&S.check)){I.msg="header crc mismatch",S.mode=30;break}K=z=0}S.head&&(S.head.hcrc=S.flags>>9&1,S.head.done=!0),I.adler=S.check=0,S.mode=12;break;case 10:for(;K<32;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}I.adler=S.check=m(z),K=z=0,S.mode=11;case 11:if(S.havedict===0)return I.next_out=ie,I.avail_out=ne,I.next_in=G,I.avail_in=J,S.hold=z,S.bits=K,2;I.adler=S.check=1,S.mode=12;case 12:if(M===5||M===6)break e;case 13:if(S.last){z>>>=7&K,K-=7&K,S.mode=27;break}for(;K<3;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}switch(S.last=1&z,K-=1,3&(z>>>=1)){case 0:S.mode=14;break;case 1:if(E(S),S.mode=20,M!==6)break;z>>>=2,K-=2;break e;case 2:S.mode=17;break;case 3:I.msg="invalid block type",S.mode=30}z>>>=2,K-=2;break;case 14:for(z>>>=7&K,K-=7&K;K<32;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if((65535&z)!=(z>>>16^65535)){I.msg="invalid stored block lengths",S.mode=30;break}if(S.length=65535&z,K=z=0,S.mode=15,M===6)break e;case 15:S.mode=16;case 16:if(re=S.length){if(J<re&&(re=J),ne<re&&(re=ne),re===0)break e;i.arraySet(Y,P,G,re,ie),J-=re,G+=re,ne-=re,ie+=re,S.length-=re;break}S.mode=12;break;case 17:for(;K<14;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(S.nlen=257+(31&z),z>>>=5,K-=5,S.ndist=1+(31&z),z>>>=5,K-=5,S.ncode=4+(15&z),z>>>=4,K-=4,286<S.nlen||30<S.ndist){I.msg="too many length or distance symbols",S.mode=30;break}S.have=0,S.mode=18;case 18:for(;S.have<S.ncode;){for(;K<3;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}S.lens[fe[S.have++]]=7&z,z>>>=3,K-=3}for(;S.have<19;)S.lens[fe[S.have++]]=0;if(S.lencode=S.lendyn,S.lenbits=7,le={bits:S.lenbits},ue=o(0,S.lens,0,19,S.lencode,0,S.work,le),S.lenbits=le.bits,ue){I.msg="invalid code lengths set",S.mode=30;break}S.have=0,S.mode=19;case 19:for(;S.have<S.nlen+S.ndist;){for(;Ge=($=S.lencode[z&(1<<S.lenbits)-1])>>>16&255,yt=65535&$,!((Ee=$>>>24)<=K);){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(yt<16)z>>>=Ee,K-=Ee,S.lens[S.have++]=yt;else{if(yt===16){for(X=Ee+2;K<X;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(z>>>=Ee,K-=Ee,S.have===0){I.msg="invalid bit length repeat",S.mode=30;break}U=S.lens[S.have-1],re=3+(3&z),z>>>=2,K-=2}else if(yt===17){for(X=Ee+3;K<X;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}K-=Ee,U=0,re=3+(7&(z>>>=Ee)),z>>>=3,K-=3}else{for(X=Ee+7;K<X;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}K-=Ee,U=0,re=11+(127&(z>>>=Ee)),z>>>=7,K-=7}if(S.have+re>S.nlen+S.ndist){I.msg="invalid bit length repeat",S.mode=30;break}for(;re--;)S.lens[S.have++]=U}}if(S.mode===30)break;if(S.lens[256]===0){I.msg="invalid code -- missing end-of-block",S.mode=30;break}if(S.lenbits=9,le={bits:S.lenbits},ue=o(A,S.lens,0,S.nlen,S.lencode,0,S.work,le),S.lenbits=le.bits,ue){I.msg="invalid literal/lengths set",S.mode=30;break}if(S.distbits=6,S.distcode=S.distdyn,le={bits:S.distbits},ue=o(l,S.lens,S.nlen,S.ndist,S.distcode,0,S.work,le),S.distbits=le.bits,ue){I.msg="invalid distances set",S.mode=30;break}if(S.mode=20,M===6)break e;case 20:S.mode=21;case 21:if(6<=J&&258<=ne){I.next_out=ie,I.avail_out=ne,I.next_in=G,I.avail_in=J,S.hold=z,S.bits=K,n(I,he),ie=I.next_out,Y=I.output,ne=I.avail_out,G=I.next_in,P=I.input,J=I.avail_in,z=S.hold,K=S.bits,S.mode===12&&(S.back=-1);break}for(S.back=0;Ge=($=S.lencode[z&(1<<S.lenbits)-1])>>>16&255,yt=65535&$,!((Ee=$>>>24)<=K);){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(Ge&&(240&Ge)==0){for(Xe=Ee,Mi=Ge,oi=yt;Ge=($=S.lencode[oi+((z&(1<<Xe+Mi)-1)>>Xe)])>>>16&255,yt=65535&$,!(Xe+(Ee=$>>>24)<=K);){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}z>>>=Xe,K-=Xe,S.back+=Xe}if(z>>>=Ee,K-=Ee,S.back+=Ee,S.length=yt,Ge===0){S.mode=26;break}if(32&Ge){S.back=-1,S.mode=12;break}if(64&Ge){I.msg="invalid literal/length code",S.mode=30;break}S.extra=15&Ge,S.mode=22;case 22:if(S.extra){for(X=S.extra;K<X;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}S.length+=z&(1<<S.extra)-1,z>>>=S.extra,K-=S.extra,S.back+=S.extra}S.was=S.length,S.mode=23;case 23:for(;Ge=($=S.distcode[z&(1<<S.distbits)-1])>>>16&255,yt=65535&$,!((Ee=$>>>24)<=K);){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if((240&Ge)==0){for(Xe=Ee,Mi=Ge,oi=yt;Ge=($=S.distcode[oi+((z&(1<<Xe+Mi)-1)>>Xe)])>>>16&255,yt=65535&$,!(Xe+(Ee=$>>>24)<=K);){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}z>>>=Xe,K-=Xe,S.back+=Xe}if(z>>>=Ee,K-=Ee,S.back+=Ee,64&Ge){I.msg="invalid distance code",S.mode=30;break}S.offset=yt,S.extra=15&Ge,S.mode=24;case 24:if(S.extra){for(X=S.extra;K<X;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}S.offset+=z&(1<<S.extra)-1,z>>>=S.extra,K-=S.extra,S.back+=S.extra}if(S.offset>S.dmax){I.msg="invalid distance too far back",S.mode=30;break}S.mode=25;case 25:if(ne===0)break e;if(re=he-ne,S.offset>re){if((re=S.offset-re)>S.whave&&S.sane){I.msg="invalid distance too far back",S.mode=30;break}Me=re>S.wnext?(re-=S.wnext,S.wsize-re):S.wnext-re,re>S.length&&(re=S.length),Ne=S.window}else Ne=Y,Me=ie-S.offset,re=S.length;for(ne<re&&(re=ne),ne-=re,S.length-=re;Y[ie++]=Ne[Me++],--re;);S.length===0&&(S.mode=21);break;case 26:if(ne===0)break e;Y[ie++]=S.length,ne--,S.mode=21;break;case 27:if(S.wrap){for(;K<32;){if(J===0)break e;J--,z|=P[G++]<<K,K+=8}if(he-=ne,I.total_out+=he,S.total+=he,he&&(I.adler=S.check=S.flags?a(S.check,Y,he,ie-he):s(S.check,Y,he,ie-he)),he=ne,(S.flags?z:m(z))!==S.check){I.msg="incorrect data check",S.mode=30;break}K=z=0}S.mode=28;case 28:if(S.wrap&&S.flags){for(;K<32;){if(J===0)break e;J--,z+=P[G++]<<K,K+=8}if(z!==(4294967295&S.total)){I.msg="incorrect length check",S.mode=30;break}K=z=0}S.mode=29;case 29:ue=1;break e;case 30:ue=-3;break e;case 31:return-4;default:return c}return I.next_out=ie,I.avail_out=ne,I.next_in=G,I.avail_in=J,S.hold=z,S.bits=K,(S.wsize||he!==I.avail_out&&S.mode<30&&(S.mode<27||M!==4))&&O(I,I.output,I.next_out,he-I.avail_out)?(S.mode=31,-4):(ge-=I.avail_in,he-=I.avail_out,I.total_in+=ge,I.total_out+=he,S.total+=he,S.wrap&&he&&(I.adler=S.check=S.flags?a(S.check,Y,he,I.next_out-he):s(S.check,Y,he,I.next_out-he)),I.data_type=S.bits+(S.last?64:0)+(S.mode===12?128:0)+(S.mode===20||S.mode===15?256:0),(ge==0&&he===0||M===4)&&ue===h&&(ue=-5),ue)},t.inflateEnd=function(I){if(!I||!I.state)return c;var M=I.state;return M.window&&(M.window=null),I.state=null,h},t.inflateGetHeader=function(I,M){var S;return I&&I.state?(2&(S=I.state).wrap)==0?c:((S.head=M).done=!1,h):c},t.inflateSetDictionary=function(I,M){var S,P=M.length;return I&&I.state?(S=I.state).wrap!==0&&S.mode!==11?c:S.mode===11&&s(1,M,P,0)!==S.check?-3:O(I,M,P,P)?(S.mode=31,-4):(S.havedict=1,h):c},t.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(r,e,t){"use strict";var i=r("../utils/common"),s=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],a=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],n=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],o=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];e.exports=function(A,l,h,c,d,u,f,m){var g,v,B,w,_,L,k,D,E,O=m.bits,I=0,M=0,S=0,P=0,Y=0,G=0,ie=0,J=0,ne=0,z=0,K=null,ge=0,he=new i.Buf16(16),re=new i.Buf16(16),Me=null,Ne=0;for(I=0;I<=15;I++)he[I]=0;for(M=0;M<c;M++)he[l[h+M]]++;for(Y=O,P=15;1<=P&&he[P]===0;P--);if(P<Y&&(Y=P),P===0)return d[u++]=20971520,d[u++]=20971520,m.bits=1,0;for(S=1;S<P&&he[S]===0;S++);for(Y<S&&(Y=S),I=J=1;I<=15;I++)if(J<<=1,(J-=he[I])<0)return-1;if(0<J&&(A===0||P!==1))return-1;for(re[1]=0,I=1;I<15;I++)re[I+1]=re[I]+he[I];for(M=0;M<c;M++)l[h+M]!==0&&(f[re[l[h+M]]++]=M);if(L=A===0?(K=Me=f,19):A===1?(K=s,ge-=257,Me=a,Ne-=257,256):(K=n,Me=o,-1),I=S,_=u,ie=M=z=0,B=-1,w=(ne=1<<(G=Y))-1,A===1&&852<ne||A===2&&592<ne)return 1;for(;;){for(k=I-ie,E=f[M]<L?(D=0,f[M]):f[M]>L?(D=Me[Ne+f[M]],K[ge+f[M]]):(D=96,0),g=1<<I-ie,S=v=1<<G;d[_+(z>>ie)+(v-=g)]=k<<24|D<<16|E|0,v!==0;);for(g=1<<I-1;z&g;)g>>=1;if(g!==0?(z&=g-1,z+=g):z=0,M++,--he[I]==0){if(I===P)break;I=l[h+f[M]]}if(Y<I&&(z&w)!==B){for(ie===0&&(ie=Y),_+=S,J=1<<(G=I-ie);G+ie<P&&!((J-=he[G+ie])<=0);)G++,J<<=1;if(ne+=1<<G,A===1&&852<ne||A===2&&592<ne)return 1;d[B=z&w]=Y<<24|G<<16|_-u|0}}return z!==0&&(d[_+z]=I-ie<<24|64<<16|0),m.bits=Y,0}},{"../utils/common":41}],51:[function(r,e,t){"use strict";e.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(r,e,t){"use strict";var i=r("../utils/common"),s=0,a=1;function n($){for(var te=$.length;0<=--te;)$[te]=0}var o=0,A=29,l=256,h=l+1+A,c=30,d=19,u=2*h+1,f=15,m=16,g=7,v=256,B=16,w=17,_=18,L=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],k=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],D=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],E=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],O=new Array(2*(h+2));n(O);var I=new Array(2*c);n(I);var M=new Array(512);n(M);var S=new Array(256);n(S);var P=new Array(A);n(P);var Y,G,ie,J=new Array(c);function ne($,te,fe,pe,ae){this.static_tree=$,this.extra_bits=te,this.extra_base=fe,this.elems=pe,this.max_length=ae,this.has_stree=$&&$.length}function z($,te){this.dyn_tree=$,this.max_code=0,this.stat_desc=te}function K($){return $<256?M[$]:M[256+($>>>7)]}function ge($,te){$.pending_buf[$.pending++]=255&te,$.pending_buf[$.pending++]=te>>>8&255}function he($,te,fe){$.bi_valid>m-fe?($.bi_buf|=te<<$.bi_valid&65535,ge($,$.bi_buf),$.bi_buf=te>>m-$.bi_valid,$.bi_valid+=fe-m):($.bi_buf|=te<<$.bi_valid&65535,$.bi_valid+=fe)}function re($,te,fe){he($,fe[2*te],fe[2*te+1])}function Me($,te){for(var fe=0;fe|=1&$,$>>>=1,fe<<=1,0<--te;);return fe>>>1}function Ne($,te,fe){var pe,ae,ye=new Array(f+1),De=0;for(pe=1;pe<=f;pe++)ye[pe]=De=De+fe[pe-1]<<1;for(ae=0;ae<=te;ae++){var be=$[2*ae+1];be!==0&&($[2*ae]=Me(ye[be]++,be))}}function Ee($){var te;for(te=0;te<h;te++)$.dyn_ltree[2*te]=0;for(te=0;te<c;te++)$.dyn_dtree[2*te]=0;for(te=0;te<d;te++)$.bl_tree[2*te]=0;$.dyn_ltree[2*v]=1,$.opt_len=$.static_len=0,$.last_lit=$.matches=0}function Ge($){8<$.bi_valid?ge($,$.bi_buf):0<$.bi_valid&&($.pending_buf[$.pending++]=$.bi_buf),$.bi_buf=0,$.bi_valid=0}function yt($,te,fe,pe){var ae=2*te,ye=2*fe;return $[ae]<$[ye]||$[ae]===$[ye]&&pe[te]<=pe[fe]}function Xe($,te,fe){for(var pe=$.heap[fe],ae=fe<<1;ae<=$.heap_len&&(ae<$.heap_len&&yt(te,$.heap[ae+1],$.heap[ae],$.depth)&&ae++,!yt(te,pe,$.heap[ae],$.depth));)$.heap[fe]=$.heap[ae],fe=ae,ae<<=1;$.heap[fe]=pe}function Mi($,te,fe){var pe,ae,ye,De,be=0;if($.last_lit!==0)for(;pe=$.pending_buf[$.d_buf+2*be]<<8|$.pending_buf[$.d_buf+2*be+1],ae=$.pending_buf[$.l_buf+be],be++,pe===0?re($,ae,te):(re($,(ye=S[ae])+l+1,te),(De=L[ye])!==0&&he($,ae-=P[ye],De),re($,ye=K(--pe),fe),(De=k[ye])!==0&&he($,pe-=J[ye],De)),be<$.last_lit;);re($,v,te)}function oi($,te){var fe,pe,ae,ye=te.dyn_tree,De=te.stat_desc.static_tree,be=te.stat_desc.has_stree,$e=te.stat_desc.elems,Gt=-1;for($.heap_len=0,$.heap_max=u,fe=0;fe<$e;fe++)ye[2*fe]!==0?($.heap[++$.heap_len]=Gt=fe,$.depth[fe]=0):ye[2*fe+1]=0;for(;$.heap_len<2;)ye[2*(ae=$.heap[++$.heap_len]=Gt<2?++Gt:0)]=1,$.depth[ae]=0,$.opt_len--,be&&($.static_len-=De[2*ae+1]);for(te.max_code=Gt,fe=$.heap_len>>1;1<=fe;fe--)Xe($,ye,fe);for(ae=$e;fe=$.heap[1],$.heap[1]=$.heap[$.heap_len--],Xe($,ye,1),pe=$.heap[1],$.heap[--$.heap_max]=fe,$.heap[--$.heap_max]=pe,ye[2*ae]=ye[2*fe]+ye[2*pe],$.depth[ae]=($.depth[fe]>=$.depth[pe]?$.depth[fe]:$.depth[pe])+1,ye[2*fe+1]=ye[2*pe+1]=ae,$.heap[1]=ae++,Xe($,ye,1),2<=$.heap_len;);$.heap[--$.heap_max]=$.heap[1],(function(xt,ys){var Or,Os,pr,Ct,ra,Ha,xs=ys.dyn_tree,_c=ys.max_code,Na=ys.stat_desc.static_tree,Bu=ys.stat_desc.has_stree,iA=ys.stat_desc.extra_bits,oo=ys.stat_desc.extra_base,$a=ys.stat_desc.max_length,gn=0;for(Ct=0;Ct<=f;Ct++)xt.bl_count[Ct]=0;for(xs[2*xt.heap[xt.heap_max]+1]=0,Or=xt.heap_max+1;Or<u;Or++)$a<(Ct=xs[2*xs[2*(Os=xt.heap[Or])+1]+1]+1)&&(Ct=$a,gn++),xs[2*Os+1]=Ct,_c<Os||(xt.bl_count[Ct]++,ra=0,oo<=Os&&(ra=iA[Os-oo]),Ha=xs[2*Os],xt.opt_len+=Ha*(Ct+ra),Bu&&(xt.static_len+=Ha*(Na[2*Os+1]+ra)));if(gn!==0){do{for(Ct=$a-1;xt.bl_count[Ct]===0;)Ct--;xt.bl_count[Ct]--,xt.bl_count[Ct+1]+=2,xt.bl_count[$a]--,gn-=2}while(0<gn);for(Ct=$a;Ct!==0;Ct--)for(Os=xt.bl_count[Ct];Os!==0;)_c<(pr=xt.heap[--Or])||(xs[2*pr+1]!==Ct&&(xt.opt_len+=(Ct-xs[2*pr+1])*xs[2*pr],xs[2*pr+1]=Ct),Os--)}})($,te),Ne(ye,Gt,$.bl_count)}function U($,te,fe){var pe,ae,ye=-1,De=te[1],be=0,$e=7,Gt=4;for(De===0&&($e=138,Gt=3),te[2*(fe+1)+1]=65535,pe=0;pe<=fe;pe++)ae=De,De=te[2*(pe+1)+1],++be<$e&&ae===De||(be<Gt?$.bl_tree[2*ae]+=be:ae!==0?(ae!==ye&&$.bl_tree[2*ae]++,$.bl_tree[2*B]++):be<=10?$.bl_tree[2*w]++:$.bl_tree[2*_]++,ye=ae,Gt=(be=0)===De?($e=138,3):ae===De?($e=6,3):($e=7,4))}function ue($,te,fe){var pe,ae,ye=-1,De=te[1],be=0,$e=7,Gt=4;for(De===0&&($e=138,Gt=3),pe=0;pe<=fe;pe++)if(ae=De,De=te[2*(pe+1)+1],!(++be<$e&&ae===De)){if(be<Gt)for(;re($,ae,$.bl_tree),--be!=0;);else ae!==0?(ae!==ye&&(re($,ae,$.bl_tree),be--),re($,B,$.bl_tree),he($,be-3,2)):be<=10?(re($,w,$.bl_tree),he($,be-3,3)):(re($,_,$.bl_tree),he($,be-11,7));ye=ae,Gt=(be=0)===De?($e=138,3):ae===De?($e=6,3):($e=7,4)}}n(J);var le=!1;function X($,te,fe,pe){he($,(o<<1)+(pe?1:0),3),(function(ae,ye,De,be){Ge(ae),be&&(ge(ae,De),ge(ae,~De)),i.arraySet(ae.pending_buf,ae.window,ye,De,ae.pending),ae.pending+=De})($,te,fe,!0)}t._tr_init=function($){le||((function(){var te,fe,pe,ae,ye,De=new Array(f+1);for(ae=pe=0;ae<A-1;ae++)for(P[ae]=pe,te=0;te<1<<L[ae];te++)S[pe++]=ae;for(S[pe-1]=ae,ae=ye=0;ae<16;ae++)for(J[ae]=ye,te=0;te<1<<k[ae];te++)M[ye++]=ae;for(ye>>=7;ae<c;ae++)for(J[ae]=ye<<7,te=0;te<1<<k[ae]-7;te++)M[256+ye++]=ae;for(fe=0;fe<=f;fe++)De[fe]=0;for(te=0;te<=143;)O[2*te+1]=8,te++,De[8]++;for(;te<=255;)O[2*te+1]=9,te++,De[9]++;for(;te<=279;)O[2*te+1]=7,te++,De[7]++;for(;te<=287;)O[2*te+1]=8,te++,De[8]++;for(Ne(O,h+1,De),te=0;te<c;te++)I[2*te+1]=5,I[2*te]=Me(te,5);Y=new ne(O,L,l+1,h,f),G=new ne(I,k,0,c,f),ie=new ne(new Array(0),D,0,d,g)})(),le=!0),$.l_desc=new z($.dyn_ltree,Y),$.d_desc=new z($.dyn_dtree,G),$.bl_desc=new z($.bl_tree,ie),$.bi_buf=0,$.bi_valid=0,Ee($)},t._tr_stored_block=X,t._tr_flush_block=function($,te,fe,pe){var ae,ye,De=0;0<$.level?($.strm.data_type===2&&($.strm.data_type=(function(be){var $e,Gt=4093624447;for($e=0;$e<=31;$e++,Gt>>>=1)if(1&Gt&&be.dyn_ltree[2*$e]!==0)return s;if(be.dyn_ltree[18]!==0||be.dyn_ltree[20]!==0||be.dyn_ltree[26]!==0)return a;for($e=32;$e<l;$e++)if(be.dyn_ltree[2*$e]!==0)return a;return s})($)),oi($,$.l_desc),oi($,$.d_desc),De=(function(be){var $e;for(U(be,be.dyn_ltree,be.l_desc.max_code),U(be,be.dyn_dtree,be.d_desc.max_code),oi(be,be.bl_desc),$e=d-1;3<=$e&&be.bl_tree[2*E[$e]+1]===0;$e--);return be.opt_len+=3*($e+1)+5+5+4,$e})($),ae=$.opt_len+3+7>>>3,(ye=$.static_len+3+7>>>3)<=ae&&(ae=ye)):ae=ye=fe+5,fe+4<=ae&&te!==-1?X($,te,fe,pe):$.strategy===4||ye===ae?(he($,2+(pe?1:0),3),Mi($,O,I)):(he($,4+(pe?1:0),3),(function(be,$e,Gt,xt){var ys;for(he(be,$e-257,5),he(be,Gt-1,5),he(be,xt-4,4),ys=0;ys<xt;ys++)he(be,be.bl_tree[2*E[ys]+1],3);ue(be,be.dyn_ltree,$e-1),ue(be,be.dyn_dtree,Gt-1)})($,$.l_desc.max_code+1,$.d_desc.max_code+1,De+1),Mi($,$.dyn_ltree,$.dyn_dtree)),Ee($),pe&&Ge($)},t._tr_tally=function($,te,fe){return $.pending_buf[$.d_buf+2*$.last_lit]=te>>>8&255,$.pending_buf[$.d_buf+2*$.last_lit+1]=255&te,$.pending_buf[$.l_buf+$.last_lit]=255&fe,$.last_lit++,te===0?$.dyn_ltree[2*fe]++:($.matches++,te--,$.dyn_ltree[2*(S[fe]+l+1)]++,$.dyn_dtree[2*K(te)]++),$.last_lit===$.lit_bufsize-1},t._tr_align=function($){he($,2,3),re($,v,O),(function(te){te.bi_valid===16?(ge(te,te.bi_buf),te.bi_buf=0,te.bi_valid=0):8<=te.bi_valid&&(te.pending_buf[te.pending++]=255&te.bi_buf,te.bi_buf>>=8,te.bi_valid-=8)})($)}},{"../utils/common":41}],53:[function(r,e,t){"use strict";e.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(r,e,t){(function(i){(function(s,a){"use strict";if(!s.setImmediate){var n,o,A,l,h=1,c={},d=!1,u=s.document,f=Object.getPrototypeOf&&Object.getPrototypeOf(s);f=f&&f.setTimeout?f:s,n={}.toString.call(s.process)==="[object process]"?function(B){process.nextTick(function(){g(B)})}:(function(){if(s.postMessage&&!s.importScripts){var B=!0,w=s.onmessage;return s.onmessage=function(){B=!1},s.postMessage("","*"),s.onmessage=w,B}})()?(l="setImmediate$"+Math.random()+"$",s.addEventListener?s.addEventListener("message",v,!1):s.attachEvent("onmessage",v),function(B){s.postMessage(l+B,"*")}):s.MessageChannel?((A=new MessageChannel).port1.onmessage=function(B){g(B.data)},function(B){A.port2.postMessage(B)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,function(B){var w=u.createElement("script");w.onreadystatechange=function(){g(B),w.onreadystatechange=null,o.removeChild(w),w=null},o.appendChild(w)}):function(B){setTimeout(g,0,B)},f.setImmediate=function(B){typeof B!="function"&&(B=new Function(""+B));for(var w=new Array(arguments.length-1),_=0;_<w.length;_++)w[_]=arguments[_+1];var L={callback:B,args:w};return c[h]=L,n(h),h++},f.clearImmediate=m}function m(B){delete c[B]}function g(B){if(d)setTimeout(g,0,B);else{var w=c[B];if(w){d=!0;try{(function(_){var L=_.callback,k=_.args;switch(k.length){case 0:L();break;case 1:L(k[0]);break;case 2:L(k[0],k[1]);break;case 3:L(k[0],k[1],k[2]);break;default:L.apply(a,k)}})(w)}finally{m(B),d=!1}}}}function v(B){B.source===s&&typeof B.data=="string"&&B.data.indexOf(l)===0&&g(+B.data.slice(l.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})});var fv=Symbol(),Hl=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((e,t)=>{this.o=e,this.h=t})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(e,t,i){this.p=0,this.i=0,(this._=e).addController(this);let s=typeof t=="object"?t:{task:t,args:i};this.v=s.task,this.j=s.args,this.m=s.argsEqual??gv,this.k=s.onComplete,this.A=s.onError,this.autoRun=s.autoRun??!0,"initialValue"in s&&(this.u=s.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let e=this.j();if(!Array.isArray(e))throw Error("The args function must return an array");return e}async S(){let e=this.T(),t=this.O;this.O=e,e===t||e===void 0||t!==void 0&&this.m(t,e)||await this.run(e)}async run(e){let t,i;e??=this.T(),this.O=e,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let s=++this.p;this.q=new AbortController;let a=!1;try{t=await this.v(e,{signal:this.q.signal})}catch(n){a=!0,i=n}if(this.p===s){if(t===fv)this.i=0;else{if(a===!1){try{this.k?.(t)}catch{}this.i=2,this.o?.(t)}else{try{this.A?.(i)}catch{}this.i=3,this.h?.(i)}this.u=t,this.l=i}this._.requestUpdate()}}abort(e){this.i===1&&this.q?.abort(e)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(e){switch(this.i){case 0:return e.initial?.();case 1:return e.pending?.();case 2:return e.complete?.(this.value);case 3:return e.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},gv=(r,e)=>r===e||r.length===e.length&&r.every(((t,i)=>!J0(t,e[i])));var pC=Z0(pv(),1),mC=Z0(yv(),1);var zT=function(r){Bs(r,"SpriteState")&&(r.transitionDuration=400),Bs(r,"Component")&&(r.rangeChangeDuration=500,r.interpolationDuration=500,r.sequencedInterpolation=!1,Bs(r,"SankeyDiagram")&&(r.sequencedInterpolation=!0),Bs(r,"FunnelSeries")&&(r.sequencedInterpolation=!0)),Bs(r,"Chart")&&(r.defaultState.transitionDuration=2e3,r.hiddenState.transitionDuration=1e3),Bs(r,"Tooltip")&&(r.animationDuration=400,r.defaultState.transitionDuration=400,r.hiddenState.transitionDuration=400),Bs(r,"Scrollbar")&&(r.animationDuration=500),Bs(r,"Series")&&(r.defaultState.transitionDuration=1e3,r.hiddenState.transitionDuration=700,r.hiddenState.properties.opacity=1,r.showOnInit=!0),Bs(r,"MapSeries")&&(r.hiddenState.properties.opacity=0),Bs(r,"PercentSeries")&&(r.hiddenState.properties.opacity=0),Bs(r,"FunnelSlice")&&(r.defaultState.transitionDuration=800,r.hiddenState.transitionDuration=1e3,r.hiddenState.properties.opacity=1),Bs(r,"Slice")&&(r.defaultState.transitionDuration=700,r.hiddenState.transitionDuration=1e3,r.hiddenState.properties.opacity=1),Bs(r,"Preloader")&&(r.hiddenState.transitionDuration=2e3),Bs(r,"Column")&&(r.defaultState.transitionDuration=700,r.hiddenState.transitionDuration=1e3,r.hiddenState.properties.opacity=1),Bs(r,"Column3D")&&(r.hiddenState.properties.opacity=0)},zh=zT;var xv=/^(?:[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 jT(r){return typeof r=="string"&&xv.test(r)}var bv=jT;function ZT(r){if(!bv(r))throw TypeError("Invalid UUID");let e;return Uint8Array.of((e=parseInt(r.slice(0,8),16))>>>24,e>>>16&255,e>>>8&255,e&255,(e=parseInt(r.slice(9,13),16))>>>8,e&255,(e=parseInt(r.slice(14,18),16))>>>8,e&255,(e=parseInt(r.slice(19,23),16))>>>8,e&255,(e=parseInt(r.slice(24,36),16))/1099511627776&255,e/4294967296&255,e>>>24&255,e>>>16&255,e>>>8&255,e&255)}var _g=ZT;var cs=[];for(let r=0;r<256;++r)cs.push((r+256).toString(16).slice(1));function vv(r,e=0){return(cs[r[e+0]]+cs[r[e+1]]+cs[r[e+2]]+cs[r[e+3]]+"-"+cs[r[e+4]]+cs[r[e+5]]+"-"+cs[r[e+6]]+cs[r[e+7]]+"-"+cs[r[e+8]]+cs[r[e+9]]+"-"+cs[r[e+10]]+cs[r[e+11]]+cs[r[e+12]]+cs[r[e+13]]+cs[r[e+14]]+cs[r[e+15]]).toLowerCase()}function qT(r){r=unescape(encodeURIComponent(r));let e=new Uint8Array(r.length);for(let t=0;t<r.length;++t)e[t]=r.charCodeAt(t);return e}var Bv="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Cv="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Fg(r,e,t,i,s,a){let n=typeof t=="string"?qT(t):t,o=typeof i=="string"?_g(i):i;if(typeof i=="string"&&(i=_g(i)),i?.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let A=new Uint8Array(16+n.length);if(A.set(o),A.set(n,o.length),A=e(A),A[6]=A[6]&15|r,A[8]=A[8]&63|128,s){a=a||0;for(let l=0;l<16;++l)s[a+l]=A[l];return s}return vv(A)}function JT(r,e,t,i){switch(r){case 0:return e&t^~e&i;case 1:return e^t^i;case 2:return e&t^e&i^t&i;case 3:return e^t^i}}function Sg(r,e){return r<<e|r>>>32-e}function eI(r){let e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520],i=new Uint8Array(r.length+1);i.set(r),i[r.length]=128,r=i;let s=r.length/4+2,a=Math.ceil(s/16),n=new Array(a);for(let o=0;o<a;++o){let A=new Uint32Array(16);for(let l=0;l<16;++l)A[l]=r[o*64+l*4]<<24|r[o*64+l*4+1]<<16|r[o*64+l*4+2]<<8|r[o*64+l*4+3];n[o]=A}n[a-1][14]=(r.length-1)*8/Math.pow(2,32),n[a-1][14]=Math.floor(n[a-1][14]),n[a-1][15]=(r.length-1)*8&4294967295;for(let o=0;o<a;++o){let A=new Uint32Array(80);for(let f=0;f<16;++f)A[f]=n[o][f];for(let f=16;f<80;++f)A[f]=Sg(A[f-3]^A[f-8]^A[f-14]^A[f-16],1);let l=t[0],h=t[1],c=t[2],d=t[3],u=t[4];for(let f=0;f<80;++f){let m=Math.floor(f/20),g=Sg(l,5)+JT(m,h,c,d)+u+e[m]+A[f]>>>0;u=d,d=c,c=Sg(h,30)>>>0,h=l,l=g}t[0]=t[0]+l>>>0,t[1]=t[1]+h>>>0,t[2]=t[2]+c>>>0,t[3]=t[3]+d>>>0,t[4]=t[4]+u>>>0}return Uint8Array.of(t[0]>>24,t[0]>>16,t[0]>>8,t[0],t[1]>>24,t[1]>>16,t[1]>>8,t[1],t[2]>>24,t[2]>>16,t[2]>>8,t[2],t[3]>>24,t[3]>>16,t[3]>>8,t[3],t[4]>>24,t[4]>>16,t[4]>>8,t[4])}var wv=eI;function Lg(r,e,t,i){return Fg(80,wv,r,e,t,i)}Lg.DNS=Bv;Lg.URL=Cv;var jh=Lg;var Oe=class r{constructor(e){this._value=e}get value(){return this._value/100}get percent(){return this._value}toString(){return""+this._value+"%"}interpolate(e,t){return e+this.value*(t-e)}static normalize(e,t,i){return e instanceof r?e:t===i?new r(0):new r(Math.min(Math.max((e-t)*(1/(i-t)),0),1)*100)}};function Ve(r){return new Oe(r)}var Bi=Ve(0),Ae=Ve(100),Ce=Ve(50);function Tg(r){return r instanceof Oe}function hs(r){return Number(r)!==r}function tI(r){return{}.toString.call(r)}function ds(r){if(r!=null&&!j(r)){let e=Number(r);if(hs(e)&&ba(r)&&r!=""&&r.match(/[0-9]+/)){let t=r.replace(/[^0-9.\-]+/g,"");return r===t?e:ds(t)}return e}return r}function Fv(r){if(Zh(r))return new Date(r);if(j(r))return new Date(r);{let e=Number(r);return j(e)?new Date(e):new Date(r)}}function Sv(r){if(hs(r))return"NaN";if(r===1/0)return"Infinity";if(r===-1/0)return"-Infinity";if(r===0&&1/r===-1/0)return"-0";let e=r<0;r=Math.abs(r);let t=/^([0-9]+)(?:\.([0-9]+))?(?:e[\+\-]([0-9]+))?$/.exec(""+r),i=t[1],s=t[2]||"",a;if(t[3]===void 0)a=s===""?i:i+"."+s;else{let n=+t[3];if(r<1){let o=n-1;a="0."+_v("0",o)+i+s}else{let o=n-s.length;o===0?a=i+s:o<0?a=i+s.slice(0,o)+"."+s.slice(o):a=i+s+_v("0",o)}}return e?"-"+a:a}function _v(r,e){return new Array(e+1).join(r)}function Zh(r){return tI(r)==="[object Date]"}function ba(r){return typeof r=="string"}function j(r){return typeof r=="number"&&Number(r)==r}function Sr(r){return typeof r=="object"&&r!==null}function qh(r){return Array.isArray(r)}var Lr="__\xA7\xA7\xA7__",In="__\xA7\xA7\xA7\xA7__";function va(r,e){let t=r.length;for(let i=0;i<t;++i)if(r[i]===e)return i;return-1}function Lv(r,e){let t=r.length;for(let i=0;i<t;++i)if(e(r[i]))return!0;return!1}function Nl(r,e){let t=r.length,i=new Array(t);for(let s=0;s<t;++s)i[s]=e(r[s],s);return i}function W(r,e){let t=r.length;for(let i=0;i<t;++i)e(r[i],i)}function Dn(r,e){let t=r.length;for(;t>0;)--t,e(r[t],t)}function $l(r,e){let t=r.length;for(let i=0;i<t&&e(r[i],i);++i);}function Ci(r,e){let t=!1,i=0;for(;;){if(i=r.indexOf(e,i),i===-1)return t;t=!0,r.splice(i,1)}}function yi(r,e){let t=r.indexOf(e);return t!==-1?(r.splice(t,1),!0):!1}function Vl(r,e,t){let i=va(r,e);i!==-1&&Jh(r,i),t==null?r.push(e):Kl(r,t,e)}function kn(r,e){r.indexOf(e)===-1&&r.push(e)}function Xl(r){let e=r.length,t=new Array(e);for(let i=0;i<e;++i)t[i]=r[i];return t}function Kl(r,e,t){r.splice(e,0,t)}function Jh(r,e){r.splice(e,1)}function Ig(r,e){let t=r.length;for(let i=0;i<t;++i)if(e(r[i],i))return i;return-1}function iI(r,e){let t=r.length;for(;t>0;)if(--t,e(r[t],t))return t;return-1}function ed(r,e){let t=Ig(r,e);if(t!==-1)return r[t]}function Tv(r,e){let t=iI(r,e);if(t!==-1)return r[t]}function Gl(r,e){let t=0,i=r.length,s=!1;for(;t<i;){let a=t+i>>1,n=e(r[a]);if(n<0)t=a+1;else if(n===0){for(s=!0,t=a+1;t<i&&e(r[t])===0;t++);t--;break}else i=a}return{found:s,index:t}}function td(r,e){let t=0,i=r.length,s=!1;for(;t<i;){let a=t+i>>1,n=e(r[a]);n<0?t=a+1:(n===0&&(s=!0),i=a)}return{found:s,index:t}}function Do(r,e){let t=r.length;for(;t>0;)--t,e(r[t])||r.splice(t,1)}function $i(r){return Object.keys(r)}function Ar(r){return Object.entries(r)}function Dg(r,e){return $i(r).sort(e)}function Tr(r){return Object.assign({},r)}function Ye(r,e){$i(r).forEach(t=>{e(t,r[t])})}function Iv(r,e){for(let t in r)if(sI(r,t)&&!e(t,r[t]))break}function tn(r,e,t){W(Dg(r,t),i=>{e(i,r[i])})}function sI(r,e){return{}.hasOwnProperty.call(r,e)}var Un=class{constructor(){this._disposed=!1}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}},jt=class{constructor(e){this._disposed=!1,this._dispose=e}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}},id=class extends Un{constructor(){super(...arguments),this._disposers=[]}_dispose(){W(this._disposers,e=>{e.dispose()})}},ci=class extends Un{constructor(e){super(),this._disposers=e}_dispose(){W(this._disposers,e=>{e.dispose()})}get disposers(){return this._disposers}};var TA=class extends jt{constructor(){super(...arguments),this._counter=0}increment(){return++this._counter,new jt(()=>{--this._counter,this._counter===0&&this.dispose()})}};function Uv(r){r.parentNode&&r.parentNode.removeChild(r)}function Zt(r,e,t,i){return r.addEventListener(e,t,i||!1),new jt(()=>{r.removeEventListener(e,t,i||!1)})}function rd(r){return Zt(window,"resize",e=>{r()})}function Ir(r){switch(r){case"touchevents":return window.hasOwnProperty("TouchEvent");case"pointerevents":return window.hasOwnProperty("PointerEvent");case"mouseevents":return window.hasOwnProperty("MouseEvent");case"wheelevents":return window.hasOwnProperty("WheelEvent");case"keyboardevents":return window.hasOwnProperty("KeyboardEvent")}return!1}function ad(r){return r.pointerId||0}function Qv(){if(document.activeElement&&document.activeElement!=document.body)if(document.activeElement.blur)document.activeElement.blur();else{let r=document.createElement("button");r.style.position="fixed",r.style.top="0px",r.style.left="-10000px",document.body.appendChild(r),r.focus(),r.blur(),document.body.removeChild(r)}}function Ev(r){r&&r.focus()}function nd(r){if(Ir("pointerevents"))return r;if(Ir("touchevents"))switch(r){case"pointerover":return"touchstart";case"pointerout":return"touchend";case"pointerleave":return"touchend";case"pointerdown":return"touchstart";case"pointermove":return"touchmove";case"pointerup":return"touchend";case"click":return"click";case"dblclick":return"dblclick"}else if(Ir("mouseevents"))switch(r){case"pointerover":return"mouseover";case"pointerout":return"mouseout";case"pointerleave":return"mouseleave";case"pointerdown":return"mousedown";case"pointermove":return"mousemove";case"pointerup":return"mouseup";case"click":return"click";case"dblclick":return"dblclick"}return r}function Yl(r){if(typeof Touch<"u"&&r instanceof Touch)return!0;if(typeof PointerEvent<"u"&&r instanceof PointerEvent&&r.pointerType!=null)switch(r.pointerType){case"touch":case"pen":case 2:return!0;case"mouse":case 4:return!1;default:return!(r instanceof MouseEvent)}else if(r.type!=null&&r.type.match(/^mouse/))return!1;return!0}function zl(r,e,t){r.style[e]=t}function Rv(r,e){return r.style[e]}function Ug(r){if(r.composedPath){let e=r.composedPath();return e.length===0?null:e[0]}else return r.target}function rI(r,e){let t=e;for(;;){if(r===t)return!0;if(t.parentNode===null){if(t.host==null)return!1;t=t.host}else t=t.parentNode}}function IA(r,e){return r.target&&rI(e.root.dom,r.target)}function En(r,e){e?r.style.pointerEvents="auto":r.style.pointerEvents="none"}function Uo(r){if(r.key!==void 0)return r.key;switch(r.keyCode){case 9:return"Tab";case 13:return"Enter";case 16:return"Shift";case 17:return"Control";case 27:return"Escape";case 32:return" ";case 37:return"ArrowLeft";case 38:return"ArrowUp";case 39:return"ArrowRight";case 40:return"ArrowDown";case 46:return"Delete"}return""+r.keyCode}function Qg(r){let e=r;for(;;){if(e.parentNode===null)return e.host!=null?e:null;e=e.parentNode}}var kg;function aI(r,e=""){if(r===null){if(kg==null){let t=document.createElement("style");t.type="text/css",e!=""&&t.setAttribute("nonce",e),document.head.appendChild(t),kg=t.sheet}return kg}else{let t=document.createElement("style");return t.type="text/css",e!=""&&t.setAttribute("nonce",e),r.appendChild(t),t.sheet}}function Dv(r,e){let t=r.cssRules.length;return r.insertRule(e+"{}",t),r.cssRules[t]}var Wl=class extends Un{constructor(e,t,i,s=""){super(),this._root=aI(e,s);try{this._rule=Dv(this._root,t)}catch{this._rule=Dv(this._root,":not(*)")}Ye(i,(a,n)=>{this.setStyle(a,n)})}set selector(e){this._rule.selectorText=e}get selector(){return this._rule.selectorText}_dispose(){let e=va(this._root.cssRules,this._rule);if(e===-1)throw new Error("Could not dispose StyleRule");this._root.deleteRule(e)}_setVendorPrefixName(e,t){let i=this._rule.style;i.setProperty("-webkit-"+e,t,""),i.setProperty("-moz-"+e,t,""),i.setProperty("-ms-"+e,t,""),i.setProperty("-o-"+e,t,""),i.setProperty(e,t,"")}setStyle(e,t){e==="transition"?this._setVendorPrefixName(e,t):this._rule.style.setProperty(e,t,"")}};function nI(){return/apple/i.test(navigator.vendor)&&"ontouchend"in document}function Mv(){return nI()?1:void 0}function tt(r,e){return j(r)?r:r!=null&&j(r.value)&&j(e)?e*r.value:0}function od(r){let e=(""+r).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return e?Math.max(0,(e[1]?e[1].length:0)-(e[2]?+e[2]:0)):0}function hi(r,e=0,t="0"){return typeof r!="string"&&(r=r.toString()),e>r.length?Array(e-r.length+1).join(t)+r:r}function oI(r){return r.replace(/^[\s]*/,"")}function AI(r){return r.replace(/[\s]*$/,"")}function Qn(r){return oI(AI(r))}function Pv(r,e,t=!1,i="..."){if(r.length>e){let s=e-1;for(;s>=0&&r.charAt(s).match(/\w/);)s--;return s>=0&&t==!1?r.substring(0,s+1)+"...":r.substring(0,e)+i}else return r}function Ov(r){if(typeof r>"u")return"string";r=r.toLowerCase().replace(/^\[[^\]]*\]/,""),r=r.replace(/\[[^\]]+\]/,""),r=r.trim();let e=r.match(/\/(date|number|duration)$/);return e?e[1]:r==="number"?"number":r==="date"?"date":r==="duration"?"duration":r.match(/[#0]/)?"number":r.match(/[ymwdhnsqaxkzgtei]/)?"date":"string"}function DA(r){return r.replace(/\/(date|number|duration)$/i,"")}function Eg(r){return r&&r.replace(/<[^>]*>/g,"")}function Rg(r){return r.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}function Hv(r){let e=/[\u0590-\u05FF\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]/,t=/([^اأدذرزو]*[اأدذرزو])/gi,i=r.split(/(\s+)/),s=[];return i.forEach(a=>{if(a.match(/^\s+$/))(a=" ")&&(a=" "),s.push(a);else if(e.test(a)){let n=a.split(t).filter(o=>o!=="");s=s.concat(n)}else s=s.concat([...a])}),s}function Mg(r,e=!1){let t=new Date(r.getFullYear(),0,0),i=r.getTime()-t.getTime()+(t.getTimezoneOffset()-r.getTimezoneOffset())*60*1e3,s=1e3*60*60*24;return Math.floor(i/s)}function ko(r,e=!1){let t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())),i=t.getUTCDay()||7;t.setUTCDate(t.getUTCDate()+4-i);let s=new Date(Date.UTC(t.getUTCFullYear(),0,1));return Math.ceil(((t.getTime()-s.getTime())/864e5+1)/7)}function Nv(r,e=!1){let t=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate())),i=t.getUTCDay()||7;return t.setUTCDate(t.getUTCDate()+4-i),new Date(Date.UTC(t.getUTCFullYear(),0,1)).getFullYear()}function $v(r,e=!1){let t=ko(new Date(r.getFullYear(),r.getMonth(),1),e),i=ko(r,e);return i==1&&(i=53),i-t+1}function Vv(r,e,t=1,i=!1){let s=new Date(e,0,4,0,0,0,0);return i&&s.setUTCFullYear(e),r*7+t-((s.getDay()||7)+3)}function jl(r,e){return r>12?r-=12:r===0&&(r=12),e!=null?r+(e-1):r}function Zl(r,e=!1,t=!1,i=!1,s){if(i)return e?"Coordinated Universal Time":"UTC";if(s){let o=r.toLocaleString("en-US",{timeZone:s}),A=r.toLocaleString("en-US",{timeZone:s,timeZoneName:e?"long":"short"});return Qn(A.substr(o.length))}let a=r.toLocaleString("UTC"),n=r.toLocaleString("UTC",{timeZoneName:e?"long":"short"}).substr(a.length);return t===!1&&(n=n.replace(/ (standard|daylight|summer|winter) /i," ")),Qn(n)}function Xv(r,e){let t=e||new Date(Date.UTC(2012,0,1,0,0,0,0)),i=new Date(t.toLocaleString("en-US",{timeZone:"UTC"}));return(new Date(t.toLocaleString("en-US",{timeZone:r})).getTime()-i.getTime())/6e4*-1}function Pg(r){return r.charAt(0).toUpperCase()+r.slice(1)}function Og(r){let e,t,i,s=r.h,a=r.s,n=r.l;if(a==0)e=t=i=n;else{let o=function(c,d,u){return u<0&&(u+=1),u>1&&(u-=1),u<.16666666666666666?c+(d-c)*6*u:u<.5?d:u<.6666666666666666?c+(d-c)*(.6666666666666666-u)*6:c},A=n<.5?n*(1+a):n+a-n*a,l=2*n-A;e=o(l,A,s+1/3),t=o(l,A,s),i=o(l,A,s-1/3)}return{r:Math.round(e*255),g:Math.round(t*255),b:Math.round(i*255)}}function Hg(r){let e=r.r/255,t=r.g/255,i=r.b/255,s=Math.max(e,t,i),a=Math.min(e,t,i),n=0,o=0,A=(s+a)/2;if(s===a)n=o=0;else{let l=s-a;switch(o=A>.5?l/(2-s-a):l/(s+a),s){case e:n=(t-i)/l+(t<i?6:0);break;case t:n=(i-e)/l+2;break;case i:n=(e-t)/l+4;break}n/=6}return{h:n,s:o,l:A}}function Kv(r,e){return r&&{r:Math.max(0,Math.min(255,r.r+sd(r.r,e))),g:Math.max(0,Math.min(255,r.g+sd(r.g,e))),b:Math.max(0,Math.min(255,r.b+sd(r.b,e))),a:r.a}}function sd(r,e){let t=e>0?255-r:r;return Math.round(t*e)}function Gv(r,e){if(r){let t=Math.min(Math.max(r.r,r.g,r.b),230),i=sd(t,e);return{r:Math.max(0,Math.min(255,Math.round(r.r+i))),g:Math.max(0,Math.min(255,Math.round(r.g+i))),b:Math.max(0,Math.min(255,Math.round(r.b+i))),a:r.a}}else return r}function kv(r){return(r.r*299+r.g*587+r.b*114)/1e3>=128}function Wv(r,e){if(r===void 0||e==1)return r;let t=Hg(r);return t.s=e,Og(t)}function Yv(r,e={r:255,g:255,b:255},t={r:255,g:255,b:255}){let i=e,s=t;return kv(t)&&(i=t,s=e),kv(r)?s:i}function Ue(r,e){return r||(r=[]),[...r,...e].filter((t,i,s)=>s.indexOf(t)===i)}function Ad(r,e){return!(!e||r.left!=e.left||r.right!=e.right||r.top!=e.top||r.bottom!=e.bottom)}function zv(r){return r[0]==="#"&&(r=r.substr(1)),r.length==3&&(r=r[0].repeat(2)+r[1].repeat(2)+r[2].repeat(2)),parseInt(r,16)}function lI(r){r=r.replace(/[ ]/g,"");let e=r.match(/^rgb\(([0-9]*),([0-9]*),([0-9]*)\)/i);if(e)e.push("1");else if(e=r.match(/^rgba\(([0-9]*),([0-9]*),([0-9]*),([.0-9]*)\)/i),!e)return 0;let t="";for(let i=1;i<=3;i++){let s=parseInt(e[i]).toString(16);s.length==1&&(s="0"+s),t+=s}return zv(t)}function us(r){return Ie.fromAny(r)}var Ie=class r{constructor(e){this._hex=e|0}get hex(){return this._hex}get r(){return this._hex>>>16}get g(){return this._hex>>8&255}get b(){return this._hex&255}toCSS(e=1){return"rgba("+this.r+", "+this.g+", "+this.b+", "+e+")"}toCSSHex(){return"#"+hi(this.r.toString(16),2)+hi(this.g.toString(16),2)+hi(this.b.toString(16),2)}toHSL(e=1){return Hg({r:this.r,g:this.g,b:this.b,a:e})}static fromHSL(e,t,i){let s=Og({h:e,s:t,l:i});return this.fromRGB(s.r,s.g,s.b)}toString(){return this.toCSSHex()}static fromHex(e){return new r(e)}static fromRGB(e,t,i){return new r((i|0)+(t<<8)+(e<<16))}static fromString(e){return new r(zv(e))}static fromCSS(e){return new r(lI(e))}static fromAny(e){if(ba(e)){if(e[0]=="#")return r.fromString(e);if(e.substr(0,3)=="rgb")return r.fromCSS(e)}else{if(j(e))return r.fromHex(e);if(e instanceof r)return r.fromHex(e.hex)}throw new Error("Unknown color syntax: "+e)}static alternative(e,t,i){let s=Yv({r:e.r,g:e.g,b:e.b},t?{r:t.r,g:t.g,b:t.b}:void 0,i?{r:i.r,g:i.g,b:i.b}:void 0);return this.fromRGB(s.r,s.g,s.b)}static interpolate(e,t,i,s="rgb"){if(s=="hsl"){let a=t.toHSL(),n=i.toHSL();return r.fromHSL(sn(e,a.h,n.h),sn(e,a.s,n.s),sn(e,a.l,n.l))}else return r.fromRGB(sn(e,t.r,i.r),sn(e,t.g,i.g),sn(e,t.b,i.b))}static lighten(e,t){let i=Kv({r:e.r,g:e.g,b:e.b},t);return r.fromRGB(i.r,i.g,i.b)}static brighten(e,t){let i=Gv({r:e.r,g:e.g,b:e.b},t);return r.fromRGB(i.r,i.g,i.b)}static saturate(e,t){let i=Wv({r:e.r,g:e.g,b:e.b},t);return r.fromRGB(i.r,i.g,i.b)}};var lr=class{constructor(){this._listeners=[],this._killed=[],this._disabled={},this._iterating=0,this._enabled=!0,this._disposed=!1}isDisposed(){return this._disposed}dispose(){if(!this._disposed){this._disposed=!0;let e=this._listeners;this._iterating=1,this._listeners=null,this._disabled=null;try{W(e,t=>{t.disposer.dispose()})}finally{this._killed=null,this._iterating=null}}}hasListeners(){return this._listeners.length!==0}hasListenersByType(e){return Lv(this._listeners,t=>(t.type===null||t.type===e)&&!t.killed)}enable(){this._enabled=!0}disable(){this._enabled=!1}enableType(e){delete this._disabled[e]}disableType(e,t=1/0){this._disabled[e]=t}_removeListener(e){if(this._iterating===0){let t=this._listeners.indexOf(e);if(t===-1)throw new Error("Invalid state: could not remove listener");this._listeners.splice(t,1)}else this._killed.push(e)}_removeExistingListener(e,t,i,s){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(a=>{a.once===e&&a.type===t&&(i===void 0||a.callback===i)&&a.context===s&&a.disposer.dispose()})}isEnabled(e){if(this._disposed)throw new Error("EventDispatcher is disposed");return this._enabled&&this._listeners.length>0&&this.hasListenersByType(e)&&this._disabled[e]===void 0}removeType(e){if(this._disposed)throw new Error("EventDispatcher is disposed");this._eachListener(t=>{t.type===e&&t.disposer.dispose()})}has(e,t,i){return Ig(this._listeners,a=>a.once!==!0&&a.type===e&&(t===void 0||a.callback===t)&&a.context===i)!==-1}_shouldDispatch(e){if(this._disposed)throw new Error("EventDispatcher is disposed");let t=this._disabled[e];return j(t)?(t<=1?delete this._disabled[e]:--this._disabled[e],!1):this._enabled}_eachListener(e){++this._iterating;try{W(this._listeners,e)}finally{--this._iterating,this._iterating===0&&this._killed.length!==0&&(W(this._killed,t=>{this._removeListener(t)}),this._killed.length=0)}}dispatch(e,t){this._shouldDispatch(e)&&this._eachListener(i=>{!i.killed&&(i.type===null||i.type===e)&&(i._debounceDelay?(i._debounceTimeout&&window.clearTimeout(i._debounceTimeout),i._debounceTimeout=window.setTimeout(()=>{i._debounceTimeout=void 0,i.killed||i.dispatch(e,t)},i._debounceDelay)):i.dispatch(e,t))})}_on(e,t,i,s,a,n,o){if(this._disposed)throw new Error("EventDispatcher is disposed");this._removeExistingListener(e,t,i,s);let A={type:t,callback:i,context:s,shouldClone:a,dispatch:n,killed:!1,once:e,disposer:new jt(()=>{A.killed=!0,A._debounceTimeout&&window.clearTimeout(A._debounceTimeout),this._removeListener(A)}),_debounceDelay:o};return this._listeners.push(A),A}onAll(e,t,i=!0){return this._on(!1,null,e,t,i,(s,a)=>e.call(t,a)).disposer}on(e,t,i,s=!0){return this._on(!1,e,t,i,s,(a,n)=>t.call(i,n)).disposer}onDebounced(e,t,i,s,a=!0){return this._on(!1,e,t,s,a,(n,o)=>t.call(s,o),i).disposer}once(e,t,i,s=!0){let a=this._on(!0,e,t,i,s,(n,o)=>{a.disposer.dispose(),t.call(i,o)});return a.disposer}off(e,t,i){this._removeExistingListener(!1,e,t,i)}copyFrom(e){if(this._disposed)throw new Error("EventDispatcher is disposed");if(e===this)throw new Error("Cannot copyFrom the same TargetedEventDispatcher");let t=[];return W(e._listeners,i=>{!i.killed&&i.shouldClone&&(i.type===null?t.push(this.onAll(i.callback,i.context)):i.once?t.push(this.once(i.type,i.callback,i.context)):t.push(this.on(i.type,i.callback,i.context)))}),new ci(t)}};function Ng(r){return Ze(this,void 0,void 0,function*(){if(r!==void 0){let e=[];Ye(r,(t,i)=>{e.push(i.waitForStop())}),yield Promise.all(e)}})}function sn(r,e,t){return e+r*(t-e)}function cI(r,e,t){return r>=1?t:e}function $g(r,e,t){return new Oe(sn(r,e.percent,t.percent))}function hI(r,e,t){return Ie.interpolate(r,e,t)}function jv(r,e){return typeof r=="number"&&typeof e=="number"?sn:r instanceof Oe&&e instanceof Oe?$g:r instanceof Ie&&e instanceof Ie?hI:cI}var rn;(function(r){r[r.Stopped=0]="Stopped",r[r.Playing=1]="Playing",r[r.Paused=2]="Paused"})(rn||(rn={}));function ql(r,e){if(!(r>=0&&r<e))throw new Error("Index out of bounds: "+r)}var cr=class{constructor(e=[]){this.events=new lr,this._values=e}get values(){return this._values}contains(e){return this._values.indexOf(e)!==-1}removeValue(e){let t=0,i=this._values.length;for(;t<i;)this._values[t]===e?(this.removeIndex(t),--i):++t}indexOf(e){return va(this._values,e)}get length(){return this._values.length}hasIndex(e){return e>=0&&e<this._values.length}getIndex(e){return this._values[e]}_onPush(e){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:e})}_onInsertIndex(e,t){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:e,newValue:t})}_onSetIndex(e,t,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:e,oldValue:t,newValue:i})}_onSwap(e,t){this.events.isEnabled("swap")&&this.events.dispatch("swap",{type:"swap",target:this,a:e,b:t})}_onRemoveIndex(e,t){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:e,oldValue:t})}_onMoveIndex(e,t,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:e,newIndex:t,value:i})}_onClear(e){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:e})}setIndex(e,t){ql(e,this._values.length);let i=this._values[e];return i!==t&&(this._values[e]=t,this._onSetIndex(e,i,t)),i}insertIndex(e,t){return ql(e,this._values.length+1),Kl(this._values,e,t),this._onInsertIndex(e,t),t}swap(e,t){let i=this._values.length;if(ql(e,i),ql(t,i),e!==t){let s=this._values[e],a=this._values[t];this._values[e]=a,this._values[t]=s,this._onSwap(s,a)}}removeIndex(e){ql(e,this._values.length);let t=this._values[e];return Jh(this._values,e),this._onRemoveIndex(e,t),t}moveValue(e,t){let i=this.indexOf(e);if(i!==-1)if(Jh(this._values,i),t==null){let s=this._values.length;this._values.push(e),this._onMoveIndex(i,s,e)}else Kl(this._values,t,e),this._onMoveIndex(i,t,e);else t==null?(this._values.push(e),this._onPush(e)):(Kl(this._values,t,e),this._onInsertIndex(t,e));return e}push(e){return this._values.push(e),this._onPush(e),e}unshift(e){return this.insertIndex(0,e),e}pushAll(e){W(e,t=>{this.push(t)})}copyFrom(e){this.pushAll(e._values)}pop(){return this._values.length-1<0?void 0:this.removeIndex(this._values.length-1)}shift(){return this._values.length?this.removeIndex(0):void 0}setAll(e){let t=this._values;this._values=[],this._onClear(t),W(e,i=>{this._values.push(i),this._onPush(i)})}clear(){this.setAll([])}*[Symbol.iterator](){let e=this._values.length;for(let t=0;t<e;++t)yield this._values[t]}each(e){W(this._values,e)}eachReverse(e){Dn(this._values,e)}},Rn=class extends cr{constructor(){super(...arguments),this.autoDispose=!0,this._disposed=!1}swap(e,t){let i=this.autoDispose;this.autoDispose=!1,super.swap(e,t),this.autoDispose=i}_onSetIndex(e,t,i){this.autoDispose&&t.dispose(),super._onSetIndex(e,t,i)}_onRemoveIndex(e,t){this.autoDispose&&t.dispose(),super._onRemoveIndex(e,t)}_onClear(e){this.autoDispose&&W(e,t=>{t.dispose()}),super._onClear(e)}_dispose(){this.autoDispose&&W(this._values,e=>{e.dispose()})}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}},wt=class extends Rn{constructor(e,t){super(),this.template=e,this.make=t}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}};var ld=class extends cr{constructor(e){super(),this._disposed=!1,this._container=e,this._events=this.events.onAll(t=>{if(t.type==="clear")W(t.oldValues,i=>{this._onRemoved(i)});else if(t.type==="push")this._onInserted(t.newValue);else if(t.type==="setIndex")this._onRemoved(t.oldValue),this._onInserted(t.newValue,t.index);else if(t.type==="insertIndex")this._onInserted(t.newValue,t.index);else if(t.type==="removeIndex")this._onRemoved(t.oldValue);else if(t.type==="moveIndex")this._onRemoved(t.value),this._onInserted(t.value,t.newIndex);else throw new Error("Unknown IListEvent type")})}_onInserted(e,t){e._setParent(this._container,!0);let i=this._container._childrenDisplay;t===void 0?i.addChild(e._display):i.addChildAt(e._display,t)}_onRemoved(e){this._container._childrenDisplay.removeChild(e._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),W(this.values,e=>{e.dispose()}))}};var Xg=Math.PI,n$=Xg/2,ai=Xg/180,zs=180/Xg;function di(r,e,t){if(!j(e)||e<=0){let i=Math.round(r);return t&&i-r==.5&&i--,i}else{let i=Math.pow(10,e);return Math.round(r*i)/i}}function Kg(r,e){if(!j(e)||e<=0)return Math.ceil(r);{let t=Math.pow(10,e);return Math.ceil(r*t)/t}}function It(r,e,t){return Math.min(Math.max(r,e),t)}function mt(r){return Math.sin(ai*r)}function Bt(r){return Math.cos(ai*r)}function _s(r){return r=r%360,r<0&&(r+=360),r}function Mn(r,e,t,i,s){let a=Number.MAX_VALUE,n=Number.MAX_VALUE,o=-Number.MAX_VALUE,A=-Number.MAX_VALUE,l=[];l.push(Vg(s,t)),l.push(Vg(s,i));let h=Math.min(Math.floor(t/90)*90,Math.floor(i/90)*90),c=Math.max(Math.ceil(t/90)*90,Math.ceil(i/90)*90);for(let d=h;d<=c;d+=90)d>=t&&d<=i&&l.push(Vg(s,d));for(let d=0;d<l.length;d++){let u=l[d];u.x<a&&(a=u.x),u.y<n&&(n=u.y),u.x>o&&(o=u.x),u.y>A&&(A=u.y)}return{left:r+a,top:e+n,right:r+o,bottom:e+A}}function Vg(r,e){return{x:r*Bt(e),y:r*mt(e)}}function cd(r){let e=r.length;if(e>0){let t=r[0],i=t.left,s=t.top,a=t.right,n=t.bottom;if(e>1)for(let o=1;o<e;o++)t=r[o],i=Math.min(t.left,i),a=Math.max(t.right,a),s=Math.min(t.top,s),n=Math.max(t.bottom,n);return{left:i,right:a,top:s,bottom:n}}return{left:0,right:0,top:0,bottom:0}}function Gg(r,e,t){if(e>t){let n=e;e=t,t=n}r=_s(r);let i=(e-_s(e))/360;r<e&&(r+=360*(i+1));let s=e+(t-e)/2+180,a=e+(t-e)/2-180;return r>t&&(r-360>e?r-=360:r<s?r=t:r=e),r<e&&(r>a?r=e:r=t),r}function Zv(r,e){return r.x>=e.left&&r.y>=e.top&&r.x<=e.right&&r.y<=e.bottom}function Wg(r){return r}function Wr(r){return r*r*r}function an(r){return function(e){return 1-r(1-e)}}var qv=4/11,o$=6/11,A$=8/11,l$=3/4,c$=9/11,h$=10/11,d$=15/16,u$=21/22,f$=63/64,g$=1/qv/qv;var dI=2*Math.PI,uI=1,fI=.3/dI,p$=Math.asin(1/uI)*fI;var Yg=class{constructor(e,t){this._userSettings={},this._entity=e,this._settings=t,Ye(t,i=>{this._userSettings[i]=!0})}get(e,t){let i=this._settings[e];return i!==void 0?i:t}setRaw(e,t){this._settings[e]=t}set(e,t){this._userSettings[e]=!0,this.setRaw(e,t)}remove(e){delete this._userSettings[e],delete this._settings[e]}setAll(e){Ar(e).forEach(([t,i])=>{this.set(t,i)})}_eachSetting(e){Ye(this._settings,e)}apply(){let e={};e.stateAnimationEasing=!0,e.stateAnimationDuration=!0;let t=this._entity.states.lookup("default");this._eachSetting((i,s)=>{e[i]||(e[i]=!0,this!==t&&(i in t._settings||(t._settings[i]=this._entity.get(i))),this._entity.set(i,s))})}applyAnimate(e){e==null&&(e=this._settings.stateAnimationDuration),e==null&&(e=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let t=this._settings.stateAnimationEasing;t==null&&(t=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",Wr)));let i=this._entity.states.lookup("default"),s={};s.stateAnimationEasing=!0,s.stateAnimationDuration=!0;let a={};return this._eachSetting((n,o)=>{if(!s[n]){s[n]=!0,this!=i&&(n in i._settings||(i._settings[n]=this._entity.get(n)));let A=this._entity.animate({key:n,to:o,duration:e,easing:t});A&&(a[n]=A)}}),a}},dd=class{constructor(e){this._states={},this._entity=e}lookup(e){return this._states[e]}create(e,t){let i=this._states[e];if(i)return i.setAll(t),i;{let s=new Yg(this._entity,t);return this._states[e]=s,s}}remove(e){delete this._states[e]}apply(e){let t=this._states[e];t&&t.apply(),this._entity._applyState(e)}applyAnimate(e,t){let i,s=this._states[e];return s&&(i=s.applyAnimate(t)),this._entity._applyStateAnimated(e,t),i}};var zg=class{constructor(){this.version="5.17.2",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1}},Qs=new zg;function jg(r){Qs.licenses.push(r)}function js(r,e){return r===e?0:r<e?-1:1}function ud(r,e,t){let i=r.length,s=e.length,a=Math.min(i,s);for(let n=0;n<a;++n){let o=t(r[n],e[n]);if(o!==0)return o}return js(i,s)}function Zg(r,e){return r===e?0:r<e?-1:1}var qg=class{constructor(e){this._callbacks={},this._disabled={},this._entity=e}add(e,t){let i=this._callbacks[e];return i===void 0&&(i=this._callbacks[e]=[]),i.push(t),this._entity._markDirtyKey(e),new jt(()=>{yi(i,t)&&this._entity._markDirtyKey(e)})}remove(e){let t=this._callbacks[e];t!==void 0&&(delete this._callbacks[e],t.length!==0&&this._entity._markDirtyKey(e))}enable(e){this._disabled[e]&&(delete this._disabled[e],this._entity._markDirtyKey(e))}disable(e){this._disabled[e]||(this._disabled[e]=!0,this._entity._markDirtyKey(e))}fold(e,t){if(!this._disabled[e]){let i=this._callbacks[e];if(i!==void 0)for(let s=0,a=i.length;s<a;++s)t=i[s](t,this._entity,e)}return t}},kA=class{constructor(e,t,i,s,a,n,o){this._time=0,this._stopped=!1,this._playing=!0,this.events=new lr,this._animation=e,this._from=t,this._to=i,this._duration=s,this._easing=a,this._loops=n,this._interpolate=jv(t,i),this._oldTime=o}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){!this._stopped&&!this._playing&&(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise((e,t)=>{if(this._stopped)e();else{let i=()=>{s.dispose(),e()},s=this.events.on("stopped",i)}})}_checkEnded(){return this._loops>1?(--this._loops,!1):!0}_run(e){this._oldTime!==null&&(this._time+=e-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=e}_reset(e){this._oldTime=e,this._time=0}_value(e){return e>=1?this._to:e<=0?this._from:this._interpolate(this._easing(e),this._from,this._to)}},gI=0,ec=class{constructor(e){this.uid=++gI,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this.enableDispose=!0,this._settings=e}_checkDirty(){$i(this._settings).forEach(e=>{this._userProperties[e]=!0,this._markDirtyKey(e)})}resetUserSettings(){this._userProperties={}}_runAnimation(e){let t=rn.Stopped;if(!this.isDisposed()){let i=!1,s=!1;Ye(this._animatingSettings,(a,n)=>{if(n.stopped)this._stopAnimation(a);else if(n.playing){n._run(e);let o=n.percentage;o>=1?n._checkEnded()?this.set(a,n._value(1)):(i=!0,n._reset(e),this._set(a,n._value(1))):(i=!0,this._set(a,n._value(o)))}else s=!0}),Ye(this._animatingPrivateSettings,(a,n)=>{if(n.stopped)this._stopAnimationPrivate(a);else if(n.playing){n._run(e);let o=n.percentage;o>=1?n._checkEnded()?this.setPrivate(a,n._value(1)):(i=!0,n._reset(e),this._setPrivate(a,n._value(1))):(i=!0,this._setPrivate(a,n._value(o)))}else s=!0}),i?t=rn.Playing:s&&(t=rn.Paused)}return t}_markDirtyKey(e){this.markDirty()}_markDirtyPrivateKey(e){this.markDirty()}on(e,t){let i=this._settingEvents[e];return i===void 0&&(i=this._settingEvents[e]=[]),i.push(t),new jt(()=>{yi(i,t),i.length===0&&delete this._settingEvents[e]})}off(e,t){let i=this._settingEvents[e];i!==void 0&&t!==void 0?yi(i,t):delete this._settingEvents[e]}onPrivate(e,t){let i=this._privateSettingEvents[e];return i===void 0&&(i=this._privateSettingEvents[e]=[]),i.push(t),new jt(()=>{yi(i,t),i.length===0&&delete this._privateSettingEvents[e]})}offPrivate(e,t){let i=this._privateSettingEvents[e];i!==void 0&&t!==void 0?yi(i,t):delete this._privateSettingEvents[e]}getRaw(e,t){let i=this._settings[e];return i!==void 0?i:t}has(e){return e in this._settings}get(e,t){return this.getRaw(e,t)}_sendKeyEvent(e,t){let i=this._settingEvents[e];i!==void 0&&W(i,s=>{s(t,this,e)})}_sendPrivateKeyEvent(e,t){let i=this._privateSettingEvents[e];i!==void 0&&W(i,s=>{s(t,this,e)})}_setRaw(e,t,i){this._prevSettings[e]=t,this._sendKeyEvent(e,i)}setRaw(e,t){let i=this._settings[e];this._settings[e]=t,i!==t&&this._setRaw(e,i,t)}_set(e,t){let i=this._settings[e];this._settings[e]=t,i!==t&&(this._setRaw(e,i,t),this._markDirtyKey(e))}_stopAnimation(e){let t=this._animatingSettings[e];t&&(delete this._animatingSettings[e],t.stop())}set(e,t){return this._set(e,t),this._stopAnimation(e),t}remove(e){e in this._settings&&(this._prevSettings[e]=this._settings[e],delete this._settings[e],this._sendKeyEvent(e,void 0),this._markDirtyKey(e)),this._stopAnimation(e)}removeAll(){W($i(this._settings),e=>{this.remove(e)})}getPrivate(e,t){let i=this._privateSettings[e];return i!==void 0?i:t}_setPrivateRaw(e,t,i){this._prevPrivateSettings[e]=t,this._sendPrivateKeyEvent(e,i)}setPrivateRaw(e,t){let i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&this._setPrivateRaw(e,i,t)}_setPrivate(e,t){let i=this._privateSettings[e];this._privateSettings[e]=t,i!==t&&(this._setPrivateRaw(e,i,t),this._markDirtyPrivateKey(e))}_stopAnimationPrivate(e){let t=this._animatingPrivateSettings[e];t&&(t.stop(),delete this._animatingPrivateSettings[e])}setPrivate(e,t){return this._setPrivate(e,t),this._stopAnimationPrivate(e),t}removePrivate(e){e in this._privateSettings&&(this._prevPrivateSettings[e]=this._privateSettings[e],delete this._privateSettings[e],this._markDirtyPrivateKey(e)),this._stopAnimationPrivate(e)}setAll(e){Ye(e,(t,i)=>{this.set(t,i)})}animate(e){let t=e.key,i=e.to,s=e.duration||0,a=e.loops||1,n=e.from===void 0?this.get(t):e.from,o=e.easing===void 0?Wg:e.easing;if(s===0)this.set(t,i);else if(n===void 0||n===i)this.set(t,i);else{this.set(t,n);let l=this._animatingSettings[t]=new kA(this,n,i,s,o,a,this._animationTime());return this._startAnimation(),l}let A=new kA(this,n,i,s,o,a,null);return A.stop(),A}animatePrivate(e){let t=e.key,i=e.to,s=e.duration||0,a=e.loops||1,n=e.from===void 0?this.getPrivate(t):e.from,o=e.easing===void 0?Wg:e.easing;if(s===0)this.setPrivate(t,i);else if(n===void 0||n===i)this.setPrivate(t,i);else{this.setPrivate(t,n);let l=this._animatingPrivateSettings[t]=new kA(this,n,i,s,o,a,this._animationTime());return this._startAnimation(),l}let A=new kA(this,n,i,s,o,a,null);return A.stop(),A}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}},pt=class extends ec{constructor(e,t,i,s=[]){if(super(t),this.states=new dd(this),this.adapters=new qg(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=e,this._internalTemplates=s,t.id&&this._registerId(t.id)}static new(e,t,i){let s=new this(e,t,!0);return s._template=i,s._afterNew(),s}static _new(e,t,i=[]){let s=new this(e,t,!0,i);return s._afterNew(),s}_afterNew(){this._checkDirty();let e=!1,t=this._template;t&&(e=!0,t._setObjectTemplate(this)),W(this._internalTemplates,i=>{e=!0,i._setObjectTemplate(this)}),e&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();let e=this._template;e&&e._setObjectTemplate(this),W(this._internalTemplates,t=>{t._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new lr}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(e,t){let i=this.get(e);if(i)return i;{let s=t();return this.set(e,s),s}}_setDefault(e,t){this.has(e)||super.set(e,t)}_setRawDefault(e,t){this.has(e)||super.setRaw(e,t)}_clearDirty(){$i(this._dirty).forEach(e=>{this._dirty[e]=!1}),$i(this._dirtyPrivate).forEach(e=>{this._dirtyPrivate[e]=!1})}isDirty(e){return!!this._dirty[e]}isPrivateDirty(e){return!!this._dirtyPrivate[e]}_markDirtyKey(e){this._dirty[e]=!0,super._markDirtyKey(e)}_markDirtyPrivateKey(e){this._dirtyPrivate[e]=!0,super._markDirtyKey(e)}isType(e){return this.classNames.indexOf(e)!==-1}_pushPropertyDisposer(e,t){let i=this._disposerProperties[e];return i===void 0&&(i=this._disposerProperties[e]=[]),i.push(t),t}_disposeProperty(e){let t=this._disposerProperties[e];t!==void 0&&(W(t,i=>{i.dispose()}),delete this._disposerProperties[e])}set template(e){let t=this._template;t!==e&&(this._template=e,t&&t._removeObjectTemplate(this),e&&e._setObjectTemplate(this),this._applyTemplates())}get template(){return this._template}markDirty(){this._root._addDirtyEntity(this)}_startAnimation(){this._root._addAnimation(this)}_animationTime(){return this._root.animationTime}_applyState(e){}_applyStateAnimated(e,t){}get(e,t){let i=this.adapters.fold(e,this._settings[e]);return i!==void 0?i:t}isUserSetting(e){return this._userProperties[e]||!1}set(e,t){return this._userProperties[e]=!0,super.set(e,t)}setRaw(e,t){this._userProperties[e]=!0,super.setRaw(e,t)}_setSoft(e,t){return this._userProperties[e]?t:super.set(e,t)}remove(e){delete this._userProperties[e],this._removeTemplateProperty(e)}setPrivate(e,t){return this._userPrivateProperties[e]=!0,super.setPrivate(e,t)}setPrivateRaw(e,t){this._userPrivateProperties[e]=!0,super.setPrivateRaw(e,t)}removePrivate(e){delete this._userPrivateProperties[e],this._removeTemplatePrivateProperty(e)}_setTemplateProperty(e,t,i){if(!this._userProperties[t]){let s=this._findTemplateByKey(t);e===s&&super.set(t,i)}}_setTemplatePrivateProperty(e,t,i){if(!this._userPrivateProperties[t]){let s=this._findTemplateByPrivateKey(t);e===s&&super.setPrivate(t,i)}}_removeTemplateProperty(e){if(!this._userProperties[e]){let t=this._findTemplateByKey(e);t?super.set(e,t._settings[e]):super.remove(e)}}_removeTemplatePrivateProperty(e){if(!this._userPrivateProperties[e]){let t=this._findTemplateByPrivateKey(e);t?super.setPrivate(e,t._privateSettings[e]):super.removePrivate(e)}}_walkParents(e){e(this._root._rootContainer),e(this)}_applyStateByKey(e){let t=this.states.create(e,{}),i={};this._eachTemplate(s=>{let a=s.states.lookup(e);a&&a._apply(t,i)}),Ye(t._settings,s=>{!i[s]&&!t._userSettings[s]&&t.remove(s)})}_applyTemplate(e,t){this._templateDisposers.push(e._apply(this,t)),Ye(e._settings,(i,s)=>{!t.settings[i]&&!this._userProperties[i]&&(t.settings[i]=!0,super.set(i,s))}),Ye(e._privateSettings,(i,s)=>{!t.privateSettings[i]&&!this._userPrivateProperties[i]&&(t.privateSettings[i]=!0,super.setPrivate(i,s))}),this._runSetup&&e.setup&&(this._runSetup=!1,e.setup(this))}_findStaticTemplate(e){if(this._template&&e(this._template))return this._template}_eachTemplate(e){this._findStaticTemplate(t=>(e(t),!1)),Dn(this._internalTemplates,e),W(this._templates,e)}_applyTemplates(e=!0){e&&this._disposeTemplates();let t={settings:{},privateSettings:{},states:{}};this._eachTemplate(i=>{this._applyTemplate(i,t)}),e&&(Ye(this._settings,i=>{!this._userProperties[i]&&!t.settings[i]&&super.remove(i)}),Ye(this._privateSettings,i=>{!this._userPrivateProperties[i]&&!t.privateSettings[i]&&super.removePrivate(i)}))}_findTemplate(e){let t=this._findStaticTemplate(e);if(t===void 0){let i=Tv(this._internalTemplates,e);return i===void 0?ed(this._templates,e):i}else return t}_findTemplateByKey(e){return this._findTemplate(t=>e in t._settings)}_findTemplateByPrivateKey(e){return this._findTemplate(t=>e in t._privateSettings)}_disposeTemplates(){W(this._templateDisposers,e=>{e.dispose()}),this._templateDisposers.length=0}_removeTemplates(){W(this._templates,e=>{e._removeObjectTemplate(this)}),this._templates.length=0}_applyThemes(e=!1){if(this.get("ignoreThemes"))return!1;let t=!1,i=[],s=[],a=new Set,n=this.get("themeTagsSelf");return n&&W(n,o=>{a.add(o)}),this._walkParents(o=>{o===this._root._rootContainer&&(t=!0),o._defaultThemes.length>0&&i.push(o._defaultThemes);let A=o.get("themes");A&&s.push(A);let l=o.get("themeTags");l&&W(l,h=>{a.add(h)})}),s=i.concat(s),this._removeTemplates(),(t||e)&&Dn(this.classNames,o=>{let A=[];W(s,l=>{W(l,h=>{let c=h._lookupRules(o);c&&Dn(c,d=>{if(d.tags.every(f=>a.has(f))){let f=td(A,m=>{let g=js(d.tags.length,m.tags.length);return g===0?ud(d.tags,m.tags,js):g});A.splice(f.index,0,d)}})})}),W(A,l=>{this._templates.push(l.template),l.template._setObjectTemplate(this)})}),this._applyTemplates(),(t||e)&&(this._runSetup=!1),t||e}_changed(){}_beforeChanged(){if(this.isDirty("id")){let e=this.get("id");e&&this._registerId(e);let t=this._prevSettings.id;t&&(delete this._root.entitiesById[t],delete Qs.entitiesById[t])}}_registerId(e){if(this._root.entitiesById[e]&&this._root.entitiesById[e]!==this)throw new Error('An entity with id "'+e+'" already exists.');this._root.entitiesById[e]=this,Qs.entitiesById[e]=this}_afterChanged(){}addDisposer(e){return this._disposers.push(e),e}_dispose(){super._dispose();let e=this._template;e&&e._removeObjectTemplate(this),W(this._internalTemplates,i=>{i._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach(i=>{i.dispose()}),Ye(this._disposerProperties,(i,s)=>{W(s,a=>{a.dispose()})});let t=this.get("id");t&&(delete this._root.entitiesById[t],delete Qs.entitiesById[t])}setTimeout(e,t){let i=setTimeout(()=>{this.removeDispose(s),e()},t),s=new jt(()=>{clearTimeout(i)});return this._disposers.push(s),s}removeDispose(e){if(!this.isDisposed()){let t=va(this._disposers,e);t>-1&&this._disposers.splice(t,1)}e.dispose()}hasTag(e){return va(this.get("themeTags",[]),e)!==-1}addTag(e){if(!this.hasTag(e)){let t=this.get("themeTags",[]);t.push(e),this.set("themeTags",t)}}removeTag(e){if(this.hasTag(e)){let t=this.get("themeTags",[]);Ci(t,e),this.set("themeTags",t)}}_t(e,t,...i){return this._root.language.translate(e,t,...i)}get root(){return this._root}};pt.className="Entity";pt.classNames=["Entity"];function Jg(r){Ye(r,(e,t)=>{Sr(t)&&typeof t.dispose=="function"&&(t.enableDispose=!0,t.dispose())})}var ep=class{constructor(e,t,i){this._name=e,this._template=t,this._settings=i}_dispose(){Jg(this._settings)}get(e,t){let i=this._settings[e];return i!==void 0?i:t}set(e,t){this._settings[e]=t,this._template._stateChanged(this._name)}remove(e){delete this._settings[e],this._template._stateChanged(this._name)}setAll(e){$i(e).forEach(t=>{this._settings[t]=e[t]}),this._template._stateChanged(this._name)}_apply(e,t){Ye(this._settings,(i,s)=>{!t[i]&&!e._userSettings[i]&&(t[i]=!0,e.setRaw(i,s))})}},tp=class{constructor(e){this._states={},this._template=e}_dispose(){Ye(this._states,(e,t)=>{t._dispose()})}lookup(e){return this._states[e]}create(e,t){let i=this._states[e];if(i)return i.setAll(t),i;{let s=new ep(e,this._template,t);return this._states[e]=s,this._template._stateChanged(e),s}}remove(e){delete this._states[e],this._template._stateChanged(e)}_apply(e,t){Ye(this._states,(i,s)=>{let a=t.states[i];a==null&&(a=t.states[i]={});let n=e.states.create(i,{});s._apply(n,a)})}},ip=class{constructor(){this._callbacks={}}add(e,t){let i=this._callbacks[e];return i===void 0&&(i=this._callbacks[e]=[]),i.push(t),new jt(()=>{yi(i,t),i.length===0&&delete this._callbacks[e]})}remove(e){this._callbacks[e]!==void 0&&delete this._callbacks[e]}_apply(e){let t=[];return Ye(this._callbacks,(i,s)=>{W(s,a=>{t.push(e.adapters.add(i,a))})}),new ci(t)}},Ke=class r{constructor(e,t){if(this._disposed=!1,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._entities=[],this.states=new tp(this),this.adapters=new ip,this.events=new lr,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=e}static new(e){return new r(e,!0)}_dispose(){Jg(this._settings),Jg(this._privateSettings)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}_checkDisposed(){if(this._disposed)throw new Error("Template is disposed")}get entities(){return this._entities}get(e,t){this._checkDisposed();let i=this._settings[e];return i!==void 0?i:t}setRaw(e,t){this._checkDisposed(),this._settings[e]=t}set(e,t){this._checkDisposed(),this._settings[e]!==t&&(this.setRaw(e,t),this._entities.forEach(i=>{i._setTemplateProperty(this,e,t)}))}remove(e){this._checkDisposed(),e in this._settings&&(delete this._settings[e],this._entities.forEach(t=>{t._removeTemplateProperty(e)}))}removeAll(){this._checkDisposed(),Ye(this._settings,(e,t)=>{this.remove(e)})}getPrivate(e,t){this._checkDisposed();let i=this._privateSettings[e];return i!==void 0?i:t}setPrivateRaw(e,t){return this._checkDisposed(),this._privateSettings[e]=t,t}setPrivate(e,t){return this._checkDisposed(),this._privateSettings[e]!==t&&(this.setPrivateRaw(e,t),this._entities.forEach(i=>{i._setTemplatePrivateProperty(this,e,t)})),t}removePrivate(e){this._checkDisposed(),e in this._privateSettings&&(delete this._privateSettings[e],this._entities.forEach(t=>{t._removeTemplatePrivateProperty(e)}))}setAll(e){this._checkDisposed(),Ye(e,(t,i)=>{this.set(t,i)})}on(e,t){this._checkDisposed();let i=this._settingEvents[e];return i===void 0&&(i=this._settingEvents[e]=[]),i.push(t),new jt(()=>{yi(i,t),i.length===0&&delete this._settingEvents[e]})}onPrivate(e,t){this._checkDisposed();let i=this._privateSettingEvents[e];return i===void 0&&(i=this._privateSettingEvents[e]=[]),i.push(t),new jt(()=>{yi(i,t),i.length===0&&delete this._privateSettingEvents[e]})}_apply(e,t){this._checkDisposed();let i=[];return Ye(this._settingEvents,(s,a)=>{W(a,n=>{i.push(e.on(s,n))})}),Ye(this._privateSettingEvents,(s,a)=>{W(a,n=>{i.push(e.onPrivate(s,n))})}),this.states._apply(e,t),i.push(this.adapters._apply(e)),i.push(e.events.copyFrom(this.events)),new ci(i)}_setObjectTemplate(e){this._checkDisposed(),this._entities.push(e)}_removeObjectTemplate(e){Ci(this._entities,e)}_stateChanged(e){this._checkDisposed(),this._entities.forEach(t=>{t._applyStateByKey(e)})}};var fd=class r extends lr{constructor(e){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=e}_makePointerEvent(e,t){return{type:e,originalEvent:t.event,point:t.point,simulated:t.simulated,native:t.native,target:this._sprite}}_onRenderer(e,t){this._sprite.set("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[e];if(i===void 0){let s=this._sprite._display.on(e,a=>{t.call(this,a)});i=this._rendererDisposers[e]=new TA(()=>{delete this._rendererDisposers[e],s.dispose()})}return i.increment()}_on(e,t,i,s,a,n,o){let A=super._on(e,t,i,s,a,n,o),l=r.RENDERER_EVENTS[t];return l!==void 0&&(A.disposer=new ci([A.disposer,this._onRenderer(t,l)])),A}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(e,t){let i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(e,t),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(e,t)}finally{this._dispatchParents=i}}};fd.RENDERER_EVENTS={click:function(r){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",r))&&this.dispatch("click",this._makePointerEvent("click",r))},rightclick:function(r){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",r))},middleclick:function(r){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",r))},dblclick:function(r){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",r))},pointerover:function(r){let e=this._sprite,t=!0;if(e.getPrivate("trustBounds")){e._getBounds();let i=e.globalBounds();if(e.isType("Graphics")){let s=e.get("strokeWidth",1)/2;s>=1&&(i.left-=s,i.right+=s,i.top-=s,i.bottom+=s)}Zv(r.point,i)||(t=!1,e._root._renderer.removeHovering(e._display))}t&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",r))},pointerout:function(r){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",r))},pointerdown:function(r){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",r))},pointerup:function(r){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",r))},globalpointerup:function(r){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",r))},globalpointermove:function(r){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",r))},wheel:function(r){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:r.event,point:r.point})}};var Ii=class extends pt{constructor(){super(...arguments),this._adjustedLocalBounds={left:0,right:0,top:0,bottom:0},this._localBounds={left:0,right:0,top:0,bottom:0},this._sizeDirty=!1,this._isDragging=!1,this._isHidden=!1,this._isShowing=!1,this._isHiding=!1,this._isDown=!1,this._downPoints={}}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(e){this._markDirtyKey(e)}_markDirtyKey(e){super._markDirtyKey(e),(e=="x"||e=="y"||e=="dx"||e=="dy")&&(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(e){super._markDirtyPrivateKey(e),(e=="x"||e=="y")&&this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new fd(this)}_processTemplateField(){let e,t=this.get("templateField");if(t){let i=this.dataItem;if(i){let s=i.dataContext;s&&(e=s[t],!(e instanceof Ke)&&e&&(e=Ke.new(e)))}}this._templateField!==e&&(this._removeTemplateField(),this._templateField=e,e&&e._setObjectTemplate(this),this._applyTemplates())}_setDataItem(e){let t=this._dataItem;this._dataItem=e,this._processTemplateField();let i="dataitemchanged";e!=t&&this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:t,newDataItem:e})}set dataItem(e){this._setDataItem(e)}get dataItem(){if(this._dataItem)return this._dataItem;{let e=this._parent;for(;e;){if(e._dataItem)return e._dataItem;e=e._parent}}}_addPercentageSizeChildren(){let e=this.parent;e&&(this.get("width")instanceof Oe||this.get("height")instanceof Oe?kn(e._percentageSizeChildren,this):yi(e._percentageSizeChildren,this))}_addPercentagePositionChildren(){let e=this.parent;e&&(this.get("x")instanceof Oe||this.get("y")instanceof Oe?kn(e._percentagePositionChildren,this):yi(e._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){let e=this._localBounds;if(e){let t=this.get("centerX");t!=null&&(this._display.pivot.x=e.left+tt(t,e.right-e.left));let i=this.get("centerY");i!=null&&(this._display.pivot.y=e.top+tt(i,e.bottom-e.top))}}_beforeChanged(){if(super._beforeChanged(),this._handleStates(),this.isDirty("tooltip")){let e=this._prevSettings.tooltip;e&&e.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){let e=this._tooltipMoveDp;e&&(e.dispose(),this._tooltipMoveDp=void 0);let t=this._tooltipPointerDp;t&&(t.dispose(),this._tooltipPointerDp=void 0),this.get("tooltipPosition")=="pointer"&&(this.isHover()&&(this._tooltipMoveDp=this.events.on("globalpointermove",i=>{this.showTooltip(i.point)})),this._tooltipPointerDp=new ci([this.events.on("pointerover",()=>{this._tooltipMoveDp=this.events.on("globalpointermove",i=>{this.showTooltip(i.point)})}),this.events.on("pointerout",()=>{let i=this._tooltipMoveDp;i&&(i.dispose(),this._tooltipMoveDp=void 0)})]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();let e=this._display,t=this.events;if(this.isDirty("draggable")){let s=this.get("draggable");s?(this.set("interactive",!0),this._dragDp=new ci([t.on("pointerdown",a=>{this.dragStart(a)}),t.on("globalpointermove",a=>{this.dragMove(a)}),t.on("globalpointerup",a=>{this.dragStop(a)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),e.cancelTouch=!!s}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){let s=this.get("tooltipText"),a=this.get("tooltipHTML"),n=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(s||a)&&(n=="click"?(this._tooltipDp=new ci([t.on("click",()=>{this.setTimeout(()=>{let o=this.getTooltip();o&&!o.isHidden()&&o.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()},10)}),Zt(document,"click",o=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):n=="always"||(this._tooltipDp=new ci([t.on("pointerover",()=>{this.showTooltip()}),t.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let s=this.get("toggleKey");s&&s!="none"?this._toggleDp=t.on("click",()=>{this._isDragging||this.set(s,!this.get(s))}):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(e.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),e.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),e.scale=this.get("scale",0)),(this.isDirty("centerX")||this.isDirty("centerY"))&&(this.markDirtyBounds(),this.updatePivotPoint()),(this.isDirty("visible")||this.isPrivateDirty("visible")||this.isDirty("forceHidden"))&&(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(e.visible=!1,this.hideTooltip()):e.visible=!0,this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();let s=this.parent;s&&(this.isDirty("width")&&this.get("width")instanceof Oe||this.isDirty("height")&&this.get("height")instanceof Oe)&&(s.markDirty(),s._prevWidth=0),this._sizeDirty=!0}if((this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("minWidth")||this.isDirty("minHeight")||this.isPrivateDirty("maxWidth")||this.isPrivateDirty("maxHeight")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight")||this.isDirty("marginLeft")||this.isDirty("marginTop")||this.isDirty("marginRight")||this.isDirty("marginBottom"))&&(this.markDirtyBounds(),this._sizeDirty=!0),this._sizeDirty&&this._updateSize(),this.isDirty("wheelable")){let s=this.get("wheelable");s&&this.set("interactive",!0),e.wheelable=!!s}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(e.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){let s=this.get("blur",0);s!=0&&(i+=" blur("+s+"px)")}if(this.isDirty("saturate")){let s=this.get("saturate",1);s!=1&&(i+=" saturate("+s+")")}if(this.isDirty("brightness")){let s=this.get("brightness",1);s!=1&&(i+=" brightness("+s+")")}if(this.isDirty("contrast")){let s=this.get("contrast",1);s!=1&&(i+=" contrast("+s+")")}if(this.isDirty("sepia")){let s=this.get("sepia",0);s!=0&&(i+=" sepia("+s+")")}if(this.isDirty("hue")){let s=this.get("hue",0);s!=0&&(i+=" hue-rotate("+s+"deg)")}if(this.isDirty("invert")){let s=this.get("invert",0);s!=0&&(i+=" invert("+s+")")}if(i&&(e.filter=i),this.isDirty("cursorOverStyle")&&(e.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new ci([t.on("focus",()=>{this.showTooltip()}),t.on("blur",()=>{this.hideTooltip()})]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(t.on("blur",()=>{this.setPrivateRaw("touchHovering",!1)})),this._disposers.push(t.once("boundschanged",()=>{this.markDirtyAccessibility()}))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(e.exportable=this.get("exportable")),this.isDirty("interactive")){let s=this.events;this.get("interactive")&&!s.isDisposed()?this._hoverDp=new ci([s.on("click",a=>{Yl(a.originalEvent)&&(this.getPrivate("touchHovering")||this.setTimeout(()=>{this._handleOver(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.showTooltip(),this.setPrivateRaw("touchHovering",!0),this.events.dispatch("pointerover",{type:"pointerover",target:a.target,originalEvent:a.originalEvent,point:a.point,simulated:a.simulated})},10))}),s.on("globalpointerup",a=>{Yl(a.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:a.target,originalEvent:a.originalEvent,point:a.point,simulated:a.simulated})),this._isDown&&this._handleUp(a)}),s.on("pointerover",()=>{this._handleOver()}),s.on("pointerout",()=>{this._handleOut()}),s.on("pointerdown",a=>{this._handleDown(a)})]):(this._display.interactive=!1,this._hoverDp&&(this._hoverDp.dispose(),this._hoverDp=void 0))}this.isDirty("forceInactive")&&(this._display.inactive=this.get("forceInactive",null)),this.get("showTooltipOn")=="always"&&this._display.visible&&this.showTooltip()}dragStart(e){this._dragEvent=e,this.events.stopParentDispatch()}dragStop(e){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;let t="dragstop";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}_handleOver(){this.isHidden()||(this.get("active")&&this.states.lookup("hoverActive")?this.states.applyAnimate("hoverActive"):this.get("disabled")&&this.states.lookup("hoverDisabled")?this.states.applyAnimate("hoverDisabled"):this.states.applyAnimate("hover"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleOut(){this.isHidden()||(this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):(this.states.lookup("hover")||this.states.lookup("hoverActive"))&&this.states.applyAnimate("default"),this.get("draggable")&&this._isDown&&this.states.lookup("down")&&this.states.applyAnimate("down"))}_handleUp(e){if(!this.isHidden()){this.get("active")&&this.states.lookup("active")?this.states.applyAnimate("active"):this.get("disabled")&&this.states.lookup("disabled")?this.states.applyAnimate("disabled"):this.states.lookup("down")&&(this.isHover()?this.states.applyAnimate("hover"):this.states.applyAnimate("default")),this._downPoint=void 0;let t=ad(e.originalEvent);delete this._downPoints[t],$i(this._downPoints).length==0&&(this._isDown=!1)}}_hasMoved(e){let t=ad(e.originalEvent),i=this._downPoints[t];if(i){let s=Math.abs(i.x-e.point.x),a=Math.abs(i.y-e.point.y);return s>5||a>5}return!1}_hasDown(){return $i(this._downPoints).length>0}_handleDown(e){let t=this.parent;if(t&&!this.get("draggable")&&t._handleDown(e),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:e.point.x,y:e.point.y},this._isDown=!0;let i=ad(e.originalEvent);this._downPoints[i]={x:e.point.x,y:e.point.y}}}dragMove(e){let t=this._dragEvent;if(t){if(t.simulated&&!e.simulated)return!0;let i=0,s=this.parent,a=1;for(;s!=null;)i+=s.get("rotation",0),s=s.parent,s&&(a*=s.get("scale",1));let n=(e.point.x-t.point.x)/a,o=(e.point.y-t.point.y)/a,A=this.events;if(t.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";A.isEnabled(l)&&A.dispatch(l,{type:l,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}if(this._isDragging){let l=this._dragPoint;this.set("x",l.x+n*Bt(i)+o*mt(i)),this.set("y",l.y+o*Bt(i)-n*mt(i));let h="dragged";A.isEnabled(h)&&A.dispatch(h,{type:h,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}else if(Math.hypot(n,o)>5){this._isDragging=!0,this._dragEvent=e,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";A.isEnabled(l)&&A.dispatch(l,{type:l,target:this,originalEvent:e.originalEvent,point:e.point,simulated:e.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let e=this.parent,t=0;for(;;)if(e)++t,e=e.parent;else return t}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){let e=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),e.isMeasured=!0,e.invalidateBounds();let t=this.parent;t&&this.get("position")!="absolute"&&(t.get("width")==null||t.get("height")==null||t.get("layout"))&&t.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){let e=this._adjustedLocalBounds,t;if(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(t={left:0,right:0,top:0,bottom:0},this._localBounds=t,this._adjustedLocalBounds=t):(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),t=this._adjustedLocalBounds),!e||e.left!==t.left||e.top!==t.top||e.right!==t.right||e.bottom!==t.bottom){let i="boundschanged";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this}),this.parent&&(this.parent.markDirty(),this.parent.markDirtyBounds()),this.getPrivate("showingTooltip")&&this.showTooltip()}}_fixMinBounds(e){let t=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));j(t)&&e.right-e.left<t&&(e.right=e.left+t),j(i)&&e.bottom-e.top<i&&(e.bottom=e.top+i);let s=this.getPrivate("width"),a=this.getPrivate("height");j(s)&&(s>0?e.right=e.left+s:e.left=e.right+s),j(a)&&(a>0?e.bottom=e.top+a:e.top=e.bottom+a)}_removeParent(e){e&&(e.children.removeValue(this),yi(e._percentageSizeChildren,this),yi(e._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(e){if(!this.isDisposed()){let t=this.getTooltip(),i=this.get("tooltipText"),s=this.get("tooltipHTML");if((i||s)&&t){let a=this.get("tooltipPosition"),n=this.getPrivate("tooltipTarget",this);if((a=="fixed"||!e)&&(this._display._setMatrix(),e=this.toGlobal(n._getTooltipPoint())),a=="pointer"){let l=this.getPrivate("lastTooltipCoords");if(l&&l.x==e.x&&l.y==e.y)return;this.setPrivate("lastTooltipCoords",e)}t.set("pointTo",e),t.set("tooltipTarget",n),t.get("x")||t.set("x",e.x),t.get("y")||t.set("y",e.y),i&&t.label.set("text",i),s&&t.label.set("html",s);let o=this.dataItem;if(o&&t.label._setDataItem(o),this.get("showTooltipOn")=="always"&&(e.x<0||e.x>this._root.width()||e.y<0||e.y>this._root.height())){this.hideTooltip();return}t.label.text.markDirtyText();let A=t.show();return this.setPrivateRaw("showingTooltip",!0),A}}}hideTooltip(){let e=this.getTooltip();if(e&&(this.removePrivate("lastTooltipCoords"),e.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==e)){let t=e.get("keepTargetHover")&&e.get("stateAnimationDuration",0)==0?400:void 0,i=e.hide(t);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){let e=this._localBounds;if(e){let t=0,i=0;return this.get("isMeasured")?(t=e.left+tt(this.get("tooltipX",0),e.right-e.left),i=e.top+tt(this.get("tooltipY",0),e.bottom-e.top)):(t=tt(this.get("tooltipX",0),this.width()),i=tt(this.get("tooltipY",0),this.height())),{x:t,y:i}}return{x:0,y:0}}getTooltip(){let e=this.get("tooltip");if(e)return e;{let t=this.parent;if(t)return t.getTooltip()}}_updatePosition(){let e=this.parent,t=this.get("dx",0),i=this.get("dy",0),s=this.get("x"),a=this.getPrivate("x"),n=0,o=0,A=this.get("position");s instanceof Oe&&(e?s=e.innerWidth()*s.value+e.get("paddingLeft",0):s=0),j(s)?n=s+t:a!=null?n=a:e&&A=="relative"&&(n=e.get("paddingLeft",0)+t);let l=this.get("y"),h=this.getPrivate("y");l instanceof Oe&&(e?l=e.innerHeight()*l.value+e.get("paddingTop",0):l=0),j(l)?o=l+i:h!=null?o=h:e&&A=="relative"&&(o=e.get("paddingTop",0)+i);let c=this._display;if(c.x!=n||c.y!=o){c.invalidateBounds(),c.x=n,c.y=o;let d="positionchanged";this.events.isEnabled(d)&&this.events.dispatch(d,{type:d,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let e=this.get("x"),t=this.getPrivate("x"),i=this.parent;return i?e instanceof Oe?tt(e,i.innerWidth())+i.get("paddingLeft",0):j(e)?e:t??i.get("paddingLeft",this._display.x):this._display.x}y(){let e=this.getPrivate("y");if(e!=null)return e;let t=this.get("y"),i=this.parent;return i?t instanceof Oe?tt(t,i.innerHeight())+i.get("paddingTop",0):j(t)?t:e??i.get("paddingTop",this._display.y):this._display.y}_dispose(){super._dispose(),this._display.dispose(),this._removeTemplateField(),this._removeParent(this.parent),this._root._removeFocusElement(this);let e=this.get("tooltip");e&&e.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){let e=this._adjustedLocalBounds,t=this.x(),i=this.y();return{left:e.left+t,right:e.right+t,top:e.top+i,bottom:e.bottom+i}}globalBounds(){let e=this.localBounds(),t=this.toGlobal({x:e.left,y:e.top}),i=this.toGlobal({x:e.right,y:e.top}),s=this.toGlobal({x:e.right,y:e.bottom}),a=this.toGlobal({x:e.left,y:e.bottom});return{left:Math.min(t.x,i.x,s.x,a.x),top:Math.min(t.y,i.y,s.y,a.y),right:Math.max(t.x,i.x,s.x,a.x),bottom:Math.max(t.y,i.y,s.y,a.y)}}_onShow(e){}_onHide(e){}appear(e,t){return Ze(this,void 0,void 0,function*(){return yield this.hide(0),t?new Promise((i,s)=>{this.setTimeout(()=>{i(this.show(e))},t)}):this.show(e)})}show(e){return Ze(this,void 0,void 0,function*(){if(!this._isShowing){this._isHidden=!1,this._isShowing=!0,this._isHiding=!1,this.states.lookup("default").get("visible")&&this.set("visible",!0),this._onShow(e);let t=this.states.applyAnimate("default",e);yield Ng(t),this._isShowing=!1}})}hide(e){return Ze(this,void 0,void 0,function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let t=this.states.lookup("hidden");t||(t=this.states.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(e);let i=this.states.applyAnimate("hidden",e);yield Ng(i),this._isHiding=!1}})}isHidden(){return this._isHidden}isShowing(){return this._isShowing}isHiding(){return this._isHiding}isHover(){return this._display.hovering()}isFocus(){return this._root.focused(this)}isDragging(){return this._isDragging}isVisible(){return!!(this.get("visible")&&this.getPrivate("visible")&&!this.get("forceHidden"))}isVisibleDeep(){return this._parent?this._parent.isVisibleDeep()&&this.isVisible():this.isVisible()}compositeOpacity(){let e=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*e:e}compositeScale(){let e=this.get("scale",1);return this._parent?this._parent.compositeScale()*e:e}compositeRotation(){let e=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+e:e}width(){let e=this.get("width"),t=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),s=this.getPrivate("width"),a=0;if(j(s))a=s;else if(e==null)this._adjustedLocalBounds&&(a=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(e instanceof Oe){let n=this.parent;n?a=n.innerWidth()*e.value:a=this._root.width()*e.value}else j(e)&&(a=e);return j(i)&&(a=Math.max(i,a)),j(t)&&(a=Math.min(t,a)),a}maxWidth(){let e=this.get("maxWidth",this.getPrivate("maxWidth"));if(j(e))return e;{let i=this.get("width");if(j(i))return i}let t=this.parent;return t?t.innerWidth():this._root.width()}maxHeight(){let e=this.get("maxHeight",this.getPrivate("maxHeight"));if(j(e))return e;{let i=this.get("height");if(j(i))return i}let t=this.parent;return t?t.innerHeight():this._root.height()}height(){let e=this.get("height"),t=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),s=this.getPrivate("height"),a=0;if(j(s))a=s;else if(e==null)this._adjustedLocalBounds&&(a=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(e instanceof Oe){let n=this.parent;n?a=n.innerHeight()*e.value:a=this._root.height()*e.value}else j(e)&&(a=e);return j(i)&&(a=Math.max(i,a)),j(t)&&(a=Math.min(t,a)),a}_findStaticTemplate(e){return this._templateField&&e(this._templateField)?this._templateField:super._findStaticTemplate(e)}_walkParents(e){(this._parent||this._virtualParent)&&this._walkParent(e)}_walkParent(e){this._parent?this._parent._walkParent(e):this._virtualParent&&this._virtualParent._walkParent(e),e(this)}set virtualParent(e){this._virtualParent!==e&&(this._virtualParent=e,this._applyThemes())}get parent(){return this._parent}_setParent(e,t=!1){let i=this._parent;e!==i&&(this.markDirtyBounds(),e.markDirty(),this._parent=e,t&&(this._removeParent(i),e&&(this._addPercentageSizeChildren(),this._addPercentagePositionChildren())),this.markDirtyPosition(),this._applyThemes())}getNumberFormatter(){return this.get("numberFormatter",this._root.numberFormatter)}getDateFormatter(){return this.get("dateFormatter",this._root.dateFormatter)}getDurationFormatter(){return this.get("durationFormatter",this._root.durationFormatter)}toGlobal(e){return this._display.toGlobal(e)}toLocal(e){return this._display.toLocal(e)}_getDownPoint(){let e=this._getDownPointId();if(e)return this._downPoints[e]}_getDownPointId(){if(this._downPoints)return Dg(this._downPoints,(e,t)=>e>t?1:e<t?-1:0)[0]}toFront(){let e=this.parent;e&&e.children.moveValue(this,e.children.length-1)}toBack(){let e=this.parent;e&&e.children.moveValue(this,0)}};Ii.className="Sprite";Ii.classNames=pt.classNames.concat([Ii.className]);var Zs=class extends pt{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._backgroundDisplay=this._root._renderer.makeGraphics(),this._clear=!1}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let e=this.get("repetition",""),t=this.get("width",100),i=this.get("height",100),s=this.get("fill"),a=this.get("fillOpacity",1),n=this._backgroundDisplay,o=this._display;o.clear(),n.clear(),s&&a>0&&(n.beginFill(s,a),n.drawRect(0,0,t,i),n.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,n,e,t,i)}this._clear=!1}};Zs.className="Pattern";Zs.classNames=pt.classNames.concat([Zs.className]);var Pn=class extends Zs{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();let e=this.get("canvas");e&&(this.set("width",e.width),this.set("height",e.height))}_draw(){super._draw();let e=this.get("colorOpacity");e!==void 0&&(this._display.alpha=Math.max(0,e));let t=this._image;if(t){let s=this.get("width",100),a=this.get("height",100),n=this.get("fit","image"),o=0,A=0;n=="pattern"?(o=s,A=a,this.markDirty()):(o=t.width,A=t.height,n=="image"&&(this.set("width",o),this.set("height",A)));let l=this.get("centered",!0),h=0,c=0;l&&(h=s/2-o/2,c=a/2-A/2),this._display.image(t,o,A,h,c)}let i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){let e=this.get("src");if(e){let t=new Image;t.src=e,t.decode().then(()=>{this._image=t,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})}).catch(i=>{})}}};Pn.className="PicturePattern";Pn.classNames=Zs.classNames.concat([Pn.className]);var UA;(function(r){r.ADD="lighter",r.COLOR="color",r.COLOR_BURN="color-burn",r.COLOR_DODGE="color-dodge",r.DARKEN="darken",r.DIFFERENCE="difference",r.DST_OVER="destination-over",r.EXCLUSION="exclusion",r.HARD_LIGHT="hard-light",r.HUE="hue",r.LIGHTEN="lighten",r.LUMINOSITY="luminosity",r.MULTIPLY="multiply",r.NORMAL="source-over",r.OVERLAY="overlay",r.SATURATION="saturation",r.SCREEN="screen",r.SOFT_LIGHT="soft-light",r.SRC_ATOP="source-atop",r.XOR="xor"})(UA||(UA={}));var tc=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"],Re=class extends Ii{constructor(){super(...arguments),this._display=this._root._renderer.makeGraphics(),this._clear=!1}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){let e=this.get("fillGradient");if(e){this._display.isMeasured=!0;let t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("fill")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("fill")})))}}if(this.isDirty("strokeGradient")){let e=this.get("strokeGradient");if(e){this._display.isMeasured=!0;let t=e.get("target");t&&(this._disposers.push(t.events.on("boundschanged",()=>{this._markDirtyKey("stroke")})),this._disposers.push(t.events.on("positionchanged",()=>{this._markDirtyKey("stroke")})))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let e=this.get("strokeDasharray");j(e)&&(e<.5?e=[0]:e=[e]),this._display.setLineDash(e);let t=this.get("strokeDashoffset");t&&this._display.setLineDashOffset(t);let i=this.get("blendMode",UA.NORMAL);this._display.blendMode=i;let s=this.get("draw");s&&typeof s=="function"&&s(this._display,this);let a=this.get("svgPath");a!=null&&this._display.svgPath(a)}}_afterChanged(){if(super._afterChanged(),this._clear){let e=this.get("fill"),t=this.get("fillGradient"),i=this.get("fillPattern"),s=this.get("fillOpacity"),a=this.get("stroke"),n=this.get("strokeGradient"),o=this.get("strokePattern"),A=this.get("shadowColor"),l=this.get("shadowBlur"),h=this.get("shadowOffsetX"),c=this.get("shadowOffsetY"),d=this.get("shadowOpacity");if(A&&(l||h||c)&&this._display.shadow(A,l,h,c,d),e&&!t&&(this._display.beginFill(e,s),this._display.endFill()),t){if(e){let f=t.get("stops",[]);f.length&&W(f,m=>{(!m.color||m.colorInherited)&&e&&(m.color=e,m.colorInherited=!0),(m.opacity==null||m.opacityInherited)&&(m.opacity=s,m.opacityInherited=!0)})}let u=t.getFill(this);u&&(this._display.beginFill(u,s),this._display.endFill())}if(i){let u=i.pattern;u&&(this._display.beginFill(u,s),this._display.endFill(),i instanceof Pn&&i.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(a||n||o){let u=this.get("strokeOpacity"),f=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(f=f/this.get("scale",1)),this.get("crisp")&&(f/=this._root._renderer.resolution);let m=this.get("lineJoin"),g=this.get("lineCap");if(a&&!n&&(this._display.lineStyle(f,a,u,m,g),this._display.endStroke()),n){let v=n.get("stops",[]);v.length&&W(v,w=>{(!w.color||w.colorInherited)&&a&&(w.color=a,w.colorInherited=!0),(w.opacity==null||w.opacityInherited)&&(w.opacity=u,w.opacityInherited=!0)});let B=n.getFill(this);B&&(this._display.lineStyle(f,B,u,m,g),this._display.endStroke())}if(o){let v=o.pattern;v&&(this._display.lineStyle(f,v,u,m,g),this._display.endStroke(),o instanceof Pn&&o.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}};Re.className="Graphics";Re.classNames=Ii.classNames.concat([Re.className]);var Xt=class extends Re{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let e=this.width(),t=this.height(),i=0,s=0,a=e/Math.abs(e),n=t/Math.abs(t);if(this.get("containStroke",!1)){let o=this.get("strokeWidth",0);e-=o*a,t-=o*n,i+=o/2*a,s+=o/2*n}this._display.drawRect(i,s,e,t)}_updateSize(){this.markDirty(),this._clear=!0}};Xt.className="Rectangle";Xt.classNames=Re.classNames.concat([Xt.className]);function Dr(r,e){r.get("reverseChildren",!1)?r.children.eachReverse(e):r.children.each(e)}var qs=class extends pt{};qs.className="Layout";qs.classNames=pt.classNames.concat([qs.className]);var Ba=class extends qs{updateContainer(e){let t=e.get("paddingLeft",0),i=e.innerWidth(),s=0;Dr(e,n=>{if(n.isVisible()&&n.get("position")=="relative"){let o=n.get("width");if(o instanceof Oe){s+=o.value;let A=i*o.value,l=n.get("minWidth",n.getPrivate("minWidth",-1/0));l>A&&(i-=l,s-=o.value);let h=n.get("maxWidth",n.getPrivate("maxWidth",1/0));A>h&&(i-=h,s-=o.value)}else j(o)||(o=n.width()),i-=o+n.get("marginLeft",0)+n.get("marginRight",0)}}),(i<=0||i==1/0)&&(i=.1),Dr(e,n=>{if(n.isVisible()&&n.get("position")=="relative"){let o=n.get("width");if(o instanceof Oe){let A=i*o.value/s-n.get("marginLeft",0)-n.get("marginRight",0),l=n.get("minWidth",n.getPrivate("minWidth",-1/0)),h=n.get("maxWidth",n.getPrivate("maxWidth",1/0));A=Math.min(Math.max(l,A),h),n.setPrivate("width",A)}else n._prevSettings.width instanceof Oe&&n.setPrivate("width",void 0)}});let a=t;Dr(e,n=>{if(n.get("position")=="relative")if(n.isVisible()){let o=n.adjustedLocalBounds(),A=n.get("marginLeft",0),l=n.get("marginRight",0),h=n.get("maxWidth"),c=o.left,d=o.right;h&&d-c>h&&(d=c+h);let u=a+A-c;n.setPrivate("x",u),a=u+d+l}else n.setPrivate("x",void 0)})}};Ba.className="HorizontalLayout";Ba.classNames=qs.classNames.concat([Ba.className]);var Ca=class extends qs{updateContainer(e){let t=e.get("paddingTop",0),i=e.innerHeight(),s=0;Dr(e,n=>{if(n.isVisible()&&n.get("position")=="relative"){let o=n.get("height");if(o instanceof Oe){s+=o.value;let A=i*o.value,l=n.get("minHeight",n.getPrivate("minHeight",-1/0));l>A&&(i-=l,s-=o.value);let h=n.get("maxHeight",n.getPrivate("maxHeight",1/0));A>h&&(i-=h,s-=o.value)}else j(o)||(o=n.height()),i-=o+n.get("marginTop",0)+n.get("marginBottom",0)}}),(i<=0||i==1/0)&&(i=.1),Dr(e,n=>{if(n.isVisible()&&n.get("position")=="relative"){let o=n.get("height");if(o instanceof Oe){let A=i*o.value/s-n.get("marginTop",0)-n.get("marginBottom",0),l=n.get("minHeight",n.getPrivate("minHeight",-1/0)),h=n.get("maxHeight",n.getPrivate("maxHeight",1/0));A=Math.min(Math.max(l,A),h),n.setPrivate("height",A)}else n._prevSettings.height instanceof Oe&&n.setPrivate("height",void 0)}});let a=t;Dr(e,n=>{if(n.get("position")=="relative")if(n.isVisible()){let o=n.adjustedLocalBounds(),A=n.get("marginTop",0),l=o.top,h=o.bottom,c=n.get("maxHeight");c&&h-l>c&&(h=l+c);let d=n.get("marginBottom",0),u=a+A-l;n.setPrivate("y",u),a=u+h+d}else n.setPrivate("y",void 0)})}};Ca.className="VerticalLayout";Ca.classNames=qs.classNames.concat([Ca.className]);var kr=class extends qs{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(e){let t=e.get("paddingLeft",0),i=e.get("paddingRight",0),s=e.get("paddingTop",0),a=e.maxWidth()-t-i,n=a,o=1;Dr(e,f=>{if(f.get("visible")&&f.getPrivate("visible")&&!f.get("forceHidden")&&f.get("position")!="absolute"){let m=f.width();m<n&&(n=m),m>o&&(o=m)}}),n=It(n,1,a),o=It(o,1,a);let A=1;this.get("fixedWidthGrid")?A=a/o:A=a/n,A=Math.max(1,Math.floor(A)),A=Math.min(this.get("maxColumns",Number.MAX_VALUE),A);let l=this.getColumnWidths(e,A,o,a),h=s,c=0,d=0;A=l.length;let u=t;Dr(e,f=>{if(f.get("position")=="relative"&&f.isVisible()){let m=f.get("marginTop",0),g=f.get("marginBottom",0),v=f.adjustedLocalBounds(),B=f.get("marginLeft",0),w=f.get("marginRight",0),_=u+B-v.left,L=h+m-v.top;f.setPrivate("x",_),f.setPrivate("y",L),u+=l[c]+w,d=Math.max(d,f.height()+m+g),c++,c>=A&&(c=0,u=t,h+=d,d=0)}})}getColumnWidths(e,t,i,s){let a=0,n=[],o=0;return Dr(e,A=>{let l=A.adjustedLocalBounds();A.get("position")!="absolute"&&A.isVisible()&&(this.get("fixedWidthGrid")?n[o]=i:n[o]=Math.max(n[o]|0,l.right-l.left+A.get("marginLeft",0)+A.get("marginRight",0)),o<e.children.length-1&&(o++,o==t&&(o=0)))}),W(n,A=>{a+=A}),a>s?t>2?(t-=1,this.getColumnWidths(e,t,i,s)):[s]:n}};kr.className="GridLayout";kr.classNames=qs.classNames.concat([kr.className]);var ts=class{static escape(e){return e.replace(/\[\[/g,this.prefix+"1").replace(/([^\/\]]{1})\]\]/g,"$1"+this.prefix+"2").replace(/\]\]/g,this.prefix+"2").replace(/\{\{/g,this.prefix+"3").replace(/\}\}/g,this.prefix+"4").replace(/\'\'/g,this.prefix+"5")}static unescape(e){return e.replace(new RegExp(this.prefix+"1","g"),"[[").replace(new RegExp(this.prefix+"2","g"),"]]").replace(new RegExp(this.prefix+"3","g"),"{{").replace(new RegExp(this.prefix+"4","g"),"}}").replace(new RegExp(this.prefix+"5","g"),"''")}static cleanUp(e){return e.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(e,t=!1,i=!1){let s=[];e=this.escape(e);let a=t?e.split("'"):[e];for(let n=0;n<a.length;n++){let o=a[n];if(o!=="")if(n%2===0){o=o.replace(/\]\[/g,"]"+Lr+"["),o=o.replace(/\[\]/g,"[ ]");let A=o.split(/[\[\]]+/);for(let l=0;l<A.length;l++){let h=this.cleanUp(this.unescape(A[l]));h!==Lr&&h!==""&&(l%2===0?s.push({type:"value",text:h}):s.push({type:i?"value":"format",text:"["+h+"]"}))}}else{let A=o.split(/[\[\]]+/);for(let l=0;l<A.length;l++){let h=this.cleanUp(this.unescape(A[l]));h!==""&&(l%2===0?s.push({type:"text",text:h}):this.isImage(h)?s.push({type:"image",text:"["+h+"]"}):s.push({type:"format",text:"["+h+"]"}))}}}return s}static isImage(e){return!!e.match(/img[ ]?:/)}static getTextStyle(e){let t={};if(e==""||e=="[ ]")return{};let i=e.match(/('[^']*')|("[^"]*")/gi);if(i)for(let a=0;a<i.length;a++)e=e.replace(i[a],i[a].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let s=e.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!s)return{};for(let a=0;a<s.length;a++)if(s[a].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))t.fontWeight=s[a];else if(s[a].match(/^(underline|line-through)$/i))t.textDecoration=s[a];else if(s[a]!="/")if(!s[a].match(/:/))t.fill=Ie.fromString(s[a]);else{let n=s[a].replace("+"," ").split(/:[ ]*/);t[n[0]]=n[1]}return t}};ts.prefix="__amcharts__";function wa(r,e){if(e!=null){e=""+e,e=ts.escape(e);let t=e.match(/\{([^}]+)\}/g),i;if(t)for(i=0;i<t.length;i++){let s=t[i].replace(/\{([^}]+)\}/,"$1"),a=sp(r,s,"");a==null&&(a=""),e=e.split(t[i]).join(a)}e=ts.unescape(e)}else e="";return e}function sp(r,e,t){let i,s=r.dataItem,a=[],n=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g,o;for(;o=n.exec(e),o!==null;)if(o[3]){a.push({prop:o[3]});let A=r.getDateFormatter().get("dateFields",[]),l=r.getNumberFormatter().get("numericFields",[]),h=r.getDurationFormatter().get("durationFields",[]);A.indexOf(o[3])!==-1?a.push({method:"formatDate",params:[]}):l.indexOf(o[3])!==-1?a.push({method:"formatNumber",params:[]}):h.indexOf(o[3])!==-1&&a.push({method:"formatDuration",params:[]})}else{let A=[];if(Qn(o[2])!=""){let l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,h;for(;h=l.exec(o[2]),h!==null;)A.push(h[1]||h[2]||h[3])}a.push({method:o[1],params:A})}if(s){i=Qo(r,a,s._settings),(i==null||Sr(i))&&(i=Qo(r,a,s));let A=s.dataContext;i==null&&A&&(i=Qo(r,a,A),i==null&&(i=Qo(r,[{prop:e}],A)),i==null&&A.dataContext&&(i=Qo(r,a,A.dataContext))),i==null&&s.component&&s.component.dataItem!==s&&(i=sp(s.component,e,t))}return i==null&&(i=Qo(r,a,r)),i==null&&r.parent&&(i=sp(r.parent,e,t)),i}function pI(r,e){let t=r.getPrivate("customData");if(Sr(t))return t[e]}function Qo(r,e,t,i){let s=t,a=!1;for(let n=0,o=e.length;n<o;n++){let A=e[n];if(A.prop){if(s instanceof Ii){let l=s.get(A.prop);l==null&&(l=s.getPrivate(A.prop)),l==null&&(l=pI(s,A.prop)),l==null&&(l=s[A.prop]),s=l}else if(s.get){let l=s.get(A.prop);l==null&&(l=s[A.prop]),s=l}else s=s[A.prop];if(s==null)return}else switch(A.method){case"formatNumber":let l=ds(s);l!=null&&(s=r.getNumberFormatter().format(l,i||A.params[0]||void 0),a=!0);break;case"formatDate":let h=Fv(s);if(!Zh(h)||hs(h.getTime()))return;h!=null&&(s=r.getDateFormatter().format(h,i||A.params[0]||void 0),a=!0);break;case"formatDuration":let c=ds(s);c!=null&&(s=r.getDurationFormatter().format(c,i||A.params[0]||void 0,A.params[1]||void 0),a=!0);break;case"urlEncode":case"encodeURIComponent":s=encodeURIComponent(s);break;default:s[A.method]&&s[A.method].apply(t,A.params);break}}if(!a){let n=[{method:"",params:i}];if(i==null)j(s)?(n[0].method="formatNumber",n[0].params=""):Zh(s)&&(n[0].method="formatDate",n[0].params="");else{let o=Ov(i);o==="number"?n[0].method="formatNumber":o==="date"?n[0].method="formatDate":o==="duration"&&(n[0].method="formatDuration")}n[0].method&&(s=Qo(r,n,s))}return s}var ve=class r extends Ii{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new ld(this),this._percentageSizeChildren=[],this._percentagePositionChildren=[],this._prevWidth=0,this._prevHeight=0,this._contentWidth=0,this._contentHeight=0,this._childrenPrep=!1,this._childrenUpdt=!1}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){Dn(this.allChildren(),e=>{e.dispose()}),this.getPrivate("htmlElement")&&this._root._removeHTMLContent(this),super._dispose()}_beforeChanged(){this._childrenPrep||this._prepareChildren(),this._childrenUpdt||this._updateChildren(),super._beforeChanged()}_changed(){if(super._changed(),this.isDirty("interactiveChildren")&&(this._display.interactiveChildren=this.get("interactiveChildren",!1)),this.isDirty("layout")&&(this._prevWidth=0,this._prevHeight=0,this.markDirtyBounds(),this._prevSettings.layout&&this.children.each(e=>{e.removePrivate("x"),e.removePrivate("y")})),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&this.children.each(e=>{e.markDirtyPosition()}),this.isDirty("maskContent")){let e=this._childrenDisplay,t=this._contentMask;this.get("maskContent")?t||(t=Xt.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=t,e.addChildAt(t._display,0),e.mask=t._display):t&&(e.removeChild(t._display),e.mask=null,t.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),W(this._percentageSizeChildren,e=>{e._updateSize()}),W(this._percentagePositionChildren,e=>{e.markDirtyPosition(),e._updateSize()}),this.updateBackground()}updateBackground(){let e=this.get("background"),t=this._localBounds;if(t&&!this.isHidden()){let i=t.left,s=t.top,a=t.right-i,n=t.bottom-s,o=this.get("maxWidth"),A=this.get("maxHeight");A&&n>A&&(n=A),o&&a>o&&(a=o);let l=this.width(),h=this.height();e&&(e.setAll({width:a,height:n,x:i,y:s}),this._display.interactive&&(e._display.interactive=!0));let c=this._contentMask;c&&c.setAll({width:l+1,height:h+1});let d=this.get("verticalScrollbar");if(d){d.set("height",h),d.set("x",l-d.width()-d.get("marginRight",0)),d.set("end",d.get("start",0)+h/this._contentHeight);let u=d.get("background");u&&u.setAll({width:d.width(),height:h});let f=!0;this._contentHeight<=h&&(f=!1),d.setPrivate("visible",f)}}}_applyThemes(e=!1){return super._applyThemes(e)?(this.eachChildren(t=>{t._applyThemes(e)}),!0):!1}_applyState(e){super._applyState(e),this.get("setStateOnChildren")&&this.eachChildren(t=>{t.states.apply(e)})}_applyStateAnimated(e,t){super._applyStateAnimated(e,t),this.get("setStateOnChildren")&&this.eachChildren(i=>{i.states.applyAnimate(e,t)})}innerWidth(){return this.width()-this.get("paddingRight",0)-this.get("paddingLeft",0)}innerHeight(){return this.height()-this.get("paddingTop",0)-this.get("paddingBottom",0)}_getBounds(){if(this.get("html")){let e=this._localBounds;e&&(this._contentWidth=e.right-e.left,this._contentHeight=e.bottom-e.top)}else{let e=this.get("width"),t=this.get("height"),i=this.getPrivate("width"),s=this.getPrivate("height"),a={left:0,top:0,right:this.width(),bottom:this.height()},n=this.get("layout"),o=!1,A=!1;if((n instanceof Ba||n instanceof kr)&&(o=!0),n instanceof Ca&&(A=!0),!((e!=null||i!=null)&&(t!=null||s!=null)&&!this.get("verticalScrollbar"))){let l=Number.MAX_VALUE,h=l,c=-l,d=l,u=-l,f=this.get("paddingLeft",0),m=this.get("paddingTop",0),g=this.get("paddingRight",0),v=this.get("paddingBottom",0);this.children.each(_=>{if(_.get("position")!="absolute"&&_.get("isMeasured")){let L=_.adjustedLocalBounds(),k=_.x(),D=_.y(),E=k+L.left,O=k+L.right,I=D+L.top,M=D+L.bottom;o&&(E-=_.get("marginLeft",0),O+=_.get("marginRight",0)),A&&(I-=_.get("marginTop",0),M+=_.get("marginBottom",0)),E<h&&(h=E),O>c&&(c=O),I<d&&(d=I),M>u&&(u=M)}}),h==l&&(h=0),c==-l&&(c=0),d==l&&(d=0),u==-l&&(u=0),a.left=h-f,a.top=d-m,a.right=c+g,a.bottom=u+v;let B=this.get("minWidth");j(B)&&B>0&&a.right-a.left<B&&(a.right>=B?a.left=a.right-B:a.right=a.left+B);let w=this.get("minHeight");j(w)&&w>0&&a.bottom-a.top<w&&(a.bottom>=w?a.top=a.bottom-w:a.bottom=a.top+w)}this._contentWidth=a.right-a.left,this._contentHeight=a.bottom-a.top,j(e)&&(a.left=0,a.right=e),j(i)&&(a.left=0,a.right=i),j(t)&&(a.top=0,a.bottom=t),j(s)&&(a.top=0,a.bottom=s),this._localBounds=a}}_updateBounds(){let e=this.get("layout");e&&e.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._childrenPrep=!0;let e=this.innerWidth(),t=this.innerHeight();if(e!=this._prevWidth||t!=this._prevHeight){let i=this.get("layout"),s=!1,a=!1;i&&((i instanceof Ba||i instanceof kr)&&(s=!0),i instanceof Ca&&(a=!0)),W(this._percentageSizeChildren,n=>{if(!s){let o=n.get("width");o instanceof Oe&&n.setPrivate("width",o.value*e)}if(!a){let o=n.get("height");o instanceof Oe&&n.setPrivate("height",o.value*t)}}),W(this._percentagePositionChildren,n=>{n.markDirtyPosition(),n.markDirtyBounds()}),this._prevWidth=e,this._prevHeight=t,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){let e=this.get("html","");e&&e!==""?this._root._setHTMLContent(this,wa(this,e)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(e){let t=this.get("verticalScrollbar");if(t){let i=e.y(),s=this.innerHeight(),a=e.height(),n=this._contentHeight,o=1-(s-a/2)/n;if(i+a*.7+this._childrenDisplay.y>s||i-a*.3+this._childrenDisplay.y<0){let A=Math.max(0,Math.min(o,(i-a/2)/n));t.animate({key:"start",to:A,duration:t.get("animationDuration",0),easing:t.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){let e=this.get("verticalScrollbar");if(e){e._setParent(this),e.startGrip.setPrivate("visible",!1),e.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",e.width()+e.get("marginRight",0)+e.get("marginLeft",0));let t=this.get("background");t||(t=this.set("background",Xt.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",i=>{let s=i.originalEvent;if(IA(s,this))s.preventDefault();else return;let a=s.deltaY/5e3,n=e.get("start",0),o=e.get("end",1);n+a<=0&&(a=-n),o+a>=1&&(a=1-o),n+a>=0&&o+a<=1&&(e.set("start",n+a),e.set("end",o+a))}),this._disposers.push(this._vsbd0),this._vsbd1=e.events.on("rangechanged",()=>{let i=this._contentHeight,s=this._childrenDisplay,a=this._contentMask;s.y=-e.get("start",0)*i,s.markDirtyLayer(),a&&(a._display.y=-s.y,s.mask=a._display)}),this._disposers.push(this._vsbd1),this._display.addChild(e._display)}else{let t=this._prevSettings.verticalScrollbar;if(t){this._display.removeChild(t._display),this._vsbd0&&this._vsbd0.dispose(),this._vsbd1&&this._vsbd1.dispose();let i=this._childrenDisplay;i.y=0,this.setPrivate("height",void 0),this.set("maskContent",!1),this.set("paddingRight",void 0)}}}if(this.isDirty("background")){let e=this._prevSettings.background;e&&this._display.removeChild(e._display);let t=this.get("background");t instanceof Ii&&(t.set("isMeasured",!1),t._setParent(this),this._display.addChildAt(t._display,0))}if(this.isDirty("mask")){let e=this.get("mask"),t=this._prevSettings.mask;if(t&&(this._display.removeChild(t._display),t!=e&&t.dispose()),e){let i=e.parent;i&&i.children.removeValue(e),e._setParent(this),this._display.addChildAt(e._display,0),this._childrenDisplay.mask=e._display}}}_processTemplateField(){super._processTemplateField(),this.children.each(e=>{e._processTemplateField()})}walkChildren(e){this.children.each((t,i)=>{t instanceof r&&t.walkChildren(e),e(t,i)})}eachChildren(e){let t=this.get("background");t&&e(t);let i=this.get("verticalScrollbar");i&&e(i);let s=this.get("mask");s&&e(s),this.children.values.forEach(a=>{e(a)})}allChildren(){let e=[];return this.eachChildren(t=>{e.push(t)}),e}_setDataItem(e){let t=e!==this._dataItem;super._setDataItem(e);let i=this.get("html","");i&&i!==""&&t&&this._root._setHTMLContent(this,wa(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}};ve.className="Container";ve.classNames=Ii.classNames.concat([ve.className]);var Ur=class extends Ii{constructor(){super(...arguments),this.textStyle=this._root._renderer.makeTextStyle(),this._display=this._root._renderer.makeText("",this.textStyle),this._textStyles=["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}_updateBounds(){if(this.get("text")){super._updateBounds();let e=this.get("fillGradient");e&&(this._display.style.fill=e.getFill(this))}else{let e={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=e}}_changed(){super._changed(),this._display.clear();let e=this.textStyle;if(this.isDirty("opacity")){let t=this.get("opacity",1);this._display.alpha=t}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),this.get("role")=="tooltip"&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new jt(()=>{this._root._removeTooltipElement(this)})),this.isDirty("width")&&(e.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(e.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(e.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(e.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(e.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(e.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){let t=this.get("fill"),i=this.get("fillGradient"),s=this.get("fillOpacity");if(i){if(t){let a=i.get("stops",[]);a.length&&W(a,n=>{(!n.color||n.colorInherited)&&t&&(n.color=t,n.colorInherited=!0),(n.opacity==null||n.opacityInherited)&&(n.opacity=s,n.opacityInherited=!0)})}e.fill=i.getFill(this)}else t&&(e.fill=t)}if(this.isDirty("fillOpacity")){let t=this.get("fillOpacity",1);t&&(e.fillOpacity=t)}(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(e.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(e.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),W(this._textStyles,t=>{this._dirty[t]&&(e[t]=this.get(t),this.markDirtyBounds())}),e.fontSize=this.get("fontSize"),e.fontFamily=this.get("fontFamily"),this._display.style=e,this.isDirty("role")&&this.get("role")=="tooltip"&&this._root.updateTooltip(this)}_getText(){let e=this.get("text","");return this.get("maxChars")&&(e=Pv(e,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?wa(this,e):e}_getAccessibleText(){let e=this.get("ariaLabel");return e!==void 0?this.get("populateText")?wa(this,e):e:this._getText()}markDirtyText(){this._display.text=this._getText(),this.get("role")=="tooltip"&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(e){super._setDataItem(e),this.get("populateText")&&this.markDirtyText()}getNumberFormatter(){return this.parent?this.parent.getNumberFormatter():super.getNumberFormatter()}getDateFormatter(){return this.parent?this.parent.getDateFormatter():super.getDateFormatter()}getDurationFormatter(){return this.parent?this.parent.getDurationFormatter():super.getDurationFormatter()}};Ur.className="Text";Ur.classNames=Ii.classNames.concat([Ur.className]);var rp=class{constructor(){this._targets=[],this._observer=new ResizeObserver(e=>{W(e,t=>{W(this._targets,i=>{i.target===t.target&&i.callback()})})})}addTarget(e,t){this._observer.observe(e,{box:"border-box"}),this._targets.push({target:e,callback:t})}removeTarget(e){this._observer.unobserve(e),Do(this._targets,t=>t.target!==e)}},pd=class r{constructor(){this._timer=null,this._targets=[]}addTarget(e,t){if(this._timer===null){let s=null,a=()=>{let n=Date.now();(s===null||n>s+r.delay)&&(s=n,W(this._targets,o=>{let A=o.target.getBoundingClientRect();(A.width!==o.size.width||A.height!==o.size.height)&&(o.size=A,o.callback())})),this._targets.length===0?this._timer=null:this._timer=requestAnimationFrame(a)};this._timer=requestAnimationFrame(a)}let i={width:0,height:0,left:0,right:0,top:0,bottom:0,x:0,y:0};this._targets.push({target:e,callback:t,size:i})}removeTarget(e){Do(this._targets,t=>t.target!==e),this._targets.length===0&&this._timer!==null&&(cancelAnimationFrame(this._timer),this._timer=null)}};pd.delay=200;var gd=null;function mI(){return gd===null&&(typeof ResizeObserver<"u"?gd=new rp:gd=new pd),gd}var md=class{constructor(e,t){this._disposed=!1,this._sensor=mI(),this._element=e,this._listener=rd(t),this._sensor.addTarget(e,t)}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._sensor.removeTarget(this._element),this._listener.dispose())}get sensor(){return this._sensor}};var Eo=class extends pt{};Eo.className="InterfaceColors";Eo.classNames=pt.classNames.concat([Eo.className]);var at=class extends ve{constructor(){super(...arguments),this._textKeys=["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),W(this._textKeys,e=>{let t=this.get(e);t!=null&&this._text.set(e,t)}),this.get("html","")!==""&&this._text.set("text",""),this.onPrivate("maxWidth",()=>{this._setMaxDimentions()}),this.onPrivate("maxHeight",()=>{this._setMaxDimentions()})}_makeText(){this._text=this.children.push(Ur.new(this._root,{}))}_updateChildren(){super._updateChildren();let e=this._text;if(W(this._textKeys,i=>{this._text.set(i,this.get(i))}),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&this._setMaxDimentions(),this.get("html","")!==""?e.set("text",""):(e.set("text",this.get("text")),this._maybeUpdateHTMLColor()),(this.isDirty("fill")||this.isDirty("fillGradient"))&&this._maybeUpdateHTMLColor(),this.isDirty("textAlign")||this.isDirty("width")){let i=this.get("textAlign"),s;this.get("width")!=null?i=="right"?s=Ae:i=="center"?s=Ce:s=0:i=="left"||i=="start"?s=this.get("paddingLeft",0):(i=="right"||i=="end")&&(s=-this.get("paddingRight",0)),e.set("x",s)}let t=this.get("background");t&&t.setPrivate("visible",e._display.textVisible)}_maybeUpdateHTMLColor(){let e=this.getPrivate("htmlElement");e&&this.get("fill")&&(e.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){let e=this.get("rotation"),t=e==90||e==270||e==-90,i=this._text,s=this.get("maxWidth",this.getPrivate("maxWidth",1/0));j(s)?i.set(t?"maxHeight":"maxWidth",s-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(t?"maxHeight":"maxWidth",void 0);let a=this.get("maxHeight",this.getPrivate("maxHeight",1/0));j(a)?i.set(t?"maxWidth":"maxHeight",a-this.get("paddingLeft",0)-this.get("paddingRight",0)):i.set(t?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",()=>{i.markDirtyBounds()})}_setDataItem(e){super._setDataItem(e),this._markDirtyKey("text"),this._markDirtyKey("html");let t=this._text;t.get("populateText")&&t.markDirtyText();let i=this.get("html");i&&i!==""&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}};at.className="Label";at.classNames=ve.classNames.concat([at.className]);var nn=class extends Re{_beforeChanged(){super._beforeChanged(),(this.isDirty("pointerBaseWidth")||this.isDirty("cornerRadius")||this.isDirty("pointerLength")||this.isDirty("pointerX")||this.isDirty("pointerY")||this.isDirty("width")||this.isDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){this.markDirtyBounds();let e=this.width(),t=this.height();if(e>0&&t>0){let i=this.get("cornerRadius",8);i=It(i,0,Math.min(e/2,t/2));let s=this.get("pointerX",0),a=this.get("pointerY",0),n=this.get("pointerBaseWidth",15)/2,o=0,A=0,l=e,h=0,c=e,d=t,u=0,f=t,m=(s-o)*(d-A)-(a-A)*(c-o),g=(s-u)*(h-f)-(a-f)*(l-u),v=this._display;if(v.moveTo(i,0),m>0&&g>0){let B=Math.round(It(s,i+n,e-n-i));a=It(a,-1/0,0),v.lineTo(B-n,0),v.lineTo(s,a),v.lineTo(B+n,0)}if(v.lineTo(e-i,0),v.arcTo(e,0,e,i,i),m>0&&g<0){let B=Math.round(It(a,i+n,t-n-i));s=It(s,e,1/0),v.lineTo(e,i),v.lineTo(e,Math.max(B-n,i)),v.lineTo(s,a),v.lineTo(e,B+n)}if(v.lineTo(e,t-i),v.arcTo(e,t,e-i,t,i),m<0&&g<0){let B=Math.round(It(s,i+n,e-n-i));a=It(a,t,1/0),v.lineTo(e-i,t),v.lineTo(B+n,t),v.lineTo(s,a),v.lineTo(B-n,t)}if(v.lineTo(i,t),v.arcTo(0,t,0,t-i,i),m<0&&g>0){let B=Math.round(It(a,i+n,t-i-n));s=It(s,-1/0,0),v.lineTo(0,t-i),v.lineTo(0,B+n),v.lineTo(s,a),v.lineTo(0,Math.max(B-n,i))}v.lineTo(0,i),v.arcTo(0,0,i,0,i),v.closePath()}}}};nn.className="PointedRectangle";nn.classNames=Re.classNames.concat([nn.className]);var wi=class extends ve{constructor(e,t,i,s=[]){super(e,t,i,s),this._fx=0,this._fy=0,this._w=0,this._h=0,this._htmlContentHovered=!1}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["tooltip"]),super._afterNew(),this._setDefaultFn("background",()=>nn.new(this._root,{})).set("themeTags",["tooltip","background"]),this._label=this.children.push(at.new(this._root,{})),this._disposers.push(this._label.events.on("boundschanged",()=>{this._updateBackground()})),this._disposers.push(this.on("bounds",()=>{this._updateBackground()})),this._updateTextColor(),this._root.tooltipContainer.children.push(this),this.hide(0),this._disposers.push(this.label.onPrivate("htmlElement",t=>{t&&(this._disposers.push(Zt(t,"pointerover",i=>{this._htmlContentHovered=!0})),this._disposers.push(Zt(t,"pointerout",i=>{this._htmlContentHovered=!1})))})),this.on("visible",t=>{this._handleReaderAnnouncement()}),this.label.events.on("dataitemchanged",t=>{this._handleReaderAnnouncement()}),this._root._tooltips.push(this)}_handleReaderAnnouncement(){this.get("readerAnnounce")&&this.isVisibleDeep()&&this._root.readerAlert(this.label.getAccessibleText())}get label(){return this._label}_dispose(){super._dispose(),Ci(this._root._tooltips,this)}_updateChildren(){super._updateChildren(),(this.isDirty("pointerOrientation")||this.isPrivateDirty("minWidth")||this.isPrivateDirty("minHeight"))&&this.get("background")._markDirtyKey("width"),this.get("labelText")!=null&&this.label.set("text",this.get("labelText")),this.get("labelHTML")!=null&&this.label.set("html",this.get("labelHTML")),this.get("labelAriaLabel")!=null&&this.label.set("ariaLabel",this.get("labelAriaLabel"))}_changed(){if(super._changed(),(this.isDirty("pointTo")||this.isDirty("pointerOrientation"))&&this._updateBackground(),this.isDirty("tooltipTarget")&&this.updateBackgroundColor(),this.isDirty("keepTargetHover"))if(this.get("keepTargetHover")){let t=this.get("background");this._keepHoverDp=new ci([t.events.on("pointerover",i=>{let s=this.get("tooltipTarget");s&&(s.parent&&s.parent.getPrivate("tooltipTarget")==s&&(s=s.parent),s.hover())}),t.events.on("pointerout",i=>{let s=this.get("tooltipTarget");s&&(s.parent&&s.parent.getPrivate("tooltipTarget")==s&&(s=s.parent),this._htmlContentHovered||s.unhover())})]),this.label.onPrivate("htmlElement",i=>{this._keepHoverDp&&i&&this._keepHoverDp.disposers.push(Zt(i,"pointerleave",s=>{let a=this.root._renderer.getEvent(s);t.events.dispatch("pointerout",{type:"pointerout",originalEvent:a.event,point:a.point,simulated:!1,target:t})}))})}else this._keepHoverDp&&(this._keepHoverDp.dispose(),this._keepHoverDp=void 0)}_onShow(){super._onShow(),this.updateBackgroundColor()}updateBackgroundColor(){let e=this.get("tooltipTarget"),t=this.get("background"),i,s;if(e&&t){if(i=e.get("fill"),s=e.get("stroke"),i==null&&(i=s),this.get("getFillFromSprite")&&(this._fillDp&&this._fillDp.dispose(),i!=null&&t.set("fill",i),this._fillDp=e.on("fill",a=>{a!=null&&(t.set("fill",a),this._updateTextColor(a))}),this._disposers.push(this._fillDp)),this.get("getFillGradientFromSprite")){this._fillGrDp&&this._fillGrDp.dispose();let a=e.get("fillGradient");a!=null&&t.set("fillGradient",a),this._fillGrDp=e.on("fillGradient",n=>{n!=null&&t.set("fillGradient",n)}),this._disposers.push(this._fillGrDp)}this.get("getStrokeFromSprite")&&(this._strokeDp&&this._strokeDp.dispose(),i!=null&&t.set("stroke",i),this._strokeDp=e.on("fill",a=>{a!=null&&t.set("stroke",a)}),this._disposers.push(this._strokeDp)),this.get("getLabelFillFromSprite")&&(this._labelDp&&this._labelDp.dispose(),i!=null&&this.label.set("fill",i),this._labelDp=e.on("fill",a=>{a!=null&&this.label.set("fill",a)}),this._disposers.push(this._labelDp))}this._updateTextColor(i)}_updateTextColor(e){this.get("autoTextColor")&&(e==null&&(e=this.get("background").get("fill")),e==null&&(e=this._root.interfaceColors.get("background")),e instanceof Ie&&this.label.set("fill",Ie.alternative(e,this._root.interfaceColors.get("alternativeText"),this._root.interfaceColors.get("text"))))}_setDataItem(e){super._setDataItem(e),this.label._setDataItem(e)}_updateBackground(){super.updateBackground();let e=this._root.container;if(e){let t=.5,i=.5,s=this.get("centerX");s instanceof Oe&&(t=s.value);let a=this.get("centerY");a instanceof Oe&&(i=a.value);let n=e.width(),o=e.height(),A=this.parent,l=0,h=0;if(A){l=A.x(),h=A.y();let M=A.get("layerMargin");M&&(l+=M.left||0,h+=M.top||0,n+=(M.left||0)+(M.right||0),o+=(M.top||0)+(M.bottom||0))}let c=this.get("bounds",{left:-l,top:-h,right:n-l,bottom:o-h});this._updateBounds();let d=this.width(),u=this.height();d===0&&(d=this._w),u===0&&(u=this._h);let f=this.get("pointTo",{x:n/2,y:o/2}),m=f.x,g=f.y,v=this.get("pointerOrientation"),B=this.get("background"),w=0,_=0,L=0;B instanceof nn&&(w=B.get("pointerLength",0),_=B.get("strokeWidth",0)/2,L=_,B.set("width",d),B.set("height",u));let k=0,D=0,E=c.right-c.left,O=c.bottom-c.top;v=="horizontal"||v=="left"||v=="right"?(_=0,v=="horizontal"?m>c.left+E/2?(m-=d*(1-t)+w,L*=-1):m+=d*t+w:v=="left"?m+=d*(1-t)+w:(m-=d*t+w,L*=-1)):(L=0,v=="vertical"?g>c.top+u/2+w?g-=u*(1-i)+w:(g+=u*i+w,_*=-1):v=="down"?g-=u*(1-i)+w:(g+=u*i+w,_*=-1)),m=It(m,c.left+d*t,c.left+E-d*(1-t))+L,g=It(g,c.top+u*i,c.top+O-u*(1-i))-_,k=f.x-m+d*t+L,D=f.y-g+u*i-_,this._fx=m,this._fy=g;let I=this.get("animationDuration",0);if(I>0&&this.get("visible")&&this.get("opacity")>.1){let M=this.get("animationEasing");this.animate({key:"x",to:m,duration:I,easing:M}),this.animate({key:"y",to:g,duration:I,easing:M})}else this.set("x",m),this.set("y",g);B instanceof nn&&(B.set("pointerX",k),B.set("pointerY",D)),d>0&&(this._w=d),u>0&&(this._h=u)}}};wi.className="Tooltip";wi.classNames=ve.classNames.concat([wi.className]);var On=class extends pt{_setDefaults(){this._setDefault("negativeBase",0),this._setDefault("numberFormat","#,###.#####"),this._setDefault("smallNumberThreshold",1);let e="_big_number_suffix_",t="_small_number_suffix_",i="_byte_suffix_";this._setDefault("bigNumberPrefixes",[{number:1e3,suffix:this._t(e+"3")},{number:1e6,suffix:this._t(e+"6")},{number:1e9,suffix:this._t(e+"9")},{number:1e12,suffix:this._t(e+"12")},{number:1e15,suffix:this._t(e+"15")},{number:1e18,suffix:this._t(e+"18")},{number:1e21,suffix:this._t(e+"21")},{number:1e24,suffix:this._t(e+"24")}]),this._setDefault("smallNumberPrefixes",[{number:1e-24,suffix:this._t(t+"24")},{number:1e-21,suffix:this._t(t+"21")},{number:1e-18,suffix:this._t(t+"18")},{number:1e-15,suffix:this._t(t+"15")},{number:1e-12,suffix:this._t(t+"12")},{number:1e-9,suffix:this._t(t+"9")},{number:1e-6,suffix:this._t(t+"6")},{number:.001,suffix:this._t(t+"3")}]),this._setDefault("bytePrefixes",[{number:1,suffix:this._t(i+"B")},{number:1024,suffix:this._t(i+"KB")},{number:1048576,suffix:this._t(i+"MB")},{number:1073741824,suffix:this._t(i+"GB")},{number:1099511627776,suffix:this._t(i+"TB")},{number:0x4000000000000,suffix:this._t(i+"PB")}]),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){(t==null||ba(t)&&t.toLowerCase()==="number")&&(t=this.get("numberFormat",""));let s,a=Number(e);if(Sr(t))try{return this.get("intlLocales")?new Intl.NumberFormat(this.get("intlLocales"),t).format(a):new Intl.NumberFormat(void 0,t).format(a)}catch{return"Invalid"}else{t=DA(t);let n=this.parseFormat(t,this._root.language),o;a>this.get("negativeBase")?o=n.positive:a<this.get("negativeBase")?o=n.negative:o=n.zero,i!=null&&!o.mod&&(o=Tr(o),o.decimals.active=a==0?0:i),s=o.template.split(Lr).join(this.applyFormat(a,o))}return this.get("forceLTR")===!0&&(s="\u200E"+s),s}parseFormat(e,t){let i=t.translateEmpty("_thousandSeparator"),s=t.translateEmpty("_decimalSeparator"),a={positive:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},negative:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1},zero:{thousands:{active:-1,passive:-1,interval:-1,separator:i},decimals:{active:-1,passive:-1,separator:s},template:"",source:"",parsed:!1}};e=e.replace("||",In);let n=e.split("|");return a.positive.source=n[0],typeof n[2]>"u"?a.zero=a.positive:a.zero.source=n[2],typeof n[1]>"u"?a.negative=a.positive:a.negative.source=n[1],Ye(a,(o,A)=>{if(A.parsed)return;let l=A.source;l.toLowerCase()==="number"&&(l=this.get("numberFormat","#,###.#####"));let h=ts.chunk(l,!0);for(let c=0;c<h.length;c++){let d=h[c];if(d.text=d.text.replace(In,"|"),d.type==="value"){let u=d.text.match(/[#0.,]+[ ]?[abespABESP%!]?[abespABESP‰!]?/);if(u)if(u===null||u[0]==="")A.template+=d.text;else{let f=u[0].match(/[abespABESP%‰!]{2}|[abespABESP%‰]{1}$/);f&&(A.mod=f[0].toLowerCase(),A.modSpacing=!!u[0].match(/[ ]{1}[abespABESP%‰!]{1}$/));let m=u[0].split(".");if(m[0]!==""){A.thousands.active=(m[0].match(/0/g)||[]).length,A.thousands.passive=(m[0].match(/\#/g)||[]).length+A.thousands.active;let g=m[0].split(",");g.length===1||(A.thousands.interval=(g.pop()||"").length,A.thousands.interval===0&&(A.thousands.interval=-1))}typeof m[1]>"u"||(A.decimals.active=(m[1].match(/0/g)||[]).length,A.decimals.passive=(m[1].match(/\#/g)||[]).length+A.decimals.active),A.template+=d.text.split(u[0]).join(Lr)}}else A.template+=d.text}A.parsed=!0}),a}applyFormat(e,t){let i=e<0;e=Math.abs(e);let s="",a="",n=t.mod?t.mod.split(""):[];if(n.indexOf("b")!==-1){let c=this.applyPrefix(e,this.get("bytePrefixes"),n.indexOf("!")!==-1);e=c[0],s=c[1],a=c[2],t.modSpacing&&(a=" "+a)}else if(n.indexOf("a")!==-1){let c=this.applyPrefix(e,e<this.get("smallNumberThreshold")?this.get("smallNumberPrefixes"):this.get("bigNumberPrefixes"),n.indexOf("!")!==-1);e=c[0],s=c[1],a=c[2],t.modSpacing&&(a=" "+a)}else if(n.indexOf("p")!==-1){let c=Math.min(e.toString().length+2,21);e=parseFloat(e.toPrecision(c)),s=this._root.language.translate("_percentPrefix"),a=this._root.language.translate("_percentSuffix"),s==""&&a==""&&(a="%")}else if(n.indexOf("%")!==-1){let c=Math.min(e.toString().length+2,21);e*=100,e=parseFloat(e.toPrecision(c)),a="%"}else if(n.indexOf("\u2030")!==-1){let c=Math.min(e.toString().length+3,21);e*=1e3,e=parseFloat(e.toPrecision(c)),a="\u2030"}if(n.indexOf("e")!==-1){let c;t.decimals.passive>=0?c=e.toExponential(t.decimals.passive).split("e"):c=e.toExponential().split("e"),e=Number(c[0]),a="e"+c[1],t.modSpacing&&(a=" "+a)}else if(t.decimals.passive===0)e=Math.round(e);else if(t.decimals.passive>0){let c=od(e);if(c>0){let d=Math.pow(10,t.decimals.passive);e=Math.round(parseFloat((e*d).toFixed(c)))/d}}let o="",A=Sv(e).split("."),l=A[0];if(l.length<t.thousands.active&&(l=Array(t.thousands.active-l.length+1).join("0")+l),t.thousands.interval>0){let c=[],d=l.split("").reverse().join("");for(let u=0,f=l.length;u<=f;u+=t.thousands.interval){let m=d.substr(u,t.thousands.interval).split("").reverse().join("");m!==""&&c.unshift(m)}l=c.join(t.thousands.separator)}o+=l,A.length===1&&A.push("");let h=A[1];return h.length<t.decimals.active&&(h+=Array(t.decimals.active-h.length+1).join("0")),h!==""&&(o+=t.decimals.separator+h),o===""&&(o="0"),e!==0&&i&&n.indexOf("s")===-1&&(o="-"+o),s&&(o=s+o),a&&(o+=a),o}applyPrefix(e,t,i=!1){let s=e,a="",n="",o=!1,A=1;for(let l=0,h=t.length;l<h;l++)t[l].number<=e&&(t[l].number===0?s=0:(s=e/t[l].number,A=t[l].number),a=t[l].prefix,n=t[l].suffix,o=!0);return!o&&i&&t.length&&e!=0&&(s=e/t[0].number,a=t[0].prefix,n=t[0].suffix,o=!0),o&&(s=parseFloat(s.toPrecision(Math.min(A.toString().length+Math.floor(s).toString().replace(/[^0-9]*/g,"").length,21)))),[s,a,n]}escape(e){return e.replace("||",In)}unescape(e){return e.replace(In,"|")}};function eB(r,e){let t=0,i=0,s=1,a=0,n=0,o=0,A=0,l=0;return r.formatToParts(e).forEach(h=>{switch(h.type){case"year":t=+h.value;break;case"month":i=+h.value-1;break;case"day":s=+h.value;break;case"hour":a=+h.value;break;case"minute":n=+h.value;break;case"second":o=+h.value;break;case"fractionalSecond":A=+h.value;break;case"weekday":switch(h.value){case"Sun":l=0;break;case"Mon":l=1;break;case"Tue":l=2;break;case"Wed":l=3;break;case"Thu":l=4;break;case"Fri":l=5;break;case"Sat":l=6;break}}}),a===24&&(a=0),{year:t,month:i,day:s,hour:a,minute:n,second:o,millisecond:A,weekday:l}}function Jv(r,e){let{year:t,month:i,day:s,hour:a,minute:n,second:o,millisecond:A}=eB(r,e);return Date.UTC(t,i,s,a,n,o,A)}var Ro=class{constructor(e,t){if(!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this.name=e,this._utc=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3}),this._dtf=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",weekday:"short",fractionalSecondDigits:3})}static new(e){return new this(e,!0)}convertLocal(e){let t=this.offsetUTC(e),i=e.getTimezoneOffset(),s=new Date(e);s.setUTCMinutes(s.getUTCMinutes()-(t-i));let a=s.getTimezoneOffset();return i!=a&&s.setUTCMinutes(s.getUTCMinutes()+a-i),s}offsetUTC(e){let t=Jv(this._utc,e),i=Jv(this._dtf,e);return(t-i)/6e4}parseDate(e){return eB(this._dtf,e)}};var Mo=class extends pt{_setDefaults(){this._setDefault("capitalize",!0),this._setDefault("dateFormat","yyyy-MM-dd"),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i=!1){(typeof t>"u"||t==="")&&(t=this.get("dateFormat","yyyy-MM-dd"));let s,a=e;if(Sr(t))try{let l=this.get("intlLocales");return l?new Intl.DateTimeFormat(l,t).format(a):new Intl.DateTimeFormat(void 0,t).format(a)}catch{return"Invalid"}let n=this.parseFormat(t),o=this._root.timezone,A=a;return o&&!this._root.utc&&!i&&(a=o.convertLocal(a)),j(a.getTime())?(s=this.applyFormat(a,n,i,A),this.get("capitalize")&&(s=s.replace(/^.{1}/,s.substr(0,1).toUpperCase())),s):"Invalid date"}applyFormat(e,t,i=!1,s){let a=t.template,n,o,A,l,h,c,d,u,f=e.getTime();this._root.utc&&!i?(n=e.getUTCFullYear(),o=e.getUTCMonth(),A=e.getUTCDay(),l=e.getUTCDate(),h=e.getUTCHours(),c=e.getUTCMinutes(),d=e.getUTCSeconds(),u=e.getUTCMilliseconds()):(n=e.getFullYear(),o=e.getMonth(),A=e.getDay(),l=e.getDate(),h=e.getHours(),c=e.getMinutes(),d=e.getSeconds(),u=e.getMilliseconds());for(let m=0,g=t.parts.length;m<g;m++){let v="";switch(t.parts[m]){case"G":v=this._t(n<0?"_era_bc":"_era_ad");break;case"yyyy":v=Math.abs(n).toString(),n<0&&(v+=this._t("_era_bc"));break;case"yyy":case"yy":case"y":v=Math.abs(n).toString().substr(-t.parts[m].length),n<0&&(v+=this._t("_era_bc"));break;case"YYYY":case"YYY":case"YY":case"Y":let B=Nv(e,this._root.utc);t.parts[m]=="YYYY"?v=Math.abs(B).toString():v=Math.abs(B).toString().substr(-t.parts[m].length),B<0&&(v+=this._t("_era_bc"));break;case"u":break;case"q":v=""+Math.ceil((e.getMonth()+1)/3);break;case"MMMMM":v=this._t(this._getMonth(o)).substr(0,1);break;case"MMMM":v=this._t(this._getMonth(o));break;case"MMM":v=this._t(this._getShortMonth(o));break;case"MM":v=hi(o+1,2,"0");break;case"M":v=(o+1).toString();break;case"ww":v=hi(ko(e,this._root.utc),2,"0");break;case"w":v=ko(e,this._root.utc).toString();break;case"W":v=$v(e,this._root.utc).toString();break;case"dd":v=hi(l,2,"0");break;case"d":v=l.toString();break;case"DD":case"DDD":v=hi(Mg(e,this._root.utc).toString(),t.parts[m].length,"0");break;case"D":v=Mg(e,this._root.utc).toString();break;case"F":break;case"g":break;case"t":v=this._root.language.translateFunc("_dateOrd").call(this,l);break;case"E":v=(A||7).toString();break;case"EE":v=hi((A||7).toString(),2,"0");break;case"EEE":case"eee":v=this._t(this._getShortWeekday(A));break;case"EEEE":case"eeee":v=this._t(this._getWeekday(A));break;case"EEEEE":case"eeeee":v=this._t(this._getShortWeekday(A)).substr(0,1);break;case"e":case"ee":v=(A-(this._root.locale.firstDayOfWeek||1)+1).toString(),t.parts[m]=="ee"&&(v=hi(v,2,"0"));break;case"a":h>=12?v=this._t("PM"):v=this._t("AM");break;case"aa":h>=12?v=this._t("P.M."):v=this._t("A.M.");break;case"aaa":h>=12?v=this._t("P"):v=this._t("A");break;case"h":v=jl(h).toString();break;case"hh":v=hi(jl(h),2,"0");break;case"H":v=h.toString();break;case"HH":v=hi(h,2,"0");break;case"K":v=jl(h,0).toString();break;case"KK":v=hi(jl(h,0),2,"0");break;case"k":v=(h+1).toString();break;case"kk":v=hi(h+1,2,"0");break;case"m":v=c.toString();break;case"mm":v=hi(c,2,"0");break;case"s":v=d.toString();break;case"ss":v=hi(d,2,"0");break;case"S":case"SS":case"SSS":v=Math.round(u/1e3*Math.pow(10,t.parts[m].length)).toString();break;case"x":v=f.toString();break;case"n":case"nn":case"nnn":v=hi(u,t.parts[m].length,"0");break;case"z":v=Zl(s||e,!1,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zz":v=Zl(s||e,!0,!1,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"zzz":v=Zl(s||e,!1,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0).replace(/[+-]+[0-9]+$/,"");break;case"zzzz":v=Zl(s||e,!0,!0,this._root.utc,this._root.timezone?this._root.timezone.name:void 0);break;case"Z":case"ZZ":let w=this._root.utc?"UTC":this._root.timezone;w instanceof Ro&&(w=w.name);let _=w?Xv(w,s||e):e.getTimezoneOffset(),L=Math.abs(_)/60,k=Math.floor(L),D=L*60-k*60;this._root.utc&&(k=0,D=0),t.parts[m]=="Z"?(v="GMT",v+=_>0?"-":"+",v+=hi(k,2)+":"+hi(D,2)):(v=_>0?"-":"+",v+=hi(k,2)+hi(D,2));break;case"i":v=e.toISOString();break;case"I":v=e.toUTCString();break}a=a.replace(Lr,v)}return a}parseFormat(e){let t={template:"",parts:[]},i=ts.chunk(e,!0);for(let s=0;s<i.length;s++){let a=i[s];if(a.type==="value"){if(a.text.match(/^date$/i)){let o=this.get("dateFormat","yyyy-MM-dd");ba(o)||(o="yyyy-MM-dd"),a.text=o}let n=a.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(n)for(let o=0;o<n.length;o++)t.parts.push(n[o]),a.text=a.text.replace(n[o],Lr)}t.template+=a.text}return t}_months(){return["January","February","March","April","May","June","July","August","September","October","November","December"]}_getMonth(e){return this._months()[e]}_shortMonths(){return["Jan","Feb","Mar","Apr","May(short)","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]}_getShortMonth(e){return this._shortMonths()[e]}_weekdays(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]}_getWeekday(e){return this._weekdays()[e]}_shortWeekdays(){return["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]}_getShortWeekday(e){return this._shortWeekdays()[e]}parse(e,t,i){if(typeof i>"u"&&(i=this._root.utc),e instanceof Date)return e;if(j(e))return new Date(e);if(t=="x")return new Date(parseInt(e));ba(e)||(e=e.toString());let s,a="";t=DA(t),t=t.substr(0,e.length);let 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},A={year:1970,month:0,day:1,hour:0,minute:0,second:0,millisecond:0,timestamp:null,offset:0,utc:i},l=0,h=0;for(let u=0;u<n.parts.length;u++){switch(h=u+l+1,n.parts[u]){case"yyyy":case"YYYY":a+="([0-9]{4})",o.year=h;break;case"yyy":case"YYY":a+="([0-9]{3})",o.year3=h;break;case"yy":case"YY":a+="([0-9]{2})",o.year2=h;break;case"y":case"Y":a+="([0-9]{1})",o.year1=h;break;case"MMMM":a+="("+this.getStringList(this._months()).join("|")+")",o.monthLong=h;break;case"MMM":a+="("+this.getStringList(this._shortMonths()).join("|")+")",o.monthShort=h;break;case"MM":case"M":a+="([0-9]{2}|[0-9]{1})",o.month=h;break;case"ww":case"w":a+="([0-9]{2}|[0-9]{1})",o.week=h;break;case"dd":case"d":a+="([0-9]{2}|[0-9]{1})",o.day=h;break;case"DDD":case"DD":case"D":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.yearDay=h;break;case"dddd":a+="("+this.getStringList(this._weekdays()).join("|")+")",o.weekdayLong=h;break;case"ddd":a+="("+this.getStringList(this._shortWeekdays()).join("|")+")",o.weekdayShort=h;break;case"aaa":case"aa":case"a":a+="("+this.getStringList(["AM","PM","A.M.","P.M.","A","P"]).join("|")+")",o.am=h;break;case"hh":case"h":a+="([0-9]{2}|[0-9]{1})",o.hour12Base1=h;break;case"HH":case"H":a+="([0-9]{2}|[0-9]{1})",o.hourBase0=h;break;case"KK":case"K":a+="([0-9]{2}|[0-9]{1})",o.hour12Base0=h;break;case"kk":case"k":a+="([0-9]{2}|[0-9]{1})",o.hourBase1=h;break;case"mm":case"m":a+="([0-9]{2}|[0-9]{1})",o.minute=h;break;case"ss":case"s":a+="([0-9]{2}|[0-9]{1})",o.second=h;break;case"SSS":case"SS":case"S":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h,o.millisecondDigits=n.parts[u].length;break;case"nnn":case"nn":case"n":a+="([0-9]{3}|[0-9]{2}|[0-9]{1})",o.millisecond=h;break;case"x":a+="([0-9]{1,})",o.timestamp=h;break;case"Z":a+="GMT([-+]+[0-9]{2}:[0-9]{2})",o.zone=h;break;case"ZZ":a+="([\\-+]+[0-9]{2}[0-9]{2})",o.zone=h;break;case"i":a+="([0-9]{4})-?([0-9]{2})-?([0-9]{2})T?([0-9]{2}):?([0-9]{2}):?([0-9]{2})\\.?([0-9]{0,3})([zZ]|[+\\-][0-9]{2}:?[0-9]{2}|$)",o.iso=h,l+=7;break;case"G":case"YYYY":case"YYY":case"YY":case"Y":case"MMMMM":case"W":case"EEEEE":case"EEEE":case"EEE":case"EE":case"E":case"eeeee":case"eeee":case"eee":case"ee":case"e":case"zzzz":case"zzz":case"zz":case"z":case"t":l--;break}a+="[^0-9]*"}let c=new RegExp(a),d=e.match(c);if(d){if(o.year>-1&&(A.year=parseInt(d[o.year])),o.year3>-1){let u=parseInt(d[o.year3]);u+=1e3,A.year=u}if(o.year2>-1){let u=parseInt(d[o.year2]);u>50?u+=1e3:u+=2e3,A.year=u}if(o.year1>-1){let u=parseInt(d[o.year1]);u=Math.floor(new Date().getFullYear()/10)*10+u,A.year=u}if(o.monthLong>-1&&(A.month=this.resolveMonth(d[o.monthLong])),o.monthShort>-1&&(A.month=this.resolveShortMonth(d[o.monthShort])),o.month>-1&&(A.month=parseInt(d[o.month])-1),o.week>-1&&o.day===-1&&(A.month=0,A.day=Vv(parseInt(d[o.week]),A.year,1,i)),o.day>-1&&(A.day=parseInt(d[o.day])),o.yearDay>-1&&(A.month=0,A.day=parseInt(d[o.yearDay])),o.hourBase0>-1&&(A.hour=parseInt(d[o.hourBase0])),o.hourBase1>-1&&(A.hour=parseInt(d[o.hourBase1])-1),o.hour12Base0>-1){let u=parseInt(d[o.hour12Base0]);u==11&&(u=0),o.am>-1&&!this.isAm(d[o.am])&&(u+=12),A.hour=u}if(o.hour12Base1>-1){let u=parseInt(d[o.hour12Base1]);u==12&&(u=0),o.am>-1&&!this.isAm(d[o.am])&&(u+=12),A.hour=u}if(o.minute>-1&&(A.minute=parseInt(d[o.minute])),o.second>-1&&(A.second=parseInt(d[o.second])),o.millisecond>-1){let u=parseInt(d[o.millisecond]);o.millisecondDigits==2?u*=10:o.millisecondDigits==1&&(u*=100),A.millisecond=u}if(o.timestamp>-1){A.timestamp=parseInt(d[o.timestamp]);let u=new Date(A.timestamp);A.year=u.getUTCFullYear(),A.month=u.getUTCMonth(),A.day=u.getUTCDate(),A.hour=u.getUTCHours(),A.minute=u.getUTCMinutes(),A.second=u.getUTCSeconds(),A.millisecond=u.getUTCMilliseconds()}o.zone>-1&&(A.offset=this.resolveTimezoneOffset(new Date(A.year,A.month,A.day),d[o.zone])),o.iso>-1&&(A.year=ds(d[o.iso+0]),A.month=ds(d[o.iso+1])-1,A.day=ds(d[o.iso+2]),A.hour=ds(d[o.iso+3]),A.minute=ds(d[o.iso+4]),A.second=ds(d[o.iso+5]),A.millisecond=ds(d[o.iso+6]),d[o.iso+7]=="Z"||d[o.iso+7]=="z"?A.utc=!0:d[o.iso+7]!=""&&(A.offset=this.resolveTimezoneOffset(new Date(A.year,A.month,A.day),d[o.iso+7]))),A.utc?s=new Date(Date.UTC(A.year,A.month,A.day,A.hour,A.minute,A.second,A.millisecond)):s=new Date(A.year,A.month,A.day,A.hour,A.minute+A.offset,A.second,A.millisecond)}else s=new Date(e);return s}resolveTimezoneOffset(e,t){if(t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/)){let s=t.match(/([+\-]?)([0-9]{2}):?([0-9]{2})/),a=s[1],n=s[2],o=s[3],A=parseInt(n)*60+parseInt(o);a=="+"&&(A*=-1);let l=(e||new Date).getTimezoneOffset();return A-l}return 0}resolveMonth(e){let t=this._months().indexOf(e);return t>-1||!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._months()).indexOf(e),t>-1)?t:0}resolveShortMonth(e){let t=this._shortMonths().indexOf(e);return t>-1||(t=this._months().indexOf(e),t>-1)||this._root.language&&!this._root.language.isDefault()&&(t=this._root.language.translateAll(this._shortMonths()).indexOf(e),t>-1)?t:0}isAm(e){return this.getStringList(["AM","A.M.","A"]).indexOf(e.toUpperCase())>-1}getStringList(e){let t=[];for(let i=0;i<e.length;i++)this._root.language?t.push(Rg(this._t(e[i]))):t.push(Rg(e[i]));return t}};var yd=class extends pt{constructor(){super(...arguments),this._unitAliases={Y:"y",D:"d",H:"h",K:"h",k:"h",n:"S"}}_setDefaults(){let e="_duration_millisecond",t="_duration_second",i="_duration_minute",s="_duration_hour",a="_duration_day",n="_duration_week",o="_duration_month",A="_duration_year",l="_second",h="_minute",c="_hour",d="_day",u="_week",f="_week",m="_year";this._setDefault("negativeBase",0),this._setDefault("baseUnit","second"),this._setDefault("durationFormats",{millisecond:{millisecond:this._t(e),second:this._t(e+l),minute:this._t(e+h),hour:this._t(e+c),day:this._t(e+d),week:this._t(e+u),month:this._t(e+f),year:this._t(e+m)},second:{second:this._t(t),minute:this._t(t+h),hour:this._t(t+c),day:this._t(t+d),week:this._t(t+u),month:this._t(t+f),year:this._t(t+m)},minute:{minute:this._t(i),hour:this._t(i+c),day:this._t(i+d),week:this._t(i+u),month:this._t(i+f),year:this._t(i+m)},hour:{hour:this._t(s),day:this._t(s+d),week:this._t(s+u),month:this._t(s+f),year:this._t(s+m)},day:{day:this._t(a),week:this._t(a+u),month:this._t(a+f),year:this._t(a+m)},week:{week:this._t(n),month:this._t(n+f),year:this._t(n+m)},month:{month:this._t(o),year:this._t(o+m)},year:{year:this._t(A)}}),super._setDefaults()}_beforeChanged(){super._beforeChanged()}format(e,t,i){let s=i||this.get("baseUnit");(typeof t>"u"||t==="")&&(this.get("durationFormat")!=null?t=this.get("durationFormat"):t=this.getFormat(ds(e),void 0,s)),t=DA(t);let a=this.parseFormat(t,s),n=Number(e),o;n>this.get("negativeBase")?o=a.positive:n<this.get("negativeBase")?o=a.negative:o=a.zero;let A=this.applyFormat(n,o);return o.color!==""&&(A="["+o.color+"]"+A+"[/]"),A}parseFormat(e,t){let i=t||this.get("baseUnit"),s={positive:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},negative:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1},zero:{color:"",template:"",parts:[],source:"",baseUnit:i,parsed:!1,absolute:!1}};e=e.replace("||",In);let a=e.split("|");return s.positive.source=a[0],typeof a[2]>"u"?s.zero=s.positive:s.zero.source=a[2],typeof a[1]>"u"?s.negative=s.positive:s.negative.source=a[1],Ye(s,(n,o)=>{if(o.parsed)return;let A=o.source,l=[];l=o.source.match(/^\[([^\]]*)\]/),l&&l.length&&l[0]!==""&&(A=o.source.substr(l[0].length),o.color=l[1]);let h=ts.chunk(A,!0);for(let c=0;c<h.length;c++){let d=h[c];if(d.text=d.text.replace(In,"|"),d.type==="value"){d.text.match(/[yYMdDwhHKkmsSn]+a/)&&(o.absolute=!0,d.text=d.text.replace(/([yYMdDwhHKkmsSn]+)a/,"$1"));let u=d.text.match(/y+|Y+|M+|d+|D+|w+|h+|H+|K+|k+|m+|s+|S+|n+/g);if(u)for(let f=0;f<u.length;f++)u[f]==null&&(u[f]=this._unitAliases[u[f]]),o.parts.push(u[f]),d.text=d.text.replace(u[f],Lr)}o.template+=d.text}o.parsed=!0}),s}applyFormat(e,t){let i=!t.absolute&&e<this.get("negativeBase");e=Math.abs(e);let s=this.toTimeStamp(e,t.baseUnit),a=t.template,n={millisecond:0,second:0,minute:0,hour:0,day:0,week:0,month:0,year:0};for(let o=0,A=t.parts.length;o<A;o++){let l=t.parts[o],h=this._toTimeUnit(l.substr(0,1)),c,d=this._getUnitValue(h);o<A-1?c=Math.floor(s/d):c=Math.round(s/d),n[h]+=c,s-=c*d}Ye(n,(o,A)=>{o=="millisecond"&&A==1e3?(n.second++,n.millisecond=0):o=="second"&&A==60?(n.minute++,n.second=0):o=="minute"&&A==60?(n.hour++,n.minute=0):o=="hour"&&A==24?(n.day++,n.hour=0):o=="day"&&A==7&&t.parts.indexOf("w")!==-1?(n.week++,n.day=0):o=="day"&&A==30?(n.month++,n.day=0):o=="month"&&A==12&&(n.year++,n.month=0)});for(let o=0,A=t.parts.length;o<A;o++){let l=t.parts[o],h=this._toTimeUnit(l.substr(0,1)),c=l.length;a=a.replace(Lr,hi(n[h],c,"0"))}return i&&(a="-"+a),a}toTimeStamp(e,t){return e*this._getUnitValue(t)}_toTimeUnit(e){switch(e){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year"}}getFormat(e,t,i){if(this.get("durationFormat")!=null)return this.get("durationFormat");if(i||(i=this.get("baseUnit")),t!=null&&e!=t){e=Math.abs(e),t=Math.abs(t);let s=this.getValueUnit(Math.max(e,t),i);return this.get("durationFormats")[i][s]}else{let s=this.getValueUnit(e,i);return this.get("durationFormats")[i][s]}}getValueUnit(e,t){t||(t=this.get("baseUnit"));let i,s=this.getMilliseconds(e,t);return Iv(this._getUnitValues(),(a,n)=>{if(a==t||i){if(s/n<=1)return i||(i=a),!1;i=a}return!0}),i}getMilliseconds(e,t){return t||(t=this.get("baseUnit")),e*this._getUnitValue(t)}_getUnitValue(e){return this._getUnitValues()[e]}_getUnitValues(){return{millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:2592e6,year:31536e6}}};var xd={firstDayOfWeek:1,_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\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_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"",P:"",AM:"",PM:"","A.M.":"","P.M.":"",January:"",February:"",March:"",April:"",May:"",June:"",July:"",August:"",September:"",October:"",November:"",December:"",Jan:"",Feb:"",Mar:"",Apr:"","May(short)":"May",Jun:"",Jul:"",Aug:"",Sep:"",Oct:"",Nov:"",Dec:"",Sunday:"",Monday:"",Tuesday:"",Wednesday:"",Thursday:"",Friday:"",Saturday:"",Sun:"",Mon:"",Tue:"",Wed:"",Thu:"",Fri:"",Sat:"",_dateOrd:function(r){let e="th";if(r<11||r>13)switch(r%10){case 1:e="st";break;case 2:e="nd";break;case 3:e="rd";break}return e},"Zoom Out":"",Play:"",Stop:"",Legend:"","Press ENTER to toggle":"",Loading:"",Home:"",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Force directed tree":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"",Image:"",Data:"",Print:"","Press ENTER or use arrow keys to navigate":"","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"","From %1":"","To %1":"","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};var bd=class extends pt{_setDefaults(){this.setPrivate("defaultLocale",xd),super._setDefaults()}translate(e,t,...i){t||(t=this._root.locale||this.getPrivate("defaultLocale"));let s=e,a=t[e];if(a===null)s="";else if(a!=null)a&&(s=a);else if(t!==this.getPrivate("defaultLocale"))return this.translate(e,this.getPrivate("defaultLocale"),...i);if(i.length)for(let n=i.length,o=0;o<n;++o)s=s.split("%"+(o+1)).join(i[o]);return s}translateAny(e,t,...i){return this.translate(e,t,...i)}setTranslationAny(e,t,i){let s=i||this._root.locale;s[e]=t}setTranslationsAny(e,t){Ye(e,(i,s)=>{this.setTranslationAny(i,s,t)})}translateEmpty(e,t,...i){let s=this.translate(e,t,...i);return s==e?"":s}translateFunc(e,t){return this._root.locale[e]?this._root.locale[e]:t!==this.getPrivate("defaultLocale")?this.translateFunc(e,this.getPrivate("defaultLocale")):()=>""}translateAll(e,t){return this.isDefault()?e:Nl(e,i=>this.translate(i,t))}isDefault(){return this.getPrivate("defaultLocale")===this._root.locale}};var Js=class{constructor(e,t){if(this._rules={},this._root=e,!t)throw new Error("You cannot use `new Class()`, instead use `Class.new()`")}static new(e){let t=new this(e,!0);return t.setupDefaultRules(),t}setupDefaultRules(){}_lookupRules(e){return this._rules[e]}ruleRaw(e,t=[]){let i=this._rules[e];i||(i=this._rules[e]=[]),t.sort(js);let{index:s,found:a}=Gl(i,n=>{let o=js(n.tags.length,t.length);return o===0?ud(n.tags,t,js):o});if(a)return i[s].template;{let n=Ke.new({});return i.splice(s,0,{tags:t,template:n}),n}}rule(e,t=[]){return this.ruleRaw(e,t)}};function we(r,e,t,i){r.set(e,t.get(i)),t.on(i,s=>{r.set(e,s)})}var vd=class extends Js{setupDefaultRules(){super.setupDefaultRules();let e=this._root.language,t=this._root.interfaceColors,i=this._root.horizontalLayout,s=this._root.verticalLayout,a=this.rule.bind(this);a("InterfaceColors").setAll({stroke:Ie.fromHex(15066597),fill:Ie.fromHex(15987699),primaryButton:Ie.fromHex(6788316),primaryButtonHover:Ie.fromHex(6779356),primaryButtonDown:Ie.fromHex(6872182),primaryButtonActive:Ie.fromHex(6872182),primaryButtonDisabled:Ie.fromHex(14342874),primaryButtonTextDisabled:Ie.fromHex(16777215),primaryButtonText:Ie.fromHex(16777215),primaryButtonStroke:Ie.fromHex(16777215),secondaryButton:Ie.fromHex(14277081),secondaryButtonHover:Ie.fromHex(10724259),secondaryButtonDown:Ie.fromHex(9276813),secondaryButtonActive:Ie.fromHex(15132390),secondaryButtonText:Ie.fromHex(0),secondaryButtonStroke:Ie.fromHex(16777215),grid:Ie.fromHex(0),background:Ie.fromHex(16777215),alternativeBackground:Ie.fromHex(0),text:Ie.fromHex(0),alternativeText:Ie.fromHex(16777215),disabled:Ie.fromHex(11382189),positive:Ie.fromHex(5288704),negative:Ie.fromHex(11730944)});{let n=a("ColorSet");n.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[Ie.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),n.setPrivate("currentStep",0),n.setPrivate("currentPass",0)}a("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:an(Wr)}),a("Component").setAll({interpolationDuration:0,interpolationEasing:an(Wr)}),a("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:Ce,tooltipY:Ce,tooltipPosition:"fixed",isMeasured:!0}),a("Sprite").states.create("default",{visible:!0,opacity:1}),a("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),a("Graphics").setAll({strokeWidth:1}),a("Chart").setAll({width:Ae,height:Ae,interactiveChildren:!1}),a("ZoomableContainer").setAll({width:Ae,height:Ae,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:an(Wr),animationDuration:600,maxPanOut:.4}),a("Sprite",["horizontal","center"]).setAll({centerX:Ce,x:Ce}),a("Sprite",["vertical","center"]).setAll({centerY:Ce,y:Ce}),a("Container",["horizontal","layout"]).setAll({layout:i}),a("Container",["vertical","layout"]).setAll({layout:s}),a("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),a("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),a("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),a("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),a("GrainPattern").setAll({width:200,height:200,colors:[Ie.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{let n=a("PatternSet");n.setAll({step:1}),we(n,"color",t,"stroke")}a("LinearGradient").setAll({rotation:90}),a("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:kr.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),a("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:e.translate("Press ENTER to toggle"),role:"checkbox"});{let n=a("Rectangle",["legend","item","background"]);n.setAll({fillOpacity:0}),we(n,"fill",t,"background")}a("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:Ce,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),a("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:Ae,height:Ae,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{let n=a("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});we(n,"fill",t,"disabled"),we(n,"stroke",t,"disabled")}a("Label",["legend","label"]).setAll({centerY:Ce,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});{let n=a("Label",["legend","label"]).states.create("disabled",{});we(n,"fill",t,"disabled")}a("Label",["legend","value","label"]).setAll({centerY:Ce,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:Ae,populateText:!0});{let n=a("Label",["legend","value","label"]).states.create("disabled",{});we(n,"fill",t,"disabled")}a("HeatLegend").setAll({stepCount:1}),a("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),a("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:Ae,width:15}),a("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:Ae,height:15}),a("HeatLegend",["vertical"]).setAll({height:Ae}),a("HeatLegend",["horizontal"]).setAll({width:Ae}),a("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),a("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{let n=a("Label");n.setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,fontFamily:'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontSize:"1em",populateText:!1}),we(n,"fill",t,"text")}a("RadialLabel").setAll({textType:"regular",centerY:Ce,centerX:Ce,inside:!1,radius:0,baseRadius:Ae,orientation:"auto",textAlign:"center"}),a("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),a("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:Ie.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:Ie.fromHex(0)}),a("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),a("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),a("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),a("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{let n=a("Tick");n.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),we(n,"stroke",t,"grid")}a("Bullet").setAll({locationX:.5,locationY:.5}),a("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:Ce,centerY:Ce,animationEasing:an(Wr),exportable:!1}),a("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{let n=a("PointedRectangle",["tooltip","system","background"]);n.setAll({strokeOpacity:.3}),we(n,"fill",t,"background"),we(n,"stroke",t,"grid")}a("Label",["tooltip","system"]).setAll({fontSize:12,fill:t.get("background")}),a("Polygon").setAll({animationEasing:an(Wr)}),a("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{let n=a("OrthogonalLine",["link","line"]);n.setAll({isMeasured:!1,crisp:!0});let o=n.states.create("active",{strokeWidth:2});we(o,"stroke",t,"negative")}a("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{let n=a("OrthogonalLine");n.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),we(n,"stroke",t,"grid")}{let n=a("Triangle",["link"]);n.setAll({width:14,height:10,centerY:0}),we(n,"fill",t,"grid"),we(n,"stroke",t,"grid"),n.states.create("default",{stateAnimationDuration:0});let o=n.states.create("active",{stateAnimationDuration:0,stroke:us(16777215),strokeWidth:2});o.set("draw",A=>{A.arc(0,0,11,0,Math.PI*2),A.moveTo(-4,-4),A.lineTo(4,4),A.moveTo(4,-4),A.lineTo(-4,4)}),we(o,"fill",t,"negative")}a("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:Ie.fromHex(16777215)});{let n=a("Label",["tooltip"]);n.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),we(n,"fill",t,"alternativeText")}a("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),a("Button").states.create("hover",{}),a("Button").states.create("down",{stateAnimationDuration:0}),a("Button").states.create("active",{}),a("Button").states.create("disabled",{forceInactive:!0});{let n=a("RoundedRectangle",["button","background"]);we(n,"fill",t,"primaryButton"),we(n,"stroke",t,"primaryButtonStroke")}{let n=a("RoundedRectangle",["button","background"]).states.create("hover",{});we(n,"fill",t,"primaryButtonHover")}{let n=a("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0});we(n,"fill",t,"primaryButtonDown")}{let n=a("RoundedRectangle",["button","background"]).states.create("active",{});we(n,"fill",t,"primaryButtonActive")}{let n=a("RoundedRectangle",["button","background"]).states.create("disabled",{});we(n,"fill",t,"primaryButtonDisabled")}{let n=a("Graphics",["button","icon"]).states.create("disabled",{});we(n,"fill",t,"primaryButtonTextDisabled")}{let n=a("Label",["button"]).states.create("disabled",{});we(n,"fill",t,"primaryButtonTextDisabled")}{let n=a("Graphics",["button","icon"]);n.setAll({forceInactive:!0}),we(n,"stroke",t,"primaryButtonText")}{let n=a("Label",["button"]);we(n,"fill",t,"primaryButtonText")}a("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:at.new(this._root,{text:e.translate("Confirm"),forceHidden:!0})});{let n=a("RoundedRectangle",["button","background","confirm"]).states.create("active",{});we(n,"fill",t,"negative")}a("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),a("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),a("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{let n=a("Graphics",["icon","confirm","button"]);n.setAll({stateAnimationDuration:0}),n.states.create("default",{stateAnimationDuration:0}),we(n,"stroke",t,"primaryButtonText")}{let n=a("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2});we(n,"stroke",t,"primaryButtonText")}{let n=a("Graphics",["icon","confirm","button","secondary"]).states.create("active",{});we(n,"stroke",t,"primaryButtonText")}{let n=a("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1});we(n,"fill",t,"negative")}{let n=a("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1});we(n,"fill",t,"negative")}a("Button",["button","confirm"]).states.create("hoverActive",{}),a("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:Ae,role:"button",ariaLabel:e.translate("Zoom Out"),layer:30});{let n=a("RoundedRectangle",["background","button","zoom"]);n.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),we(n,"fill",t,"primaryButton")}{let n=a("RoundedRectangle",["background","button","zoom"]).states.create("hover",{});we(n,"fill",t,"primaryButtonHover")}{let n=a("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0});we(n,"fill",t,"primaryButtonDown")}{let n=a("Graphics",["icon","button","zoom"]);n.setAll({crisp:!0,strokeOpacity:.7,draw:o=>{o.moveTo(0,0),o.lineTo(12,0)}}),we(n,"stroke",t,"primaryButtonText")}a("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:Ce,centerY:Ce,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:e.translate("Use up and down arrows to move selection")});{let n=a("RoundedRectangle",["background","resize","button"]);n.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),we(n,"fill",t,"secondaryButton"),we(n,"stroke",t,"secondaryButtonStroke")}{let n=a("RoundedRectangle",["background","resize","button"]).states.create("hover",{});we(n,"fill",t,"secondaryButtonHover")}{let n=a("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0});we(n,"fill",t,"secondaryButtonDown")}{let n=a("Graphics",["resize","button","icon"]);n.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:o=>{o.moveTo(0,.5),o.lineTo(0,12.5),o.moveTo(4,.5),o.lineTo(4,12.5)}}),we(n,"stroke",t,"secondaryButtonText")}a("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),a("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),a("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:e.translate("Play"),toggleKey:"active"});{let n=a("RoundedRectangle",["play","background"]);n.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),we(n,"fill",t,"primaryButton")}{let n=a("Graphics",["play","icon"]);n.setAll({stateAnimationDuration:0,dx:1,draw:o=>{o.moveTo(0,-5),o.lineTo(8,0),o.lineTo(0,5),o.lineTo(0,-5)}}),we(n,"fill",t,"primaryButtonText")}a("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),a("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:n=>{n.moveTo(-4,-5),n.lineTo(-1,-5),n.lineTo(-1,5),n.lineTo(-4,5),n.lineTo(-4,-5),n.moveTo(4,-5),n.lineTo(1,-5),n.lineTo(1,5),n.lineTo(4,5),n.lineTo(4,-5)}}),a("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:e.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{let n=a("RoundedRectangle",["switch","background"]);n.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),we(n,"fill",t,"primaryButton")}{let n=a("Circle",["switch","icon"]);n.setAll({radius:8,centerY:0,centerX:0,dx:0}),we(n,"fill",t,"primaryButtonText")}a("Graphics",["switch","icon"]).states.create("active",{dx:16}),a("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:an(Wr)}),a("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:Ae}),a("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:Ae}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{let n=a("RoundedRectangle",["scrollbar","main","background"]);n.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),we(n,"fill",t,"fill")}{let n=a("RoundedRectangle",["scrollbar","thumb"]);n.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),we(n,"fill",t,"secondaryButton")}{let n=a("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{});we(n,"fill",t,"secondaryButtonHover")}{let n=a("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0});we(n,"fill",t,"secondaryButtonDown")}a("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:Ce,width:Ae,centerX:Ce,ariaLabel:e.translate("Use up and down arrows to move selection")}),a("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:Ce,centerY:Ce,height:Ae,ariaLabel:e.translate("Use left and right arrows to move selection")});{let n=a("PointedRectangle",["axis","tooltip","background"]);n.setAll({cornerRadius:0}),we(n,"fill",t,"alternativeBackground")}a("Label",["axis","tooltip"]).setAll({role:void 0}),a("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),a("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),a("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),a("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),a("Star").setAll({spikes:5,innerRadius:5,radius:10}),a("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),a("Tooltip",["indicator"]).setAll({forceHidden:!0}),a("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),a("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),a("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),a("Container",["resizer","grip"]).states.create("hover",{});{let n=a("RoundedRectangle",["resizer","grip"]);n.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),we(n,"fill",t,"background"),we(n,"stroke",t,"alternativeBackground")}{let n=a("RoundedRectangle",["resizer","grip","outline"]);n.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),n.states.create("hover",{fillOpacity:.3}),we(n,"fill",t,"alternativeBackground")}a("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),a("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{let n=a("Rectangle",["resizer","rectangle"]);n.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),we(n,"stroke",t,"alternativeBackground")}a("Graphics",["button","plus","icon"]).setAll({x:Ce,y:Ce,draw:n=>{n.moveTo(-4,0),n.lineTo(4,0),n.moveTo(0,-4),n.lineTo(0,4)}}),a("Graphics",["button","minus","icon"]).setAll({x:Ce,y:Ce,draw:n=>{n.moveTo(-4,0),n.lineTo(4,0)}}),a("Graphics",["button","home","icon"]).setAll({x:Ce,y:Ce,svgPath:"M 8 -1 L 6 -1 L 6 7 L 2 7 L 2 1 L -2 1 L -2 7 L -6 7 L -6 -1 L -8 -1 L 0 -9 L 8 -1 Z M 8 -1"}),a("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2}),a("ZoomTools").setAll({x:Ae,centerX:Ae,y:Ae,centerY:Ae,paddingRight:10,paddingBottom:10}),a("ProgressPie").setAll({radius:Ae,width:50,height:50,centerX:Ve(-50),centerY:Ve(-50),innerRadius:Ve(85),numberFormat:"#."});{let n=a("Label",["progresspie"]);n.setAll({centerX:Ce,centerY:Ce,fontSize:"0.75em"}),we(n,"fill",t,"primaryButton")}{let n=a("Circle",["progresspie"]);n.setAll({fillOpacity:.5}),we(n,"fill",t,"background")}{let n=a("Slice",["progresspie"]);n.setAll({startAngle:-90}),we(n,"fill",t,"primaryButton")}{let n=a("Slice",["progresspie","background"]);n.setAll({fillOpacity:.2,arc:360}),we(n,"fill",t,"primaryButton")}a("EditableLabel",["numericstepper"]).setAll({y:Ce,centerY:Ce,multiLine:!1,marginRight:2});{let n=a("Container",["numericstepper","buttons"]);n.setAll({layout:this._root.verticalLayout,centerY:Ce,y:Ce,marginRight:10,opacity:0}),n.states.create("active",{opacity:1}),n.states.create("default",{opacity:0})}{let n=a("Triangle",["numericstepper"]);n.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),we(n,"fill",t,"secondaryButton")}a("Triangle",["downbutton"]).setAll({rotation:180})}};var QA=class{constructor(e=1,t=0,i=0,s=1,a=0,n=0){this.a=e,this.b=t,this.c=i,this.d=s,this.tx=a,this.ty=n}setTransform(e,t,i,s,a,n=1){this.a=Math.cos(a)*n,this.b=Math.sin(a)*n,this.c=-Math.sin(a)*n,this.d=Math.cos(a)*n,this.tx=e-(i*this.a+s*this.c),this.ty=t-(i*this.b+s*this.d)}apply(e){return{x:this.a*e.x+this.c*e.y+this.tx,y:this.b*e.x+this.d*e.y+this.ty}}applyInverse(e){let t=1/(this.a*this.d+this.c*-this.b);return{x:this.d*t*e.x+-this.c*t*e.y+(this.ty*this.c-this.tx*this.d)*t,y:this.a*t*e.y+-this.b*t*e.x+(-this.ty*this.a+this.tx*this.b)*t}}append(e){let t=this.a,i=this.b,s=this.c,a=this.d;this.a=e.a*t+e.b*s,this.b=e.a*i+e.b*a,this.c=e.c*t+e.d*s,this.d=e.c*i+e.d*a,this.tx=e.tx*t+e.ty*s+this.tx,this.ty=e.tx*i+e.ty*a+this.ty}prepend(e){let t=this.tx;if(e.a!==1||e.b!==0||e.c!==0||e.d!==1){let i=this.a,s=this.c;this.a=i*e.a+this.b*e.c,this.b=i*e.b+this.b*e.d,this.c=s*e.a+this.d*e.c,this.d=s*e.b+this.d*e.d}this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty}copyFrom(e){this.a=e.a,this.b=e.b,this.c=e.c,this.d=e.d,this.tx=e.tx,this.ty=e.ty}};var yI=(function(){function r(e,t){var i=[],s=!0,a=!1,n=void 0;try{for(var o=e[Symbol.iterator](),A;!(s=(A=o.next()).done)&&(i.push(A.value),!(t&&i.length===t));s=!0);}catch(l){a=!0,n=l}finally{try{!s&&o.return&&o.return()}finally{if(a)throw n}}return i}return function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return r(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),ic=Math.PI*2,ap=function(e,t,i,s,a,n,o){var A=e.x,l=e.y;A*=t,l*=i;var h=s*A-a*l,c=a*A+s*l;return{x:h+n,y:c+o}},xI=function(e,t){var i=t===1.5707963267948966?.551915024494:t===-1.5707963267948966?-.551915024494:1.3333333333333333*Math.tan(t/4),s=Math.cos(e),a=Math.sin(e),n=Math.cos(e+t),o=Math.sin(e+t);return[{x:s-a*i,y:a+s*i},{x:n+o*i,y:o-n*i},{x:n,y:o}]},tB=function(e,t,i,s){var a=e*s-t*i<0?-1:1,n=e*i+t*s;return n>1&&(n=1),n<-1&&(n=-1),a*Math.acos(n)},bI=function(e,t,i,s,a,n,o,A,l,h,c,d){var u=Math.pow(a,2),f=Math.pow(n,2),m=Math.pow(c,2),g=Math.pow(d,2),v=u*f-u*g-f*m;v<0&&(v=0),v/=u*g+f*m,v=Math.sqrt(v)*(o===A?-1:1);var B=v*a/n*d,w=v*-n/a*c,_=h*B-l*w+(e+i)/2,L=l*B+h*w+(t+s)/2,k=(c-B)/a,D=(d-w)/n,E=(-c-B)/a,O=(-d-w)/n,I=tB(1,0,k,D),M=tB(k,D,E,O);return A===0&&M>0&&(M-=ic),A===1&&M<0&&(M+=ic),[_,L,I,M]},vI=function(e){var t=e.px,i=e.py,s=e.cx,a=e.cy,n=e.rx,o=e.ry,A=e.xAxisRotation,l=A===void 0?0:A,h=e.largeArcFlag,c=h===void 0?0:h,d=e.sweepFlag,u=d===void 0?0:d,f=[];if(n===0||o===0)return[];var m=Math.sin(l*ic/360),g=Math.cos(l*ic/360),v=g*(t-s)/2+m*(i-a)/2,B=-m*(t-s)/2+g*(i-a)/2;if(v===0&&B===0)return[];n=Math.abs(n),o=Math.abs(o);var w=Math.pow(v,2)/Math.pow(n,2)+Math.pow(B,2)/Math.pow(o,2);w>1&&(n*=Math.sqrt(w),o*=Math.sqrt(w));var _=bI(t,i,s,a,n,o,c,u,m,g,v,B),L=yI(_,4),k=L[0],D=L[1],E=L[2],O=L[3],I=Math.abs(O)/(ic/4);Math.abs(1-I)<1e-7&&(I=1);var M=Math.max(Math.ceil(I),1);O/=M;for(var S=0;S<M;S++)f.push(xI(E,O)),E+=O;return f.map(function(P){var Y=ap(P[0],n,o,g,m,k,D),G=Y.x,ie=Y.y,J=ap(P[1],n,o,g,m,k,D),ne=J.x,z=J.y,K=ap(P[2],n,o,g,m,k,D),ge=K.x,he=K.y;return{x1:G,y1:ie,x2:ne,y2:z,x:ge,y:he}})},iB=vI;function BI(r,e,t){if(e!==t)throw new Error("Required "+t+" arguments for "+r+" but got "+e)}function sc(r,e,t){if(e<t)throw new Error("Required at least "+t+" arguments for "+r+" but got "+e)}function hr(r,e,t){if(sc(r,e,t),e%t!==0)throw new Error("Arguments for "+r+" must be in pairs of "+t)}function CI(r){for(let e=0;e<r.length;e+=7){let t=e+3,i=r[t];if(i.length>1){let s=/^([01])([01])(.*)$/.exec(i);s!==null&&(r.splice(t,0,s[1]),++t,r.splice(t,0,s[2]),++t,s[3].length>0?r[t]=s[3]:r.splice(t,1))}if(++t,i=r[t],i.length>1){let s=/^([01])(.+)$/.exec(i);s!==null&&(r.splice(t,0,s[1]),++t,r[t]=s[2])}}}function sB(r){if(r===0||r===1)return r;throw new Error("Flag must be 0 or 1")}function wI(r){let e=[0,0,0];for(let t=0;t<24;t++)e[t%3]<<=1,e[t%3]|=r&1,r>>=1;return(e[0]|0)+(e[1]<<8)+(e[2]<<16)}function Bd(r,e){for(;!(r.interactive&&!e(r));)if(r._parent)r=r._parent;else break}function _I(r,e,t){return Zt(r,nd(e),i=>{let s=Ug(i),a=i.touches;a?(a.length==0&&(a=i.changedTouches),t(Xl(a),s)):t([i],s)})}function rB(r){let e=document.createElement("canvas");e.width=1,e.height=1;let t=e.getContext("2d",{willReadFrequently:!0});t.drawImage(r,0,0,1,1);try{return t.getImageData(0,0,1,1),!1}catch{return console.warn('Image "'+r.src+'" is loaded from different host and is not covered by CORS policy. For more information about the implications read here: https://www.amcharts.com/docs/v5/concepts/cors'),!0}}function rc(r){r.width=0,r.height=0,r.style.width="0px",r.style.height="0px"}function aB(r){return Math.floor(r)+.5}var np=class{constructor(){this._x=0,this._y=0}get x(){return this._x}get y(){return this._y}set x(e){this._x=e}set y(e){this._y=e}},EA=class extends Un{constructor(e){super(),this.mask=null,this.visible=!0,this.exportable=!0,this.interactive=!1,this.inactive=null,this.wheelable=!1,this.cancelTouch=!1,this.isMeasured=!1,this.buttonMode=!1,this.alpha=1,this.compoundAlpha=1,this.angle=0,this.scale=1,this.x=0,this.y=0,this.crisp=!1,this.pivot=new np,this._localMatrix=new QA,this._matrix=new QA,this._uMatrix=new QA,this._renderer=e}subStatus(e){return{inactive:this.inactive==null?e.inactive:this.inactive,layer:this._layer||e.layer}}_dispose(){this._renderer._removeObject(this),this.getLayer().dirty=!0}getCanvas(){return this.getLayer().view}getLayer(){let e=this;for(;;){if(e._layer)return e._layer;if(e._parent)e=e._parent;else return this._renderer.defaultLayer}}setLayer(e,t){e==null?this._layer=void 0:(this._layer=this._renderer.getLayer(e,!0),this._layer.visible=!0,this._layer.margin=t,t&&En(this._layer.view,!1),this._renderer._ghostLayer.setMargin(this._renderer.layers),this._parent&&this._parent.registerChildLayer(this._layer),this._layer.dirty=!0,this._renderer.resizeLayer(this._layer),this._renderer.resizeGhost())}markDirtyLayer(){this.getLayer().dirty=!0}clear(){this.invalidateBounds()}invalidateBounds(){this._localBounds=void 0}_addBounds(e){}_getColorId(){return this._colorId===void 0&&(this._colorId=this._renderer.paintId(this)),this._colorId}_isInteractive(e){return!e.inactive&&(this.interactive||this._renderer._forceInteractive>0)}_isInteractiveMask(e){return this._isInteractive(e)}contains(e){for(;;){if(e===this)return!0;if(e._parent)e=e._parent;else return!1}}toGlobal(e){return this._matrix.apply(e)}toLocal(e){return this._matrix.applyInverse(e)}getLocalMatrix(){return this._uMatrix.setTransform(0,0,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._uMatrix}getLocalBounds(){return this._localBounds||(this._localBounds={left:1e7,top:1e7,right:-1e7,bottom:-1e7},this._addBounds(this._localBounds)),this._localBounds}getAdjustedBounds(e){this._setMatrix();let t=this.getLocalMatrix(),i=t.apply({x:e.left,y:e.top}),s=t.apply({x:e.right,y:e.top}),a=t.apply({x:e.right,y:e.bottom}),n=t.apply({x:e.left,y:e.bottom});return{left:Math.min(i.x,s.x,a.x,n.x),top:Math.min(i.y,s.y,a.y,n.y),right:Math.max(i.x,s.x,a.x,n.x),bottom:Math.max(i.y,s.y,a.y,n.y)}}on(e,t,i){return this.interactive?this._renderer._addEvent(this,e,t,i):new jt(()=>{})}_setMatrix(){this._localMatrix.setTransform(this.x,this.y,this.pivot.x,this.pivot.y,this.angle*Math.PI/180,this.scale),this._matrix.copyFrom(this._localMatrix),this._parent&&this._matrix.prepend(this._parent._matrix)}_transform(e,t){let i=this._matrix,s=i.tx*t,a=i.ty*t;this.crisp&&(s=aB(s),a=aB(a)),e.setTransform(i.a*t,i.b*t,i.c*t,i.d*t,s,a)}_transformMargin(e,t,i){let s=this._matrix;e.setTransform(s.a*t,s.b*t,s.c*t,s.d*t,(s.tx+i.left)*t,(s.ty+i.top)*t)}_transformLayer(e,t,i){i.margin?this._transformMargin(e,i.scale||t,i.margin):this._transform(e,i.scale||t)}render(e,t=0){if(this.visible&&(this.exportable!==!1||!this._renderer._omitTainted)){this._setMatrix();let i=this.subStatus(e),s=this._renderer.resolution,a=this._renderer.layers,n=this._renderer._ghostLayer,o=n.context,A=this.mask;A&&A._setMatrix(),W(a,l=>{if(l){let h=l.context;h.save(),A&&(A._transformLayer(h,s,l),A._runPath(h),h.clip()),h.globalAlpha=this.compoundAlpha*this.alpha,this._transformLayer(h,s,l),this.filter&&(h.filter=this.filter)}}),o.save(),A&&this._isInteractiveMask(i)&&(A._transformMargin(o,s,n.margin),A._runPath(o),o.clip()),this._transformMargin(o,s,n.margin),i.layer.order>0&&!t&&Vl(this._renderer._deferredGhostLayers,i.layer.order),this._render(i,t),o.restore(),W(a,l=>{l&&l.context.restore()})}}_render(e,t=0){this.exportable===!1&&(e.layer.tainted=!0)}_ghostOnly(e=0){return e>0}_drawGhost(e,t=0){let i=this._isInteractive(e),s=e.layer.order||0;return!!(i&&(s==0&&!this._ghostOnly(t)||s==t))}hovering(){return this._renderer._hovering.has(this)}dragging(){return this._renderer._dragging.some(e=>e.value===this)}shouldCancelTouch(){let e=this._renderer;return e.tapToActivate&&!e._touchActive?!1:this.cancelTouch?!0:this._parent?this._parent.shouldCancelTouch():!1}},op=class extends EA{constructor(){super(...arguments),this.interactiveChildren=!0,this._children=[]}_isInteractiveMask(e){return this.interactiveChildren||super._isInteractiveMask(e)}addChild(e){e._parent=this,this._children.push(e),e._layer&&this.registerChildLayer(e._layer)}addChildAt(e,t){e._parent=this,this._children.splice(t,0,e),e._layer&&this.registerChildLayer(e._layer)}removeChild(e){e._parent=void 0,yi(this._children,e)}_render(e,t){super._render(e);let i=this._renderer;this.interactive&&this.interactiveChildren&&++i._forceInteractive,W(this._children,s=>{s.compoundAlpha=this.compoundAlpha*this.alpha,s.render(e,t)}),this.interactive&&this.interactiveChildren&&--i._forceInteractive}registerChildLayer(e){this._childLayers||(this._childLayers=[]),kn(this._childLayers,e),this._parent&&this._parent.registerChildLayer(e)}markDirtyLayer(e=!1){super.markDirtyLayer(),e&&this._childLayers&&W(this._childLayers,t=>t.dirty=!0)}_dispose(){super._dispose(),this._childLayers&&W(this._childLayers,e=>{e.dirty=!0})}};function Di(r,e){r.left=Math.min(r.left,e.x),r.top=Math.min(r.top,e.y),r.right=Math.max(r.right,e.x),r.bottom=Math.max(r.bottom,e.y)}var ki=class{colorize(e,t){}colorizeGhost(e,t){this.colorize(e,t)}path(e){}pathGhost(e){this.path(e)}addBounds(e){}},Ap=class extends ki{colorize(e,t){e.beginPath()}},ac=class extends ki{constructor(e){super(),this.color=e}colorize(e,t){t!==void 0?e.fillStyle=t:e.fillStyle=this.color}},lp=class extends ki{constructor(e){super(),this.clearShadow=e}colorize(e,t){e.fill(),this.clearShadow&&(e.shadowColor="",e.shadowBlur=0,e.shadowOffsetX=0,e.shadowOffsetY=0)}},cp=class extends ki{colorize(e,t){e.stroke()}},nc=class extends ki{constructor(e,t,i,s){super(),this.width=e,this.color=t,this.lineJoin=i,this.lineCap=s}colorize(e,t){t!==void 0?e.strokeStyle=t:e.strokeStyle=this.color,e.lineWidth=this.width,this.lineJoin&&(e.lineJoin=this.lineJoin),this.lineCap&&(e.lineCap=this.lineCap)}},hp=class extends ki{constructor(e){super(),this.dash=e}colorize(e,t){e.setLineDash(this.dash)}},dp=class extends ki{constructor(e){super(),this.dashOffset=e}colorize(e,t){e.lineDashOffset=this.dashOffset}},up=class extends ki{constructor(e,t,i,s){super(),this.x=e,this.y=t,this.width=i,this.height=s}path(e){e.rect(this.x,this.y,this.width,this.height)}addBounds(e){let t=this.x,i=this.y,s=t+this.width,a=i+this.height;Di(e,{x:t,y:i}),Di(e,{x:s,y:i}),Di(e,{x:t,y:a}),Di(e,{x:s,y:a})}},fp=class extends ki{constructor(e,t,i){super(),this.x=e,this.y=t,this.radius=i}path(e){e.moveTo(this.x+this.radius,this.y),e.arc(this.x,this.y,this.radius,0,2*Math.PI)}addBounds(e){Di(e,{x:this.x-this.radius,y:this.y-this.radius}),Di(e,{x:this.x+this.radius,y:this.y+this.radius})}},gp=class extends ki{constructor(e,t,i,s){super(),this.x=e,this.y=t,this.radiusX=i,this.radiusY=s}path(e){e.ellipse(0,0,this.radiusX,this.radiusY,0,0,Math.PI*2)}addBounds(e){Di(e,{x:this.x-this.radiusX,y:this.y-this.radiusY}),Di(e,{x:this.x+this.radiusX,y:this.y+this.radiusY})}},pp=class extends ki{constructor(e,t,i,s,a,n){super(),this.cx=e,this.cy=t,this.radius=i,this.startAngle=s,this.endAngle=a,this.anticlockwise=n}path(e){this.radius>0&&e.arc(this.cx,this.cy,this.radius,this.startAngle,this.endAngle,this.anticlockwise)}addBounds(e){let t=Mn(this.cx,this.cy,this.startAngle*zs,this.endAngle*zs,this.radius);Di(e,{x:t.left,y:t.top}),Di(e,{x:t.right,y:t.bottom})}},mp=class extends ki{constructor(e,t,i,s,a){super(),this.x1=e,this.y1=t,this.x2=i,this.y2=s,this.radius=a}path(e){this.radius>0&&e.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)}addBounds(e){}},yp=class extends ki{constructor(e,t){super(),this.x=e,this.y=t}path(e){e.lineTo(this.x,this.y)}addBounds(e){Di(e,{x:this.x,y:this.y})}},xp=class extends ki{constructor(e,t){super(),this.x=e,this.y=t}path(e){e.moveTo(this.x,this.y)}addBounds(e){Di(e,{x:this.x,y:this.y})}},bp=class extends ki{path(e){e.closePath()}},vp=class extends ki{constructor(e,t,i,s,a,n){super(),this.cpX=e,this.cpY=t,this.cpX2=i,this.cpY2=s,this.toX=a,this.toY=n}path(e){e.bezierCurveTo(this.cpX,this.cpY,this.cpX2,this.cpY2,this.toX,this.toY)}addBounds(e){Di(e,{x:this.cpX,y:this.cpY}),Di(e,{x:this.cpX2,y:this.cpY2}),Di(e,{x:this.toX,y:this.toY})}},Bp=class extends ki{constructor(e,t,i,s){super(),this.cpX=e,this.cpY=t,this.toX=i,this.toY=s}path(e){e.quadraticCurveTo(this.cpX,this.cpY,this.toX,this.toY)}addBounds(e){Di(e,{x:this.cpX,y:this.cpY}),Di(e,{x:this.toX,y:this.toY})}},Cp=class extends ki{constructor(e,t,i,s,a){super(),this.color=e,this.blur=t,this.offsetX=i,this.offsetY=s,this.opacity=a}colorize(e,t){this.opacity&&(e.fillStyle=this.color),e.shadowColor=this.color,e.shadowBlur=this.blur,e.shadowOffsetX=this.offsetX,e.shadowOffsetY=this.offsetY}colorizeGhost(e,t){}},wp=class extends ki{constructor(e,t,i,s,a){super(),this.image=e,this.width=t,this.height=i,this.x=s,this.y=a}path(e){e.drawImage(this.image,this.x,this.y,this.width,this.height)}addBounds(e){Di(e,{x:this.x,y:this.y}),Di(e,{x:this.width,y:this.height})}},_p=class extends EA{constructor(){super(...arguments),this._operations=[],this.blendMode=UA.NORMAL,this._hasShadows=!1}clear(){super.clear(),this._operations.length=0}_pushOp(e){this._operations.push(e)}beginFill(e,t=1){this._fillAlpha=t,e?e instanceof Ie?this._pushOp(new ac(e.toCSS(t))):(this.isMeasured=!0,this._pushOp(new ac(e))):this._pushOp(new ac("rgba(0, 0, 0, "+t+")"))}endFill(){this._pushOp(new lp(this._hasShadows))}endStroke(){this._pushOp(new cp)}beginPath(){this._pushOp(new Ap)}lineStyle(e=0,t,i=1,s,a){this._strokeAlpha=i,t?t instanceof Ie?this._pushOp(new nc(e,t.toCSS(i),s,a)):this._pushOp(new nc(e,t,s,a)):this._pushOp(new nc(e,"rgba(0, 0, 0, "+i+")",s,a))}setLineDash(e){this._pushOp(new hp(e||[]))}setLineDashOffset(e=0){this._pushOp(new dp(e))}drawRect(e,t,i,s){this._pushOp(new up(e,t,i,s))}drawCircle(e,t,i){this._pushOp(new fp(e,t,i))}drawEllipse(e,t,i,s){this._pushOp(new gp(e,t,i,s))}arc(e,t,i,s,a,n=!1){this._pushOp(new pp(e,t,i,s,a,n))}arcTo(e,t,i,s,a){this._pushOp(new mp(e,t,i,s,a))}lineTo(e,t){this._pushOp(new yp(e,t))}moveTo(e,t){this._pushOp(new xp(e,t))}bezierCurveTo(e,t,i,s,a,n){this._pushOp(new vp(e,t,i,s,a,n))}quadraticCurveTo(e,t,i,s){this._pushOp(new Bp(e,t,i,s))}closePath(){this._pushOp(new bp)}shadow(e,t=0,i=0,s=0,a){this._hasShadows=!0,this._pushOp(new Cp(a?e.toCSS(a):e.toCSS(this._fillAlpha||this._strokeAlpha),t,i,s))}image(e,t,i,s,a){this._pushOp(new wp(e,t,i,s,a))}svgPath(e){let t=0,i=0,s=null,a=null,n=null,o=null,A=/([MmZzLlHhVvCcSsQqTtAa])([^MmZzLlHhVvCcSsQqTtAa]*)/g,l=/[\u0009\u0020\u000A\u000C\u000D]*([\+\-]?[0-9]*\.?[0-9]+(?:[eE][\+\-]?[0-9]+)?)[\u0009\u0020\u000A\u000C\u000D]*,?/g,h=this._operations.length;try{let c;for(;(c=A.exec(e))!==null;){let d=c[1],u=c[2],f=[];for(;(c=l.exec(u))!==null;)f.push(c[1]);switch(d!=="S"&&d!=="s"&&d!=="C"&&d!=="c"&&(s=null,a=null),d!=="Q"&&d!=="q"&&d!=="T"&&d!=="t"&&(n=null,o=null),d){case"M":hr(d,f.length,2),t=+f[0],i=+f[1],this.moveTo(t,i);for(let g=2;g<f.length;g+=2)t=+f[g],i=+f[g+1],this.lineTo(t,i);break;case"m":hr(d,f.length,2),t+=+f[0],i+=+f[1],this.moveTo(t,i);for(let g=2;g<f.length;g+=2)t+=+f[g],i+=+f[g+1],this.lineTo(t,i);break;case"L":hr(d,f.length,2);for(let g=0;g<f.length;g+=2)t=+f[g],i=+f[g+1],this.lineTo(t,i);break;case"l":hr(d,f.length,2);for(let g=0;g<f.length;g+=2)t+=+f[g],i+=+f[g+1],this.lineTo(t,i);break;case"H":sc(d,f.length,1);for(let g=0;g<f.length;++g)t=+f[g],this.lineTo(t,i);break;case"h":sc(d,f.length,1);for(let g=0;g<f.length;++g)t+=+f[g],this.lineTo(t,i);break;case"V":sc(d,f.length,1);for(let g=0;g<f.length;++g)i=+f[g],this.lineTo(t,i);break;case"v":sc(d,f.length,1);for(let g=0;g<f.length;++g)i+=+f[g],this.lineTo(t,i);break;case"C":hr(d,f.length,6);for(let g=0;g<f.length;g+=6){let v=+f[g],B=+f[g+1];s=+f[g+2],a=+f[g+3],t=+f[g+4],i=+f[g+5],this.bezierCurveTo(v,B,s,a,t,i)}break;case"c":hr(d,f.length,6);for(let g=0;g<f.length;g+=6){let v=+f[g]+t,B=+f[g+1]+i;s=+f[g+2]+t,a=+f[g+3]+i,t+=+f[g+4],i+=+f[g+5],this.bezierCurveTo(v,B,s,a,t,i)}break;case"S":hr(d,f.length,4),(s===null||a===null)&&(s=t,a=i);for(let g=0;g<f.length;g+=4){let v=2*t-s,B=2*i-a;s=+f[g],a=+f[g+1],t=+f[g+2],i=+f[g+3],this.bezierCurveTo(v,B,s,a,t,i)}break;case"s":hr(d,f.length,4),(s===null||a===null)&&(s=t,a=i);for(let g=0;g<f.length;g+=4){let v=2*t-s,B=2*i-a;s=+f[g]+t,a=+f[g+1]+i,t+=+f[g+2],i+=+f[g+3],this.bezierCurveTo(v,B,s,a,t,i)}break;case"Q":hr(d,f.length,4);for(let g=0;g<f.length;g+=4)n=+f[g],o=+f[g+1],t=+f[g+2],i=+f[g+3],this.quadraticCurveTo(n,o,t,i);break;case"q":hr(d,f.length,4);for(let g=0;g<f.length;g+=4)n=+f[g]+t,o=+f[g+1]+i,t+=+f[g+2],i+=+f[g+3],this.quadraticCurveTo(n,o,t,i);break;case"T":hr(d,f.length,2),(n===null||o===null)&&(n=t,o=i);for(let g=0;g<f.length;g+=2)n=2*t-n,o=2*i-o,t=+f[g],i=+f[g+1],this.quadraticCurveTo(n,o,t,i);break;case"t":hr(d,f.length,2),(n===null||o===null)&&(n=t,o=i);for(let g=0;g<f.length;g+=2)n=2*t-n,o=2*i-o,t+=+f[g],i+=+f[g+1],this.quadraticCurveTo(n,o,t,i);break;case"A":case"a":let m=d==="a";CI(f),hr(d,f.length,7);for(let g=0;g<f.length;g+=7){let v=+f[g+5],B=+f[g+6];m&&(v+=t,B+=i);let w=iB({px:t,py:i,rx:+f[g],ry:+f[g+1],xAxisRotation:+f[g+2],largeArcFlag:sB(+f[g+3]),sweepFlag:sB(+f[g+4]),cx:v,cy:B});W(w,_=>{this.bezierCurveTo(_.x1,_.y1,_.x2,_.y2,_.x,_.y),t=_.x,i=_.y})}break;case"Z":case"z":BI(d,f.length,0),this.closePath();break}}}catch(c){this._operations.length=h,console.warn(`Error when parsing svgPath:
|
|
8
|
+
`+c.message+`
|
|
9
|
+
`+e)}}_runPath(e){e.beginPath(),W(this._operations,t=>{t.path(e)})}_render(e,t=0){super._render(e);let i=e.layer.dirty,s=this._isInteractive(e),a=this._ghostOnly(t),n=this._drawGhost(e,t);if(i||s||a){let o=e.layer.context,A=this._renderer._ghostLayer.context;i&&!a&&(o.globalCompositeOperation=this.blendMode,o.beginPath());let l;n&&(A.beginPath(),l=this._getColorId()),W(this._operations,h=>{i&&!a&&(h.path(o),h.colorize(o,void 0)),n&&(h.pathGhost(A),h.colorizeGhost(A,l))})}}renderDetached(e){if(this.visible){this._setMatrix(),e.save();let t=this.mask;t&&(t._setMatrix(),t._transform(e,1),t._runPath(e),e.clip()),e.globalAlpha=this.compoundAlpha*this.alpha,this._transform(e,1),this.filter&&(e.filter=this.filter),e.globalCompositeOperation=this.blendMode,e.beginPath(),W(this._operations,i=>{i.path(e),i.colorize(e,void 0)}),e.restore()}}_addBounds(e){this.visible&&this.isMeasured&&W(this._operations,t=>{t.addBounds(e)})}},Cd=class extends EA{constructor(e,t,i){super(e),this.resolution=1,this.textVisible=!0,this._originalScale=1,this.text=t,this.style=i}invalidateBounds(){super.invalidateBounds(),this._textInfo=void 0}invalidateVisibility(){this.textVisible=!0,this.scale=this._originalScale||1}_shared(e){this.style.textAlign&&(e.textAlign=this.style.textAlign),this.style.direction&&(e.direction=this.style.direction),this.style.textBaseline&&(e.textBaseline=this.style.textBaseline)}_prerender(e,t=!1,i=!1){super._render(e);let s=e.layer.context,a=this._renderer._ghostLayer.context,n=this.style,o=this._getFontStyle(void 0,i);s.font=o,this._isInteractive(e)&&!t&&(a.font=o),n.fill&&(n.fill instanceof Ie?s.fillStyle=n.fill.toCSS(n.fillOpacity!=null?n.fillOpacity:1):s.fillStyle=n.fill),n.shadowColor&&(e.layer.context.shadowColor=n.shadowColor.toCSS(n.shadowOpacity||1)),n.shadowBlur&&(e.layer.context.shadowBlur=n.shadowBlur),n.shadowOffsetX&&(e.layer.context.shadowOffsetX=n.shadowOffsetX),n.shadowOffsetY&&(e.layer.context.shadowOffsetY=n.shadowOffsetY),this._shared(s),this._isInteractive(e)&&!t&&(a.fillStyle=this._getColorId(),this._shared(a))}_getFontStyle(e,t=!1){let i=this.style,s=[];return e&&e.fontVariant?s.push(e.fontVariant):i.fontVariant&&s.push(i.fontVariant),t||(e&&e.fontWeight?s.push(e.fontWeight):i.fontWeight&&s.push(i.fontWeight)),e&&e.fontStyle?s.push(e.fontStyle):i.fontStyle&&s.push(i.fontStyle),e&&e.fontSize?(j(e.fontSize)&&(e.fontSize=e.fontSize+"px"),s.push(e.fontSize)):i.fontSize&&(j(i.fontSize)&&(i.fontSize=i.fontSize+"px"),s.push(i.fontSize)),e&&e.fontFamily?s.push(e.fontFamily):i.fontFamily?s.push(i.fontFamily):s.length&&s.push("Arial"),s.join(" ")}_render(e,t=0){if(this._textInfo||this._measure(e),this.textVisible){let i=this._isInteractive(e),s=e.layer.context,a=e.layer.dirty,n=this._renderer._ghostLayer.context,o=this._ghostOnly(t),A=this._drawGhost(e,t);s.save(),n.save(),this._prerender(e),W(this._textInfo,(l,h)=>{W(l.textChunks,(c,d)=>{if(c.style&&(s.save(),n.save(),o||(s.font=c.style),this._isInteractive(e)&&(n.font=c.style)),c.fill&&(s.save(),o||(s.fillStyle=c.fill.toCSS())),a&&!o&&s.fillText(c.text,c.offsetX,l.offsetY+c.offsetY),c.textDecoration=="underline"||c.textDecoration=="line-through"){let u=1,f=1,m=c.height,g=this.style.oversizedBehavior||"";if(["truncate","wrap","wrap-no-break"].indexOf(g)>-1){let w=this._measureText(c.text,s);c.width=w.actualBoundingBoxLeft+w.actualBoundingBoxRight}let v=c.offsetX;switch(this.style.textAlign){case"right":case"end":v-=c.width;break;case"center":v-=c.width/2;break}if(c.style)switch(ts.getTextStyle(c.style).fontWeight){case"bolder":case"bold":case"700":case"800":case"900":u=2;break}m&&(f=m/20);let B;c.textDecoration=="line-through"?B=u+l.offsetY+c.offsetY-c.height/2:B=u+f*1.5+l.offsetY+c.offsetY,o||(s.save(),s.beginPath(),c.fill?s.strokeStyle=c.fill.toCSS():this.style.fill&&this.style.fill instanceof Ie&&(s.strokeStyle=this.style.fill.toCSS()),s.lineWidth=u*f,s.moveTo(v,B),s.lineTo(v+c.width,B),s.stroke(),s.restore())}i&&this.interactive&&A&&n.fillText(c.text,c.offsetX,l.offsetY+c.offsetY),c.fill&&s.restore(),c.style&&(s.restore(),n.restore())})}),s.restore(),n.restore()}}_addBounds(e){if(this.visible&&this.isMeasured){let t=this._measure({inactive:this.inactive,layer:this.getLayer()});Di(e,{x:t.left,y:t.top}),Di(e,{x:t.right,y:t.bottom})}}_ignoreFontWeight(){return/apple/i.test(navigator.vendor)}_measure(e){let t=e.layer.context,i=this._renderer._ghostLayer.context,s=this.style.direction=="rtl";this._textInfo=[];let a=this.style.oversizedBehavior,n=this.style.maxWidth,o=j(n)&&a=="truncate",A=j(n)&&(a=="wrap"||a=="wrap-no-break");t.save(),i.save(),this._prerender(e,!0,this._ignoreFontWeight());let l="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",h=this.text.toString().replace(/\r/g,"").split(/\n/),c=!0,d=0,u=0,f=0,m;W(h,(v,B)=>{let w;for(v==""?w=[{type:"value",text:""}]:w=ts.chunk(v,!1,this.style.ignoreFormatting);w.length>0;){let _={offsetY:f,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]},L=this._measureText(l,t),k=L.actualBoundingBoxAscent+L.actualBoundingBoxDescent;_.height=k,_.ascent=L.actualBoundingBoxAscent;let D,E=this.style.textDecoration,O,I,M=!1,S=!0,P=[],Y;$l(w,(G,ie)=>{if(G.type=="format")if(G.text=="[/]")c||(t.restore(),i.restore(),c=!0),O=void 0,m=void 0,I=void 0,E=this.style.textDecoration,Y=void 0,D=G.text;else{c||(t.restore(),i.restore());let J=ts.getTextStyle(G.text),ne=this._getFontStyle(J);t.save(),i.save(),t.font=ne,m=ne,D=G.text,J.textDecoration&&(E=J.textDecoration),J.fill&&(O=J.fill),J.width&&(I=ds(J.width)),J.verticalAlign&&(Y=J.verticalAlign),c=!1;let z=this._measureText(l,t),K=z.actualBoundingBoxAscent+z.actualBoundingBoxDescent;K>_.height&&(_.height=K),z.actualBoundingBoxAscent>_.ascent&&(_.ascent=z.actualBoundingBoxAscent)}else if(G.type=="value"&&!M){let J=this._measureText(G.text,t),ne=J.actualBoundingBoxLeft+J.actualBoundingBoxRight;if(o){this.truncated=void 0;let he=S||this.style.breakWords||!1,re=this.style.ellipsis||"",Me=this._measureText(re,t),Ne=Me.actualBoundingBoxLeft+Me.actualBoundingBoxRight;if(_.width+ne>n){let Ee=n-_.width-Ne;G.text=this._truncateText(t,G.text,Ee,he),G.text+=re,M=!0,this.truncated=!0}}else if(A&&_.width+ne>n){let he=n-_.width,re=this._truncateText(t,G.text,he,!1,S&&this.style.oversizedBehavior!="wrap-no-break");if(re=="")return this.textVisible=!0,!1;P=w.slice(ie+1),Qn(re)!=Qn(G.text)&&(P.unshift({type:"value",text:G.text.substr(re.length)}),D&&P.unshift({type:"format",text:D})),G.text=Qn(re),w=[],M=!0}let z=1,K=1;if(m&&I&&I>ne){let he=ne/I;switch(this.style.textAlign){case"right":case"end":z=he;break;case"center":z=he,K=he;break;default:K=he}ne=I}let ge=J.actualBoundingBoxAscent+J.actualBoundingBoxDescent;ge>_.height&&(_.height=ge),J.actualBoundingBoxAscent>_.ascent&&(_.ascent=J.actualBoundingBoxAscent),_.width+=ne,_.left+=J.actualBoundingBoxLeft/z,_.right+=J.actualBoundingBoxRight/K,_.textChunks.push({style:m,fill:O,text:G.text,width:ne,height:ge,left:J.actualBoundingBoxLeft,right:J.actualBoundingBoxRight,ascent:J.actualBoundingBoxAscent,offsetX:0,offsetY:0,textDecoration:E,verticalAlign:Y}),S=!1}return!0}),this.style.lineHeight instanceof Oe?(_.height*=this.style.lineHeight.value,_.ascent*=this.style.lineHeight.value):(_.height*=this.style.lineHeight||1.2,_.ascent*=this.style.lineHeight||1.2),d<_.left&&(d=_.left),u<_.right&&(u=_.right),this._textInfo.push(_),f+=_.height,w=P||[]}}),c||(t.restore(),i.restore()),W(this._textInfo,(v,B)=>{let w=0;W(v.textChunks,_=>{if(_.offsetX=w+_.left-v.left,_.offsetY+=v.height-v.height*(this.style.baselineRatio||.19),w+=_.width*(s?-1:1),_.verticalAlign)switch(_.verticalAlign){case"super":_.offsetY-=v.height/2-_.height/2;break;case"sub":_.offsetY+=_.height/2;break}})});let g={left:s?-u:-d,top:0,right:s?d:u,bottom:f};if(a!=="none"){let v=this._fitRatio(g);if(v<1)if(a=="fit")j(this.style.minScale)&&v<this.style.minScale?(this.textVisible=!1,g.left=0,g.top=0,g.right=0,g.bottom=0):(this._originalScale||(this._originalScale=this.scale),this.scale=v,this.textVisible=!0);else if(a=="hide")this.textVisible=!1,g.left=0,g.top=0,g.right=0,g.bottom=0;else{switch(this.style.textAlign){case"right":case"end":g.left=s?n:-n,g.right=0;break;case"center":g.left=-n/2,g.right=n/2;break;default:g.left=0,g.right=s?-n:n}this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}else this.scale=this._originalScale||1,this._originalScale=void 0,this.textVisible=!0}return t.restore(),i.restore(),g}_fitRatio(e){let t=this.style.maxWidth,i=this.style.maxHeight;if(!j(t)&&!j(i))return 1;let s=e.right-e.left,a=e.bottom-e.top;return Math.min(t/s||1,i/a||1)}_truncateText(e,t,i,s=!1,a=!0){let n;do{if(s)t=t.slice(0,-1);else{let A=t.replace(/[^,;:!?\\\/\s]+[,;:!?\\\/\s]*$/g,"");if((A==""||A===t)&&a)s=!0;else{if(A=="")return t;t=A}}let o=this._measureText(t,e);n=o.actualBoundingBoxLeft+o.actualBoundingBoxRight}while(n>i&&t!="");return t}_measureText(e,t){let i=t.measureText(e),s={};if(i.actualBoundingBoxAscent==null){let n=document.createElement("div");n.innerText=e,n.style.visibility="hidden",n.style.position="absolute",n.style.top="-1000000px;",n.style.fontFamily=this.style.fontFamily||"",n.style.fontSize=this.style.fontSize+"",document.body.appendChild(n);let o=n.getBoundingClientRect();document.body.removeChild(n);let A=o.height,l=i.width;s={actualBoundingBoxAscent:A,actualBoundingBoxDescent:0,actualBoundingBoxLeft:0,actualBoundingBoxRight:l,fontBoundingBoxAscent:A,fontBoundingBoxDescent:0,width:l}}else s={actualBoundingBoxAscent:i.actualBoundingBoxAscent,actualBoundingBoxDescent:i.actualBoundingBoxDescent,actualBoundingBoxLeft:i.actualBoundingBoxLeft,actualBoundingBoxRight:i.actualBoundingBoxRight,fontBoundingBoxAscent:i.actualBoundingBoxAscent,fontBoundingBoxDescent:i.actualBoundingBoxDescent,width:i.width};let a=i.width;switch(this.style.textAlign){case"right":case"end":s.actualBoundingBoxLeft=a,s.actualBoundingBoxRight=0;break;case"center":s.actualBoundingBoxLeft=a/2,s.actualBoundingBoxRight=a/2;break;default:s.actualBoundingBoxLeft=0,s.actualBoundingBoxRight=a}return s}},Fp=class{constructor(){this.lineHeight=Ve(120),this.baselineRatio=.19,this.oversizedBehavior="none",this.breakWords=!1,this.ellipsis="\u2026",this.ignoreFormatting=!1}},Sp=class extends Cd{constructor(){super(...arguments),this.textType="circular",this.inside=!1,this.orientation="auto",this.kerning=0,this._textReversed=!1}_render(e,t=0){this.textType==="circular"?this._renderCircular(e,t):super._render(e,t)}_renderCircular(e,t=0){if(this.textVisible){this._prerender(e);let i=this._isInteractive(e),s=e.layer.context,a=e.layer.dirty,n=this._renderer._ghostLayer.context;s.save(),i&&n.save(),this._textInfo||this._measure(e);let o=this.radius||0,A=this.startAngle||0,l=0,h=this.orientation,c=h=="auto"?"auto":h=="inward",d=this.inside,u=this.style.textAlign||"left",f=this.kerning||0,m=u=="left"?1:-1,g=!this._textReversed,v=this._ghostOnly(t),B=this._drawGhost(e,t);if(c=="auto"){let w=0,_=0;W(this._textInfo,(L,k)=>{let D=A+L.width/(o-L.height)/2*-m;D>w&&(w=D)}),u=="left"?_=(w+l/2)*zs:u=="right"?_=(w-l/2)*zs:_=A*zs,_=_s(_),c=_>=270||_<=90}c==!0&&g&&(this._textInfo.reverse(),this._textReversed=!0),W(this._textInfo,(w,_)=>{let L=w.height;d||(o+=L),(m==-1&&c||m==1&&!c)&&g&&w.textChunks.reverse();let k=A;l=0,u=="center"&&(k+=w.width/(o-L)/2*-m,l=k-A),k+=Math.PI*(c?0:1),s.save(),i&&n.save(),v||s.rotate(k),i&&n.rotate(k);let D=0;W(w.textChunks,(E,O)=>{let I=E.text,M=E.width;D=M/2/(o-L)*m,v||s.rotate(D),i&&n.rotate(D),E.style&&(s.save(),n.save(),v||(s.font=E.style),i&&(n.font=E.style)),E.fill&&(s.save(),v||(s.fillStyle=E.fill.toCSS())),v||(s.textBaseline="middle",s.textAlign="center"),i&&(n.textBaseline="middle",n.textAlign="center"),a&&!v&&s.fillText(I,0,(c?1:-1)*(0-o+L/2)),i&&B&&n.fillText(I,0,(c?1:-1)*(0-o+L/2)),E.fill&&s.restore(),E.style&&(s.restore(),n.restore()),D=(M/2+f)/(o-L)*m,v||s.rotate(D),i&&n.rotate(D)}),s.restore(),i&&n.restore(),d&&(o-=L)}),s.restore(),i&&n.restore()}}_measure(e){return this.textType==="circular"?this._measureCircular(e):super._measure(e)}_measureCircular(e){let t=e.layer.context,i=this._renderer._ghostLayer.context,s=this.style.direction=="rtl",a=this.style.oversizedBehavior,n=this.style.maxWidth,o=j(n)&&a=="truncate",A=this.style.ellipsis||"",l;this.textVisible=!0,this._textInfo=[],this._textReversed=!1,t.save(),i.save(),this._prerender(e,!0);let h=this.text.toString().replace(/\r/g,"").split(/\n/),c=!0,d=0,u=0;return W(h,(f,m)=>{let g=ts.chunk(f,!1,this.style.ignoreFormatting),v={offsetY:u,ascent:0,width:0,height:0,left:0,right:0,textChunks:[]},B,w,_;W(g,(L,k)=>{if(L.type=="format"){if(L.text=="[/]")c||(t.restore(),i.restore(),c=!0),w=void 0,B=void 0,_=void 0;else{let D=ts.getTextStyle(L.text),E=this._getFontStyle(D);t.save(),i.save(),t.font=E,B=E,D.fill&&(w=D.fill),D.width&&(_=ds(D.width)),c=!1}o&&(l=this._measureText(A,t))}else if(L.type=="value"){let D=L.text.match(/./ug)||[];s&&(D=Hv(L.text),D.reverse());for(let E=0;E<D.length;E++){let O=D[E],I=this._measureText(O,t),M=I.width;B&&_&&_>M&&(M=_);let S=I.actualBoundingBoxAscent+I.actualBoundingBoxDescent;if(S>v.height&&(v.height=S),I.actualBoundingBoxAscent>v.ascent&&(v.ascent=I.actualBoundingBoxAscent),d+=M,o){l||(l=this._measureText(A,t));let P=l.actualBoundingBoxLeft+l.actualBoundingBoxRight;if(d+P>n){v.textChunks.length==1?this.textVisible=!1:(v.width+=P,v.left+=l.actualBoundingBoxLeft,v.right+=l.actualBoundingBoxRight,v.textChunks.push({style:B,fill:w,text:A,width:P,height:S+l.actualBoundingBoxDescent,left:l.actualBoundingBoxLeft,right:l.actualBoundingBoxRight,ascent:l.actualBoundingBoxAscent,offsetX:0,offsetY:S,textDecoration:void 0}));break}}v.width+=M,v.left+=I.actualBoundingBoxLeft,v.right+=I.actualBoundingBoxRight,v.textChunks.push({style:B,fill:w,text:O,width:M,height:S+I.actualBoundingBoxDescent,left:I.actualBoundingBoxLeft,right:I.actualBoundingBoxRight,ascent:I.actualBoundingBoxAscent,offsetX:0,offsetY:S,textDecoration:void 0})}}}),this.style.lineHeight instanceof Oe?v.height*=this.style.lineHeight.value:v.height*=this.style.lineHeight||1.2,this._textInfo.push(v),u+=v.height}),c||(t.restore(),i.restore()),a=="hide"&&d>n&&(this.textVisible=!1),W(this._textInfo,f=>{W(f.textChunks,m=>{m.offsetY+=Math.round((f.height-m.height+(f.ascent-m.ascent))/2)})}),t.restore(),i.restore(),{left:0,top:0,right:0,bottom:0}}},Lp=class extends EA{constructor(e,t){super(e),this.image=t}_dispose(){super._dispose(),this._imageMask&&rc(this._imageMask)}getLocalBounds(){if(!this._localBounds){let e=0,t=0;this.width&&(e=this.width),this.height&&(t=this.height),this._localBounds={left:0,top:0,right:e,bottom:t},this._addBounds(this._localBounds)}return this._localBounds}_render(e,t=0){if(super._render(e),this.image){if(this.tainted===void 0&&(this.tainted=rB(this.image),e.layer.tainted=!0),this.tainted&&this._renderer._omitTainted)return;let i=this._ghostOnly(t),s=this._drawGhost(e,t);if(e.layer.dirty&&!i){this.shadowColor&&(e.layer.context.shadowColor=this.shadowColor.toCSS(this.shadowOpacity||1)),this.shadowBlur&&(e.layer.context.shadowBlur=this.shadowBlur),this.shadowOffsetX&&(e.layer.context.shadowOffsetX=this.shadowOffsetX),this.shadowOffsetY&&(e.layer.context.shadowOffsetY=this.shadowOffsetY);let a=this.width||this.image.naturalWidth,n=this.height||this.image.naturalHeight;e.layer.context.drawImage(this.image,0,0,a,n)}if(this.interactive&&this._isInteractive(e)&&s){let a=this._getMask(this.image);this._renderer._ghostLayer.context.drawImage(a,0,0)}}}clear(){super.clear(),this.image=void 0,this._imageMask=void 0}_getMask(e){if(this._imageMask===void 0){let t=this.width||e.naturalWidth,i=this.height||e.naturalHeight,s=document.createElement("canvas");s.width=t,s.height=i;let a=s.getContext("2d");a.imageSmoothingEnabled=!1,a.fillStyle=this._getColorId(),a.fillRect(0,0,t,i),rB(e)||(a.globalCompositeOperation="destination-in",a.drawImage(e,0,0,t,i)),this._imageMask=s}return this._imageMask}},Tp=class{constructor(e,t,i,s){this.event=e,this.originalPoint=t,this.point=i,this.bbox=s,this.simulated=!1,this.native=!0,Ir("touchevents")&&e instanceof Touch?this.id=e.identifier:this.id=null}},wd=class extends id{constructor(e){if(super(),this.view=document.createElement("div"),this._layerDom=document.createElement("div"),this.layers=[],this._dirtyLayers=[],this.defaultLayer=this.getLayer(0),this._ghostLayer=new Ip,this._deferredGhostLayers=[],this._patternCanvas=document.createElement("canvas"),this._patternContext=this._patternCanvas.getContext("2d"),this._realWidth=0,this._realHeight=0,this._calculatedWidth=0,this._calculatedHeight=0,this.interactionsEnabled=!0,this._listeners={},this._events={},this._colorId=0,this._colorMap={},this._forceInteractive=0,this._omitTainted=!1,this._hovering=new Set,this._dragging=[],this._mousedown=[],this.tapToActivate=!1,this.tapToActivateTimeout=3e3,this._touchActive=!1,e==null?this.resolution=window.devicePixelRatio:this.resolution=e,this.view.style.position="absolute",this.view.setAttribute("aria-hidden","true"),this.view.appendChild(this._layerDom),this._disposers.push(new jt(()=>{Ye(this._events,(t,i)=>{i.disposer.dispose()}),W(this.layers,t=>{rc(t.view),t.exportableView&&rc(t.exportableView)}),rc(this._ghostLayer.view),rc(this._patternCanvas)})),this._disposers.push(rd(()=>{e==null&&(this.resolution=window.devicePixelRatio)})),Ir("touchevents")){let t=i=>{this._dragging.length!==0&&$l(this._dragging,s=>s.value.shouldCancelTouch()?(i.preventDefault(),!1):!0),this._touchActiveTimeout&&this._delayTouchDeactivate()};this._disposers.push(Zt(window,"touchstart",t,{passive:!1})),this._disposers.push(Zt(this.view,"touchstart",t,{passive:!1})),this._disposers.push(Zt(this.view,"touchmove",()=>{this._touchActiveTimeout&&this._delayTouchDeactivate()},{passive:!0})),this._disposers.push(Zt(window,"click",i=>{this._touchActive=!1},{passive:!0})),this._disposers.push(Zt(this.view,"click",i=>{window.setTimeout(()=>{this._touchActive=!0,this._delayTouchDeactivate()},100)},{passive:!0}))}Ir("wheelevents")&&this._disposers.push(Zt(this.view,"wheel",t=>{let i=!1;this._hovering.forEach(s=>{if(s.wheelable)return i=!0,!1}),i&&t.preventDefault()},{passive:!1}))}resetImageArray(){this._ghostLayer.imageArray=void 0}_delayTouchDeactivate(){this._touchActiveTimeout&&clearTimeout(this._touchActiveTimeout),this.tapToActivateTimeout>0&&(this._touchActiveTimeout=window.setTimeout(()=>{this._touchActive=!1},this.tapToActivateTimeout))}get debugGhostView(){return!!this._ghostLayer.view.parentNode}set debugGhostView(e){e?this._ghostLayer.view.parentNode||this.view.appendChild(this._ghostLayer.view):this._ghostLayer.view.parentNode&&this._ghostLayer.view.parentNode.removeChild(this._ghostLayer.view)}createLinearGradient(e,t,i,s){return this.defaultLayer.context.createLinearGradient(e,t,i,s)}createRadialGradient(e,t,i,s,a,n){return this.defaultLayer.context.createRadialGradient(e,t,i,s,a,n)}createPattern(e,t,i,s,a){return this._patternCanvas.width=s,this._patternCanvas.height=a,this._patternContext.clearRect(0,0,s,a),t.renderDetached(this._patternContext),e.renderDetached(this._patternContext),this._patternContext.createPattern(this._patternCanvas,i)}makeContainer(){return new op(this)}makeGraphics(){return new _p(this)}makeText(e,t){return new Cd(this,e,t)}makeTextStyle(){return new Fp}makeRadialText(e,t){return new Sp(this,e,t)}makePicture(e){return new Lp(this,e)}resizeLayer(e){e.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resizeGhost(){this._ghostLayer.resize(this._calculatedWidth,this._calculatedHeight,this._calculatedWidth,this._calculatedHeight,this.resolution)}resize(e,t,i,s){this._realWidth=e,this._realHeight=t,this._calculatedWidth=i,this._calculatedHeight=s,W(this.layers,a=>{a&&(a.dirty=!0,this.resizeLayer(a))}),this.resizeGhost(),this.view.style.width=i+"px",this.view.style.height=s+"px"}createDetachedLayer(e=!1){let t=document.createElement("canvas"),i=t.getContext("2d",{willReadFrequently:e}),s=new Dp(t,i);return t.style.position="absolute",t.style.top="0px",t.style.left="0px",s}getLayerByOrder(e){let t=this.layers,i=t.length;for(let s=0;s<i;s++){let a=t[s];if(a.order==e)return a}}getLayer(e,t=!0){let i=this.getLayerByOrder(e);if(i)return i;let s=this.createDetachedLayer(e==99);s.order=e,s.visible=t,s.view.className="am5-layer-"+e,s.visible&&this.resizeLayer(s);let a=this.layers;a.push(s),a.sort((l,h)=>l.order>h.order?1:l.order<h.order?-1:0);let n=a.length,o=va(a,s),A;for(let l=o+1;l<n;l++)if(a[l].visible){A=a[l];break}return s.visible&&(A===void 0?this._layerDom.appendChild(s.view):this._layerDom.insertBefore(s.view,A.view)),s}render(e){this._dirtyLayers.length=0,this._deferredGhostLayers=[],W(this.layers,i=>{i&&i.dirty&&i.visible&&(this._dirtyLayers.push(i),i.clear())}),this._ghostLayer.clear(),e.render({inactive:null,layer:this.defaultLayer});let t=this._deferredGhostLayers;if(t.length&&(t.sort((i,s)=>i-s),W(t,i=>{e.render({inactive:null,layer:this.defaultLayer},i)})),this._ghostLayer.context.restore(),W(this.layers,i=>{if(i){let s=i.context;s.beginPath(),s.moveTo(0,0),s.stroke()}}),W(this._dirtyLayers,i=>{i.context.restore(),i.dirty=!1}),this._hovering.size&&this._lastPointerMoveEvent){let{events:i,target:s,native:a}=this._lastPointerMoveEvent;W(i,n=>{this._dispatchGlobalMousemove(n,s,a)})}}paintId(e){let t=wI(++this._colorId),i=Ie.fromHex(t).toCSS();return this._colorMap[i]=e,i}_removeObject(e){e._colorId!==void 0&&delete this._colorMap[e._colorId]}_adjustBoundingBox(e){let t=this._ghostLayer.margin;return new DOMRect(-t.left,-t.top,e.width+t.left+t.right,e.height+t.top+t.bottom)}getEvent(e,t=!0){let i=this.view.getBoundingClientRect(),s=e.clientX||0,a=e.clientY||0,n=this._calculatedWidth/this._realWidth,o=this._calculatedHeight/this._realHeight,A={x:s-i.left,y:a-i.top},l={x:(s-(t?i.left:0))*n,y:(a-(t?i.top:0))*o};return new Tp(e,A,l,this._adjustBoundingBox(i))}_getHitTarget(e,t,i){if(t.width===0||t.height===0||e.x<t.left||e.x>t.right||e.y<t.top||e.y>t.bottom||!i||!this._layerDom.contains(i))return;let s=this._ghostLayer.getImageData(e,t);if(s.data[0]===0&&s.data[1]===0&&s.data[2]===0)return!1;let a=Ie.fromRGB(s.data[0],s.data[1],s.data[2]).toCSS();return this._colorMap[a]}getObjectAtPoint(e){let t=this._ghostLayer.getImageArray(e);if(t[0]===0&&t[1]===0&&t[2]===0)return;let i=Ie.fromRGB(t[0],t[1],t[2]).toCSS();return this._colorMap[i]}_withEvents(e,t){let i=this._events[e];if(i!==void 0){i.dispatching=!0;try{t(i)}finally{i.dispatching=!1,i.cleanup&&(i.cleanup=!1,Do(i.callbacks,s=>!s.disposed),i.callbacks.length===0&&(i.disposer.dispose(),delete this._events[e]))}}}_dispatchEventAll(e,t){this.interactionsEnabled&&this._withEvents(e,i=>{W(i.callbacks,s=>{s.disposed||s.callback.call(s.context,t)})})}_dispatchEvent(e,t,i){if(!this.interactionsEnabled)return!1;let s=!1;return this._withEvents(e,a=>{W(a.callbacks,n=>{!n.disposed&&n.object===t&&(n.callback.call(n.context,i),s=!0)})}),s}_dispatchMousedown(e,t){let i=e.button;if(i!=0&&i!=2&&i!=1&&i!==void 0)return;let s=this.getEvent(e),a=this._getHitTarget(s.originalPoint,s.bbox,t);if(a){let n=s.id,o=!1;Bd(a,A=>{let l={id:n,value:A};return this._mousedown.push(l),!o&&this._dispatchEvent("pointerdown",A,s)&&(o=!0,this._dragging.some(c=>c.value===A&&c.id===n)||this._dragging.push(l)),!0})}}_dispatchGlobalMousemove(e,t,i){let s=this.getEvent(e),a=this._getHitTarget(s.originalPoint,s.bbox,t);s.native=i,a?(this._hovering.forEach(n=>{n.contains(a)||(this._hovering.delete(n),n.cursorOverStyle&&zl(document.body,"cursor",n._replacedCursorStyle),this._dispatchEvent("pointerout",n,s))}),s.native&&Bd(a,n=>(this._hovering.has(n)||(this._hovering.add(n),n.cursorOverStyle&&(n._replacedCursorStyle=Rv(document.body,"cursor"),zl(document.body,"cursor",n.cursorOverStyle)),this._dispatchEvent("pointerover",n,s)),!0))):(this._hovering.forEach(n=>{n.cursorOverStyle&&zl(document.body,"cursor",n._replacedCursorStyle),this._dispatchEvent("pointerout",n,s)}),this._hovering.clear()),this._dispatchEventAll("globalpointermove",s)}removeHovering(e){this._hovering.delete(e),e.cursorOverStyle&&zl(document.body,"cursor",e._replacedCursorStyle)}_dispatchGlobalMouseup(e,t){let i=this.getEvent(e);i.native=t,this._dispatchEventAll("globalpointerup",i)}_dispatchDragMove(e){if(this._dragging.length!==0){let t=this.getEvent(e),i=t.id;this._dragging.forEach(s=>{s.id===i&&this._dispatchEvent("pointermove",s.value,t)})}}_dispatchDragEnd(e,t){let i=e.button,s;if(i==0||i===void 0)s="click";else if(i==2)s="rightclick";else if(i==1)s="middleclick";else return;let a=this.getEvent(e),n=a.id;if(this._mousedown.length!==0){let o=this._getHitTarget(a.originalPoint,a.bbox,t);o&&this._mousedown.forEach(A=>{A.id===n&&A.value.contains(o)&&this._dispatchEvent(s,A.value,a)}),this._mousedown.length=0}this._dragging.length!==0&&(this._dragging.forEach(o=>{o.id===n&&this._dispatchEvent("pointerup",o.value,a)}),this._dragging.length=0)}_dispatchDoubleClick(e,t){let i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);s&&Bd(s,a=>!this._dispatchEvent("dblclick",a,i))}_dispatchWheel(e,t){let i=this.getEvent(e),s=this._getHitTarget(i.originalPoint,i.bbox,t);s&&Bd(s,a=>!this._dispatchEvent("wheel",a,i))}_makeSharedEvent(e,t){if(this._listeners[e]===void 0){let i=t();this._listeners[e]=new TA(()=>{delete this._listeners[e],i.dispose()})}return this._listeners[e].increment()}_onPointerEvent(e,t){let i=!1,s=null;function a(){s=null,i=!1}return new ci([new jt(()=>{s!==null&&clearTimeout(s),a()}),Zt(this.view,nd(e),n=>{i=!0,s!==null&&clearTimeout(s),s=window.setTimeout(a,0)}),_I(window,e,(n,o)=>{s!==null&&(clearTimeout(s),s=null),t(n,o,i),i=!1})])}_initEvent(e){switch(e){case"globalpointermove":case"pointerover":case"pointerout":return this._makeSharedEvent("pointermove",()=>{let t=(i,s,a)=>{this._lastPointerMoveEvent={events:i,target:s,native:a},W(i,n=>{this._dispatchGlobalMousemove(n,s,a)})};return new ci([this._onPointerEvent("pointerdown",t),this._onPointerEvent("pointermove",t)])});case"globalpointerup":return this._makeSharedEvent("pointerup",()=>{let t=this._onPointerEvent("pointerup",(s,a,n)=>{W(s,o=>{this._dispatchGlobalMouseup(o,n)}),this._lastPointerMoveEvent={events:s,target:a,native:n}}),i=this._onPointerEvent("pointercancel",(s,a,n)=>{W(s,o=>{this._dispatchGlobalMouseup(o,n)}),this._lastPointerMoveEvent={events:s,target:a,native:n}});return new jt(()=>{t.dispose(),i.dispose()})});case"click":case"rightclick":case"middleclick":case"pointerdown":case"pointermove":case"pointerup":return this._makeSharedEvent("pointerdown",()=>{let t=this._onPointerEvent("pointerdown",(n,o)=>{W(n,A=>{this._dispatchMousedown(A,o)})}),i=this._onPointerEvent("pointermove",n=>{W(n,o=>{this._dispatchDragMove(o)})}),s=this._onPointerEvent("pointerup",(n,o)=>{W(n,A=>{this._dispatchDragEnd(A,o)})}),a=this._onPointerEvent("pointercancel",(n,o)=>{W(n,A=>{this._dispatchDragEnd(A,o)})});return new jt(()=>{t.dispose(),i.dispose(),s.dispose(),a.dispose()})});case"dblclick":return this._makeSharedEvent("dblclick",()=>this._onPointerEvent("dblclick",(t,i)=>{W(t,s=>{this._dispatchDoubleClick(s,i)})}));case"wheel":return this._makeSharedEvent("wheel",()=>Zt(this.view,nd("wheel"),t=>{this._dispatchWheel(t,Ug(t))},{passive:!1}))}}_addEvent(e,t,i,s){let a=this._events[t];a===void 0&&(a=this._events[t]={disposer:this._initEvent(t),callbacks:[],dispatching:!1,cleanup:!1});let n={object:e,context:s,callback:i,disposed:!1};return a.callbacks.push(n),new jt(()=>{n.disposed=!0,a.dispatching?a.cleanup=!0:(yi(a.callbacks,n),a.callbacks.length===0&&(a.disposer.dispose(),delete this._events[t]))})}getCanvas(e,t){this.render(e),t||(t={});let i=this.resolution,s=Math.floor(this._calculatedWidth*this.resolution),a=Math.floor(this._calculatedHeight*this.resolution);if(t.minWidth&&t.minWidth>s){let u=t.minWidth/s;u>i&&(i=u*this.resolution)}if(t.minHeight&&t.minHeight>a){let u=t.minHeight/a;u>i&&(i=u*this.resolution)}if(t.maxWidth&&t.maxWidth<s){let u=t.maxWidth/s;u<i&&(i=u*this.resolution)}if(t.maxHeight&&t.maxHeight>a){let u=t.maxHeight/a;u<i&&(i=u*this.resolution)}t.maintainPixelRatio&&(i/=this.resolution);let n=[],o=!1,A=document.createElement("canvas");i!=this.resolution&&(o=!0,s=s*i/this.resolution,a=a*i/this.resolution),A.width=s,A.height=a,A.style.position="fixed",A.style.top="-10000px",this.view.appendChild(A),n.push(A);let l=A.getContext("2d"),h=0,c=0,d=!1;return W(this.layers,u=>{if(u&&u.visible&&(u.tainted||o)){d=!0,u.exportableView=u.view,u.exportableContext=u.context,u.view=document.createElement("canvas"),u.view.style.position="fixed",u.view.style.top="-10000px",this.view.appendChild(u.view),n.push(u.view);let f=0,m=0;u.margin&&(f+=u.margin.left||0+u.margin.right||0,m+=u.margin.top||0+u.margin.bottom||0),u.view.width=s+f,u.view.height=a+m,u.context=u.view.getContext("2d"),u.dirty=!0,u.scale=i}}),d&&(this._omitTainted=!0,this.render(e),this._omitTainted=!1),W(this.layers,u=>{if(u&&u.visible){let f=0,m=0;u.margin&&(f=-(u.margin.left||0)*this.resolution,m=-(u.margin.top||0)*this.resolution),l.drawImage(u.view,f,m),u.exportableView&&(u.view=u.exportableView,u.exportableView=void 0),u.exportableContext&&(u.context=u.exportableContext,u.exportableContext=void 0),h<u.view.clientWidth&&(h=u.view.clientWidth),c<u.view.clientHeight&&(c=u.view.clientHeight),u.scale=void 0}}),A.style.width=h+"px",A.style.height=c+"px",W(n,u=>{u.style.position="",u.style.top="",this.view.removeChild(u)}),A}},Ip=class{constructor(){this.margin={left:0,right:0,top:0,bottom:0},this._resolution=1,this._width=0,this._height=0,this.view=document.createElement("canvas"),this.context=this.view.getContext("2d",{alpha:!1,willReadFrequently:!0}),this.context.imageSmoothingEnabled=!1,this.view.style.position="absolute",this.view.style.top="0px",this.view.style.left="0px"}resize(e,t,i,s,a){this._resolution=a,e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px",this._width=Math.floor(e*a),this._height=Math.floor(t*a),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}getImageData(e,t){return this.context.getImageData(Math.round((e.x-t.left)/t.width*this._width),Math.round((e.y-t.top)/t.height*this._height),1,1)}getImageArray(e){this.imageArray||(this.imageArray=this.context.getImageData(0,0,this._width,this._height).data);let t=this.imageArray,i=Math.round(e.x*this._resolution),a=(Math.round(e.y*this._resolution)*this._width+i)*4;return[t[a],t[a+1],t[a+2],t[a+3]]}setMargin(e){this.margin.left=0,this.margin.right=0,this.margin.top=0,this.margin.bottom=0,W(e,t=>{t.margin&&(this.margin.left=Math.max(this.margin.left,t.margin.left),this.margin.right=Math.max(this.margin.right,t.margin.right),this.margin.top=Math.max(this.margin.top,t.margin.top),this.margin.bottom=Math.max(this.margin.bottom,t.margin.bottom))})}clear(){this.context.save(),this.context.fillStyle="#000",this.context.fillRect(0,0,this._width,this._height)}},Dp=class{constructor(e,t){this.tainted=!0,this.order=0,this.visible=!0,this.dirty=!0,this._width=0,this._height=0,this.view=e,this.context=t}resize(e,t,i,s,a){this.width!=null&&(e=this.width,i=this.width),this.height!=null&&(t=this.height,s=this.height),this.margin?(e+=this.margin.left+this.margin.right,t+=this.margin.top+this.margin.bottom,i+=this.margin.left+this.margin.right,s+=this.margin.top+this.margin.bottom,this.view.style.left=-this.margin.left+"px",this.view.style.top=-this.margin.top+"px"):(this.view.style.left="0px",this.view.style.top="0px"),this._width=Math.floor(e*a),this._height=Math.floor(t*a),this.view.width=this._width,this.view.style.width=i+"px",this.view.height=this._height,this.view.style.height=s+"px"}clear(){this.context.save(),this.context.clearRect(0,0,this._width,this._height)}};function nB(r,e){r==null?requestAnimationFrame(e):setTimeout(()=>{requestAnimationFrame(e)},1e3/r)}var Po=class r{constructor(e,t={},i){if(this._isDirty=!1,this._isDirtyParents=!1,this._isDirtyAnimation=!1,this._dirty={},this._dirtyParents={},this._dirtyBounds={},this._dirtyPositions={},this._ticker=null,this._tickers=[],this._updateTick=!0,this.skipRenderFrame=!1,this.events=new lr,this.animationTime=null,this._animations=[],this.language=bd.new(this,{}),this.locale=xd,this.utc=!1,this.numberFormatter=On.new(this,{}),this.dateFormatter=Mo.new(this,{}),this.durationFormatter=yd.new(this,{}),this.tabindex=0,this._tabindexes=[],this._a11yD=!1,this._focusElementDirty=!1,this._skipNextGroupJump=!0,this.verticalLayout=Ca.new(this,{}),this.horizontalLayout=Ba.new(this,{}),this.gridLayout=kr.new(this,{}),this._paused=!1,this.autoResize=!0,this._fontHash=[],this._isDisposed=!1,this._disposers=[],this._tooltips=[],this._htmlEnabledContainers=[],this.entitiesById={},!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._settings=t,t.accessible==!1&&(this._a11yD=!0),t.useSafeResolution==null&&(t.useSafeResolution=!0);let s;t.useSafeResolution&&(s=Mv()),this._renderer=new wd(s);let a;if(e instanceof HTMLElement?a=e:a=document.getElementById(e),W(Qs.rootElements,A=>{if(A.dom===a)if(Qs.autoDispose)A.dispose();else throw new Error("You cannot have multiple Roots on the same DOM node")}),this.interfaceColors=Eo.new(this,{}),a===null)throw new Error("Could not find HTML element with id `"+e+"`");this.dom=a;let n=document.createElement("div");n.style.position="relative",n.style.width="100%",n.style.height="100%",a.appendChild(n);let o=t.tooltipContainerBounds;o&&(this._tooltipContainerSettings=o),this._inner=n,this._updateComputedStyles(),Qs.rootElements.push(this)}static new(e,t){let i=new r(e,t,!0);return i._init(),i}moveDOM(e){let t;if(e instanceof HTMLElement?t=e:t=document.getElementById(e),t){for(;this.dom.childNodes.length>0;)t.appendChild(this.dom.childNodes[0]);this.dom=t,this._initResizeSensor(),this.resize()}}_handleLogo(){if(this._logo){let e=this.dom.offsetWidth,t=this.dom.offsetHeight;e<=150||t<=60?this._logo.hide():this._logo.show()}}_showBranding(){if(!this._logo){let e=this.tooltipContainer.children.push(ve.new(this,{interactive:!0,interactiveChildren:!1,position:"absolute",setStateOnChildren:!0,paddingTop:9,paddingRight:9,paddingBottom:9,paddingLeft:9,scale:.6,y:Ve(100),centerY:Ae,tooltipY:10,tooltipText:"Created using amCharts 5",tooltipX:Ae,cursorOverStyle:"pointer",background:Xt.new(this,{fill:us(4671320),fillOpacity:0,tooltipY:5})}));e.set("tooltip",this.systemTooltip),e.events.on("click",()=>{window.open("https://www.amcharts.com/","_blank")}),e.states.create("hover",{});let t=e.children.push(Re.new(this,{stroke:us(13421772),strokeWidth:3,svgPath:"M5 25 L13 25h13.6c3.4 0 6 0 10.3-4.3s5.2-12 8.6-12c3.4 0 4.3 8.6 7.7 8.6M83.4 25H79.8c-3.4 0-6 0-10.3-4.3s-5.2-12-8.6-12-4.3 8.6-7.7 8.6",dx:-50,strokeOpacity:0}));t.states.create("hover",{stroke:us(3976191)});let i=e.children.push(Re.new(this,{stroke:us(8947848),strokeWidth:3,svgPath:"M83.4 25h-31C37 25 39.5 4.4 28.4 4.4S18.9 24.2 4.3 25H0",dx:50,strokeOpacity:0})),s=an(Wr),a=1500;e.setTimeout(()=>{i.animate({key:"strokeOpacity",to:1,duration:a,easing:s}),i.animate({key:"dx",to:0,duration:a,easing:s}),t.animate({key:"dx",to:0,duration:a,easing:s}),t.animate({key:"strokeOpacity",to:1,duration:a,easing:s})},3e3),i.states.create("hover",{stroke:us(4671320)}),this._logo=e,this._handleLogo()}}_getRealSize(){return this.dom.getBoundingClientRect()}_getCalculatedSize(e){return this._settings.calculateSize?this._settings.calculateSize(e):{width:e.width,height:e.height}}_init(){let e=this._settings;e.accessible!==!1&&(e.focusable&&(this._inner.setAttribute("focusable","true"),this._inner.setAttribute("tabindex",this.tabindex+"")),e.ariaLabel&&this._inner.setAttribute("aria-label",e.ariaLabel),e.role&&this._inner.setAttribute("role",e.role));let t=this._renderer,i=this._getRealSize(),s=this._getCalculatedSize(i),a=Math.floor(s.width),n=Math.floor(s.height),o=Math.floor(i.width),A=Math.floor(i.height),l=ve.new(this,{visible:!0,width:a,height:n});this._rootContainer=l,this._rootContainer._defaultThemes.push(vd.new(this));let h=l.children.push(ve.new(this,{visible:!0,width:Ae,height:Ae}));this.container=h,t.resize(o,A,a,n),this._inner.appendChild(t.view),this._initResizeSensor();let c=document.createElement("div");if(this._htmlElementContainer=c,c.className="am5-html-container",c.style.position="absolute",c.style.pointerEvents="none",this._tooltipContainerSettings||(c.style.overflow="hidden"),this._inner.appendChild(c),this._a11yD!==!0){let d=document.createElement("div");d.className="am5-reader-container",d.setAttribute("role","alert"),d.style.position="absolute",d.style.width="1px",d.style.height="1px",d.style.overflow="hidden",d.style.clip="rect(1px, 1px, 1px, 1px)",this._readerAlertElement=d,this._inner.appendChild(this._readerAlertElement);let u=document.createElement("div");u.className="am5-focus-container",u.style.position="absolute",u.style.pointerEvents="none",u.style.top="0px",u.style.left="0px",u.style.overflow="hidden",u.style.width=a+"px",u.style.height=n+"px",u.setAttribute("role","graphics-document"),En(u,!1),this._focusElementContainer=u,this._inner.appendChild(this._focusElementContainer);let f=document.createElement("div");this._tooltipElementContainer=f,f.className="am5-tooltip-container",this._inner.appendChild(f),Ir("keyboardevents")&&(this._disposers.push(Zt(window,"keydown",m=>{let g=Uo(m);g=="Shift"?this._isShift=!0:g=="Tab"&&(this._isShift=m.shiftKey)})),this._disposers.push(Zt(window,"keyup",m=>{Uo(m)=="Shift"&&(this._isShift=!1)})),this._disposers.push(Zt(u,"click",()=>{let m=this._focusedSprite;if(m){let g=m.get("clickAnnounceText","");g!==""&&this.readerAlert(g);let v=t.getEvent(new MouseEvent("click"));m.events.dispatch("click",{type:"click",originalEvent:v.event,point:v.point,simulated:!0,target:m})}})),this._disposers.push(Zt(u,"keydown",m=>{let g=this._focusedSprite;if(g){m.key=="Escape"&&(Qv(),this._focusedSprite=void 0);let v=0,B=0,w=Uo(m);switch(w){case"Enter":case" ":let _=g.get("clickAnnounceText","");if(_!==""&&this.readerAlert(_),w==" "&&g.get("role")!="checkbox")return;m.preventDefault();let L=t.getEvent(new MouseEvent("mouse"));g.events.dispatch("click",{type:"click",originalEvent:L.event,point:L.point,simulated:!0,target:g});return;case"ArrowLeft":v=-6;break;case"ArrowRight":v=6;break;case"ArrowUp":B=-6;break;case"ArrowDown":B=6;break;default:return}if(v!=0||B!=0){if(m.preventDefault(),!g.isDragging()){this._keyboardDragPoint={x:0,y:0};let k=t.getEvent(new MouseEvent("mousedown",{clientX:0,clientY:0}));k.point={x:0,y:0},g.events.isEnabled("pointerdown")&&g.events.dispatch("pointerdown",{type:"pointerdown",originalEvent:k.event,point:k.point,simulated:!0,target:g})}let _=this._keyboardDragPoint;_.x+=v,_.y+=B;let L=t.getEvent(new MouseEvent("mousemove",{clientX:_.x,clientY:_.y}),!1);g.events.isEnabled("globalpointermove")&&g.events.dispatch("globalpointermove",{type:"globalpointermove",originalEvent:L.event,point:L.point,simulated:!0,target:g})}}})),this._disposers.push(Zt(u,"keyup",m=>{if(this._focusedSprite){let g=this._focusedSprite,v=Uo(m);switch(v){case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"ArrowDown":if(g.isDragging()){let w=this._keyboardDragPoint,_=t.getEvent(new MouseEvent("mouseup",{clientX:w.x,clientY:w.y}));g.events.isEnabled("globalpointerup")&&g.events.dispatch("globalpointerup",{type:"globalpointerup",originalEvent:_.event,point:_.point,simulated:!0,target:g}),this._keyboardDragPoint=void 0;return}else if(g.get("focusableGroup")){let w=g.get("focusableGroup"),_=this._tabindexes.filter(D=>!!(D.get("focusableGroup")==w&&D.getPrivate("focusable")!==!1&&D.isVisibleDeep())),L=_.indexOf(g),k=_.length-1;L+=v=="ArrowRight"||v=="ArrowDown"?1:-1,L<0?L=k:L>k&&(L=0),Ev(_[L].getPrivate("focusElement").dom)}break;case"Tab":let B=g.get("focusableGroup");if(B&&this._isShift){this._skipNextGroupJump||(this._focusNext(g.getPrivate("focusElement").dom,-1,B),this._skipNextGroupJump=!0);return}break}}})))}this._startTicker(),this.setThemes([]),this._addTooltip(),this._hasLicense()||this._showBranding()}get systemTooltip(){if(!this._systemTooltip){let e=wi.new(this,{themeTags:["system"]});this._systemTooltip=e}return this._systemTooltip}_initResizeSensor(){this._resizeSensorDisposer&&this._resizeSensorDisposer.dispose(),this._resizeSensorDisposer=new md(this.dom,()=>{this.autoResize&&this.resize()}),this._disposers.push(this._resizeSensorDisposer)}resize(){let e=this._getRealSize(),t=this._getCalculatedSize(e),i=Math.floor(t.width),s=Math.floor(t.height);if(i>0&&s>0){let a=Math.floor(e.width),n=Math.floor(e.height),o=this._htmlElementContainer;if(o.style.width=i+"px",o.style.height=s+"px",this._a11yD!==!0){let l=this._focusElementContainer;l.style.width=i+"px",l.style.height=s+"px"}this._renderer.resize(a,n,i,s);let A=this._rootContainer;A.setPrivate("width",i),A.setPrivate("height",s),this._render(),this._handleLogo()}}_render(){if(this.skipRenderFrame){this.skipRenderFrame=!1;return}this._renderer.render(this._rootContainer._display),this._focusElementDirty&&(this._updateCurrentFocus(),this._focusElementDirty=!1)}_runTickers(e){W(this._tickers,t=>{t(e)})}_runAnimations(e){let t=0;return Do(this._animations,i=>{let s=i._runAnimation(e);return s===rn.Stopped?!1:(s===rn.Playing&&++t,!0)}),this._isDirtyAnimation=!1,t===0}_runDirties(){let e={};for(;this._isDirtyParents;)this._isDirtyParents=!1,Ar(this._dirtyParents).forEach(([n,o])=>{delete this._dirtyParents[n],o.isDisposed()||(e[o.uid]=o,o._prepareChildren())});Ar(e).forEach(([n,o])=>{o._updateChildren()});let t=[];Ar(this._dirty).forEach(([n,o])=>{o.isDisposed()?delete this._dirty[n]:(t.push(o),o._beforeChanged())}),t.forEach(n=>{n._changed(),delete this._dirty[n.uid],n._clearDirty()}),this._isDirty=!1;let i={},s=[];Ar(this._dirtyBounds).forEach(([n,o])=>{delete this._dirtyBounds[n],o.isDisposed()||(i[o.uid]=o.depth(),s.push(o))}),this._positionHTMLElements(),s.sort((n,o)=>js(i[o.uid],i[n.uid])),s.forEach(n=>{n._updateBounds()});let a=this._dirtyPositions;Ar(a).forEach(([n,o])=>{delete a[n],o.isDisposed()||o._updatePosition()}),t.forEach(n=>{n._afterChanged()}),Ar(e).forEach(([n,o])=>{o._childrenPrep=!1,o._childrenUpdt=!1})}_renderFrame(e){if(this._updateTick){this.events.isEnabled("framestarted")&&this.events.dispatch("framestarted",{type:"framestarted",target:this,timestamp:e}),this._checkComputedStyles(),this._runTickers(e);let t=this._runAnimations(e);return this._runDirties(),this._render(),this._renderer.resetImageArray(),this._positionHTMLElements(),this.events.isEnabled("frameended")&&this.events.dispatch("frameended",{type:"frameended",target:this,timestamp:e}),this._tickers.length===0&&t&&!this._isDirtyAnimation&&!this._isDirty}else return!0}_runTicker(e,t){this.isDisposed()||(this.animationTime=e,this._renderFrame(e)?(this._ticker=null,this.animationTime=null):this._paused||(t?this._ticker:nB(this.fps,this._ticker)))}_runTickerNow(e=1e4){if(!this.isDisposed()){let t=performance.now()+e;for(;;){let i=performance.now();if(i>=t){this.animationTime=null;break}if(this.animationTime=i,this._renderFrame(i)){this.animationTime=null;break}}}}_startTicker(){this._ticker===null&&(this.animationTime=null,this._ticker=e=>{this._runTicker(e)},nB(this.fps,this._ticker))}get updateTick(){return this._updateTick}set updateTick(e){this._updateTick=e,e&&this._startTicker()}_addDirtyEntity(e){this._isDirty=!0,this._dirty[e.uid]===void 0&&(this._dirty[e.uid]=e),this._startTicker()}_addDirtyParent(e){this._isDirty=!0,this._isDirtyParents=!0,this._dirtyParents[e.uid]===void 0&&(this._dirtyParents[e.uid]=e),this._startTicker()}_addDirtyBounds(e){this._isDirty=!0,this._dirtyBounds[e.uid]===void 0&&(this._dirtyBounds[e.uid]=e),this._startTicker()}_addDirtyPosition(e){this._isDirty=!0,this._dirtyPositions[e.uid]===void 0&&(this._dirtyPositions[e.uid]=e),this._startTicker()}_addAnimation(e){this._isDirtyAnimation=!0,this._animations.indexOf(e)===-1&&this._animations.push(e),this._startTicker()}_markDirty(){this._isDirty=!0}_markDirtyRedraw(){this.events.once("frameended",()=>{this._isDirty=!0,this._startTicker()})}eachFrame(e){return this._tickers.push(e),this._startTicker(),new jt(()=>{yi(this._tickers,e)})}markDirtyGlobal(e){e||(e=this.container),e.walkChildren(t=>{t instanceof ve&&this.markDirtyGlobal(t),t.markDirty(),t.markDirtyBounds()})}width(){return Math.floor(this._getCalculatedSize(this._getRealSize()).width)}height(){return Math.floor(this._getCalculatedSize(this._getRealSize()).height)}dispose(){this._isDisposed||(this._isDisposed=!0,this._rootContainer.dispose(),this._renderer.dispose(),this.horizontalLayout.dispose(),this.verticalLayout.dispose(),this.interfaceColors.dispose(),W(this._disposers,e=>{e.dispose()}),this._inner&&Uv(this._inner),Ci(Qs.rootElements,this))}isDisposed(){return this._isDisposed}readerAlert(e){if(this._a11yD!==!0){let t=this._readerAlertElement;e=Eg(e),t.innerHTML==e&&(t.innerHTML=""),t.innerHTML=e}}setThemes(e){this._rootContainer.set("themes",e);let t=this.tooltipContainer;t&&t._applyThemes();let i=this.interfaceColors;i&&i._applyThemes()}_addTooltip(){if(!this.tooltipContainer){let e=this._tooltipContainerSettings,t=this._rootContainer.children.push(ve.new(this,{position:"absolute",isMeasured:!1,width:Ae,height:Ae,layer:e?35:30,layerMargin:e||void 0}));this.tooltipContainer=t;let i=wi.new(this,{});this.container.set("tooltip",i),i.hide(0),this._tooltip=i}}_registerTabindexOrder(e){this._a11yD!=!0&&(e.get("focusable")?kn(this._tabindexes,e):Ci(this._tabindexes,e),this._invalidateTabindexes())}_unregisterTabindexOrder(e){this._a11yD!=!0&&(Ci(this._tabindexes,e),this._invalidateTabindexes())}_invalidateTabindexes(){if(this._a11yD==!0)return;this._tabindexes.sort((t,i)=>{let s=t.get("tabindexOrder",0),a=i.get("tabindexOrder",0);return s==a?0:s>a?1:-1});let e=[];W(this._tabindexes,(t,i)=>{t.getPrivate("focusElement")?this._moveFocusElement(i,t):this._makeFocusElement(i,t);let s=t.get("focusableGroup");s&&t.getPrivate("focusable")!==!1&&(e.indexOf(s)!==-1?t.getPrivate("focusElement").dom.setAttribute("tabindex","-1"):e.push(s))})}_updateCurrentFocus(){this._a11yD!=!0&&this._focusedSprite&&(this._decorateFocusElement(this._focusedSprite),this._positionFocusElement(this._focusedSprite))}_decorateFocusElement(e,t){if(this._a11yD==!0||(t||(t=e.getPrivate("focusElement").dom),!t))return;let i=e.get("role");i?t.setAttribute("role",i):t.removeAttribute("role");let s=e.get("ariaLabel");if(s){let m=wa(e,s);t.setAttribute("aria-label",m)}else t.removeAttribute("aria-label");let a=e.get("ariaLive");a?t.setAttribute("aria-live",a):t.removeAttribute("aria-live");let n=e.get("ariaChecked");n!=null&&i&&["checkbox","option","radio","menuitemcheckbox","menuitemradio","treeitem"].indexOf(i)!==-1?t.setAttribute("aria-checked",n?"true":"false"):t.removeAttribute("aria-checked");let o=e.get("ariaCurrent");o!=null?t.setAttribute("aria-current",o):t.removeAttribute("aria-current");let A=e.get("ariaSelected");A!=null&&i&&["gridcell","option","row","tab","columnheader","rowheader","treeitem"].indexOf(i)!==-1?t.setAttribute("aria-selected",A?"true":"false"):t.removeAttribute("aria-selected"),e.get("ariaHidden")?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden");let l=e.get("ariaOrientation");l?t.setAttribute("aria-orientation",l):t.removeAttribute("aria-orientation");let h=e.get("ariaValueNow");h?t.setAttribute("aria-valuenow",h):t.removeAttribute("aria-valuenow");let c=e.get("ariaValueMin");c?t.setAttribute("aria-valuemin",c):t.removeAttribute("aria-valuemin");let d=e.get("ariaValueMax");d?t.setAttribute("aria-valuemax",d):t.removeAttribute("aria-valuemax");let u=e.get("ariaValueText");u?t.setAttribute("aria-valuetext",u):t.removeAttribute("aria-valuetext");let f=e.get("ariaControls");f?t.setAttribute("aria-controls",f):t.removeAttribute("aria-controls"),e.get("visible")&&e.get("opacity")!==0&&e.get("role")!="tooltip"&&!e.isHidden()&&e.getPrivate("focusable")!==!1&&(e.height()||e.width())?(t.getAttribute("tabindex")!="-1"&&t.setAttribute("tabindex",""+this.tabindex),t.removeAttribute("aria-hidden")):(t.removeAttribute("tabindex"),t.setAttribute("aria-hidden","true"))}_makeFocusElement(e,t){if(t.getPrivate("focusElement")||this._a11yD==!0)return;let i=document.createElement("div");t.get("role")!="tooltip"&&(i.tabIndex=this.tabindex),i.style.position="absolute",En(i,!1);let s=[];t.setPrivate("focusElement",{dom:i,disposers:s}),this._decorateFocusElement(t),s.push(Zt(i,"focus",a=>{this._handleFocus(a)})),s.push(Zt(i,"blur",a=>{this._handleBlur(a)})),this._moveFocusElement(e,t)}_removeFocusElement(e){if(this._a11yD==!0)return;Ci(this._tabindexes,e);let t=e.getPrivate("focusElement");t&&(this._focusElementContainer.removeChild(t.dom),W(t.disposers,s=>{s.dispose()}))}_hideFocusElement(e){if(this._a11yD==!0)return;let t=e.getPrivate("focusElement");t.dom.style.display="none"}_moveFocusElement(e,t){if(this._a11yD==!0)return;let i=this._focusElementContainer,s=t.getPrivate("focusElement").dom;if(s===this._focusElementContainer.children[e])return;let a=this._focusElementContainer.children[e+1];a?i.insertBefore(s,a):i.append(s)}_positionFocusElement(e){if(this._a11yD==!0||e==null)return;this._focusElementContainer.scrollTop=0;let t=e.globalBounds(),i=t.right==t.left?e.width():t.right-t.left,s=t.top==t.bottom?e.height():t.bottom-t.top,a=this._settings.focusPadding!==void 0?this._settings.focusPadding:2,n=t.left-a,o=t.top-a;i<0&&(n+=i,i=Math.abs(i)),s<0&&(o+=s,s=Math.abs(s));let A=e.getPrivate("focusElement").dom;A.style.top=o+"px",A.style.left=n+"px",A.style.width=i+a*2+"px",A.style.height=s+a*2+"px"}_getSpriteByFocusElement(e){let t;return $l(this._tabindexes,(i,s)=>i.getPrivate("focusElement").dom===e?(t=i,!1):!0),t}_handleFocus(e){if(this._a11yD==!0)return;let t=this._getSpriteByFocusElement(e.target);if(t){if(!t.isVisibleDeep()){this._focusNext(e.target,this._isShift?-1:1);return}this._positionFocusElement(t),this._focusedSprite=t,t.events.isEnabled("focus")&&t.events.dispatch("focus",{type:"focus",originalEvent:e,target:t}),t.getPrivate("focusElement").dom.tabIndex==-1&&(this._skipNextGroupJump=!1)}}_focusNext(e,t,i){if(this._a11yD==!0)return;let s=Array.from(document.querySelectorAll(["a[href]","area[href]","button:not([disabled])","details","input:not([disabled])","iframe:not([disabled])","select:not([disabled])","textarea:not([disabled])",'[contentEditable=""]','[contentEditable="true"]','[contentEditable="TRUE"]','[tabindex]:not([tabindex^="-"])'].join(","))),a=s.indexOf(e)+t;a<0?a=s.length-1:a>=s.length&&(a=0);let n=s[a];if(i&&t==-1){let o=this._getSpriteByFocusElement(n);if(o&&o.get("focusableGroup")==i){this._focusNext(n,t);return}}n.focus()}_handleBlur(e){if(this._a11yD==!0)return;let t=this._focusedSprite;t&&!t.isDisposed()&&t.events.isEnabled("blur")&&t.events.dispatch("blur",{type:"blur",originalEvent:e,target:t}),this._focusedSprite=void 0}updateTooltip(e){if(this._a11yD==!0)return;let t=Eg(e._getText()),i=e.getPrivate("tooltipElement");e.get("role")=="tooltip"&&t!=""?(i||(i=this._makeTooltipElement(e)),i.innerHTML!=t&&(i.innerHTML=t),i.setAttribute("aria-hidden",e.isVisibleDeep()?"false":"true")):i&&(i.remove(),e.removePrivate("tooltipElement"))}_makeTooltipElement(e){let t=this._tooltipElementContainer,i=document.createElement("div");return i.style.position="absolute",i.style.width="1px",i.style.height="1px",i.style.overflow="hidden",i.style.clip="rect(1px, 1px, 1px, 1px)",En(i,!1),this._decorateFocusElement(e,i),t.append(i),e.setPrivate("tooltipElement",i),i}_removeTooltipElement(e){if(this._a11yD==!0)return;let t=e.getPrivate("tooltipElement");if(t){let i=t.parentElement;i&&i.removeChild(t)}}_invalidateAccessibility(e){if(this._a11yD==!0)return;this._focusElementDirty=!0;let t=e.getPrivate("focusElement");e.get("focusable")?t&&(this._decorateFocusElement(e),this._positionFocusElement(e)):t&&this._removeFocusElement(e)}focused(e){return this._focusedSprite===e}documentPointToRoot(e){let t=this._getRealSize(),i=this._getCalculatedSize(t),s=i.width/t.width,a=i.height/t.height;return{x:(e.x-t.left)*s,y:(e.y-t.top)*a}}rootPointToDocument(e){let t=this._getRealSize(),i=this._getCalculatedSize(t),s=i.width/t.width,a=i.height/t.height;return{x:e.x/s+t.left,y:e.y/a+t.top}}addDisposer(e){return this._disposers.push(e),e}_updateComputedStyles(){let e=window.getComputedStyle(this.dom),t=this._fontHash,i=$i(e).flatMap(s=>{var a;return typeof s=="string"&&s.startsWith("font")?[(a=e[s])===null||a===void 0?void 0:a.toString()]:[]});if(t.length!==i.length)return this._fontHash=i,!0;for(let s=0;s<t.length;s++)if(t[s]!==i[s])return this._fontHash=i,!0;return!1}_checkComputedStyles(){this._updateComputedStyles()&&this._invalidateLabelBounds(this.container)}_invalidateLabelBounds(e){e instanceof ve?e.children.each(t=>{this._invalidateLabelBounds(t)}):e instanceof Ur&&e.markDirtyBounds()}_hasLicense(){for(let e=0;e<Qs.licenses.length;e++)if(Qs.licenses[e].match(/^AM5C.{5,}/i))return!0;return!1}_licenseApplied(){this._logo&&this._logo.set("forceHidden",!0)}get debugGhostView(){return this._renderer.debugGhostView}set debugGhostView(e){this._renderer.debugGhostView=e}set tapToActivate(e){this._renderer.tapToActivate=e}get tapToActivate(){return this._renderer.tapToActivate}set tapToActivateTimeout(e){this._renderer.tapToActivateTimeout=e}get tapToActivateTimeout(){return this._renderer.tapToActivateTimeout}_makeHTMLElement(e){let t=this._htmlElementContainer,i=document.createElement("div");e.setPrivate("htmlElement",i);let s=!1,a;e._walkParents(o=>{if(o.get("verticalScrollbar"))return s=!0,a=o,!1});let n;return s&&(n=document.createElement("div"),e.setPrivate("htmlElementWrapper",n),e.setPrivate("wrapperContainer",a),n.style.position="absolute",n.style.overflow="hidden",n.style.boxSizing="border-box",n.style.top="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%",a.events.on("boundschanged",()=>{this._positionHTMLElement(e)})),i.style.position="absolute",i.style.overflow="auto",i.style.boxSizing="border-box",En(i,e.get("interactive",!1)),e.events.isEnabled("click")&&(En(i,!0),this._disposers.push(Zt(i,"click",o=>{let A=this._renderer.getEvent(o);e.events.dispatch("click",{type:"click",originalEvent:A.event,point:A.point,simulated:!1,target:e})}))),this._positionHTMLElement(e),s?(n.append(i),t.append(n)):t.append(i),kn(this._htmlEnabledContainers,e),i}_positionHTMLElements(){W(this._htmlEnabledContainers,e=>{this._positionHTMLElement(e)})}_positionHTMLElement(e){let t=e.getPrivate("htmlElementWrapper");if(t){let s=e.getPrivate("wrapperContainer");if(s){let a=s.globalBounds();t.style.clipPath="rect("+a.top+"px "+a.right+"px "+a.bottom+"px "+a.left+"px)"}}let i=e.getPrivate("htmlElement");if(i){W(["paddingTop","paddingRight","paddingBottom","paddingLeft","minWidth","minHeight","maxWidth","maxHeight"],w=>{let _=e.get(w);_?i.style[w]=_+"px":i.style[w]=""}),W(["fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration"],w=>{let _=e.get(w);_?w=="fontSize"&&!ba(_)?i.style[w]=_+"px":i.style[w]=_+"":i.style[w]=""});let n=e.compositeScale()||1,o=e.compositeRotation()||0;i.style.transform="",i.style.transformOrigin="";let A=e.compositeOpacity();setTimeout(()=>{i.style.opacity=A+""},10);let l=e.isVisibleDeep();l&&(i.style.display="block");let h={x:e.x()+e.get("dx",0),y:e.y()+e.get("dy",0)};e.parent&&(h=e.parent.toGlobal(h)),i.style.top=h.y+"px",i.style.left=h.x+"px";let c=e.get("width"),d=e.get("height"),u=0,f=0;if(c&&(u=e.width()),d&&(f=e.height()),!c||!d){i.style.position="fixed",i.style.width="",i.style.height="";let w=i.getBoundingClientRect();i.style.position="absolute",c||(u=w.width),d||(f=w.height);let _=u/n,L=f/n,k=e.get("centerX",0),D=e.get("centerY",0),E=0,O=0,I=0,M=0;k instanceof Oe?(E=-k.value*_,O=(1-k.value)*_):(E=-k,O=_-k),D instanceof Oe?(I=-D.value*L,M=(1-D.value)*L):(I=-D,M=L-D),e._localBounds={left:E,right:O,top:I,bottom:M};let S=e._adjustedLocalBounds,P=e._display.getAdjustedBounds(e._localBounds);e._adjustedLocalBounds=P,(S.left!==P.left||S.right!==P.right||S.top!==P.top||S.bottom!==P.bottom)&&e.markDirtyBounds()}u>0&&(i.style.minWidth=u+"px"),f>0&&(i.style.minHeight=f+"px"),(!l||A==0)&&(i.style.display="none");let m=e.get("centerX",0),g=Tg(m)?m.percent+"%":m+"px",v=e.get("centerY",0),B=Tg(v)?v.percent+"%":v+"px";(m||v)&&(i.style.transform="translate(-"+g+", -"+B+")"+i.style.transform),n!=1&&(i.style.transform+="scale("+n+")"),o!=0&&(i.style.transform+=" rotate("+o+"deg)"),i.style.transform!=""&&(i.style.transformOrigin=g+" "+B)}}_setHTMLContent(e,t){let i=e.getPrivate("htmlElement");i||(i=this._makeHTMLElement(e),this.autoResize||this.resize()),i.innerHTML!=t&&(i.innerHTML=t)}_removeHTMLContent(e){let t=e.getPrivate("htmlElementWrapper"),i=e.getPrivate("htmlElement");t?(this._htmlElementContainer.removeChild(t),e.removePrivate("htmlElement"),e.removePrivate("htmlElementWrapper"),e.removePrivate("wrapperContainer")):i&&(this._htmlElementContainer.removeChild(i),e.removePrivate("htmlElement"),e.removePrivate("wrapperContainer")),Ci(this._htmlEnabledContainers,e)}};var Fs=class extends pt{_afterNew(){super._afterNewApplyThemes()}_beforeChanged(){if(super._beforeChanged(),this.isDirty("sprite")){let e=this.get("sprite");e&&(e.setAll({position:"absolute",role:"figure"}),this._disposers.push(e))}(this.isDirty("locationX")||this.isDirty("locationY"))&&this.series&&this.series._positionBullet(this)}};Fs.className="Bullet";Fs.classNames=pt.classNames.concat([Fs.className]);var qt=class extends Xt{_beforeChanged(){super._beforeChanged(),(this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL"))&&(this._clear=!0)}_draw(){let e=this.width(),t=this.height(),i=e/Math.abs(e),s=t/Math.abs(t),a=0,n=0,o=this.get("strokeWidth",0);this.get("containStroke",!1)&&(e-=i*o,t-=s*o,a+=i*o/2,n+=s*o/2);let A=e,l=t;if(j(A)&&j(l)){let h=Math.min(A,l)/2,c=tt(this.get("cornerRadiusTL",8),h),d=tt(this.get("cornerRadiusTR",8),h),u=tt(this.get("cornerRadiusBR",8),h),f=tt(this.get("cornerRadiusBL",8),h),m=Math.min(Math.abs(A/2),Math.abs(l/2));c=It(c,0,m),d=It(d,0,m),u=It(u,0,m),f=It(f,0,m);let g=this._display;g.moveTo(a+c*i,n),g.lineTo(a+A-d*i,n),d>0&&g.arcTo(a+A,n,a+A,n+d*s,d),g.lineTo(a+A,n+l-u*s),u>0&&g.arcTo(a+A,n+l,a+A-u*i,n+l,u),g.lineTo(a+f*i,n+l),f>0&&g.arcTo(a,n+l,a,n+l-f*s,f),g.lineTo(a,n+c*s),c>0&&g.arcTo(a,n,a+c*i,n,c),g.closePath()}}};qt.className="RoundedRectangle";qt.classNames=Xt.classNames.concat([qt.className]);var on=class extends ve{_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["button"]),super._afterNew(),this._settings.background||this.set("background",qt.new(this._root,{themeTags:Ue(this._settings.themeTags,["background"])})),this.setPrivate("trustBounds",!0)}_prepareChildren(){if(super._prepareChildren(),this.isDirty("icon")){let e=this._prevSettings.icon,t=this.get("icon");t!==e&&(this._disposeProperty("icon"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.icon=t)}if(this.isDirty("label")){let e=this._prevSettings.label,t=this.get("label");t!==e&&(this._disposeProperty("label"),e&&e.dispose(),t&&this.children.push(t),this._prevSettings.label=t)}}};on.className="Button";on.classNames=ve.classNames.concat([on.className]);var _d=class extends cr{incrementRef(){}decrementRef(){}_onPush(e){this.processor&&this.processor.processRow(e),super._onPush(e)}_onInsertIndex(e,t){this.processor&&this.processor.processRow(t),super._onInsertIndex(e,t)}_onSetIndex(e,t,i){this.processor&&this.processor.processRow(i),super._onSetIndex(e,t,i)}};var Ui=class extends ec{constructor(e,t,i){super(i),this.dataContext=t,this.component=e,this._settings.visible=!0,this._checkDirty()}markDirty(){this.component.markDirtyValues(this)}_startAnimation(){this.component._root._addAnimation(this)}_animationTime(){return this.component._root.animationTime}_dispose(){this.component&&this.component.disposeDataItem(this),super._dispose()}show(e){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,e)}hide(e){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,e)}isHidden(){return!this.get("visible")}},Qr=class extends ve{constructor(){super(...arguments),this._data=new _d,this._dataItems=[],this._mainDataItems=this._dataItems,this.valueFields=[],this.fields=["id"],this._valuesDirty=!1,this._dataChanged=!1,this._dataGrouped=!1,this.inited=!1}set data(e){e.incrementRef(),this._data.decrementRef(),this._data=e}get data(){return this._data}_dispose(){super._dispose(),this._data.decrementRef()}_onDataClear(){}_afterNew(){super._afterNew(),this._data.incrementRef(),this._updateFields(),this._disposers.push(this.data.events.onAll(e=>{let t=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,e.type==="clear")W(t,i=>{i.dispose()}),t.length=0,this._onDataClear();else if(e.type==="push"){let i=new Ui(this,e.newValue,this._makeDataItem(e.newValue));t.push(i),this.processDataItem(i)}else if(e.type==="setIndex"){let i=t[e.index],s=this._makeDataItem(e.newValue);i.bullets&&i.bullets.length==0&&(i.bullets=void 0),Ar(s).forEach(([a,n])=>{i.get(a)!=n&&i.animate({key:a,to:n,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})}),i.dataContext=e.newValue}else if(e.type==="insertIndex"){let i=new Ui(this,e.newValue,this._makeDataItem(e.newValue));t.splice(e.index,0,i),this.processDataItem(i)}else if(e.type==="removeIndex")t[e.index].dispose(),t.splice(e.index,1);else if(e.type==="moveIndex"){let i=t[e.oldIndex];t.splice(e.oldIndex,1),t.splice(e.newIndex,0,i)}else throw new Error("Unknown IStreamEvent type");this._afterDataChange()}))}_postUpdateData(){}updateData(e){let t=0;W(e,(i,s)=>{let a=this.dataItems[s];if(!a)this.data.push(i);else{let n=a.dataContext;n&&Ar(i).forEach(([A,l])=>{n[A]=l});let o=this._makeDataItem(n);Ar(o).forEach(([A,l])=>{var h;if(a.get(A)!=l){a.set(A,l);let c=(h=this._valueFieldsF[A])===null||h===void 0?void 0:h.workingKey;c&&a.set(c,l)}})}t=s});for(let i=this.dataItems.length-1;i>t;i--){let s=this.dataItems[i];Ci(this.dataItems,s),s.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},W(this.valueFields,e=>{this.get(e+"Field")&&(this._valueFields.push(e),this._valueFieldsF[e]={fieldKey:e+"Field",workingKey:e+"Working"})})),this.fields&&(this._fields=[],this._fieldsF={},W(this.fields,e=>{this.get(e+"Field")&&(this._fields.push(e),this._fieldsF[e]=e+"Field")}))}get dataItems(){return this._dataItems}processDataItem(e){}_makeDataItem(e){let t={};return this._valueFields&&W(this._valueFields,i=>{let s=this.get(this._valueFieldsF[i].fieldKey);t[i]=e[s],t[this._valueFieldsF[i].workingKey]=t[i]}),this._fields&&W(this._fields,i=>{let s=this.get(this._fieldsF[i]);t[i]=e[s]}),t}makeDataItem(e,t){let i=new Ui(this,t,e);return this.processDataItem(i),i}pushDataItem(e,t){let i=this.makeDataItem(e,t);return this._mainDataItems.push(i),i}disposeDataItem(e){}showDataItem(e,t){return Ze(this,void 0,void 0,function*(){e.set("visible",!0)})}hideDataItem(e,t){return Ze(this,void 0,void 0,function*(){e.set("visible",!1)})}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){let e="datavalidated";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this}),this._dataChanged=!1}if(this._valuesDirty){let e="valueschanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}this.inited=!0}markDirtyValues(e){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(e){return ed(this.dataItems,t=>t.get("id")==e)}};Qr.className="Component";Qr.classNames=ve.classNames.concat([Qr.className]);var Hn=class extends pt{_afterNew(){super._afterNewApplyThemes()}getFill(e){return{addColorStop:(t,i)=>{}}}_changed(){super._changed()}getBounds(e){let t=this.get("target");if(t){let i=t.globalBounds(),s=e.toLocal({x:i.left,y:i.top}),a=e.toLocal({x:i.right,y:i.top}),n=e.toLocal({x:i.right,y:i.bottom}),o=e.toLocal({x:i.left,y:i.bottom});return{left:Math.min(s.x,a.x,n.x,o.x),top:Math.min(s.y,a.y,n.y,o.y),right:Math.max(s.x,a.x,n.x,o.x),bottom:Math.max(s.y,a.y,n.y,o.y)}}return e._display.getLocalBounds()}};Hn.className="Gradient";Hn.classNames=pt.classNames.concat([Hn.className]);var _a=class extends Hn{getFill(e){let t=this.get("rotation",0),i=this.getBounds(e),s=i.left||0,a=i.right||0,n=i.top||0,o=i.bottom||0,A=Bt(t),l=mt(t),h=A*(a-s),c=l*(o-n);h==0&&(h=1),c==0&&(c=1);let d=Math.max(h,c),u=this._root._renderer.createLinearGradient(s,n,s+d*A,n+d*l),f=this.get("stops");if(f){let m=0;W(f,g=>{let v=g.offset;j(v)||(v=m/(f.length-1));let B=g.opacity;j(B)||(B=1);let w=g.color;if(w){let _=g.lighten;_&&(w=Ie.lighten(w,_));let L=g.brighten;L&&(w=Ie.brighten(w,L)),u.addColorStop(v,"rgba("+w.r+","+w.g+","+w.b+","+B+")")}m++})}return u}};_a.className="LinearGradient";_a.classNames=Hn.classNames.concat([_a.className]);var Yr=class extends ve{constructor(){super(...arguments),this.labelContainer=this.children.push(ve.new(this._root,{})),this.markerContainer=this.children.push(ve.new(this._root,{})),this.startLabel=this.labelContainer.children.push(at.new(this._root,{themeTags:["start"]})),this.endLabel=this.labelContainer.children.push(at.new(this._root,{themeTags:["end"]})),this.markers=this.addDisposer(new wt(Ke.new({}),()=>qt._new(this._root,{themeTags:Ue(this.markers.template.get("themeTags",[]),[this.get("orientation"),"heatlegend","marker"])},[this.markers.template])))}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["heatlegend",this._settings.orientation]),super._afterNew(),this.set("tooltip",wi.new(this._root,{themeTags:["heatlegend"]}))}makeMarker(){let e=this.markers.make();return e.states.create("disabled",{}),e}showValue(e,t,i){let s=this.getTooltip();if(s&&j(e)){let a=this.get("startValue",0),n=this.get("endValue",1),o=(e-a)/(n-a);(o==1/0||o==-1/0||isNaN(o))&&(o=.5);let A=this.get("startColor"),l=this.get("endColor");t||(t=this.getNumberFormatter().format(e)),i||(i=Ie.interpolate(o,A,l)),s.label.set("text",t);let h;this.get("orientation")=="vertical"?h=this.markerContainer.toGlobal({x:0,y:this.innerHeight()*(1-o)}):h=this.markerContainer.toGlobal({x:this.innerWidth()*o,y:0});let c=s.get("background");c&&c.set("fill",i),s.set("pointTo",h),s.show()}}_prepareChildren(){super._prepareChildren();let e=this.labelContainer,t=this.get("orientation"),i=this.startLabel,s=this.endLabel,a=this.getTooltip();if(this.isDirty("orientation")&&(t=="vertical"?(this.markerContainer.setAll({layout:this._root.verticalLayout,height:Ae}),this.set("layout",this._root.horizontalLayout),i.setAll({y:Ae,x:void 0,centerY:Ae,centerX:Ae}),s.setAll({y:0,x:void 0,centerY:0,centerX:Ae}),e.setAll({height:Ae,width:void 0}),a&&a.set("pointerOrientation","horizontal")):(this.markerContainer.setAll({layout:this._root.horizontalLayout,width:Ae}),this.set("layout",this._root.verticalLayout),i.setAll({x:0,y:void 0,centerX:0,centerY:0}),s.setAll({x:Ae,y:void 0,centerX:Ae,centerY:0}),e.setAll({width:Ae,height:void 0}),a&&a.set("pointerOrientation","vertical"))),this.isDirty("stepCount")){let n=this.get("stepCount",1),o=this.get("startColor"),A=this.get("endColor"),l=this.get("startOpacity",1),h=this.get("endOpacity",1);if(this.markerContainer.children.clear(),n>1)for(let c=0;c<n;c++){let d=this.makeMarker();t=="vertical"?this.markerContainer.children.moveValue(d,0):this.markerContainer.children.push(d),o&&A&&d.setAll({fill:Ie.interpolate(c/n,o,A),fillOpacity:Ve(c/n*100).interpolate(l,h)})}else if(n==1){let c=this.makeMarker();this.markerContainer.children.push(c);let d=_a.new(this._root,{stops:[{color:o,opacity:l},{color:A,opacity:h}]});if(t=="vertical"){d.set("rotation",90);let u=d.get("stops");u&&u.reverse()}else d.set("rotation",0);o&&A&&c.set("fillGradient",d)}}(this.isDirty("startText")||this.isDirty("startValue"))&&i.set("text",this.get("startText",this.getNumberFormatter().format(this.get("startValue",0)))),(this.isDirty("endText")||this.isDirty("endValue"))&&s.set("text",this.get("endText",this.getNumberFormatter().format(this.get("endValue",1))))}};Yr.className="HeatLegend";Yr.classNames=ve.classNames.concat([Yr.className]);var Oo={};YT(Oo,{add:()=>LI,checkChange:()=>Ld,chooseInterval:()=>Ac,copy:()=>SI,getDateIntervalDuration:()=>oc,getDuration:()=>Yi,getIntervalDuration:()=>dr,getNextUnit:()=>Sd,getTime:()=>FI,getUnitValue:()=>TI,now:()=>oB,roun:()=>xi,round:()=>An,sleep:()=>kp,timeUnitDurations:()=>Fd});function kp(r){return new Promise((e,t)=>{setTimeout(e,r)})}var Fd={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:365.242/12*864e5,year:31536e6};function Sd(r){switch(r){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 Yi(r,e){return e==null&&(e=1),Fd[r]*e}function dr(r){return r?Fd[r.timeUnit]*r.count:0}function oc(r,e,t,i,s){let a=r.timeUnit,n=r.count;if(a=="hour"||a=="minute"||a=="second"||a=="millisecond")return Fd[r.timeUnit]*r.count;{let o=An(new Date(e.getTime()),a,n,t,i,void 0,s).getTime(),A=o+n*Yi(a)*1.05;return A=An(new Date(A),a,1,t,i,void 0,s).getTime(),A-o}}function oB(){return new Date}function FI(){return oB().getTime()}function SI(r){return new Date(r.getTime())}function Ld(r,e,t,i,s){if(e-r>Yi(t,1.2))return!0;let a=new Date(r),n=new Date(e);s&&(a=s.convertLocal(a),n=s.convertLocal(n));let o=0,A=0;!i&&t!="millisecond"&&(o=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-o),A=n.getTimezoneOffset(),n.setUTCMinutes(n.getUTCMinutes()-A));let l=!1;switch(t){case"year":a.getUTCFullYear()!=n.getUTCFullYear()&&(l=!0);break;case"month":(a.getUTCFullYear()!=n.getUTCFullYear()||a.getUTCMonth()!=n.getUTCMonth())&&(l=!0);break;case"day":(a.getUTCMonth()!=n.getUTCMonth()||a.getUTCDate()!=n.getUTCDate())&&(l=!0);break;case"hour":a.getUTCHours()!=n.getUTCHours()&&(l=!0);break;case"minute":a.getUTCMinutes()!=n.getUTCMinutes()&&(l=!0);break;case"second":a.getUTCSeconds()!=n.getUTCSeconds()&&(l=!0);break;case"millisecond":a.getTime()!=n.getTime()&&(l=!0);break}if(l)return l;let h=Sd(t);return h?Ld(r,e,h,i,s):!1}function LI(r,e,t,i,s){let a=0;switch(!i&&e!="millisecond"&&(a=r.getTimezoneOffset(),s&&(a-=s.offsetUTC(r)),r.setUTCMinutes(r.getUTCMinutes()-a)),e){case"day":let n=r.getUTCDate();r.setUTCDate(n+t);break;case"second":let o=r.getUTCSeconds();r.setUTCSeconds(o+t);break;case"millisecond":let A=r.getUTCMilliseconds();r.setUTCMilliseconds(A+t);break;case"hour":let l=r.getUTCHours();r.setUTCHours(l+t);break;case"minute":let h=r.getUTCMinutes();r.setUTCMinutes(h+t);break;case"year":let c=r.getUTCFullYear();r.setUTCFullYear(c+t);break;case"month":let d=r.getUTCDate(),u=new Date(r.getUTCFullYear(),r.getUTCMonth(),0).getUTCDate(),f=r.getUTCMonth();d>u?r.setUTCMonth(f+t,u):r.setUTCMonth(f+t);break;case"week":let m=r.getUTCDate();r.setUTCDate(m+t*7);break}if(!i&&e!="millisecond"&&(r.setUTCMinutes(r.getUTCMinutes()+a),e=="day"||e=="week"||e=="month"||e=="year")){let n=r.getTimezoneOffset();if(s&&(n+=s.offsetUTC(r)),n!=a){let o=n-a;r.setUTCMinutes(r.getUTCMinutes()+o),r.getTimezoneOffset()!=n&&r.setUTCMinutes(r.getUTCMinutes()-o)}}return r}function xi(r,e,t,i,s){let a;return s!=null&&(a=new Date(s)),An(new Date(r),e,t,i.locale.firstDayOfWeek,i.utc,a,i.timezone).getTime()}function An(r,e,t,i,s,a,n){if(!n||s){let o=0;switch(!s&&e!="millisecond"&&(o=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-o)),e){case"day":let A=r.getUTCDate();if(t>1){if(a){a=An(a,"day",1);let v=r.getTime()-a.getTime(),B=Math.floor(v/Yi("day")/t),w=Yi("day",B*t);r.setTime(a.getTime()+w-o*Yi("minute"))}}else r.setUTCDate(A);r.setUTCHours(0,0,0,0);break;case"second":let l=r.getUTCSeconds();t>1&&(l=Math.floor(l/t)*t),r.setUTCSeconds(l,0);break;case"millisecond":if(t==1)return r;let h=r.getUTCMilliseconds();h=Math.floor(h/t)*t,r.setUTCMilliseconds(h);break;case"hour":let c=r.getUTCHours();t>1&&(c=Math.floor(c/t)*t),r.setUTCHours(c,0,0,0);break;case"minute":let d=r.getUTCMinutes();t>1&&(d=Math.floor(d/t)*t),r.setUTCMinutes(d,0,0);break;case"month":let u=r.getUTCMonth();t>1&&(t==2||t==3||t==4||t==6)&&(u=Math.floor(u/t)*t),r.setUTCMonth(u,1),r.setUTCHours(0,0,0,0);break;case"year":let f=r.getUTCFullYear();t>1&&(f=Math.floor(f/t)*t),r.setUTCFullYear(f,0,1),r.setUTCHours(0,0,0,0);break;case"week":if(t>1&&a){a=An(a,"week",1);let v=r.getTime()-a.getTime(),B=Math.floor(v/Yi("week")/t),w=Yi("week",B*t);r.setTime(a.getTime()+w-o*Yi("minute"))}let m=r.getUTCDate(),g=r.getUTCDay();j(i)||(i=1),g>=i?m=m-g+i:m=m-(7+g)+i,r.setUTCDate(m),r.setUTCHours(0,0,0,0);break}if(!s&&e!="millisecond"&&(r.setUTCMinutes(r.getUTCMinutes()+o),e=="day"||e=="week"||e=="month"||e=="year")){let A=r.getTimezoneOffset();if(A!=o){let l=A-o;r.setUTCMinutes(r.getUTCMinutes()+l)}}return r}else{if(isNaN(r.getTime()))return r;let o=r.getTime(),A=n.offsetUTC(r),l=r.getTimezoneOffset(),h=n.parseDate(r),c=h.year,d=h.month,u=h.day,f=h.hour,m=h.minute,g=h.second,v=h.millisecond,B=h.weekday,w=A-l;switch(e){case"day":if(t>1&&a){a=An(a,"day",1,i,s,void 0,n);let O=r.getTime()-a.getTime(),I=Math.floor(O/Yi("day")/t),M=Yi("day",I*t);r.setTime(a.getTime()+M),h=n.parseDate(r),c=h.year,d=h.month,u=h.day}f=0,m=w,g=0,v=0;break;case"second":m+=w,t>1&&(g=Math.floor(g/t)*t),v=0;break;case"millisecond":m+=w,t>1&&(v=Math.floor(v/t)*t);break;case"hour":t>1&&(f=Math.floor(f/t)*t),m=w,g=0,v=0;break;case"minute":t>1&&(m=Math.floor(m/t)*t),m+=w,g=0,v=0;break;case"month":t>1&&(d=Math.floor(d/t)*t),u=1,f=0,m=w,g=0,v=0;break;case"year":t>1&&(c=Math.floor(c/t)*t),d=0,u=1,f=0,m=w,g=0,v=0;break;case"week":j(i)||(i=1),B>=i?u=u-B+i:u=u-(7+B)+i,f=0,m=w,g=0,v=0;break}r=new Date(c,d,u,f,m,g,v);let _=r.getTime(),L=36e5;e=="hour"&&(L=36e5*t),_+L<=o&&(e=="hour"||e=="minute"||e=="second"||e=="millisecond")&&(r=new Date(_+L));let k=r.getTimezoneOffset(),E=n.offsetUTC(r)-k;return E!=w&&r.setTime(r.getTime()+(E-w)*6e4),r}}function Ac(r,e,t,i){let s=i[r],a=dr(s),n=i.length-1;if(r>=n)return Object.assign({},i[n]);let o=Math.ceil(e/a);return e<a&&r>0?Object.assign({},i[r-1]):o<=t?Object.assign({},i[r]):r+1<i.length?Ac(r+1,e,t,i):Object.assign({},i[r])}function TI(r,e){switch(e){case"day":return r.getDate();case"second":return r.getSeconds();case"millisecond":return r.getMilliseconds();case"hour":return r.getHours();case"minute":return r.getMinutes();case"month":return r.getMonth();case"year":return r.getFullYear();case"week":return ko(r)}}var _i=class extends Qr{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new cr,this.bulletsContainer=ve.new(this._root,{width:Ae,height:Ae,position:"absolute"})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(()=>{this._handleBullets(this.dataItems)}))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let e=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),e)}endIndex(){let e=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",e),e))}_handleBullets(e){W(e,t=>{let i=t.bullets;i&&(W(i,s=>{s.dispose()}),t.bullets=void 0)}),this.markDirtyValues()}_makeBullets(e){this._shouldMakeBullet(e)&&(e.bullets=[],this.bullets.each(t=>{this._makeBullet(e,t)}))}_shouldMakeBullet(e){return!0}_makeBullet(e,t,i){let s=t(this._root,this,e);return s&&(s._index=i,this._makeBulletReal(e,s)),s}_makeBulletReal(e,t){let i=t.get("sprite");i&&(i._setDataItem(e),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),t.series=this,e.bullets.push(t)}addBullet(e,t){e.bullets||(e.bullets=[]),t&&this._makeBulletReal(e,t)}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let e=this.dataItems,t=e.length,i=this.startIndex(),s=this.endIndex();if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){let n=this.getPrivate("baseValueSeries");n&&this._disposers.push(n.onPrivate("startIndex",()=>{this._baseSeriesDirty=!0,this.markDirtyValues()}))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,t),this._aggregatesCalculated=!0,i!=0&&(this._psi=void 0))),(this._psi!=i||this._pei!=s||this.isPrivateDirty("adjustedStartIndex"))&&!this._selectionAggregatesCalculated&&(i===0&&s===t&&this._aggregatesCalculated||this._calculateAggregates(i,s),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let n=this.get("tooltip");n&&(n.hide(0),n.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let n,o=this.get("legendDataItem");if(o&&(n=o.get("markerRectangle"),n&&this.isVisible())){if(this.isDirty("stroke")){let A=this.get("stroke");n.set("stroke",A)}if(this.isDirty("fill")){let A=this.get("fill");n.set("fill",A)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let n=this.startIndex(),o=this.endIndex();o<t&&o++;for(let A=n;A<o;A++){let l=e[A];l.bullets||this._makeBullets(l)}}}_handleRemoved(){}_adjustStartIndex(e){return e}_calculateAggregates(e,t){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");let s=this.get("excludeFromAggregate");s&&(i=i.filter(g=>s.indexOf(g)==-1));let a={},n={},o={},A={},l={},h={},c={},d={},u={};for(let g=0,v=i.length;g<v;g++){let B=i[g];a[B]=0,n[B]=0,o[B]=0}let f=this.dataItems,m=f.length;for(let g=0,v=i.length;g<v;g++){let B=i[g],w=B+"Change",_=B+"ChangePercent",L=B+"ChangePrevious",k=B+"ChangePreviousPercent",D=B+"ChangeSelection",E=B+"ChangeSelectionPercent",O="valueY";(B==="valueX"||B.endsWith("ValueX"))&&(O="valueX");let I=this.getPrivate("baseValueSeries"),M=this.getPrivate("adjustedStartIndex",e),S=(P,Y,G)=>{if(e===0){let ne=h[O],z=Y-ne;P.setRaw(w,z),P.setRaw(_,z/ne*100)}let ie=Y-u[O],J=Y-h[O];P.setRaw(L,ie),P.setRaw(k,ie/u[O]*100),P.setRaw(D,J),P.setRaw(E,J/h[O]*100),u[G]=Y};for(let P=M;P<t;P++){let Y=f[P];if(Y){let G=Y.get(B);if(G!=null){A[B]==null&&(A[B]=G),l[B]==null&&(l[B]=G),h[B]==null&&(h[B]=G,u[B]=G,I&&(h[O]=I._getBase(O)));break}}}for(let P=M;P<t;P++){let Y=f[P];if(Y){let G=Y._settings[B];G!=null&&(o[B]++,a[B]+=G,n[B]+=Math.abs(G),A[B]>G&&(A[B]=G),l[B]<G&&(l[B]=G),c[B]=G,S(Y,G,B))}}if(d[B]=a[B]/o[B],t<m){let P=f[t];if(P){let Y=P.get(B);Y!=null&&S(P,Y,B)}}if(t+1<m){let P=f[t+1];if(P){let Y=P.get(B);Y!=null&&S(P,Y,B)}}e>0&&e--,delete u[B];for(let P=e;P<M;P++){let Y=f[P];if(Y){let G=Y.get(B);u[B]==null&&(u[B]=G),G!=null&&S(Y,G,B)}}}for(let g=0,v=i.length;g<v;g++){let B=i[g];this.setPrivate(B+"AverageSelection",d[B]),this.setPrivate(B+"CountSelection",o[B]),this.setPrivate(B+"SumSelection",a[B]),this.setPrivate(B+"AbsoluteSumSelection",n[B]),this.setPrivate(B+"LowSelection",A[B]),this.setPrivate(B+"HighSelection",l[B]),this.setPrivate(B+"OpenSelection",h[B]),this.setPrivate(B+"CloseSelection",c[B])}if(e===0&&t===m)for(let g=0,v=i.length;g<v;g++){let B=i[g];this.setPrivate(B+"Average",d[B]),this.setPrivate(B+"Count",o[B]),this.setPrivate(B+"Sum",a[B]),this.setPrivate(B+"AbsoluteSum",n[B]),this.setPrivate(B+"Low",A[B]),this.setPrivate(B+"High",l[B]),this.setPrivate(B+"Open",h[B]),this.setPrivate(B+"Close",c[B])}}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));let e=this.get("heatRules");if(this._valuesDirty&&e&&e.length>0&&W(e,t=>{let i=t.minValue||this.getPrivate(t.dataField+"Low")||0,s=t.maxValue||this.getPrivate(t.dataField+"High")||0;W(t.target._entities,a=>{let n=a.dataItem.get(t.dataField);if(!j(n)){t.neutral&&a.set(t.key,t.neutral);let o=a.states;if(o){let A=o.lookup("default");A&&t.neutral&&A.set(t.key,t.neutral)}if(!t.customFunction)return}if(t.customFunction)t.customFunction.call(this,a,i,s,n);else{let o;t.logarithmic?o=(Math.log(n)*Math.LOG10E-Math.log(i)*Math.LOG10E)/(Math.log(s)*Math.LOG10E-Math.log(i)*Math.LOG10E):o=(n-i)/(s-i),j(n)&&(!j(o)||Math.abs(o)==1/0)&&(o=.5);let A;j(t.min)?A=t.min+(t.max-t.min)*o:t.min instanceof Ie?A=Ie.interpolate(o,t.min,t.max):t.min instanceof Oe&&(A=$g(o,t.min,t.max)),a.set(t.key,A);let l=a.states;if(l){let h=l.lookup("default");h&&h.set(t.key,A)}}})}),this.get("visible")){let t=this.dataItems,i=t.length,s=this.startIndex(),a=this.endIndex();a<i&&a++,s>0&&s--;for(let n=0;n<s;n++)this._hideBullets(t[n]);for(let n=s;n<a;n++)this._positionBullets(t[n]);for(let n=a;n<i;n++)this._hideBullets(t[n])}}_positionBullets(e){e.bullets&&W(e.bullets,t=>{this._positionBullet(t);let i=t.get("sprite");t.get("dynamic")&&(i&&(i._markDirtyKey("fill"),i.markDirtySize()),i instanceof ve&&i.walkChildren(s=>{s._markDirtyKey("fill"),s.markDirtySize(),s instanceof at&&s.text.markDirtyText()})),i instanceof at&&i.get("populateText")&&i.text.markDirtyText()})}_hideBullets(e){e.bullets&&W(e.bullets,t=>{let i=t.get("sprite");i&&i.setPrivate("visible",!1)})}_positionBullet(e){}_placeBulletsContainer(e){e.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){let e=this.bulletsContainer;e.parent&&e.parent.children.removeValue(e)}disposeDataItem(e){let t=e.bullets;t&&(W(t,i=>{i.dispose()}),e.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)],a=e.bullets;a&&W(a,n=>{let o=n.get("sprite");o&&s.push(o.show(t))}),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=e.bullets;a&&W(a,n=>{let o=n.get("sprite");o&&s.push(o.hide(t))}),yield Promise.all(s)})}_sequencedShowHide(e,t){return Ze(this,void 0,void 0,function*(){if(this.get("sequencedInterpolation"))if(j(t)||(t=this.get("interpolationDuration",0)),t>0){let i=this.startIndex(),s=this.endIndex();yield Promise.all(Nl(this.dataItems,(a,n)=>Ze(this,void 0,void 0,function*(){let o=t||0;(n<i-10||n>s+10)&&(o=0);let A=this.get("sequencedDelay",0)+o/(s-i);yield kp(A*(n-i)),e?yield this.showDataItem(a,o):yield this.hideDataItem(a,o)})))}else yield Promise.all(Nl(this.dataItems,i=>e?this.showDataItem(i,0):this.hideDataItem(i,0)))})}updateLegendValue(e){if(e){let t=e.get("legendDataItem");if(t){let i=t.get("valueLabel");if(i){let a=i.text,n="";i._setDataItem(e),n=this.get("legendValueText",a.get("text","")),i.set("text",n),a.markDirtyText()}let s=t.get("label");if(s){let a=s.text,n="";s._setDataItem(e),n=this.get("legendLabelText",a.get("text","")),s.set("text",n),a.markDirtyText()}}}}updateLegendMarker(e){}_onHide(){super._onHide();let e=this.getTooltip();e&&e.hide()}hoverDataItem(e){}unhoverDataItem(e){}_getBase(e){let t=this.dataItems[this.startIndex()];return t?t.get(e):0}};_i.className="Series";_i.classNames=Qr.classNames.concat([_i.className]);var Fa=class extends _i{constructor(){super(...arguments),this.itemContainers=this.addDisposer(new wt(Ke.new({}),()=>ve._new(this._root,{themeTags:Ue(this.itemContainers.template.get("themeTags",[]),["legend","item"]),themeTagsSelf:Ue(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"]),background:qt.new(this._root,{themeTags:Ue(this.itemContainers.template.get("themeTags",[]),["legend","item","background"]),themeTagsSelf:Ue(this.itemContainers.template.get("themeTagsSelf",[]),["itemcontainer"])})},[this.itemContainers.template]))),this.markers=this.addDisposer(new wt(Ke.new({}),()=>ve._new(this._root,{themeTags:Ue(this.markers.template.get("themeTags",[]),["legend","marker"])},[this.markers.template]))),this.labels=this.addDisposer(new wt(Ke.new({}),()=>at._new(this._root,{themeTags:Ue(this.labels.template.get("themeTags",[]),["legend","label"])},[this.labels.template]))),this.valueLabels=this.addDisposer(new wt(Ke.new({}),()=>at._new(this._root,{themeTags:Ue(this.valueLabels.template.get("themeTags",[]),["legend","label","value"])},[this.valueLabels.template]))),this.markerRectangles=this.addDisposer(new wt(Ke.new({}),()=>qt._new(this._root,{themeTags:Ue(this.markerRectangles.template.get("themeTags",[]),["legend","marker","rectangle"])},[this.markerRectangles.template])))}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["legend"]),this.fields.push("name","stroke","fill"),super._afterNew()}makeItemContainer(e){let t=this.children.push(this.itemContainers.make());return t._setDataItem(e),this.itemContainers.push(t),t.states.create("disabled",{}),t}makeMarker(){let e=this.markers.make();return this.markers.push(e),e.states.create("disabled",{}),e}makeLabel(){let e=this.labels.make();return e.states.create("disabled",{}),e}makeValueLabel(){let e=this.valueLabels.make();return e.states.create("disabled",{}),e}makeMarkerRectangle(){let e=this.markerRectangles.make();return e.states.create("disabled",{}),e}processDataItem(e){super.processDataItem(e);let t=this.makeItemContainer(e),i=this.get("nameField"),s=this.get("fillField"),a=this.get("strokeField");if(t){let n=this.get("clickTarget","itemContainer"),o=e.dataContext;o&&o.set&&o.set("legendDataItem",e),t._setDataItem(e),e.set("itemContainer",t);let A=this.makeMarker();if(A){t.children.push(A),A._setDataItem(e),e.set("marker",A);let c=this.get("useDefaultMarker"),d=A.children.push(this.makeMarkerRectangle()),u=e.get("fill"),f=e.get("stroke");e.set("markerRectangle",d),o&&o.get&&(u=o.get(s,u),f=o.get(a,f)),f||(f=u),c?o.on&&(o.on(s,()=>{d.set("fill",o.get(s))}),o.on(a,()=>{d.set("stroke",o.get(a))})):o&&o.createLegendMarker&&o.createLegendMarker(),d.setAll({fill:u,stroke:f});let m=o.component;m&&m.updateLegendMarker&&m.updateLegendMarker(o)}let l=this.makeLabel();if(l){t.children.push(l),l._setDataItem(e),e.set("label",l),l.text.on("text",()=>{t.setRaw("ariaLabel",l.text._getText()+(this.get("clickTarget")!=="none"?"; "+this._t("Press ENTER to toggle"):"")),t.markDirtyAccessibility()}),o&&o.get&&e.set("name",o.get(i));let c=e.get("name");c&&l.set("text",c)}let h=this.makeValueLabel();if(h&&(t.children.push(h),h._setDataItem(e),e.set("valueLabel",h)),o&&o.show&&(o.on("visible",c=>{t.set("disabled",!c)}),o.get("visible")||t.set("disabled",!0),n!="none")){let c=t;n=="marker"&&(c=A),this._addClickEvents(c,o,e)}this.children.values.sort((c,d)=>{let u=c.dataItem.dataContext,f=d.dataItem.dataContext;if(u&&f){let m=this.data.indexOf(u),g=this.data.indexOf(f);if(m>g)return 1;if(m<g)return-1}return 0}),o&&o.updateLegendValue&&o.updateLegendValue()}}_addClickEvents(e,t,i){e.set("cursorOverStyle","pointer"),e.events.on("pointerover",()=>{let s=t.component;s&&s.hoverDataItem&&s.hoverDataItem(t)}),e.events.on("pointerout",()=>{let s=t.component;s&&s.hoverDataItem&&s.unhoverDataItem(t)}),e.events.on("click",()=>{let s=i.get("label").text._getText();t.show&&t.isHidden&&(t.isHidden()||t.get("visible")===!1)?(t.show(),e.set("disabled",!1),this._root.readerAlert(this._t("%1 shown",this._root.locale,s))):t.hide&&(t.hide(),e.set("disabled",!0),this._root.readerAlert(this._t("%1 hidden",this._root.locale,s)))})}disposeDataItem(e){super.disposeDataItem(e);let t=e.dataContext;t&&t.get&&t.get("legendDataItem")==e&&t.set("legendDataItem",void 0);let i=e.get("itemContainer");i&&(this.itemContainers.removeValue(i),i.dispose());let s=e.get("marker");s&&(this.markers.removeValue(s),s.dispose());let a=e.get("markerRectangle");a&&(this.markerRectangles.removeValue(a),a.dispose());let n=e.get("label");n&&(this.labels.removeValue(n),n.dispose());let o=e.get("valueLabel");o&&(this.valueLabels.removeValue(o),o.dispose())}};Fa.className="Legend";Fa.classNames=_i.classNames.concat([Fa.className]);function Up(r,e){for(let t=0,i=e.length;t<i;t++){let s=e[t];if(s.length>0){let a=s[0];if(a.length>0){let n=a[0];r.moveTo(n.x,n.y);for(let o=0,A=s.length;o<A;o++)II(r,s[o])}}}}function II(r,e){for(let t=0,i=e.length;t<i;t++){let s=e[t];r.lineTo(s.x,s.y)}}var Nn=class extends Re{_beforeChanged(){super._beforeChanged(),(this.isDirty("points")||this.isDirty("segments")||this._sizeDirty||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let e=this.get("points"),t=this.get("segments");if(e&&e.length>0){let i=e[0];this._display.moveTo(i.x,i.y),Up(this._display,[[e]])}else if(t)Up(this._display,t);else if(!this.get("draw")){let i=this.width(),s=this.height();this._display.moveTo(0,0),this._display.lineTo(i,s)}}}};Nn.className="Line";Nn.classNames=Re.classNames.concat([Nn.className]);var Ho=class extends Ur{constructor(){super(...arguments),this._display=this._root._renderer.makeRadialText("",this.textStyle)}_afterNew(){super._afterNew()}_beforeChanged(){super._beforeChanged(),this._display.clear(),this.isDirty("textType")&&(this._display.textType=this.get("textType"),this.markDirtyBounds()),this.isDirty("radius")&&(this._display.radius=this.get("radius"),this.markDirtyBounds()),this.isDirty("startAngle")&&(this._display.startAngle=(this.get("startAngle",0)+90)*ai,this.markDirtyBounds()),this.isDirty("inside")&&(this._display.inside=this.get("inside"),this.markDirtyBounds()),this.isDirty("orientation")&&(this._display.orientation=this.get("orientation"),this.markDirtyBounds()),this.isDirty("kerning")&&(this._display.kerning=this.get("kerning"),this.markDirtyBounds())}};Ho.className="RadialText";Ho.classNames=Ur.classNames.concat([Ho.className]);var Sa=class extends at{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(Ho.new(this._root,{}))}baseRadius(){let e=this.getPrivate("radius",0),t=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return t+tt(i,e-t)}radius(){let e=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(e?-1:1)}_updateChildren(){if(super._updateChildren(),this.isDirty("baseRadius")||this.isPrivateDirty("radius")||this.isPrivateDirty("innerRadius")||this.isDirty("labelAngle")||this.isDirty("radius")||this.isDirty("inside")||this.isDirty("orientation")||this.isDirty("textType")){let e=this.get("textType","adjusted"),t=this.get("inside",!1),i=this.get("orientation"),s=_s(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",t);let a=mt(s),n=Bt(s),o=this.baseRadius(),A=this.radius();if(this._display.angle=0,e=="circular")this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",A);else{o==0&&(s=0,A=0);let l=A*n,h=A*a;e=="radial"?(this.setRaw("x",l),this.setRaw("y",h),s<90||s>270||i!="auto"?(this._display.angle=s,this._flipped=!1):(this._display.angle=s+180,this._flipped=!0),this._dirty.rotation=!1):e=="adjusted"?(this.setRaw("centerX",Ce),this.setRaw("centerY",Ce),this.setRaw("x",l),this.setRaw("y",h)):e=="regular"&&(this.setRaw("x",l),this.setRaw("y",h))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){let e=this.get("textType","regular"),t=this.get("inside",!1),i=0,s=0,a=this.get("labelAngle",0),n=this.localBounds(),o=n.right-n.left,A=n.bottom-n.top;if(e=="radial"){if(this._flipped){let l=this.get("centerX");l instanceof Oe&&(o=o*(1-l.value*2)),i=o*Bt(a),s=o*mt(a)}}else!t&&e=="adjusted"&&(i=o/2*Bt(a),s=A/2*mt(a));this.setRaw("dx",i),this.setRaw("dy",s),super._updatePosition()}get text(){return this._text}};Sa.className="RadialLabel";Sa.classNames=at.classNames.concat([Sa.className]);var La=class extends ve{constructor(){super(...arguments),this.thumb=this._makeThumb(),this.startGrip=this._makeButton(),this.endGrip=this._makeButton(),this._thumbBusy=!1,this._startDown=!1,this._endDown=!1,this._thumbDown=!1}_addOrientationClass(){this._settings.themeTags=Ue(this._settings.themeTags,["scrollbar",this._settings.orientation]),this._settings.background||(this._settings.background=qt.new(this._root,{themeTags:Ue(this._settings.themeTags,["main","background"])}))}_makeButton(){return this.children.push(on.new(this._root,{themeTags:["resize","button",this.get("orientation")],icon:Re.new(this._root,{themeTags:["icon"]})}))}_makeThumb(){return this.children.push(qt.new(this._root,{themeTags:["thumb",this.get("orientation")]}))}_handleAnimation(e){e&&this._disposers.push(e.events.on("stopped",()=>{this.setPrivateRaw("isBusy",!1),this._thumbBusy=!1}))}_afterNew(){this._addOrientationClass(),super._afterNew();let e=this.startGrip,t=this.endGrip,i=this.thumb,s=this.get("background");s&&this._disposers.push(s.events.on("click",a=>{this.setPrivateRaw("isBusy",!0);let n=this._display.toLocal(a.point),o=this.width(),A=this.height(),l=this.get("orientation"),h;l=="vertical"?h=(n.y-i.height()/2)/A:h=(n.x-i.width()/2)/o;let c,d;l=="vertical"?(c=h*A,d="y"):(c=h*o,d="x");let u=this.get("animationDuration",0);u>0?(this._thumbBusy=!0,this._handleAnimation(this.thumb.animate({key:d,to:c,duration:u,easing:this.get("animationEasing")}))):(this.thumb.set(d,c),this._root.events.once("frameended",()=>{this.setPrivateRaw("isBusy",!1)}))})),this._disposers.push(i.events.on("dblclick",a=>{if(!IA(a.originalEvent,this))return;let n=this.get("animationDuration",0),o=this.get("animationEasing");this.animate({key:"start",to:0,duration:n,easing:o}),this.animate({key:"end",to:1,duration:n,easing:o})})),this._disposers.push(e.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._startDown=!0,this._gripDown="start"})),this._disposers.push(t.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._endDown=!0,this._gripDown="end"})),this._disposers.push(i.events.on("pointerdown",()=>{this.setPrivateRaw("isBusy",!0),this._thumbDown=!0,this._gripDown=void 0})),this._disposers.push(e.events.on("globalpointerup",()=>{this._startDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._startDown=!1})),this._disposers.push(t.events.on("globalpointerup",()=>{this._endDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._endDown=!1})),this._disposers.push(i.events.on("globalpointerup",()=>{this._thumbDown&&(this.setPrivateRaw("isBusy",!1),this._released()),this._thumbDown=!1})),this._disposers.push(e.on("x",()=>{this._updateThumb()})),this._disposers.push(t.on("x",()=>{this._updateThumb()})),this._disposers.push(e.on("y",()=>{this._updateThumb()})),this._disposers.push(t.on("y",()=>{this._updateThumb()})),this._disposers.push(i.events.on("positionchanged",()=>{this._updateGripsByThumb()})),this.get("orientation")=="vertical"?(e.set("x",0),t.set("x",0),this._disposers.push(i.adapters.add("y",a=>Math.max(Math.min(Number(a),this.height()-i.height()),0))),this._disposers.push(i.adapters.add("x",a=>this.width()/2)),this._disposers.push(e.adapters.add("x",a=>this.width()/2)),this._disposers.push(t.adapters.add("x",a=>this.width()/2)),this._disposers.push(e.adapters.add("y",a=>Math.max(Math.min(Number(a),this.height()),0))),this._disposers.push(t.adapters.add("y",a=>Math.max(Math.min(Number(a),this.height()),0)))):(e.set("y",0),t.set("y",0),this._disposers.push(i.adapters.add("x",a=>Math.max(Math.min(Number(a),this.width()-i.width()),0))),this._disposers.push(i.adapters.add("y",a=>this.height()/2)),this._disposers.push(e.adapters.add("y",a=>this.height()/2)),this._disposers.push(t.adapters.add("y",a=>this.height()/2)),this._disposers.push(e.adapters.add("x",a=>Math.max(Math.min(Number(a),this.width()),0))),this._disposers.push(t.adapters.add("x",a=>Math.max(Math.min(Number(a),this.width()),0))))}_updateChildren(){super._updateChildren(),(this.isDirty("end")||this.isDirty("start")||this._sizeDirty)&&this.updateGrips()}_changed(){if(super._changed(),this.isDirty("start")||this.isDirty("end")){let e="rangechanged";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,start:this.get("start",0),end:this.get("end",1),grip:this._gripDown})}}_released(){let e="released";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}updateGrips(){let e=this.startGrip,t=this.endGrip,i=this.get("orientation"),s=this.height(),a=this.width();i=="vertical"?(e.set("y",s*this.get("start",0)),t.set("y",s*this.get("end",1))):(e.set("x",a*this.get("start",0)),t.set("x",a*this.get("end",1)));let n=this.getPrivate("positionTextFunction"),o=Math.round(this.get("start",0)*100),A=Math.round(this.get("end",0)*100),l,h;n?(l=n.call(this,this.get("start",0)),h=n.call(this,this.get("end",0))):(l=o+"%",h=A+"%"),e.set("ariaLabel",this._t("From %1",void 0,l)),e.set("ariaValueNow",""+o),e.set("ariaValueText",o+"%"),e.set("ariaValueMin","0"),e.set("ariaValueMax","100"),t.set("ariaLabel",this._t("To %1",void 0,h)),t.set("ariaValueNow",""+A),t.set("ariaValueText",A+"%"),t.set("ariaValueMin","0"),t.set("ariaValueMax","100")}_updateThumb(){let e=this.thumb,t=this.startGrip,i=this.endGrip,s=this.height(),a=this.width(),n=t.x(),o=i.x(),A=t.y(),l=i.y(),h=0,c=1;this.get("orientation")=="vertical"?j(A)&&j(l)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("height",l-A),e.set("y",A)),h=A/s,c=l/s):j(n)&&j(o)&&(!this._thumbBusy&&!e.isDragging()&&(e.set("width",o-n),e.set("x",n)),h=n/a,c=o/a),this.getPrivate("isBusy")&&(this.get("start")!=h||this.get("end")!=c)&&(this.set("start",h),this.set("end",c));let d=this.getPrivate("positionTextFunction"),u=Math.round(this.get("start",0)*100),f=Math.round(this.get("end",0)*100),m,g;d?(m=d.call(this,this.get("start",0)),g=d.call(this,this.get("end",0))):(m=u+"%",g=f+"%"),e.set("ariaLabel",this._t("From %1 to %2",void 0,m,g)),e.set("ariaValueNow",""+u),e.set("ariaValueText",u+"%")}_updateGripsByThumb(){let e=this.thumb,t=this.startGrip,i=this.endGrip;if(this.get("orientation")=="vertical"){let s=e.height();t.set("y",e.y()),i.set("y",e.y()+s)}else{let s=e.width();t.set("x",e.x()),i.set("x",e.x()+s)}}};La.className="Scrollbar";La.classNames=ve.classNames.concat([La.className]);function Kt(r){return function(){return r}}var Qp=Math.abs,fs=Math.atan2,$n=Math.cos,AB=Math.max,Td=Math.min,zr=Math.sin,No=Math.sqrt,Es=1e-12,RA=Math.PI,lc=RA/2,lB=2*RA;function cB(r){return r>1?0:r<-1?RA:Math.acos(r)}function Ep(r){return r>=1?lc:r<=-1?-lc:Math.asin(r)}var Rp=Math.PI,Mp=2*Rp,$o=1e-6,kI=Mp-$o;function hB(r){this._+=r[0];for(let e=1,t=r.length;e<t;++e)this._+=arguments[e]+r[e]}function UI(r){let e=Math.floor(r);if(!(e>=0))throw new Error(`invalid digits: ${r}`);if(e>15)return hB;let t=10**e;return function(i){this._+=i[0];for(let s=1,a=i.length;s<a;++s)this._+=Math.round(arguments[s]*t)/t+i[s]}}var Vo=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=e==null?hB:UI(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,i,s){this._append`Q${+e},${+t},${this._x1=+i},${this._y1=+s}`}bezierCurveTo(e,t,i,s,a,n){this._append`C${+e},${+t},${+i},${+s},${this._x1=+a},${this._y1=+n}`}arcTo(e,t,i,s,a){if(e=+e,t=+t,i=+i,s=+s,a=+a,a<0)throw new Error(`negative radius: ${a}`);let n=this._x1,o=this._y1,A=i-e,l=s-t,h=n-e,c=o-t,d=h*h+c*c;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>$o)if(!(Math.abs(c*A-l*h)>$o)||!a)this._append`L${this._x1=e},${this._y1=t}`;else{let u=i-n,f=s-o,m=A*A+l*l,g=u*u+f*f,v=Math.sqrt(m),B=Math.sqrt(d),w=a*Math.tan((Rp-Math.acos((m+d-g)/(2*v*B)))/2),_=w/B,L=w/v;Math.abs(_-1)>$o&&this._append`L${e+_*h},${t+_*c}`,this._append`A${a},${a},0,0,${+(c*u>h*f)},${this._x1=e+L*A},${this._y1=t+L*l}`}}arc(e,t,i,s,a,n){if(e=+e,t=+t,i=+i,n=!!n,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(s),A=i*Math.sin(s),l=e+o,h=t+A,c=1^n,d=n?s-a:a-s;this._x1===null?this._append`M${l},${h}`:(Math.abs(this._x1-l)>$o||Math.abs(this._y1-h)>$o)&&this._append`L${l},${h}`,i&&(d<0&&(d=d%Mp+Mp),d>kI?this._append`A${i},${i},0,1,${c},${e-o},${t-A}A${i},${i},0,1,${c},${this._x1=l},${this._y1=h}`:d>$o&&this._append`A${i},${i},0,${+(d>=Rp)},${c},${this._x1=e+i*Math.cos(a)},${this._y1=t+i*Math.sin(a)}`)}rect(e,t,i,s){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${i=+i}v${+s}h${-i}Z`}toString(){return this._}};function dB(){return new Vo}dB.prototype=Vo.prototype;function MA(r){let e=3;return r.digits=function(t){if(!arguments.length)return e;if(t==null)e=null;else{let i=Math.floor(t);if(!(i>=0))throw new RangeError(`invalid digits: ${t}`);e=i}return r},()=>new Vo(e)}function QI(r){return r.innerRadius}function EI(r){return r.outerRadius}function RI(r){return r.startAngle}function MI(r){return r.endAngle}function PI(r){return r&&r.padAngle}function OI(r,e,t,i,s,a,n,o){var A=t-r,l=i-e,h=n-s,c=o-a,d=c*A-h*l;if(!(d*d<Es))return d=(h*(e-a)-c*(r-s))/d,[r+d*A,e+d*l]}function Id(r,e,t,i,s,a,n){var o=r-t,A=e-i,l=(n?a:-a)/No(o*o+A*A),h=l*A,c=-l*o,d=r+h,u=e+c,f=t+h,m=i+c,g=(d+f)/2,v=(u+m)/2,B=f-d,w=m-u,_=B*B+w*w,L=s-a,k=d*m-f*u,D=(w<0?-1:1)*No(AB(0,L*L*_-k*k)),E=(k*w-B*D)/_,O=(-k*B-w*D)/_,I=(k*w+B*D)/_,M=(-k*B+w*D)/_,S=E-g,P=O-v,Y=I-g,G=M-v;return S*S+P*P>Y*Y+G*G&&(E=I,O=M),{cx:E,cy:O,x01:-h,y01:-c,x11:E*(s/L-1),y11:O*(s/L-1)}}function jr(){var r=QI,e=EI,t=Kt(0),i=null,s=RI,a=MI,n=PI,o=null,A=MA(l);function l(){var h,c,d=+r.apply(this,arguments),u=+e.apply(this,arguments),f=s.apply(this,arguments)-lc,m=a.apply(this,arguments)-lc,g=Qp(m-f),v=m>f;if(o||(o=h=A()),u<d&&(c=u,u=d,d=c),!(u>Es))o.moveTo(0,0);else if(g>lB-Es)o.moveTo(u*$n(f),u*zr(f)),o.arc(0,0,u,f,m,!v),d>Es&&(o.moveTo(d*$n(m),d*zr(m)),o.arc(0,0,d,m,f,v));else{var B=f,w=m,_=f,L=m,k=g,D=g,E=n.apply(this,arguments)/2,O=E>Es&&(i?+i.apply(this,arguments):No(d*d+u*u)),I=Td(Qp(u-d)/2,+t.apply(this,arguments)),M=I,S=I,P,Y;if(O>Es){var G=Ep(O/d*zr(E)),ie=Ep(O/u*zr(E));(k-=G*2)>Es?(G*=v?1:-1,_+=G,L-=G):(k=0,_=L=(f+m)/2),(D-=ie*2)>Es?(ie*=v?1:-1,B+=ie,w-=ie):(D=0,B=w=(f+m)/2)}var J=u*$n(B),ne=u*zr(B),z=d*$n(L),K=d*zr(L);if(I>Es){var ge=u*$n(w),he=u*zr(w),re=d*$n(_),Me=d*zr(_),Ne;if(g<RA)if(Ne=OI(J,ne,re,Me,ge,he,z,K)){var Ee=J-Ne[0],Ge=ne-Ne[1],yt=ge-Ne[0],Xe=he-Ne[1],Mi=1/zr(cB((Ee*yt+Ge*Xe)/(No(Ee*Ee+Ge*Ge)*No(yt*yt+Xe*Xe)))/2),oi=No(Ne[0]*Ne[0]+Ne[1]*Ne[1]);M=Td(I,(d-oi)/(Mi-1)),S=Td(I,(u-oi)/(Mi+1))}else M=S=0}D>Es?S>Es?(P=Id(re,Me,J,ne,u,S,v),Y=Id(ge,he,z,K,u,S,v),o.moveTo(P.cx+P.x01,P.cy+P.y01),S<I?o.arc(P.cx,P.cy,S,fs(P.y01,P.x01),fs(Y.y01,Y.x01),!v):(o.arc(P.cx,P.cy,S,fs(P.y01,P.x01),fs(P.y11,P.x11),!v),o.arc(0,0,u,fs(P.cy+P.y11,P.cx+P.x11),fs(Y.cy+Y.y11,Y.cx+Y.x11),!v),o.arc(Y.cx,Y.cy,S,fs(Y.y11,Y.x11),fs(Y.y01,Y.x01),!v))):(o.moveTo(J,ne),o.arc(0,0,u,B,w,!v)):o.moveTo(J,ne),!(d>Es)||!(k>Es)?o.lineTo(z,K):M>Es?(P=Id(z,K,ge,he,d,-M,v),Y=Id(J,ne,re,Me,d,-M,v),o.lineTo(P.cx+P.x01,P.cy+P.y01),M<I?o.arc(P.cx,P.cy,M,fs(P.y01,P.x01),fs(Y.y01,Y.x01),!v):(o.arc(P.cx,P.cy,M,fs(P.y01,P.x01),fs(P.y11,P.x11),!v),o.arc(0,0,d,fs(P.cy+P.y11,P.cx+P.x11),fs(Y.cy+Y.y11,Y.cx+Y.x11),v),o.arc(Y.cx,Y.cy,M,fs(Y.y11,Y.x11),fs(Y.y01,Y.x01),!v))):o.arc(0,0,d,L,_,v)}if(o.closePath(),h)return o=null,h+""||null}return l.centroid=function(){var h=(+r.apply(this,arguments)+ +e.apply(this,arguments))/2,c=(+s.apply(this,arguments)+ +a.apply(this,arguments))/2-RA/2;return[$n(c)*h,zr(c)*h]},l.innerRadius=function(h){return arguments.length?(r=typeof h=="function"?h:Kt(+h),l):r},l.outerRadius=function(h){return arguments.length?(e=typeof h=="function"?h:Kt(+h),l):e},l.cornerRadius=function(h){return arguments.length?(t=typeof h=="function"?h:Kt(+h),l):t},l.padRadius=function(h){return arguments.length?(i=h==null?null:typeof h=="function"?h:Kt(+h),l):i},l.startAngle=function(h){return arguments.length?(s=typeof h=="function"?h:Kt(+h),l):s},l.endAngle=function(h){return arguments.length?(a=typeof h=="function"?h:Kt(+h),l):a},l.padAngle=function(h){return arguments.length?(n=typeof h=="function"?h:Kt(+h),l):n},l.context=function(h){return arguments.length?(o=h??null,l):o},l}var rX=Array.prototype.slice;function Dd(r){return typeof r=="object"&&"length"in r?r:Array.from(r)}function uB(r){this._context=r}uB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:this._context.lineTo(r,e);break}}};function Xo(r){return new uB(r)}function kd(r){return r[0]}function Ud(r){return r[1]}function cc(r,e){var t=Kt(!0),i=null,s=Xo,a=null,n=MA(o);r=typeof r=="function"?r:r===void 0?kd:Kt(r),e=typeof e=="function"?e:e===void 0?Ud:Kt(e);function o(A){var l,h=(A=Dd(A)).length,c,d=!1,u;for(i==null&&(a=s(u=n())),l=0;l<=h;++l)!(l<h&&t(c=A[l],l,A))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+r(c,l,A),+e(c,l,A));if(u)return a=null,u+""||null}return o.x=function(A){return arguments.length?(r=typeof A=="function"?A:Kt(+A),o):r},o.y=function(A){return arguments.length?(e=typeof A=="function"?A:Kt(+A),o):e},o.defined=function(A){return arguments.length?(t=typeof A=="function"?A:Kt(!!A),o):t},o.curve=function(A){return arguments.length?(s=A,i!=null&&(a=s(i)),o):s},o.context=function(A){return arguments.length?(A==null?i=a=null:a=s(i=A),o):i},o}function Pp(r,e,t){var i=null,s=Kt(!0),a=null,n=Xo,o=null,A=MA(l);r=typeof r=="function"?r:r===void 0?kd:Kt(+r),e=typeof e=="function"?e:e===void 0?Kt(0):Kt(+e),t=typeof t=="function"?t:t===void 0?Ud:Kt(+t);function l(c){var d,u,f,m=(c=Dd(c)).length,g,v=!1,B,w=new Array(m),_=new Array(m);for(a==null&&(o=n(B=A())),d=0;d<=m;++d){if(!(d<m&&s(g=c[d],d,c))===v)if(v=!v)u=d,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),f=d-1;f>=u;--f)o.point(w[f],_[f]);o.lineEnd(),o.areaEnd()}v&&(w[d]=+r(g,d,c),_[d]=+e(g,d,c),o.point(i?+i(g,d,c):w[d],t?+t(g,d,c):_[d]))}if(B)return o=null,B+""||null}function h(){return cc().defined(s).curve(n).context(a)}return l.x=function(c){return arguments.length?(r=typeof c=="function"?c:Kt(+c),i=null,l):r},l.x0=function(c){return arguments.length?(r=typeof c=="function"?c:Kt(+c),l):r},l.x1=function(c){return arguments.length?(i=c==null?null:typeof c=="function"?c:Kt(+c),l):i},l.y=function(c){return arguments.length?(e=typeof c=="function"?c:Kt(+c),t=null,l):e},l.y0=function(c){return arguments.length?(e=typeof c=="function"?c:Kt(+c),l):e},l.y1=function(c){return arguments.length?(t=c==null?null:typeof c=="function"?c:Kt(+c),l):t},l.lineX0=l.lineY0=function(){return h().x(r).y(e)},l.lineY1=function(){return h().x(r).y(t)},l.lineX1=function(){return h().x(i).y(e)},l.defined=function(c){return arguments.length?(s=typeof c=="function"?c:Kt(!!c),l):s},l.curve=function(c){return arguments.length?(n=c,a!=null&&(o=n(a)),l):n},l.context=function(c){return arguments.length?(c==null?a=o=null:o=n(a=c),l):a},l}var Qd=class{constructor(e,t){this._context=e,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,t){switch(e=+e,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,t,e,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,e,this._y0,e,t);break}}this._x0=e,this._y0=t}};function Op(r){return new Qd(r,!0)}function Hp(r){return new Qd(r,!1)}function Np(){}function fB(r,e,t){r._context.bezierCurveTo(r._x1+r._k*(r._x2-r._x0),r._y1+r._k*(r._y2-r._y0),r._x2+r._k*(r._x1-e),r._y2+r._k*(r._y1-t),r._x2,r._y2)}function gB(r,e){this._context=r,this._k=(1-e)/6}gB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:fB(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2,this._x1=r,this._y1=e;break;case 2:this._point=3;default:fB(this,r,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=r,this._y0=this._y1,this._y1=this._y2,this._y2=e}};var $p=(function r(e){function t(i){return new gB(i,e)}return t.tension=function(i){return r(+i)},t})(0);function pB(r){this._context=r}pB.prototype={areaStart:Np,areaEnd:Np,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(r,e){r=+r,e=+e,this._point?this._context.lineTo(r,e):(this._point=1,this._context.moveTo(r,e))}};function Vp(r){return new pB(r)}function mB(r,e){this._context=r,this._t=e}mB.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(r,e){switch(r=+r,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(r,e):this._context.moveTo(r,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(r,e);else{var t=this._x*(1-this._t)+r*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,e)}break}}this._x=r,this._y=e}};function Xp(r){return new mB(r,1)}var Ss=class extends Re{constructor(){super(...arguments),this.ix=0,this.iy=0,this._generator=jr()}_getTooltipPoint(){let e=this.get("tooltipX"),t=this.get("tooltipY"),i=0,s=0;j(e)&&(i=e),j(t)&&(s=t);let a=this.get("radius",0),n=this.get("innerRadius",0),o=this.get("dRadius",0),A=this.get("dInnerRadius",0);return a+=o,n+=A,n<0&&(n=a+n),e instanceof Oe&&(i=this.ix*(n+(a-n)*e.value)),t instanceof Oe&&(s=this.iy*(n+(a-n)*t.value)),this.get("arc")>=360&&n==0&&(i=0,s=0),{x:i,y:s}}_beforeChanged(){super._beforeChanged(),(this.isDirty("radius")||this.isDirty("arc")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("dRadius")||this.isDirty("dInnerRadius")||this.isDirty("cornerRadius")||this.isDirty("shiftRadius"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){let e=this.get("startAngle",0),t=this.get("arc",0),i=this._generator;t<0&&(e=e+t,t=t*-1),t>.1&&i.cornerRadius(this.get("cornerRadius",0)),i.context(this._display);let s=this.get("radius",0),a=this.get("innerRadius",0),n=this.get("dRadius",0),o=this.get("dInnerRadius",0);s+=n,a+=o,a<0&&(a=s+a),i({innerRadius:a,outerRadius:s,startAngle:(e+90)*ai,endAngle:(e+t+90)*ai});let A=e+t/2;this.ix=Bt(A),this.iy=mt(A);let l=this.get("shiftRadius",0);this.setRaw("dx",this.ix*l),this.setRaw("dy",this.iy*l),this.markDirtyPosition()}}};Ss.className="Slice";Ss.classNames=Re.classNames.concat([Ss.className]);var Vn=class extends ve{constructor(){super(...arguments),this.chartContainer=this.children.push(ve.new(this._root,{width:Ae,height:Ae,interactiveChildren:!1})),this.bulletsContainer=ve.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:Ae,height:Ae})}};Vn.className="Chart";Vn.classNames=ve.classNames.concat([Vn.className]);var zi=class extends Vn{constructor(){super(...arguments),this.seriesContainer=ve.new(this._root,{width:Ae,height:Ae,isMeasured:!1}),this.series=new Rn}_afterNew(){super._afterNew(),this._disposers.push(this.series);let e=this.seriesContainer.children;this._disposers.push(this.series.events.onAll(t=>{if(t.type==="clear"){W(t.oldValues,a=>{this._removeSeries(a)});let i=this.get("colors");i&&i.reset();let s=this.get("patterns");s&&s.reset()}else if(t.type==="push")e.moveValue(t.newValue),this._processSeries(t.newValue);else if(t.type==="setIndex")e.setIndex(t.index,t.newValue),this._processSeries(t.newValue);else if(t.type==="insertIndex")e.insertIndex(t.index,t.newValue),this._processSeries(t.newValue);else if(t.type==="removeIndex")this._removeSeries(t.oldValue);else if(t.type==="moveIndex")e.moveValue(t.value,t.newIndex),this._processSeries(t.value);else if(t.type==="swap"){let i=t.a,s=t.b,a=this.series.indexOf(i),n=this.series.indexOf(s);e.moveValue(i,n),e.moveValue(s,a),this.series.each(o=>{this._processSeries(o),o.markDirtyValues()})}else throw new Error("Unknown IListEvent type")}))}_processSeries(e){e.chart=this,e._placeBulletsContainer(this)}_removeSeries(e){e._handleRemoved(),e.isDisposed()||(this.seriesContainer.children.removeValue(e),e._removeBulletsContainer())}};zi.className="SerialChart";zi.classNames=Vn.classNames.concat([zi.className]);var Ta=class extends Nn{};Ta.className="Tick";Ta.classNames=Nn.classNames.concat([Ta.className]);var ln=class extends Zs{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();let e=this.get("width",100),t=this.get("height",100),i=this.get("gap",0),s=this.get("strokeWidth",1);if(!i)this._display.moveTo(0,0),this._display.lineTo(e,0);else{let o=i+s,A=t/o,l=this.get("angle",0)*Math.PI/180;if(l===0)for(let h=-A;h<A*2;h++){let c=Math.round(h*o-o/2)+.5;this._display.moveTo(-e,c),this._display.lineTo(e*2,c)}else{let h=Math.cos(l),c=Math.sin(l),d=Math.sqrt(e*e+t*t)*2,u=o/Math.max(Math.abs(h),Math.abs(c)),f=Math.ceil(d/u)*2;for(let m=-f;m<f;m++){let g=m*o,v=g*c-d*h,B=g*h+d*c,w=g*c+d*h,_=g*h-d*c;this._display.moveTo(v,B),this._display.lineTo(w,_)}}}this._display.lineStyle(s,this.get("color"),this.get("colorOpacity"));let a=this.get("strokeDasharray");j(a)&&(a<.5?a=[0]:a=[a]),this._display.setLineDash(a);let n=this.get("strokeDashoffset");n&&this._display.setLineDashOffset(n),this._display.endStroke()}};ln.className="LinePattern";ln.classNames=Zs.classNames.concat([ln.className]);var Xn=class extends Zs{_beforeChanged(){super._beforeChanged(),this.isDirty("gap")&&(this._clear=!0)}_draw(){super._draw();let e=this.get("checkered",!1),t=this.get("centered",!0),i=this.get("gap",0),s=this.get("rotation",0),a=this.get("width",100),n=this.get("height",100),o=this.get("maxWidth",5),A=this.get("maxHeight",5),l=this._display,h=o+i,c=A+i,d=Math.round(a/h),u=Math.round(n/c);h=a/d,c=n/u,s!=0&&(l.x=h/2*Bt(s),l.y=-c/2*mt(s));for(let g=s==0?0:-u*2;g<u*2;g++)for(let v=s==0?0:-d*2;v<d*2;v++)if(!e||(g&1)!=1&&(v&1)!=1||(g&1)==1&&(v&1)==1){let B=v*h,w=g*c;t&&(B+=(h-o)/2,w+=(c-A)/2),l.drawRect(B,w,o,A)}e?(a=a/2-i*2,n=n/2-i*2):(a-=i,n-=i);let f=this.get("color"),m=this.get("colorOpacity");(f||m)&&(l.beginFill(f,m),l.endFill())}};Xn.className="RectanglePattern";Xn.classNames=Zs.classNames.concat([Xn.className]);var Ia=class extends pt{_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);let e=this.getPrivate("currentPass"),t=this.get("colors",[this.get("baseColor",Ie.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",t.length);let i=this.getPrivate("numColors"),s=0,a=this.get("passOptions"),n=this.get("reuse");for(let o=s;o<i;o++)if(n)t.push(t[o]);else{let A=t[o].toHSL(),l=A.h+(a.hue||0)*e;for(;l>1;)l-=1;let h=A.s+(a.saturation||0)*e;h>1&&(h=1),h<0&&(h=0);let c=A.l+(a.lightness||0)*e;for(;c>1;)c-=1;t.push(Ie.fromHSL(l,h,c))}}getIndex(e){let t=this.get("colors",[]),i=this.get("saturation");return e>=t.length?(this.generateColors(),this.getIndex(e)):i!=null?Ie.saturate(t[e],i):t[e]}next(){let e=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",e+this.get("step",1)),this.getIndex(e)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}};Ia.className="ColorSet";Ia.classNames=pt.classNames.concat([Ia.className]);var Ed=class extends Js{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:Ia.new(this._root,{}),width:Ae,height:Ae}),t("PieChart").setAll({radius:Ve(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:Ce}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:Ce,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:Ce,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:Ce}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:Ce,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:Ce,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:Ce}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:Ce,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:Ce,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),we(i,"fill",e,"alternativeBackground")}}};var Kn=class extends zi{_afterNew(){this._defaultThemes.push(Ed.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};Kn.className="PercentChart";Kn.classNames=zi.classNames.concat([Kn.className]);var Gn=class extends _i{constructor(){super(...arguments),this.slicesContainer=this.children.push(ve.new(this._root,{position:"absolute",isMeasured:!1})),this.labelsContainer=this.children.push(ve.new(this._root,{position:"absolute",isMeasured:!1})),this.ticksContainer=this.children.push(ve.new(this._root,{position:"absolute",isMeasured:!1})),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;W(this._dataItems,n=>{let o=n.get("valueWorking",0);e+=o,t+=Math.abs(o)}),W(this._dataItems,n=>{let o=n.get("valueWorking",0);o>i&&(i=o),o<s&&(s=o),a++;let A=o/t;t==0&&(A=0),n.setRaw("valuePercentTotal",A*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return Ze(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return Ze(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&W(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&W(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),W(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];j(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),n=e.get("value"),o=e.animate({key:"valueWorking",to:n,duration:t,easing:a});o&&s.push(o.waitForStop());let A=e.get("tick");A&&s.push(A.show(t));let l=e.get("label");l&&s.push(l.show(t));let h=e.get("slice");h&&s.push(h.show(t)),h.get("active")&&h.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});j(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let n=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),o=e.animate({key:"valueWorking",to:0,duration:t,easing:n});o&&s.push(o.waitForStop());let A=e.get("tick");A&&s.push(A.hide(t));let l=e.get("label");l&&s.push(l.hide(t));let h=e.get("slice");h.hideTooltip(),h&&s.push(h.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");W(tc,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),W(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),W(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),W(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label.set("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),W(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label.set("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};Gn.className="PercentSeries";Gn.classNames=_i.classNames.concat([Gn.className]);var is=class extends Kn{constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:Ce,y:Ce})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),n=this.get("innerRadius"),o=Mn(0,0,s,a,1),A=t/(o.right-o.left),l=i/(o.bottom-o.top),h={left:0,right:0,top:0,bottom:0};if(n instanceof Oe){let u=n.value,f=Math.min(A,l);u=Math.max(f*u,f-Math.min(i,t))/f,h=Mn(0,0,s,a,u),this.setPrivateRaw("irModifyer",u/n.value)}o=cd([o,h]);let c=this._maxRadius;this._maxRadius=Math.min(A,l);let d=tt(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-d*(o.bottom+o.top)/2,dx:-d*(o.right+o.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||c!=this._maxRadius)&&this.series.each(u=>{u._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(u=>{u._markDirtyKey("innerRadius")})}radius(e){let t=tt(this.get("radius",0),this._maxRadius),i=tt(this.get("innerRadius",0),t);if(e){let s=this.series.indexOf(e),a=this.series.length,n=e.get("radius");return n!=null?i+tt(n,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=tt(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,n=e.get("innerRadius");return n!=null?i+tt(n,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};is.className="PieChart";is.classNames=Kn.classNames.concat([is.className]);var bi=class extends Gn{_makeSlices(){return new wt(Ke.new({}),()=>Ss._new(this._root,{themeTags:Ue(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new wt(Ke.new({}),()=>Sa._new(this._root,{themeTags:Ue(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new wt(Ke.new({}),()=>Ta._new(this._root,{themeTags:Ue(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t.set("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t.set("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),s=this.get("endAngle",e.get("endAngle",270))-t,a=t,n=e.radius(this);this.setPrivateRaw("radius",n);let o=e.innerRadius(this)*e.getPrivate("irModifyer",1);o<0&&(o=n+o),W(this._dataItems,A=>{this.updateLegendValue(A);let l=s*A.get("valuePercentTotal")/100,h=A.get("slice");if(h){h.set("radius",n),h.set("innerRadius",o),h.set("startAngle",a),h.set("arc",l);let u=A.get("fill");h._setDefault("fill",u),h._setDefault("stroke",u);let f=A.get("fillPattern");h._setDefault("fillPattern",f)}let c=_s(a+l/2),d=A.get("label");if(d&&(d.setPrivate("radius",n),d.setPrivate("innerRadius",o),d.set("labelAngle",c),d.get("textType")=="aligned")){let u=n+d.get("radius",0),f=n*mt(c);c>90&&c<=270?(!d.isHidden()&&!d.isHiding()&&this._lLabels.push({label:d,y:f}),u*=-1,u-=this.labelsContainer.get("paddingLeft",0),d.set("centerX",Ae),d.setPrivateRaw("left",!0)):(!d.isHidden()&&!d.isHiding()&&this._rLabels.push({label:d,y:f}),u+=this.labelsContainer.get("paddingRight",0),d.set("centerX",0),d.setPrivateRaw("left",!1)),d.set("x",u),d.set("y",n*mt(c))}a+=l,this._updateTick(A)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let n=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,o=i.get("labelAngle",0),A=Bt(o),l=mt(o),h=this.labelsContainer,c=h.get("paddingLeft",0),d=h.get("paddingRight",0),u=0,f=0;u=i.x(),f=i.y();let m=[];if(u!=0||f!=0){if(i.get("textType")=="circular"){let v=i.radius()-i.get("paddingBottom",0),B=i.get("labelAngle",0);u=v*Bt(B),f=v*mt(B)}let g=-d;i.getPrivate("left")&&(g=c),m=[{x:s.x()+n*A,y:s.y()+n*l},{x:u+g,y:f},{x:u,y:f}]}t.set("points",m)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),n=s.get("radius",0),o=s.get("startAngle",0),A=s.get("arc",0),l=e.get("locationX",.5),h=e.get("locationY",.5),c=o+A*l,d=a+(n-a)*h;t.setAll({x:Bt(c)*d,y:mt(c)*d})}}}};bi.className="PieSeries";bi.classNames=Gn.classNames.concat([bi.className]);var Ko=class extends Ta{constructor(){super(...arguments),this._tickPoints=[]}};Ko.className="AxisTick";Ko.classNames=Ta.classNames.concat([Ko.className]);var Da=class extends Re{_beforeChanged(){super._beforeChanged(),(this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}};Da.className="Grid";Da.classNames=Re.classNames.concat([Da.className]);var Go=class extends at{constructor(){super(...arguments),this._tickPoints=[]}};Go.className="AxisLabel";Go.classNames=at.classNames.concat([Go.className]);var gs=class extends Re{constructor(){super(...arguments),this._axisLength=100,this._start=0,this._end=1,this._inversed=!1,this._minSize=0,this._lc=1,this._ls=0,this.ticks=this.addDisposer(new wt(Ke.new({}),()=>Ko._new(this._root,{themeTags:Ue(this.ticks.template.get("themeTags",[]),this.get("themeTags",[]))},[this.ticks.template]))),this.grid=this.addDisposer(new wt(Ke.new({}),()=>Da._new(this._root,{themeTags:Ue(this.grid.template.get("themeTags",[]),this.get("themeTags",[]))},[this.grid.template]))),this.axisFills=this.addDisposer(new wt(Ke.new({}),()=>Re._new(this._root,{themeTags:Ue(this.axisFills.template.get("themeTags",["axis","fill"]),this.get("themeTags",[]))},[this.axisFills.template]))),this.labels=this.addDisposer(new wt(Ke.new({}),()=>Go._new(this._root,{themeTags:Ue(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}makeTick(e,t){let i=this.ticks.make();return i._setDataItem(e),e.setRaw("tick",i),i.set("themeTags",Ue(i.get("themeTags"),t)),this.axis.labelsContainer.children.push(i),this.ticks.push(i),i}makeGrid(e,t){let i=this.grid.make();return i._setDataItem(e),e.setRaw("grid",i),i.set("themeTags",Ue(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),this.grid.push(i),i}makeAxisFill(e,t){let i=this.axisFills.make();return i._setDataItem(e),i.set("themeTags",Ue(i.get("themeTags"),t)),this.axis.gridContainer.children.push(i),e.setRaw("axisFill",i),this.axisFills.push(i),i}makeLabel(e,t){let i=this.labels.make();return i.set("themeTags",Ue(i.get("themeTags"),t)),e.get("isRange")?this.axis.labelsContainer.children.push(i):this.axis.labelsContainer.children.moveValue(i,0),i._setDataItem(e),e.setRaw("label",i),this.labels.push(i),i}axisLength(){return 0}gridCount(){return this.axisLength()/this.get("minGridDistance",50)}_updatePositions(){}_afterNew(){super._afterNew(),this.set("isMeasured",!1);let e=this.thumb;e&&(this._disposers.push(e.events.on("pointerdown",t=>{this._handleThumbDown(t)})),this._disposers.push(e.events.on("globalpointerup",t=>{this._handleThumbUp(t)})),this._disposers.push(e.events.on("globalpointermove",t=>{this._handleThumbMove(t)})))}_beforeChanged(){super._beforeChanged(),this.isDirty("minGridDistance")&&this.root.events.once("frameended",()=>{this.axis.markDirtySize()})}_changed(){if(super._changed(),this.isDirty("pan")){let e=this.thumb;if(e){let t=this.axis.labelsContainer,i=this.get("pan");i=="zoom"?t.children.push(e):i=="none"&&t.children.removeValue(e)}}}_handleThumbDown(e){this._thumbDownPoint=this.toLocal(e.point);let t=this.axis;this._downStart=t.get("start"),this._downEnd=t.get("end")}_handleThumbUp(e){this._thumbDownPoint=void 0}_handleThumbMove(e){let t=this._thumbDownPoint;if(t){let i=this.toLocal(e.point),s=this._downStart,a=this._downEnd,n=this._getPan(i,t)*Math.min(1,a-s)/2*this.get("panSensitivity",1);this.axis.zoom(s-n,a+n,0)}}_getPan(e,t){return 0}positionToCoordinate(e){return this._inversed?(this._end-e)*this._axisLength:(e-this._start)*this._axisLength}updateTooltipBounds(e){}_updateSize(){this.markDirty(),this._clear=!0}toAxisPosition(e){let t=this._start||0,i=this._end||1;return e=e*(i-t),this.get("inversed")?e=i-e:e=t+e,e}toGlobalPosition(e){let t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e=e-t,e=e/(i-t),e}fixPosition(e){return this.get("inversed")?1-e:e}_updateLC(){}toggleVisibility(e,t,i,s){let a=this.axis,n=a.get("start",0),o=a.get("end",1),A=n+(o-n)*(i-1e-4),l=n+(o-n)*(s+1e-4);t<A||t>l?e.setPrivate("visible",!1):e.setPrivate("visible",!0)}_positionTooltip(e,t){let i=this.chart;i&&(e.set("pointTo",this._display.toGlobal(t)),i.inPlot(t)||e.hide())}processAxis(){}};gs.className="AxisRenderer";gs.classNames=Re.classNames.concat([gs.className]);var cn=class extends Sa{constructor(){super(...arguments),this._tickPoints=[]}};cn.className="AxisLabelRadial";cn.classNames=Sa.classNames.concat([cn.className]);var ss=class extends gs{constructor(){super(...arguments),this.labels=this.addDisposer(new wt(Ke.new({}),()=>cn._new(this._root,{themeTags:Ue(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template]))),this.axisFills=this.addDisposer(new wt(Ke.new({}),()=>Ss._new(this._root,{themeTags:Ue(this.axisFills.template.get("themeTags",["fill"]),this.get("themeTags",[]))},[this.axisFills.template]))),this._fillGenerator=jr()}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["renderer","circular"]),super._afterNew(),this.setPrivateRaw("letter","X"),this.setRaw("position","absolute")}_changed(){super._changed(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle"))&&this.updateLayout()}processAxis(){super.processAxis(),this.axis.labelsContainer.set("isMeasured",!1)}updateLayout(){let e=this.chart;if(e){let t=e.getPrivate("radius",0),i=tt(this.get("radius",Ae),t);i<0&&(i=t+i),this.setPrivate("radius",i);let s=tt(this.get("innerRadius",e.getPrivate("innerRadius",0)),t)*e.getPrivate("irModifyer",1);s<0&&(s=i+s),this.setPrivate("innerRadius",s);let a=this.get("startAngle",e.get("startAngle",-90)),n=this.get("endAngle",e.get("endAngle",270));this.setPrivate("startAngle",a),this.setPrivate("endAngle",n),this.set("draw",o=>{let A=this.positionToPoint(0);o.moveTo(A.x,A.y),a>n&&([a,n]=[n,a]),o.arc(0,0,i,a*ai,n*ai)}),this.axis.markDirtySize()}}updateGrid(e,t,i){if(e){t==null&&(t=0);let s=e.get("location",.5);i!=null&&i!=t&&(t=t+(i-t)*s);let a=this.getPrivate("radius",0),n=this.getPrivate("innerRadius",0),o=this.positionToAngle(t);this.toggleVisibility(e,t,0,1),a!=null&&e.set("draw",A=>{A.moveTo(n*Bt(o),n*mt(o)),A.lineTo(a*Bt(o),a*mt(o))})}}positionToAngle(e){let t=this.axis,i=this.getPrivate("startAngle",0),s=this.getPrivate("endAngle",360),a=t.get("start",0),n=t.get("end",1),o=(s-i)/(n-a),A;return this.get("inversed")?A=i+(n-e)*o:A=i+(e-a)*o,A}_handleOpposite(){}positionToPoint(e){let t=this.getPrivate("radius",0),i=this.positionToAngle(e);return{x:t*Bt(i),y:t*mt(i)}}updateLabel(e,t,i,s){if(e){t==null&&(t=0);let a=.5;s!=null&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),i!=null&&i!=t&&(t=t+(i-t)*a);let n=this.getPrivate("radius",0),o=this.getPrivate("innerRadius",0),A=this.positionToAngle(t);e.setPrivate("radius",n),e.setPrivate("innerRadius",o),e.set("labelAngle",A),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}fillDrawMethod(e,t,i){e.set("draw",s=>{t==null&&(t=this.getPrivate("startAngle",0)),i==null&&(i=this.getPrivate("endAngle",0));let a=this.getPrivate("innerRadius",0),n=this.getPrivate("radius",0);this._fillGenerator.context(s),this._fillGenerator({innerRadius:a,outerRadius:n,startAngle:(t+90)*ai,endAngle:(i+90)*ai})})}updateTick(e,t,i,s){if(e){t==null&&(t=0);let a=.5;s!=null&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),i!=null&&i!=t&&(t=t+(i-t)*a);let n=e.get("length",0);e.get("inside")&&(n*=-1);let A=this.getPrivate("radius",0),l=this.positionToAngle(t);this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1)),A!=null&&e.set("draw",h=>{h.moveTo(A*Bt(l),A*mt(l)),A+=n,h.lineTo(A*Bt(l),A*mt(l))})}}updateBullet(e,t,i){if(e){let s=e.get("sprite");if(s){t==null&&(t=0);let a=e.get("location",.5);i!=null&&i!=t&&(t=t+(i-t)*a);let n=this.getPrivate("radius",0),o=this.positionToAngle(t);this.toggleVisibility(s,t,0,1),s.setAll({rotation:o,x:n*Bt(o),y:n*mt(o)})}}}updateFill(e,t,i){if(e){t==null&&(t=0),i==null&&(i=1);let s=this.fitAngle(this.positionToAngle(t)),a=this.fitAngle(this.positionToAngle(i));e.setAll({startAngle:s,arc:a-s}),e._setSoft("innerRadius",this.getPrivate("innerRadius")),e._setSoft("radius",this.getPrivate("radius"))}}fitAngle(e){let t=this.getPrivate("startAngle",0),i=this.getPrivate("endAngle",0),s=Math.min(t,i),a=Math.max(t,i);return e<s&&(e=s),e>a&&(e=a),e}axisLength(){return Math.abs(this.getPrivate("radius",0)*Math.PI*2*(this.getPrivate("endAngle",360)-this.getPrivate("startAngle",0))/360)}positionTooltip(e,t){let i=this.getPrivate("radius",0),s=this.positionToAngle(t);this._positionTooltip(e,{x:i*Bt(s),y:i*mt(s)})}updateTooltipBounds(e){}};ss.className="AxisRendererCircular";ss.classNames=gs.classNames.concat([ss.className]);var Wn=class extends gs{constructor(){super(...arguments),this._fillGenerator=jr(),this.labels=this.addDisposer(new wt(Ke.new({}),()=>cn._new(this._root,{themeTags:Ue(this.labels.template.get("themeTags",[]),this.get("themeTags",[]))},[this.labels.template])))}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["renderer","radial"]),super._afterNew(),this.setPrivate("letter","Y"),this.setRaw("position","absolute")}_changed(){super._changed(),(this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle"))&&this.updateLayout()}processAxis(){super.processAxis()}updateLayout(){let e=this.chart;if(e){let t=e.getPrivate("radius",0),i=tt(this.get("radius",Ae),t),s=tt(this.get("innerRadius",e.getPrivate("innerRadius",0)),t)*e.getPrivate("irModifyer",1);s<0&&(s=i+s),this.setPrivate("radius",i),this.setPrivate("innerRadius",s);let a=this.get("startAngle",e.get("startAngle",-90)),n=this.get("endAngle",e.get("endAngle",270));this.setPrivate("startAngle",a),this.setPrivate("endAngle",n);let o=this.get("axisAngle",0);this.set("draw",A=>{A.moveTo(s*Bt(o),s*mt(o)),A.lineTo(i*Bt(o),i*mt(o))}),this.axis.markDirtySize()}}updateGrid(e,t,i){if(e){j(t)||(t=0);let s=e.get("location",.5);j(i)&&i!=t&&(t=t+(i-t)*s);let a=this.positionToCoordinate(t)+this.getPrivate("innerRadius",0);this.toggleVisibility(e,t,0,1),j(a)&&e.set("draw",n=>{let o=this.getPrivate("startAngle",0)*ai,A=this.getPrivate("endAngle",0)*ai;n.arc(0,0,Math.max(0,a),Math.min(o,A),Math.max(o,A))})}}_handleOpposite(){}positionToPoint(e){let t=this.getPrivate("innerRadius",0),i=this.positionToCoordinate(e)+t,s=this.get("axisAngle",0);return{x:i*Bt(s),y:i*mt(s)}}updateLabel(e,t,i,s){if(e){j(t)||(t=0);let a=.5;j(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),j(i)&&i!=t&&(t=t+(i-t)*a);let n=this.positionToPoint(t),o=Math.hypot(n.x,n.y);e.setPrivate("radius",o),e.setPrivate("innerRadius",o),e.set("labelAngle",this.get("axisAngle")),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}fillDrawMethod(e,t,i){e.set("draw",s=>{t=Math.max(0,t),i=Math.max(0,i),this._fillGenerator.context(s);let a=(this.getPrivate("startAngle",0)+90)*ai,n=(this.getPrivate("endAngle",0)+90)*ai;n<a&&([a,n]=[n,a]),this._fillGenerator({innerRadius:t,outerRadius:i,startAngle:a,endAngle:n})})}updateTick(e,t,i,s){if(e){j(t)||(t=0);let a=.5;j(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),j(i)&&i!=t&&(t=t+(i-t)*a);let n=this.positionToPoint(t);e.set("x",n.x),e.set("y",n.y);let o=e.get("length",0);e.get("inside")&&(o*=-1);let l=this.get("axisAngle",0)+90;e.set("draw",h=>{h.moveTo(0,0),h.lineTo(o*Bt(l),o*mt(l))}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateBullet(e,t,i){if(e){let s=e.get("sprite");if(s){j(t)||(t=0);let a=e.get("location",.5);j(i)&&i!=t&&(t=t+(i-t)*a);let n=this.positionToPoint(t);s.setAll({x:n.x,y:n.y}),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){j(t)||(t=0),j(i)||(i=1);let s=this.getPrivate("innerRadius",0),a=this.positionToCoordinate(t)+s,n=this.positionToCoordinate(i)+s;this.fillDrawMethod(e,a,n)}}axisLength(){return this.getPrivate("radius",0)-this.getPrivate("innerRadius",0)}updateTooltipBounds(e){}positionToCoordinate(e){return this._inversed?(e=Math.min(this._end,e),(this._end-e)*this._axisLength):(e=Math.max(this._start,e),(e-this._start)*this._axisLength)}positionTooltip(e,t){let i=this.getPrivate("innerRadius",0)+this.positionToCoordinate(t),s=this.get("axisAngle",0);this._positionTooltip(e,{x:i*Bt(s),y:i*mt(s)})}};Wn.className="AxisRendererRadial";Wn.classNames=gs.classNames.concat([Wn.className]);var ka=class extends ve{constructor(){super(...arguments),this.hand=this.children.push(Re.new(this._root,{themeTags:["hand"]})),this.pin=this.children.push(Re.new(this._root,{themeTags:["pin"]}))}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["clock"]),super._afterNew(),this.set("width",Ve(1)),this.adapters.add("x",()=>0),this.adapters.add("y",()=>0),this.pin.set("draw",(e,t)=>{let i=t.parent;if(i){let s=i.dataItem;if(s){let a=s.component;if(a){let n=a.chart;if(n){let o=n.getPrivate("radius",0),A=tt(i.get("pinRadius",0),o);A<0&&(A=o+A),e.moveTo(A,0),e.arc(0,0,A,0,360)}}}}}),this.hand.set("draw",(e,t)=>{let i=t.parent;if(i){let s=i.parent;s&&s.set("width",Ve(1));let a=i.dataItem;if(a){let n=a.component;if(n){let o=n.chart;if(o){let A=i.get("bottomWidth",10)/2,l=i.get("topWidth",0)/2,h=o.getPrivate("radius",0),c=tt(i.get("radius",0),h);c<0&&(c=h+c);let d=i.get("innerRadius",0);d instanceof Oe?d=tt(d,h):d<0&&d<0&&(d=c+d),e.moveTo(d,-A),e.lineTo(c,-l),e.lineTo(c,l),e.lineTo(d,A),e.lineTo(d,-A)}}}}})}_prepareChildren(){super._prepareChildren(),this.hand._markDirtyKey("fill"),this.pin._markDirtyKey("fill")}};ka.className="ClockHand";ka.classNames=ve.classNames.concat([ka.className]);var Rd=class extends Js{setupDefaultRules(){super.setupDefaultRules();let e=this.rule.bind(this),t=this._root.interfaceColors;e("RadarChart").setAll({radius:Ve(80),innerRadius:0,startAngle:-90,endAngle:270}),e("RadarColumnSeries").setAll({clustered:!0}),e("Slice",["radar","column","series"]).setAll({width:Ve(80),height:Ve(80)}),e("RadarLineSeries").setAll({connectEnds:!0}),e("SmoothedRadarLineSeries").setAll({tension:.5}),e("AxisRendererRadial").setAll({minGridDistance:40,axisAngle:-90,inversed:!1,cellStartLocation:0,cellEndLocation:1}),e("AxisRendererCircular").setAll({minGridDistance:100,inversed:!1,cellStartLocation:0,cellEndLocation:1}),e("RadialLabel",["circular"]).setAll({textType:"circular",paddingTop:1,paddingRight:0,paddingBottom:1,paddingLeft:0,centerX:0,centerY:0,radius:8}),e("AxisLabelRadial",["category"]).setAll({text:"{category}",populateText:!0}),e("RadialLabel",["radial"]).setAll({textType:"regular",centerX:0,textAlign:"right"}),e("RadarChart",["gauge"]).setAll({startAngle:180,endAngle:360,innerRadius:Ve(90)}),e("ClockHand").setAll({topWidth:1,bottomWidth:10,radius:Ve(90),pinRadius:10});{let i=e("Graphics",["clock","hand"]);i.setAll({fillOpacity:1}),we(i,"fill",t,"alternativeBackground")}{let i=e("Graphics",["clock","pin"]);i.setAll({fillOpacity:1}),we(i,"fill",t,"alternativeBackground")}}};var Md=class extends Js{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this._root.language,i=this.rule.bind(this);i("XYChart").setAll({colors:Ia.new(this._root,{}),paddingLeft:20,paddingRight:20,paddingTop:16,paddingBottom:16,panX:!1,panY:!1,wheelStep:.25,arrangeTooltips:!0,pinchZoomX:!1,pinchZoomY:!1}),i("XYSeries").setAll({legendLabelText:"{name}"}),i("Rectangle",["plotbackground","xy","background"]).setAll({fill:Ie.fromHex(0),fillOpacity:0}),i("XYChart",["scrollbar","chart"]).setAll({paddingBottom:0,paddingLeft:0,paddingTop:0,paddingRight:0,colors:Ia.new(this._root,{saturation:0})});{let A=i("Graphics",["scrollbar","overlay"]);A.setAll({fillOpacity:.5}),we(A,"fill",e,"background")}i("RoundedRectangle",["xy","scrollbar","thumb"]).setAll({cornerRadiusTR:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusBL:0,fillOpacity:0,focusable:!0}),i("RoundedRectangle",["xy","scrollbar","thumb"]).states.create("hover",{fillOpacity:.4}),i("RoundedRectangle",["xy","scrollbar","chart","background"]).setAll({cornerRadiusTL:0,cornerRadiusBL:0,cornerRadiusTR:0,cornerRadiusBR:0}),i("RoundedRectangle",["xy","scrollbar","chart","background","resize","button"]).setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),i("AxisRendererX",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0}),i("AxisRendererY",["xy","chart","scrollbar"]).setAll({strokeOpacity:0,inside:!0,minGridDistance:5}),i("AxisLabel",["xy","scrollbar","x"]).setAll({opacity:.5,centerY:Ae,minPosition:.01,maxPosition:.99,fontSize:"0.8em"}),i("AxisLabel",["category"]).setAll({text:"{category}",populateText:!0}),i("AxisLabel",["x"]).setAll({centerY:0}),i("AxisLabel",["x","inside"]).setAll({centerY:Ae}),i("AxisLabel",["x","inside","opposite"]).setAll({centerY:0}),i("AxisLabel",["x","opposite"]).setAll({centerY:Ae}),i("AxisLabel",["y"]).setAll({centerX:Ae}),i("AxisLabel",["y","inside"]).setAll({centerX:0}),i("AxisLabel",["y","inside","opposite"]).setAll({centerX:Ae}),i("AxisLabel",["y","opposite"]).setAll({centerX:0}),i("AxisLabel",["minor"]).setAll({fontSize:"0.6em"}),i("AxisLabel",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","y"]).setAll({visible:!1}),i("Grid",["xy","scrollbar","x"]).setAll({opacity:.5}),i("XYCursor").setAll({behavior:"none",layer:30,exportable:!1,snapToSeriesBy:"xy",moveThreshold:1});{let A=i("Grid",["cursor","x"]);A.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use left and right arrows to move selection")}),we(A,"stroke",e,"alternativeBackground")}{let A=i("Grid",["cursor","y"]);A.setAll({forceInactive:!0,strokeOpacity:.8,strokeDasharray:[2,2],role:"slider",ariaLabel:t.translate("Use up and down arrows to move selection")}),we(A,"stroke",e,"alternativeBackground")}{let A=i("Graphics",["cursor","selection"]);A.setAll({fillOpacity:.15}),we(A,"fill",e,"alternativeBackground")}i("Axis").setAll({zoomOut:!0,start:0,end:1,minZoomCount:1,maxZoomCount:1/0,maxZoomFactor:1e3,maxDeviation:.1,snapTooltip:!0,tooltipLocation:.5,panX:!0,panY:!0,zoomX:!0,zoomY:!0,fixAxisSize:!0}),i("AxisLabel").setAll({location:.5,multiLocation:0,centerX:Ce,centerY:Ce,paddingTop:3,paddingBottom:3,paddingLeft:5,paddingRight:5}),i("Container",["axis","header"]).setAll({layer:30}),i("Rectangle",["axis","header","background"]).setAll({crisp:!0});{let A=i("AxisRenderer");A.setAll({crisp:!0,strokeOpacity:0}),we(A,"stroke",e,"grid")}i("AxisRendererX").setAll({minGridDistance:120,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,width:Ae}),i("AxisRendererY").setAll({minGridDistance:40,opposite:!1,inversed:!1,cellStartLocation:0,cellEndLocation:1,height:Ae});{let A=i("Rectangle",["axis","thumb","zoomgrip"]);A.setAll({fillOpacity:0}),we(A,"fill",e,"alternativeBackground"),A.states.create("hover",{fillOpacity:.1})}i("Rectangle",["axis","thumb","x","zoomgrip"]).setAll({cursorOverStyle:"ew-resize"}),i("Rectangle",["axis","thumb","y","zoomgrip"]).setAll({cursorOverStyle:"ns-resize"});{let A=i("Grid");A.setAll({location:0,strokeOpacity:.15,crisp:!0}),we(A,"stroke",e,"grid")}{let A=i("Grid",["minor"]);A.setAll({location:0,strokeOpacity:.07,crisp:!0}),we(A,"stroke",e,"grid")}i("Grid",["base"]).setAll({strokeOpacity:.3});{let A=i("Graphics",["axis","fill"]);A.setAll({visible:!1,isMeasured:!1,position:"absolute",fillOpacity:.05}),we(A,"fill",e,"alternativeBackground")}i("Graphics",["axis","fill","range"]).setAll({isMeasured:!0}),i("Graphics",["series","fill","range"]).setAll({visible:!1,isMeasured:!0}),i("Grid",["series","range"]).setAll({visible:!1}),i("AxisTick",["series","range"]).setAll({visible:!1}),i("AxisLabel",["series","range"]).setAll({visible:!1});{let A=i("AxisTick");A.setAll({location:.5,multiLocation:0,strokeOpacity:1,isMeasured:!1,position:"absolute",visible:!1}),we(A,"stroke",e,"grid")}i("CategoryAxis").setAll({startLocation:0,endLocation:1,fillRule:(A,l)=>{let h=A.get("axisFill");h&&(!j(l)||l%2==0?h.setPrivate("visible",!0):h.setPrivate("visible",!1))}});let s=[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:5},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:50},{timeUnit:"millisecond",count:100},{timeUnit:"millisecond",count:500},{timeUnit:"second",count:1},{timeUnit:"second",count:5},{timeUnit:"second",count:10},{timeUnit:"second",count:30},{timeUnit:"minute",count:1},{timeUnit:"minute",count:5},{timeUnit:"minute",count:10},{timeUnit:"minute",count:15},{timeUnit:"minute",count:30},{timeUnit:"hour",count:1},{timeUnit:"hour",count:3},{timeUnit:"hour",count:6},{timeUnit:"hour",count:12},{timeUnit:"day",count:1},{timeUnit:"day",count:2},{timeUnit:"day",count:3},{timeUnit:"day",count:4},{timeUnit:"day",count:5},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"month",count:2},{timeUnit:"month",count:3},{timeUnit:"month",count:6},{timeUnit:"year",count:1},{timeUnit:"year",count:2},{timeUnit:"year",count:5},{timeUnit:"year",count:10},{timeUnit:"year",count:50},{timeUnit:"year",count:100},{timeUnit:"year",count:200},{timeUnit:"year",count:500},{timeUnit:"year",count:1e3},{timeUnit:"year",count:2e3},{timeUnit:"year",count:5e3},{timeUnit:"year",count:1e4},{timeUnit:"year",count:1e5}],a={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_hour"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month"),year:t.translate("_date_year")},n={millisecond:t.translate("_date_millisecond"),second:t.translate("_date_second"),minute:t.translate("_date_minute"),hour:t.translate("_date_day"),day:t.translate("_date_day"),week:t.translate("_date_day"),month:t.translate("_date_month")+" "+t.translate("_date_year"),year:t.translate("_date_year")},o={millisecond:t.translate("_date_millisecond_full"),second:t.translate("_date_second_full"),minute:t.translate("_date_minute_full"),hour:t.translate("_date_hour_full"),day:t.translate("_date_day_full"),week:t.translate("_date_week_full"),month:t.translate("_date_month_full"),year:t.translate("_date_year")};i("CategoryDateAxis").setAll({markUnitChange:!0,gridIntervals:Xl(s),dateFormats:Tr(a),periodChangeDateFormats:Tr(n)}),i("DateAxis").setAll({maxZoomFactor:null,strictMinMax:!0,startLocation:0,endLocation:1,markUnitChange:!0,groupData:!1,groupCount:500,skipFirstMinor:!0,weekLabelLocation:0,gridIntervals:Xl(s),dateFormats:Tr(a),periodChangeDateFormats:Tr(n),tooltipDateFormats:o,groupIntervals:[{timeUnit:"millisecond",count:1},{timeUnit:"millisecond",count:10},{timeUnit:"millisecond",count:100},{timeUnit:"second",count:1},{timeUnit:"second",count:10},{timeUnit:"minute",count:1},{timeUnit:"minute",count:10},{timeUnit:"hour",count:1},{timeUnit:"day",count:1},{timeUnit:"week",count:1},{timeUnit:"month",count:1},{timeUnit:"year",count:1}],fillRule:A=>{let l=A.get("axisFill");if(l){let h=A.component,c=A.get("value"),d=A.get("endValue"),u=h.intervalDuration(),f=h.getPrivate("baseInterval"),m=h.getPrivate("gridInterval",f),g=h.getPrivate("min",0);if(g=An(new Date(g),m.timeUnit,m.count,this._root.locale.firstDayOfWeek,this._root.utc,void 0,this._root.timezone).getTime(),c!=null&&d!=null){let v=Math.round(Math.round((c-g)/u))/2;v==Math.round(v)?l.setPrivate("visible",!0):l.setPrivate("visible",!1)}}}}),i("GaplessDateAxis").setAll({fillRule:A=>{let l=A.get("axisFill");if(l){let h=A.get("index"),c=!1;(!j(h)||h%2==0)&&(c=!0),l.setPrivate("visible",c)}}}),i("ValueAxis").setAll({baseValue:0,logarithmic:!1,strictMinMax:!1,autoZoom:!0,fillRule:A=>{let l=A.get("axisFill");if(l){let h=A.component,c=A.get("value"),d=h.getPrivate("step");j(c)&&j(d)&&(di(c/d/2,5)==Math.round(c/d/2)?l.setPrivate("visible",!1):l.setPrivate("visible",!0))}}}),i("DurationAxis").setAll({baseUnit:"second"}),i("XYSeries").setAll({maskBullets:!0,stackToNegative:!0,locationX:.5,locationY:.5,snapTooltip:!1,openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close",seriesTooltipTarget:"series"}),i("BaseColumnSeries").setAll({adjustBulletPosition:!0}),i("ColumnSeries").setAll({clustered:!0}),i("RoundedRectangle",["series","column"]).setAll({position:"absolute",isMeasured:!1,width:Ve(70),height:Ve(70),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("LineSeries").setAll({connect:!0,autoGapCount:1.1,stackToNegative:!1}),i("Graphics",["series","stroke"]).setAll({position:"absolute",strokeWidth:1,strokeOpacity:1,isMeasured:!1}),i("Graphics",["series","fill"]).setAll({visible:!1,fillOpacity:0,position:"absolute",strokeWidth:0,strokeOpacity:0,isMeasured:!1}),i("Graphics",["line","series","legend","marker","stroke"]).setAll({draw:(A,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();A.moveTo(0,c/2),A.lineTo(d,c/2)}}});{let A=i("Graphics",["line","series","legend","marker","stroke"]).states.create("disabled",{});we(A,"stroke",e,"disabled")}i("Graphics",["line","series","legend","marker","fill"]).setAll({draw:(A,l)=>{let h=l.parent;if(h){let c=h.height(),d=h.width();A.moveTo(0,0),A.lineTo(d,0),A.lineTo(d,c),A.lineTo(0,c),A.lineTo(0,0)}}});{let A=i("Graphics",["line","series","legend","marker","fill"]).states.create("disabled",{});we(A,"stroke",e,"disabled")}i("SmoothedXYLineSeries").setAll({tension:.5}),i("SmoothedXLineSeries").setAll({tension:.5}),i("SmoothedYLineSeries").setAll({tension:.5}),i("Candlestick").setAll({position:"absolute",isMeasured:!1,width:Ve(50),height:Ve(50),strokeWidth:1,strokeOpacity:1,cornerRadiusBL:0,cornerRadiusTL:0,cornerRadiusBR:0,cornerRadiusTR:0,fillOpacity:1,role:"figure"}),i("OHLC").setAll({width:Ve(80),height:Ve(80)}),i("CandlestickSeries").setAll({lowValueXGrouped:"low",lowValueYGrouped:"low",highValueXGrouped:"high",highValueYGrouped:"high",openValueXGrouped:"open",openValueYGrouped:"open",valueXGrouped:"close",valueYGrouped:"close"});{let A=i("Rectangle",["column","autocolor"]).states.create("riseFromOpen",{});we(A,"fill",e,"positive"),we(A,"stroke",e,"positive")}{let A=i("Rectangle",["column","autocolor"]).states.create("dropFromOpen",{});we(A,"fill",e,"negative"),we(A,"stroke",e,"negative")}i("Rectangle",["column","autocolor","pro"]).states.create("riseFromOpen",{fillOpacity:0}),i("Rectangle",["column","autocolor","pro"]).states.create("dropFromOpen",{fillOpacity:1});{let A=i("Rectangle",["column","autocolor","pro"]).states.create("riseFromPrevious",{});we(A,"fill",e,"positive"),we(A,"stroke",e,"positive")}{let A=i("Rectangle",["column","autocolor","pro"]).states.create("dropFromPrevious",{});we(A,"fill",e,"negative"),we(A,"stroke",e,"negative")}i("RoundedRectangle",["rangegrip"]).setAll({strokeOpacity:0,fillOpacity:0,strokeWidth:1,width:12,height:12});{let A=i("Graphics",["rangegrip","button","icon"]);A.setAll({interactive:!1,crisp:!0,strokeOpacity:.5,draw:l=>{l.moveTo(0,.5),l.lineTo(0,12.5),l.moveTo(2,.5),l.lineTo(2,12.5),l.moveTo(4,.5),l.lineTo(4,12.5)}}),we(A,"stroke",e,"secondaryButtonText")}i("Button",["rangegrip"]).setAll({draggable:!0,paddingTop:0,paddingBottom:0}),i("Button",["rangegrip","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize",centerX:Ce}),i("Button",["rangegrip","horizontal"]).setAll({cursorOverStyle:"ew-resize",centerX:Ce}),i("Button",["rangegrip","vertical","left"]).setAll({centerY:Ae}),i("Button",["rangegrip","vertical","right"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","top"]).setAll({centerY:0}),i("Button",["rangegrip","horizontal","bottom"]).setAll({centerY:Ae})}};var bt=class extends zi{constructor(){super(...arguments),this.xAxes=new Rn,this.yAxes=new Rn,this.topAxesContainer=this.chartContainer.children.push(ve.new(this._root,{width:Ae,layout:this._root.verticalLayout})),this.yAxesAndPlotContainer=this.chartContainer.children.push(ve.new(this._root,{width:Ae,height:Ae,layout:this._root.horizontalLayout})),this.bottomAxesContainer=this.chartContainer.children.push(ve.new(this._root,{width:Ae,layout:this._root.verticalLayout})),this.leftAxesContainer=this.yAxesAndPlotContainer.children.push(ve.new(this._root,{height:Ae,layout:this._root.horizontalLayout})),this.plotsContainer=this.yAxesAndPlotContainer.children.push(ve.new(this._root,{width:Ae,height:Ae,maskContent:!1})),this.plotContainer=this.plotsContainer.children.push(ve.new(this._root,{width:Ae,height:Ae})),this.topPlotContainer=this.plotsContainer.children.push(ve.new(this._root,{width:Ae,height:Ae})),this.gridContainer=this.plotContainer.children.push(ve.new(this._root,{width:Ae,height:Ae,isMeasured:!1})),this.topGridContainer=ve.new(this._root,{width:Ae,height:Ae,isMeasured:!1}),this.rightAxesContainer=this.yAxesAndPlotContainer.children.push(ve.new(this._root,{height:Ae,layout:this._root.horizontalLayout})),this.axisHeadersContainer=this.plotContainer.children.push(ve.new(this._root,{})),this.zoomOutButton=this.topPlotContainer.children.push(on.new(this._root,{themeTags:["zoom"],icon:Re.new(this._root,{themeTags:["button","icon"]})})),this._movePoint={x:0,y:0},this._movePoints={}}_afterNew(){this._defaultThemes.push(Md.new(this._root)),super._afterNew(),this._disposers.push(this.xAxes),this._disposers.push(this.yAxes);let e=this._root,t=this._root.verticalLayout,i=this.zoomOutButton;i.events.on("click",()=>{this.zoomOut()}),i.hide(0),i.states.lookup("default").set("opacity",1),this.chartContainer.set("layout",t);let s=this.plotContainer;s.children.push(this.seriesContainer),this._disposers.push(this._processAxis(this.xAxes,this.bottomAxesContainer)),this._disposers.push(this._processAxis(this.yAxes,this.leftAxesContainer)),s.children.push(this.topGridContainer),s.children.push(this.bulletsContainer),s.set("interactive",!0),s.set("interactiveChildren",!1),s.set("background",Xt.new(e,{themeTags:["plotbackground","xy","background"]})),this._disposers.push(s.events.on("pointerdown",a=>{this._handlePlotDown(a)})),this._disposers.push(s.events.on("globalpointerup",a=>{this._handlePlotUp(a)})),this._disposers.push(s.events.on("globalpointermove",a=>{this._handlePlotMove(a)})),this._maskGrid(),this._setUpTouch()}_beforeChanged(){super._beforeChanged(),(this.isDirty("pinchZoomX")||this.isDirty("pinchZoomY")||this.get("panX")||this.get("panY"))&&this._setUpTouch()}_setUpTouch(){this.plotContainer._display.cancelTouch||(this.plotContainer._display.cancelTouch=!!(this.get("pinchZoomX")||this.get("pinchZoomY")||this.get("panX")||this.get("panY")))}_maskGrid(){this.gridContainer.set("maskContent",!0),this.topGridContainer.set("maskContent",!0)}_removeSeries(e){e._unstack(),e._posXDp&&e._posXDp.dispose(),e._posYDp&&e._posYDp.dispose(),e.set("baseAxis",void 0);let t=e.get("xAxis");t&&(Ci(t.series,e),t.markDirtyExtremes());let i=e.get("yAxis");i&&(Ci(i.series,e),i.markDirtyExtremes());let s=this.get("cursor");if(s){let a=s.get("snapToSeries");a&&Ci(a,e)}super._removeSeries(e)}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}handleWheel(e){let t=this.get("wheelX"),i=this.get("wheelY"),s=this.plotContainer,a=e.originalEvent,n=!1;if(IA(a,this))n=!0;else return;let o=s.toLocal(e.point),A=this.get("wheelStep",.2),l=a.deltaY/100,h=a.deltaX/100,c=this.get("wheelZoomPositionX"),d=this.get("wheelZoomPositionY");(t==="zoomX"||t==="zoomXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(o.x/s.width());c!=null&&(g=c);let v=u.get("maxDeviation",0),B=Math.min(1+v,Math.max(-v,f-A*(m-f)*h*g)),w=Math.max(-v,Math.min(1+v,m+A*(m-f)*h*(1-g)));B==f&&w==m&&(n=!1),1/(w-B)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(B,w)):n=!1}}),(i==="zoomX"||i==="zoomXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("zoomX")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(o.x/s.width());c!=null&&(g=c);let v=u.get("maxDeviation",0),B=Math.min(1+v,Math.max(-v,f-A*(m-f)*l*g)),w=Math.max(-v,Math.min(1+v,m+A*(m-f)*l*(1-g)));B==f&&w==m&&(n=!1),1/(w-B)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(B,w)):n=!1}}),(t==="zoomY"||t==="zoomXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(o.y/s.height());d!=null&&(g=d);let v=u.get("maxDeviation",0),B=Math.min(1+v,Math.max(-v,f-A*(m-f)*h*g)),w=Math.max(-v,Math.min(1+v,m+A*(m-f)*h*(1-g)));B==f&&w==m&&(n=!1),1/(w-B)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(B,w)):n=!1}}),(i==="zoomY"||i==="zoomXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("zoomY")){let f=u.get("start"),m=u.get("end"),g=u.fixPosition(o.y/s.height());d!=null&&(g=d);let v=u.get("maxDeviation",0),B=Math.min(1+v,Math.max(-v,f-A*(m-f)*l*g)),w=Math.max(-v,Math.min(1+v,m+A*(m-f)*l*(1-g)));B==f&&w==m&&(n=!1),1/(w-B)<u.getPrivate("maxZoomFactor",1/0)/u.get("minZoomCount",1)?this._handleWheelAnimation(u.zoom(B,w)):n=!1}}),(t==="panX"||t==="panXY")&&h!=0&&this.xAxes.each(u=>{if(u.get("panX")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*A*(m-f)*h,v=f+g,B=m+g,w=this._fixWheel(v,B);v=w[0],B=w[1],v==f&&B==m&&(n=!1),this._handleWheelAnimation(u.zoom(v,B))}}),(i==="panX"||i==="panXY")&&l!=0&&this.xAxes.each(u=>{if(u.get("panX")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*A*(m-f)*l,v=f+g,B=m+g,w=this._fixWheel(v,B);v=w[0],B=w[1],v==f&&B==m&&(n=!1),this._handleWheelAnimation(u.zoom(v,B))}}),(t==="panY"||t==="panXY")&&h!=0&&this.yAxes.each(u=>{if(u.get("panY")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*A*(m-f)*h,v=f+g,B=m+g,w=this._fixWheel(v,B);v=w[0],B=w[1],v==f&&B==m&&(n=!1),this._handleWheelAnimation(u.zoom(v,B))}}),(i==="panY"||i==="panXY")&&l!=0&&this.yAxes.each(u=>{if(u.get("panY")){let f=u.get("start"),m=u.get("end"),g=this._getWheelSign(u)*A*(m-f)*l,v=f-g,B=m-g,w=this._fixWheel(v,B);v=w[0],B=w[1],v==f&&B==m&&(n=!1),this._handleWheelAnimation(u.zoom(v,B))}}),n&&a.preventDefault()}_handleSetWheel(){let e=this.get("wheelX"),t=this.get("wheelY"),i=this.plotContainer;e!=="none"||t!=="none"?(this._wheelDp=i.events.on("wheel",s=>{let a=s.originalEvent;(e!=="none"&&Math.abs(a.deltaX)!=0||t!=="none"&&Math.abs(a.deltaY)!=0)&&this.handleWheel(s)}),this._disposers.push(this._wheelDp)):this._wheelDp&&this._wheelDp.dispose()}_getWheelSign(e){let t=1;return e.get("renderer").get("inversed")&&(t=-1),t}_fixWheel(e,t){let i=t-e;return e<0&&(e=0,t=e+i),t>1&&(t=1,e=t-i),[e,t]}_handlePlotDown(e){let t=e.originalEvent;if(t.button==2)return;let i=this.plotContainer,s=i.toLocal(e.point);if((this.get("pinchZoomX")||this.get("pinchZoomY"))&&t.pointerId&&$i(i._downPoints).length>0){let n=this.xAxes.getIndex(0),o=this.yAxes.getIndex(0);n&&(this._downStartX=n.get("start",0),this._downEndX=n.get("end",1)),o&&(this._downStartY=o.get("start",0),this._downEndY=o.get("end",1))}if((this.get("panX")||this.get("panY"))&&s.x>=0&&s.y>=0&&s.x<=i.width()&&s.y<=this.height()){this._downPoint={x:t.clientX,y:t.clientY};let a=this.get("panX"),n=this.get("panY");a&&this.xAxes.each(A=>{A._panStart=A.get("start"),A._panEnd=A.get("end")}),n&&this.yAxes.each(A=>{A._panStart=A.get("start"),A._panEnd=A.get("end")});let o="panstarted";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this,originalEvent:e.originalEvent})}}_handleWheelAnimation(e){e?e.events.on("stopped",()=>{this._dispatchWheelAnimation()}):this._dispatchWheelAnimation()}_dispatchWheelAnimation(){let e="wheelended";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this})}_handlePlotUp(e){let t=this._downPoint;if(t&&(this.get("panX")||this.get("panY"))){if(e.originalEvent.clientX==t.x&&e.originalEvent.clientY==t.y){let s="pancancelled";this.events.isEnabled(s)&&this.events.dispatch(s,{type:s,target:this,originalEvent:e.originalEvent})}let i="panended";this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,originalEvent:e.originalEvent})}this._downPoint=void 0,this.xAxes.each(i=>{i._isPanning=!1}),this.yAxes.each(i=>{i._isPanning=!1})}_handlePlotMove(e){let t=this.plotContainer;if(this.get("pinchZoomX")||this.get("pinchZoomY")){let a=e.originalEvent.pointerId;if(a&&(this._movePoints[a]=e.point,$i(t._downPoints).length>1)){this._handlePinch();return}}let i=this._downPoint;if(i){i=t.toLocal(this._root.documentPointToRoot(i));let s=t.toLocal(e.point),a=this.get("panX"),n=this.get("panY");if(a){let o=this.get("scrollbarX");o&&o.events.disableType("rangechanged"),this.xAxes.each(A=>{if(A.get("panX")){A._isPanning=!0;let l=A._panStart,h=A._panEnd,d=(h-l)*(i.x-s.x)/t.width();A.get("renderer").get("inversed")&&(d*=-1);let u=l+d,f=h+d;f-u<1+A.get("maxDeviation",1)*2&&(A.set("start",u),A.set("end",f))}}),o&&o.events.enableType("rangechanged")}if(n){let o=this.get("scrollbarY");o&&o.events.disableType("rangechanged"),this.yAxes.each(A=>{if(A.get("panY")){A._isPanning=!0;let l=A._panStart,h=A._panEnd,d=(h-l)*(i.y-s.y)/t.height();A.get("renderer").get("inversed")&&(d*=-1);let u=l-d,f=h-d;f-u<1+A.get("maxDeviation",1)*2&&(A.set("start",u),A.set("end",f))}}),o&&o.events.enableType("rangechanged")}}}_handlePinch(){let e=this.plotContainer,t=0,i=[],s=[];if(Ye(e._downPoints,(a,n)=>{i[t]=n;let o=this._movePoints[a];o&&(s[t]=o),t++}),i.length>1&&s.length>1){let a=e.width(),n=e.height(),o=i[0],A=i[1],l=s[0],h=s[1];if(o&&A&&l&&h){if(l=e.toLocal(l),h=e.toLocal(h),o=e.toLocal(o),A=e.toLocal(A),this.get("pinchZoomX")){let c=this._downStartX,d=this._downEndX;if(c!=null&&d!=null){o.x>A.x&&([o,A]=[A,o],[l,h]=[h,l]);let u=c+o.x/a*(d-c),f=c+A.x/a*(d-c),m=c+l.x/a*(d-c),g=c+h.x/a*(d-c),v=Math.max(.001,f-u),B=Math.max(.001,g-m),w=v/B,_=c*w+u-m*w,L=d*w+f-g*w;this.xAxes.each(k=>{let D=k.fixPosition(_),E=k.fixPosition(L);k.zoom(D,E,0)})}}if(this.get("pinchZoomY")){let c=this._downStartY,d=this._downEndY;if(c!=null&&d!=null){o.y<A.y&&([o,A]=[A,o],[l,h]=[h,l]);let u=c+(1-o.y/n)*(d-c),f=c+(1-A.y/n)*(d-c),m=c+(1-l.y/n)*(d-c),g=c+(1-h.y/n)*(d-c),v=Math.max(.001,f-u),B=Math.max(.001,g-m),w=v/B,_=c*w+u-m*w,L=d*w+f-g*w;this.yAxes.each(k=>{let D=k.fixPosition(_),E=k.fixPosition(L);k.zoom(D,E,0)})}}}}}_handleCursorPosition(){let e=this.get("cursor");if(e){let t=e.getPrivate("point"),i=e.get("snapToSeries");if(e._downPoint&&(i=void 0),i&&t){let s=e.get("snapToSeriesBy"),a=[];W(i,A=>{if(!A.isHidden()&&!A.isHiding())if(s!="x!"&&s!="y!"){let l=A.startIndex(),h=A.endIndex();for(let c=l;c<h;c++){let d=A.dataItems[c];d&&!d.isHidden()&&a.push(d)}}else{let l=A.get("tooltipDataItem");l&&a.push(l)}});let n=1/0,o;if(W(a,A=>{let l=A.get("point");if(l){let h=0;s=="x"||s=="x!"?h=Math.abs(t.x-l.x):s=="y"||s=="y!"?h=Math.abs(t.y-l.y):h=Math.hypot(t.x-l.x,t.y-l.y),h<n&&(n=h,o=A)}}),W(i,A=>{let l=A.get("tooltip");l&&l._setDataItem(void 0)}),o){let A=o.component;A.showDataItemTooltip(o),A.setRaw("tooltipDataItem",o);let l=o.get("point");l&&e.handleMove(A.toGlobal({x:l.x-A.x(),y:l.y-A.y()}),!0)}}}}_updateCursor(){let e=this.get("cursor");e&&e.updateCursor()}_addCursor(e){this.plotContainer.children.push(e)}_prepareChildren(){if(super._prepareChildren(),this.series.each(e=>{this._colorize(e)}),(this.isDirty("wheelX")||this.isDirty("wheelY"))&&this._handleSetWheel(),this.isDirty("cursor")){let e=this._prevSettings.cursor,t=this.get("cursor");t!==e&&(this._disposeProperty("cursor"),e&&e.dispose(),t&&(t._setChart(this),this._addCursor(t),this._pushPropertyDisposer("cursor",t.events.on("selectended",()=>{this._handleCursorSelectEnd()}))),this._prevSettings.cursor=t)}if(this.isDirty("scrollbarX")){let e=this._prevSettings.scrollbarX,t=this.get("scrollbarX");t!==e&&(this._disposeProperty("scrollbarX"),e&&e.dispose(),t&&(t.parent||this.topAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarX",t.events.on("rangechanged",i=>{this._handleScrollbar(this.xAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarX",t.events.on("released",()=>{this.xAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),t.setPrivate("positionTextFunction",i=>{let s=this.xAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarX=t)}if(this.isDirty("scrollbarY")){let e=this._prevSettings.scrollbarY,t=this.get("scrollbarY");t!==e&&(this._disposeProperty("scrollbarY"),e&&e.dispose(),t&&(t.parent||this.rightAxesContainer.children.push(t),this._pushPropertyDisposer("scrollbarY",t.events.on("rangechanged",i=>{this._handleScrollbar(this.yAxes,i.start,i.end,i.grip)})),this._pushPropertyDisposer("scrollbarY",t.events.on("released",()=>{this.yAxes.each(i=>{i.get("zoomable")&&this._handleAxisSelection(i)})})),t.setPrivate("positionTextFunction",i=>{let s=this.yAxes.getIndex(0);return s&&s.getTooltipText(i,!1)||""})),this._prevSettings.scrollbarY=t)}this._handleZoomOut()}_processSeries(e){super._processSeries(e);let t=e.get("xAxis"),i=e.get("yAxis");Vl(t.series,e),Vl(i.series,e),e._posXDp=e.addDisposer(t.events.on("positionchanged",()=>{e._fixPosition()})),e._posXDp=e.addDisposer(i.events.on("positionchanged",()=>{e._fixPosition()})),e.get("baseAxis")||(i.isType("CategoryAxis")||i.isType("DateAxis")?e.set("baseAxis",i):e.set("baseAxis",t)),e.get("stacked")&&(e._markDirtyKey("stacked"),W(e.dataItems,s=>{s.set("stackToItemY",void 0),s.set("stackToItemX",void 0)})),e._markDirtyAxes(),i.markDirtyExtremes(),t.markDirtyExtremes(),t._seriesAdded=!0,i._seriesAdded=!0,this._colorize(e)}_colorize(e){let t=this.get("colors");if(t&&e.get("fill")==null){let s=t.next();e._setSoft("stroke",s),e._setSoft("fill",s)}let i=this.get("patterns");if(i&&e.get("fillPattern")==null){let s=i.next();e._setSoft("fillPattern",s)}}_handleCursorSelectEnd(){let e=this.get("cursor"),t=e.get("behavior"),i=e.getPrivate("downPositionX",0),s=e.getPrivate("downPositionY",0),a=Math.min(1,Math.max(0,e.getPrivate("positionX",.5))),n=Math.min(1,Math.max(0,e.getPrivate("positionY",.5)));this.xAxes.each(o=>{if(t==="zoomX"||t==="zoomXY"){let A=o.toAxisPosition(i),l=o.toAxisPosition(a);o.zoom(A,l)}o.setPrivate("updateScrollbar",!0)}),this.yAxes.each(o=>{if(t==="zoomY"||t==="zoomXY"){let A=o.toAxisPosition(s),l=o.toAxisPosition(n);o.zoom(A,l)}o.setPrivate("updateScrollbar",!0)})}_handleScrollbar(e,t,i,s){e.each(a=>{let n=a.fixPosition(t),o=a.fixPosition(i),A=a.zoom(n,o,void 0,s),l="updateScrollbar";a.setPrivateRaw(l,!1),A?A.events.on("stopped",()=>{a.setPrivateRaw(l,!0)}):a.setPrivateRaw(l,!0)})}_processAxis(e,t){return e.events.onAll(i=>{if(i.type==="clear")W(i.oldValues,s=>{this._removeAxis(s)});else if(i.type==="push")t.children.push(i.newValue),i.newValue.processChart(this);else if(i.type==="setIndex")t.children.setIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="insertIndex")t.children.insertIndex(i.index,i.newValue),i.newValue.processChart(this);else if(i.type==="removeIndex")this._removeAxis(i.oldValue);else if(i.type==="moveIndex")t.children.moveValue(i.value,i.newIndex),i.value.processChart(this);else throw new Error("Unknown IListEvent type")})}_removeAxis(e){if(!e.isDisposed()){let t=e.parent;t&&t.children.removeValue(e);let i=e.gridContainer,s=i.parent;s&&s.children.removeValue(i);let a=e.topGridContainer,n=a.parent;n&&n.children.removeValue(a)}}_updateChartLayout(){let e=this.leftAxesContainer.width(),t=this.rightAxesContainer.width(),i=this.bottomAxesContainer;i.set("paddingLeft",e),i.set("paddingRight",t);let s=this.topAxesContainer;s.set("paddingLeft",e),s.set("paddingRight",t)}processAxis(e){var t=this.get("cursor");t&&(this.addDisposer(e.on("start",()=>{this._updateCursor()})),this.addDisposer(e.on("end",()=>{this._updateCursor()})))}_handleAxisSelection(e,t){let i=e.fixPosition(e.get("start",0)),s=e.fixPosition(e.get("end",1));if(i>s&&([i,s]=[s,i]),this.xAxes.indexOf(e)!=-1){if(t||e.getPrivate("updateScrollbar")){let a=this.get("scrollbarX");a&&(!a.getPrivate("isBusy")||t)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}}else if(this.yAxes.indexOf(e)!=-1&&(t||e.getPrivate("updateScrollbar"))){let a=this.get("scrollbarY");a&&(!a.getPrivate("isBusy")||t)&&(a.setRaw("start",i),a.setRaw("end",s),a.updateGrips())}this._handleZoomOut()}_handleZoomOut(){let e=this.zoomOutButton;if(e&&e.parent){let t=!1;this.xAxes.each(i=>{i.get("zoomOut",!0)&&(di(i.get("start",0),5)!=0||di(i.get("end",1),5)!=1)&&(t=!0)}),this.yAxes.each(i=>{i.get("zoomOut",!0)&&(di(i.get("start",0),5)!=0||di(i.get("end",1),5)!=1)&&(t=!0)}),t?e.isHidden()&&e.show():e.hide()}}inPlot(e){let t=this.plotContainer,i=this.getPrivate("otherCharts",this._otherCharts),s=t.toGlobal(e);if(e.x>=-.5&&e.y>=-.5&&e.x<=t.width()+.5&&e.y<=t.height()+.5)return!0;if(i)for(let a=i.length-1;a>=0;a--){let n=i[a];if(n!=this){let o=n.plotContainer,A=this._root.rootPointToDocument(s),l=n._root.documentPointToRoot(A),h=o.toLocal(l);if(h.x>=-.1&&h.y>=-.1&&h.x<=o.width()+.1&&h.y<=o.height()+.1)return!0}}return!1}arrangeTooltips(){let e=this.plotContainer,t=e.width(),i=e.height(),s=this.height(),a=this._root.tooltipContainer.get("layerMargin");a&&a.bottom>s&&(s=a.bottom);let n=e._display.toGlobal({x:0,y:0}),o=e._display.toGlobal({x:t,y:i}),A=[],l=0,h=1/0,c=this._movePoint,d=this.get("maxTooltipDistance"),u=this.get("maxTooltipDistanceBy","xy"),f,m;j(d)&&this.series.each(v=>{if(!v.isHidden()){let B=v.get("tooltip");if(B){let w=B.get("pointTo");if(w){let _=Math.hypot(c.x-w.x,c.y-w.y);u=="x"?_=Math.abs(c.x-w.x):u=="y"&&(_=Math.abs(c.y-w.y)),_<h&&(h=_,f=v,m=w)}}}});let g=[];if(this.series.each(v=>{let B=v.get("tooltip");if(B&&!B.get("forceHidden")){let w=!1,_=B.get("pointTo");if(_){if(d>=0){let L=B.get("pointTo");if(L&&m&&v!=f){let k=Math.hypot(m.x-L.x,m.y-L.y);u=="x"?k=Math.abs(m.x-L.x):u=="y"&&(k=Math.abs(m.y-L.y)),k>d&&(w=!0)}}else d==-1&&v!=f&&(w=!0);!this.inPlot(this._tooltipToLocal(_))||!B.dataItem?w=!0:w||(l+=_.y),w||v.isHidden()||v.isHiding()?B.hide(0):(B.show(),A.push(B),g.push(v))}}}),this.setPrivate("tooltipSeries",g),this.get("arrangeTooltips")){let v=0,B=0,w=this._root.tooltipContainer,_=A.length;if(l/_>i/2+n.y){A.sort((D,E)=>Zg(E.get("pointTo").y,D.get("pointTo").y));let k=o.y;if(W(A,D=>{let E=D.height();B++,v+=E;let O=D.get("centerY");O instanceof Oe&&(E*=O.value),E+=D.get("marginBottom",0),D.set("bounds",{left:n.x,top:n.y,right:o.x,bottom:k}),D.setPrivate("customData",{left:n.x,top:n.y,right:o.x,bottom:k}),k=Math.min(k-E,D._fy-E),D.parent==w&&w.children.moveValue(D,0)}),k<0){A.reverse();let D=k;W(A,E=>{B++;let O=E.get("bounds");if(O){let I=O.top-k,M=O.bottom-k;I<D&&(I=D,M=I+E.height()),E.set("bounds",{left:O.left,top:I,right:O.right,bottom:M}),D=O.bottom-k+E.get("marginBottom",0)}})}}else{A.reverse(),A.sort((D,E)=>Zg(D.get("pointTo").y,E.get("pointTo").y));let k=0;if(W(A,D=>{B++;let E=D.height();v+=E;let O=D.get("centerY");O instanceof Oe&&(E*=O.value),E+=D.get("marginBottom",0),D.set("bounds",{left:n.x,top:k,right:o.x,bottom:Math.max(n.y+s,k+E)}),D.parent==w&&w.children.moveValue(D,0),k=Math.max(k+E,D._fy+E)}),k>s){A.reverse();let D=s;W(A,E=>{B++;let O=E.get("bounds");if(O){let I=O.top-(s-k),M=O.bottom-(s-k);M>D&&(M=D,I=M-E.height()),E.set("bounds",{left:O.left,top:I,right:O.right,bottom:M}),D=M-E.height()-E.get("marginBottom",0)}})}}v==0&&B>0&&this._disposers.push(this.root.events.once("frameended",()=>{this.arrangeTooltips()}))}}_tooltipToLocal(e){return this.plotContainer.toLocal(e)}zoomOut(){this.xAxes.each(e=>{e.get("zoomOut",!0)&&(e.setPrivate("updateScrollbar",!0),e.zoom(0,1))}),this.yAxes.each(e=>{e.get("zoomOut",!0)&&(e.setPrivate("updateScrollbar",!0),e.zoom(0,1))})}_dispose(){super._dispose();let e=this.get("cursor");e&&e.dispose()}};bt.className="XYChart";bt.classNames=zi.classNames.concat([bt.className]);var Rs=class extends bt{constructor(){super(...arguments),this.radarContainer=this.plotContainer.children.push(ve.new(this._root,{x:Ce,y:Ce})),this._arcGenerator=jr(),this._maxRadius=1}_afterNew(){this._defaultThemes.push(Rd.new(this._root)),super._afterNew();let e=this.radarContainer,t=this.gridContainer,i=this.topGridContainer,s=this.seriesContainer,a=this.bulletsContainer;e.children.pushAll([t,s,i,a]),s.set("mask",Re.new(this._root,{})),t.set("mask",Re.new(this._root,{})),this._disposers.push(this.plotContainer.events.on("boundschanged",()=>{this._updateRadius()}))}_maskGrid(){}_prepareChildren(){if(super._prepareChildren(),this._sizeDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")){let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),n=this.get("innerRadius"),o=Mn(0,0,s,a,1),A=t/(o.right-o.left),l=i/(o.bottom-o.top),h={left:0,right:0,top:0,bottom:0};if(n instanceof Oe){let d=n.value,u=Math.min(A,l);d=Math.max(u*d,u-Math.min(i,t))/u,h=Mn(0,0,s,a,d),this.setPrivateRaw("irModifyer",d/n.value)}o=cd([o,h]),this._maxRadius=Math.max(0,Math.min(A,l));let c=tt(this.get("radius",0),this._maxRadius);this.radarContainer.setAll({dy:-c*(o.bottom+o.top)/2,dx:-c*(o.right+o.left)/2}),this._updateRadius()}}_addCursor(e){this.radarContainer.children.push(e)}_updateRadius(){let e=tt(this.get("radius",Ve(80)),this._maxRadius);this.setPrivateRaw("radius",e);let t=tt(this.get("innerRadius",0),e);t<0&&(t=e+t),this.setPrivateRaw("innerRadius",t),this.xAxes.each(s=>{s.get("renderer").updateLayout()}),this.yAxes.each(s=>{s.get("renderer").updateLayout()}),this._updateMask(this.seriesContainer,t,e),this._updateMask(this.gridContainer,t,e),this.series.each(s=>{s.get("maskBullets")?this._updateMask(s.bulletsContainer,t,e):s.bulletsContainer.remove("mask")});let i=this.get("cursor");i&&i.updateLayout()}_updateMask(e,t,i){let s=e.get("mask");s&&s.set("draw",a=>{this._arcGenerator.context(a),this._arcGenerator({innerRadius:t,outerRadius:i+.5,startAngle:(this.get("startAngle",0)+90)*ai,endAngle:(this.get("endAngle",0)+90)*ai})})}processAxis(e){this.radarContainer.children.push(e)}_processSeries(e){super._processSeries(e),this._updateRadius()}inPlot(e,t,i){let s=Math.hypot(e.x,e.y),a=_s(Math.atan2(e.y,e.x)*zs),n=_s(this.get("startAngle",0)),o=_s(this.get("endAngle",0)),A=!1;return n<o&&n<a&&a<o&&(A=!0),n>o&&(a>n&&(A=!0),a<o&&(A=!0)),n==o&&(A=!0),A?(t==null&&(t=this.getPrivate("radius",0)),i==null&&(i=this.getPrivate("innerRadius",0)),i>t&&([i,t]=[t,i]),s<=t+.5&&s>=i-.5):!1}_tooltipToLocal(e){return this.radarContainer._display.toLocal(e)}_handlePinch(){}};Rs.className="RadarChart";Rs.classNames=bt.classNames.concat([Rs.className]);function Kp(r,e){return r==null?e:e==null?r:e<r?e:r}function Gp(r,e){return r==null?e:e==null||r>e?r:e}var Ls=class extends _i{constructor(){super(...arguments),this._axesDirty=!1,this._stackDirty=!1,this._selectionProcessed=!1,this._dataSets={},this._x=0,this._y=0,this._bullets={},this.mainContainer=this.children.push(ve.new(this._root,{})),this.axisRanges=new cr,this._skipped=!1,this._couldStackTo=[],this._reallyStackedTo={},this._stackedSeries={},this._aLocationX0=0,this._aLocationX1=1,this._aLocationY0=0,this._aLocationY1=1,this._showBullets=!0,this.valueXFields=["valueX","openValueX","lowValueX","highValueX"],this.valueYFields=["valueY","openValueY","lowValueY","highValueY"],this._emptyDataItem=new Ui(this,void 0,{})}_afterNew(){this.fields.push("categoryX","categoryY","openCategoryX","openCategoryY"),this.valueFields.push("valueX","valueY","openValueX","openValueY","lowValueX","lowValueY","highValueX","highValueY"),this._setRawDefault("vcx",1),this._setRawDefault("vcy",1),this._setRawDefault("valueXShow","valueXWorking"),this._setRawDefault("valueYShow","valueYWorking"),this._setRawDefault("openValueXShow","openValueXWorking"),this._setRawDefault("openValueYShow","openValueYWorking"),this._setRawDefault("lowValueXShow","lowValueXWorking"),this._setRawDefault("lowValueYShow","lowValueYWorking"),this._setRawDefault("highValueXShow","highValueXWorking"),this._setRawDefault("highValueYShow","highValueYWorking"),this._setRawDefault("lowValueXGrouped","low"),this._setRawDefault("lowValueYGrouped","low"),this._setRawDefault("highValueXGrouped","high"),this._setRawDefault("highValueYGrouped","high");let e=this.get("xAxis");e&&(this._xRenderer=e.get("renderer"));let t=this.get("yAxis");t&&(this._yRenderer=t.get("renderer")),super._afterNew(),this.set("maskContent",!0),this._disposers.push(this.axisRanges.events.onAll(i=>{if(i.type==="clear")W(i.oldValues,s=>{this._removeAxisRange(s)});else if(i.type==="push")this._processAxisRange(i.newValue);else if(i.type==="setIndex")this._processAxisRange(i.newValue);else if(i.type==="insertIndex")this._processAxisRange(i.newValue);else if(i.type==="removeIndex")this._removeAxisRange(i.oldValue);else if(i.type==="moveIndex")this._processAxisRange(i.value);else throw new Error("Unknown IStreamEvent type")})),this.states.create("hidden",{opacity:1,visible:!1}),this.onPrivate("startIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this.onPrivate("endIndex",()=>{this.root.events.once("frameended",()=>{this.updateLegendValue()})}),this._makeFieldNames()}_processAxisRange(e){let t=ve.new(this._root,{});e.container=t,this.children.push(t),e.series=this;let i=e.axisDataItem;i.setRaw("isRange",!0);let s=i.component;if(s){s._processAxisRange(i,["range","series"]);let a=i.get("bullet");if(a){let o=a.get("sprite");o&&o.setPrivate("visible",!1)}let n=i.get("axisFill");n&&t.set("mask",n),s._seriesAxisRanges.push(i)}}_onDataClear(){super._onDataClear(),Ye(this._dataSets,(e,t)=>{W(t,i=>{i.dispose()}),t.length=0})}_removeAxisRange(e){let t=e.axisDataItem,i=t.component;t.dispose(),Ci(i._seriesAxisRanges,t);let s=e.container;s&&s.dispose()}_updateFields(){super._updateFields(),this._valueXFields=[],this._valueYFields=[],this._valueXShowFields=[],this._valueYShowFields=[],this.__valueXShowFields=[],this.__valueYShowFields=[],this.valueXFields&&W(this.valueXFields,e=>{if(this.get(e+"Field")){this._valueXFields.push(e);let i=this.get(e+"Show");this.__valueXShowFields.push(i),i.indexOf("Working")!=-1?this._valueXShowFields.push(i.split("Working")[0]):this._valueXShowFields.push(i)}}),this.valueYFields&&W(this.valueYFields,e=>{if(this.get(e+"Field")){this._valueYFields.push(e);let i=this.get(e+"Show");this.__valueYShowFields.push(i),i.indexOf("Working")!=-1?this._valueYShowFields.push(i.split("Working")[0]):this._valueYShowFields.push(i)}})}_dispose(){super._dispose(),this._bullets={};let e=this.chart;e&&e.series.removeValue(this),yi(this.get("xAxis").series,this),yi(this.get("yAxis").series,this)}_min(e,t){let i=Kp(this.getPrivate(e),t);this.setPrivate(e,i)}_max(e,t){let i=Gp(this.getPrivate(e),t);this.setPrivate(e,i)}_shouldMakeBullet(e){let t=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis");if(!t.inited||!i.inited)return!1;let a=this.get("minBulletDistance",0);if(a>0){let n=this.startIndex(),A=this.endIndex()-n;if(t==s){if(this._xRenderer.axisLength()/A<a/5)return!1}else if(i==s&&this._yRenderer.axisLength()/A<a/5)return!1}return e.get(this._xField)!=null&&e.get(this._yField)!=null}_makeFieldNames(){let e=this.get("xAxis"),t=this.get("yAxis"),i=e.getPrivate("name"),s=Pg(i),a=t.getPrivate("name"),n=Pg(a),o=e.get("renderer").getPrivate("letter"),A=t.get("renderer").getPrivate("letter"),l="open",h="low",c="high",d="Show";e.className==="ValueAxis"?(this._xField=this.get(i+o+d),this._xOpenField=this.get(l+s+o+d),this._xLowField=this.get(h+s+o+d),this._xHighField=this.get(c+s+o+d)):(this._xField=i+o,this._xOpenField=l+s+o,this._xLowField=h+s+o,this._xHighField=c+s+o),t.className==="ValueAxis"?(this._yField=this.get(a+A+d),this._yOpenField=this.get(l+n+A+d),this._yLowField=this.get(h+n+A+d),this._yHighField=this.get(c+n+A+d)):(this._yField=a+A,this._yOpenField=l+n+A,this._yLowField=h+n+A,this._yHighField=c+n+A)}_fixVC(){let e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.states.lookup("hidden"),a=this.get("sequencedInterpolation");if(s){let n=0;a&&(n=.999999999999),e===i?s.set("vcy",n):(t===i||s.set("vcy",n),s.set("vcx",n))}}_handleMaskBullets(){this.isDirty("maskBullets")&&this.bulletsContainer.set("maskContent",this.get("maskBullets"))}_fixPosition(){let e=this.get("xAxis"),t=this.get("yAxis");this.set("x",e.x()-tt(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0)),this.set("y",t.y()-tt(t.get("centerY",0),t.height())-t.parent.get("paddingTop",0)),this.bulletsContainer.set("y",this.y()),this.bulletsContainer.set("x",this.x())}_prepareChildren(){super._prepareChildren(),this._xRenderer=this.get("xAxis").get("renderer"),this._yRenderer=this.get("yAxis").get("renderer"),this._bullets={},(this.isDirty("valueYShow")||this.isDirty("valueXShow")||this.isDirty("openValueYShow")||this.isDirty("openValueXShow")||this.isDirty("lowValueYShow")||this.isDirty("lowValueXShow")||this.isDirty("highValueYShow")||this.isDirty("highValueXShow"))&&(this._updateFields(),this._makeFieldNames(),this._valuesDirty=!0),(this.isDirty("xAxis")||this.isDirty("yAxis"))&&(this._valuesDirty=!0),this.set("width",this.get("xAxis").width()),this.set("height",this.get("yAxis").height()),this._handleMaskBullets();let e=this.get("xAxis"),t=this.get("yAxis"),i=this.get("baseAxis"),s=this.get("tooltipPositionX"),a;switch(s){case"open":a=this._xOpenField;break;case"low":a=this._xLowField;break;case"high":a=this._xHighField;break;default:a=this._xField}this._tooltipFieldX=a;let n=this.get("tooltipPositionY"),o;switch(n){case"open":o=this._yOpenField;break;case"low":o=this._yLowField;break;case"high":o=this._yHighField;break;default:o=this._yField}this._tooltipFieldY=o,this.isDirty("baseAxis")&&this._fixVC(),this._fixPosition();let A=this.get("stacked");if(this.isDirty("stacked")&&(A?this._valuesDirty&&!this._dataProcessed||this._stack():this._unstack()),this._valuesDirty&&!this._dataProcessed){this._dataProcessed=!0,A&&this._stack();let l,h,c,d;W(this.dataItems,u=>{W(this._valueXShowFields,f=>{let m=u.get(f);m!=null&&(A&&(m+=this.getStackedXValue(u,f)),l=Kp(l,m),h=Gp(h,m))}),W(this._valueYShowFields,f=>{let m=u.get(f);m!=null&&(A&&(m+=this.getStackedYValue(u,f)),c=Kp(c,m),d=Gp(d,m))}),e.processSeriesDataItem(u,this._valueXFields),t.processSeriesDataItem(u,this._valueYFields)}),this._min("minX",l),this._max("maxX",h),this._min("minY",c),this._max("maxY",d),e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,this.get("ignoreMinMax")||((this.isPrivateDirty("minX")||this.isPrivateDirty("maxX"))&&e.markDirtyExtremes(),(this.isPrivateDirty("minY")||this.isPrivateDirty("maxY"))&&t.markDirtyExtremes()),this._markStakedDirtyStack(),this.get("tooltipDataItem")||this.updateLegendValue(void 0)}if((this.isDirty("vcx")||this.isDirty("vcy"))&&this._markStakedDirtyStack(),this._dataGrouped||(e._groupSeriesData(this),t._groupSeriesData(this),this._dataGrouped=!0),this._valuesDirty||this.isPrivateDirty("startIndex")||this.isPrivateDirty("adjustedStartIndex")||this.isPrivateDirty("endIndex")||this.isDirty("vcx")||this.isDirty("vcy")||this._stackDirty||this._sizeDirty||this.isDirty("minBulletDistance")){let l=this.startIndex(),h=this.endIndex(),c=this.get("minBulletDistance",0);if(c>0&&i&&(i.get("renderer").axisLength()/(h-l)>c?this._showBullets=!0:this._showBullets=!1),(this._psi!=l||this._pei!=h||this.isDirty("vcx")||this.isDirty("vcy")||this.isPrivateDirty("adjustedStartIndex")||this._stackDirty||this._valuesDirty)&&!this._selectionProcessed){this._selectionProcessed=!0;let d=this.get("vcx",1),u=this.get("vcy",1),f=this.get("stacked",!1),m=this.getPrivate("outOfSelection");if(i===e||!i)if(t._calculateTotals(),this.setPrivateRaw("selectionMinY",void 0),this.setPrivateRaw("selectionMaxY",void 0),m)t.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processYSelectionDataItem(this.dataItems[g],u,f);if(i===t||!i)if(e._calculateTotals(),this.setPrivateRaw("selectionMinX",void 0),this.setPrivateRaw("selectionMaxX",void 0),m)t.markDirtySelectionExtremes();else for(let g=l;g<h;g++)this.processXSelectionDataItem(this.dataItems[g],d,f);if((i===e||!i)&&(this.get("valueYShow")!=="valueYWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinY");g!=null&&(this.setPrivateRaw("minY",g),t.markDirtyExtremes());let v=this.getPrivate("selectionMaxY");v!=null&&(this.setPrivateRaw("maxY",v),t.markDirtyExtremes())}if((i===t||!i)&&(this.get("valueXShow")!=="valueXWorking"||this.get("useSelectionExtremes"))){let g=this.getPrivate("selectionMinX");g!=null&&(this.setPrivateRaw("minX",g),t.markDirtyExtremes());let v=this.getPrivate("selectionMaxX");v!=null&&(this.setPrivateRaw("maxX",v),e.markDirtyExtremes())}(this.isPrivateDirty("selectionMinX")||this.isPrivateDirty("selectionMaxX"))&&e.markDirtySelectionExtremes(),(this.isPrivateDirty("selectionMinY")||this.isPrivateDirty("selectionMaxY"))&&t.markDirtySelectionExtremes()}}}_postUpdateData(){let e=this.get("xAxis"),t=this.get("yAxis");e._seriesValuesDirty=!0,t._seriesValuesDirty=!0,W(this.dataItems,i=>{i.open=void 0,i.close=void 0,e.processSeriesDataItem(i,this._valueXFields),t.processSeriesDataItem(i,this._valueYFields)})}_makeRangeMask(){if(this.axisRanges.length>0){let e=this._mainContainerMask;e==null&&(e=this.children.push(Re.new(this._root,{})),this._mainContainerMask=e,e.set("draw",(t,i)=>{let s=this.parent;if(s){let a=this._root.container.width(),n=this._root.container.height();t.moveTo(-a,-n),t.lineTo(-a,n*2),t.lineTo(a*2,n*2),t.lineTo(a*2,-n),t.lineTo(-a,-n),this.axisRanges.each(o=>{let A=o.axisDataItem.get("axisFill");if(s&&A){let l=A.get("draw");l&&l(t,i)}})}this.mainContainer._display.mask=e._display})),e.markDirty(),e._markDirtyKey("fill")}else this.mainContainer._display.mask=null}_updateChildren(){super._updateChildren(),this._x=this.x(),this._y=this.y(),this._makeRangeMask()}_stack(){let e=this.chart;if(e){let t=e.series.indexOf(this);if(this._couldStackTo=[],t>0){let i;for(let s=t-1;s>=0&&(i=e.series.getIndex(s),!(i.get("xAxis")===this.get("xAxis")&&i.get("yAxis")===this.get("yAxis")&&i.className===this.className&&(this._couldStackTo.push(i),!i.get("stacked"))));s--);}this._stackDataItems()}}_unstack(){Ye(this._reallyStackedTo,(e,t)=>{delete t._stackedSeries[this.uid]}),this._reallyStackedTo={},W(this.dataItems,e=>{e.setRaw("stackToItemY",void 0),e.setRaw("stackToItemX",void 0)})}_handleRemoved(){let e=this.get("xAxis");e&&e._handleSeriesRemoved();let t=this.get("yAxis");t&&t._handleSeriesRemoved()}_stackDataItems(){let e=this.get("baseAxis"),t=this.get("xAxis"),i=this.get("yAxis"),s,a;e===t?(s="valueY",a="stackToItemY"):e===i&&(s="valueX",a="stackToItemX");let n=this._couldStackTo.length,o=0,A=this.get("stackToNegative");this._reallyStackedTo={},W(this.dataItems,l=>{for(let h=0;h<n;h++){let c=this._couldStackTo[h],d=c.dataItems[o],u=l.get(s);if(d){let f=d.get(s);if(A)if(j(u)){if(j(f)){if(h==n-1&&l.setRaw(a,void 0),u>=0&&f>=0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}if(u<0&&f<0){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}else break;else if(j(u)&&j(f)){l.setRaw(a,d),this._reallyStackedTo[c.uid]=c,c._stackedSeries[this.uid]=this;break}}}o++})}processXSelectionDataItem(e,t,i){W(this.__valueXShowFields,s=>{let a=e.get(s);a!=null&&(i&&(a+=this.getStackedXValueWorking(e,s)),this._min("selectionMinX",a),this._max("selectionMaxX",a*t))})}processYSelectionDataItem(e,t,i){W(this.__valueYShowFields,s=>{let a=e.get(s);a!=null&&(i&&(a+=this.getStackedYValueWorking(e,s)),this._min("selectionMinY",a),this._max("selectionMaxY",a*t))})}getStackedYValueWorking(e,t){let i=e.get("stackToItemY");if(i){let s=i.component;return i.get(t,0)*s.get("vcy",1)+this.getStackedYValueWorking(i,t)}return 0}getStackedXValueWorking(e,t){let i=e.get("stackToItemX");if(i){let s=i.component;return i.get(t,0)*s.get("vcx",1)+this.getStackedXValueWorking(i,t)}return 0}getStackedYValue(e,t){let i=e.get("stackToItemY");return i?i.get(t,0)+this.getStackedYValue(i,t):0}getStackedXValue(e,t){let i=e.get("stackToItemX");return i?i.get(t,0)+this.getStackedXValue(i,t):0}createLegendMarker(e){this.updateLegendMarker()}_markDirtyAxes(){this._axesDirty=!0,this.markDirty()}_markDataSetDirty(){this._afterDataChange(),this._valuesDirty=!0,this._dataProcessed=!1,this._aggregatesCalculated=!1,this.markDirty()}_clearDirty(){super._clearDirty(),this._axesDirty=!1,this._selectionProcessed=!1,this._stackDirty=!1,this._dataProcessed=!1}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem,s=e.get("locationX",i.get("locationX",.5)),a=e.get("locationY",i.get("locationY",.5)),n=this.get("xAxis"),o=this.get("yAxis"),A=this.get("exactLocationX",!1),l=this.get("exactLocationY",!1),h=n.getDataItemPositionX(i,this._xField,s,this.get("vcx",1),A),c=o.getDataItemPositionY(i,this._yField,a,this.get("vcy",1),l),d=this.getPoint(h,c),u=i.get("left",d.x),f=i.get("right",d.x),m=i.get("top",d.y),g=i.get("bottom",d.y),v=0,B=0,w=f-u,_=g-m;if(this._shouldShowBullet(h,c)){t.setPrivate("visible",!e.getPrivate("hidden"));let L=e.get("field"),k=this.get("baseAxis"),D=this.get("xAxis"),E=this.get("yAxis");if(L!=null){let I;k==D?(L=="value"?I=this._yField:L=="open"?I=this._yOpenField:L=="high"?I=this._yHighField:L=="low"&&(I=this._yLowField),I&&(c=E.getDataItemPositionY(i,I,0,this.get("vcy",1),l),d=this._yRenderer.positionToPoint(c),B=d.y,v=u+w*s)):(L=="value"?I=this._xField:L=="open"?I=this._xOpenField:L=="high"?I=this._xHighField:L=="low"&&(I=this._xLowField),I&&(h=D.getDataItemPositionX(i,I,0,this.get("vcx",1),A),d=this._xRenderer.positionToPoint(h),v=d.x,B=g-_*a))}else v=u+w*s,B=g-_*a;let O=e.get("stacked");if(O){let I=this.chart;if(k==D){let M=this._bullets[h+"_"+c];if(M){let S=M.bounds(),P=t.localBounds(),Y=B;B=S.top,O=="down"?B=S.bottom-P.top:O=="auto"?I&&(Y<I.plotContainer.height()/2?B=S.bottom-P.top:B+=P.bottom):B+=P.bottom}this._bullets[h+"_"+c]=t}else{let M=this._bullets[h+"_"+c];if(M){let S=M.bounds(),P=t.localBounds(),Y=v;v=S.right,O=="down"?v=S.left-P.right:O=="auto"?I&&(Y<I.plotContainer.width()/2?v=S.left-P.right:v-=P.left):v-=P.left}this._bullets[h+"_"+c]=t}}t.isType("Label")&&(t.setPrivate("maxWidth",Math.abs(w)),t.setPrivate("maxHeight",Math.abs(_))),t.setAll({x:v,y:B})}else t.setPrivate("visible",!1)}}_shouldShowBullet(e,t){return this._showBullets}setDataSet(e){if(this._dataSets[e]){this._handleDataSetChange(),this._dataItems=this._dataSets[e],this._markDataSetDirty(),this._dataSetId=e;let t="datasetchanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this,id:e})}}resetGrouping(){Ye(this._dataSets,(e,t)=>{t!=this._mainDataItems&&W(t,i=>{i.dispose()})}),this._dataSets={},this._dataItems=this.mainDataItems}_handleDataSetChange(){W(this._dataItems,e=>{let t=e.bullets;t&&W(t,i=>{if(i){let s=i.get("sprite");s&&s.setPrivate("visible",!1)}})}),this._selectionProcessed=!1}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return Ze(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.show.call(this,e).then(()=>{this._isShowing=!1;let s=this.get("xAxis"),a=this.get("yAxis"),n=this.get("baseAxis");a!==n&&a.markDirtySelectionExtremes(),s!==n&&s.markDirtySelectionExtremes()})),i.push(this.bulletsContainer.show(e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return Ze(this,void 0,void 0,function*(){this._fixVC();let i=[];i.push(t.hide.call(this,e).then(()=>{this._isHiding=!1})),i.push(this.bulletsContainer.hide(e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];j(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing");W(this._valueFields,n=>{s.push(e.animate({key:n+"Working",to:e.get(n),duration:t,easing:a}).waitForStop())}),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.lookup("hidden");a||(a=this.states.create("hidden",{})),j(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let n=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),o=this.get("xAxis"),A=this.get("yAxis"),l=this.get("baseAxis"),h=this.get("stacked");if((l===o||!l)&&W(this._valueYFields,c=>{let d=A.getPrivate("min"),u=A.baseValue();j(d)&&d>u&&(u=d),h&&(u=0),e.get(c)!=null&&s.push(e.animate({key:c+"Working",to:u,duration:t,easing:n}).waitForStop())}),l===A||!l){let c=o.getPrivate("min"),d=o.baseValue();j(c)&&c>d&&(d=c),h&&(d=0),W(this._valueXFields,u=>{e.get(u)!=null&&s.push(e.animate({key:u+"Working",to:d,duration:t,easing:n}).waitForStop())})}yield Promise.all(s)})}_markDirtyStack(){this._stackDirty=!0,this.markDirty(),this._markStakedDirtyStack()}_markStakedDirtyStack(){let e=this._stackedSeries;e&&Ye(e,(t,i)=>{i._stackDirty||i._markDirtyStack()})}_afterChanged(){super._afterChanged(),this._skipped&&(this._markDirtyAxes(),this._skipped=!1)}showDataItemTooltip(e){this.getPrivate("doNotUpdateLegend")||(this.updateLegendMarker(e),this.updateLegendValue(e));let t=this.get("tooltip"),i=this.get("exactLocationX",!1),s=this.get("exactLocationY",!1);if(t)if(!this.isHidden()&&this.get("visible")){if(t._setDataItem(e),e){let a=this.get("locationX",0),n=this.get("locationY",1),o=e.get("locationX",a),A=e.get("locationY",n),l=this.get("xAxis"),h=this.get("yAxis"),c=this.get("vcx",1),d=this.get("vcy",1),u=l.getDataItemPositionX(e,this._tooltipFieldX,this._aLocationX0+(this._aLocationX1-this._aLocationX0)*o,c,i),f=h.getDataItemPositionY(e,this._tooltipFieldY,this._aLocationY0+(this._aLocationY1-this._aLocationY0)*A,d,s),m=this.getPoint(u,f),g=!0;if(W(this._valueFields,v=>{e.get(v)==null&&(g=!1)}),g){let v=this.chart;v&&v.inPlot(m)?(t.label.text.markDirtyText(),t.set("tooltipTarget",this._getTooltipTarget(e)),t.set("pointTo",this._display.toGlobal({x:m.x,y:m.y}))):t._setDataItem(void 0)}else t._setDataItem(void 0)}}else this.hideTooltip()}hideTooltip(){let e=this.get("tooltip");return e&&e.set("tooltipTarget",this),super.hideTooltip()}_getTooltipTarget(e){if(this.get("seriesTooltipTarget")=="bullet"){let t=e.bullets;if(t&&t.length>0){let s=t[0].get("sprite");if(s)return s}}return this}updateLegendValue(e){let t=this.get("legendDataItem");if(t){let i=t.get("label");if(i){let a="";e?(i._setDataItem(e),a=this.get("legendLabelText",i.get("text",this.get("name","")))):(i._setDataItem(this._emptyDataItem),a=this.get("legendRangeLabelText",this.get("legendLabelText",i.get("text",this.get("name",""))))),i.set("text",a)}let s=t.get("valueLabel");if(s){let a="";e?(s._setDataItem(e),a=this.get("legendValueText",s.get("text",""))):(s._setDataItem(this._emptyDataItem),a=this.get("legendRangeValueText",s.get("text",""))),s.set("text",a)}}}_getItemReaderLabel(){let e="X: {"+this._xField;return this.get("xAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}; Y: {"+this._yField,this.get("yAxis").isType("DateAxis")&&(e+=".formatDate()"),e+="}",e}getPoint(e,t){let i=this._xRenderer.positionToCoordinate(e),s=this._yRenderer.positionToCoordinate(t),a=999999999;return s<-a?s=-a:s>a&&(s=a),i<-a?i=-a:i>a&&(i=a),{x:i,y:s}}_shouldInclude(e){return!0}handleCursorHide(){this.hideTooltip(),this.updateLegendValue(void 0),this.updateLegendMarker(void 0)}_afterDataChange(){super._afterDataChange(),this.get("xAxis")._markDirtyKey("start"),this.get("yAxis")._markDirtyKey("start"),this.resetExtremes()}resetExtremes(){this.setPrivate("selectionMinX",void 0),this.setPrivate("selectionMaxX",void 0),this.setPrivate("selectionMinY",void 0),this.setPrivate("selectionMaxY",void 0),this.setPrivate("minX",void 0),this.setPrivate("minY",void 0),this.setPrivate("maxX",void 0),this.setPrivate("maxY",void 0)}createAxisRange(e){return this.axisRanges.push({axisDataItem:e})}get mainDataItems(){return this._mainDataItems}_adjustStartIndex(e){let t=this.get("xAxis");if(this.get("baseAxis")==t&&t.isType("DateAxis")){let s=t.baseDuration(),a=t.getPrivate("selectionMin",t.getPrivate("min",0)),n=s*this.get("locationX",.5),o=-1/0;for(;o<a;){let A=this.dataItems[e];if(A){let l=A.open;if(l?o=l.valueX:o=A.get("valueX",0),o+=n,o<a)e++;else break}else break}}return e}};Ls.className="XYSeries";Ls.classNames=_i.classNames.concat([Ls.className]);var Yn=class r extends Ls{constructor(){super(...arguments),this._ph=0,this._pw=0,this._columnsUpdated=!1}_makeGraphics(e,t){return this.makeColumn(t,e)}_makeFieldNames(){super._makeFieldNames();let e=this.get("xAxis"),t=this.get("yAxis"),i="CategoryAxis",s="ValueAxis";e.isType(i)&&(this.get("openCategoryXField")||(this._xOpenField=this._xField)),e.isType(s)&&(this.get("openValueXField")||(this._xOpenField=this._xField)),t.isType(i)&&(this.get("openCategoryYField")||(this._yOpenField=this._yField)),t.isType(s)&&(this.get("openValueYField")||(this._yOpenField=this._yField))}_prepareChildren(){super._prepareChildren();let e=this.get("xAxis"),t=this.get("yAxis"),i=this.dataItems.length,s=Math.max(0,this.startIndex()-2),a=Math.min(this.endIndex()+2,i-1);if(e.inited&&t.inited)for(let n=s;n<=a;n++){let o=this.dataItems[n];this._createGraphics(o)}}_updateChildren(){let e=this.chart;e&&(this._ph=e.plotContainer.height(),this._pw=e.plotContainer.width());let t=this.get("xAxis"),i=this.get("yAxis"),s=this.get("baseAxis"),a=this.columns.template;this.isDirty("fill")&&a.get("fill")==null&&a.set("fill",this.get("fill")),this.isDirty("fillPattern")&&a.get("fillPattern")==null&&a.set("fillPattern",this.get("fillPattern")),this.isDirty("stroke")&&a.get("stroke")==null&&a.set("stroke",this.get("stroke"));let n=0,o=0,A=0;s&&W(s.series,m=>{if(m instanceof r){let g=m.get("stacked");g&&A==0&&o++,!g&&m.get("clustered")&&o++}m===this&&(n=o-1),A++}),this.get("clustered")||(n=0,o=1),o===0&&(o=1,n=0);let l="cellStartLocation",h="cellEndLocation",c=this._xRenderer.get(l,0),d=this._xRenderer.get(h,1),u=this._yRenderer.get(l,0),f=this._yRenderer.get(h,1);if(this._aLocationX0=c+n/o*(d-c),this._aLocationX1=c+(n+1)/o*(d-c),this._aLocationY0=u+n/o*(f-u),this._aLocationY1=u+(n+1)/o*(f-u),t.inited&&i.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty){let m=this.dataItems.length,g=Math.max(0,this.startIndex()-2),v=Math.min(this.endIndex()+2,m-1);for(let _=0;_<g;_++)this._toggleColumn(this.dataItems[_],!1);let B=this.dataItems[g];for(let _=g;_<=v;_++){let L=this.dataItems[_];if(L.get("valueX")!=null&&L.get("valueY")!=null){if(B=L,_>0&&g>0)for(let k=_-1;k>=0;k--){let D=this.dataItems[k];if(D.get("valueX")!=null&&D.get("valueY")!=null){B=D;break}}break}else this._toggleColumn(L,!1)}this._beforeColumnsDraw();let w=0;i.isType("CategoryAxis")&&t.isType("CategoryAxis")?w=2:t===s?w=0:i===s&&(w=1);for(let _=g;_<=v;_++){let L=this.dataItems[_];this._updateGraphics(L,B,w),L.get("valueX")!=null&&L.get("valueY")!=null&&(B=L)}this._afterColumnsDraw();for(let _=v+1;_<m;_++)this._toggleColumn(this.dataItems[_],!1);this._columnsUpdated=!0}}else this._skipped=!0;this.getPrivate("doNotUpdateLegend")||this.updateLegendMarker(this.get("tooltipDataItem")),super._updateChildren()}_afterChanged(){super._afterChanged(),this._columnsUpdated=!1}_beforeColumnsDraw(){}_afterColumnsDraw(){}_createGraphics(e){let t=e.get("graphics");if(!t){t=this._makeGraphics(this.columns,e),e.set("graphics",t),t._setDataItem(e);let i=e.get("legendDataItem");if(i){let a=i.get("markerRectangle");if(a){let n=a.states.lookup("default");W(tc,o=>{let A=t.get(o,this.get(o));a.set(o,A),n.set(o,A)})}}let s=e.get("rangeGraphics");s&&W(s,a=>{a.dispose()}),s=[],e.setRaw("rangeGraphics",s),this.axisRanges.each(a=>{let n=a.container,o=this._makeGraphics(a.columns,e);s&&s.push(o),o.setPrivate("list",a.columns),n.children.push(o)})}}createAxisRange(e){return W(this.dataItems,t=>{let i=t.get("graphics");i&&(i.dispose(),t.set("graphics",void 0))}),super.createAxisRange(e)}_updateGraphics(e,t,i){let s=e.get("graphics"),a=this._xField,n=this._yField,o=e.get(a),A=e.get(n),l=this.get("exactLocationX",!1);if(o!=null&&A!=null){let h=this._xOpenField,c=this._yOpenField,d=this.get("locationX",e.get("locationX",.5)),u=this.get("locationY",e.get("locationY",.5)),f=this.get("openLocationX",e.get("openLocationX",d)),m=this.get("openLocationY",e.get("openLocationY",u)),g=s.get("width"),v=s.get("height"),B=this.get("stacked"),w=this.get("xAxis"),_=this.get("yAxis"),L=w.get("start"),k=w.get("end"),D=_.get("start"),E=_.get("end"),O,I,M,S,P=this.get("vcy",1),Y=this.get("vcx",1),G=!1,ie=!1;if(i==0){let ne=this._aLocationX0+f-.5,z=this._aLocationX1+d-.5;if(g instanceof Oe){let K=(z-ne)*(1-g.value)/2;ne+=K,z-=K}if(O=w.getDataItemPositionX(e,h,ne,Y,l),I=w.getDataItemPositionX(e,a,z,Y,l),M=_.getDataItemPositionY(e,n,u,P),this._yOpenField!==this._yField)S=_.getDataItemPositionY(e,c,m,P);else if(B){let K=e.get("stackToItemY");K?S=_.getDataItemPositionY(K,n,m,K.component.get("vcy")):S=_.basePosition()}else S=_.basePosition();e.setRaw("point",{x:O+(I-O)/2,y:M}),ie=!0}else if(i==1){let ne=this._aLocationY0+m-.5,z=this._aLocationY1+u-.5;if(v instanceof Oe){let K=(z-ne)*(1-v.value)/2;ne+=K,z-=K}if(M=_.getDataItemPositionY(e,c,ne,P),S=_.getDataItemPositionY(e,n,z,P),I=w.getDataItemPositionX(e,a,d,Y,l),this._xOpenField!==this._xField)O=w.getDataItemPositionX(e,h,f,Y,l);else if(B){let K=e.get("stackToItemX");K?O=w.getDataItemPositionX(K,a,f,K.component.get("vcx"),l):O=w.basePosition()}else O=w.basePosition();G=!0,e.setRaw("point",{x:I,y:M+(S-M)/2})}else if(i==2){let ne=this._aLocationX0+f-.5,z=this._aLocationX1+d-.5;if(g instanceof Oe){let K=(z-ne)*(1-g.value)/2;ne+=K,z-=K}if(O=w.getDataItemPositionX(e,h,ne,Y),I=w.getDataItemPositionX(e,a,z,Y),ne=this._aLocationY0+m-.5,z=this._aLocationY1+u-.5,v instanceof Oe){let K=(z-ne)*(1-v.value)/2;ne+=K,z-=K}M=_.getDataItemPositionY(e,c,ne,P),S=_.getDataItemPositionY(e,n,z,P),e.setRaw("point",{x:O+(I-O)/2,y:M+(S-M)/2})}this._applyGraphicsStates(e,t),this._updateSeriesGraphics(e,s,O,I,M,S,G,ie),O<L&&I<L||O>k&&I>k||M<D&&S<=D||M>=E&&S>E||hs(O)||hs(M)?this._toggleColumn(e,!1):this._toggleColumn(e,!0);let J=e.get("rangeGraphics");J&&W(J,ne=>{this._updateSeriesGraphics(e,ne,O,I,M,S,G,ie)})}else this._toggleColumn(e,!1)}_updateSeriesGraphics(e,t,i,s,a,n,o,A){let l=t.get("width"),h=t.get("height"),c=t.get("maxWidth"),d=t.get("maxHeight"),u=this.getPoint(i,a),f=this.getPoint(s,n),m=e.get("point");if(m){let g=this.getPoint(m.x,m.y);m.x=g.x+this._x,m.y=g.y+this._y}if(i=u.x,s=f.x,a=u.y,n=f.y,j(l)){let g=(s-i-l)/2;i+=g,s-=g}if(j(c)&&c<Math.abs(s-i)){let g=(s-i-c)/2;i+=g,s-=g}if(j(h)){let g=(n-a-h)/2;a+=g,n-=g}if(j(d)&&d<Math.abs(n-a)){let g=(n-a-d)/2;a+=g,n-=g}this.get("adjustBulletPosition")&&(o&&(s=Math.min(Math.max(0,s),this._pw),i=Math.min(Math.max(0,i),this._pw)),A&&(a=Math.min(Math.max(0,a),this._ph),n=Math.min(Math.max(0,n),this._ph))),e.setRaw("left",i),e.setRaw("right",s),e.setRaw("top",a),e.setRaw("bottom",n),t.setPrivate("width",s-i),t.setPrivate("height",n-a),t.set("x",i),t.set("y",n-(n-a))}_handleDataSetChange(){super._handleDataSetChange(),W(this._dataItems,e=>{this._toggleColumn(e,!1)})}_applyGraphicsStates(e,t){let i=e.get("graphics"),s=i.states.lookup("dropFromOpen"),a=i.states.lookup("riseFromOpen"),n=i.states.lookup("dropFromPrevious"),o=i.states.lookup("riseFromPrevious");if(s||n||a||o){let A=this.get("xAxis"),l=this.get("yAxis"),h=this.get("baseAxis"),c,d,u;h===A&&l.isType("ValueAxis")?(c=e.get(this._yOpenField),d=e.get(this._yField),u=t.get(this._yField)):h===l&&A.isType("ValueAxis")&&(c=e.get(this._xOpenField),d=e.get(this._xField),u=t.get(this._xField)),j(c)&&j(d)&&(d<c?s&&s.apply():a&&a.apply(),j(u)&&(d<u?n&&n.apply():o&&o.apply()))}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("graphics");t&&(this.columns.removeValue(t),t.dispose());let i=e.get("rangeGraphics");i&&W(i,s=>{let a=s.getPrivate("list");a&&a.removeValue(s),s.dispose()})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=e.get("graphics");a&&s.push(a.hide(t));let n=e.get("rangeGraphics");n&&W(n,o=>{s.push(o.hide(t))}),yield Promise.all(s)})}_toggleColumn(e,t){let i=e.get("graphics");i&&i.setPrivate("visible",t);let s=e.get("rangeGraphics");s&&W(s,n=>{n.setPrivate("visible",t)});let a=e.bullets;a&&W(a,n=>{n.setPrivate("hidden",!t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Ze(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)],a=e.get("graphics");a&&s.push(a.show(t));let n=e.get("rangeGraphics");n&&W(n,o=>{s.push(o.show(t))}),yield Promise.all(s)})}updateLegendMarker(e){let t=this.get("legendDataItem");if(this.get("useLastColorForLegendMarker")&&!e){let i=this.dataItems[this.endIndex()-1];i&&(e=i)}if(t){let i=this.columns.template;if(e){let a=e.get("graphics");a&&(i=a)}let s=t.get("markerRectangle");if(s&&!t.get("itemContainer").get("disabled")){let a=s.states.lookup("default");W(tc,n=>{let o=i.get(n,this.get(n));s.set(n,o),a.set(n,o)})}}}_getTooltipTarget(e){if(this.get("seriesTooltipTarget")=="bullet")return super._getTooltipTarget(e);let t=e.get("graphics");return t||this}};Yn.className="BaseColumnSeries";Yn.classNames=Ls.classNames.concat([Yn.className]);var Er=class extends ve{constructor(){super(...arguments),this._alwaysShow=!1,this.lineX=this.children.push(Da.new(this._root,{themeTags:["x"]})),this.lineY=this.children.push(Da.new(this._root,{themeTags:["y"]})),this.selection=this.children.push(Re.new(this._root,{themeTags:["selection","cursor"],layer:30})),this._lastPoint={x:0,y:0},this._lastPoint2={x:0,y:0},this._tooltipX=!1,this._tooltipY=!1}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["xy","cursor"]),super._afterNew(),this.setAll({width:Ae,height:Ae,isMeasured:!0,position:"absolute"}),this.states.create("hidden",{visible:!0,opacity:0}),this._drawLines(),this.setPrivateRaw("visible",!1),this._disposers.push(this.setTimeout(()=>{this.setPrivate("visible",!0)},500)),this._disposers.push(this.lineX.events.on("positionchanged",()=>{this._handleXLine()})),this._disposers.push(this.lineY.events.on("positionchanged",()=>{this._handleYLine()})),this._disposers.push(this.lineX.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineX.events.on("blur",()=>this._handleLineBlur())),this._disposers.push(this.lineY.events.on("focus",()=>this._handleLineFocus())),this._disposers.push(this.lineY.events.on("blur",()=>this._handleLineBlur())),Ir("keyboardevents")&&this._disposers.push(Zt(document,"keydown",e=>{this._handleLineMove(Uo(e),e.ctrlKey)}))}_setUpTouch(){let e=this.chart;e&&(e.plotContainer._display.cancelTouch=this.get("behavior")!="none")}_handleXLine(){let e=this.lineX.x(),t=!0;(e<0||e>this.width())&&(t=!1),this.lineX.setPrivate("visible",t)}_handleYLine(){let e=this.lineY.y(),t=!0;(e<0||e>this.height())&&(t=!1),this.lineY.setPrivate("visible",t)}_handleLineMove(e,t){let i="",s=this.chart,a;if(s&&s.xAxes.length){this._root.focused(this.lineX)?(i="positionX",a=s.xAxes.getIndex(0)):this._root.focused(this.lineY)&&(a=s.yAxes.getIndex(0),i="positionY");let n=1;if(t&&(n=5),a){let o=a.get("renderer").get("inversed",!1),A;e=="ArrowRight"||e=="ArrowDown"?A=1:e=="ArrowLeft"||e=="ArrowUp"?A=-1:e=="Tab"&&(A=0),A!=null&&(o&&(A*=-1),this.set(i,a.nextPosition(A*n)))}}}_handleLineFocus(){this._alwaysShow=this.get("alwaysShow",!1),this.setAll({positionX:this.getPrivate("positionX",0),positionY:this.getPrivate("positionY",0),alwaysShow:!0}),this._handleLineMove("Tab")}_handleLineBlur(){(this.lineX.isFocus()||this.lineY.isFocus())&&this.setAll({positionX:void 0,positionY:void 0,alwaysShow:this._alwaysShow})}_prepareChildren(){if(super._prepareChildren(),this.isDirty("xAxis")){this._tooltipX=!1;let e=this.get("xAxis");if(e){let t=e.get("tooltip");t&&(this._tooltipX=!0,this._disposers.push(t.on("pointTo",()=>{this._updateXLine(t)})))}}if(this.isDirty("yAxis")){this._tooltipY=!1;let e=this.get("yAxis");if(e){let t=e.get("tooltip");t&&(this._tooltipY=!0,this._disposers.push(t.on("pointTo",()=>{this._updateYLine(t)})))}}}_handleSyncWith(){let e=this.chart;if(e){let t=this.get("syncWith"),i=[];t&&W(t,s=>{let a=s.chart;a&&i.push(a)}),e._otherCharts=i}}_updateChildren(){if(super._updateChildren(),this._handleSyncWith(),this.isDirty("positionX")||this.isDirty("positionY")){let e=this.get("positionX"),t=this.get("positionY");e==null&&t==null?this.hide(0):(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0))),this.handleMove())}}_updateXLine(e){let t=di(this._display.toLocal(e.get("pointTo",{x:0,y:0})).x,3);this._toX!=t&&(this.lineX.animate({key:"x",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toX=t)}_updateYLine(e){let t=di(this._display.toLocal(e.get("pointTo",{x:0,y:0})).y,3);this._toY!=t&&(this.lineY.animate({key:"y",to:t,duration:e.get("animationDuration",0),easing:e.get("animationEasing")}),this._toY=t)}_drawLines(){this.lineX.set("draw",e=>{e.moveTo(0,0),e.lineTo(0,this.height())}),this.lineY.set("draw",e=>{e.moveTo(0,0),e.lineTo(this.width(),0)})}updateCursor(){this.get("alwaysShow")&&(this._movePoint=this.toGlobal(this._getPoint(this.get("positionX",0),this.get("positionY",0)))),this.handleMove()}_setChart(e){this.chart=e,this._handleSyncWith();let t=e.plotContainer;this.events.on("boundschanged",()=>{this._disposers.push(this.setTimeout(()=>{this.updateCursor()},50))}),Ir("touchevents")&&(this._disposers.push(t.events.on("click",s=>{Yl(s.originalEvent)&&this._handleMove(s)})),this._setUpTouch()),this._disposers.push(t.events.on("pointerdown",s=>{this._handleCursorDown(s)})),this._disposers.push(t.events.on("globalpointerup",s=>{this._handleCursorUp(s),!s.native&&!this.isHidden()&&this._handleMove(s)})),this._disposers.push(t.events.on("globalpointermove",s=>{!this.get("syncWith")&&$i(t._downPoints).length==0&&!s.native&&this.isHidden()||(this._handleMove(s),Math.hypot(this._lastPoint2.x-s.point.x,this._lastPoint2.y-s.point.y)>1&&(this._handleLineBlur(),this._lastPoint2=s.point))}));let i=this.parent;i&&i.children.moveValue(this.selection)}_inPlot(e){let t=this.chart;return t?t.inPlot(e):!1}_handleCursorDown(e){if(e.originalEvent.button==2)return;let t=e.point,i=this._display.toLocal(t),s=this.chart;if(this.selection.set("draw",()=>{}),s&&this._inPlot(i)){if(this._downPoint=i,this.get("behavior")!="none"){this.selection.show();let o="selectstarted";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this,originalEvent:e.originalEvent})}let a=this._getPosition(i).x,n=this._getPosition(i).y;this.setPrivate("downPositionX",a),this.setPrivate("downPositionY",n)}}_handleCursorUp(e){if(this._downPoint){let t=this.get("behavior","none");if(t!="none"){t.charAt(0)==="z"&&this.selection.hide();let i=e.point,s=this._display.toLocal(i),a=this._downPoint,n=this.get("moveThreshold",1);if(s&&a){let o=!1;if((t==="zoomX"||t==="zoomXY"||t==="selectX"||t==="selectXY")&&Math.abs(s.x-a.x)>n&&(o=!0),(t==="zoomY"||t==="zoomXY"||t==="selectY"||t==="selectXY")&&Math.abs(s.y-a.y)>n&&(o=!0),o){let A="selectended";this.events.isEnabled(A)&&this.events.dispatch(A,{type:A,target:this,originalEvent:e.originalEvent})}else{let A="selectcancelled";this.events.isEnabled(A)&&this.events.dispatch(A,{type:A,target:this,originalEvent:e.originalEvent})}}}}this._downPoint=void 0}_handleMove(e){if(this.getPrivate("visible")){let t=this.chart;if(t&&$i(t.plotContainer._downPoints).length>1){this.set("forceHidden",!0);return}else this.set("forceHidden",!1);let i=e.point,s=this._lastPoint;if(Math.round(s.x)===Math.round(i.x)&&Math.round(s.y)===Math.round(i.y))return;this._lastPoint=i,this.setPrivate("lastPoint",i),this.handleMove({x:i.x,y:i.y},!1,e.originalEvent)}}_getPosition(e){return{x:e.x/this.width(),y:e.y/this.height()}}handleMove(e,t,i){e||(e=this._movePoint);let s=this.get("alwaysShow");if(!e){this.hide(0);return}this._movePoint=e;let a=this._display.toLocal(e),n=this.chart;if(n&&(this._inPlot(a)||this._downPoint)){n._movePoint=e,this.isHidden()&&(this.show(),this.get("behavior","").charAt(0)=="z"&&this.selection.set("draw",()=>{}));let o=a.x,A=a.y,l=this._getPosition(a);this.setPrivate("point",a);let h=this.get("snapToSeries");this._downPoint&&(h=void 0);let c=this.get("positionX"),d=l.x;j(c)&&(d=c);let u=this.get("positionY"),f=l.y;j(u)&&(f=u),this.setPrivate("positionX",d),this.setPrivate("positionY",f);let m=this._getPoint(d,f);if(o=m.x,A=m.y,n.xAxes.each(g=>{g._handleCursorPosition(d,h),s&&g.handleCursorShow()}),n.yAxes.each(g=>{g._handleCursorPosition(f,h),s&&g.handleCursorShow()}),!t){n._handleCursorPosition();let g="cursormoved";this.events.isEnabled(g)&&this.events.dispatch(g,{type:g,target:this,point:e,originalEvent:i})}this._updateLines(o,A),n.arrangeTooltips()}else if(!this._downPoint&&!s){this.hide(0);let o="cursorhidden";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this})}this._downPoint&&this.get("behavior")!="none"&&this._updateSelection(a)}_getPoint(e,t){return{x:this.width()*e,y:this.height()*t}}_updateLines(e,t){this._tooltipX||this.lineX.set("x",e),this._tooltipY||this.lineY.set("y",t),this._drawLines()}_updateSelection(e){let t=this.selection,i=this.get("behavior"),s=this.width(),a=this.height();e.x<0&&(e.x=0),e.x>s&&(e.x=s),e.y<0&&(e.y=0),e.y>a&&(e.y=a),t.set("draw",n=>{let o=this._downPoint;o&&(i==="zoomXY"||i==="selectXY"?(n.moveTo(o.x,o.y),n.lineTo(o.x,e.y),n.lineTo(e.x,e.y),n.lineTo(e.x,o.y),n.lineTo(o.x,o.y)):i==="zoomX"||i==="selectX"?(n.moveTo(o.x,0),n.lineTo(o.x,a),n.lineTo(e.x,a),n.lineTo(e.x,0),n.lineTo(o.x,0)):(i==="zoomY"||i==="selectY")&&(n.moveTo(0,o.y),n.lineTo(s,o.y),n.lineTo(s,e.y),n.lineTo(0,e.y),n.lineTo(0,o.y)))})}_onHide(){if(this.isHidden()){let e=this.chart;e&&(e.xAxes.each(t=>{t.handleCursorHide()}),e.yAxes.each(t=>{t.handleCursorHide()}),e.series.each(t=>{t.handleCursorHide()}))}super._onHide()}_onShow(){if(!this.isHidden()){let e=this.chart;e&&(e.xAxes.each(t=>{t.handleCursorShow()}),e.yAxes.each(t=>{t.handleCursorShow()}))}super._onShow()}_dispose(){super._dispose(),this.selection.dispose()}};Er.className="XYCursor";Er.classNames=ve.classNames.concat([Er.className]);var Ua=class extends Er{constructor(){super(...arguments),this._fillGenerator=jr()}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["radar","cursor"]),super._afterNew()}_handleXLine(){}_handleYLine(){}_getPosition(e){let t=Math.hypot(e.x,e.y),i=_s(Math.atan2(e.y,e.x)*zs),s=this.getPrivate("innerRadius"),a=_s(this.getPrivate("startAngle")),n=_s(this.getPrivate("endAngle"));(n<a||n==a)&&(i<a&&(i+=360),n=n+360);let o=(i-a)/(n-a);return o<0&&(o=1+o),o<.003&&(o=0),o>.997&&(o=1),{x:o,y:(t-s)/(this.getPrivate("radius")-s)}}_getPoint(e,t){let i=this.getPrivate("innerRadius"),s=this.getPrivate("startAngle"),a=this.getPrivate("endAngle"),n=this.getPrivate("radius"),o=s+e*(a-s),A=i+(n-i)*t;return{x:A*Bt(o),y:A*mt(o)}}updateLayout(){let e=this.chart;if(e){let t=e.getPrivate("radius",0);this.setPrivate("radius",tt(this.get("radius",Ae),t));let i=tt(this.get("innerRadius",e.getPrivate("innerRadius",0)),t);i<0&&(i=t+i),this.setPrivate("innerRadius",i);let s=this.get("startAngle",e.get("startAngle",-90)),a=this.get("endAngle",e.get("endAngle",270));this.setPrivate("startAngle",s),this.setPrivate("endAngle",a)}}_updateLines(e,t){this._tooltipX||this._drawXLine(e,t),this._tooltipY||this._drawYLine(e,t)}_drawXLine(e,t){let i=this.getPrivate("innerRadius"),s=this.getPrivate("radius"),a=Math.atan2(t,e);this.lineX.set("draw",n=>{n.moveTo(i*Math.cos(a),i*Math.sin(a)),n.lineTo(s*Math.cos(a),s*Math.sin(a))})}_drawYLine(e,t){let i=Math.hypot(e,t);this.lineY.set("draw",s=>{s.arc(0,0,i,this.getPrivate("startAngle",0)*ai,this.getPrivate("endAngle",0)*ai)})}_updateXLine(e){let t=e.get("pointTo");t&&(t=this._display.toLocal(t),this._drawXLine(t.x,t.y))}_updateYLine(e){let t=e.get("pointTo");t&&(t=this._display.toLocal(t),this._drawYLine(t.x,t.y))}_inPlot(e){let t=this.chart;return t?t.inPlot(e,this.getPrivate("radius"),this.getPrivate("innerRadius")):!1}_updateSelection(e){this.selection.set("draw",t=>{let i=this.get("behavior"),s=this._downPoint,a=this.getPrivate("startAngle"),n=this.getPrivate("endAngle"),o=this.getPrivate("radius"),A=this.getPrivate("innerRadius");o<A&&([o,A]=[A,o]);let l=a,h=n,c=o,d=A;s&&(i=="zoomXY"||i=="selectXY"?(l=Math.atan2(s.y,s.x)*zs,h=Math.atan2(e.y,e.x)*zs,d=Math.hypot(s.x,s.y),c=Math.hypot(e.x,e.y)):i=="zoomX"||i=="selectX"?(l=Math.atan2(s.y,s.x)*zs,h=Math.atan2(e.y,e.x)*zs):(i=="zoomY"||i=="selectY")&&(d=Math.hypot(s.x,s.y),c=Math.hypot(e.x,e.y))),d=It(d,A,o),c=It(c,A,o),l=Gg(l,a,n),h=Gg(h,a,n),l==h&&(h=l+360),l*=ai,h*=ai,this._fillGenerator.context(t),this._fillGenerator({innerRadius:d,outerRadius:c,startAngle:l+Math.PI/2,endAngle:h+Math.PI/2})})}};Ua.className="RadarCursor";Ua.classNames=Er.classNames.concat([Ua.className]);var nt=class extends Ls{constructor(){super(...arguments),this._strokeGenerator=cc(),this._fillGenerator=Pp(),this.strokes=this.addDisposer(new wt(Ke.new({}),()=>Re._new(this._root,{themeTags:Ue(this.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template]))),this.fills=this.addDisposer(new wt(Ke.new({}),()=>Re._new(this._root,{themeTags:Ue(this.strokes.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template]))),this._previousPoint=[0,0,0,0],this._dindex=0,this._sindex=0}_afterNew(){this._fillGenerator.y0(function(e){return e[3]}),this._fillGenerator.x0(function(e){return e[2]}),this._fillGenerator.y1(function(e){return e[1]}),this._fillGenerator.x1(function(e){return e[0]}),super._afterNew()}makeStroke(e){let t=this.mainContainer.children.push(e.make());return e.push(t),t}makeFill(e){let t=this.mainContainer.children.push(e.make());return e.push(t),t}_updateChildren(){this._strokeTemplate=void 0,this._fillTemplate=void 0;let e=this.get("xAxis"),t=this.get("yAxis");if(this.isDirty("stroke")){let i=this.get("stroke");this.strokes.template.set("stroke",i);let s=this._legendStroke;s&&s.states.lookup("default").set("stroke",i)}if(this.isDirty("fill")){let i=this.get("fill");this.fills.template.set("fill",i);let s=this._legendFill;s&&s.states.lookup("default").set("fill",i)}if(this.isDirty("fillPattern")){let i=this.get("fillPattern");this.fills.template.set("fillPattern",i);let s=this._legendFill;s&&s.states.lookup("default").set("fillPattern",i)}if(this.isDirty("curveFactory")){let i=this.get("curveFactory");i&&(this._strokeGenerator.curve(i),this._fillGenerator.curve(i))}if(e.inited&&t.inited){if(this._axesDirty||this._valuesDirty||this._stackDirty||this.isDirty("vcx")||this.isDirty("vcy")||this._sizeDirty||this.isDirty("connect")||this.isDirty("curveFactory")){let i=this.dataItems;this.fills.each(c=>{c.setPrivate("visible",!1)}),this.strokes.each(c=>{c.setPrivate("visible",!1)}),this.axisRanges.each(c=>{let d=c.fills;d&&d.each(f=>{f.setPrivate("visible",!1)});let u=c.strokes;u&&u.each(f=>{f.setPrivate("visible",!1)})});let s=this.startIndex(),a=this.strokes.template.get("templateField"),n=this.fills.template.get("templateField"),o=!0,A=!0;a&&(o=!1),n&&(A=!1);for(let c=s-1;c>=0;c--){let d=i[c],u=!0,f=d.dataContext;a&&f[a]&&(o=!0),n&&f[n]&&(A=!0);for(let m=0,g=this._valueFields.length;m<g;m++)if(!j(d.get(this._valueFields[m]))){u=!1;break}if(u&&o&&A){s=c;break}}let l=i.length,h=this.endIndex();if(h<l){h++;for(let c=h;c<l;c++){let d=i[c],u=!0;for(let f=0,m=this._valueFields.length;f<m;f++)if(!j(d.get(this._valueFields[f]))){u=!1;break}if(u){h=c+1;break}}}if(s>0&&s--,this._endIndex=h,this._clearGraphics(),this._sindex=0,this._dindex=s,l==1)this._startSegment(0);else for(;this._dindex<h-1;)this._startSegment(this._dindex),this._sindex++}}else this._skipped=!0;super._updateChildren()}_clearGraphics(){this.strokes.clear(),this.fills.clear(),this.axisRanges.each(e=>{e.fills.clear(),e.strokes.clear()})}_startSegment(e){let t=this.dataItems,i=this._endIndex,s=i,a=this.get("autoGapCount"),n=this.get("connect"),o=this.makeFill(this.fills),A=this._fillTemplate,l=this.fills.template;A&&A!=l&&(o.template=A),o.setPrivate("visible",!0);let h=this.makeStroke(this.strokes),c=this._strokeTemplate;c&&c!=this.strokes.template&&(h.template=c),h.setPrivate("visible",!0);let d=this.get("xAxis"),u=this.get("yAxis"),f=this.get("baseAxis"),m=this.get("vcx",1),g=this.get("vcy",1),v=this._xField,B=this._yField,w=this._xOpenField,_=this._yOpenField,L=this.get("openValueXField"),k=this.get("openValueYField");L||(w=this._xField),k||(_=this._yField);let D=this.get("stacked"),E=d.basePosition(),O=u.basePosition(),I;f===u?I=this._yField:I=this._xField;let M=[],S=[];M.push(S);let P=this.strokes.template.get("templateField"),Y=this.fills.template.get("templateField"),G=this.get("locationX",.5),ie=this.get("locationY",.5),J=this.get("openLocationX",G),ne=this.get("openLocationY",ie),z=this.get("minDistance",0),K,ge=this.fills.template.get("visible");this.axisRanges.length>0&&(ge=!0);let he=!1;(D||L||k)&&(he=!0);let re={points:S,segments:M,stacked:D,getOpen:he,basePosX:E,basePosY:O,fillVisible:ge,xField:v,yField:B,xOpenField:w,yOpenField:_,vcx:m,vcy:g,baseAxis:f,xAxis:d,yAxis:u,locationX:G,locationY:ie,openLocationX:J,openLocationY:ne,minDistance:z},Me=this._strokeTemplate,Ne=this._fillTemplate;for(K=e;K<s;K++){this._dindex=K;let Ee=t[K],Ge=Ee.get(v),yt=Ee.get(B);if(Ge==null||yt==null?n||(S=[],M.push(S),re.points=S):this._getPoints(Ee,re),P){let Xe=Ee.dataContext[P];if(Xe)if(Xe instanceof Ke||(Xe=Ke.new(Xe)),this._strokeTemplate=Xe,K>e){s=K;break}else Me=Xe,h.template=Xe}if(Y){let Xe=Ee.dataContext[Y];if(Xe)if(Xe instanceof Ke||(Xe=Ke.new(Xe)),this._fillTemplate=Xe,K>e){s=K;break}else Ne=Xe,o.template=Xe}if(!n){let Xe=t[K+1];Xe&&f.shouldGap(Ee,Xe,a,I)&&(S=[],M.push(S),re.points=S)}}o.setRaw("userData",[e,K]),h.setRaw("userData",[e,K]),K===i&&this._endLine(S,M[0][0]),h&&this._drawStroke(h,M),o&&this._drawFill(o,M),this.axisRanges.each(Ee=>{let Ge=Ee.container,yt=Ee.fills,Xe=this.makeFill(yt);Ge&&Ge.children.push(Xe),Xe.setPrivate("visible",!0),this._drawFill(Xe,M);let Mi=Ee.strokes,oi=this.makeStroke(Mi);Ge&&Ge.children.push(oi),Me&&Me!=this.strokes.template&&(oi.template=Me),Ne&&Ne!=this.fills.template&&(Xe.template=Ne),oi.setPrivate("visible",!0),this._drawStroke(oi,M),Xe.setRaw("userData",[e,K]),oi.setRaw("userData",[e,K])})}_getPoints(e,t){let i=t.points,s=e.get("locationX",t.locationX),a=e.get("locationY",t.locationY),n=this.get("exactLocationX",!1),o=this.get("exactLocationY",!1),A=t.xAxis.getDataItemPositionX(e,t.xField,s,t.vcx,n),l=t.yAxis.getDataItemPositionY(e,t.yField,a,t.vcy,o);if(this._shouldInclude(A)){let h=this.getPoint(A,l),c=[h.x,h.y];if(h.x+=this._x,h.y+=this._y,e.set("point",h),t.fillVisible){let d=A,u=l;if(t.baseAxis===t.xAxis?u=t.basePosY:t.baseAxis===t.yAxis&&(d=t.basePosX),t.getOpen){let m=e.get(t.xOpenField),g=e.get(t.yOpenField);if(m!=null&&g!=null){let v=e.get("openLocationX",t.openLocationX),B=e.get("openLocationY",t.openLocationY);if(t.stacked){let w=e.get("stackToItemX"),_=e.get("stackToItemY");w?(d=t.xAxis.getDataItemPositionX(w,t.xField,v,w.component.get("vcx"),n),hs(d)&&(d=t.basePosX)):t.yAxis===t.baseAxis?d=t.basePosX:d=t.xAxis.getDataItemPositionX(e,t.xOpenField,v,t.vcx,n),_?(u=t.yAxis.getDataItemPositionY(_,t.yField,B,_.component.get("vcy"),o),hs(u)&&(u=t.basePosY)):t.xAxis===t.baseAxis?u=t.basePosY:u=t.yAxis.getDataItemPositionY(e,t.yOpenField,B,t.vcy,o)}else d=t.xAxis.getDataItemPositionX(e,t.xOpenField,v,t.vcx,n),u=t.yAxis.getDataItemPositionY(e,t.yOpenField,B,t.vcy,o)}}let f=this.getPoint(d,u);c[2]=f.x,c[3]=f.y}if(t.minDistance>0){let d=c[0],u=c[1],f=c[2],m=c[3],g=this._previousPoint,v=g[0],B=g[1],w=g[2],_=g[3];(Math.hypot(d-v,u-B)>t.minDistance||f&&m&&Math.hypot(f-w,m-_)>t.minDistance)&&(i.push(c),this._previousPoint=c)}else i.push(c)}}_endLine(e,t){}_drawStroke(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",i=>{W(t,s=>{this._strokeGenerator.context(i),this._strokeGenerator(s)})})}_drawFill(e,t){e.get("visible")&&!e.get("forceHidden")&&e.set("draw",i=>{W(t,s=>{this._fillGenerator.context(i),this._fillGenerator(s)})})}_processAxisRange(e){super._processAxisRange(e),e.fills=new wt(Ke.new({}),()=>Re._new(this._root,{themeTags:Ue(e.fills.template.get("themeTags",[]),["line","series","fill"])},[this.fills.template,e.fills.template])),e.strokes=new wt(Ke.new({}),()=>Re._new(this._root,{themeTags:Ue(e.strokes.template.get("themeTags",[]),["line","series","stroke"])},[this.strokes.template,e.strokes.template]))}createLegendMarker(e){let t=this.get("legendDataItem");if(t){let i=t.get("marker"),s=t.get("markerRectangle");s&&s.setPrivate("visible",!1),i.set("background",Xt.new(i._root,{fillOpacity:0,fill:us(0)}));let a=i.children.push(Re._new(i._root,{themeTags:["line","series","legend","marker","stroke"],interactive:!1},[this.strokes.template]));this._legendStroke=a;let n=i.children.push(Re._new(i._root,{themeTags:["line","series","legend","marker","fill"]},[this.fills.template]));this._legendFill=n;let o=this._root.interfaceColors.get("disabled");if(a.states.create("disabled",{fill:o,stroke:o}),n.states.create("disabled",{fill:o,stroke:o}),this.bullets.length>0){let A=this.bullets.getIndex(0);if(A){let l=A(i._root,this,new Ui(this,{legend:!0},{}));if(l){let h=l.get("sprite");h instanceof Re&&h.states.create("disabled",{fill:o,stroke:o}),h&&(h.setAll({tooltipText:void 0,tooltipHTML:void 0,focusable:void 0,focusableGroup:void 0,ariaLabel:void 0}),i.children.push(h),h.setAll({x:i.width()/2,y:i.height()/2}),i.events.on("boundschanged",()=>{h.setAll({x:i.width()/2,y:i.height()/2})}))}}}}}};nt.className="LineSeries";nt.classNames=Ls.classNames.concat([nt.className]);var Qa=class extends nt{_afterNew(){super._afterNew(),this.set("maskContent",!1),this.bulletsContainer.set("maskContent",!1),this.bulletsContainer.set("mask",Re.new(this._root,{}))}_handleMaskBullets(){}getPoint(e,t){let i=this.get("yAxis"),s=this.get("xAxis"),a=i.get("renderer"),n=a.positionToCoordinate(t)+a.getPrivate("innerRadius",0),A=s.get("renderer").positionToAngle(e);return{x:n*Bt(A),y:n*mt(A)}}_endLine(e,t){this.get("connectEnds")&&t&&e.push(t)}_shouldInclude(e){let t=this.get("xAxis");return!(e<t.get("start")||e>t.get("end"))}_shouldShowBullet(e,t){let i=this.get("xAxis");return e<i.get("start")||e>i.get("end")?!1:this._showBullets}_positionBullet(e){let t=e.get("sprite");if(t){let i=t.dataItem,s=e.get("locationX",i.get("locationX",.5)),a=e.get("locationY",i.get("locationY",.5)),n=this.get("xAxis"),o=this.get("yAxis"),A=n.getDataItemPositionX(i,this._xField,s,this.get("vcx",1)),l=o.getDataItemPositionY(i,this._yField,a,this.get("vcy",1)),h=this.getPoint(A,l);this._shouldShowBullet(A,l)?(t.setPrivate("visible",!0),t.set("x",h.x),t.set("y",h.y)):t.setPrivate("visible",!1)}}};Qa.className="RadarLineSeries";Qa.classNames=nt.classNames.concat([Qa.className]);var Zr=class extends Qr{constructor(){super(...arguments),this._series=[],this._isPanning=!1,this.minorDataItems=[],this.labelsContainer=this.children.push(ve.new(this._root,{})),this.gridContainer=ve.new(this._root,{width:Ae,height:Ae}),this.topGridContainer=ve.new(this._root,{width:Ae,height:Ae}),this.bulletsContainer=this.children.push(ve.new(this._root,{isMeasured:!1,width:Ae,height:Ae,position:"absolute"})),this._rangesDirty=!1,this._panStart=0,this._panEnd=1,this._skipSync=!1,this.axisRanges=new cr,this._seriesAxisRanges=[],this._cursorPosition=-1,this._seriesValuesDirty=!1,this._seriesAdded=!1,this.axisHeader=this.children.push(ve.new(this._root,{themeTags:["axis","header"],position:"absolute",background:Xt.new(this._root,{themeTags:["header","background"],fill:this._root.interfaceColors.get("background")})})),this._bullets={}}_dispose(){this.gridContainer.dispose(),this.topGridContainer.dispose(),this.bulletsContainer.dispose(),this.labelsContainer.dispose(),this.axisHeader.dispose(),super._dispose()}_afterNew(){super._afterNew(),this.setPrivate("updateScrollbar",!0),this._disposers.push(this.axisRanges.events.onAll(t=>{if(t.type==="clear")W(t.oldValues,i=>{i.dispose()});else if(t.type==="push")this._processAxisRange(t.newValue,["range"]);else if(t.type==="setIndex")this._processAxisRange(t.newValue,["range"]);else if(t.type==="insertIndex")this._processAxisRange(t.newValue,["range"]);else if(t.type==="removeIndex")this.disposeDataItem(t.oldValue);else if(t.type==="moveIndex")this._processAxisRange(t.value,["range"]);else throw new Error("Unknown IStreamEvent type")}));let e=this.get("renderer");e&&(e.axis=this,e.processAxis()),this.children.push(e),this._createGhostLabel()}_createGhostLabel(){let t=this.get("renderer").makeLabel(new Ui(this,void 0,{}),[]);t.adapters.disable("text"),t.setAll({opacity:0,tooltipText:void 0,tooltipHTML:void 0,interactive:!1}),t.events.disable(),this.ghostLabel=t}_updateFinals(e,t){}zoom(e,t,i,s){if(this.get("zoomable",!0))if(this._updateFinals(e,t),this.get("start")!==e||this.get("end")!=t){let a=this._sAnimation,n=this._eAnimation;e>t&&([e,t]=[t,e]);let o=this.get("maxDeviation",.5)*Math.min(1,t-e);e<-o&&(e=-o),t>1+o&&(t=1+o);let A=this.getPrivate("maxZoomFactor",this.get("maxZoomFactor",100)),l=A;j(i)||(i=this.get("interpolationDuration",0)),s||(s="end"),t===1&&e!==0&&(e<this.get("start",0)?s="start":s="end"),e===0&&t!==1&&(t>this.get("end",1)?s="end":s="start");let h=this.get("minZoomCount",0),c=this.dataItems;c&&c.length<h&&(h=c.length);let d=this.get("maxZoomCount",1/0);j(h)&&(A=l/h);let u=1;if(j(d)&&(u=l/d),e>t&&([e,t]=[t,e]),s==="start"?(d>0&&1/(t-e)<u&&(t=e+1/u),1/(t-e)>A&&(t=e+1/A),t>1&&t-e<1/A&&(e=t-1/A)):(d>0&&1/(t-e)<u&&(e=t-1/u),1/(t-e)>A&&(e=t-1/A),e<0&&t-e<1/A&&(t=e+1/A)),1/(t-e)>A&&(t=e+1/A),1/(t-e)>A&&(e=t-1/A),d!=null&&h!=null&&e==this.get("start")&&t==this.get("end")){let f=this.chart;f&&f._handleAxisSelection(this,!0)}if((a&&a.playing&&a.to==e||this.get("start")==e)&&(n&&n.playing&&n.to==t||this.get("end")==t))return;if(i>0){let f=this.get("interpolationEasing"),m,g;if(this.get("start")!=e&&(m=this.animate({key:"start",to:e,duration:i,easing:f})),this.get("end")!=t&&(g=this.animate({key:"end",to:t,duration:i,easing:f})),this._sAnimation=m,this._eAnimation=g,m)return m;if(g)return g}else this.set("start",e),this.set("end",t),this.root.events.once("frameended",()=>{this.markDirtyKey("start")})}else this._sAnimation&&this._sAnimation.stop(),this._eAnimation&&this._eAnimation.stop()}get series(){return this._series}_processAxisRange(e,t){e.setRaw("isRange",!0),this._createAssets(e,t),this._rangesDirty=!0,this._prepareDataItem(e);let i=e.get("above"),s=this.topGridContainer,a=e.get("grid");i&&a&&s.children.moveValue(a);let n=e.get("axisFill");i&&n&&s.children.moveValue(n)}_prepareDataItem(e,t){}markDirtyExtremes(){}markDirtySelectionExtremes(){}_calculateTotals(){}_updateAxisRanges(){this._bullets={},this.axisRanges.each(e=>{this._prepareDataItem(e)}),W(this._seriesAxisRanges,e=>{this._prepareDataItem(e)})}_prepareChildren(){super._prepareChildren();let e=this.ghostLabel;if(e&&(this.get("fixAxisSize")?e.set("visible",!0):e.set("visible",!1)),this.isDirty("start")||this.isDirty("end")){let i=this.chart;i&&i._updateCursor();let s=this.get("start",0),a=this.get("end",1),n=this.get("maxDeviation",.5)*Math.min(1,a-s);if(s<-n){let o=s+n;s=-n,this.setRaw("start",s),this.isDirty("end")&&this.setRaw("end",a-o)}if(a>1+n){let o=a-1-n;a=1+n,this.setRaw("end",a),this.isDirty("start")&&this.setRaw("start",s-o)}}let t=this.get("renderer");if(t._start=this.get("start"),t._end=this.get("end"),t._inversed=t.get("inversed",!1),t._axisLength=t.axisLength()/(t._end-t._start),t._updateLC(),this.isDirty("tooltip")){let i=this.get("tooltip");if(i){let s=t.get("themeTags");i.addTag("axis"),i.addTag(this.className.toLowerCase()),i._applyThemes(),s&&(i.set("themeTags",Ue(i.get("themeTags"),s)),i.label._applyThemes())}}}_updateTooltipBounds(){let e=this.get("tooltip");e&&this.get("renderer").updateTooltipBounds(e)}_updateBounds(){super._updateBounds(),this._updateTooltipBounds()}processChart(e){this.chart=e;let t=this.get("renderer");t.chart=e,e.gridContainer.children.push(this.gridContainer),e.topGridContainer.children.push(this.topGridContainer),e.axisHeadersContainer.children.push(this.axisHeader),this.on("start",()=>{e._handleAxisSelection(this)}),this.on("end",()=>{e._handleAxisSelection(this)}),e.plotContainer.onPrivate("width",()=>{this.markDirtySize()}),e.plotContainer.onPrivate("height",()=>{this.markDirtySize()}),e.processAxis(this)}hideDataItem(e){return this._toggleFHDataItem(e,!0),super.hideDataItem(e)}showDataItem(e){return this._toggleFHDataItem(e,!1),super.showDataItem(e)}_toggleFHDataItem(e,t){let i="forceHidden",s=e.get("label");s&&s.set(i,t);let a=e.get("grid");a&&a.set(i,t);let n=e.get("tick");n&&n.set(i,t);let o=e.get("axisFill");o&&o.set(i,t);let A=e.get("bullet");if(A){let l=A.get("sprite");l&&l.set(i,t)}}_toggleDataItem(e,t){let i=e.get("label"),s="visible";i&&i.setPrivate(s,t);let a=e.get("grid");a&&a.setPrivate(s,t);let n=e.get("tick");n&&n.setPrivate(s,t);let o=e.get("axisFill");o&&o.setPrivate(s,t);let A=e.get("bullet");if(A){let l=A.get("sprite");l&&l.setPrivate(s,t)}}_createAssets(e,t,i){var s,a,n;let o=this.get("renderer"),A="minor",l=e.get("label");if(!l)o.makeLabel(e,t);else{let d=l.get("themeTags"),u=!1;i?d?.indexOf(A)==-1&&(u=!0):d?.indexOf(A)!=-1&&(u=!0),u&&((s=l.parent)===null||s===void 0||s.children.removeValue(l),o.makeLabel(e,t),l.dispose(),o.labels.removeValue(l))}let h=e.get("grid");if(!h)o.makeGrid(e,t);else{let d=h.get("themeTags"),u=!1;i?d?.indexOf(A)==-1&&(u=!0):d?.indexOf(A)!=-1&&(u=!0),u&&((a=h.parent)===null||a===void 0||a.children.removeValue(h),o.makeGrid(e,t),h.dispose(),o.grid.removeValue(h))}let c=e.get("tick");if(!c)o.makeTick(e,t);else{let d=!1,u=c.get("themeTags");i?u?.indexOf(A)==-1&&(d=!0):u?.indexOf(A)!=-1&&(d=!0),d&&((n=c.parent)===null||n===void 0||n.children.removeValue(c),o.makeTick(e,t),c.dispose(),o.ticks.removeValue(c))}(!i&&!e.get("axisFill")||i&&!e.get("axisFill")&&this.get("minorAxisFillsEnabled"))&&o.makeAxisFill(e,t),this._processBullet(e)}_processBullet(e){let t=e.get("bullet"),i=this.get("bullet");if(!t&&i&&!e.get("isRange")&&(t=i(this._root,this,e)),t){t.axis=this;let s=t.get("sprite");s&&(s._setDataItem(e),e.setRaw("bullet",t),s.parent||this.bulletsContainer.children.push(s))}}_afterChanged(){super._afterChanged();let e=this.chart;e&&(e._updateChartLayout(),e.axisHeadersContainer.markDirtySize()),this.get("renderer")._updatePositions(),this._seriesAdded=!1}disposeDataItem(e){super.disposeDataItem(e);let t=this.get("renderer"),i=e.get("label");i&&(t.labels.removeValue(i),i.dispose());let s=e.get("tick");s&&(t.ticks.removeValue(s),s.dispose());let a=e.get("grid");a&&(t.grid.removeValue(a),a.dispose());let n=e.get("axisFill");n&&(t.axisFills.removeValue(n),n.dispose());let o=e.get("bullet");o&&o.dispose()}_updateGhost(){this.setPrivate("cellWidth",this.getCellWidthPosition()*this.get("renderer").axisLength());let e=this.ghostLabel;if(e){if(!e.isHidden()){let s=e.localBounds(),a=Math.ceil(s.right-s.left),n=e.get("text");W(this.dataItems,o=>{let A=o.get("label");if(A&&!A.isHidden()){let l=A.localBounds();Math.ceil(l.right-l.left)>a&&(n=A.text._getText())}}),e.set("text",n)}let t=this.get("start",0),i=this.get("end",1);this.get("renderer").updateLabel(e,t+(i-t)*.5)}}_handleCursorPosition(e,t){e=this.get("renderer").toAxisPosition(e),this._cursorPosition=e,this._snapToSeries=t,this.updateTooltip()}updateTooltip(){let e=this._snapToSeries,t=this._cursorPosition,i=this.get("tooltip"),s=this.get("renderer");j(t)&&(W(this.series,a=>{if(a.get("baseAxis")===this){let n=this.getSeriesItem(a,t,this.get("tooltipLocation"));e&&e.indexOf(a)!=-1?(a.updateLegendMarker(n),a.updateLegendValue(n),a._settings.tooltipDataItem=n):(a.showDataItemTooltip(n),a.setRaw("tooltipDataItem",n))}}),this.get("snapTooltip")&&(t=this.roundAxisPosition(t,this.get("tooltipLocation",.5))),this.setPrivateRaw("tooltipPosition",t),i&&(s.updateTooltipBounds(i),hs(t)?i.hide(0):(this._updateTooltipText(i,t),s.positionTooltip(i,t),t<this.get("start",0)||t>this.get("end",1)?i.hide(0):i.show(0))))}_updateTooltipText(e,t){e.label.set("text",this.getTooltipText(t))}roundAxisPosition(e,t){return e}_handleSeriesRemoved(){}handleCursorShow(){let e=this.get("tooltip");e&&e.show()}handleCursorHide(){let e=this.get("tooltip");e&&e.hide()}processSeriesDataItem(e,t){}_clearDirty(){super._clearDirty(),this._sizeDirty=!1,this._rangesDirty=!1}coordinateToPosition(e){let t=this.get("renderer");return t.toAxisPosition(e/t.axisLength())}toAxisPosition(e){return this.get("renderer").toAxisPosition(e)}toGlobalPosition(e){return this.get("renderer").toGlobalPosition(e)}fixPosition(e){return this.get("renderer").fixPosition(e)}shouldGap(e,t,i,s){return!1}createAxisRange(e){return this.axisRanges.push(e)}_groupSeriesData(e){}getCellWidthPosition(){return .05}};Zr.className="Axis";Zr.classNames=Qr.classNames.concat([Zr.className]);var ft=class extends Zr{constructor(){super(...arguments),this._dirtyExtremes=!1,this._dirtySelectionExtremes=!1,this._dseHandled=!1,this._deltaMinMax=1,this._baseValue=0,this._minLogAdjusted=1}markDirtyExtremes(){this._dirtyExtremes=!0,this.markDirty()}markDirtySelectionExtremes(){this._dirtySelectionExtremes=!0,this.markDirty()}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["axis"]),this.setPrivateRaw("name","value"),this.addTag("value"),super._afterNew()}_prepareChildren(){var e;if(super._prepareChildren(),this.isDirty("syncWithAxis")){this._prevSettings.syncWithAxis&&this._syncDp&&this._syncDp.dispose();let s=this.get("syncWithAxis");s&&(this._syncDp=new ci([s.onPrivate("selectionMinFinal",()=>{this._dirtySelectionExtremes=!0}),s.onPrivate("selectionMaxFinal",()=>{this._dirtySelectionExtremes=!0})]))}let t=!1;if((this.isDirty("min")||this.isDirty("max")||this.isDirty("maxPrecision")||this.isDirty("numberFormat"))&&(t=!0,(e=this.ghostLabel)===null||e===void 0||e.set("text","")),(this._sizeDirty||this._dirtyExtremes||this._valuesDirty||t||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("extraMin")||this.isDirty("extraMax")||this.isDirty("logarithmic")||this.isDirty("treatZeroAs")||this.isDirty("baseValue")||this.isDirty("strictMinMax")||this.isDirty("strictMinMaxSelection"))&&(this._getMinMax(),this._dirtyExtremes=!1),this._handleSizeDirty(),this._dirtySelectionExtremes&&!this._isPanning&&this.get("autoZoom",!0)){let i=this.chart,s=!1;if(i){let a=this.get("renderer").getPrivate("letter");a=="Y"?i.xAxes.each(n=>{n.className!="ValueAxis"&&(s=!0)}):a=="X"&&i.yAxes.each(n=>{n.className!="ValueAxis"&&(s=!0)})}s&&this._getSelectionMinMax(),this._dirtySelectionExtremes=!1}this._groupData(),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("min")||this.isPrivateDirty("selectionMax")||this.isPrivateDirty("selectionMin")||this.isPrivateDirty("max")||this.isPrivateDirty("step")||this.isPrivateDirty("width")||this.isPrivateDirty("height")||this.isDirty("logarithmic"))&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges()),this._baseValue=this.baseValue()}_handleSizeDirty(){this._sizeDirty&&!this._dseHandled&&(this._dirtySelectionExtremes=!0,this._dseHandled=!0,(this.getPrivate("selectionMinFinal")!=this.getPrivate("selectionMin")||this.getPrivate("selectionMaxFinal")!=this.getPrivate("selectionMax"))&&(this._dirtySelectionExtremes=!1))}_clearDirty(){super._clearDirty(),this._dseHandled=!1}_groupData(){}_formatText(e){let t=this.get("numberFormat"),i=this.getNumberFormatter(),s="";return t?s=i.format(e,t):s=i.format(e,void 0,this.getPrivate("stepDecimalPlaces")),s}_prepareAxisItems(){let e=this.getPrivate("min"),t=this.getPrivate("max");if(j(e)&&j(t)){let i=this.get("logarithmic"),s=this.getPrivate("step"),a=this.getPrivate("selectionMin"),n=this.getPrivate("selectionMax")+s,o=a-s,A=1,l=e;if(i){if(o=this._minLogAdjusted,o<a)for(;o<a;)o+=s;if(l=o,l<=0){let L=this._minRealLog;j(L)||(L=1),l=Math.pow(10,Math.log(L)*Math.LOG10E),s<1&&(j(this._minRealLog)?l=this._minRealLog:l=Math.pow(10,-50))}A=Math.log(n-s)*Math.LOG10E-Math.log(l)*Math.LOG10E,A>2&&(o=Math.pow(10,Math.log(l)*Math.LOG10E-50))}let h=this.get("renderer"),c=h.get("minorLabelsEnabled"),d=h.get("minorGridEnabled",c),u=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E)),f=Math.round(s/u),m=2;di(f/5,10)%1==0&&(m=5),di(f/10,10)%1==0&&(m=10);let g=s/m,v=0,B=0,w=-1/0,_=this.get("renderer").gridCount();for(;o<n;){let L;this.dataItems.length<v+1?(L=new Ui(this,void 0,{}),this._dataItems.push(L),this.processDataItem(L)):L=this.dataItems[v],this._createAssets(L,[]),this._toggleDataItem(L,!0),L.setRaw("value",o);let k=L.get("label");k&&k.set("text",this._formatText(o)),this._prepareDataItem(L);let D=o;if(!i)D+=s;else if(A>2){let O=Math.max(1,_),I=Math.max(1,Math.ceil(A/O)),M=Math.log(l)*Math.LOG10E+(v+1)*I-50;D=Math.pow(10,M)}else D+=s;if(d){let O=o+g;for(i&&(A>2&&(g=this._adjustMinMax(o,D,10).step),O=o+g);O<D-s*1e-11;){let I;this.minorDataItems.length<B+1?(I=new Ui(this,void 0,{}),this.minorDataItems.push(I),this.processDataItem(I)):I=this.minorDataItems[B],this._createAssets(I,["minor"],!0),this._toggleDataItem(I,!0),I.setRaw("value",O);let M=I.get("label");M&&(c?M.set("text",this._formatText(O)):M.setPrivate("visible",!1)),this._prepareDataItem(I),O+=g,B++}}if(o=D,w==o)break;let E=Math.pow(10,Math.floor(Math.log(Math.abs(s))*Math.LOG10E));if(E<1&&!i){let O=Math.round(Math.abs(Math.log(Math.abs(E))*Math.LOG10E))+2;o=di(o,O)}v++,i&&A<=2&&o-s<s&&(o=s),w=o}for(let L=v;L<this.dataItems.length;L++)this._toggleDataItem(this.dataItems[L],!1);for(let L=B;L<this.minorDataItems.length;L++)this._toggleDataItem(this.minorDataItems[L],!1);W(this.series,L=>{L.inited&&L._markDirtyAxes()}),this._updateGhost()}}_prepareDataItem(e,t){let i=this.get("renderer"),s=e.get("value"),a=e.get("endValue"),n=this.valueToPosition(s),o=n,A=this.valueToPosition(s+this.getPrivate("step"));j(a)&&(o=this.valueToPosition(a),A=o),e.get("isRange")&&a==null&&(A=n);let l=o,h=e.get("labelEndValue");h!=null&&(l=this.valueToPosition(h)),i.updateLabel(e.get("label"),n,l,t);let c=e.get("grid");if(i.updateGrid(c,n,o),c&&(s==this.get("baseValue",0)?(c.addTag("base"),c._applyThemes()):c.hasTag("base")&&(c.removeTag("base"),c._applyThemes())),i.updateTick(e.get("tick"),n,l,t),i.updateFill(e.get("axisFill"),n,A),this._processBullet(e),i.updateBullet(e.get("bullet"),n,o),!e.get("isRange")){let d=this.get("fillRule");d&&d(e)}}_handleRangeChange(){let e=this.positionToValue(this.get("start",0)),t=this.positionToValue(this.get("end",1)),i=this.get("renderer").gridCount(),s=this._adjustMinMax(e,t,i,!0),a=od(s.step);this.setPrivateRaw("stepDecimalPlaces",a),e=di(e,a),t=di(t,a),s=this._adjustMinMax(e,t,i,!0);let n=s.step;e=s.min,t=s.max,(this.getPrivate("selectionMin")!==e||this.getPrivate("selectionMax")!==t||this.getPrivate("step")!==n)&&(this.setPrivateRaw("selectionMin",e),this.setPrivateRaw("selectionMax",t),this.setPrivateRaw("step",n))}positionToValue(e){let t=this.getPrivate("min"),i=this.getPrivate("max");return this.get("logarithmic")?Math.pow(Math.E,(e*(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)+Math.log(t)*Math.LOG10E)/Math.LOG10E):e*(i-t)+t}valueToPosition(e){let t=this.getPrivate("min"),i=this.getPrivate("max");if(this.get("logarithmic")){if(e<=0){let s=this.get("treatZeroAs");j(s)&&(e=s)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}else return(e-t)/(i-t)}valueToFinalPosition(e){let t=this.getPrivate("minFinal"),i=this.getPrivate("maxFinal");if(this.get("logarithmic")){if(e<=0){let s=this.get("treatZeroAs");j(s)&&(e=s)}return(Math.log(e)*Math.LOG10E-Math.log(t)*Math.LOG10E)/(Math.log(i)*Math.LOG10E-Math.log(t)*Math.LOG10E)}else return(e-t)/(i-t)}getX(e,t,i){e=i+(e-i)*t;let s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getY(e,t,i){e=i+(e-i)*t;let s=this.valueToPosition(e);return this._settings.renderer.positionToCoordinate(s)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionX(e,t,i,s){let a=e.get(t);if(e.get("stackToItemX")){let o=e.component;a=a*s+o.getStackedXValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}getDataItemPositionY(e,t,i,s){let a=e.get(t);if(e.get("stackToItemY")){let o=e.component;a=a*s+o.getStackedYValueWorking(e,t)}else a=this._baseValue+(a-this._baseValue)*s;return this.valueToPosition(a)}basePosition(){return this.valueToPosition(this.baseValue())}baseValue(){let e=Math.min(this.getPrivate("minFinal",-1/0),this.getPrivate("selectionMin",-1/0)),t=Math.max(this.getPrivate("maxFinal",1/0),this.getPrivate("selectionMax",1/0)),i=this.get("baseValue",0);return i<e&&(i=e),i>t&&(i=t),i}cellEndValue(e){return e}fixSmallStep(e){return 1+e===1?(e*=2,this.fixSmallStep(e)):e}_fixMin(e){return e}_fixMax(e){return e}_calculateTotals(){if(this.get("calculateTotals")){let e=this.series[0];if(e){let t=e.startIndex();if(e.dataItems.length>0){t>0&&t--;let i=e.endIndex();i<e.dataItems.length&&i++;let s,a;e.get("yAxis")==this?(s="valueY",a="vcy"):e.get("xAxis")==this&&(s="valueX",a="vcx");let n=s+"Working";if(s){let o=this.series.length,A=[],l=[];for(let f=0;f<o;f++){let m=this.series[f];m.get("excludeFromTotal")||(A.push(m),l.push(m.get(a)))}let h=A.length,c=s+"Total",d=s+"Sum",u=s+"TotalPercent";for(let f=t;f<i;f++){let m=0,g=0;for(let v=0;v<h;v++){let B=A[v].dataItems[f];if(B){let w=B.get(n)*l[v];hs(w)||(m+=w,g+=Math.abs(w))}}for(let v=0;v<h;v++){let B=A[v].dataItems[f];if(B){let w=B.get(n)*l[v];hs(w)||(B.set(c,g),B.set(d,m),B.set(u,g==0?0:w/g*100))}}}}}}}}_getSelectionMinMax(){let e=this.getPrivate("minFinal"),t=this.getPrivate("maxFinal"),i=this.get("min"),s=this.get("max"),a=this.get("extraMin",0),n=this.get("extraMax",0);this.get("logarithmic")&&(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(n=.2));let o=this.get("renderer").gridCount(),A=this.get("strictMinMaxSelection"),l=this.get("strictMinMax");if(j(e)&&j(t)){let h=t,c=e;if(W(this.series,_=>{if(!_.get("ignoreMinMax")){let L,k,D=_.getPrivate("outOfSelection");if(_.get("xAxis")===this){if(!D){let E=_.getPrivate("minX"),O=_.getPrivate("maxX");(_.startIndex()!=0||_.endIndex()!=_.dataItems.length)&&(E=void 0,O=void 0),L=_.getPrivate("selectionMinX",E),k=_.getPrivate("selectionMaxX",O)}}else if(_.get("yAxis")===this&&!D){let E=_.getPrivate("minY"),O=_.getPrivate("maxY");(_.startIndex()!=0||_.endIndex()!=_.dataItems.length)&&(E=void 0,O=void 0),L=_.getPrivate("selectionMinY",E),k=_.getPrivate("selectionMaxY",O)}!_.isHidden()&&!_.isShowing()&&(j(L)&&(h=Math.min(h,L)),j(k)&&(c=Math.max(c,k)))}}),this.axisRanges.each(_=>{if(_.get("affectsMinMax")){let L=_.get("value");L!=null&&(h=Math.min(h,L),c=Math.max(c,L)),L=_.get("endValue"),L!=null&&(h=Math.min(h,L),c=Math.max(c,L))}}),h>c&&([h,c]=[c,h]),j(i)?l?h=i:h=e:l&&j(this._minReal)&&(h=this._minReal),j(s)?l?c=s:c=t:l&&j(this._maxReal)&&(c=this._maxReal),h===c){let _=h;if(h-=this._deltaMinMax,c+=this._deltaMinMax,h<e){let k=_-e;k==0&&(k=this._deltaMinMax),h=_-k,c=_+k,l=!0}let L=this._adjustMinMax(h,c,o,l);h=L.min,c=L.max}let d=h,u=c,f=c-h;h-=f*a,c+=f*n;let m=this._adjustMinMax(h,c,o);h=m.min,c=m.max,h=It(h,e,t),c=It(c,e,t),m=this._adjustMinMax(h,c,o,!0),l||(h=m.min,c=m.max);let g=this.get("syncWithAxis");if(g&&(m=this._syncAxes(h,c,m.step,g.getPrivate("selectionMinFinal",g.getPrivate("minFinal",0)),g.getPrivate("selectionMaxFinal",g.getPrivate("maxFinal",1)),g.getPrivate("selectionStepFinal",g.getPrivate("step",1))),h=m.min,c=m.max),l&&!g&&(j(i)&&(h=Math.max(h,i)),j(s)&&(c=Math.min(c,s))),A&&!g&&(h=d-(u-d)*a,c=u+(u-d)*n),l&&!g){j(i)?h=i:h=d,j(s)?c=s:c=u,c-h<=1e-8&&(h-=this._deltaMinMax,c+=this._deltaMinMax);let _=c-h;h-=_*a,c+=_*n}this.get("logarithmic")&&(h<=0&&(h=d*(1-Math.min(a,.99))),h<e&&(h=e),c>t&&(c=t));let v=Math.min(20,Math.ceil(Math.log(this.getPrivate("maxZoomFactor",100)+1)/Math.LN10)+2),B=di(this.valueToFinalPosition(h),v),w=di(this.valueToFinalPosition(c),v);this.setPrivateRaw("selectionMinFinal",h),this.setPrivateRaw("selectionMaxFinal",c),this.setPrivateRaw("selectionStepFinal",m.step),this.zoom(B,w)}}_getMinMax(){let e=this.get("min"),t=this.get("max"),i=1/0,s=-1/0,a=this.get("extraMin",0),n=this.get("extraMax",0);this.get("logarithmic")&&(this.get("strictMinMax")||(this.get("extraMin")==null&&(a=.1),this.get("extraMax")==null&&(n=.2)));let o=1/0;if(W(this.series,w=>{if(!w.get("ignoreMinMax")){let _,L;if(w.get("xAxis")===this?(_=w.getPrivate("minX"),L=w.getPrivate("maxX")):w.get("yAxis")===this&&(_=w.getPrivate("minY"),L=w.getPrivate("maxY")),j(_)&&j(L)){i=Math.min(i,_),s=Math.max(s,L);let k=L-_;k<=0&&(k=Math.abs(L/100)),k<o&&(o=k)}}}),this.axisRanges.each(w=>{if(w.get("affectsMinMax")){let _=w.get("value");_!=null&&(i=Math.min(i,_),s=Math.max(s,_)),_=w.get("endValue"),_!=null&&(i=Math.min(i,_),s=Math.max(s,_))}}),this.get("logarithmic")){let w=this.get("treatZeroAs");j(w)&&i<=0&&(i=w),i<=0&&new Error("Logarithmic value axis can not have values <= 0.")}if(i===0&&s===0&&(s=.9,i=-.9),j(e)&&(i=e),j(t)&&(s=t),i===1/0||s===-1/0){this.setPrivate("minFinal",void 0),this.setPrivate("maxFinal",void 0);return}i>s&&([i,s]=[s,i]);let A=i,l=s,h=this.adapters.fold("min",i),c=this.adapters.fold("max",s);this._minRealLog=i,j(h)&&(i=h),j(c)&&(s=c),i=this._fixMin(i),s=this._fixMax(s),s-i<=1/Math.pow(10,15)&&(s-i!==0?this._deltaMinMax=(s-i)/2:this._getDelta(s),i-=this._deltaMinMax,s+=this._deltaMinMax),i-=(s-i)*a,s+=(s-i)*n,this.get("logarithmic")&&(i<0&&A>=0&&(i=0),s>0&&l<=0&&(s=0)),this._minReal=i,this._maxReal=s;let d=this.get("strictMinMax"),u=this.get("strictMinMaxSelection",!1);u&&(d=u);let f=d;j(t)&&(f=!0);let m=this.get("renderer").gridCount(),g=this._adjustMinMax(i,s,m,f);if(i=g.min,s=g.max,g=this._adjustMinMax(i,s,m,!0),i=g.min,s=g.max,d){j(e)?i=e:i=this._minReal,j(t)?s=t:s=this._maxReal,s-i<=1e-8&&(i-=this._deltaMinMax,s+=this._deltaMinMax);let w=s-i;i-=w*a,s+=w*n}h=this.adapters.fold("min",i),c=this.adapters.fold("max",s),j(h)&&(i=h),j(c)&&(s=c),o==1/0&&(o=s-i);let v=Math.round(Math.abs(Math.log(Math.abs(s-i))*Math.LOG10E))+5;i=di(i,v),s=di(s,v);let B=this.get("syncWithAxis");if(B&&(g=this._syncAxes(i,s,g.step,B.getPrivate("minFinal",B.getPrivate("min",0)),B.getPrivate("maxFinal",B.getPrivate("max",1)),B.getPrivate("step",1)),i=g.min,s=g.max),this.setPrivateRaw("maxZoomFactor",Math.max(1,Math.ceil((s-i)/o*this.get("maxZoomFactor",100)))),this._fixZoomFactor(),this.get("logarithmic")&&(this._minLogAdjusted=i,i=this._minReal,s=this._maxReal,i<=0&&(i=A*(1-Math.min(a,.99)))),j(i)&&j(s)&&(this.getPrivate("minFinal")!==i||this.getPrivate("maxFinal")!==s)){this.setPrivate("minFinal",i),this.setPrivate("maxFinal",s),this._saveMinMax(i,s);let w=this.get("interpolationDuration",0),_=this.get("interpolationEasing");this.animatePrivate({key:"min",to:i,duration:w,easing:_}),this.animatePrivate({key:"max",to:s,duration:w,easing:_})}}_fixZoomFactor(){}_getDelta(e){let t=Math.log(Math.abs(e))*Math.LOG10E,i=Math.pow(10,Math.floor(t));i=i/10,this._deltaMinMax=i}_saveMinMax(e,t){}_adjustMinMax(e,t,i,s){i<=1&&(i=1),i=Math.round(i);let a=e,n=t,o=t-e;o===0&&(o=Math.abs(t));let A=Math.log(Math.abs(o))*Math.LOG10E,l=Math.pow(10,Math.floor(A));l=l/10;let h=l;s&&(h=0),s?(e=Math.floor(e/l)*l,t=Math.ceil(t/l)*l):(e=Math.ceil(e/l)*l-h,t=Math.floor(t/l)*l+h),e<0&&a>=0&&(e=0),t>0&&n<=0&&(t=0),A=Math.log(Math.abs(o))*Math.LOG10E,l=Math.pow(10,Math.floor(A)),l=l/100;let c=Math.ceil(o/i/l)*l,d=Math.pow(10,Math.floor(Math.log(Math.abs(c))*Math.LOG10E)),u=Math.ceil(c/d);u>5?u=10:u<=5&&u>2&&(u=5),c=Math.ceil(c/(d*u))*d*u;let f=this.get("maxPrecision");if(j(f)){let B=Kg(c,f);f<Number.MAX_VALUE&&c!==B&&(c=B,c==0&&(c=1))}let m=0;d<1&&(m=Math.round(Math.abs(Math.log(Math.abs(d))*Math.LOG10E))+1,c=di(c,m));let g=Math.floor(e/c);e=di(c*g,m);let v;return s?v=Math.floor(t/c):v=Math.ceil(t/c),v===g&&v++,t=di(c*v,m),t<n&&(t=t+c),e>a&&(e=e-c),c=this.fixSmallStep(c),{min:e,max:t,step:c}}getTooltipText(e,t){let i=this.get("tooltipNumberFormat",this.get("numberFormat")),s=this.getNumberFormatter(),a=this.get("extraTooltipPrecision",0),n=this.getPrivate("stepDecimalPlaces",0)+a,o=di(this.positionToValue(e),n);return i?s.format(o,i):s.format(o,void 0,n)}getSeriesItem(e,t){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.positionToValue(t),a,n;if(W(e.dataItems,(o,A)=>{let l=Math.abs(o.get(i)-s);(a===void 0||l<n)&&(a=A,n=l)}),a!=null)return e.dataItems[a]}zoomToValues(e,t,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",1));this.getPrivate("min")!=null&&this.getPrivate("max")!=null&&this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}_syncAxes(e,t,i,s,a,n){if(this.get("syncWithAxis")){let A=Math.round((a-s)/n);if(A>0)if(this.get("syncZeros")&&s<=0&&a>=0){let l=Math.round((0-s)/n),h=A-l,c=0;l>0&&e<0&&(c=Math.abs(e)/l),h>0&&t>0&&(c=Math.max(c,t/h)),c==0&&(c=(t-e)/A),i=this._niceStep(c),e=-i*l,t=i*h}else{let l=(t-e)/A;i=this._niceStep(l);let h=Math.floor(e/i)*i,c=h+i*A;c<t&&(h=Math.ceil(t/i)*i-i*A,c=h+i*A),e>=0&&h<0&&(h=0,c=i*A),t<=0&&c>0&&(c=0,h=-(i*A)),e=h,t=c}}return{min:e,max:t,step:i}}_niceStep(e){let t=Math.pow(10,Math.floor(Math.log(Math.abs(e))*Math.LOG10E)),i=e/t;i<=1?i=1:i<=2?i=2:i<=5?i=5:i=10;let s=i*t,a=this.get("maxPrecision");if(j(a)){let n=Kg(s,a);a<Number.MAX_VALUE&&s!==n&&(s=n,s==0&&(s=1))}return s}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return j(e)&&j(t)?this.getPrivate("step",1)/(e-t):.05}nextPosition(e){e==null&&(e=1),this.get("renderer").getPrivate("letter")=="Y"&&(e*=-1);let t=this.positionToValue(this.getPrivate("tooltipPosition",0));return t+=this.getPrivate("step",1)*e,t=It(t,this.getPrivate("selectionMin",0),this.getPrivate("selectionMax",1)),this.toGlobalPosition(this.valueToPosition(t))}};ft.className="ValueAxis";ft.classNames=Zr.classNames.concat([ft.className]);var ni=class r extends Zr{constructor(){super(...arguments),this._frequency=1,this._itemMap={}}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["axis"]),this.fields.push("category","id","cellSize"),this.setPrivateRaw("name","category"),this.addTag("category"),super._afterNew()}_afterDataChange(){super._afterDataChange();let e=this.dataItems.length;e>0&&this.setPrivateRaw("maxZoomFactor",e),this.setPrivateRaw("startIndex",Math.min(this.getPrivate("startIndex",0),e)),this.setPrivateRaw("endIndex",Math.min(this.getPrivate("endIndex",e),1))}_prepareChildren(){super._prepareChildren();let e=this.dataItems.length,t=0;this._valuesDirty&&(this._itemMap={},W(this.dataItems,n=>{n.setRaw("index",t),this._itemMap[n.get("category")]=n,t++}),this.setPrivateRaw("maxZoomFactor",e));let i=this.get("start",0),s=this.get("end",1),a=this._getIndices(i,s);this.setPrivateRaw("startIndex",a.startIndex),this.setPrivateRaw("endIndex",a.endIndex),(this._sizeDirty||this._valuesDirty||this.isDirty("start")||this.isDirty("end")||this.isPrivateDirty("endIndex")||this.isPrivateDirty("startIndex")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&this.dataItems.length>0&&(this._handleRangeChange(),this._prepareAxisItems(),this._updateAxisRanges())}adjustZoom(){let e=this.dataItems.length;if(e>1){let t=this.get("maxZoomCount",this.dataItems.length),i=this.get("minZoomCount",1),s=0,a=this.getPrivate("startIndex",0),n=this.getPrivate("endIndex",0),o=this._sAnimation,A=this._eAnimation,l=this.get("start",0),h=!1;o&&!o.stopped&&(l=Number(o.to),h=!0);let c=this.get("end",1);if(A&&!A.stopped&&(c=Number(A.to),h=!0),h){let d=this._getIndices(l,c);a=d.startIndex,n=d.endIndex}for(let d=a;d<n;d++){let u=this.dataItems[d];s+=u.get("finalCellSize",1)}if(s<=i){let d=0;for(let u=a;u<e;u++){let f=this.dataItems[u];if(d+=f.get("finalCellSize",1),n=u+1,d>=i)break}if(d<i)for(let u=a-1;u>=0;u--){let f=this.dataItems[u];if(d+=f.get("finalCellSize",1),a=u,d>=i)break}this.zoomToIndexes(a,n)}else if(s>=t){let d=s;for(let u=n-1;u>=a;u--){let f=this.dataItems[u];if(d-=f.get("finalCellSize",1),d<=t){n=u+1;break}}this.zoomToIndexes(a,n)}}}_handleRangeChange(){W(this.series,e=>{let t=this.dataItems[this.startIndex()].get("category"),i=this.dataItems[this.endIndex()-1].get("category"),s=e.get("baseAxis"),a=e.get("xAxis"),n=e.get("yAxis");if(a instanceof r&&n instanceof r)e._markDirtyAxes();else if(s===this){let o,A,l=n;if(a===s?(e.get("categoryXField")&&(o="categoryX"),e.get("openCategoryXField")&&(A="openCategoryX")):n===s&&(e.get("categoryYField")&&(o="categoryY"),e.get("openCategoryYField")&&(A="openCategoryY"),l=a),l instanceof ft&&(o||A)){let d=function(g,v,B,w,_,L){let k,D=v.categoryToIndex(_);for(;!k&&D>=0&&D<v.dataItems.length;){let E=v.dataItems[D].get("category");if(L=="previous")for(let O=g.dataItems.length-1;O>=0;O--){let I=g.dataItems[O];if(B&&I.get(B)===E){k=I;break}if(w&&I.get(w)===E){k=I;break}}else for(let O=0,I=g.dataItems.length;O<I;O++){let M=g.dataItems[O];if(B&&M.get(B)===E){k=M;break}if(w&&M.get(w)===E){k=M;break}}k||(D+=L==="previous"?-1:1)}return k},h,c;h=d(e,this,o,A,t,"next"),c=d(e,this,o,A,i,"previous");let u=0,f=e.dataItems.length;h&&(u=e.dataItems.indexOf(h)),c&&(f=e.dataItems.indexOf(c)+1),e.setPrivate("startIndex",u),e.setPrivate("endIndex",f);let m=!1;for(let g=u;g<f;g++){let v=e.dataItems[g];if(W(e.__valueXShowFields,B=>{v.get(B)!=null&&(m=!0)}),W(e.__valueYShowFields,B=>{v.get(B)!=null&&(m=!0)}),m)break}e.setPrivate("outOfSelection",!m)}e._markDirtyAxes()}})}_prepareAxisItems(){var e;let t=this.get("renderer"),i=this.dataItems.length,s=this.startIndex();s>0&&s--;let a=this.endIndex();a<i&&a++;let n=t.get("minorLabelsEnabled"),o=t.get("minorGridEnabled",n),A=t.axisLength()/Math.max(t.get("minGridDistance"),1),l=Math.max(1,Math.min(i,Math.ceil((a-s)/A)));s=Math.floor(s/l)*l,this._frequency=l;for(let c=0;c<i;c++)this._toggleDataItem(this.dataItems[c],!1);let h=this.dataItems[s].get("index",0);for(let c=s;c<a;c=c+l){let d=this.dataItems[c];this._createAssets(d,[]),this._toggleDataItem(d,!0);let u=l;o&&(u=1),this._prepareDataItem(d,h,u),h++}if(t.get("minorGridEnabled"))for(let c=s;c<a;c++){let d=this.dataItems[c];c%l!=0&&(this._createAssets(d,["minor"],!0),this._toggleDataItem(d,!0),this._prepareDataItem(d,0,1),n||(e=d.get("label"))===null||e===void 0||e.setPrivate("visible",!1))}this._updateGhost()}_prepareDataItem(e,t,i){let s=this.get("renderer"),a=e.get("categoryLocation",0),n=e.get("endCategoryLocation",1),o=e.get("index");j(o)||(o=this.categoryToIndex(e.get("category")));let A=this.indexToPosition(o,a),l=e.get("endCategory"),h;l?(h=this.categoryToIndex(l),j(h)||(h=o)):h=o;let c=this.indexToPosition(h,n),d,u;if(e.get("isRange")){if(d=h,!j(o)){this._toggleDataItem(e,!1);return}}else d=o+this._frequency-1;u=this.indexToPosition(d,n),s.updateLabel(e.get("label"),A,c,i),s.updateGrid(e.get("grid"),A,c),s.updateTick(e.get("tick"),A,c,i),s.updateFill(e.get("axisFill"),A,u),this._processBullet(e),s.updateBullet(e.get("bullet"),A,c);let f=this.get("fillRule");f&&f(e,t)}startIndex(){let e=this.dataItems.length;return Math.min(Math.max(this.getPrivate("startIndex",0),0),e-1)}endIndex(){let e=this.dataItems.length;return Math.max(1,Math.min(this.getPrivate("endIndex",e),e))}baseValue(){}basePosition(){return 0}getX(e){let t=this._itemMap[e];return t?this._settings.renderer.positionToCoordinate(this.indexToPosition(t.get("index",0))):NaN}getY(e){let t=this._itemMap[e];return t?this._settings.renderer.positionToCoordinate(this.indexToPosition(t.get("index",0))):NaN}getDataItemPositionX(e,t,i,s){let a=e.get(t),n=this._itemMap[a];return n?this.indexToPosition(n.get("index",0),i):NaN}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionY(e,t,i,s){let a=e.get(t),n=this._itemMap[a];return n?this.indexToPosition(n.get("index",0),i):NaN}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}indexToPosition(e,t,i){let s=this.dataItems.length,a=0;if(s==0||(e>=s&&(e=s-1,t=1),j(t)||(t=.5),!j(e)))return 0;let n=this.get("startLocation",0),o=this.get("endLocation",1);if(!this.get("cellSizeField"))s-=n,s-=1-o,a=(e+t-n)/s;else{let A=i?"finalCellSize":"cellSize",l=this.dataItems,h=0;W(this.dataItems,u=>{h+=u.get(A,1)}),h-=n*l[0].get(A,1),h-=(1-o)*l[l.length-1].get(A,1);let c=0;for(let u=0;u<e;u++)c+=l[u].get(A,1);let d=l[e].get(A,1);a=(c+t*d-n*l[0].get(A,1))/h}if(!i){let A=this.dataItems[e];A&&(a+=A.get("deltaPosition",0))}return a}categoryToPosition(e){let t=this._itemMap[e];return t?this.indexToPosition(t.get("index")):NaN}categoryToIndex(e){let t=this._itemMap[e];return t?t.get("index"):NaN}dataItemToPosition(e){return this.indexToPosition(e.get("index"))}roundAxisPosition(e,t){return e+=(.5-t)/this.dataItems.length,this.indexToPosition(this.axisPositionToIndex(e),t)}axisPositionToIndex(e){let t=this.dataItems.length;if(t===0)return 0;if(this.get("cellSizeField")){let i=0,s=[];W(this.dataItems,l=>{let h=l.get("cellSize",1);s.push(h),i+=h});let a=this.get("startLocation",0),n=this.get("endLocation",1);i-=a,i-=1-n;let o=e*i+a,A=0;for(let l=0;l<t;l++){let h=s[l];if(o<A+h)return l;A+=h}return t-1}else return It(Math.floor(e*t),0,t-1)}getTooltipText(e,t){let i=this.dataItems[this.axisPositionToIndex(e)];if(i){let s=i.get("label");if(s)return wa(s,this.get("tooltipText",""))}}_updateTooltipText(e,t){e._setDataItem(this.dataItems[this.axisPositionToIndex(t)]),e.label.text.markDirtyText()}getSeriesItem(e,t){if(this.dataItems.length>0){let i=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),s=this.axisPositionToIndex(t),a=e.dataItems[s],n=this.dataItems[s],o=n.get("category");if(a&&n&&a.get(i)===o)return a;for(let A=0,l=e.dataItems.length;A<l;A++){let h=e.dataItems[A];if(h.get(i)===o)return h}}}_getIndices(e,t){let i=this.dataItems.length,s=0,a=i,n="cellSize";if(this.get("cellSizeField")){let o=0,A=this.dataItems;if(A.length==0)return{startIndex:0,endIndex:0};W(A,h=>{o+=h.get(n,1)}),o-=this.get("startLocation",0)*A[0].get(n,1),o-=(1-this.get("endLocation",1))*A[A.length-1].get(n,1);let l=0;for(let h=0;h<i;h++)if(l+=this.dataItems[h].get(n,1),Math.round(l)>Math.round(e*o)){s=h;break}for(let h=s+1;h<i;h++)if(l+=this.dataItems[h].get(n,1),Math.round(l)>=Math.round(t*o)){a=h+1;break}s=Math.max(s,0),a=Math.min(a,i)}else s=Math.max(Math.round(this.get("start",0)*i),0),a=Math.min(Math.round(this.get("end",1)*i),i);return{startIndex:s,endIndex:a}}zoomToIndexes(e,t,i){let s=this.dataItems.length;this.get("cellSizeField")?(e=Math.min(Math.max(e,0),s),t=Math.max(Math.min(t,s),1),this.setPrivateRaw("startIndex",e),this.setPrivateRaw("endIndex",t),this.zoom(this.indexToPosition(e,0,!0),this.indexToPosition(t,0,!0),i)):this.zoom(e/s,t/s,i)}zoomToCategories(e,t,i){this.zoomToIndexes(this.categoryToIndex(e),this.categoryToIndex(t)+1,i)}getCellWidthPosition(){return this._frequency/this.dataItems.length/(this.get("end",1)-this.get("start",0))}nextPosition(e){e==null&&(e=1),this.get("renderer").getPrivate("letter")=="Y"&&(e*=-1);let t=this.getPrivate("tooltipPosition",0),i=It(this.axisPositionToIndex(t)+e,0,this.dataItems.length-1);return this.toGlobalPosition(this.indexToPosition(i))}};ni.className="CategoryAxis";ni.classNames=Zr.classNames.concat([ni.className]);var Jt=class extends ft{constructor(){super(...arguments),this._dataGrouped=!1,this._seriesDataGrouped=!1,this._groupingCalculated=!1,this._intervalDuration=1,this._baseDuration=1,this._intervalMax={},this._intervalMin={}}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["axis"]),super._afterNew(),this.addTag("date"),this._setBaseInterval(this.get("baseInterval")),this.on("baseInterval",()=>{this._setBaseInterval(this.get("baseInterval"))})}_setBaseInterval(e){this.setPrivateRaw("baseInterval",e),this._baseDuration=dr(e)}_fixZoomFactor(){let e=this.get("maxZoomFactor");e!=null&&e!=1/0?this.setPrivateRaw("maxZoomFactor",e):this.setPrivateRaw("maxZoomFactor",Math.round((this.getPrivate("max",0)-this.getPrivate("min",0))/this.baseMainDuration()))}_groupData(){let e=this.getPrivate("min"),t=this.getPrivate("max");if(j(e)&&j(t)){this._fixZoomFactor();let i=this.getPrivate("groupInterval");if(i?this._setBaseInterval(i):this._setBaseInterval(this.get("baseInterval")),this.isDirty("groupInterval")){let s=this.get("groupInterval");s&&(this.setRaw("groupIntervals",[s]),this._handleRangeChange())}if(this.isDirty("groupData")&&!this._dataGrouped){if(this.get("groupData"))W(this.series,s=>{this._groupSeriesData(s)}),this._handleRangeChange();else{let s=this.get("baseInterval"),a=s.timeUnit+s.count;W(this.series,n=>{n.setDataSet(a),n.resetGrouping()}),this._setBaseInterval(s),this.setPrivateRaw("groupInterval",void 0),this.markDirtyExtremes()}this._dataGrouped=!0}}}_groupSeriesData(e){if(this.get("groupData")&&!e.get("groupDataDisabled")){this._dataGrouped=!0,this._seriesDataGrouped=!0;let t=[],i=this.baseMainDuration(),s=this.get("groupIntervals");W(s,u=>{dr(u)>i&&t.push(u)}),e._dataSets={};let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),n,o=e.get("baseAxis");e.get("xAxis")===o?n=e._valueYFields:e.get("yAxis")===o&&(n=e._valueXFields);let A=e._mainDataItems,l=this.get("baseInterval"),h=l.timeUnit+l.count;e._dataSets[h]=A;let c=e.get("groupDataCallback"),d=e.get("groupDataWithOriginals",!1);c&&(d=!0),W(t,u=>{let f=-1/0,m=u.timeUnit+u.count;e._dataSets[m]=[];let g,v={},B={},w={},_={};W(n,O=>{v[O]=0,B[O]=0,w[O]=e.get(O+"Grouped"),_[O]=O+"Working"});let L=Yi(u.timeUnit),k=A[0],D;k&&(D=A[0].get(a));let E;W(A,O=>{let I=O.get(a),M=xi(I,u.timeUnit,u.count,this._root,D),S;if(f<M-L/24)S=Tr(O.dataContext),g=new Ui(e,S,e._makeDataItem(S)),g.setRaw(a,M),e._dataSets[m].push(g),W(n,P=>{let Y=O.get(P);j(Y)?(g.setRaw(P,Y),g.setRaw(_[P],Y),B[P]=1,v[P]=Y):(v[P]=0,B[P]=0)}),d&&g.set("originals",[O]),c&&E&&c(E,u),E=g;else{let P=!1;if(W(n,Y=>{let G=w[Y],ie=O.get(Y);if(ie!=null){P=!0;let J=g.get(Y);switch(G){case"close":g.setRaw(Y,ie);break;case"sum":g.setRaw(Y,J+ie);break;case"open":break;case"low":ie<J&&g.setRaw(Y,ie);break;case"high":ie>J&&g.setRaw(Y,ie);break;case"average":B[Y]++,v[Y]+=ie;let ne=v[Y]/B[Y];g.setRaw(Y,ne);break;case"extreme":Math.abs(ie)>Math.abs(J)&&g.setRaw(Y,ie);break}g.setRaw(_[Y],g.get(Y))}}),P){let Y=Tr(O.dataContext);Y[a]=M,g.dataContext=Y}d&&g.get("originals").push(O)}f=M}),c&&E&&c(E,u)}),e._dataSetId&&e.setDataSet(e._dataSetId),this.markDirtySize(),this._seriesAdded&&this._root.events.once("frameended",()=>{this.markDirtySize()})}}_clearDirty(){super._clearDirty(),this._groupingCalculated=!1,this._dataGrouped=!1}getGroupInterval(e){let t=this.get("baseInterval"),i=Ac(0,e,this.get("groupCount",1/0),this.get("groupIntervals"));return dr(i)<dr(t)&&(i=Object.assign({},t)),i}getIntervalMax(e){return this._intervalMax[e.timeUnit+e.count]}getIntervalMin(e){return this._intervalMin[e.timeUnit+e.count]}_handleRangeChange(){super._handleRangeChange();let e=Math.round(this.getPrivate("selectionMin")),t=Math.round(this.getPrivate("selectionMax"));if(j(e)&&j(t)){if(this.get("endLocation")==0&&(t+=1),this.get("groupData")&&!this._groupingCalculated){this._groupingCalculated=!0;let i=this.get("groupInterval"),s=this.getPrivate("groupInterval"),a=t-e+(this.get("startLocation",0)+(1-this.get("endLocation",1))*this._baseDuration);if(s){let n=dr(s);a=Math.ceil(a/n)*n}if(i||(i=this.getGroupInterval(a)),i&&(!s||s.timeUnit!==i.timeUnit||s.count!==i.count||this._seriesDataGrouped)){this._seriesDataGrouped=!1,this.setPrivateRaw("groupInterval",i),this._setBaseInterval(i);let n=i.timeUnit+i.count;W(this.series,o=>{o.get("baseAxis")===this&&o.setDataSet(n)}),this.markDirtyExtremes(),this._root.events.once("frameended",()=>{this._root.events.once("frameended",()=>{let o="groupintervalchanged";this.events.isEnabled(o)&&this.events.dispatch(o,{type:o,target:this})})})}}W(this.series,i=>{if(i.get("baseAxis")===this){let s=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),n=td(i.dataItems,g=>js(g.get(s),e)).index;n>0&&(n-=1),t+=this._baseDuration*(1-this.get("endLocation",1));let A=Gl(i.dataItems,g=>js(g.get(s),t)).index,l=A;l>1&&l--;let h=i.dataItems[n],c=i.dataItems[l],d,u;h&&(u=h.get(s)),c&&(d=c.get(s));let f=!1;d!=null&&u!=null&&(d<e||u>t)&&(f=!0),i.setPrivate("outOfSelection",f),i.setPrivate("startIndex",n);let m=i._adjustStartIndex(n);i.getPrivate("adjustedStartIndex")!==m&&(i.setPrivate("adjustedStartIndex",m),this.root.events.once("frameended",()=>{i._markDirtyPrivateKey("adjustedStartIndex")})),i.setPrivate("endIndex",A)}})}}_adjustMinMax(e,t,i,s){return{min:e,max:t,step:(t-e)/i}}intervalDuration(){return this._intervalDuration}_saveMinMax(e,t){let i=this.getPrivate("groupInterval");i||(i=this.get("baseInterval"));let s=i.timeUnit+i.count;this._intervalMin[s]=e,this._intervalMax[s]=t}_getM(e){return e=="day"||e=="month"||e=="year"?1.05:1.01}_getMinorInterval(e){var t;let i,s=e.count,a=e.timeUnit;return s>1&&(s==10||s==15?s=5:s==12?s=2:s==6?s=1:s==30?s=10:s<10&&(s=1),i={timeUnit:a,count:s}),a=="week"&&(((t=this.getPrivate("baseInterval"))===null||t===void 0?void 0:t.timeUnit)!="week"?i={timeUnit:"day",count:1}:i={timeUnit:"week",count:1}),a=="year"&&s==1&&this.getPrivate("selectionMax",0)-this.getPrivate("selectionMin",0)<4*366*24*60*60*1e3&&(i={timeUnit:"month",count:1}),i}_prepareAxisItems(){let e=this.getPrivate("min"),t=this.getPrivate("max");if(j(e)&&j(t)){let i=this._root,s=Math.round(this.getPrivate("selectionMin")),a=Math.round(this.getPrivate("selectionMax")),n=this.get("renderer"),o=this.getPrivate("baseInterval"),A=s,l=0,h=this.get("gridIntervals"),c=Ac(0,a-s,n.gridCount(),h);dr(c)<this._baseDuration&&(c=Object.assign({},o));let d=dr(c);this._intervalDuration=d;let u=Sd(c.timeUnit),f=i.utc,m=i.timezone;A=xi(s-d,c.timeUnit,c.count,i,e);let g=A-d,v,B=this.get("dateFormats");this.setPrivateRaw("gridInterval",c);let w=n.get("minorLabelsEnabled"),_=n.get("minorGridEnabled",w),L,k=0;_&&(L=this._getMinorInterval(c),k=dr(L));let D=0;for(;A<a+d;){let E;this.dataItems.length<l+1?(E=new Ui(this,void 0,{}),this._dataItems.push(E),this.processDataItem(E)):E=this.dataItems[l],this._createAssets(E,[]),this._toggleDataItem(E,!0),E.setRaw("value",A),E.setRaw("labelEndValue",void 0);let O=A+Yi(c.timeUnit,c.count*this._getM(c.timeUnit));O=xi(O,c.timeUnit,1,i),E.setRaw("endValue",O);let I=new Date(A);v=B[c.timeUnit],u&&this.get("markUnitChange")&&j(g)&&c.timeUnit!="year"&&Ld(A,g,u,f,m)&&(v=this.get("periodChangeDateFormats")[c.timeUnit]);let M=E.get("label");M&&M.set("text",i.dateFormatter.format(I,v));let S=c.count;if(c.timeUnit=="week"?M?.set("location",this.get("weekLabelLocation",0)):M?.set("location",n.labels.template.get("location")),_){S=1;let P=c.timeUnit;P=="week"&&this.get("skipFirstMinor")&&(P="day");let Y=A+Yi(P,this._getM(P));Y=xi(Y,P,1,i),E.setRaw("labelEndValue",Y)}if(this._prepareDataItem(E,S),g=A,A=O,L){let P=L.timeUnit,Y=L.count,G=this._getM(P);this.get("skipFirstMinor")||(g-=k*G);let ie=xi(g+k*G,P,Y,i,g),J,ne=this.get("minorDateFormats",this.get("dateFormats"));for(;ie<A-.01*k;){let z;this.minorDataItems.length<D+1?(z=new Ui(this,void 0,{}),this.minorDataItems.push(z),this.processDataItem(z)):z=this.minorDataItems[D],this._createAssets(z,["minor"],!0),this._toggleDataItem(z,!0),z.setRaw("value",ie);let K=ie+Yi(P,Y*G);K=xi(K,P,1,i),z.setRaw("endValue",K);let ge=new Date(ie);v=ne[P];let he=z.get("label");if(he&&(w?he.set("text",i.dateFormatter.format(ge,v)):he.setPrivate("visible",!1)),this._prepareDataItem(z,1),ie==J)break;if(!z.get("isRange")){let re=this.get("fillRule");re&&re(z)}J=ie,ie=K,D++}}if(A==g)break;l++}for(let E=l;E<this.dataItems.length;E++)this._toggleDataItem(this.dataItems[E],!1);for(let E=D;E<this.minorDataItems.length;E++)this._toggleDataItem(this.minorDataItems[E],!1);W(this.series,E=>{E.inited&&E._markDirtyAxes()})}this._updateGhost()}_updateFinals(e,t){this.setPrivateRaw("selectionMinFinal",this.positionToValue(e)),this.setPrivateRaw("selectionMaxFinal",this.positionToValue(t))}_getDelta(){this._deltaMinMax=this._baseDuration/2}_fixMin(e){let t=this.getPrivate("baseInterval"),i=t.timeUnit,s=xi(e,i,t.count,this._root),a=s+Yi(i,t.count*this._getM(i));return a=xi(a,i,1,this._root),s+(a-s)*this.get("startLocation",0)}_fixMax(e){let t=this.getPrivate("baseInterval"),i=t.timeUnit,s=xi(e,i,t.count,this._root),a=s+Yi(i,t.count*this._getM(i));return a=xi(a,i,1,this._root),s+(a-s)*this.get("endLocation",1)}_updateDates(e,t){}_handleSeriesRemoved(){this.setPrivate("baseInterval",this.get("baseInterval")),this.setPrivate("min",void 0),this.setPrivate("minFinal",void 0)}baseDuration(){return this._baseDuration}baseMainDuration(){return dr(this.get("baseInterval"))}processSeriesDataItem(e,t){let i=this.getPrivate("baseInterval");e.open||(e.open={}),e.close||(e.close={}),W(t,s=>{let a=e.get(s);if(j(a)){let n=e.open[s],o=e.close[s];if(!(a>=n&&a<=o)){let A=i.timeUnit,l=i.count;n=xi(a,A,l,this._root),o=n+Yi(A,l*this._getM(A)),o=xi(o,A,1,this._root),e.open[s]=n,e.close[s]=o}this._updateDates(n,e.component)}})}_handleSizeDirty(){}getDataItemPositionX(e,t,i,s,a){let n,o,A;return a?A=e.get(t):(e.open&&e.close?(n=e.open[t],o=e.close[t]):(n=e.get(t),o=n),A=n+(o-n)*i,A=this._baseValue+(A-this._baseValue)*s),this.valueToPosition(A)}getDataItemCoordinateX(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionX(e,t,i,s))}getDataItemPositionY(e,t,i,s,a){let n,o,A;return a?A=e.get(t):(e.open&&e.close?(n=e.open[t],o=e.close[t]):(n=e.get(t),o=n),A=n+(o-n)*i,A=this._baseValue+(A-this._baseValue)*s),this.valueToPosition(A)}getDataItemCoordinateY(e,t,i,s){return this._settings.renderer.positionToCoordinate(this.getDataItemPositionY(e,t,i,s))}roundAxisPosition(e,t){let i=this.positionToValue(e);i=i-(t-.5)*this._baseDuration;let s=this.getPrivate("baseInterval");if(!hs(i)){let a=this._root.locale.firstDayOfWeek,n=s.timeUnit,o=this._root.utc,A=this._root.timezone,l=s.count;i=xi(i,n,l,this._root,this.getPrivate("min",0));let h=oc(s,new Date(i),a,o,A);return A&&(i=xi(i+this._baseDuration*.05,n,l,this._root,this.getPrivate("min",0)),h=oc(s,new Date(i+h*t),a,o,A)),this.valueToPosition(i+h*t)}return NaN}getTooltipText(e,t){if(this.getPrivate("min")!=null){let i=this.get("tooltipDateFormats")[this.getPrivate("baseInterval").timeUnit],s=this.positionToValue(e);if(j(s)){let a=new Date(s),n=this.getPrivate("baseInterval"),o=oc(n,a,this._root.locale.firstDayOfWeek,this._root.utc,this._root.timezone);return t!==!1&&(a=new Date(s+this.get("tooltipIntervalOffset",-this.get("tooltipLocation",.5))*o)),this._root.dateFormatter.format(a,this.get("tooltipDateFormat",i))}}return""}getSeriesItem(e,t,i,s){let a=this.getPrivate("name")+this.get("renderer").getPrivate("letter"),n=this.positionToValue(t);i==null&&(i=.5),n=n-(i-.5)*this._baseDuration;let o=Gl(e.dataItems,A=>{let l=0;return A.open&&(l=A.open[a]),js(l,n)});if(s||e.get("snapTooltip")){let A=e.dataItems[o.index-1],l=e.dataItems[o.index];if(A&&l&&A.open&&l.close){let h=A.open[a],c=l.close[a];if(Math.abs(n-h)>Math.abs(n-c))return l}if(A)return A;if(l)return l}else{let A=e.dataItems[o.index-1];if(A&&A.open&&A.close){let l=A.open[a],h=A.close[a];if(n>=l&&n<=h)return A}}}shouldGap(e,t,i,s){let a=e.get(s);return t.get(s)-a>this._baseDuration*i}zoomToDates(e,t,i){this.zoomToValues(e.getTime(),t.getTime(),i)}zoomToValues(e,t,i){let s=this.getPrivate("minFinal",this.getPrivate("min",0)),a=this.getPrivate("maxFinal",this.getPrivate("max",0));if(this.getPrivate("min")!=null&&this.getPrivate("max")!=null)if(this.get("groupData")){let n=this.getGroupInterval(t-e),o=this.get("baseInterval"),A=this.getIntervalMin(o),l=this.getIntervalMax(o)-1;l=xi(l,n.timeUnit,n.count,this.root),l+=this._getM(n.timeUnit)*dr(n),l=xi(l,n.timeUnit,n.count,this.root);let h=xi(A,n.timeUnit,n.count,this.root),c=xi(l,n.timeUnit,n.count,this.root),d=(e-h)/(c-h),u=(t-h)/(c-h);this.zoom(d,u,i)}else this.zoom((e-s)/(a-s),(t-s)/(a-s),i)}positionToDate(e){return new Date(this.positionToValue(e))}dateToPosition(e){return this.valueToPosition(e.getTime())}getCellWidthPosition(){let e=this.getPrivate("selectionMax",this.getPrivate("max")),t=this.getPrivate("selectionMin",this.getPrivate("min"));return j(e)&&j(t)?this._intervalDuration/(e-t):.05}nextPosition(e){e==null&&(e=1);let t=this.get("tooltipLocation",.5)*this._baseDuration;this.get("renderer").getPrivate("letter")=="Y"&&(e*=-1);let i=this.positionToValue(this.getPrivate("tooltipPosition",0)),s=this.getPrivate("baseInterval"),a=this._nextTime(i,e,s),n=this.getPrivate("selectionMin",0),o=this.getPrivate("selectionMax",0),A=xi(n,s.timeUnit,s.count,this._root),l=xi(o,s.timeUnit,s.count,this._root);return a+=t,a=It(a,A+t,l-t),this.toGlobalPosition(this.valueToPosition(a))}_nextTime(e,t,i){return xi(e+t*this._baseDuration,i.timeUnit,i.count,this._root)}};Jt.className="DateAxis";Jt.classNames=ft.classNames.concat([Jt.className]);var zn=class extends pt{_beforeChanged(){super._beforeChanged();let e=this.get("sprite");if(this.isDirty("sprite")&&e&&(e.setAll({position:"absolute",role:"figure"}),this._disposers.push(e)),this.isDirty("location")){let t=e.dataItem;this.axis&&e&&t&&this.axis._prepareDataItem(t)}}_dispose(){let e=this.axis;e&&Ye(e._bullets,(t,i)=>{i.uid==this.uid&&delete e._bullets[t]}),super._dispose()}};zn.className="AxisBullet";zn.classNames=pt.classNames.concat([zn.className]);var Qi=class extends gs{constructor(){super(...arguments),this.thumb=Xt.new(this._root,{width:Ae,isMeasured:!1,themeTags:["axis","x","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["renderer","x"]),super._afterNew(),this.setPrivateRaw("letter","X");let e=this.grid.template;e.set("height",Ae),e.set("width",0),e.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(0,i.height())}),this.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(i.width(),0)})}_changed(){var e;super._changed();let t=this.axis,i=t.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("x",-1e3));let s="opposite",a="inside";if(this.isDirty(s)||this.isDirty(a)){let n=this.chart,o=t.children;if(this.get(a)?t.addTag(a):t.removeTag(a),n){if(this.get(s)){let A=n.topAxesContainer.children;A.indexOf(t)==-1&&A.insertIndex(0,t),t.addTag(s),o.moveValue(this)}else{let A=n.bottomAxesContainer.children;A.indexOf(t)==-1&&A.moveValue(t),t.removeTag(s),o.moveValue(this,0)}(e=t.ghostLabel)===null||e===void 0||e._applyThemes(),this.labels.each(A=>{A._applyThemes()}),this.root._markDirtyRedraw()}t.markDirtySize()}this.thumb.setPrivate("height",t.labelsContainer.height())}_getPan(e,t){return(t.x-e.x)/this.width()}toAxisPosition(e){let t=this._start||0,i=this._end||1;return e-=this._ls,e=e*(i-t)/this._lc,this.get("inversed")?e=i-e:e=t+e,e}toGlobalPosition(e){let t=this._start||0,i=this._end||1;return this.get("inversed")?e=i-e:e=e-t,e=e/(i-t)*this._lc,e+=this._ls,e}_updateLC(){let e=this.axis,t=e.parent;if(t){let i=t.innerWidth();this._lc=this.axisLength()/i,this._ls=(e.x()-t.get("paddingLeft",0))/i}}_updatePositions(){let e=this.axis,t=e.x()-tt(e.get("centerX",0),e.width())-e.parent.get("paddingLeft",0);e.gridContainer.set("x",t),e.topGridContainer.set("x",t),e.bulletsContainer.set("y",this.y());let i=e.chart;if(i){let s=i.plotContainer,a=e.axisHeader,n=e.get("marginLeft",0),o=e.x()-n,A=e.parent;A&&(o-=A.get("paddingLeft",0)),a.children.length>0?(n=e.axisHeader.width(),e.set("marginLeft",n+1)):a.set("width",n),a.setAll({x:o,y:-1,height:s.height()+2})}}processAxis(){super.processAxis();let e=this.axis;e.get("width")==null&&e.set("width",Ae);let t=this._root.verticalLayout;e.set("layout",t),e.labelsContainer.set("width",Ae),e.axisHeader.setAll({layout:t})}axisLength(){return this.axis.width()}positionToPoint(e){return{x:this.positionToCoordinate(e),y:0}}updateTick(e,t,i,s){if(e){j(t)||(t=0);let a=.5;j(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),j(i)&&i!=t&&(t=t+(i-t)*a),e.set("x",this.positionToCoordinate(t));let n=e.get("length",0),o=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("y",Ae),o||(n*=-1)):(e.set("y",0),o&&(n*=-1)),e.set("draw",A=>{A.moveTo(0,0),A.lineTo(0,n)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateLabel(e,t,i,s){if(e){let a=.5;j(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),j(t)||(t=0);let n=e.get("inside",this.get("inside",!1));this.get("opposite")?n?(e.set("position","absolute"),e.set("y",0)):(e.set("position","relative"),e.set("y",Ae)):n?(e.set("y",0),e.set("position","absolute")):(e.set("y",void 0),e.set("position","relative")),j(i)&&i!=t&&(t=t+(i-t)*a),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){j(t)||(t=0);let s=e.get("location",.5);j(i)&&i!=t&&(t=t+(i-t)*s),e.set("x",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateBullet(e,t,i){if(e){let s=e.get("sprite");if(s){j(t)||(t=0);let a=e.get("location",.5);j(i)&&i!=t&&(t=t+(i-t)*a);let n=this.axis.roundAxisPosition(t,a),o=this.axis._bullets[n],A=-1;if(this.get("opposite")&&(A=1),e.get("stacked"))if(o){let l=o.get("sprite");l&&s.set("y",l.y()+l.height()*A)}else s.set("y",0);this.axis._bullets[n]=e,s.set("x",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){j(t)||(t=0),j(i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",s=>{let a=this.axis.gridContainer.height(),n=this.width();i<t&&([i,t]=[t,i]),!(t>n||i<0)&&(s.moveTo(t,0),s.lineTo(i,0),s.lineTo(i,a),s.lineTo(t,a),s.lineTo(t,0))})}positionTooltip(e,t){this._positionTooltip(e,{x:this.positionToCoordinate(t),y:0})}updateTooltipBounds(e){let t=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.x,n=0,o=this.axisLength(),A=i,l="up";this.get("opposite")?t?(l="up",n=s.y,A=i):(l="down",n=s.y-i,A=i):t?(l="down",n=s.y-i,A=i):(l="up",n=s.y,A=i);let h={left:a,right:a+o,top:n,bottom:n+A},c=e.get("bounds");Ad(h,c)||(e.set("bounds",h),e.set("pointerOrientation",l))}};Qi.className="AxisRendererX";Qi.classNames=gs.classNames.concat([Qi.className]);var Ts=class extends gs{constructor(){super(...arguments),this.thumb=Xt.new(this._root,{height:Ae,isMeasured:!1,themeTags:["axis","y","thumb","zoomgrip"]})}_afterNew(){this._settings.themeTags=Ue(this._settings.themeTags,["renderer","y"]),this._settings.opposite&&this._settings.themeTags.push("opposite"),super._afterNew(),this.setPrivateRaw("letter","Y");let e=this.grid.template;e.set("width",Ae),e.set("height",0),e.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(i.width(),0)}),this.set("draw",(t,i)=>{t.moveTo(0,0),t.lineTo(0,i.height())})}_getPan(e,t){return(e.y-t.y)/this.height()}_changed(){var e;super._changed();let t=this.axis,i=t.ghostLabel;i&&(i.setPrivate("visible",!this.get("inside")),i.set("y",-1e3));let s=this.thumb,a="opposite",n="inside",o=this.chart;if(this.isDirty(a)||this.isDirty(n)){let l=t.children;if(this.get(n)?t.addTag(n):t.removeTag(n),o){if(this.get(a)){let h=o.rightAxesContainer.children;h.indexOf(t)==-1&&h.moveValue(t,0),t.addTag(a),l.moveValue(this,0)}else{let h=o.leftAxesContainer.children;h.indexOf(t)==-1&&h.moveValue(t),t.removeTag(a),l.moveValue(this)}(e=t.ghostLabel)===null||e===void 0||e._applyThemes(),this.labels.each(h=>{h._applyThemes()}),this.root._markDirtyRedraw()}t.markDirtySize()}let A=t.labelsContainer.width();o&&(this.get(a)?s.set("centerX",0):s.set("centerX",A)),s.setPrivate("width",A)}processAxis(){super.processAxis();let e=this.axis;e.get("height")==null&&e.set("height",Ae);let t=this._root.horizontalLayout;e.set("layout",t),e.labelsContainer.set("height",Ae),e.axisHeader.set("layout",t)}_updatePositions(){let e=this.axis,t=e.y()-tt(e.get("centerY",0),e.height());e.gridContainer.set("y",t),e.topGridContainer.set("y",t),e.bulletsContainer.set("x",this.x());let i=e.chart;if(i){let s=i.plotContainer,a=e.axisHeader,n=e.get("marginTop",0);a.children.length>0?(n=e.axisHeader.height(),e.set("marginTop",n+1)):a.set("height",n),a.setAll({y:e.y()-n,x:-1,width:s.width()+2})}}axisLength(){return this.axis.innerHeight()}positionToPoint(e){return{x:0,y:this.positionToCoordinate(e)}}updateLabel(e,t,i,s){if(e){j(t)||(t=0);let a=.5;j(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a);let n=this.get("opposite"),o=e.get("inside",this.get("inside",!1));n?(e.set("x",0),o?e.set("position","absolute"):e.set("position","relative")):o?(e.set("x",0),e.set("position","absolute")):(e.set("x",void 0),e.set("position","relative")),j(i)&&i!=t&&(t=t+(i-t)*a),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateGrid(e,t,i){if(e){j(t)||(t=0);let s=e.get("location",.5);j(i)&&i!=t&&(t=t+(i-t)*s),e.set("y",this.positionToCoordinate(t)),this.toggleVisibility(e,t,0,1)}}updateTick(e,t,i,s){if(e){j(t)||(t=0);let a=.5;j(s)&&s>1?a=e.get("multiLocation",a):a=e.get("location",a),j(i)&&i!=t&&(t=t+(i-t)*a),e.set("y",this.positionToCoordinate(t));let n=e.get("length",0),o=e.get("inside",this.get("inside",!1));this.get("opposite")?(e.set("x",0),o&&(n*=-1)):o||(n*=-1),e.set("draw",A=>{A.moveTo(0,0),A.lineTo(n,0)}),this.toggleVisibility(e,t,e.get("minPosition",0),e.get("maxPosition",1))}}updateBullet(e,t,i){if(e){let s=e.get("sprite");if(s){j(t)||(t=0);let a=e.get("location",.5);j(i)&&i!=t&&(t=t+(i-t)*a);let n=this.axis.roundAxisPosition(t,a),o=this.axis._bullets[n],A=1;if(this.get("opposite")&&(A=-1),e.get("stacked"))if(o){let l=o.get("sprite");l&&s.set("x",l.x()+l.width()*A)}else s.set("x",0);this.axis._bullets[n]=e,s.set("y",this.positionToCoordinate(t)),this.toggleVisibility(s,t,0,1)}}}updateFill(e,t,i){if(e){j(t)||(t=0),j(i)||(i=1);let s=this.positionToCoordinate(t),a=this.positionToCoordinate(i);this.fillDrawMethod(e,s,a)}}fillDrawMethod(e,t,i){e.set("draw",s=>{let a=this.axis.gridContainer.width(),n=this.height();i<t&&([i,t]=[t,i]),!(t>n||i<0)&&(s.moveTo(0,t),s.lineTo(a,t),s.lineTo(a,i),s.lineTo(0,i),s.lineTo(0,t))})}positionToCoordinate(e){return this._inversed?(e-this._start)*this._axisLength:(this._end-e)*this._axisLength}positionTooltip(e,t){this._positionTooltip(e,{x:0,y:this.positionToCoordinate(t)})}updateTooltipBounds(e){let t=this.get("inside"),i=1e5,s=this._display.toGlobal({x:0,y:0}),a=s.y,n=0,o=this.axisLength(),A=i,l="right";this.get("opposite")?t?(l="right",n=s.x-i,A=i):(l="left",n=s.x,A=i):t?(l="left",n=s.x,A=i):(l="right",n=s.x-i,A=i);let h={left:n,right:n+A,top:a,bottom:a+o},c=e.get("bounds");Ad(h,c)||(e.set("bounds",h),e.set("pointerOrientation",l))}_updateLC(){let e=this.axis,t=e.parent;if(t){let i=t.innerHeight();this._lc=this.axisLength()/i,this._ls=e.y()/i}}toAxisPosition(e){let t=this._start||0,i=this._end||1;return e-=this._ls,e=e*(i-t)/this._lc,this.get("inversed")?e=t+e:e=i-e,e}toGlobalPosition(e){let t=this._start||0,i=this._end||1;return this.get("inversed")?e=e-t:e=i-e,e=e/(i-t)*this._lc,e+=this._ls,e}fixPosition(e){return this.get("inversed")?e:1-e}};Ts.className="AxisRendererY";Ts.classNames=gs.classNames.concat([Ts.className]);var jn=class extends qt{_beforeChanged(){super._beforeChanged(),(this.isDirty("lowX0")||this.isDirty("lowY0")||this.isDirty("lowX1")||this.isDirty("lowY1")||this.isDirty("highX0")||this.isDirty("highX1")||this.isDirty("highY0")||this.isDirty("highY1"))&&(this._clear=!0)}_draw(){super._draw();let e=this._display;e.moveTo(this.get("lowX0",0),this.get("lowY0",0)),e.lineTo(this.get("lowX1",0),this.get("lowY1",0)),e.moveTo(this.get("highX0",0),this.get("highY0",0)),e.lineTo(this.get("highX1",0),this.get("highY1",0))}};jn.className="Candlestick";jn.classNames=qt.classNames.concat([jn.className]);var _t=class extends Yn{constructor(){super(...arguments),this.allColumns=this.children.push(Re.new(this._root,{})),this.allColumnsData=[],this.columns=this.addDisposer(new wt(Ke.new({}),()=>qt._new(this._root,{position:"absolute",themeTags:Ue(this.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template])))}makeColumn(e,t){let i=t.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(e),t.push(i),i}_processAxisRange(e){super._processAxisRange(e),e.columns=new wt(Ke.new({}),()=>qt._new(this._root,{position:"absolute",themeTags:Ue(e.columns.template.get("themeTags",[]),["series","column"])},[this.columns.template,e.columns.template]))}_beforeColumnsDraw(){this.allColumnsData=[]}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",e=>{e.clear(),W(this.allColumnsData,t=>{let i=t.width,s=t.height,a=t.x,n=t.y,o=t.stroke,A=t.fill,l=t.strokeWidth,h=t.strokeOpacity,c=t.fillOpacity;e.beginFill(A,c),e.beginPath(),e.lineStyle(l,o,h),e.drawRect(a,n,i,s),e.endStroke(),e.endFill()})})}_updateChildren(){this.isDirty("turboMode")&&(this.markDirtyValues(),this.get("turboMode")||this.allColumns.set("draw",void 0)),super._updateChildren()}_updateSeriesGraphics(e,t,i,s,a,n,o,A){if(this.get("turboMode")){t.virtualParent=this.chart,t.parent&&(this.mainContainer.children.removeValue(t),t._parent=void 0);let l=t.get("stroke"),h=t.get("fillOpacity",1),c=t.get("strokeOpacity",1),d=t.get("strokeWidth",1),u=t.get("fill"),f=this.getPoint(i,a),m=this.getPoint(s,n),g=e.get("point");if(g){let v=this.getPoint(g.x,g.y);g.x=v.x+this._x,g.y=v.y+this._y}i=f.x,s=m.x,a=f.y,n=m.y,e.setRaw("left",i),e.setRaw("right",s),e.setRaw("top",a),e.setRaw("bottom",n),this.allColumnsData.push({width:s-i,height:n-a,x:i,y:a,stroke:l,fill:u,strokeWidth:d,strokeOpacity:c,fillOpacity:h})}else t.parent||this.mainContainer.children.push(t),super._updateSeriesGraphics(e,t,i,s,a,n,o,A)}};_t.className="ColumnSeries";_t.classNames=Yn.classNames.concat([_t.className]);var Ms=class extends _t{constructor(){super(...arguments),this.columns=this.addDisposer(new wt(Ke.new({themeTags:["autocolor"]}),()=>jn._new(this._root,{themeTags:Ue(this.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template])))}makeColumn(e,t){let i=t.make();return this.get("turboMode")?i.virtualParent=this.chart:this.mainContainer.children.push(i),i._setDataItem(e),t.push(i),i}_updateGraphics(e,t,i){super._updateGraphics(e,t,i);let s=this.getRaw("xAxis"),a=this.getRaw("yAxis"),n=this.get("vcy",1),o=this.get("vcx",1),A,l,h,c,d,u,f,m,g=this.get("locationX",e.get("locationX",.5)),v=this.get("locationY",e.get("locationY",.5)),B=this.get("openLocationX",e.get("openLocationX",g)),w=this.get("openLocationY",e.get("openLocationY",v)),_;if(i==0){let L=a.getDataItemPositionY(e,this._yOpenField,1,n),k=a.getDataItemPositionY(e,this._yField,1,n);c=a.getDataItemPositionY(e,this._yLowField,1,n),m=a.getDataItemPositionY(e,this._yHighField,1,n),f=Math.max(L,k),h=Math.min(L,k);let D=this._aLocationX0+B-.5,E=this._aLocationX1+g-.5;A=s.getDataItemPositionX(e,this._xField,D+(E-D)/2,o),l=A,d=A,u=A,_="vertical"}else{let L=s.getDataItemPositionX(e,this._xOpenField,1,o),k=s.getDataItemPositionX(e,this._xField,1,o);l=s.getDataItemPositionX(e,this._xLowField,1,o),u=s.getDataItemPositionX(e,this._xHighField,1,o),d=Math.max(L,k),A=Math.min(L,k);let D=this._aLocationY0+w-.5,E=this._aLocationY1+v-.5;h=a.getDataItemPositionY(e,this._yField,D+(E-D)/2,n),c=h,f=h,m=h,_="horizontal"}this._updateCandleGraphics(e,A,l,h,c,d,u,f,m,_)}_updateCandleGraphics(e,t,i,s,a,n,o,A,l,h){let c=e.get("graphics");if(c){let d=this.getPoint(t,s),u=this.getPoint(i,a),f=this.getPoint(n,A),m=this.getPoint(o,l);if(this.get("turboMode")){let g=this.allColumnsData[this.allColumnsData.length-1];g.lowX0=d.x,g.lowY0=d.y,g.lowX1=u.x,g.lowY1=u.y,g.highX0=f.x,g.highY0=f.y,g.highX1=m.x,g.highY1=m.y}else{let g=c.x(),v=c.y();c.set("lowX0",d.x-g),c.set("lowY0",d.y-v),c.set("lowX1",u.x-g),c.set("lowY1",u.y-v),c.set("highX0",f.x-g),c.set("highY0",f.y-v),c.set("highX1",m.x-g),c.set("highY1",m.y-v),c.set("orientation",h);let B=e.get("rangeGraphics");B&&W(B,w=>{w.set("lowX0",d.x-g),w.set("lowY0",d.y-v),w.set("lowX1",u.x-g),w.set("lowY1",u.y-v),w.set("highX0",f.x-g),w.set("highY0",f.y-v),w.set("highX1",m.x-g),w.set("highY1",m.y-v),w.set("orientation",h)})}}}_afterColumnsDraw(){this.get("turboMode")&&this.allColumns.set("draw",e=>{e.clear(),W(this.allColumnsData,t=>{let i=t.width,s=t.height,a=t.x,n=t.y,o=t.stroke,A=t.fill,l=t.strokeWidth,h=t.strokeOpacity,c=t.fillOpacity,d=t.lowX0,u=t.lowY0,f=t.lowX1,m=t.lowY1,g=t.highX0,v=t.highY0,B=t.highX1,w=t.highY1;e.beginFill(A,c),e.beginPath(),e.lineStyle(l,o,h),e.drawRect(a,n,i,s),e.moveTo(d,u),e.lineTo(f,m),e.moveTo(g,v),e.lineTo(B,w),e.endStroke(),e.endFill()})})}_processAxisRange(e){super._processAxisRange(e),e.columns=new wt(Ke.new({}),()=>jn._new(this._root,{themeTags:Ue(e.columns.template.get("themeTags",[]),["candlestick","series","column"])},[this.columns.template,e.columns.template]))}};Ms.className="CandlestickSeries";Ms.classNames=_t.classNames.concat([Ms.className]);var qr=class extends nt{_afterNew(){this._setDefault("curveFactory",Xp),super._afterNew()}_getPoints(e,t){let i=t.points,s=this.get("stepWidth",Ae).value/2,a=e.get("locationX",t.locationX),n=e.get("locationY",t.locationY),o=a,A=n;t.baseAxis===t.xAxis?(a-=s,o+=s):t.baseAxis===t.yAxis&&(n-=s,A+=s);let l=t.xAxis.getDataItemPositionX(e,t.xField,a,t.vcx),h=t.yAxis.getDataItemPositionY(e,t.yField,n,t.vcy),c=t.xAxis.getDataItemPositionX(e,t.xField,o,t.vcx),d=t.yAxis.getDataItemPositionY(e,t.yField,A,t.vcy);if(this._shouldInclude(l)){let u=this.getPoint(l,h),f=[u.x,u.y],m=this.getPoint(c,d),g=[m.x,m.y];if(t.fillVisible){let v=l,B=h,w=c,_=d;if(t.baseAxis===t.xAxis?(B=t.basePosY,_=t.basePosY):t.baseAxis===t.yAxis&&(v=t.basePosX,w=t.basePosX),t.getOpen){let D=e.get(t.xOpenField),E=e.get(t.yOpenField);if(D!=null&&E!=null)if(a=e.get("openLocationX",t.openLocationX),n=e.get("openLocationY",t.openLocationY),o=a,A=n,t.baseAxis===t.xAxis?(a-=s,o+=s):t.baseAxis===t.yAxis&&(n-=s,A+=s),t.stacked){let O=e.get("stackToItemX"),I=e.get("stackToItemY");O?(v=t.xAxis.getDataItemPositionX(O,t.xField,a,O.component.get("vcx")),w=t.xAxis.getDataItemPositionX(O,t.xField,o,O.component.get("vcx"))):t.yAxis===t.baseAxis?(v=t.basePosX,w=t.basePosX):t.baseAxis===t.yAxis&&(v=t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx),w=t.xAxis.getDataItemPositionX(e,t.xOpenField,o,t.vcx)),I?(B=t.yAxis.getDataItemPositionY(I,t.yField,n,I.component.get("vcy")),_=t.yAxis.getDataItemPositionY(I,t.yField,A,I.component.get("vcy"))):t.xAxis===t.baseAxis?(B=t.basePosY,_=t.basePosY):t.baseAxis===t.yAxis&&(B=t.yAxis.getDataItemPositionY(e,t.yOpenField,n,t.vcy),_=t.yAxis.getDataItemPositionY(e,t.yOpenField,A,t.vcy))}else v=t.xAxis.getDataItemPositionX(e,t.xOpenField,a,t.vcx),B=t.yAxis.getDataItemPositionY(e,t.yOpenField,n,t.vcy),w=t.xAxis.getDataItemPositionX(e,t.xOpenField,o,t.vcx),_=t.yAxis.getDataItemPositionY(e,t.yOpenField,A,t.vcy)}let L=this.getPoint(v,B),k=this.getPoint(w,_);f[2]=L.x,f[3]=L.y,g[2]=k.x,g[3]=k.y}i.push(f),i.push(g),e.set("point",{x:f[0]+(g[0]-f[0])/2,y:f[1]+(g[1]-f[1])/2})}this.get("noRisers")&&(t.points=[],t.segments.push(i))}};qr.className="StepLineSeries";qr.classNames=nt.classNames.concat([qr.className]);var Pd=class extends Js{setupDefaultRules(){super.setupDefaultRules(),this.rule("Component").setAll({interpolationDuration:600}),this.rule("Hierarchy").set("animationDuration",600),this.rule("Scrollbar").set("animationDuration",600),this.rule("Tooltip").set("animationDuration",300),this.rule("MapChart").set("animationDuration",1e3),this.rule("MapChart").set("wheelDuration",300),this.rule("Entity").setAll({stateAnimationDuration:600}),this.rule("Sprite").states.create("default",{stateAnimationDuration:600}),this.rule("Tooltip",["axis"]).setAll({animationDuration:200}),this.rule("WordCloud").set("animationDuration",500),this.rule("Polygon").set("animationDuration",600),this.rule("ArcDiagram").set("animationDuration",600)}};var yB=Pd;var Jr=class r extends Js{constructor(e,t){super(e,t),this.responsiveRules=[],this._dp=new ci([this._root._rootContainer.onPrivate("width",i=>{this._isUsed()&&this._maybeApplyRules()}),this._root._rootContainer.onPrivate("height",i=>{this._isUsed()&&this._maybeApplyRules()})])}static widthXXS(e,t){return e<=r.XXS}static widthXS(e,t){return e<=r.XS}static widthS(e,t){return e<=r.S}static widthM(e,t){return e<=r.M}static widthL(e,t){return e<=r.L}static widthXL(e,t){return e<=r.XL}static widthXXL(e,t){return e<=r.XXL}static heightXXS(e,t){return t<=r.XXS}static heightXS(e,t){return t<=r.XS}static heightS(e,t){return t<=r.S}static heightM(e,t){return t<=r.M}static heightL(e,t){return t<=r.L}static heightXL(e,t){return t<=r.XL}static heightXXL(e,t){return t<=r.XXL}static isXXS(e,t){return e<=r.XXS&&t<=r.XXS}static isXS(e,t){return e<=r.XS&&t<=r.XS}static isS(e,t){return e<=r.S&&t<=r.S}static isM(e,t){return e<=r.M&&t<=r.M}static isL(e,t){return e<=r.L&&t<=r.L}static isXL(e,t){return e<=r.XL&&t<=r.XL}static isXXL(e,t){return e<=r.XXL&&t<=r.XXL}static maybeXXS(e,t){return e<=r.XXS||t<=r.XXS}static maybeXS(e,t){return e<=r.XS||t<=r.XS}static maybeS(e,t){return e<=r.S||t<=r.S}static maybeM(e,t){return e<=r.M||t<=r.M}static maybeL(e,t){return e<=r.L||t<=r.L}static maybeXL(e,t){return e<=r.XL||t<=r.XL}static maybeXXL(e,t){return e<=r.XXL||t<=r.XXL}static newEmpty(e){return new this(e,!0)}addRule(e){return e.name&&!e.template&&(e.template=this.rule(e.name,e.tags)),this.responsiveRules.push(e),this._maybeApplyRule(e),e}removeRule(e){Ci(this.responsiveRules,e)}dispose(){this._dp&&this._dp.dispose()}_isUsed(){return this._root._rootContainer.get("themes").indexOf(this)!==-1}_maybeApplyRules(){W(this.responsiveRules,e=>{this._maybeUnapplyRule(e)}),W(this.responsiveRules,e=>{this._maybeApplyRule(e)})}_maybeApplyRule(e){if(e.applied)return;let t=this._root._rootContainer.getPrivate("width"),i=this._root._rootContainer.getPrivate("height");e.relevant.call(e,t,i)&&(e.applied=!0,e.template&&e.settings&&e.template.setAll(e.settings),e.applying&&e.applying.call(e))}_maybeUnapplyRule(e){if(!e.applied)return;let t=this._root._rootContainer.getPrivate("width"),i=this._root._rootContainer.getPrivate("height");e.relevant.call(e,t,i)||(e.applied=!1,e.template&&e.template.removeAll(),e.removing&&e.removing.call(e))}setupDefaultRules(){super.setupDefaultRules();let e=t=>this.addRule(t);e({name:"Chart",relevant:r.widthXXS,settings:{paddingLeft:0,paddingRight:0}}),e({name:"Chart",relevant:r.heightXXS,settings:{paddingTop:0,paddingBottom:0}}),e({name:"Bullet",relevant:r.isXS,settings:{forceHidden:!0}}),e({name:"Legend",relevant:r.isXS,settings:{forceHidden:!0}}),e({name:"HeatLegend",tags:["vertical"],relevant:r.widthXS,settings:{forceHidden:!0}}),e({name:"HeatLegend",tags:["horizontal"],relevant:r.heightXS,settings:{forceHidden:!0}}),e({name:"Label",tags:["heatlegend","start"],relevant:r.maybeXS,settings:{forceHidden:!0}}),e({name:"Label",tags:["heatlegend","end"],relevant:r.maybeXS,settings:{forceHidden:!0}}),e({name:"Button",tags:["resize"],relevant:r.maybeXS,settings:{forceHidden:!0}}),e({name:"AxisRendererX",relevant:r.heightXS,settings:{inside:!0}}),e({name:"AxisRendererY",relevant:r.widthXS,settings:{inside:!0}}),e({name:"AxisRendererXLabel",relevant:r.heightXS,settings:{minPosition:.1,maxPosition:.9}}),e({name:"AxisLabel",tags:["y"],relevant:r.widthXS,settings:{centerY:Ae,maxPosition:.9}}),e({name:"AxisLabel",tags:["x"],relevant:r.heightXXS,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["x","minor"],relevant:r.widthXXL,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["y"],relevant:r.widthXXS,settings:{forceHidden:!0}}),e({name:"AxisLabel",tags:["y","minor"],relevant:r.heightXXL,settings:{forceHidden:!0}}),e({name:"AxisTick",tags:["x"],relevant:r.heightXS,settings:{inside:!0,minPosition:.1,maxPosition:.9}}),e({name:"AxisTick",tags:["y"],relevant:r.widthXXS,settings:{inside:!0,minPosition:.1,maxPosition:.9}}),e({name:"Grid",relevant:r.maybeXXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["radial"],relevant:r.maybeXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["circular"],relevant:r.maybeS,settings:{inside:!0}}),e({name:"AxisTick",relevant:r.maybeS,settings:{inside:!0}}),e({name:"RadialLabel",tags:["circular"],relevant:r.maybeXS,settings:{forceHidden:!0}}),e({name:"AxisTick",tags:["circular"],relevant:r.maybeXS,settings:{inside:!0}}),e({name:"PieChart",relevant:r.maybeXS,settings:{radius:Ve(99)}}),e({name:"PieChart",relevant:r.widthM,settings:{radius:Ve(99)}}),e({name:"RadialLabel",tags:["pie"],relevant:r.maybeXS,settings:{forceHidden:!0}}),e({name:"RadialLabel",tags:["pie"],relevant:r.widthM,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pie"],relevant:r.maybeXS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pie"],relevant:r.widthM,settings:{forceHidden:!0}}),e({name:"FunnelSeries",relevant:r.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["funnel","vertical"],relevant:r.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["funnel","vertical"],relevant:r.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["funnel","horizontal"],relevant:r.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["funnel","horizontal"],relevant:r.heightS,settings:{forceHidden:!0}}),e({name:"PyramidSeries",relevant:r.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["pyramid","vertical"],relevant:r.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pyramid","vertical"],relevant:r.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["pyramid","horizontal"],relevant:r.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pyramid","horizontal"],relevant:r.heightS,settings:{forceHidden:!0}}),e({name:"PictorialStackedSeries",relevant:r.widthM,settings:{alignLabels:!1}}),e({name:"Label",tags:["pictorial","vertical"],relevant:r.widthL,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pictorial","vertical"],relevant:r.widthL,settings:{forceHidden:!0}}),e({name:"Label",tags:["pictorial","horizontal"],relevant:r.heightS,settings:{forceHidden:!0}}),e({name:"Tick",tags:["pictorial","horizontal"],relevant:r.heightS,settings:{forceHidden:!0}}),e({name:"Label",tags:["flow","horizontal"],relevant:r.widthS,settings:{forceHidden:!0}}),e({name:"Label",tags:["flow","vertical"],relevant:r.heightS,settings:{forceHidden:!0}}),e({name:"Chord",relevant:r.maybeXS,settings:{radius:Ve(99)}}),e({name:"Label",tags:["hierarchy","node"],relevant:r.maybeXS,settings:{forceHidden:!0}})}};Jr.XXS=100;Jr.XS=200;Jr.S=300;Jr.M=400;Jr.L=600;Jr.XL=800;Jr.XXL=1e3;var xB=Jr;var Wp;function HI(){return Ze(this,void 0,void 0,function*(){let r=yield Promise.all([import("./YAVQSNZ6.js"),import("./BQOMKKBK.js")]),e=r[0].default,t=r[1].default,i=window;return i.pdfMake=i.pdfMake||{},i.pdfMake.vfs=t,e.vfs=t,e})}var Zn=class extends pt{_afterNew(){super._afterNew(),this._setRawDefault("filePrefix","chart"),this._setRawDefault("charset","utf-8"),this._setRawDefault("numericFields",[]),this._setRawDefault("dateFields",[]),this._setRawDefault("durationFields",[]),this._setRawDefault("extraImages",[]),this._setRawDefault("pngOptions",{quality:1,maintainPixelRatio:!1}),this._setRawDefault("jpgOptions",{quality:.8,maintainPixelRatio:!1}),this._setRawDefault("printOptions",{quality:1,maintainPixelRatio:!1,delay:500,printMethod:"iframe",imageFormat:"png"}),this._setRawDefault("jsonOptions",{indent:2,renameFields:!0}),this._setRawDefault("csvOptions",{separator:",",addColumnNames:!0,emptyAs:"",addBOM:!0}),this._setRawDefault("htmlOptions",{emptyAs:"-",addColumnNames:!0}),this._setRawDefault("xlsxOptions",{emptyAs:"",addColumnNames:!0}),this._setRawDefault("pdfOptions",{fontSize:14,imageFormat:"png",align:"left",addURL:!0}),this._setRawDefault("pdfdataOptions",{emptyAs:"",addColumnNames:!0}),this._root.addDisposer(this)}_beforeChanged(){if(super._beforeChanged(),this.isDirty("menu")){let e=this.get("menu");e&&(e.set("exporting",this),this._disposers.push(e))}}_getFormatOptions(e,t){let i=Tr(this.get(e+"Options",{}));return t&&Ye(t,(s,a)=>{i[s]=a}),i}download(e,t){return Ze(this,void 0,void 0,function*(){let i=e=="pdfdata"?"pdf":e,s=this.get("filePrefix","chart")+"."+i,a=this._getFormatOptions(e,t);this.events.dispatch("downloadstarted",{type:"downloadstarted",format:e,options:a,fileName:s,target:this});let n=yield this.export(e,a);this.streamFile(n,s,a&&a.addBOM)})}print(e){return Ze(this,void 0,void 0,function*(){let t=this._getFormatOptions("print",e);this.events.dispatch("printstarted",{type:"printstarted",format:"print",options:t,target:this});let i=yield this.export(t.imageFormat||"png",t);this.initiatePrint(i,t,this.get("title"))})}export(e,t){return Ze(this,void 0,void 0,function*(){let i=this._getFormatOptions(e,t);this.events.dispatch("exportstarted",{type:"exportstarted",format:e,options:i,target:this});let s="";switch(e){case"png":case"jpg":this._root._runTickerNow(),s=this.exportImage(e,i);break;case"json":s=this.exportJSON(i);break;case"csv":s=this.exportCSV(i);break;case"html":s=this.exportHTML(i);break;case"xlsx":s=this.exportXLSX(i);break;case"pdf":this._root._runTickerNow(),s=this.exportPDF(i);break;case"pdfdata":s=this.exportPDFData(i);break}return this.events.dispatch("exportfinished",{type:"exportfinished",format:e,options:i,target:this}),s})}exportImage(e,t){return Ze(this,void 0,void 0,function*(){let i=this._getFormatOptions(e,t),s=yield this.getCanvas(i),a=s.toDataURL(this.getContentType(e),i.quality||1);return this.disposeCanvas(s),a})}exportCanvas(e){return Ze(this,void 0,void 0,function*(){let t=this._getFormatOptions("canvas",e),i=yield this.getCanvas(t),s=i.toDataURL(this.getContentType("canvas"),t.quality||1);return this.disposeCanvas(i),s})}getCanvas(e){return Ze(this,void 0,void 0,function*(){let t=this._root._renderer.getCanvas(this._root._rootContainer._display,e),i=this.get("extraImages",[]),s=0,a=0,n=t.width,o=t.height,A=0,l=0,h=[];W(i,w=>{let _;w instanceof Po?_={source:w,position:"bottom"}:_=w,_.position=_.position||"bottom",_.marginTop=_.marginTop||0,_.marginRight=_.marginRight||0,_.marginBottom=_.marginBottom||0,_.marginLeft=_.marginLeft||0;let L=_.source._renderer.getCanvas(_.source._rootContainer._display,e),k=L.width+_.marginLeft+_.marginRight,D=L.height+_.marginTop+_.marginBottom;_.position=="top"?(n=_.crop?o:Math.max(n,k),a+=D):_.position=="right"?(o=_.crop?o:Math.max(o,D),A+=k):_.position=="left"?(o=_.crop?o:Math.max(o,D),s+=k):_.position==="bottom"&&(n=_.crop?o:Math.max(n,k),l+=D),h.push({canvas:L,position:_.position,left:_.marginLeft,top:_.marginTop,width:k,height:D})});let c=this.getDisposableCanvas();c.width=s+n+A,c.height=a+o+l;let d=c.getContext("2d"),u=this.get("backgroundColor",this.findBackgroundColor(this._root.dom)),f=this.get("backgroundOpacity",1);u&&(d.fillStyle=u.toCSS(f),d.fillRect(0,0,c.width,c.height));let m=s,g=a,v=m+n,B=g+o;return W(h,w=>{w.position=="top"?(g-=w.height,d.drawImage(w.canvas,s+w.left,g+w.top)):w.position=="right"?(d.drawImage(w.canvas,v+w.left,a+w.top),v+=w.width):w.position=="left"?(m-=w.width,d.drawImage(w.canvas,m+w.left,a+w.top)):w.position==="bottom"&&(d.drawImage(w.canvas,s+w.left,B+w.top),B+=w.height)}),d.drawImage(t,s,a),c})}exportJSON(e){return Ze(this,void 0,void 0,function*(){return"data:"+this.getContentType("json")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getJSON(e))})}getJSON(e){return Ze(this,void 0,void 0,function*(){let t=this._getFormatOptions("json",e);return JSON.stringify(this.getData("json",e,t.renameFields),(i,s)=>(Sr(s)&&Ye(s,(a,n)=>{s[a]=this.convertToSpecialFormat(a,n,t)}),s),t.indent)})}exportCSV(e){return Ze(this,void 0,void 0,function*(){return"data:"+this.getContentType("csv")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getCSV(e))})}getCSV(e){return Ze(this,void 0,void 0,function*(){let t=this._getFormatOptions("csv",e),i="",s="",a=this.getData("csv",t),n=this.getDataFields(a);if(t.pivot){let o=this.get("dataFieldsOrder",[]);tn(n,(A,l)=>{let h=[];t.addColumnNames&&h.push(l);for(let c=a.length,d=0;d<c;d++){let u=a[d][A];h.push(this.convertToSpecialFormat(A,u,t,!0))}i+=s+this.getCSVRow(h,t,void 0,!0),s=`
|
|
10
|
+
`},(A,l)=>{let h=o.indexOf(A),c=o.indexOf(l);return h>c?-1:h<c?1:0})}else{for(let o=a.length,A=0;A<o;A++){let l=this.getCSVRow(a[A],t,n);t.reverse?i=l+s+i:i+=s+l,s=`
|
|
11
|
+
`}t.addColumnNames&&(i=this.getCSVRow(n,t,void 0,!0)+s+i)}return i})}getCSVRow(e,t,i,s=!1){let a=t.separator||",",n=[];i||(i={},Ye(e,(A,l)=>{i[A]=l}));let o=this.get("dataFieldsOrder",[]);return tn(i,(A,l)=>{let h=this.convertEmptyValue(A,e[A],t),c=s?h:this.convertToSpecialFormat(A,h,t);c=""+c,c=c.replace(/"/g,'""'),(t.forceQuotes||c.search(new RegExp(`"|
|
|
12
|
+
|`+a,"g"))>=0)&&(c='"'+c+'"'),n.push(c)},(A,l)=>{let h=o.indexOf(A),c=o.indexOf(l);return h>c?1:h<c?-1:0}),n.join(a)}exportHTML(e){return Ze(this,void 0,void 0,function*(){return"data:"+this.getContentType("html")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getHTML(e))})}getHTML(e){return Ze(this,void 0,void 0,function*(){let t=this._getFormatOptions("html",e),i="<table>";t.tableClass&&(i='<table class="'+t.tableClass+'">');let s=this.getData("html",t),a=this.getDataFields(s);if(t.pivot){let n=this.get("dataFieldsOrder",[]);i+=`
|
|
13
|
+
<tbody>`,tn(a,(o,A)=>{let l=[];t.addColumnNames&&l.push(A);for(let h=s.length,c=0;c<h;c++){let d=s[c][o];l.push(this.convertToSpecialFormat(o,d,t,!0))}i+=`
|
|
14
|
+
`+this.getHTMLRow(l,t,void 0,!0)},(o,A)=>{let l=n.indexOf(o),h=n.indexOf(A);return l>h?-1:l<h?1:0}),i+=`
|
|
15
|
+
</tbody>`}else{t.addColumnNames&&(i+=`
|
|
16
|
+
<thead>
|
|
17
|
+
`+this.getHTMLRow(a,t,void 0,!0,!0)+`
|
|
18
|
+
</thead>`),i+=`
|
|
19
|
+
<tbody>`;for(let n=s.length,o=0;o<n;o++)i+=`
|
|
20
|
+
`+this.getHTMLRow(s[o],t,a);i+=`
|
|
21
|
+
</tbody>`}return i+=`
|
|
22
|
+
</table>`,i})}getHTMLRow(e,t,i,s=!1,a=!1){let n=" <tr>";t.rowClass&&(n=' <tr class="'+t.rowClass+'">'),i||(i=e);let o=this.get("dataFieldsOrder",[]),A=a?"th":"td",l=!0;return tn(i,(h,c)=>{let d=this.convertEmptyValue(h,e[h],t),u=s?d:this.convertToSpecialFormat(h,d,t);u=""+u,u=u.replace(/[\u00A0-\u9999<>\&]/gim,function(m){return"&#"+m.charCodeAt(0)+";"});let f=A;t.pivot&&l&&(f="th"),t.cellClass?n+=`
|
|
23
|
+
<`+f+' class="'+t.cellClass+'">'+u+"</"+f+">":n+=`
|
|
24
|
+
<`+f+">"+u+"</"+f+">",l=!1},(h,c)=>{let d=o.indexOf(h),u=o.indexOf(c);return d>u?1:d<u?-1:0}),n+=`
|
|
25
|
+
</tr>`,n}exportXLSX(e){return Ze(this,void 0,void 0,function*(){return"data:"+this.getContentType("xlsx")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getXLSX(e))})}getXLSX(e){return Ze(this,void 0,void 0,function*(){let t=this._getFormatOptions("xlsx",e),i=yield this.getXLSXLib(),s={bookType:"xlsx",bookSST:!1,type:"base64"},a=this._normalizeExcelSheetName(this.get("title",this._t("Data"))),n={SheetNames:[a],Sheets:{}},o=[],A=this.getData("html",t),l=this.getDataFields(A);if(t.pivot){let h=this.get("dataFieldsOrder",[]);tn(l,(c,d)=>{let u=[];t.addColumnNames&&u.push(d);for(let f=A.length,m=0;m<f;m++){let g=A[m][c];u.push(this.convertToSpecialFormat(c,g,t,!0))}o.push(this.getXLSXRow(u,t,void 0,!0))},(c,d)=>{let u=h.indexOf(c),f=h.indexOf(d);return u>f?1:u<f?-1:0})}else{t.addColumnNames&&o.push(this.getXLSXRow(l,t,void 0,!0));for(let h=A.length,c=0;c<h;c++)o.push(this.getXLSXRow(A[c],t,l))}return n.Sheets[a]=i.utils.aoa_to_sheet(o),this.events.dispatch("workbookready",{type:"workbookready",format:"xlsx",options:t,workbook:n,workbookOptions:s,xlsx:i,target:this}),i.write(n,s)})}_normalizeExcelSheetName(e){return e=e.replace(/([:\\\/?*\[\]]+)/g," "),e.length>30?e.substr(0,30)+"...":e}getXLSXRow(e,t,i,s=!1){let a=[];i||(i=e);let n=this.get("dataFieldsOrder",[]);return tn(i,(o,A)=>{let l=this.convertEmptyValue(o,e[o],t),h=s?l:this.convertToSpecialFormat(o,l,t,!0);a.push(h)},(o,A)=>{let l=n.indexOf(o),h=n.indexOf(A);return l>h?1:l<h?-1:0}),a}_xlsx(){return Ze(this,void 0,void 0,function*(){return yield import("./KBDOBMB5.js")})}getXLSXLib(){return this._xlsx()}exportPDF(e){return Ze(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(e,!0))})}exportPDFData(e){return Ze(this,void 0,void 0,function*(){return"data:"+this.getContentType("pdf")+";"+this.get("charset","utf-8")+","+encodeURIComponent(yield this.getPDF(e,!1,!0))})}getPDF(e,t=!0,i=!1){return Ze(this,void 0,void 0,function*(){let s=this._getFormatOptions("pdf",e),a=this._getFormatOptions("pdfdata",e),n=s.pageOrientation||"portrait",o,A={width:0,height:0};if(t){let v=s.imageFormat||"png",B=this._getFormatOptions(v,s),w=yield this.getCanvas(B);A.width=w.clientWidth,A.height=w.clientHeight,o=w.toDataURL(this.getContentType(v),s.quality||1),this.disposeCanvas(w)}let l=yield this.getPdfmake(),h=[30,30,30,30],c={pageSize:s.pageSize||"A4",pageOrientation:n,pageMargins:s.pageMargins||h,defaultStyle:{font:s.font?s.font.name:void 0},content:[]},d=this.get("title"),u=0;if(d&&(c.content.push({text:d,fontSize:s.fontSize||14,bold:!0,margin:[0,0,0,15]}),u+=50),s.addURL&&(c.content.push({text:this._t("Saved from")+": "+document.location.href,fontSize:s.fontSize,margin:[0,0,0,15]}),u+=50),t&&o){let v=this.getPageSizeFit(c.pageSize,c.pageMargins,u,n);A.width>v[0]||A.height>v[1]?c.content.push({image:o,alignment:s.align||"left",fit:v}):c.content.push({image:o,alignment:s.align||"left"})}(i||s.includeData)&&this.hasData()&&c.content.push({table:yield this.getPDFData(a),fontSize:s.fontSize||14});let f=null,m=null;function g(v){let B={};B.normal=v.normal.path,m[v.normal.path]=v.normal.bytes,v.bold?(B.bold=v.bold.path,m[v.bold.path]=v.bold.bytes):B.bold=v.normal.path,v.italics?(B.italics=v.italics.path,m[v.italics.path]=v.italics.bytes):B.italics=v.normal.path,v.bolditalics?(B.bolditalics=v.bolditalics.path,m[v.bolditalics.path]=v.bolditalics.bytes):B.bolditalics=v.normal.path,f[v.name]=B}return s.font&&(f={},m={},g(s.font),s.extraFonts&&W(s.extraFonts,g)),this.events.dispatch("pdfdocready",{type:"pdfdocready",format:"pdf",options:s,doc:c,target:this}),new Promise((v,B)=>{l.createPdf(c,null,f,m).getBase64(w=>{v(w)})})})}getPDFData(e){return Ze(this,void 0,void 0,function*(){let t=this._getFormatOptions("pdfdata",e),i={body:[]},s=this.getData("html",t),a=this.getDataFields(s);if(t.pivot){let n=this.get("dataFieldsOrder",[]);tn(a,(o,A)=>{let l=[];t.addColumnNames&&l.push(A);for(let h=s.length,c=0;c<h;c++){let d=s[c][o];l.push(this.convertToSpecialFormat(o,d,t,!0))}i.body.push(this.getPDFDataRow(l,t,void 0,!0))},(o,A)=>{let l=n.indexOf(o),h=n.indexOf(A);return l>h?1:l<h?-1:0})}else{t.addColumnNames&&(i.body.push(this.getPDFDataRow(a,t,void 0,!0)),i.headerRows=1);for(let n=s.length,o=0;o<n;o++)i.body.push(this.getPDFDataRow(s[o],t,a))}return i})}getPDFDataRow(e,t,i,s=!1){let a=[];i||(i=e);let n=this.get("dataFieldsOrder",[]);return tn(i,(o,A)=>{let l=this.convertEmptyValue(o,e[o],t),h=s?l:this.convertToSpecialFormat(o,l,t);h=""+h,a.push(h)},(o,A)=>{let l=n.indexOf(o),h=n.indexOf(A);return l>h?1:l<h?-1:0}),a}getPdfmake(){return Wp===void 0&&(Wp=HI()),Wp}getPageSizeFit(e,t,i=0,s="portrait"){let a=[0,0,0,0];j(t)?a=[t,t,t,t]:t.length==2?a=[t[0],t[1],t[0],t[1]]:t.length==4&&(a=t);let o={"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]}[e];return s=="landscape"&&o.reverse(),o[0]-=a[0]+a[2],o[1]-=a[1]+a[3]+i,o}hasData(){let e=this.get("dataSource");return!!(qh(e)&&e.length)}getData(e,t,i=!1){let s=this._getFormatOptions(e,t),a=this.get("dataSource",[]),n=a,o=this.get("dataFields");o&&qh(a)&&(n=[],W(a,l=>{if(Sr(l)){let h={};Ye(o,(c,d)=>{o[c]!=null&&(h[i?d:c]=this.convertToSpecialFormat(c,l[c],s))}),n.push(h)}}));let A={type:"dataprocessed",format:e,options:s,data:n,target:this};return this.events.dispatch("dataprocessed",A),A.data}getDataFields(e){let t=this.get("dataFields");return t||(t={},qh(e)&&e.length&&W(e,i=>{Ye(i,(s,a)=>{t[s]==null&&(t[s]=s)})})),t}convertEmptyValue(e,t,i){return t??i.emptyAs}convertToSpecialFormat(e,t,i,s){if(typeof t=="number")if(this.isDateField(e))t=new Date(t);else{if(this.isNumericField(e)&&this.get("numberFormat"))return this._root.numberFormatter.format(t,this.get("numberFormat"));if(this.isDurationField(e))return this._root.durationFormatter.format(t,this.get("durationFormat"),this.get("durationUnit"))}return t instanceof Date&&(i.useTimestamps?t=t.getTime():i.useLocale?s||(t=t.toLocaleString()):t=this._root.dateFormatter.format(t,this.get("dateFormat"))),t}isDateField(e){return this.get("dateFields").indexOf(e)!==-1}isNumericField(e){return this.get("numericFields").indexOf(e)!==-1}isDurationField(e){return this.get("durationFields").indexOf(e)!==-1}getContentType(e){let t="";switch(e){case"png":t="image/"+e;break;case"jpg":t="image/jpeg";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;default:t="application/octet-stream"}return t}getDisposableCanvas(){let e=document.createElement("canvas");return e.style.position="fixed",e.style.top="-10000px",this._root.dom.appendChild(e),e}disposeCanvas(e){this._root.dom.removeChild(e)}findBackgroundColor(e){let t=1,i=getComputedStyle(e,"background-color").getPropertyValue("background-color");if((i.match(/[^,]*,[^,]*,[^,]*,[ ]?0/)||i=="transparent")&&(t=0),t==0){let s=e.parentElement;return s?this.findBackgroundColor(s):Ie.fromHex(16777215)}else return Ie.fromCSS(i)}streamFile(e,t,i=!1){if(this.blobDownloadSupport()){let s=document.createElement("a");s.download=t,document.body.appendChild(s);let a=e.split(";"),n=a.shift().replace(/data:/,"");if(e=decodeURIComponent(a.join(";").replace(/^[^,]*,/,"")),["image/svg+xml","application/json","text/csv","text/html"].indexOf(n)==-1)try{e=atob(e)}catch{return!1}else{i&&(e="\uFEFF"+e);let h=new Blob([e],{type:n}),c=window.URL.createObjectURL(h);return s.href=c,s.download=t,s.click(),setTimeout(()=>{document.body.removeChild(s),window.URL.revokeObjectURL(c)},100),!0}let o=new Array(e.length);for(let h=0;h<e.length;++h){let c=e.charCodeAt(h);o[h]=c}i&&(o=[239,187,191].concat(o));let A=new Blob([new Uint8Array(o)],{type:n}),l=window.URL.createObjectURL(A);s.href=l,s.download=t,document.body.appendChild(s),s.click(),document.body.removeChild(s),setTimeout(()=>{window.URL.revokeObjectURL(l)},100)}else if(this.linkDownloadSupport()){let s=document.createElement("a");s.download=t,s.href=e,document.body.appendChild(s),s.click(),document.body.removeChild(s)}else window.location.href=e;return!0}downloadSupport(){return this.linkDownloadSupport()}linkDownloadSupport(){return typeof document.createElement("a").download<"u"}blobDownloadSupport(){return window.Blob!=null}initiatePrint(e,t,i){let s=this._getFormatOptions("print",t);s.printMethod=="css"?this._printViaCSS(e,s,i):this._printViaIframe(e,s,i)}_printViaCSS(e,t,i){let a=this._getFormatOptions("print",t).delay||500,n=document.documentElement.scrollTop||document.body.scrollTop,o=new Wl(Qg(this._root.dom),"body > *",{display:"none",position:"fixed",visibility:"hidden",opacity:"0",clipPath:"polygon(0px 0px,0px 0px,0px 0px,0px 0px);"},this._root.nonce),A=new Wl(Qg(this._root.dom),"body",{padding:"0",margin:"0"},this._root.nonce),l;i&&document&&document.title&&(l=document.title,document.title=i);let h=new Image;h.src=e,h.style.maxWidth="100%",h.style.display="block",h.style.position="relative",h.style.visibility="visible",h.style.opacity="1",h.style.clipPath="none",document.body.appendChild(h),this.setTimeout(()=>{window.print()},50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&a<1e3?a=1e3:a<100&&(a=100),this.setTimeout(()=>{document.body.removeChild(h),o.dispose(),A.dispose(),l&&(document.title=document.title),document.documentElement.scrollTop=document.body.scrollTop=n},a||500)}_printViaIframe(e,t,i){let a=this._getFormatOptions("print",t).delay||500,n=document.createElement("iframe");n.style.visibility="hidden",document.body.appendChild(n),n.contentWindow.document.open(),n.contentWindow.document.close();let o=new Image;o.src=e,o.style.maxWidth="100%",o.style.height="auto",i&&(n.contentWindow.document.title=i),n.contentWindow.document.body.appendChild(o),n.load=function(){n.contentWindow.document.body.appendChild(o)},this.setTimeout(()=>{try{n.contentWindow.document.execCommand("print",!1,null)||n.contentWindow.print()}catch{n.contentWindow.print()}},a||50),/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream&&a<1e3?a=1e3:a<100&&(a=100),this.setTimeout(()=>{document.body.removeChild(n)},a+50||100)}supportedFormats(){let e=[],t=this.hasData(),i=this.downloadSupport();return W(["png","jpg","canvas","pdf","xlsx","csv","json","html","pdfdata","print"],s=>{this._getFormatOptions(s).disabled!==!0&&(["xlsx","csv","json","html","pdfdata"].indexOf(s)==-1||t&&i)&&e.push(s)}),e}supportedExportTypes(){let e=["image","print"];return this.downloadSupport()&&this.hasData()&&e.push("data"),e}};Zn.className="Exporting";Zn.classNames=pt.classNames.concat([Zn.className]);var Od={exports:{}},zp,bB;function NI(){if(bB)return zp;bB=1;function r(e){var t=new e,i=t;function s(){var n=t;return n.next?t=n.next:(t=new e,i=t),n.next=null,n}function a(n){i.next=n,i=n}return{get:s,release:a}}return zp=r,zp}var vB;function $I(){if(vB)return Od.exports;vB=1;var r=NI();function e(a,n,o){if(typeof a=="function"&&(o=n,n=a,a=null),o<1)throw new Error("fastqueue concurrency must be greater than 1");var A=r(i),l=null,h=null,c=0,d=null,u={push:_,drain:t,saturated:t,pause:m,paused:!1,concurrency:o,running:f,resume:B,idle:w,length:g,getQueue:v,unshift:L,empty:t,kill:D,killAndDrain:E,error:O};return u;function f(){return c}function m(){u.paused=!0}function g(){for(var I=l,M=0;I;)I=I.next,M++;return M}function v(){for(var I=l,M=[];I;)M.push(I.value),I=I.next;return M}function B(){if(u.paused){u.paused=!1;for(var I=0;I<u.concurrency;I++)c++,k()}}function w(){return c===0&&u.length()===0}function _(I,M){var S=A.get();S.context=a,S.release=k,S.value=I,S.callback=M||t,S.errorHandler=d,c===u.concurrency||u.paused?h?(h.next=S,h=S):(l=S,h=S,u.saturated()):(c++,n.call(a,S.value,S.worked))}function L(I,M){var S=A.get();S.context=a,S.release=k,S.value=I,S.callback=M||t,c===u.concurrency||u.paused?l?(S.next=l,l=S):(l=S,h=S,u.saturated()):(c++,n.call(a,S.value,S.worked))}function k(I){I&&A.release(I);var M=l;M?u.paused?c--:(h===l&&(h=null),l=M.next,M.next=null,n.call(a,M.value,M.worked),h===null&&u.empty()):--c===0&&u.drain()}function D(){l=null,h=null,u.drain=t}function E(){l=null,h=null,u.drain(),u.drain=t}function O(I){d=I}}function t(){}function i(){this.value=null,this.callback=t,this.next=null,this.release=t,this.context=null,this.errorHandler=null;var a=this;this.worked=function(n,o){var A=a.callback,l=a.errorHandler,h=a.value;a.value=null,a.callback=t,a.errorHandler&&l(n,h),A.call(a.context,n,o),a.release(a)}}function s(a,n,o){typeof a=="function"&&(o=n,n=a,a=null);function A(m,g){n.call(this,m).then(function(v){g(null,v)},g)}var l=e(a,A,o),h=l.push,c=l.unshift;return l.push=d,l.unshift=u,l.drained=f,l;function d(m){var g=new Promise(function(v,B){h(m,function(w,_){if(w){B(w);return}v(_)})});return g.catch(t),g}function u(m){var g=new Promise(function(v,B){c(m,function(w,_){if(w){B(w);return}v(_)})});return g.catch(t),g}function f(){var m=l.drain,g=new Promise(function(v){l.drain=function(){m(),v()}});return g}}return Od.exports=e,Od.exports.promise=s,Od.exports}var VI=$I(),Dt={SelectXY:"selectXY",SelectX:"selectX",SelectY:"selectY",ZoomXY:"zoomXY",ZoomX:"zoomX",ZoomY:"zoomY",None:"none"},kt={Top:"top",Bottom:"bottom",Median:"median",Outliers:"outliers"};async function yC(r){let e=ax(`assets/common/t9n/messages.${r}.json`),t=await fetch(e);if(!t.ok)throw new Error(`Failed to load t9n file: ${e}`);return await t.json()}async function XI(r=Bl(document.documentElement).t9nLocale){let e=await import("./H6G4K2SI.js");switch(r){case"ar":e=await import("./C32DLPO2.js");break;case"bs":e=await import("./ZGRLFOVN.js");break;case"bg":e=await import("./2MVU33EQ.js");break;case"ca":e=await import("./K7M5S6GY.js");break;case"cs":e=await import("./W5WI6CWC.js");break;case"da":e=await import("./A2SOXYD7.js");break;case"de":e=await import("./5WSLX3X6.js");break;case"el":e=await import("./INFEECC2.js");break;case"es":e=await import("./ANEY3G3T.js");break;case"et":e=await import("./UJ7GGLFA.js");break;case"fi":e=await import("./577EV2JF.js");break;case"fr":e=await import("./U7L3L6IV.js");break;case"he":e=await import("./XTWWNXCJ.js");break;case"hr":e=await import("./RRDNOR24.js");break;case"hu":e=await import("./SWQ7K4X5.js");break;case"id":e=await import("./FW27X6ZH.js");break;case"it":e=await import("./AGJRXDBI.js");break;case"ja":e=await import("./OLBJGP5C.js");break;case"ko":e=await import("./43SJZXD3.js");break;case"lt":e=await import("./PI6HSSQL.js");break;case"lv":e=await import("./VHOYFIGY.js");break;case"no":e=await import("./X5TUHBXH.js");break;case"nl":e=await import("./KSNCOD3U.js");break;case"pl":e=await import("./BHNYXBUZ.js");break;case"pt-BR":e=await import("./4VMTBYLY.js");break;case"pt-PT":e=await import("./2JPFAFHJ.js");break;case"ro":e=await import("./WQRZ7LGV.js");break;case"ru":e=await import("./RKXV44WI.js");break;case"sr":e=await import("./B3HEXSCX.js");break;case"sk":e=await import("./DF2JGSK4.js");break;case"sv":e=await import("./NXRLNLM4.js");break;case"th":e=await import("./WMSU5OWP.js");break;case"tr":e=await import("./MIVV22F3.js");break;case"uk":e=await import("./GBCL3LR7.js");break;case"vi":e=await import("./YZTAP3PR.js");break;case"zh-CN":e=await import("./PF6HSS3J.js");break;case"zh-HK":e=await import("./Z5L2GNFQ.js");break;case"zh-TW":e=await import("./Z5L2GNFQ.js");break}let t=(await yC(r)).customAmchartsStrings;return{...e.default,...t}}function Ea(r){let{type:e,iLocale:t,formatLocale:i=LA(document.documentElement)}=r,s;switch(e){case Q.NumberAxisFormat:{s=new df,s.language.locale=t,s.intlLocales=i;break}case Q.DateAxisFormat:{s=new uf,s.language!==void 0&&(s.language.locale=t),s.intlLocales=i;break}}return s}function im(r){let{axis:e,valueFormat:t,chartType:i}=r,s=bh({isXAxis:!0,chartType:i,valueFormat:t}),a=Vr(t)&&e instanceof fi,n=ks(t)&&e instanceof zt&&!(e instanceof fi),o=s&&e instanceof Ji;return!a&&!n&&!o}function xC(r,e){let t=typeof e=="number"?`${e}`:e,i=Gi(r.uid,"numberFormatter");return i!==void 0&&(t=i(e)),Mt(t)&&(t=Z.htmlEmptyContent),mi(t)}function KI(r){r.renderer.labels.template.html=Z.htmlEmptyContent,r.renderer.labels.template.adapter.add("htmlOutput",(e,t)=>xC(r,t?.dataItem?.value??e),0)}function bC(r){let{axis:e,defaultOutput:t,dataItem:i}=r,s=t,a=Gi(e.uid,"categoryFormatter"),n=Gi(e.uid,"numberFormatter");if((n!==void 0||a!==void 0)&&i instanceof mo){let o=ce(e.chart.uid,"config"),A=ze(o?.series),l=ce(e.chart.uid,"rendererFieldNames"),h=ua({value:i.category,dataContext:i.dataContext,useRendererLabel:Ul(o,l),specificField:Dl(A,o?.series?.[0]),config:o});if(typeof h=="number"&&n!==void 0)s=n(h);else if(a!==void 0){if([xe.BoxPlotMonoField,xe.BoxPlotMultiFields,xe.BoxPlotMonoFieldAndSplitBy,xe.BoxPlotMultiFieldsAndSplitBy,xe.BarAndLineFromFields].includes(A)&&typeof h=="string"){let d=ce(e.chart.uid,"fieldList");h=vi(d,h)}let c=Xr(i.dataContext);c===void 0&&(c=h),s=a(h,c)}}return Mt(s)&&(s=Z.htmlEmptyContent),mi(s)}function GI(r){r.renderer.labels.template.html=Z.htmlEmptyContent,r.renderer.labels.template.adapter.add("htmlOutput",(e,t)=>bC({axis:r,defaultOutput:e,dataItem:t?.dataItem}),0)}function WI(r){let{axis:e,defaultOutput:t,dataItem:i}=r,s=t,a=Gi(e.uid,"dateFormatter");return a!==void 0&&i instanceof xl&&(s=a(i.value??t)),Mt(s)&&(s=Z.htmlEmptyContent),mi(s)}function YI(r){r.renderer.labels.template.adapter.add("htmlOutput",(e,t)=>WI({axis:r,dataItem:t?.dataItem,defaultOutput:e}),0),r.renderer.labels.template.adapter.disableKey("htmlOutput")}function zI(r){r.renderer.labels.template.adapter.add("htmlOutput",e=>{let t=e,i=Gi(r.uid,"fontStyleCallback");return i!==void 0&&(t=i(t)),mi(t)},1)}function jI(r){r instanceof zt&&!(r instanceof fi)?KI(r):r instanceof Ji?GI(r):r instanceof fi&&YI(r),zI(r)}function ZI(r){let{axis:e,formatOptions:t,dateAxisFormatter:i,isTimeOnlyField:s}=r;if(Ni(e.uid,{dateFormatter:i}),i===void 0){e.renderer.labels.template.adapter.isEnabled("htmlOutput")&&(e.renderer.labels.template.adapter.disableKey("htmlOutput"),e.renderer.labels.each(o=>{o.element instanceof cx&&o.element.removeChildren()}));let a={...da(t)};s&&(a={hour:s?"numeric":void 0,minute:s?"numeric":void 0,...a});let n=["year","month","day","hour","minute","second"];e.timezone!==a.timeZone&&(e.setPropertyValue("timezone",a.timeZone),e.chart.validateData()),e.dateFormatter.timezone=a.timeZone,delete a.timeZone;for(let o=0;o<n.length;o+=1){let A=n[o],l=o===0?A:n[o-1],h=t?.formatPerDateTimeUnit?.[A]??a,c=t?.formatPerDateTimeUnit?.[l];po(h)||(e.dateFormats.setKey(A,h),e.periodChangeDateFormats.setKey(A,c??h))}e.dateFormats.getKey("day")||e.dateFormats.setKey("day",Z.dayDefaultFormat),e.periodChangeDateFormats.getKey("day")||e.periodChangeDateFormats.setKey("day",Z.dayDefaultFormat),e.dateFormats.getKey("week")||e.dateFormats.setKey("week",e.dateFormats.getKey("day")??Z.weekDefaultFormat),e.periodChangeDateFormats.getKey("week")||e.periodChangeDateFormats.setKey("week",e.periodChangeDateFormats.getKey("day")??Z.weekDefaultFormat),e.invalidateLabels()}else e.renderer.labels.template.html=Z.htmlEmptyContent,e.renderer.labels.template.adapter.enableKey("htmlOutput")}function qI(r,e,t,i){let s=Ea({type:Q.NumberAxisFormat,iLocale:e,formatLocale:t});return s.numberFormat=r,a=>{let n=0;return a instanceof Date?a.toLocaleString(void 0,r):(n=typeof a!="string"?a??0:dg(a,s.intlLocales),i===!0&&r.style==="percent"&&(n/=100),s.format(n))}}function BB(r){let{axis:e,formatOptions:t,overridePercentMultiplication:i,valueAxisFormatter:s}=r,a=da(t),n=ce(e.chart.uid,"formatLocale");Ni(e.uid,{numberFormatter:s??qI(a,e.chart.language.locale,n,i)})}function JI(r){let{axis:e,formatOptions:t,categoryAxisFormatter:i}=r,s=i!==void 0?i:Fh(t.characterLimit);Ni(e.uid,{categoryFormatter:s})}function eD(r){let{axis:e,labelsTextSymbol:t,axisValueFormatter:i}=r,s=ce(e.chart.uid,"config")?.horizontalAxisLabelsBehavior;if(Ni(e.uid,{axisLabelsBehavior:s}),i!==void 0)Ni(e.uid,{fontStyleCallback:void 0});else if(Gi(e.uid,"fontStyleCallback")===void 0){let a=n=>{let o=Gi(e.uid,"axisLabelsBehavior");return Ws({textSymbol:t,placeholderString:n,format:"html",axisLabelsBehavior:o,defaults:{maxWidth:e.renderer.labels.template.maxWidth}})};Ni(e.uid,{fontStyleCallback:a})}}function tD(r){let{axis:e,isXAxis:t,formatOptions:i,labelsTextSymbol:s,overridePercentMultiplication:a,chartType:n,axisValueFormatter:o,isTimeOnlyField:A,errorStrings:l}=r,h=bh({isXAxis:t,chartType:n,valueFormat:i}),c=!1;!(e instanceof fi)&&ks(i)?BB({axis:e,formatOptions:i,overridePercentMultiplication:a,valueAxisFormatter:o}):e instanceof fi&&Vr(i)?ZI({axis:e,formatOptions:i,dateAxisFormatter:o,isTimeOnlyField:A}):e instanceof Ji?yA(i)||h?(JI({axis:e,formatOptions:i,categoryAxisFormatter:o}),Ni(e.uid,{numberFormatter:void 0})):ks(i)?(BB({axis:e,formatOptions:i,overridePercentMultiplication:a,valueAxisFormatter:o}),Ni(e.uid,{categoryFormatter:void 0})):c=!0:c=!0,c&&xh("mismatchAxisAndValueFormat",l),eD({axis:e,labelsTextSymbol:s,axisValueFormatter:o}),e.invalidateLabels()}function iD(r){let e=r;return r>=1?e=10**(r.toFixed(0).length-1):r<1&&r>0&&(e=10**-Math.abs(Math.floor(Math.log10(r)))),e}function vC(r){let{minimumFromConfig:e,maximumFromConfig:t,isLogarithmic:i}=r,s=i===!0&&e!==null&&e!==void 0&&e<=0,a=!Number.isFinite(e)||!Number.isFinite(t);return s||a}var sD="arcgis-charts-randomization-seed";jh(sD,jh.URL);var At={XAxisTitle:"XAxisTitle",YAxisTitle:"YAxisTitle",ChartTitle:"ChartTitle",ChartSubTitle:"ChartSubTitle",ChartFooter:"ChartFooter",GuideLabel:"GuideLabel",LegendTitle:"LegendTitle"},me={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 BC(r){let{actionMode:e,cursorRange:t,isRotated:i}=r,s=Dt.None;switch(t){case vh.MultiAxes:e===et.MultiSelectionWithCtrlKey||e===et.MultiSelection?s=Dt.SelectXY:e===et.Zoom&&(s=Dt.ZoomXY);break;case vh.XAxis:e===et.MultiSelectionWithCtrlKey||e===et.MultiSelection?s=i===!0?Dt.SelectY:Dt.SelectX:e===et.Zoom&&(s=i===!0?Dt.ZoomY:Dt.ZoomX);break;case vh.YAxis:e===et.MultiSelectionWithCtrlKey||e===et.MultiSelection?s=i===!0?Dt.SelectX:Dt.SelectY:e===et.Zoom&&(s=i===!0?Dt.ZoomX:Dt.ZoomY);break}return s}function rD(r,e){let t=Z.cursorCrosshair.style,i={type:je.SLS,style:e.style??t.style,color:e.color??t.color,width:e.width??t.width};Fo({element:r.cursor.lineX,lineSymbol:i}),Fo({element:r.cursor.lineY,lineSymbol:i})}function CC(r){if(!(r instanceof Ds)&&!(r instanceof gi)){r.cursor=new xf;let e="userAgentData"in navigator&&navigator.userAgentData&&typeof navigator.userAgentData=="object"&&"mobile"in navigator.userAgentData&&navigator.userAgentData.mobile===!0||/Mobi|Android/iu.test(navigator.userAgent);r.cursor.hideSeriesTooltipsOnSelection=!e}}function wC(r,e){if(!(r instanceof Ds)&&!(r instanceof gi)){let t=r,i=t.cursor??new xf;e?.style!==void 0&&rD(t,e.style);let s=Z.cursorCrosshair;i.lineX.disabled=s.verticalLineVisible?e?.verticalLineVisible===!1:e?.verticalLineVisible!==!0,i.lineY.disabled=s.horizontalLineVisible?e?.horizontalLineVisible===!1:e?.horizontalLineVisible!==!0,t.cursor=i}}function aD(r){return!(r instanceof Ds)&&r.cursor===void 0&&CC(r),r.cursor}function sm(r,e){let t=r.renderer.labels.template;t.events.hasListenersByType(me.Hit)&&(t.cursorOverStyle=e),r.renderer.labels.each(i=>{i.cursorOverStyle=e})}function nD(r){let{chart:e,chartType:t,showMean:i,enabled:s}=r,a=s?vr.pointer:vr.default;switch(t){case Q.ComboLineAndBarSeries:case Q.BarSeries:case Q.PieSeries:e.series.each(n=>{(n instanceof Xi||n instanceof rr)&&(n.cursorOverStyle=a)});break;case Q.BoxPlotSeries:e.series.each(n=>{let o=a;if(n instanceof Ht){let A=pi(n);A!==void 0&&(i&&Ki(n.uid,"isBoxPlotOutliersSeries")&&(o=vr.default),A.cursorOverStyle=o,A.clones.each(l=>{l.cursorOverStyle=o}))}else n.cursorOverStyle=i?vr.default:a});break;case Q.LineSeries:e.series.each(n=>{if(n instanceof Ht){let o=pi(n);o!==void 0&&(o.cursorOverStyle=a,o.clones.each(A=>{A.cursorOverStyle=a}))}});break}}function oD(r){let{chart:e,actionMode:t,cursorRange:i}=r,s=ce(e.uid,"isRotated"),a=ce(e.uid,"config"),n=Us(a),o=_e(a?.series),A=o===Q.LineSeries&&ks(a?.axes?.[0]?.valueFormat),l=o===Q.LineSeries&&yA(a?.axes?.[0]?.valueFormat),h=o===Q.LineSeries&&Vr(a?.axes?.[0]?.valueFormat),c,d=!1,u=t??ce(e.uid,"actionMode")??Z.actionMode;if(ce(e.uid,"filterBySelection")===!0)c=Dt.None,d=!1;else if(i!==void 0)c=BC({actionMode:u,cursorRange:i,isRotated:s});else switch(u){case et.Zoom:A||h?c=Dt.ZoomXY:c=s===!0?Dt.ZoomY:Dt.ZoomX,d=!1;break;case et.MultiSelection:case et.MultiSelectionWithCtrlKey:l?c=s===!0?Dt.SelectY:Dt.SelectX:c=Dt.SelectXY,d=!0;break;case et.MonoSelection:c=Dt.None,d=!0;break;case et.None:c=Dt.None,d=!1;break}e instanceof Rt&&e.cursor!==void 0&&c!==void 0&&(e.cursor.behavior=c),nD({chart:e,chartType:o,enabled:d,showMean:n})}function _C(r){let e="";return r instanceof la?e=r.dataFields?.categoryX??r.dataFields?.dateX??r.dataFields?.valueX??"":r instanceof rr&&(e=r.dataFields?.category??""),e}function FC(r){let e="";return r instanceof la?e=r.dataFields?.categoryY??r.dataFields?.dateY??r.dataFields?.valueY??"":r instanceof rr&&(e=r.dataFields?.value??""),e}function SC(r){return ce(r.chart.uid,"isRotated")===!0?FC(r):_C(r)}function ao(r){return ce(r.chart.uid,"isRotated")===!0?_C(r):FC(r)}function eu(r,e=0){let t=ce(r.chart.uid,"config");return _e(t?.series,e)}function*AD(r){let{filterList:e,queryObject:t,queryConfig:i}=r;for(let s=0;s<e.length;s+=1){let a={...i};a.where=kh([a.where,e[s]]),yield Wx({queryObject:t,queryConfig:a,uniqueFeature:!0})}}async function LC(r){let{whereList:e,queryObject:t,queryFilter:i,queryConfig:s}=r,a=[];if(e.length>0){let n=Ix().maxElementsPerSelectionQuery,o=[],A=Math.ceil(e.length/n);for(let h=0;h<A;h+=1){let c=h*n,d=(h+1)*n,u=e.slice(c===0?0:c-1,d),f=kh(u,"OR");f=kh([i,f]),o.push(f)}let l=AD({filterList:o,queryObject:t,queryConfig:s});a=(await Promise.all(l)).flat(),a=Array.from(new Set(a))}return a}var Jn={Outlier:"outlier",Box:"box",OutlierToOutlier:"outlier-outlier",OutlierToBox:"outlier-box",BoxToOutlier:"box-outlier",BoxToBox:"box-box"};function lD(r,e){let t=r[We.boxPlot.boxPlotOutlierId]===!0?Jn.Outlier:Jn.Box,i=typeof e=="number"?Jn.Outlier:Jn.Box;return`${t}-${i}`}function cD(r){let{oneSelectedItem:e,dataContext:t,selectedOutlierKey:i}=r;return e[i]===t[i]}function hD(r){let{elementMin:e,elementMax:t,selectedOutlierValue:i}=r,s;return typeof e=="number"&&typeof t=="number"&&typeof i=="number"&&(s=i>=e&&i<=t),s}function dD(r){let{selectedMin:e,selectedMax:t,elementOutlierValue:i,oneSelectedItem:s,iqrField:a}=r,n;typeof e=="number"&&typeof t=="number"&&typeof i=="number"&&(n=i>=e&&i<=t);let o=a in s;return n!==!1&&o}function uD(r){let{selectedMin:e,selectedMax:t,elementMin:i,oneSelectedItem:s,elementMax:a,iqrField:n}=r,o;typeof i=="number"&&typeof a=="number"&&typeof e=="number"&&typeof t=="number"&&(o=!(i>=t||a<=e));let A=n in s;return o!==!1&&A}function fD(r){let{oneSelectedItem:e,dataContext:t,xAxisField:i}=r,s=t[We.originalCategoryValue]??t[We.boxPlot.boxPlotCategory]??t[i],a=e[We.originalCategoryValue]??e[We.boxPlot.boxPlotCategory]??e[i];return s===a}function gD(r){let{chartSubType:e,yAxisField:t,splitBy:i,showOutliers:s}=r,a=e===xe.BoxPlotMultiFieldsAndCategory?t:void 0,n={y:a,splitBy:i},o=Ot({...n,key:rt.Outlier}),A=Ot({...n,key:rt.Max,showOutliers:s}),l=Ot({...n,key:rt.Min,showOutliers:s}),h=Ot({...n,key:rt.Max,showOutliers:!1}),c=Ot({...n,key:rt.Min,showOutliers:!1}),d=Ot({...n,key:rt.Max,showOutliers:!0}),u=Ot({...n,key:rt.Min,showOutliers:!0}),f=Ot({splitBy:i,y:a,key:rt.IQR});return{selectedOutlierKey:o,maxField:A,minField:l,selectedMaxFieldWoOutliers:h,selectedMinFieldWoOutliers:c,selectedMaxFieldWithOutliers:d,selectedMinFieldWithOutliers:u,iqrField:f}}function pD(r){let{elementDataContext:e,layerOidField:t,xAxisField:i,splitBy:s,yAxisField:a,chartSubType:n,showOutliers:o}=r,A=e,l;if(A?.[We.boxPlot.boxPlotMeanLineMarkerId]===!0){let h=Ot({splitBy:s,key:rt.Average});l=c=>{let d=!i||!(i in c&&i in A)||c[i]===A[i],u=h in c&&h in A;return d&&u}}else i!==void 0&&a!==void 0&&(l=h=>{let c;if(t!==void 0&&t in h&&t in A)c=h[t]===A[t];else{let{selectedOutlierKey:d,maxField:u,minField:f,selectedMaxFieldWoOutliers:m,selectedMinFieldWoOutliers:g,selectedMaxFieldWithOutliers:v,selectedMinFieldWithOutliers:B,iqrField:w}=gD({chartSubType:n,yAxisField:a,splitBy:s,showOutliers:o}),_=A[d],L=h[d],k=A[f],D=A[u],E=h[g]??h[B],O=h[m]??h[v],I=fD({oneSelectedItem:h,dataContext:A,xAxisField:i});if(I)switch(lD(h,_)){case Jn.OutlierToOutlier:I=cD({oneSelectedItem:h,dataContext:A,selectedOutlierKey:d});break;case Jn.OutlierToBox:I=hD({elementMin:k,elementMax:D,selectedOutlierValue:L});break;case Jn.BoxToOutlier:I=dD({selectedMin:E,selectedMax:O,elementOutlierValue:_,oneSelectedItem:h,iqrField:w});break;case Jn.BoxToBox:I=uD({selectedMin:E,selectedMax:O,elementMin:k,oneSelectedItem:h,elementMax:D,iqrField:w});break}c=I===!0}return c});return l}function vm(r){let{layerOidField:e,sliceDataContext:t,selectionDataContext:i,xAxisField:s}=r,a=!1;if(e!==void 0&&e in t&&e in i)a=i[e]?.toString()===t[e]?.toString();else{let n=t[We.originalCategoryValue];n===void 0&&(n=t[s]),n===void 0&&(n=t[ja]);let o=i[We.originalCategoryValue];o===void 0&&(o=i[s]),o===void 0&&(o=i[ja]),a=n!==void 0&&o!==void 0&&n===o}return a}function Hd(r){let{dataContext:e,specificField:t,xOrY:i}=r,s=e[i==="x"?We.originalCategoryValue:We.originalYCategoryValue];return s===void 0&&t&&(s=e[t]),s===void 0&&(s=e[i==="x"?ri.xField:ri.yField]),s}function tu(r){let{options:e,elementDataContext:t,selectionDataItems:i,layerOidField:s,xAxisField:a,yAxisField:n,chartType:o,splitBy:A,chartSubType:l}=r,h=!1,c;if(t!==void 0&&i!==void 0)switch(o){case Q.HeatSeries:let d=t,u=Hd({dataContext:d,specificField:a,xOrY:"x"}),f=Hd({dataContext:d,specificField:n,xOrY:"y"});c=m=>{let g=Hd({dataContext:m,specificField:a,xOrY:"x"}),v=Hd({dataContext:m,specificField:n,xOrY:"y"});return u===g&&f===v};break;case Q.RadarSeries:case Q.BarSeries:case Q.LineSeries:case Q.ComboLineAndBarSeries:if(a!==void 0&&n!==void 0){let m=t;c=g=>{let v,B=s;if(l===xe.BarAndLineSplitByNoAggregation){let w=Tn({where:A,keepSurroundingQuotes:!1,escape:!1});B=`${s}_${w}`}if(s!==void 0&&s in g&&s in m)v=g[s]===m[s];else if(B!==void 0&&B in g&&B in m)v=g[B]===m[B];else if(We.dateBinningRange in m&&typeof g[a]=="number"){let w=g[a],_=g[We.dateBinningRange],L=Array.isArray(_)&&Number.isFinite(_[0])&&Number.isFinite(_[1]),[k,D]=L?_:[0,0],[E,O]=m[We.dateBinningRange],I=m[We.lastTemporalBin]===!0?w<=O:w<O;v=(L?k<O&&E<D:w>=E&&I)&&n in g&&Number.isFinite(g[n])}else{let w=L=>{let k=L[We.originalCategoryValue];return k===void 0&&(k=L[a]),k=k===null?We.nullValue:k,k},_=w(m);v=w(g)===_&&n in g}return v}}break;case Q.BoxPlotSeries:c=pD(r);break;case Q.ScatterSeries:if(a!==void 0&&n!==void 0){let m=t;if(!kx({dataContext:m,chartLimits:e?.chartLimits}))c=g=>{let v;return s!==void 0&&s in m&&s in g?v=g[s]===m[s]:v=g[a]===m[a]&&g[n]===m[n],v};else{let{dataContextXMinField:g,dataContextXMaxField:v,dataContextYMinField:B,dataContextYMaxField:w}=We.scatterplotAggregationFields,{[g]:_,[v]:L}=m,k=a!==n?m[B]:_,D=a!==n?m[w]:L,E=I=>{let M=I[a]??Number.NaN,S=_??Number.NaN,P=L??Number.NaN;return _===L?M===S:(M??Number.NaN)>=S&&(M??Number.NaN)<P},O=I=>{let M=I[n]??Number.NaN,S=k??Number.NaN,P=D??Number.NaN;return k===D?M===S:M>=S&&M<P};c=I=>E(I)&&O(I)}}break;case Q.HistogramSeries:c=m=>{let g=!1,{minValue:v,maxValue:B}=t,{isLastBin:w}=t;if(a!==void 0&&a in m){let _=m[a];g=typeof _=="number"&&_>=v&&(w&&_<=B||!w&&_<B)}else if("minValue"in m&&"maxValue"in m){let{minValue:_,maxValue:L}=m;g=!(v>=L||B<=_)}return g};break;case Q.PieSeries:a!==void 0&&(c=m=>{let g=t,v=Ln(g),B=[g];return v&&B.push(...FA({groupOfSlicesDataContext:g})??[]),B.some(w=>vm({sliceDataContext:w,selectionDataContext:m,layerOidField:s,xAxisField:a}))});break}return c!==void 0&&(h=i.some(c)),h}function hn(r){let{isFeatureCollectionLayer:e,dataContext:t,yAxisField:i,yList:s,xAxisField:a,splitBy:n,chartType:o,chartSubType:A,showOutliers:l}=r,h={...t};if(t!==void 0){if(o===Q.RadarSeries||o===Q.BarSeries||o===Q.LineSeries||o===Q.ComboLineAndBarSeries||o===Q.PieSeries){o!==Q.PieSeries&&(e||A!==xe.BarAndLineNoAggregation&&A!==xe.BarAndLineSplitByNoAggregation)&&s.forEach(d=>{d!==i&&delete h[d]});let c=ua({value:t[a],dataContext:t,keepNullValues:!0});h[a]=c,!Mt(n)&&!hb(n)&&(h[ma(n)]=Tn({where:n,escape:!1}))}else if(o===Q.BoxPlotSeries){h={[a]:t[a]},[Co.uniqueIdsName,We.boxPlot.boxPlotMeanLineMarkerId,We.boxPlot.boxPlotOutlierId,We.originalCategoryValue,We.originalYCategoryValue].forEach(d=>{t[d]&&(h[d]=t[d])});let c=A===xe.BoxPlotMultiFieldsAndCategory?i:void 0;Object.values(rt).forEach(d=>{let u=Ot({key:d,y:c,splitBy:n,showOutliers:l});t[u]!==void 0&&(h[u]=t[u])})}}return h}function TC(r){let{data:e,colorMatch:t,chartSubType:i,rendererType:s}=r;return e!==void 0&&t&&s!==void 0&&(i===xe.BoxPlotMultiFields&&(s===yh.UniqueValue||s===yh.PieChart)||i===xe.BoxPlotMonoFieldAndCategory&&s===yh.UniqueValue)&&e.some(a=>Object.keys(a).some(n=>n.includes(We.rendererSymbolField)))}function mD(r){return!!/^data:[a-z]+\/[a-z+.-]+;base64/u.test(r)}function IC(r,e=512){if(!mD(r))throw new Error("Cannot convert a string that is not a data uri to a blob");let t=r.split(",")[0].split(":")[1].split(";")[0],i=atob(r.split(",")[1]),s=[];for(let a=0;a<i.length;a+=e){let n=i.slice(a,a+e),o=new Array(n.length);for(let l=0;l<n.length;l++)o[l]=n.charCodeAt(l);let A=new Uint8Array(o);s.push(A)}return new Blob(s,{type:t})}function fc(r){let{value:e,valueFormat:t,iLocale:i,formatLocale:s}=r,a=e?.toString(),n=Ea({type:t.type,iLocale:i,formatLocale:s});return typeof e=="number"&&t.type===Q.NumberAxisFormat?a=n.format(e,da(t)):(typeof e=="number"||e instanceof Date)&&t.type===Q.DateAxisFormat&&(a=n.format(e,da(t))),a}function ur(r){let{chart:e,config:t}=r,i=t;return t===void 0&&e!==void 0&&(i=ce(e.uid,"config")),es(i)}function yD(r){r instanceof yf&&r.series.each(e=>{nr(e.uid),e instanceof Ht&&nr(pi(e)?.uid),e.bullets.each(t=>{nr(t.uid)}),e instanceof Xi&&e.columns.template.children.each(t=>{nr(t.uid)})}),r instanceof Rt&&[r.xAxes.getIndex(0),r.xAxes.getIndex(1),r.yAxes.getIndex(0),r.yAxes.getIndex(1)].forEach(e=>{e!==void 0&&(nr(e.uid??""),e.axisRanges.each(t=>{nr(t.label?.uid)}))}),r instanceof Ds&&r.radarContainer.children.each(e=>{nr(e.uid)}),r instanceof gi&&r.series.getIndex(0)?.slices.each(e=>{nr(e.uid)}),"cursor"in r&&r.cursor instanceof yx&&nr(r.cursor?.uid),"legend"in r&&r.legend!==void 0&&(nr(r.legend.uid),nr(r.legend.valueLabels?.template?.uid)),nr(r.uid)}function Nd(r){return typeof r=="number"?r:r.value}async function xD(r){let{chart:e,exportOptions:t}=r,{format:i,quality:s=1,...a}=t,n=s<0||s>1?1:s,o=await e.exporting.getImage(i,{quality:n,...a}),A=IC(o),l=i==="jpg"?"image/jpeg":"image/png";return new File([A],`chart.${i}`,{type:l})}function iu(r,e){e!==void 0&&(e.marginBottom!==void 0&&(r.marginBottom=e.marginBottom),e.marginTop!==void 0&&(r.marginTop=e.marginTop),e.marginRight!==void 0&&(r.marginRight=e.marginRight),e.marginLeft!==void 0&&(r.marginLeft=e.marginLeft),e.verticalCenter!==void 0&&(r.verticalCenter=Vx(e.verticalCenter)),e.horizontalCenter!==void 0&&(r.horizontalCenter=Vf(e.horizontalCenter)),e.strokeWidth!==void 0&&(r.strokeWidth=e.strokeWidth),e.wrap!==void 0&&(r.wrap=e.wrap),e.truncate!==void 0&&(r.truncate=e.truncate),e.maxWidth!==void 0&&(r.maxWidth=e.maxWidth),e.applyOnClones!==void 0&&(r.applyOnClones=e.applyOnClones,r.background.applyOnClones=e.applyOnClones))}function Ra(r,e){let t=e?.createChild(yl)??new yl;return iu(t,r),t}function bD(r){let e=r.push(new ux);e.dx=1,e.dy=1,e.opacity=1}function vD(r,e,t){if(t.alpha>0&&e>=0){r.length===0&&bD(r);let i=r.getIndex(0);i.blur=e,i.color=t}else r.clear()}function BD(r,e){let t=Ti(r.uid,"isGuide"),i=e.visible===!1;return!i&&(t===!0||!(r instanceof dh))&&e.content.text===""&&(i=!0),i}function CB(r){let{label:e,offset:t,offsetProperty:i}=r,s=99;if(e.adapter.remove(i,s),typeof t=="string"&&!Number.isFinite(Number(t))){let a=Sl(t);a!==void 0&&(a/=100,e.adapter.add(i,()=>(e.parent?.[i==="dx"?"measuredWidth":"measuredHeight"]??0)*a,s))}else e[i]=t}function fr(r){let{label:e,labelConfig:t,defaults:i,skipSettingText:s}=r;if(t!==void 0){let a=Ll(t.content,e.rtl,i);e.fill=a.fill,e.fontFamily=a.fontFamily,e.fontWeight=a.fontWeight,e.fontSize=a.fontSize,e.textDecoration=a.textDecoration,e.align=a.align,e.valign=a.valign,e.verticalCenter=a.verticalCenter,e.horizontalCenter=a.horizontalCenter,e.background.fill=a.backgroundFill,e.background.stroke=a.borderFill,e.background.strokeWidth=a.borderWidth,e.rotation=a.angle,CB({label:e,offset:a.xOffset,offsetProperty:"dx"}),CB({label:e,offset:a.yOffset,offsetProperty:"dy"}),e.rtl=a.rtl,e.wrap=a.wrap,e instanceof dh||(e.maxWidth=a.maxWidth),s||(e.text=a.text),vD(e.filters,a.haloSize,a.haloColor);let n=BD(e,t);e.disabled=n,Et(e,t.visible!==!1&&!n)}else e.disabled=!0}function DC(r,e){e!==void 0&&(r===Q.BarSeries||r===Q.LineSeries)&&e.adapter.add("dy",(t,i)=>{let s=i.dataItem,{chart:a}=s?.component??{};return a instanceof Rt&&(i.visible=!Nf(i,a)),t??0})}function kC(r,e){e!==void 0&&(r===Q.BarSeries&&e.adapter.add("dx",(t,i)=>{let s=t??0,a=i.dataItem,{chart:n}=a?.component??{};return(n!==void 0?ce(n.uid,"isRotated"):!1)===!0&&(a.valueX??a.valueY)<0&&(s-=i.measuredWidth+Z.dataLabelNegative.paddingRight),s}),(r===Q.BarSeries||r===Q.LineSeries)&&e.adapter.add("dy",(t,i)=>{let s=t??0,a=i.dataItem,{chart:n}=a?.component??{};return(n!==void 0?ce(n.uid,"isRotated"):!1)!==!0&&(a.valueX??a.valueY)<0&&(s+=i.measuredHeight+Z.dataLabelNegative.paddingTop),s}))}function rm(r){r.bulletsContainer.invalidateLabels(),r instanceof Xi&&r.columns?.template.invalidateLabels()}function CD(r){let{dataValue:e,series:t,seriesType:i,stackedType:s,axisMin:a}=r,n=e===void 0;return e!==void 0&&(a!==void 0&&e<a?n=!0:t instanceof Xi&&(i===Q.BarSeries||i===Q.ComboLineAndBarSeries)&&(n=e===0&&s!==void 0&&s!==Qt.Side)),n}function am(r,e){let t,i=s=>Ti(s.uid,"isDataLabel")??!1;return e==="bullets"?t=r.bullets.values.find(i):r instanceof Xi&&(t=r.columns.template.children.values.find(i)),t}function nm(r,e){r.adapter.add("htmlOutput",(t,i)=>{let s=t,{dataItem:a}=i;if(vA(r)&&(e instanceof Xi&&a instanceof gh||e instanceof Ht&&a instanceof yo)){let n=Ki(e.uid,e instanceof Xi?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(n!==void 0){let o=ce(e.chart.uid,"isRotated"),A=Ki(e.uid,"stackedType"),l=o===!0?a.valueX:a.valueY,h=o===!0?a.values?.valueX?.totalPercent:a.values?.valueY?.totalPercent,c=o===!0?(a.component?.xAxis).min:(a.component?.yAxis).min;s=CD({dataValue:l,series:e,seriesType:e instanceof Xi?Q.BarSeries:Q.LineSeries,stackedType:A,axisMin:c})?"":n(l,h)}}return mi(s)},0)}function UC(r){let{numberFormatter:e,dataLabelsConfigContent:t,stackedType:i}=r;return(s,a)=>{let n=i===Qt.Stacked100&&a!==void 0?a:s;return e.numberFormat.style==="percent"&&(n/=100),Ws({textSymbol:{...t,text:e.format(n)},format:"html"})}}function QC(r){r.tabindex=-1}function EC(r){let{series:e,seriesType:t,dataLabel:i,labelDefaults:s,dataLabelsConfig:a,yAxisValueFormat:n,stackedType:o,isRotated:A,defaultDataLabelFormatter:l,customDataLabelFormatter:h}=r;if(i!==void 0){let c=h,d=a?.content??{type:je.TS};if(h===void 0&&l!==void 0&&n?.type===Q.NumberAxisFormat){let f=ce(e.chart.uid,"formatLocale"),m=Ea({type:n.type,iLocale:e.chart.language.locale,formatLocale:f});m.numberFormat=n.intlOptions,c=l({numberFormatter:m,dataLabelsConfigContent:d,stackedType:o})}let u;switch(t){case Q.BarSeries:u="barSeriesDataLabelFormatter";break;case Q.LineSeries:u="lineSeriesDataLabelFormatter";break}u!==void 0&&wr(e.uid,{[u]:c}),a!==void 0&&(a.content.text=A===!0?"{valueX}":"{valueY}",a.visible=a.visible!==!1),fr({label:i,labelConfig:a,defaults:s??Z.dataLabel}),rm(e)}}function su(r,e){let t=e;t===void 0&&(t=ce(r.uid,"config"));let i=ce(r.uid,"colorMatchApplied")??!1;return(t?.colorMatch??!1)&&i}function RC(r,e){let t;return r instanceof fi?t=e===!0?"dateY":"dateX":r instanceof Ji?t=e===!0?"categoryY":"categoryX":t=e===!0?"valueY":"valueX",t}function KA(r,e){r.name=e}function Bm(r){let{chart:e,lineSeries:t,applyPropertiesToClones:i}=r,s=t.bullets.push(new hh);return Ox(s.uid,{isBulletMarker:!0}),i!==!1&&(s.applyOnClones=!0),t.bulletsContainer.parent=e.seriesContainer,s}function Cm(r){let{series:e,seriesConfig:t,rotationChanged:i,stackedType:s,isRotated:a}=r;switch(s){case Qt.Stacked:{e.stacked=!0,e instanceof Ht&&(e.stackToNegative=t.stackNegativeValuesToBaseline??Z.lineSeries.stackNegativeValuesToBaseline),i===a?e.dataFields.valueYShow=void 0:e.dataFields.valueXShow=void 0,e.updateStacking();break}case Qt.Stacked100:{e.stacked=!0,a?e.dataFields.valueXShow="totalPercent":e.dataFields.valueYShow="totalPercent",e.updateStacking();break}case Qt.Side:default:{e.stacked=!1,i===a?e.dataFields.valueYShow=void 0:e.dataFields.valueXShow=void 0;break}}}function wD(r){return()=>{let{chart:e,marker:t}=r;t.clones.each(i=>{Et(i,!Nf(i,e))})}}function _D(r){let{chart:e,series:t,seriesType:i,marker:s,numberOfChartSeries:a,ignoreSmoothRenderingLimit:n}=r,o=wD({marker:s,chart:e}),A=a??1,l=e.data.length*A+A;n!==!0&&l>Z.elementLimitForSmoothRendering&&(o=ls(o,Z.debounceTime)),e.xAxes.getIndex(0)?.events.on(me.Validated,o),e.yAxes.getIndex(0)?.events.on(me.Validated,o),i===Q.LineSeries&&(e.xAxes.getIndex(0)?.events.on(me.Validated,()=>{rm(t)}),e.yAxes.getIndex(0)?.events.on(me.Validated,()=>{rm(t)}))}function MC(r,e){r.series.each(t=>{let i=Ki(t.uid,e);i!==void 0&&!i.isDisposed()&&i.dispose()})}function FD(r){let e;return r!==void 0&&r.series.length>0&&(e=r.series.values.map(t=>t.visible?t.id:"").filter(t=>t!=="")),e}function jp(r){let{dataItem:e,y:t,splitBy:i,showOutliers:s}=r,a=Ot({key:rt.Min,y:t,splitBy:i,showOutliers:s}),n=Ot({key:rt.Max,y:t,splitBy:i,showOutliers:s}),o=Ot({key:rt.FirstQuartile,y:t,splitBy:i,showOutliers:s}),A=Ot({key:rt.ThirdQuartile,y:t,splitBy:i,showOutliers:s});return Number.isFinite(e[a])&&Number.isFinite(e[n])&&Number.isFinite(e[o])&&Number.isFinite(e[A])}function SD(r,e){let t=0;if(r!==void 0&&e!==void 0){let i=ya(e.series),s=ze(e.series),a=pa(e);r.data.forEach(n=>{switch(s){case xe.BoxPlotMonoField:case xe.BoxPlotMultiFields:case xe.BoxPlotMonoFieldAndCategory:jp({dataItem:n,showOutliers:a})&&(t+=1);break;case xe.BoxPlotMultiFieldsAndCategory:i.forEach(o=>{jp({dataItem:n,y:o,showOutliers:a})&&(t+=1)});break;case xe.BoxPlotMonoFieldAndSplitBy:case xe.BoxPlotMultiFieldsAndSplitBy:case xe.BoxPlotMonoFieldAndCategoryAndSplitBy:e.series.forEach(o=>{jp({dataItem:n,splitBy:o.query?.where,showOutliers:a})&&(t+=1)});break}})}return t}function wB(){return r=>{let e=ce(r.chart.uid,"config"),t=!1;if(e!==void 0&&r instanceof la){let i=SD(r.chart,e),s=0,a=0,n=0,o=0,A=0;r.chart.series.values.forEach(c=>{if(c instanceof Li)s+=c.columns.length;else if(c instanceof Ht&&!(c instanceof Ks)){let d=pi(c);if(d!==void 0&&!d.disabled){let u=d.clones.values.filter(f=>!(f.dataItem instanceof za))?.length??0;if(Ki(c.uid,"isBoxPlotMeanLineSeries")===!0){o+=u;let f=c.data.filter(m=>Number.isFinite(m[c.dataFields.valueX??c.dataFields.valueY??""])).length;A+=f}else{let f=c.data.filter(m=>Number.isFinite(m[c.dataFields.valueX??c.dataFields.valueY??""])).length;n+=f,a+=u}}}});let l=n===0||a>=n,h=A===0||o>=A;t=s>=i&&l&&h&&r.chart.appeared&&r.isReady()&&r.chart.isReady()}return t}}function LD(r,e){let t;switch(r){case Q.BarSeries:t=(i,s)=>{if(i instanceof Xi){let a=ur({chart:i.chart}),n=0;if(s.type===Q.BarSeries){let o=(a?i.dataFields.valueX:i.dataFields.valueY)??s.y;n=i.chart?.data?.filter(A=>Number.isFinite(A[o])).length}return i.chart.isReady()&&i.columns.length===n}return!1};break;case Q.LineSeries:e===!0?t=wB():t=(i,s)=>{if(i instanceof Ht){let a=ur({chart:i.chart}),n=pi(i),o=0;if(s.type===Q.LineSeries){let{y:A}=s,l=(a?i.dataFields.valueX:i.dataFields.valueY)??[A].flat()[0];o=i.chart?.data?.filter(h=>Number.isFinite(h[l])).length}return i.chart.appeared&&i.chart.isReady()&&n!==void 0&&n.clones.values.length>=o}return!1};break;case Q.PieSeries:t=i=>i instanceof rr&&i.slices.length>0;break;case Q.BoxPlotSeries:t=wB();break}return t}function PC(r){let{series:e,callbackInfo:t,seriesConfig:i,onReadyEvent:s}=r,{type:a}=t,n=_e([i]),o=Ki(e.uid,"isBoxPlotMeanLineSeries"),A=a==="style"?"updateStyleCallbackDisposer":"updateSelectionCallbackDisposer",l=async d=>{let{type:u,callbackProps:f}=d;u==="selection"?nU(f):d.styleCallback!==void 0&&(Et(e,i.visible),await d.styleCallback(f))};s===!0&&e.events.once(me.Ready,async()=>await l(t));let h=Ki(e.uid,A);h!==void 0&&h.dispose();let c=LD(n,o);h=(n===Q.PieSeries?e.chart:e).events.on(me.Validated,async()=>{c!==void 0&&c(e,i)&&(h!==void 0&&h.dispose(),await l(t))}),e.dispatchImmediately(me.Validated),wr(e.uid,{[A]:h})}function ru(r){let{series:e,styleCallback:t,callbackProps:i,onReadyEvent:s,seriesConfig:a}=r;PC({callbackInfo:{styleCallback:t,callbackProps:i,type:"style"},series:e,seriesConfig:a,onReadyEvent:s})}function TD(r){let{series:e,callbackProps:t,seriesConfig:i,onReadyEvent:s}=r;PC({callbackInfo:{callbackProps:t,type:"selection"},series:e,seriesConfig:i,onReadyEvent:s})}function jo(r){let{defaultChartItemRole:e}=Z.aria;r instanceof Li||r instanceof Xi?(r.columns.template.properties.role=e,r.columns.template.focusable=!0,r.columns.template.hoverOnFocus=!0,r.itemReaderText=El()):r instanceof Ks?r.segments.template.properties.role=e:r instanceof Ht?r.bullets.values.forEach(t=>{t.focusable=!0,t.properties.role=e,t.readerTitle=El(),t.hoverOnFocus=!0}):r instanceof rr&&(r.slices.template.properties.role=e,r.slices.template.hoverOnFocus=!0,r.itemReaderText="{category} {value.formatNumber('#.#')} {value.percent.formatNumber('#.#')}%")}function ID(r){let e=ce(r.uid,"config");r.series.each(t=>{let i=e?.series?.find(s=>s.id===t.id);i!==void 0&&i.visible!==!1&&!t.visible&&Et(t)})}function au(r,e){let t=_e(e?.series);return e?.series.find(i=>{let s=!1;return t!==Q.BoxPlotSeries||r instanceof Li?s=r.id===i.id:r instanceof Ks?s=r.id.replace(`_${kt.Top}`,"")===i.id||r.id.replace(`_${kt.Median}`,"")===i.id||r.id.replace(`_${kt.Bottom}`,"")===i.id:r instanceof Ht&&(s=r.id.replace(`_${kt.Outliers}`,"")===i.id),s})}var ps={CustomActive:"custom-active",CustomInactive:"custom-inactive",Default:"default",Active:"active"};function DD(r,e){let t=!1;if(e!==void 0&&vA(r)){let i=hf.spriteRectToSvg(r.bbox,r),s=e.x,a=e.y,n=e.x+e.width,o=e.y+e.height,A=i.x,l=i.y,h=i.x+i.width,c=i.y+i.height;t=!(A>n||h<s||l>o||c<a)}return t}function Zo(r){let{element:e,customSelectionTheme:t,useNativeState:i}=r,s=i===!0?ps.Active:ps.CustomActive,a=e.states.getKey(s)??e.states.create(s),n=e.states.getKey(ps.CustomInactive)??e.states.create(ps.CustomInactive),{selectedElementsTheme:o,nonSelectedElementsTheme:A}=t??Z.selectionTheme??{};Xf(a,o),Xf(n,A)}function Rr(r){let{element:e,selected:t,multiSelect:i,isDateOrCategoryAxis:s,useNativeState:a,backToDefaultState:n}=r;if(e!==void 0){let o=e.isActive;i!==!0?s===!0?o=e.isActive?!1:e.isActive!==t:o=t:o=e.isActive!==t,o!==e.isActive&&(e.isActive=o);let A=a===!0?ps.Active:ps.CustomActive,l=n===!0?ps.Default:ps.CustomInactive;e.setState(e.isActive?A:l,0),e.isActive&&(e.toFront(),e.dataItem?.component instanceof mf&&e.dataItem.component.toFront())}return e?.isActive??!1}function nu(r,e){let t=!1;if(e instanceof Rt||e instanceof gi){let i=ce(e.uid,"actionMode");i!==void 0&&(t=i===et.MultiSelection||i===et.MultiSelectionWithCtrlKey&&(r?.event?.ctrlKey||r?.event?.metaKey))}return t}function OC(r){let e=r instanceof Rt&&r.zoomOutButton.isHover,t=r.legend.isHover,i=!1,s=!1,a=!1,n=!1;if(r instanceof Rt){i=r.xAxes.values.some(A=>A.renderer.labels.template.events.has(me.Hit)&&A.renderer.isHover),s=r.yAxes.values.some(A=>A.renderer.labels.template.events.has(me.Hit)&&A.renderer.isHover),a=i||s;let o=ce(r.uid,"config");Us(o)&&(n=r.series.values.find(A=>A instanceof Li)?.isHover??!1)}return!e&&!t&&!a&&!n}function wm(r,e){return r.values.filter(t=>{let i=!1,s=!t.isActive;if(!(t.dataItem instanceof za)){t.isActive=!t.isActive;let a=ce(e.uid,"filterBySelection")!==!0&&s;Rr({element:t,selected:a}),i=s}return i})}function _B(r,e){let t=[],{columns:i,chart:s}=r,a=ce(s.uid,"config");if(a&&i!==void 0&&r.visible){let n=a?.series[0].x,o=r?.dataFields?.customValue??"",A=eu(r,e),l=au(r,a),h=A===Q.BoxPlotSeries?l?.y:ao(r),c={element:{},yAxisField:h,xAxisField:n,splitBy:o,seriesIndex:e,chartConfig:a};t=wm(i,s).map(d=>({...c,element:d,elementDataContext:d.dataItem?.dataContext,elementIndex:d.dataItem?.index}))}return t}function FB(r,e){let t=[];if(r.visible){let i=pi(r)?.clones;if(i!==void 0){let{chart:s}=r,a=ce(s.uid,"config");if(a){let n=a.series[0].x??"",o=ao(r),A=r?.dataFields?.customValue??"",l={element:{},xAxisField:n,yAxisField:o,splitBy:A,seriesIndex:e,chartConfig:a};t=wm(i,s).map(h=>({...l,element:h,elementDataContext:h.dataItem?.dataContext,elementIndex:h.dataItem?.index}))}}}return t}function kD(r){let e=[];if(r.visible){let{chart:t}=r,i=ce(t.uid,"config");if(i){let s=SC(r),a=ao(r),n={element:{},xAxisField:s,yAxisField:a,seriesIndex:0,chartConfig:i},o;e=wm(r.slices,t).map(A=>{let l=A.dataItem?.dataContext??{};return Ln(l)&&(o=FA({groupOfSlicesDataContext:l})),{...n,element:A,elementIndex:A.dataItem?.index,elementDataContext:l}}),o!==void 0&&o.forEach((A,l)=>{e.push({...n,elementIndex:l,elementDataContext:A})})}}return e}function UD(r){let{chart:e,selectionSource:t,chartConfig:i}=r,s=!1,a=[];if(en(i)){if(s=Us(i),a=e.series.values.filter(n=>!(n instanceof Ks)),t===li.SelectionByClick){let n=new Set,o=a.find(A=>A instanceof Li&&A.isHover);o===void 0?a.forEach(A=>{A instanceof Ht&&(A.id.includes(kt.Outliers)&&A.tooltip?.visible===!0||Ki(A.uid,"isBoxPlotMeanLineSeries"))&&n.add(A)}):n.add(o),a=Array.from(n)}}else a=e.series.values;return a=a.filter(n=>n.visible&&(!s||!(n instanceof Li||Ki(n.uid,"isBoxPlotOutliersSeries")))),a}async function HC(r){let{chart:e,cursorSelectionRectangle:t,multiSelect:i,selectionSource:s,hitElement:a,queryObject:n}=r,o=ce(e.uid,"config"),A=o?.series[0]?.x??"",l=[];ot(e.uid,{pendingSelectionQueries:!0});let h=[],c=!0;UD({chart:e,selectionSource:s,chartConfig:o}).forEach((d,u)=>{let f=au(d,o);if(o&&d.visible&&d instanceof la){let m=eu(d,u)===Q.BoxPlotSeries?f?.y:ao(d),g=d.dataFields?.customValue??"",v={element:{},yAxisField:m,xAxisField:A,splitBy:g,seriesIndex:u,chartConfig:o},B;d instanceof Xi||d instanceof Li?B=d.columns?.values:d instanceof Ks?B=d.segments.values:d instanceof Ht&&(B=pi(d)?.clones?.values,v.uniqueFeature=!0),B!==void 0&&(h=[...h,...B],B.forEach((w,_)=>{if(!(w.dataItem instanceof za)){let L=w.isActive,k=w===a||DD(w,t);k&&(c=!1);let D=!1;L?k?D=s!==li.SelectionByClick:D=i===!0:D=k,D&&l.push({...v,element:w,elementDataContext:w.dataItem?.dataContext,elementIndex:_}),Rr({element:w,selected:D})}}))}}),c&&(l=[]),await bc({chart:e,listSelectedElements:l,selectionSource:s,queryObject:n})}function QD(r,e){let t=async i=>{let s=i.target.cursor;if(s.xRange!==void 0){s.selection.isMeasured=!0,s.validate(),s.selection.validate();let a=hf.spriteRectToSvg(s.selection.bbox,s.selection);if(s.selection.hide(),a.width>0||a.height>0){let n=nu(i,r);await HC({chart:r,cursorSelectionRectangle:a,multiSelect:n,selectionSource:li.SelectionByRange,queryObject:e})}}s.selection.hide()};or(r)&&r.events.on(me.Up,async i=>{let s=i.target.cursor,a=Ex(r.uid,"selectEndedCallbackDisposer");if(a!==void 0&&a.dispose(),s.xRange!==void 0&&i.event instanceof TouchEvent)await t(i);else{let n=s.events.once(me.SelectEnded,async()=>{await t(i)});Rx(r.uid,{selectEndedCallbackDisposer:n})}})}async function Wd(r){let{hitEvent:e,chart:t,queryObject:i}=r,{target:s}=e,a=ce(t.uid,"actionMode");if(t!==void 0&&OC(t)&&a!==et.None&&a!==et.Zoom&&(s instanceof Rt||e.point===void 0)){let n=e.svgPoint?{x:e.svgPoint.x,y:e.svgPoint.y,width:0,height:0}:void 0,o=nu(e,t);await HC({chart:t,cursorSelectionRectangle:n,multiSelect:o,selectionSource:li.SelectionByClick,hitElement:s,queryObject:i})}}function ED(r,e){or(r)&&(r.zoomOutButton.hoverable=!0,r.events.on(me.Hit,async t=>await Wd({hitEvent:t,chart:r,queryObject:e})),r.events.on(me.DoubleHit,async t=>await Wd({hitEvent:t,chart:r,queryObject:e})))}function yc(r){let{chart:e,element:t,queryObject:i}=r;t.events.on(me.Hit,async s=>await Wd({hitEvent:s,chart:e,queryObject:i})),t.events.on(me.DoubleHit,async s=>await Wd({hitEvent:s,chart:e,queryObject:i}))}async function RD(r,e){let{series:t}=r;if(t.length>0){ot(r.uid,{pendingSelectionQueries:!0});let i=ce(r.uid,"config"),s=t.values.map((a,n)=>{let o=[];if(a.visible){let A=_e(i?.series,n);A===Q.BarSeries?o=_B(a,n):A===Q.LineSeries?o=FB(a,n):A===Q.PieSeries?o=kD(a):A===Q.BoxPlotSeries&&(a instanceof Li?o=_B(a,n):a instanceof Ht&&!(a instanceof Ks)&&(o=FB(a,n)))}return o}).flat();await bc({chart:r,listSelectedElements:s,selectionSource:li.ProgrammaticSelection,queryObject:e}),r instanceof gi&&r.feedLegend()}}function Zp(r){if(or(r))if(r.events.disableType(me.Hit),r.events.disableType(me.DoubleHit),r instanceof gi){let e=r.series.getIndex(0);e!==void 0&&(e.slices.template.clickable=!1,e.slices.template.togglable=!1,e.slices.template.events.disableType(me.Hit),e.slices.template.events.disableType(me.DoubleHit),e.labels.template.clickable=!1,e.labels.template.togglable=!1,e.labels.template.events.disableType(me.Hit),e.labels.template.events.disableType(me.DoubleHit))}else r instanceof Rt&&(r.xAxes.each(e=>Yd(e,!0)),r.yAxes.each(e=>Yd(e,!0)),r.events.disableType(me.Up))}function MD(r){if(or(r))if(r.events.enableType(me.Hit),r.events.enableType(me.DoubleHit),r instanceof gi){let e=r.series.getIndex(0);e!==void 0&&(e.slices.template.clickable=!0,e.slices.template.togglable=!0,e.slices.template.events.enableType(me.Hit),e.slices.template.events.enableType(me.DoubleHit),e.labels.template.clickable=!0,e.labels.template.togglable=!0,e.labels.template.events.enableType(me.Hit),e.labels.template.events.enableType(me.DoubleHit))}else r instanceof Rt&&(r.xAxes.each(e=>Yd(e,!1)),r.yAxes.each(e=>Yd(e,!1)),r.events.enableType(me.Up))}function io(r){let{element:e,stylingInfo:t,stateKey:i="default"}=r;if(e!==void 0&&t!==void 0){let s=e.states.getKey(i)?.properties??e.defaultState.properties;if(s.fill=t.pattern??t.fill,s.fillOpacity=cf(s.fill.toString()).alpha===0?0:1,t.outline!==void 0){let{outline:a}=t;s.stroke=a.stroke,s.strokeOpacity=a.stroke.alpha===0?0:1,s.strokeDasharray=a.strokeDasharray,s.strokeLinecap=a.strokeLinecap,s.strokeWidth=a.strokeWidth}}}function _m(r){return r.values.every(e=>e.isReady())}function qo(r,e){r.events.on(me.Ready,()=>{let{chart:t}=r;t!==void 0&&_m(r.chart.series)&&(ID(t),e(),Fn(r.chart.htmlContainer))})}function HA(r,e){return e!=null&&e!==""?e:r}function NC(r,e){let t;switch(r){case Br.Average:{t=e.statistics.mean;break}case Br.ContinuousPercentile:{t=e.statistics.median;break}case Br.Sum:{t=e.statistics.sum;break}case Br.Minimum:{t=e.statistics.minimum;break}case Br.Maximum:{t=e.statistics.maximum;break}case Br.Variance:{t=e.statistics.variance;break}case Br.DiscretePercentile:{t=e.statistics.discretePercentile;break}case Br.NoAggregation:{t=e.statistics.noAggregation;break}case Br.Count:default:{t=e.statistics.count;break}}return t}function Fm(r){let{config:e,fieldName:t="",utilsStrings:i}=r,s=e.series[0].query?.outStatistics?.[0].statisticType??bf.statisticType,a=NC(s,i);return OA(i.statistics.aggregation,{statistics:a,fieldName:t})}function $C(r){let{config:e,fieldList:t,objectIdField:i,seriesIndex:s,isStacked100:a,utilsStrings:n}=r,o="",A=e.series[s].name,l=e.series[s],h=[l.y].flat()[0],c=e.axes,d=ze(e.series),u=i??Co.outStatistics.onStatisticField,f=l.query?.outStatistics?.[0].onStatisticField??u,m=vi(t,f),g=l.query?.outStatistics?.[0].statisticType??bf.statisticType,v=NC(g,n);return d===xe.BarAndLineNoAggregation?o=A??vi(t,h):d===xe.BarAndLineSplitByNoAggregation?o=vi(t,h):(o=g===Br.Count&&f===u?n.statistics.count:OA(n.statistics.aggregation,{statistics:v,fieldName:m??A}),d===xe.BarAndLineMonoField&&!a&&(o=HA(o,c[1].title?.content?.text))),o}function VC(r,e){let{dataTooltipStyle:t,dataTooltipStyleReversed:i}=Z;if(e===!0){let s=r.background.fill;if(s!==void 0){r.background.stroke=s,r.background.strokeWidth=i?.outline?.width??Number.NaN,r.background.fill=BA(i?.color);let a=r.background.fill.rgb;if(a!==void 0){let n=r.label.fill;r.label.fill=Ax(a)?n?.darkColor:n?.lightColor}}}else r.getStrokeFromObject=!0,r.getFillFromObject=!0,r.background.strokeWidth=t?.outline?.width??Number.NaN,r.background.stroke=BA(t?.outline?.color)}function PD(r){let e=r.tooltip??new gf;e.pointerOrientation="vertical",r instanceof Li||r instanceof Ks?e.label.maxWidth=Z.boxPlot.boxPlotTooltipLabelWidth:e.label.maxWidth=Z.tooltipWidth,e.label.wrap=!0,e.events.on(me.Shown,t=>{let i=ce(r.chart.uid,"config");if(i!==void 0){let s=au(r,i),{dataTooltipReverseColor:a}=s??{};VC(t.target,a)}})}function OD(r){r instanceof Ds||r.series.each(e=>{PD(e)})}function XC(r,e){r.tooltipHTML=Z.htmlEmptyContent,r.adapter.add("tooltipHTML",(t,i)=>{let s=t??"",{chart:a}=e;if(a!==void 0){let n=ce(a.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)s="";else{let A=Ki(e.uid,"barAndLineTooltipFormatter");if(A!==void 0&&e.isReady()){let{dataItem:l}=i;if(l instanceof gh||l instanceof yo){let h=n?.series.find(c=>c.id===e.id);if(h!==void 0){let c=ur({config:n}),d=c?l.valueX:l.valueY,u=(c?l.values.valueX.totalPercent:l.values.valueY.totalPercent)/100,f=l.dataContext??{};if(f!==void 0){let m=ce(a.uid,"rendererFieldNames"),g=ua({value:f[h.x],dataContext:f,useRendererLabel:Ul(n,m),specificField:Dl(ze([h]),h)}),v=Xr(f);v===void 0&&(v=g);let B=f[Z.dateBinningRange];s=A({seriesName:e.name,xValue:g,originalXValue:v,dateBinningRange:B,statValue:d,percentValue:u})}}}}}}return mi(s)}),r.tooltipPosition=e instanceof Ht?Z.markerTooltipPosition:Z.columnTooltipPosition,e.cursorTooltipEnabled=!1}function HD(r){let{isStacked100:e,series:t,statValue:i,percentValue:s,yAxisValueFormat:a,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=r,A=n;A===void 0&&(ks(a)&&a?(A=a,e&&(A.intlOptions.style="decimal")):A=wh());let l=ce(t.chart.uid,"formatLocale"),h=i!==void 0?fc({value:i,valueFormat:A,iLocale:t.chart.language.locale,formatLocale:l}):"",c="";if(e&&s!==void 0){let d=o;d===void 0&&(d=Tf(),d.intlOptions.minimumFractionDigits=2,d.intlOptions.maximumFractionDigits=2),c=fc({value:s,valueFormat:d,iLocale:t.chart.language.locale,formatLocale:l})}return{formattedStatValue:h,formattedPercentValue:c}}function ND(r){let{series:e,dateRange:t,xAxisValueFormat:i}=r,s,a=ce(e.chart.uid,"timeIntervalInfo");if(t!==void 0&&t.length>0){let n={};switch(a?.unit){case Nt.Second:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case Nt.Minute:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case Nt.Hour:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case Nt.Day:case Nt.Week:case Nt.Month:case Nt.Year:n={month:"numeric",day:"numeric",year:"numeric"};break}n.timeZone=i.intlOptions.timeZone;let o=new Date(t[0]),A=new Date(t[1]);if(!Number.isNaN(o.valueOf())){let l=ce(e.chart.uid,"formatLocale"),h=Ea({type:Q.DateAxisFormat,iLocale:e.chart.language.locale,formatLocale:l}),c=h.format(o,n);if(s=c,!Number.isNaN(A.valueOf())){let d=h.format(A,n);d!==c&&(s=`${s} - ${d}`)}}}return s?.toString()??""}function KC(r){let{seriesConfig:e,xAxisValueFormat:t,setTimeBinningInfoWhenNotProvided:i,dataTooltipValueFormat:s,dataTooltipDateFormat:a,series:n,xValue:o,dateBinningRange:A,isTimeOnlyField:l,queryObject:h}=r,c,d=ce(n.chart.uid,"formatLocale");return Mh({seriesConfig:e,xAxisValueFormatType:t?.type,setTimeBinningInfoWhenNotProvided:i,queryObject:h})&&A!==void 0&&t?.type===Q.DateAxisFormat?c=ND({series:n,dateRange:A,xAxisValueFormat:t}):Vr(t)?l&&typeof o=="number"?c=new Date(o).toLocaleTimeString(d):(o instanceof Date||typeof o=="number"&&Number.isFinite(o))&&(c=fc({value:o,valueFormat:a??t,iLocale:n.chart.language.locale,formatLocale:d})):typeof o=="number"&&ks(t)?c=fc({value:o,valueFormat:s??t,iLocale:n.chart.language.locale,formatLocale:d}):c=o,c?.toString()??""}function $D(r){let{series:e,fieldList:t,queryObject:i,setTimeBinningInfoWhenNotProvided:s,seriesIndex:a,seriesConfig:n,utilsStrings:o}=r,{dataTooltipValueFormat:A,dataTooltipPercentFormat:l,dataTooltipDateFormat:h}=n,c=()=>"",{chart:d}=e;if(d!==void 0){let u=ce(d.uid,"config");if(u!==void 0){let{dataTooltipVisible:f}=n,m=e instanceof Ht?n.markerVisible:void 0;if(f===!1||m===!1)c=()=>"";else{let g=u.axes,v=g[0].valueFormat,B=g[1].valueFormat,w=ze(u.series),_=t?.find(M=>M.name===n.x)?.type===Cl.TimeOnly,L=Ys(u)===Qt.Stacked100,k=To(ws(i)).idField,D=vi(t,n.x),E=HA(D,g[0].title?.content.text),O=$C({config:u,fieldList:t,objectIdField:k,seriesIndex:a,utilsStrings:o,isStacked100:L}),I=Gs(d.rtl);c=M=>{let{statValue:S,percentValue:P,xValue:Y,dateBinningRange:G}=M,ie=KC({seriesConfig:n,xAxisValueFormat:v,dataTooltipValueFormat:A,dataTooltipDateFormat:h,setTimeBinningInfoWhenNotProvided:s,series:e,xValue:Y,dateBinningRange:G,isTimeOnlyField:_,queryObject:i}),{formattedStatValue:J,formattedPercentValue:ne}=HD({isStacked100:L,yAxisValueFormat:B,dataTooltipValueFormat:A,dataTooltipPercentFormat:l,series:e,statValue:S,percentValue:P}),z=[`<b>${E}${I} </b>${ie}`];switch(w){case xe.BarAndLineFromFields:{z.pop();let K=Fm({config:u,fieldName:vi(t,ie??""),utilsStrings:o});z.push(`<b>${K}${I} </b>${J}`);break}case xe.BarAndLineMonoField:case xe.BarAndLineNoAggregation:case xe.BarAndLineMultiFields:z.push(`<b>${O}${I} </b>${J}`);break;case xe.BarAndLineSplitByNoAggregation:case xe.BarAndLineSplitBy:{let K=ma(n.query?.where,!1),ge=Kf({value:vi(t,K)});z.push(`<b>${ge}${I} </b>${e.name}<br /><b>${O}${I} </b>${J}`)}break}return L&&z.push(`<b>${o.statistics.percent}${I} </b>${ne}`),z.join("<br />")}}}}return c}function GC(r){let{series:e,tooltipFormatter:t}=r;wr(e.uid,{barAndLineTooltipFormatter:t??$D(r)})}function Sm(r){let{target:e,defaultTooltipHTML:t,candleStickSeries:i,meanLineSeries:s,outliersSeries:a,tooltipCallback:n}=r,o=t,A=i??s;if(A!==void 0){let{chart:l}=A;if(l!==void 0){let h=ce(l.uid,"config"),{dataTooltipVisible:c}=h?.series[0]??{};if(c===!1)o="";else{let d=Ki(A.uid,"boxPlotTooltipFormatter");d!==void 0&&A.isReady()&&h&&(o=n({target:e,defaultTooltipHTML:t,config:h,candleStickSeries:i,meanLineSeries:s,outliersSeries:a,boxPlotTooltipFormatter:d}))}}}return mi(o)}function VD(r){let{target:e,defaultTooltipHTML:t,config:i,candleStickSeries:s,outliersSeries:a,boxPlotTooltipFormatter:n}=r,o=t;if(s!==void 0&&a!==void 0){let A=s.dataItems.values.find(h=>(h.categories.categoryX??h.categories.categoryY)===(e.dataItem?.categories.categoryX??e.dataItem?.categories.categoryY)),l=i.series.find(h=>h.id===s.id);if(l!==void 0){let h=A?.dataContext??{};if(h!==void 0){let c=ua({value:h[l.x],dataContext:h,useRendererLabel:Sn(i),specificField:We.xAxisField}),d=Xr(h);d===void 0&&(d=c),o=n({seriesName:a.name,xValue:c,originalXValue:d,dataContext:h})}}}return o}function XD(r){let{target:e,defaultTooltipHTML:t,config:i,meanLineSeries:s,boxPlotTooltipFormatter:a}=r,n=t;if(s!==void 0){let o=s.dataItems.values.find(A=>(A.categories.categoryX??A.categories.categoryY)===(e.dataItem?.categories.categoryX??e.dataItem?.categories.categoryY));if(o instanceof yo){let A=i.series.find(l=>l.id===s.id);if(A!==void 0){let l=o.dataContext??{};if(l!==void 0){let h=ua({value:l[A.x],dataContext:l,useRendererLabel:Sn(i),specificField:We.xAxisField}),c=Xr(l);c===void 0&&(c=h),n=a({seriesName:s.name,xValue:h,originalXValue:c,dataContext:l})}}}}return n}function KD(r){let{target:e,defaultTooltipHTML:t,config:i,candleStickSeries:s,boxPlotTooltipFormatter:a}=r,n=t;if(s!==void 0){let o=e.dataItem;if(o instanceof mx){let A=i.series.find(l=>l.id===s.id);if(A!==void 0){let l=o.dataContext??{};if(l!==void 0){let h=ua({value:l[A.x],dataContext:l,useRendererLabel:Sn(i),specificField:We.xAxisField}),c=Xr(l);c===void 0&&(c=h),n=a({seriesName:s.name,xValue:h,originalXValue:c,dataContext:l})}}}}return n}function GD(r){r.cursorTooltipEnabled=!1,r.tooltipPosition=Z.columnTooltipPosition,r.columns.template.tooltipHTML=Z.htmlEmptyContent,r.columns.template.adapter.add("tooltipHTML",(e,t)=>Sm({target:t,defaultTooltipHTML:e??"",candleStickSeries:r,tooltipCallback:KD}))}function WD(r,e){let t=pi(r);t!==void 0&&(t.tooltipPosition=Z.markerTooltipPosition,t.tooltipHTML=Z.htmlEmptyContent,r.cursorTooltipEnabled=!1,t.adapter.add("tooltipHTML",(i,s)=>Sm({target:s,defaultTooltipHTML:i??"",candleStickSeries:e,outliersSeries:r,tooltipCallback:VD})))}function YD(r){let e=pi(r);e!==void 0&&(r.cursorTooltipEnabled=!1,e.tooltipPosition=Z.markerTooltipPosition,e.tooltipHTML=Z.htmlEmptyContent,e.adapter.add("tooltipHTML",(t,i)=>Sm({target:i,defaultTooltipHTML:t??"",meanLineSeries:r,tooltipCallback:XD})))}function qn(r){let{label:e,value:t,strongColon:i,useTable:s}=r,a=`<b>${e}${i}</b> ${t}`;return s!==!1?`<tr><td>${a}</td></tr>`:a}function zD(r){let{dataContext:e,series:t,dataTooltipValueFormat:i,y:s,splitBy:a,utilsStrings:n,useTable:o}=r,A=i??wh(),l=Object.values(rt),h=Gs(t.rtl),c=o!==!1?['<tr><td colspan="2"><hr style="border-top: solid black;"></td></tr>']:[""];return l.forEach(d=>{let u=Ot({key:d,y:s,splitBy:a}),f=e[u];if(f!=null&&typeof f=="number"){let m=ce(t.chart.uid,"formatLocale"),g=fc({value:f,valueFormat:A,iLocale:t.chart.language.locale,formatLocale:m}),v="";switch(d){case rt.Min:v=n.statistics.minimum;break;case rt.FirstQuartile:v=n.statistics.firstQuartile;break;case rt.Median:v=n.statistics.median;break;case rt.ThirdQuartile:v=n.statistics.thirdQuartile;break;case rt.Max:v=n.statistics.maximum;break;case rt.IQR:v=n.statistics.iqr;break;case rt.Average:v=n.statistics.mean;break;case rt.StandardDeviation:}po(v)||c.push(qn({label:v,value:g,strongColon:h,useTable:o}))}}),c}function jD(r){let{series:e,fieldList:t,seriesConfig:i,utilsStrings:s,queryObject:a}=r,{dataTooltipValueFormat:n}=i,o=()=>"",{chart:A}=e;if(A!==void 0){let l=ce(A.uid,"config");if(l!==void 0){let h=l.axes,c=h?.[0].valueFormat,{showMean:d}=l,u=ze(l.series),f=ma(i.query?.where),m=vi(t,f),g=Tn({where:i.query?.where,escape:!1}),v=vi(t,i.x),B;i.x!==Ch&&(B=HA(v,h?.[0].title?.content.text));let w=Gs(A.rtl);o=_=>{let{dataContext:L,xValue:k}=_,D=KC({seriesConfig:i,xAxisValueFormat:c,series:e,xValue:k,queryObject:a}),E=[],O=D!==void 0&&!po(D)?vi(t,D):"",I=d===!0?[l.series[0].y].flat()[0]:[i.y].flat()[0],M=vi(t,I);switch(u){case xe.BoxPlotMonoField:case xe.BoxPlotMultiFields:case xe.BoxPlotMonoFieldAndSplitBy:case xe.BoxPlotMultiFieldsAndSplitBy:{if(D!==void 0&&!po(D)){let ie=u===xe.BoxPlotMonoField?i.name??O:O;E.push(qn({label:s.field,strongColon:w,value:ie}))}Mt(m)||E.push(qn({label:m,strongColon:w,value:i.name??g?.toString()}));break}case xe.BoxPlotMonoFieldAndCategory:case xe.BoxPlotMultiFieldsAndCategory:{E.push(qn({label:s.field,strongColon:w,value:i.name??M})),D!==void 0&&!po(D)&&E.push(qn({label:B,strongColon:w,value:O}));break}case xe.BoxPlotMonoFieldAndCategoryAndSplitBy:E.push(qn({label:s.field,strongColon:w,value:M})),D!==void 0&&!po(D)&&E.push(qn({label:B,strongColon:w,value:O})),Mt(m)||E.push(qn({label:m,strongColon:w,value:i.name??g?.toString()}));break}let S=[xe.BoxPlotMultiFieldsAndCategory],P=L[Z.boxPlot.boxPlotMeanLineMarkerId]!==void 0,Y=E.length>0&&!P,G=zD({dataContext:L,series:e,dataTooltipValueFormat:n,splitBy:i.query?.where,y:S.includes(u)?[i.y].flat()[0]:void 0,utilsStrings:s,useTable:Y});return Y?`${E.join("<br>")}<table>${G.join("")}</table>`:`${E.join("<br>")}${G.join("<br>")}`}}}return o}function ZD(r){let{series:e,tooltipFormatter:t}=r;wr(e.uid,{boxPlotTooltipFormatter:t??jD(r)})}function qD(r){let e=Ra(Z.dataLabelInitialize);return qa(e.uid,{isDataLabel:!0}),r.bullets.push(e),QC(e),DC(Q.LineSeries,e),kC(Q.LineSeries,e),nm(e,r),e.html="{valueX}",e}function JD(r){let{series:e}=r,t=am(e,"bullets");EC({...r,dataLabel:t,defaultDataLabelFormatter:UC})}var C={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},WC=new Set([`${C.NonRotated}-${C.LTR}-${C.SideBySide}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.SideBySide}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.SideBySide}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.SideBySide}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.LTR}-${C.SideBySide}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.LTR}-${C.SideBySide}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.LTR}-${C.SideBySide}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.LTR}-${C.SideBySide}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendLeft}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendRight}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendTop}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendBottom}-${C.DateAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendLeft}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendRight}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendTop}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendBottom}-${C.CategoryAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsASC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.SideBySide}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.LTR}-${C.Stacked100}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendLeft}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.NonRotated}-${C.RTL}-${C.Stacked100}-${C.LegendRight}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendTop}-${C.ValueAxis}-${C.OrderByFieldsDESC}`,`${C.Rotated}-${C.RTL}-${C.Stacked100}-${C.LegendBottom}-${C.ValueAxis}-${C.OrderByFieldsDESC}`]);function ek(r,e){e!==void 0&&(e.layout!==void 0&&(r.layout=e.layout),e.width!==void 0&&(r.width=$f(e.width)),e.height!==void 0&&(r.height=$f(e.height)),e.paddingTop!==void 0&&(r.paddingTop=e.paddingTop),e.paddingBottom!==void 0&&(r.paddingBottom=e.paddingBottom))}function tk(r){let e=!1,t=r.legend?.visible,i=r.legend?.title?.content.text,s=r.legend?.title?.visible;return e=t!==!1&&s!==!1&&i!==void 0&&i.length>0,e}function YC(r,e){let t=new hx;return ek(t,r),t.parent=e,t}function zC(r,e){r.disabled=e}function ik(r,e){r.toBack()}function sk(r){if(r instanceof Ds){let{paddingTop:e,paddingRight:t,paddingBottom:i,paddingLeft:s}=Z.gauge;r.padding(e,t,i,s)}else{let{paddingMinSize:e,marginMinSize:t,chartPaddingMinSize:i,chartContainer:s}=Z;r.padding(i,i,i,i),r.chartAndLegendContainer.margin(t,t,t,t),r.chartAndLegendContainer.padding(e,e,e,e),r.chartContainer.margin(t,t,t,t),r.chartContainer.padding(s.paddingTop,e,e,e)}}function rk(r,e){let t=(i,s)=>{let{chartContainer:a,chartAndLegendContainer:n}=Z,o=ce(i.uid,"config");if(o!==void 0){let A=tk(o),l=o.legend?.position;if(A)switch(l){case Te.Top:i.chartAndLegendContainer.paddingTop=s.bbox.height??0,i.chartContainer.paddingBottom=a.paddingBottom??0;break;case Te.Bottom:i.chartContainer.paddingBottom=s.bbox.height??0,i.chartAndLegendContainer.paddingTop=n.paddingTop??0;break;default:i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=a.paddingBottom??0;break}else i.chartAndLegendContainer.paddingTop=n.paddingTop??0,i.chartContainer.paddingBottom=a.paddingBottom??0}};e.events.on(me.PositionChanged,()=>{t(r,e)})}function Lm(r){let{iLocale:e,pieChart:t,valueIntlOptions:i,percentageIntlOptions:s,displayNumericValue:a,displayPercentage:n,valuePrefix:o,valueSuffix:A,percentagePrefix:l,percentageSuffix:h}=r,c=ce(t.uid,"formatLocale"),d=Ea({type:Q.NumberAxisFormat,iLocale:e,formatLocale:c}),u=Ea({type:Q.NumberAxisFormat,iLocale:e,formatLocale:c});d.numberFormat={...i},u.numberFormat={...s,style:"percent"};let f=Gs(t.rtl," ");return(m,g,v)=>{let B="";if(g!==void 0&&v!==void 0){let w=`${o??""}${d.format(g)}${A??""}`,_=`${l??""}${u.format(Math.abs(v/100))}${h??""}`;Number.isFinite(g)?a===!0&&n===!0?B=`${_}${f}(${w})`:a===!0?B=w:n===!0&&(B=_):B=""}return B}}function jC(r){let e=!1;if(r.position===Te.Right||r.position===Te.Left)e=!0;else{let t=r.labels.getIndex(0)?.parent?.x;t!==void 0&&(e=!r.labels.values.some(i=>i.parent?.x!==t))}return e}function ak(r){let e=!1,t=r.labels.getIndex(0)?.parent?.y;return t!==void 0&&(e=!r.labels.values.some(i=>i.parent?.y!==t)),e}function nk(r){r.events.on(me.LayoutValidated,()=>{let e=jC(r),t=ak(r),i=e||!t?Vt.Right:Vt.Center;r.valueLabels.template.horizontalCenter=Vf(i),r.valueLabels.template.align=$x(i)})}function ok(r){qa(r.valueLabels.template.uid,{isLegendValueLabel:!0}),r.valueLabels.template.adapter.add("htmlOutput",(e,t)=>{let i=e,s=Mx(r.uid,"pieChartLegendValueLabelsFormatter");if(s!==void 0&&(i=s(t.dataItem?.values?.value?.value??0,t.dataItem?.values?.value?.percent??0)),Mt(i)&&(i=Z.htmlEmptyContent),r.baseSprite instanceof yf){let a=ce(r.baseSprite.uid,"config");a?.legend?.body!==void 0&&(i=Ws({textSymbol:{...a.legend.body,text:i},format:"html"}))}return mi(i)}),r.valueLabels.template.html=Z.htmlEmptyContent,nk(r)}function Ak(r){let{legendElements:{legend:e},seriesConfig:t,webChartLegend:i,pieChartLegendValueLabelFormatter:s}=r,{visible:a,body:n,displayNumericValue:o,displayPercentage:A,displayCategory:l}=i??{};if(_e(t)===Q.PieSeries){let{numericValueFormat:h,percentValueFormat:c,valuePrefix:d,valueSuffix:u,percentagePrefix:f,percentageSuffix:m}=t[0],g=l??Z.pieChart.displayCategoryOnLegend,v=o??Z.pieChart.displayNumericValueOnLegend,B=A??Z.pieChart.displayPercentageOnLegend,w=s;if(s===void 0){let k=Lm({iLocale:e.language.locale,pieChart:e.baseSprite,valueIntlOptions:h?.intlOptions,percentageIntlOptions:c?.intlOptions,displayNumericValue:v,displayPercentage:B,valuePrefix:d,valueSuffix:u,percentagePrefix:f,percentageSuffix:m});w=(D,E)=>k("",D,E)}Px(e.uid,{pieChartLegendValueLabelsFormatter:w});let _=jC(e),L={type:Q.Text,visible:a,content:{...n,type:je.TS,text:".",verticalAlignment:Tt.Middle,horizontalAlignment:_?Vt.Right:Vt.Center}};fr({label:e.valueLabels.template,labelConfig:L,defaults:Z.legendProperties.valueLabels}),e.labels.template.disabled=g===!1,e.valueLabels.template.disabled=v===!1&&B===!1}}function lk(r){let{dataContext:e}=r.target.dataItem??{};if(e instanceof ca){let{component:t}=e;t instanceof rr&&t.showTooltip()}}function ck(r){let e=()=>{let t=r.children.values.find(i=>i.className==="Container");if(t?.children.length===3){let i=t.children.values.findIndex(s=>s.className==="Container");if(i!==-1){let s=i!==0?0:2,a=t.children.getIndex(s)?.clonedFrom;a!==void 0&&Ti(a.uid,"isLegendValueLabel")!==!0&&r.children.each(n=>{n.className==="Container"&&n.children.swap(1,s)})}}};r.events.on(me.Validated,e),e()}function SB(r,e){let{legendLabelReducedOpacity:t}=Z.legendProperties;r!==void 0&&(r.fillOpacity=e===!1?t:1)}function hc(r){let{labels:e,seriesId:t,sliceCategory:i}=r;e.each(s=>{i!==void 0?i===s.dataItem.category&&SB(s,s.dataItem.slice.visible??!0):t===s.dataItem?.component?.id&&SB(s,s.dataItem?.component?.visible??!0)})}function Tm(r){r instanceof rr?(r.slices.template.events.on(me.Shown,e=>{let t=e.target.dataItem.category;hc({labels:r.chart?.legend?.labels,sliceCategory:t}),hc({labels:r.chart?.legend?.valueLabels,sliceCategory:t})}),r.slices.template.events.on(me.Hidden,e=>{let t=e.target.dataItem.category;hc({labels:r.chart?.legend?.labels,sliceCategory:t}),hc({labels:r.chart?.legend?.valueLabels,sliceCategory:t})})):r.events.on(me.VisibilityChanged,e=>{let t=e.target.id;hc({labels:r.chart?.legend?.labels,seriesId:t})})}function ZC(r){let{title:e,visible:t}=r;return e!==void 0&&t!==!1&&e?.visible!==!1}function hk(r,e){let{legendProperties:t}=Z;if(r.position===Te.Bottom)r.marginTop=t.marginTop??0,r.marginBottom=0,r.dy=0;else if(r.position===Te.Top)r.marginBottom=t.marginBottom??0,r.marginTop=0,r.dy=0;else if(r.marginTop=0,r.marginBottom=0,!(r.baseSprite instanceof gi)){let i=ZC(e),s=e.title?.content?.font?.size??Z.generalFontSize;r.dy=-(i?s:15)}}function dk(r){let e=r.baseSprite,t;if(e!==void 0){let i=ce(e?.uid,"config");t=e?.rtl&&(i?.legend?.position===Te.Top||i?.legend?.position===Te.Bottom)}return t??!1}function uk(r){let e=r.baseSprite,t="";if(e instanceof Rt){let i=ce(e.uid,"config"),s=es(i),a=s?C.Rotated:C.NonRotated,n=Ys(i),o=C.SideBySide;n===Qt.Stacked?o=C.Stacked:n===Qt.Stacked100&&(o=C.Stacked100);let A=e.rtl?C.RTL:C.LTR,l;switch(i?.legend?.position){case Te.Left:l=C.LegendLeft;break;case Te.Top:l=C.LegendTop;break;case Te.Bottom:l=C.LegendBottom;break;case Te.Right:default:l=C.LegendRight;break}let h=s?e.yAxes.getIndex(0):e.xAxes.getIndex(0),c;h instanceof fi?c=C.DateAxis:h instanceof zt?c=C.ValueAxis:c=C.CategoryAxis;let d=i?.orderOptions?.data&&"orderBy"in i.orderOptions.data&&i.orderOptions.data.orderBy===vl.Descending?C.OrderByFieldsDESC:C.OrderByFieldsASC;t=`${a}-${A}-${o}-${l}-${c}-${d}`}return t}function fk(r){let e=uk(r);return WC.has(e)}function qC(r,e){let{legend:t,legendTitle:i}=r??{};switch(e){case Q.PieSeries:t.reverseOrder=dk(t);break;case Q.BarSeries:case Q.LineSeries:case Q.ComboLineAndBarSeries:t.reverseOrder=fk(t);break}let s=t.reverseOrder===!0?t.children.length-1:0;t.children.moveValue(i,s)}function gk(r){if(r.visible){let e=ce(r.chart.uid,"config")?.series.find(t=>t.id===r.id);if(e!==void 0&&_e([e])===Q.LineSeries){let{markerVisible:t}=e;t!==!1&&r.bulletsContainer.show()}}}function pk(r,e){let t=r.target.dataItem,i=r.target.isActive;if(t?.dataContext!==void 0){let{dataContext:s}=t,a={visible:i};if(s instanceof ca)ce(e.uid,"isNonAggregatedChart")===!0?a.sliceData=s.dataContext:a.sliceId=s.category;else if(s instanceof Li){let o=s.id,A=xc(e,o);if(A!==void 0){let d=ce(e.uid,"config"),u=Dm(d?.showOutliers,i),f=pi(A);f!==void 0&&(f.disabled=!u),Et(A,u)}let{topStepLineSeries:l,medianStepLineSeries:h,bottomStepLineSeries:c}=ou(e,o);l!==void 0&&Et(l,i),h!==void 0&&Et(h,i),c!==void 0&&Et(c,i),a.seriesId=s.id}else a.seriesId=s.id;let n=s instanceof ca?s.component:s;(n instanceof la||n instanceof rr)&&n.events.once(me.Validated,()=>{n instanceof la&&(lw(n),n.events.dispatchImmediately(me.Validated,{type:me.Validated,target:n}));let o=n instanceof rr,A=ce(e.uid,"currentSelectionDataItems"),l=A!==void 0&&A.length>0,h=ce(e.uid,"actionMode")??Z.actionMode,c;n instanceof Xi?c=n.columns:o?c=n.slices:n instanceof Ht&&(gk(n),c=pi(n)?.clones),c?.each(d=>{d.dataItem instanceof za||(Rr({element:d,selected:d.isActive,useNativeState:o,backToDefaultState:!l}),o&&h===et.None&&(d.clickable=!1))})}),Ef(a,e.htmlContainer)}}function mk(r){let{legendProperties:e,legendProperties:t}=Z;r.adapter.add("paddingRight",()=>r.scrollbar.visible?t.legendPaddingRightWithScrollbarVisible:e.paddingRight),r.adapter.add("paddingLeft",()=>e.paddingLeft),r.adapter.add("paddingTop",()=>e.paddingTop),r.adapter.add("paddingBottom",()=>e.paddingBottom)}function yk(r){r.scrollable=!0}function xk(r){let e=Ra(void 0,r);return e.adapter.add("paddingTop",t=>{let i=t,s=e.bbox.height;return s>0&&(i=-s),i}),e.adapter.add("x",t=>{let i=t,{marginLeft:s,marginRight:a}=Z.legendProperties.legendTitle;switch(ce(r.baseSprite.uid,"config")?.legend?.title?.content?.horizontalAlignment){case Vt.Left:i=e.measuredWidth+(s??0);break;case Vt.Right:i=r.measuredWidth-e.measuredWidth-(a??0);break;case Vt.Center:case Vt.Justify:default:i=r.measuredWidth/2;break}return i}),e.adapter.add("disabled",t=>(t===!1&&e.validate(),t)),e}function bk(r){let{legendConfig:e,legendTitle:t}=r,{title:i,position:s}=e,{legendTitle:a}=Z.legendProperties,n=ZC(e);if(i!==void 0){let o={...i,visible:n};fr({label:t,labelConfig:o,defaults:a}),t.marginLeft=a.marginLeft??0}s===Te.Top||s===Te.Bottom?(t.maxWidth=Number.NaN,t.isMeasured=!1):(t.maxWidth=a.maxWidth??Number.NaN,t.marginTop=n?t.bbox?.height??i?.content?.font?.size??Z.generalFontSize:0,t.isMeasured=!0)}function vk(r){let e=Z.legendProperties;r.labels.template=Ra(e.legendLabels),r.valueLabels.template=Ra(e.legendLabels),r.markers.template.width=e.legendMarkersSize,r.markers.template.height=e.legendMarkersSize,r.labels.template.adapter.add("wrap",()=>!0),r.labels.template.adapter.add("maxWidth",t=>{let i=t,s;if(r.baseSprite instanceof gi&&(s=ce(r.baseSprite.uid,"config")?.legend?.labelMaxWidth),r.position===Te.Right||r.position===Te.Left)i=s??Z.legendProperties.legendLabels.maxWidth;else if(s!==void 0)i=s;else{let a=0;r.valueLabels.template.disabled||r.valueLabels.each(n=>{a=Math.max(a,n.measuredWidth)}),i=r.measuredWidth-a-45}return i}),r.labels.template.adapter.add("textOutput",(t,i)=>{let s=i.dataItem?.label?.currentText,a,n=ce(r.baseSprite.uid,"config");if(n!==void 0){let{series:o}=n;if(_e(o)===Q.PieSeries){let A=ze(o)===xe.PieFromFields?ja:o[0].x,l=i.dataItem?.dataContext?.[A];typeof l=="string"?a=l:l&&typeof l!="object"&&(a=l.toString())}else i.dataItem?.component instanceof mf&&(a=i.dataItem.component.name)}return(a!==void 0&&!Mt(a)?Sh(a):a)??s}),r.valueLabels.template.adapter.add("maxWidth",t=>{let i=t,s;return r.baseSprite instanceof gi&&(s=ce(r.baseSprite.uid,"config")?.legend?.valueLabelMaxWidth),r.position===Te.Right||r.position===Te.Left?i=s??Z.legendProperties.valueLabels.maxWidth:i=s??Number.NaN,i})}function Bk(r,e){r.itemContainers.template.events.on(me.Hit,t=>pk(t,e)),e instanceof gi&&r.itemContainers.template.events.on(me.Over,t=>lk(t))}function Ck(r){r.itemContainers.template.reverseOrder=r.rtl}function $d(r,e){r.adapter.keys().includes(e)||r.adapter.add(e,t=>{let i=t,s=r.dataItem?.dataContext;if(s!==void 0){let a=s instanceof ca?s.component?.chart:s.chart;if(a!==void 0){let n=ce(a.uid,"config"),{rectangleMarkerRadius:o,roundedMarkerRadius:A}=Z.legendProperties;i=n?.legend?.roundMarkers===!0?A:o}}return i})}function LB(r){r.markers.each(e=>{let t=e.children.getIndex(0);t instanceof dx&&($d(t,"cornerRadiusBottomLeft"),$d(t,"cornerRadiusBottomRight"),$d(t,"cornerRadiusTopLeft"),$d(t,"cornerRadiusTopRight"),t.validate())})}function wk(r){r.markers.template.events.on(me.Inited,()=>{LB(r)}),r.events.once(me.Validated,()=>{LB(r)})}function _k(r){let{legendElements:{legend:e},seriesConfig:t,webChartLegend:i}=r,{visible:s,body:a}=i??{},n=_e(t),o={type:Q.Text,visible:s,content:{...a,type:je.TS,text:" "}};fr({label:e.labels.template,labelConfig:o,defaults:Z.legendProperties.legendLabels}),e.labels.template.valign=Tt.Middle,e.valueLabels.template.valign=Tt.Middle,n===Q.PieSeries&&Ak(r),e.valueLabels.template.width=Number.NaN}function Fk(r,e){e.chartContainer.events.on(me.SizeChanged,ls(()=>{let t=ce(e.uid,"config")?.legend?.maxHeight??Number.NaN;Number.isFinite(t)||(r.position===Te.Top||r.position===Te.Bottom?t=Z.legendProperties.maxHeight:t=e instanceof gi?e.chartContainer.measuredHeight:e.seriesContainer.measuredHeight),r.maxHeight=t,r.invalidateLayout()}),Z.debounceTime)}function Sk(r,e){let{position:t}=e;t===Te.Top||t===Te.Bottom?r.contentAlign=Vt.Center:r.contentAlign="none"}function Lk(r,e){let{legend:t}=r;t.events.on(me.DataItemsValidated,()=>{t.dataItems.length>0&&qC(r,e)})}function Tk(r,e){e===Te.Right||e===Te.Left?r.width=Number.NaN:r.maxWidth=Number.MAX_SAFE_INTEGER}function JC(r,e){let t=vr.pointer;e===!0?(r.itemContainers.template.clickable=!1,r.itemContainers.template.focusable=!1,t=vr.default):(r.itemContainers.template.clickable=!0,r.itemContainers.template.focusable=!0),r.itemContainers.values.forEach(i=>{i.cursorOverStyle=t})}function Ik(r,e){let t=new fx;r.legend=t,yk(t);let i=xk(t);return vk(t),ok(t),Bk(t,r),Ck(t),mk(t),Lk({legend:t,legendTitle:i},_e(e)),Fk(t,r),rk(r,i),ck(t),r.legend.events.on(me.ChildAdded,()=>{let s=ce(r.uid,"options");JC(t,s?.disableTogglingLegendItems)}),{legend:t,legendTitle:i}}function Im(r){let{legendElements:e,seriesConfig:t,webChartLegend:i}=r,{legend:s,legendTitle:a}=e,n=s.baseSprite,o=(n===void 0?!0:Gf(t))&&i?.visible!==!1;if(n&&i&&o){let{position:A=Z.legendProperties.position}=i;Et(s,!0),bk({legendConfig:i,legendTitle:a}),wk(s),_k(r),Sk(s,i),qC(e,_e(t)),s.position=A,Tk(s,A),hk(s,i),JC(s,ce(n.uid,"options")?.disableTogglingLegendItems)}else s.position=Te.Right,s.width=0,Et(s,!1)}function Dk(r){let{chart:e,chartConfig:t,seriesIndex:i,axisList:s=[],queryObject:a,hideLoaderHandle:n,selectionTheme:o,ignoreSmoothRenderingLimit:A}=r,l=t.series.length,{rotated:h}=t,c=t.series[i],{y:d,name:u,id:f,assignToSecondValueAxis:m}=c,g=new Ht;g.id=f,qo(g,n),KA(g,u);let v,B;h!==!0?(v=s[0],B=m===!0&&s[2]?s[2]:s[1]):(v=m===!0&&s[2]?s[2]:s[0],B=s[1]),v!==void 0&&(g.xAxis=v),B!==void 0&&(g.yAxis=B);let w=ur({chart:e}),_=ze(t.series),L=_===xe.BarAndLineSplitByNoAggregation?`${d.toString()}_${Tn({where:c.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:[d].flat()[0];w?g.dataFields.valueX=L:g.dataFields.valueY=L;let k=w?s[1]:s[0];if(k!==void 0){let O=RC(k,w);g.dataFields[O]=Z.xAxisField}g.dataFields.customValue=c?.query?.where;let D=ws(a);ew({series:g,seriesConfig:c,seriesIndex:i,chartSubType:_,colorMatch:t.colorMatch===!0,rendererType:Rh(t.chartRenderer,D?.renderer)}),tw(c,g);let E=Bm({chart:e,lineSeries:g,applyPropertiesToClones:!1});return XC(E,g),qD(g),Zo({element:E,customSelectionTheme:o}),yc({chart:e,element:E,queryObject:a}),_D({chart:e,numberOfChartSeries:l,series:g,seriesType:Q.LineSeries,marker:E,ignoreSmoothRenderingLimit:A}),Tm(g),jo(g),g}function kk(r){let{series:e,seriesIndex:t,chartSubType:i,seriesConfig:s,colorMatch:a,lineColor:n,rendererType:o}=r,A=pi(e),l=!1,h;if(A!==void 0){s.markerVisible!==!1&&s.visible!==!1?e.bulletsContainer.show():e.bulletsContainer.hide();let{markerSymbol:c}=s;c===void 0&&(c=If(),c.color=n),a?c.color=n:c.color??=n;let d=new Set,u;Ih({element:A,markerSymbol:c}),A.clones.each(f=>{if(f.dataItem instanceof za)Ih({element:f,markerSymbol:c}),f.states.getKey(ps.CustomActive)?.reset(),f.states.getKey(ps.CustomInactive)?.reset();else{let m=f.dataItem?.dataContext,g=Fr({seriesConfig:s,dataItem:m,chartSubType:i,colorMatch:a,rendererType:o}),v=So({seriesConfig:s,seriesIndex:t,seriesSymbol:c,element:f,colorMatch:a,rendererSymbol:g});h=v.symbolWithColorInfo,u=v.stylingInfo,io({element:f,stylingInfo:u}),d.add(JSON.stringify(u))}}),l=d.size>1,l||io({element:A,stylingInfo:u})}return l?void 0:h}function Uk(r){let{series:e,seriesConfig:t,chartSubType:i,colorMatch:s,rendererType:a}=r,n;return e.dataItems?.values.every(o=>{let A=!0,l=o.dataContext;return n=Fr({seriesConfig:t,dataItem:l,chartSubType:i,colorMatch:s,rendererType:a}),n!==void 0&&(A=!1),A}),n}function ew(r){let{series:e,seriesIndex:t,seriesConfig:i,chartSubType:s,colorMatch:a,rendererType:n}=r,o=e,A=Uk({series:o,seriesConfig:i,chartSubType:s,colorMatch:a,rendererType:n}),l=So({seriesConfig:i,seriesIndex:t,seriesSymbol:i.lineSymbol??Df(t),element:o,colorMatch:a,rendererSymbol:A});return Et(o,i.visible),l.symbolWithColorInfo}function tw(r,e){r.showArea===!0?r.areaColor!==void 0?(e.fill=BA(r.areaColor),e.fillOpacity=e.fill.alpha===0?0:1):(e.fill=cf(e.stroke.hex,1),e.fillOpacity=Z.lineSeries.areaOpacity):e.fillOpacity=0}function iw(r){let{series:e,seriesIndexMapper:t,seriesSymbolMapForEvent:i,seriesIndex:s,colorMatch:a,rendererType:n}=r,o=r.seriesConfig,A=ce(e.chart.uid,"config"),l=A?.series.length??0,h=ze(A?.series);Et(e,o.visible);let c=ew({series:e,seriesConfig:o,seriesIndex:s,chartSubType:h,colorMatch:a,rendererType:n}),d=kk({series:e,seriesIndex:s,seriesConfig:o,chartSubType:h,colorMatch:a,lineColor:c.color,rendererType:n});i.set(t.get(o.id)??s,{lineSymbol:c,markerSymbol:d}),tw(o,e),i.size===l&&(ar({data:i,htmlContainer:e.chart.htmlContainer,chartId:e.chart.id,colorMatchApplied:su(e.chart)}),e.chart.feedLegend())}function Qk(r){let{seriesConfig:e,lineSeries:t,isRotated:i}=r;e.lineSmoothed===!0?t.smoothing=i?vf.MonotoneY:vf.MonotoneX:t.smoothing=Z.lineSeries.lineSmoothedKind}function TB(r,e){let{connectLines:t,temporalBinning:i}=e,s=i?.nullPolicy;r.connect=t!==!1&&s!==Bf.Null}function Ek(r){let{seriesConfig:e,series:t,axes:i,rotationChanged:s,seriesIndex:a,fieldList:n,stackedType:o,queryObject:A,options:l,utilsStrings:h}=r,{visible:c,name:d}=e,u=i[1].valueFormat,f=ce(t.chart.uid,"config"),m=ur({config:f}),g=ze(f?.series);t.id=e.id,Et(t,c);let v=d,B=t.dataFields?.customValue??"";(g===xe.BarAndLineSplitBy||g===xe.BarAndLineSplitByNoAggregation)&&(v=Uh({queryObject:A,fieldName:ma(B),fieldValue:v})??v),KA(t,v),TB(t,e),Cm({series:t,seriesConfig:e,rotationChanged:s,stackedType:o,isRotated:m}),TB(t,e),ru({styleCallback:iw,callbackProps:r,series:t,seriesConfig:e,onReadyEvent:!0}),Qk({seriesConfig:e,lineSeries:t,isRotated:m}),GC({series:t,seriesConfig:e,fieldList:n,queryObject:A,seriesIndex:a,setTimeBinningInfoWhenNotProvided:l?.setTimeBinningInfoWhenNotProvided,utilsStrings:h,tooltipFormatter:l?.tooltipFormatter}),JD({series:t,seriesType:Q.LineSeries,stackedType:o,dataLabelsConfig:e.dataLabels,yAxisValueFormat:u,customDataLabelFormatter:l?.dataLabelFormatter})}function ou(r,e){let t=r.series.values.find(a=>a.id===`${e}_${kt.Top}`),i=r.series.values.find(a=>a.id===`${e}_${kt.Median}`),s=r.series.values.find(a=>a.id===`${e}_${kt.Bottom}`);return{topStepLineSeries:t,medianStepLineSeries:i,bottomStepLineSeries:s}}function xc(r,e){return r.series.values.find(t=>t.id===`${e}_${kt.Outliers}`)}function Dm(r,e){return(r??Z.boxPlot.boxPlotOutliersVisibility)&&e!==!1}function Rk(r){let{chart:e,axisList:t=[],chartConfig:i,seriesIndex:s,hideLoaderHandle:a,selectionTheme:n,queryObject:o}=r,A=Us(i),l=i.series[s],[h,c]=t,d=new Li;return d.hoverable=!0,qo(d,a),A||(Zo({element:d.columns.template,customSelectionTheme:n}),yc({chart:e,element:d.columns.template,queryObject:o})),d.id=l.id,h!==void 0&&(d.xAxis=h),c!==void 0&&(d.yAxis=c),d.simplifiedProcessing=!0,d.columns.template.applyOnClones=!0,d.riseFromOpenState.reset(),d.riseFromPreviousState.reset(),d.dropFromOpenState.reset(),d.dropFromPreviousState.reset(),KA(d,l.name),jo(d),d}function qp(r){let{axisList:e=[],chartConfig:t,seriesIndex:i,type:s,hideLoaderHandle:a,selectionTheme:n}=r,o=t.series[i],[A,l]=e,h=new Ks;return h.hoverable=!0,qo(h,a),h.id=`${o.id}_${s}`,A!==void 0&&(h.xAxis=A),l!==void 0&&(h.yAxis=l),h.noRisers=!0,h.simplifiedProcessing=!0,Zo({element:h.segments.template,customSelectionTheme:n}),h.hiddenInLegend=!0,jo(h),h}function Mk(r){let{chart:e,axisList:t=[],chartConfig:i,hideLoaderHandle:s,seriesIndex:a,selectionTheme:n,queryObject:o}=r,A=i.series[a],l=Us(i),[h,c]=t,d=new Ht;wr(d.uid,{isBoxPlotOutliersSeries:!0}),qo(d,s),d.id=`${A.id}_${kt.Outliers}`,h!==void 0&&(d.xAxis=h),c!==void 0&&(d.yAxis=c),d.simplifiedProcessing=!0,d.hiddenInLegend=!0,d.strokeOpacity=0;let u=Bm({chart:e,lineSeries:d});return l||(Zo({element:u,customSelectionTheme:n}),yc({chart:e,element:u,queryObject:o})),jo(d),d}function GA(r){let{chartConfig:e,seriesConfig:t,meanLineSeries:i,candleStickSeries:s,topStepLineSeries:a,medianStepLineSeries:n,bottomStepLineSeries:o,outliersSeries:A,creation:l=!1,rotationChanged:h,outliersVisibilityChanged:c,standardizeValuesVisibilityChanged:d}=r,{x:u,y:f}=t,m=l||h===!0||d===!0,g=m||c===!0,v=m,B=m;if(e!==void 0){let{showOutliers:w,standardizeValues:_,showMean:L}=e,k=ur({config:e});if(i instanceof Ht&&B){let S=ze(e.series),P=t?.query?.where,Y=Ot({y:S===xe.BoxPlotMultiFieldsAndCategory?f:void 0,chartSubType:S,splitBy:P,showOutliers:w,standardizeValues:SA(S)?_:!1,key:rt.Average});k?(i.dataFields.valueX=Y,i.dataFields.categoryY=u):(i.dataFields.valueY=Y,i.dataFields.categoryX=u),i.dataFields.customValue=P}let D=Oh(e),E=ze(D.series),O=L===!0?void 0:t?.query?.where,I={y:E===xe.BoxPlotMultiFieldsAndCategory?f:void 0,chartSubType:E,splitBy:O,showOutliers:w,standardizeValues:SA(E)?_:!1};if(g){if(s instanceof Li){let S=Ot({...I,key:rt.Min}),P=Ot({...I,key:rt.FirstQuartile}),Y=Ot({...I,key:rt.Max}),G=Ot({...I,key:rt.ThirdQuartile});k?(s.dataFields.lowValueX=S,s.dataFields.openValueX=P,s.dataFields.highValueX=Y,s.dataFields.valueX=G,s.dataFields.categoryY=u):(s.dataFields.lowValueY=S,s.dataFields.openValueY=P,s.dataFields.highValueY=Y,s.dataFields.valueY=G,s.dataFields.categoryX=u),s.dataFields.customValue=O}if(a instanceof Ks&&n instanceof Ks&&o instanceof Ks){let S=Ot({key:rt.Max,...I}),P=Ot({key:rt.Median,...I}),Y=Ot({key:rt.Min,...I});k?(a.dataFields.valueX=S,n.dataFields.valueX=P,o.dataFields.valueX=Y,a.dataFields.categoryY=u,n.dataFields.categoryY=u,o.dataFields.categoryY=u):(a.dataFields.valueY=S,n.dataFields.valueY=P,o.dataFields.valueY=Y,a.dataFields.categoryX=u,n.dataFields.categoryX=u,o.dataFields.categoryX=u),a.dataFields.customValue=O,o.dataFields.customValue=O,n.dataFields.customValue=O}}if(A instanceof Ht&&v){let S=Ot({...I,key:rt.Outlier});k?(A.dataFields.valueX=S,A.dataFields.categoryY=u):(A.dataFields.valueY=S,A.dataFields.categoryX=u),A.dataFields.customValue=O,A.invalidateRawData()}let M=i?.chart??s?.chart;M!==void 0&&(g||B)&&M.invalidateRawData()}}function Pk(r){let{chart:e,axisList:t=[],chartConfig:i,hideLoaderHandle:s,seriesIndex:a,selectionTheme:n,queryObject:o}=r,A=i.series[a],[l,h]=t,c=new Ht;wr(c.uid,{isBoxPlotMeanLineSeries:!0}),qo(c,s),c.id=A.id,l!==void 0&&(c.xAxis=l),h!==void 0&&(c.yAxis=h),c.simplifiedProcessing=!0;let d=Bm({chart:e,lineSeries:c});return Zo({element:d,customSelectionTheme:n}),yc({chart:e,element:d,queryObject:o}),jo(c),YD(c),GA({chartConfig:i,seriesConfig:A,meanLineSeries:c,creation:!0}),c}function Ok(r){let{chartConfig:e,seriesIndex:t}=r,i=e.series[t],s=_e([i]),a=[];if(s===Q.BoxPlotSeries){let n=Rk(r),o=qp({...r,type:kt.Top}),A=qp({...r,type:kt.Median}),l=qp({...r,type:kt.Bottom}),h=Mk(r);GD(n),WD(h,n),GA({chartConfig:e,seriesConfig:i,candleStickSeries:n,topStepLineSeries:o,medianStepLineSeries:A,bottomStepLineSeries:l,outliersSeries:h,creation:!0}),a.push(n,o,A,l,h)}else if(s===Q.LineSeries){let n=Pk(r);a.push(n)}return a}function Hk(r){let{candleStickSeries:e,seriesConfig:t,stylingInfo:i,chartSubType:s,colorMatch:a,rendererType:n}=r;if(i!==void 0){let o={...i},A=TC({data:e.chart.data,colorMatch:a,chartSubType:s,rendererType:n});i?.outline!==void 0&&A&&(o.outline.stroke=Lh(Z.boxPlot.boxPlotWhiskersColor));let{topStepLineSeries:l,medianStepLineSeries:h,bottomStepLineSeries:c}=ou(e.chart,e.id);if(l!==void 0&&h!==void 0&&c!==void 0&&o.outline!==void 0){o.outline.strokeWidth=Z.boxPlot.boxPlotLineWidth,Th(l,o.outline),Th(h,o.outline),Th(c,o.outline);let d=t.visible!==!1;Et(l,d),Et(h,d),Et(c,d)}}}function Nk(r){let{candleStickSeries:e,seriesConfig:t,showOutliers:i,seriesSymbol:s}=r;if(s!==void 0){let a=xc(e.chart,e.id);if(a!==void 0){let n=pi(a);if(n!==void 0){let o=Dm(i,t.visible),A={type:je.SMS,style:wl.Circle,color:s.color,size:Z.boxPlot.boxPlotOutliersSize};n.clones.each(l=>{let h=e.dataItems.values.find(c=>(c.categories.categoryX??c.categories.categoryY)===(l.dataItem?.categories.categoryX??l.dataItem?.categories.categoryY))?.column.fill;Ih({element:l,markerSymbol:{...A,color:Nx(h)??A.color},visible:o})})}}}}function $k(r){let{series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,chartSubType:a,colorMatch:n,showMean:o,rendererType:A}=r,l,h,c,d=new Set,u=!1,f=t.fillSymbol??_h(i);if(e.columns.length===0?(c=So({seriesConfig:t,seriesIndex:i,seriesSymbol:f,element:new hh,colorMatch:n,isChartFillSymbol:!0}),l=c.symbolWithColorInfo,h=c.stylingInfo):e.columns.each(m=>{c=So({seriesConfig:t,seriesIndex:i,seriesSymbol:f,element:m,colorMatch:n,isChartFillSymbol:!0,rendererSymbol:o?void 0:Fr({dataItem:m.dataItem?.dataContext,seriesConfig:t,chartSubType:a,colorMatch:n,rendererType:A})}),l=c.symbolWithColorInfo,h=c.stylingInfo,d.add(JSON.stringify(l))}),u=d.size>1,s>1){let m=e.legendDataItem?.marker.children.getIndex(0);m!==void 0?io({element:m,stylingInfo:h}):e.chart.legend.events.once(me.Validated,()=>{io({element:e.legendDataItem?.marker.children.getIndex(0),stylingInfo:h}),e.chart.legend.invalidate()})}return{multipleSymbolsForOneSeries:u,seriesSymbol:l,stylingInfo:h}}function Vk(r){let{series:e,showOutliers:t,colorMatch:i,seriesIndex:s,seriesIndexMapper:a,seriesSymbolMapForEvent:n,seriesConfig:o,rendererType:A,queryObject:l}=r,h=ce(e.chart.uid,"config"),c=Us(h),d=h?.series.length??0,u=ze(h?.series),f=!1,m;if(e instanceof Li&&o.type===Q.BoxPlotSeries){let g=$k({series:e,seriesConfig:o,seriesIndex:s,numberOfSeries:d,chartSubType:u,colorMatch:i,showMean:c,rendererType:A}),{stylingInfo:v}=g;({multipleSymbolsForOneSeries:f,seriesSymbol:m}=g),n.set(a.get(o.id)??s,f?void 0:{fillSymbol:m??o.fillSymbol}),Hk({candleStickSeries:e,seriesConfig:o,colorMatch:i,stylingInfo:v,chartSubType:u,rendererType:A}),Nk({candleStickSeries:e,seriesConfig:o,showOutliers:t,seriesSymbol:m})}else e instanceof Ht&&o.type===Q.LineSeries&&iw({series:e,seriesConfig:o,seriesIndexMapper:a,seriesSymbolMapForEvent:n,seriesIndex:s,colorMatch:i,rendererType:A});n.size===d&&ar({data:n,htmlContainer:e.chart.htmlContainer,chartId:e.chart.id,colorMatchApplied:su(e.chart)})}function Xk(r){let{numberOfSeries:e,chart:t,showMean:i}=r,s=ur({chart:t}),a=s?t.yAxes.getIndex(0)?.renderer:t.xAxes.getIndex(0)?.renderer;if(a!==void 0){let{cellStartLocation:n,cellEndLocation:o}=a,A=n/(i===!0?1:e),l=t.series.values.filter(h=>h instanceof Li);l.forEach((h,c)=>{let d=n+c/l.length*(o-n)+A,u=n+(c+1)/l.length*(o-n)-A,{topStepLineSeries:f,medianStepLineSeries:m,bottomStepLineSeries:g}=ou(t,h.id);f!==void 0&&(f.startLocation=d,f.endLocation=u),m!==void 0&&(m.startLocation=d,m.endLocation=u),g!==void 0&&(g.startLocation=d,g.endLocation=u);let v=xc(t,h.id);if(v!==void 0){let B=(d+u)/2;s?v.dataItems.template.locations.categoryY=B:v.dataItems.template.locations.categoryX=B}})}}function Kk(r){let{outliersSeries:e,chartData:t,dataWasUpdated:i,rotationChanged:s,seriesReordered:a}=r;(s===!0||i===!0||a===!0)&&(e.data=t?.outliers??[])}function Gk(r){let{meanLineSeries:e,chartData:t,rotationChanged:i,sortChanged:s,dataWasUpdated:a,seriesReordered:n}=r;(i===!0||a===!0||s===!0||n===!0)&&(e.data=t?.meanLines??[],e.invalidateData())}function Wk(r){let{chart:e,chartConfig:t,seriesConfig:i,chartData:s,candleStickSeriesId:a,showOutliers:n,dataWasUpdated:o,rotationChanged:A,seriesReordered:l,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c}=r,d=xc(e,a);if(d!==void 0){let u=pi(d);if(u!==void 0){let f=Dm(n,i.visible);u.disabled=!f,Kk({outliersSeries:d,chartData:s,dataWasUpdated:o,rotationChanged:A,seriesReordered:l})}GA({chartConfig:t,seriesConfig:i,outliersVisibilityChanged:h,standardizeValuesVisibilityChanged:c,rotationChanged:A,outliersSeries:d})}}function Yk(r){let{meanLineSeries:e,seriesConfig:t,chartData:i,dataWasUpdated:s,seriesReordered:a,sortChanged:n,rotationChanged:o,chartConfig:A,outliersVisibilityChanged:l,standardizeValuesVisibilityChanged:h}=r;KA(e,t?.name),GA({chartConfig:A,seriesConfig:t,meanLineSeries:e,outliersVisibilityChanged:l,standardizeValuesVisibilityChanged:h,rotationChanged:o}),Gk({meanLineSeries:e,chartData:i,dataWasUpdated:s,seriesReordered:a,sortChanged:n,rotationChanged:o})}function zk(r){let{series:e,chartConfig:t,seriesConfig:i,rotationChanged:s,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n}=r;KA(e,i?.name),e.hiddenInLegend=Us(t),GA({chartConfig:t,seriesConfig:i,candleStickSeries:e,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:s})}function jk(r){let{chart:e,chartConfig:t,seriesConfig:i,candleStickSeriesId:s,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:o}=r,A=i.visible!==!1,{topStepLineSeries:l,medianStepLineSeries:h,bottomStepLineSeries:c}=ou(e,s);l!==void 0&&Et(l,A),h!==void 0&&Et(h,A),c!==void 0&&Et(c,A),GA({chartConfig:t,seriesConfig:i,outliersVisibilityChanged:a,standardizeValuesVisibilityChanged:n,rotationChanged:o,topStepLineSeries:l,medianStepLineSeries:h,bottomStepLineSeries:c})}function Zk(r){let{chart:e,series:t,chartData:i,utilsStrings:s,dataWasUpdated:a,sortChanged:n,seriesReordered:o,fieldList:A,outliersVisibilityChanged:l,showMean:h,seriesConfig:c,showOutliers:d,standardizeValuesVisibilityChanged:u,rotationChanged:f,options:m,queryObject:g}=r,{tooltipFormatter:v}=m??{};Xk({numberOfSeries:r.numberOfSeries,chart:e,showMean:h});let B=ce(e.uid,"config");if(B!==void 0){if(t instanceof Li&&c.type===Q.BoxPlotSeries){let{id:w}=t;zk({series:t,chartConfig:B,seriesConfig:c,rotationChanged:f,outliersVisibilityChanged:l,standardizeValuesVisibilityChanged:u}),jk({chart:e,chartConfig:B,seriesConfig:c,candleStickSeriesId:w,outliersVisibilityChanged:l,standardizeValuesVisibilityChanged:u,rotationChanged:f}),Wk({chart:e,chartConfig:B,seriesConfig:c,chartData:i,showOutliers:d,candleStickSeriesId:w,dataWasUpdated:a,rotationChanged:f,seriesReordered:o,outliersVisibilityChanged:l,standardizeValuesVisibilityChanged:u})}else t instanceof Ht&&c.type===Q.LineSeries&&Yk({chartConfig:B,chartData:i,meanLineSeries:t,seriesConfig:c,dataWasUpdated:a,seriesReordered:o,sortChanged:n,rotationChanged:f,outliersVisibilityChanged:l,standardizeValuesVisibilityChanged:u});ru({styleCallback:Vk,callbackProps:r,series:t,seriesConfig:c,onReadyEvent:!0}),ZD({series:t,seriesConfig:c,fieldList:A,tooltipFormatter:v,utilsStrings:s,queryObject:g})}}function qk(r){let e=r.series.getIndex(0);if(e!==void 0){let t=!1;e.slices.each(i=>{i.isActive&&(t=!0),Rr({element:i,selected:!1,backToDefaultState:!0})}),t&&r.feedLegend()}}function Jk(r,e=!0){let t;r.series.each((i,s)=>{if(!e||i.visible){t=eu(i,s);let a=[];if(t===Q.BarSeries)a=i.columns?.values;else if(t===Q.LineSeries)a=pi(i)?.clones?.values;else if(t===Q.BoxPlotSeries){if(i instanceof Li)a.push(...i.columns.values);else if(i instanceof Ks)a.push(...i.segments.values);else if(i instanceof Ht){let n=pi(i)?.clones?.values;n!==void 0&&a.push(...n)}}a!==void 0&&a.forEach(n=>{Rr({element:n,selected:!1,backToDefaultState:!0})})}})}function WA(r){let{chart:e,selectionSource:t,clearOnlyVisibleSeries:i,disposeStyleAndSelection:s}=r,a=ce(e.uid,"currentSelectionDataItems");s!==!1&&MC(e,"updateSelectionCallbackDisposer"),ot(e.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),or(e)&&(e instanceof Rt?Jk(e,i??!0):e instanceof gi&&qk(e)),a&&_o({data:{selectionSource:t??li.ClearSelection},htmlContainer:e.htmlContainer})}function eU(r){Yf(),Rf(r.htmlContainer),WA({chart:r})}function tU(r){let{chart:e,chartType:t,showMean:i}=r;return e.series.values.filter(s=>t!==Q.BoxPlotSeries||!i&&s instanceof Li||i&&Ki(s.uid,"isBoxPlotMeanLineSeries")).every(s=>Ki(s.uid,"isSelectionApplied")===!0)}function iU(r){r.series.each(e=>wr(e.uid,{isSelectionApplied:void 0}))}function sw(r,e){let t=ce(r.uid,"actionMode");if((t===et.MonoSelection||t===et.None)&&e.length>1)WA({chart:r});else{let i=r instanceof gi;e.forEach(s=>{Rr({element:s,useNativeState:i,selected:!0})})}}function sU(r){let{chart:e,chartConfig:t,series:i,options:s,elementsToApplySelectionTo:a,selectionDataItems:n,layerOidField:o,xAxisField:A,yAxisField:l,queryObject:h}=r,c=_e(t.series),d=ze(t.series),u=pa(t),f=[],m=[],g=[],v=ya(t.series),B=i instanceof la?i.dataFields?.customValue??"":"";return a.forEach(w=>{if(!(w instanceof za)){let _=w.dataItem?.dataContext;if(_!==void 0&&(c===Q.BoxPlotSeries&&_[Z.boxPlot.boxPlotOutlierId]!==!0||d===xe.BarAndLineMultiFields)&&(_=hn({dataContext:_,yAxisField:l,yList:v,xAxisField:A,splitBy:B,chartType:c,chartSubType:d,showOutliers:u,isFeatureCollectionLayer:ga(h)})),tu({elementDataContext:_,options:s,selectionDataItems:n,layerOidField:o,xAxisField:A,yAxisField:l,chartType:c,splitBy:B,chartSubType:d,showOutliers:u}))if(f.push(w),w.dataItem!==void 0&&m.push(w.dataItem.index),w?.dataItem instanceof yo&&_!==void 0)g.push(_);else{let L=new Set;c===Q.PieSeries&&Ln(_)?(FA({groupOfSlicesDataContext:_})??[]).forEach(k=>{n.forEach(D=>{vm({layerOidField:o,sliceDataContext:k,selectionDataContext:D,xAxisField:A})&&L.add(k)})}):L.add(_),Array.from(L)?.forEach(k=>{let D=hn({dataContext:k,yAxisField:l,yList:v,xAxisField:A,splitBy:B,chartType:c,chartSubType:d,showOutliers:u,isFeatureCollectionLayer:ga(h)});D!==void 0&&g.push(D)})}else Rr({element:w,useNativeState:e instanceof gi,selected:!1})}}),sw(e,f),{selectedIndexes:m,newSelectionDataItems:g}}function rU(r){let{chart:e,selectionIndexes:t,queryObject:i}=r,s=[],a=[],n=ce(e.uid,"config"),o=pa(n),A=ya(n?.series??[]),l=ze(n?.series);return e.series.each((h,c)=>{if(n&&h.visible){let d=n.series[0].x,u=ao(h),f=h instanceof la?h.dataFields?.customValue??"":"",m=eu(h,c),g=t.get(c);if(g!==void 0){let v;if(h instanceof Xi?v=h.columns:h instanceof rr?v=h.slices:v=pi(h)?.clones,v!==void 0){let{indexesToSelect:B}=g;v.each((w,_)=>{if(w&&(B===void 0||B.includes(_))){let L;m===Q.BoxPlotSeries&&w.dataItem instanceof yo?L=w.dataItem.dataContext:w.dataItem instanceof za||(L=hn({dataContext:w.dataItem?.dataContext,yList:A,yAxisField:u,xAxisField:d,splitBy:f,chartType:m,chartSubType:l,showOutliers:o,isFeatureCollectionLayer:ga(i)})),L!==void 0&&s.push(L),a.push(w)}else Rr({element:w,useNativeState:e instanceof gi,selected:!1})})}}}}),sw(e,a),s}function aU(r){let{series:e,chartType:t,showMean:i}=r,s;switch(t){case Q.ComboLineAndBarSeries:if(e instanceof Xi)s=e.columns.values;else if(e instanceof Ht){let a=pi(e);a!==void 0&&(s=a.clones.values)}break;case Q.BarSeries:e instanceof Xi&&(s=e.columns.values);break;case Q.LineSeries:if(e instanceof Ht){let a=pi(e);a!==void 0&&(s=a.clones.values)}break;case Q.PieSeries:s=e.slices.values;break;case Q.BoxPlotSeries:if(e.chart instanceof Rt){if(e instanceof Li&&i!==!0){s=[...e.columns.values];let a=xc(e.chart,e.id);if(a!==void 0&&a.visible){let n=pi(a);n!==void 0&&s.push(...n.clones.values)}}else if(i===!0&&e instanceof Ht&&Ki(e.uid,"isBoxPlotMeanLineSeries")){let a=pi(e);a!==void 0&&(s=a.clones.values)}}break}return s}function nU(r){let{series:e,seriesIndex:t,queryObject:i,options:s,dataWasUpdated:a,sortChanged:n,groupOfSlicesWasUpdated:o,xAxisField:A,yAxisField:l,rotationChanged:h}=r,{filterBySelection:c,selectionData:d,returnSelectionIndexes:u,returnSelectionOIDs:f}=s??{},{selectionIndexes:m}=d??{},{chart:g}=e,v=ce(g.uid,"config"),B=pa(v),w=Us(v),_=_e(v?.series);if(c!==!0&&v!==void 0){let L=aU({series:e,chartType:_,showMean:w}),k=ze(v?.series),D=ws(i),E=To(D).idField,O=ce(g.uid,"currentSelectionDataItems"),I=!1,M=!1,S,P=!1;if(L?.[0]!==void 0){if(s?.viewExtentUpdated!==!0){S=s?.selectionData?.selectionItems??O;let Y=ce(g.uid,"currentSelectionIndexes");P=sg({itemsA:S,itemsB:O,isPieFromFields:k===xe.PieFromFields,x:v.series[0].x});let G=m?.keys.length!==Y?.keys.length||!Ya(m,Y);I=n===!0||a===!0||o===!0||h===!0||S!==void 0&&P;let ie=!0;if(m!==void 0&&m.size>0){let{indexesToSelect:J}=m.get(t??0)??{};ie=J!==void 0&&J[0]===void 0}M=a===!0||o===!0||h===!0||!ie&&G}if(I&&S!==void 0&&S.length>0){let{selectedIndexes:Y,newSelectionDataItems:G}=sU({chart:g,chartConfig:v,options:s,series:e,elementsToApplySelectionTo:L,selectionDataItems:S,layerOidField:E,xAxisField:A,yAxisField:l}),ie=ce(g.uid,"computedSelectionDataItems")??[];if(ie.push(...G),v.series.length>1&&k!==xe.BarAndLineNoAggregation&&k!==xe.BarAndLineSplitByNoAggregation&&(ie=ag({data:ie,x:v.series[0].x,splitByField:ma(v.series[0].query?.where)})),ot(g.uid,{computedSelectionDataItems:ie}),u===!0){let J=Array.from(new Set(Y)),ne=ce(g.uid,"computedSelectionIndexes");ne===void 0&&(ne=new Map),J.length===L.length?ne.set(t??0,{}):ne.set(t??0,{indexesToSelect:J}),ot(g.uid,{computedSelectionIndexes:ne})}}else if(m!==void 0&&M)S=rU({chart:g,selectionIndexes:m,queryObject:i});else{let Y=S===void 0||S.length===0,G=e instanceof la?e.dataFields?.customValue??"":"",ie=J=>{let ne=J.dataItem?.dataContext;return ne!==void 0&&_===Q.BoxPlotSeries&&ne[Z.boxPlot.boxPlotOutlierId]!==!0&&(ne=hn({dataContext:ne,yAxisField:l,yList:ya(v.series),xAxisField:A,splitBy:G,chartType:_,chartSubType:k,showOutliers:B,isFeatureCollectionLayer:ga(i)})),tu({elementDataContext:ne,options:s,selectionDataItems:S??O??[],layerOidField:E,xAxisField:A,yAxisField:l,chartType:_,splitBy:G,chartSubType:k,showOutliers:B})};L.forEach(J=>{let ne=J.isActive||ie(J);Rr({element:J,selected:ne,useNativeState:g instanceof gi,backToDefaultState:Y})})}}if(wr(e.uid,{isSelectionApplied:!0}),tU({chart:g,chartType:_,showMean:w})&&(iU(g),P||M)){let Y=ce(g.uid,"computedSelectionDataItems")??S;Y=Array.from(new Set(Y?.map(ie=>JSON.stringify(ie)))).map(ie=>JSON.parse(ie)),S!==void 0&&ot(g.uid,{currentSelectionDataItems:Y}),d?.selectionOIDs!==void 0&&ot(g.uid,{currentSelectionOIDs:d.selectionOIDs});let G;if(u===!0&&(G=ce(g.uid,"computedSelectionIndexes")??m,G!==void 0&&ot(g.uid,{currentSelectionIndexes:G})),Y===void 0||Y.length===0)WA({chart:g,selectionSource:li.ProgrammaticSelection});else{let ie={selectionItems:Y,selectionSource:li.ProgrammaticSelection};u===!0&&(ie.selectionIndexes=G),f!==!1&&(ie.selectionOIDs=d?.selectionOIDs??ce(g.uid,"currentSelectionOIDs")),_o({data:ie,htmlContainer:g.htmlContainer})}ot(g.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}function oU(r){let{chart:e,chartConfig:t,rotationChanged:i}=r;for(let s=0;s<e.series.length;s+=1){let a=e.series.getIndex(s);if(a){let n=au(a,t);if(n){let o=_e([n]);if(o===Q.BoxPlotSeries&&(a=e.series.values.find(A=>A.id===n.id)),a!==void 0){let A=n.x,l=o===Q.BoxPlotSeries?n.y.toString():ao(a);TD({callbackProps:{...r,series:a,seriesIndex:s,xAxisField:A,yAxisField:l},series:a,seriesConfig:n,onReadyEvent:i===!0})}}}}}async function bc(r){let{chart:e,listSelectedElements:t,selectionSource:i,queryObject:s}=r,a=ce(e.uid,"options"),n=ce(e.uid,"config"),o=Cs(s);if(n)if(t.length===0)WA({chart:e,selectionSource:i,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1});else try{MC(e,"updateSelectionCallbackDisposer");let A=pa(n),l=[],h=[],c=[],d=new Map,{xAxisField:u}=t[0]??{},f=_e(n?.series),m=ze(n?.series),g=ya(n?.series??[]),v=_r(s).find(w=>w.name===u)?.type;if(t.forEach(w=>{let{elementDataContext:_,yAxisField:L,splitBy:k}=w,D=hn({dataContext:_,yAxisField:L,yList:g,xAxisField:u,splitBy:k,chartType:f,chartSubType:m,showOutliers:A,isFeatureCollectionLayer:ga(s)});D!==void 0&&h.push(D);let{seriesIndex:E,elementIndex:O}=w;if(O!==void 0){let I=d.get(E)?.indexesToSelect??[];I.push(O),d.set(E,{indexesToSelect:Array.from(new Set(I))})}if(!o&&_!==void 0){let I=_[Co.uniqueIdsName]!==void 0?[_[Co.uniqueIdsName]].flat():[];if(I.length>0)c.push(...I);else if(a?.returnSelectionOIDs!==!1){let M=rg({dataContext:_,options:a,xAxisField:u,yAxisField:L??"",splitBy:k,xAxisFieldType:v,chartConfig:n,queryObject:s});l.push(M)}}}),!o&&a?.returnSelectionOIDs!==!1&&l.length>0){let w={...ce(e.uid,"queryConfig")};delete w.groupByFieldsForStatistics,delete w.orderByFields,delete w.outStatistics;let _=await LC({whereList:l,queryObject:s,queryConfig:w});if(l.length===t.length)c=_;else for(let L=0;L<_.length;L+=1)c.push(_[L])}ot(e.uid,{currentSelectionDataItems:h,currentSelectionOIDs:c,currentSelectionIndexes:d});let B={selectionItems:h,selectionSource:i};a?.returnSelectionIndexes===!0&&(B.selectionIndexes=d),a?.returnSelectionOIDs!==!1&&(B.selectionOIDs=c),_o({data:B,htmlContainer:e.htmlContainer})}catch(A){ot(e.uid,{pendingSelectionQueries:!1});let{httpStatus:l}=A instanceof fa?A.details.details:A.details??{};if(l===429)eU(e);else throw A}ot(e.uid,{pendingSelectionQueries:!1})}function AU(r){let{axis:e}=r,t=e.chart;return{axis:e,chart:t}}async function lU(r,e){let t=r.target,{axis:i,chart:s}=AU(t),a=[],{seriesDataItems:n}=r.target.dataItem;Object.keys(n).forEach(c=>{if(Object.hasOwn(n,c)){let d=n[c];for(let u of d)if(u instanceof gh)a.push(u.column);else{let f=u.sprites.find(m=>!(m instanceof yl));f!==void 0&&a.push(f)}}});let o=nu(r,s),A=i instanceof fi||i instanceof Ji,l=[],h=ce(s.uid,"config");if(h){let c=h.series[0].x??"";s.series.each((d,u)=>{let f;if(d instanceof Xi?f=d.columns:f=pi(d)?.clones,d.visible){let m=ao(d),g=d.dataFields?.customValue??"";f?.each((v,B)=>{let w=a.includes(v);Rr({element:v,selected:w,multiSelect:o,isDateOrCategoryAxis:A})&&l.push({element:v,elementDataContext:v.dataItem?.dataContext,yAxisField:m,xAxisField:c,splitBy:g,seriesIndex:u,elementIndex:B,chartConfig:h})})}}),await bc({chart:s,listSelectedElements:l,selectionSource:li.SelectionByClick,queryObject:e})}}function cU(r,e){if(or(r.renderer.labels.template)){r.renderer.labels.template.events.on(me.Hit,async i=>{r.renderer.labels.template.events.isEnabled(me.Hit)&&await lU(i,e)});let t=ce(r.chart.uid,"filterBySelection")===!0?vr.default:vr.pointer;sm(r,t)}}function Yd(r,e){if(or(r?.renderer?.labels?.template)&&(r instanceof Ji||r instanceof fi))if(e)r.renderer.labels.template.events.disableType(me.Hit),sm(r,vr.default);else{r.renderer.labels.template.events.enableType(me.Hit);let t=ce(r.chart.uid,"filterBySelection")===!0?vr.default:vr.pointer;sm(r,t)}}var ei={Guides:"guides",Ticks:"ticks",GaugeFirstAndLastGuides:"firstAndLast",GaugeTicksWithLabels:"gaugeTicksWithLabels"};function Yo(r){let{chart:e,label:t,labelType:i}=r,s=Number.NaN;switch(i){case At.GuideLabel:!(e instanceof Ds)&&e instanceof Rt&&(t.rotation===90||t.rotation===270?s=e.seriesContainer.measuredHeight:s=e.seriesContainer.measuredWidth);break;case At.XAxisTitle:e instanceof Rt&&(s=e.seriesContainer.measuredWidth);break;case At.YAxisTitle:e instanceof Rt&&(s=e.seriesContainer.measuredHeight);break;case At.ChartTitle:case At.ChartSubTitle:case At.ChartFooter:s=e.measuredWidth-20;break}s>0&&(t.maxWidth=s,e.invalidateLabels(),e instanceof Rt&&(e.xAxes.getIndex(0)?.invalidateLabels(),e.xAxes.getIndex(1)?.invalidateLabels(),e.yAxes.getIndex(0)?.invalidateLabels(),e.yAxes.getIndex(1)?.invalidateLabels()))}function gc(r){let{chart:e,labelType:t}=r;Yo(r);let i=t===At.YAxisTitle?1:0;e.events.on(me.Validated,ls(()=>Yo(r),Z.debounceTime),i)}function zd(r,e){r.events.on(me.Validated,ls(()=>{e.visible=r.measuredWidth!==0},Z.debounceTime))}function hU(r,e){r.chart instanceof Ds||(e.adapter.add("dx",t=>{let i=t;return(e.rotation===90||e.rotation===270)&&(i=e.bbox.height,e.dataItem.value!==e.dataItem.endValue&&(i/=2)),i}),e.padding(0,10,0,10))}function dU(r,e){let t=r.renderer instanceof bl?new fh:new dh;return t.disabled=!0,t.axis=r,iu(t),qa(t.uid,{isGuide:e}),gc({chart:r.chart,label:t,labelType:At.GuideLabel}),hU(r,t),t}function uU(r){let{label:e,labelConfig:t,guideType:i}=r,s=e.axis.renderer instanceof Xs,a;e instanceof fh||(s?i===je.SFS?a=Z.verticalSurfaceGuideLabels:a=Z.verticalLineGuideLabels:i===je.SFS?a=Z.horizontalSurfaceGuideLabels:a=Z.horizontalLineGuideLabels);let n={...t};n.content.rightToLeft=e.axis.rtl,fr({label:e,labelConfig:n,defaults:a}),e.axis.invalidateLabels()}function fU(r,e,t){let i=t.chart;r.axisFill.tooltip=new gf,r.axisFill.interactionsEnabled=!0,r.axisFill.tooltipPosition=Z.guideTooltipPosition,r.axisFill.tooltip.label.wrap=!0,r.axisFill.tooltip.adapter.add("maxWidth",()=>Math.min(Z.tooltipWidth,i.seriesContainer.maxWidth)),r.axisFill.tooltip.boundingContainer=i.chartAndLegendContainer,r.axisFill.adapter.add("tooltipHTML",(s,a)=>{let n=s,{dataItem:o,axis:A}=a;if(!(A.renderer instanceof bl)){let l=Gi(A.uid,"guideTooltipFormatter");if(l!==void 0){let h="",c;o instanceof uh?(h=o.value,c=o.endValue):o instanceof mo?(h=o.category,c=o.endCategory):o instanceof xl&&(h=o.date,c=o.endDate),n=l({guideName:o.id??"",start:h,end:c,guideIndex:e})}}return n}),r.axisFill.tooltip.events.on(me.Shown,s=>{let a=ce(r.axisFill.axis.chart.uid,"config");if(a!==void 0){let n=ce(r.axisFill.axis.chart.uid,"isRotated"),o=vc(r.axisFill.axis.renderer,n)?0:1,A=a.axes?.[o]?.guides,{tooltipReverseColor:l}=A?.[e]??{};VC(s.target,l)}})}function gU(r,e){return t=>{let{guideName:i,start:s,end:a,guideIndex:n}=t,{chart:o}=r,A="";if(o!==void 0){let l=ce(o.uid,"config"),h=ce(o.uid,"isRotated"),c=vc(r.renderer,h)?0:1,d=l?.axes?.[c]?.guides,u=s,f=a;if(r instanceof fi){let B=new uf,w;if(o!==void 0){let _=ce(r.chart.uid,"formatLocale");B=Ea({type:Q.DateAxisFormat,iLocale:o.language.locale,formatLocale:_}),w=l?.axes?.[0]?.valueFormat?.intlOptions}u=B.format(s,w),a!==void 0&&(f=B.format(a,w))}else if(r instanceof zt&&!(s instanceof Date)&&!(a instanceof Date)){let{start:B,end:w}=km(r,d?.[n]);Number.isFinite(B)&&(u=B),Number.isFinite(w)&&(f=w);let _=Gi(r.uid,"numberFormatter")??(L=>new df().format(L));u=_(u),f!==void 0&&(f=_(f))}else r instanceof Ji&&(u=s,f=a);let m=u.toString(),g=f?.toString()??"";!Mt(g)&&m!==g?A=OA(e.guideTooltipLabel,{guideStart:m,guideEnd:g}):A=m;let v=Gs(o.rtl);A=`${i}${v} ${A}`}return A}}function pU(r){let{axis:e,guideTooltipFormatter:t,utilsStrings:i}=r;Ni(e.uid,{guideTooltipFormatter:t??gU(e,i)})}function mU(r){let e=bo.Value;return r instanceof fi?e=bo.Date:r instanceof Ji&&(e=bo.Category),e}function IB(r){let{inputValue:e,axisType:t,axisMin:i,axisMax:s}=r,a=e;if(e!=null)switch(t){case bo.Date:a=e instanceof Date?e:new Date(e);break;case bo.Category:a=e.toString();break;case bo.Value:if(typeof e!="number"){let n=e.toString().trim(),o=Sl(n);o!==void 0?i!==void 0&&s!==void 0?a=o/100*(s-i)+i:a=null:a=Number.parseFloat(n)}break}return a}function km(r,e){let{start:t,end:i}=e??{},s;if(e!==void 0&&t!==void 0&&t!==null){let a=mU(r),n=r instanceof zt?r.min:void 0,o=r instanceof zt?r.max:void 0,A=IB({inputValue:t,axisType:a,axisMin:n,axisMax:o}),l=e.style?.type===je.SFS&&i!==null&&i!==void 0?IB({inputValue:i,axisType:a,axisMin:n,axisMax:o}):A;s={isValidGuide:A!=null&&l!=null,start:A,end:l}}else s={isValidGuide:!1,start:void 0,end:void 0};return s}function yU(r){let{axis:e,tickOrGuide:t,numberOfElementsToBeDeleted:i}=r,s=[],a=e.axisRanges.length-1,n=i;for(;n>0&&a>=0;){let o=e.axisRanges.getIndex(a);o!==void 0&&(Ti(o.label?.uid,"isGuide")??!1)===!0&&t===ei.Guides&&(s.push(o),n-=1),a-=1}for(let o=0;o<s.length;o+=1)e.axisRanges.removeValue(s[o])}function tr(r,e){return r.axisRanges?.values?.filter(t=>{let i=Ti(t.label?.uid,"isGuide")??!1,s=Ti(t.label?.uid,"isGaugeAxisLabel")??!1,a=!1;switch(e){case ei.Ticks:a=i===!1;break;case ei.Guides:a=i===!0;break;case ei.GaugeTicksWithLabels:a=s===!0&&t.value!==void 0;break;case ei.GaugeFirstAndLastGuides:a=i===!0&&(t.id===Z.gaugeFirstLabelId||t.id===Z.gaugeLastLabelId);break}return a})??[]}function xU(r,e){let t=r.axisRanges.length;{let s=r.axisRanges.values.findIndex(a=>a.id===Z.gaugeFirstLabelId);s!==-1&&(t=s)}let i;return r instanceof Ji?i=new mo:r instanceof fi?i=new xl:i=new uh,r.axisRanges.insertIndex(t,i),i.label=dU(r,e),i.axisFill.fillOpacity=1,i.axisFill.disabled=!0,i.grid.strokeOpacity=1,i}function bU(r,e){let t=xU(r,!0);fU(t,e,r),t.tick!==void 0&&(t.tick.disabled=!0),t.label!==void 0&&(t.label.inside=!0),t.grid!==void 0&&(t.grid.disabled=!0)}function vU(r,e){let{start:t,end:i}=e,s=ce(r.uid,"config"),a=Ph(s),n=t!==null?t:void 0;n=r.data.find(A=>A[Z.originalCategoryValue]===t)?.[a]??n;let o=i!==null?i:void 0;if(o!==void 0)for(let A=r.data.length-1;A>=0;A-=1){let l=r.data[A];if(l[Z.originalCategoryValue]===i){o=l[a];break}}return{modifiedStart:n,modifiedEnd:o}}function BU(r,e){let{start:t,end:i}=e;if(t!==void 0){let{chart:s}=r?.component??{},a;if(r instanceof mo&&s instanceof Rt&&ce(s.uid,"isNonAggregatedChart")===!0){let{modifiedStart:n,modifiedEnd:o}=vU(s,e);a={isValidGuide:!0,start:n??t,end:o??i}}else a=km(r.axisFill.axis,e);a.isValidGuide&&(r instanceof mo?(r.category=`${a.start?.toString()}`,r.endCategory=`${a.end?.toString()}`):r instanceof xl?(r.date=a.start,r.endDate=a.end):(r.value=a.start,r.endValue=a.end))}}function CU(r,e){r.axisFill.above=e??Z.guideAbove,r.grid.above=e??Z.guideAbove}function wU(r,e){let{axisFill:t,label:i}=r;if(e!==void 0){if(r.id=e.name,r.visible=e.visible!==void 0?e.visible:r.visible,BU(r,e),e.style.type===je.SLS?Tl({element:t,fillSymbol:{type:je.SFS,color:e.style?.color,outline:e.style},visible:e.visible}):e.style.type===je.SFS&&Tl({element:t,fillSymbol:e.style,visible:e.visible}),CU(r,e.above),e.label!==void 0){let a={type:Q.Text,visible:e.visible,content:e.label};uU({label:i,labelConfig:a,guideType:e.style.type})}let s=r.component?.chart;s!==void 0&&Yo({chart:s,label:i,labelType:At.GuideLabel})}else t.disabled=!0,i.disabled=!0}function _U(r,e){let t=tr(r,ei.Guides).length,i=e?.length??t;for(let s=t;s<i;s+=1)bU(r,s)}function FU(r){let{axis:e,guides:t,guideTooltipFormatter:i,utilsStrings:s}=r;if(t!==void 0){for(let a=0;a<t.length;a+=1){let n=tr(e,ei.Guides)[a];n!==void 0&&wU(n,t[a])}pU({axis:e,guideTooltipFormatter:i,utilsStrings:s})}}function SU(r,e){let t=tr(r,ei.Guides).length,i=e?.length??0,s=t-i;yU({axis:r,numberOfElementsToBeDeleted:s,tickOrGuide:ei.Guides})}function LU(r){let{axis:e,guides:t}=r;_U(e,t),FU(r),SU(e,t)}function TU(r){let{axis:e,labels:t,restoreLabelsVisibility:i=!0}=r;(t??e.renderer.labels.values).forEach(s=>{s.x instanceof ml?s.x.value:s.x,i&&Et(s,!0)})}function rw(r){let e=r.renderer.labels.values.filter(t=>Ti(t.uid,"isGuide")!==!0&&t.measuredWidth>0).length;return r.pixelWidth/e}function IU(r){let{target:e}=r;if((ce(e.chart.uid,"config")?.horizontalAxisLabelsBehavior??$t.Rotate)===$t.Wrap){let t=Number.MAX_SAFE_INTEGER;e.renderer.labels.each(s=>{Ti(s.uid,"isGuide")!==!0&&s.measuredWidth>0&&(t=Math.min(t,s.bbox.width))});let i=e instanceof fi?e.pixelWidth/Z.maxNumberOfXAxisLabelsInWrapModeForDateAxis:e.pixelWidth/Z.maxNumberOfXAxisLabelsInWrapMode;e.renderer.minGridDistance=Math.max(t+1,i)}}function DU(r){let{axis:e,labelsConfig:t,horizontalAxisLabelsBehavior:i,isSecondValueAxis:s,tickSpacing:a}=r,n=e.renderer.minGridDistance;if(typeof a=="number"&&Number.isFinite(a))n=a;else if(e.renderer instanceof bl)n=Z.gauge.gaugeMinGridDistance;else if(e instanceof zt)n=e.renderer instanceof Xs?Z.xAxisMinGridDistance:Z.yAxisMinGridDistance;else if(e.renderer instanceof Xs)if(s===!0)n=Z.secondRotatedValueAxisMinGridDistance;else if(i===void 0||i===$t.Rotate){let o=t.content.font?.size??Z.generalFontSize,A=e instanceof Ji?Z.categoryAxisLabelPadding:Z.axisLabelPadding;n=o*A}else if(i===$t.Wrap){let o=ls(IU,Z.debounceTime);Ni(e.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:o}),e.events.on(me.SizeChanged,o),e.dispatchImmediately(me.SizeChanged)}else i===$t.Stagger?n=Z.staggerMinGridDistance:n=e instanceof Ji?Z.xCategoryAxisMinGridDistance:Z.xAxisMinGridDistance;else n=e instanceof Ji?Z.yCategoryAxisMinGridDistance:Z.yAxisMinGridDistance;e.renderer.minGridDistance=n}function kU(r){let e=r.renderer.labels.template;or(e)&&(e.adapter.add("rotation",(t,i)=>Ti(i.uid,"isGuide")!==!0?Gi(r.uid,"labelsSymbol")?.angle??t:t),e.adapter.add("verticalCenter",(t,i)=>Ti(i.uid,"isGuide")!==!0?Gi(r.uid,"labelsSymbol")?.verticalCenter??t:t),e.adapter.add("horizontalCenter",(t,i)=>Ti(i.uid,"isGuide")!==!0?Gi(r.uid,"labelsSymbol")?.horizontalCenter??t:t),e.adapter.add("dy",(t,i)=>{let s=Z.axisLabel.dy??t??0;return i.dataItem?.tick?.length>Z.axisTickLength?s=t??0:s=Number(Ti(i.uid,"isGuide")!==!0?Gi(r.uid,"labelsSymbol")?.yOffset??s:s),s}))}function UU(r){let{target:e}=r;if(e.chart!==void 0){let t=ce(e.chart.uid,"config")?.axes?.[0].labels;if((t?.visible??!0)&&t!==void 0&&e.renderer.labels.length>1){let i=0;e.renderer.labels.each(n=>{if(Ti(n.uid,"isGuide")!==!0&&n.measuredWidth>0){let o=n.bbox.width;o>i&&(i=o)}});let s=Gi(e.uid,"labelsSymbol")?.angle??0,a=rw(e)>=i+5;if(!a&&s===0||a&&s===Z.rotatedAxisLabel.rotation){let n=a?Ll(t.content,e.rtl,Z.axisLabel):Ll({type:je.TS},e.rtl,Z.rotatedAxisLabel);Ni(e.uid,{labelsSymbol:n}),e.renderer.invalidateLabels()}}}}function QU(r,e=1){let{target:t}=r,i=rw(t);Number.isFinite(i)&&(t.renderer.labels.template.maxWidth=Math.min(i*e,t.renderer.minGridDistance))}function EU(r){let{target:e}=r;if(ce(e.chart.uid,"config")?.axes?.[0].labels?.visible!==!1){let t=0;e.dataItems.each(i=>{let{label:s,itemIndex:a}=i;Ti(s.uid,"isGuide")!==!0&&s.currentText!==void 0&&s.measuredWidth>0&&a%2===0&&s.bbox.height>t&&(t=s.bbox.height)}),e.dataItems.each(i=>{let{tick:s,label:a,itemIndex:n}=i;if(Ti(a.uid,"isGuide")!==!0&&a.currentText!==void 0&&a.measuredWidth>0){let o=n%2===1;s.length=o?t+5:Z.axisTickLength,s.dataItem.label.dy=Z.axisLabel.dy+(o?t:0)}}),t!==void 0&&(e.renderer.labels.template.paddingBottom=t+5),e.validate()}}function RU(r){let{chart:e}=r;r.renderer.labels.template.paddingLeft=Number.NaN,r.renderer.labels.template.paddingRight=Number.NaN;let t=Gi(r.uid,"debouncedAxisLabelRotationCallback");if(t!==void 0&&(r.events.off(me.Validated,t),Ni(r.uid,{debouncedAxisLabelRotationCallback:void 0})),e!==void 0){let i=ce(e.uid,"config")?.axes?.[0].labels;if(i!==void 0){let s=Ll(i.content,e.rtl,Z.axisLabel),a=r.renderer.labels.template;a.rotation=s.angle,a.verticalCenter=s.verticalCenter,a.horizontalCenter=s.horizontalCenter,Number.isFinite(s.yOffset)&&(a.dy=s.yOffset)}Ni(r.uid,{labelsSymbol:void 0})}}function aw(r){r.renderer.labels.template.wrap=!1,r.renderer.labels.template.textAlign="start"}function MU(r){aw(r),r.renderer.labels.template.paddingLeft=Number.NaN,r.renderer.labels.template.paddingRight=Number.NaN;let e=Gi(r.uid,"debouncedAxisLabelWrapCallback");e!==void 0&&(r.events.off(me.DataRangeChanged,e),Ni(r.uid,{debouncedAxisLabelWrapCallback:void 0}))}function PU(r){aw(r);let e=Gi(r.uid,"debouncedUpdateMinGridDistanceForWrapBehavior");e!==void 0&&(r.events.off(me.SizeChanged,e),Ni(r.uid,{debouncedUpdateMinGridDistanceForWrapBehavior:void 0}))}function OU(r){let e=Gi(r.uid,"debouncedAxisLabelStaggerCallback");e!==void 0&&(r.events.off(me.DataRangeChanged,e),Ni(r.uid,{debouncedAxisLabelStaggerCallback:void 0})),r.renderer.ticks.each(t=>{t.length=Z.axisTickLength,t.dataItem?.label&&(t.dataItem.label.dy=Z.axisLabel.dy??0)})}function HU(r){RU(r),MU(r),OU(r)}function DB(r){kU(r),r.renderer.labels.template.paddingLeft=0,r.renderer.labels.template.paddingRight=0,r.renderer.labels.template.maxWidth=Number.NaN;let e=ls(UU,Z.debounceTime,{leading:!0});Ni(r.uid,{debouncedAxisLabelRotationCallback:e}),r.events.on(me.Validated,e),r.dispatchImmediately(me.Validated)}function kB(r,e=1){r.renderer.labels.template.wrap=!0,r.renderer.labels.template.paddingLeft=.5,r.renderer.labels.template.paddingRight=.5,r.renderer.labels.template.textAlign="middle";let t=ls(i=>QU(i,e),Z.debounceTime);Ni(r.uid,{debouncedAxisLabelWrapCallback:t}),r.events.on(me.DataRangeChanged,t)}function NU(r){r.renderer.labels.template.maxWidth=Z.yAxisLabelMaxWidth,r.renderer.labels.template.wrap=!0,r.renderer.labels.template.textAlign="end"}function $U(r){let e=ls(EU,Z.debounceTime);Ni(r.uid,{debouncedAxisLabelStaggerCallback:e}),r.events.on(me.DataRangeChanged,e)}function VU(r){let{axis:e,horizontalAxisLabelsBehavior:t,verticalAxisLabelsBehavior:i,labelsConfig:s,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}=r;if(e.renderer instanceof Xs&&a?.[0]!==!1){if(HU(e),n!==!0)switch(t){case $t.Hide:break;case $t.Stagger:$U(e),kB(e,1.5);break;case $t.Wrap:kB(e);break;case $t.Rotate:DB(e);break;default:s.content.angle!==null&&s.content.angle===void 0&&DB(e);break}}else e.renderer instanceof pA&&(i!==$t.Hide?NU(e):PU(e))}function XU(r){let{axis:e,axisConfig:t,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:s,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}=r,o=e.renderer.labels.template;o.axis=e;let{labels:A}=t,l=e.renderer instanceof Xs&&o.rotation===Z.rotatedAxisLabel.rotation,h=A,c;l?(h.content.angle=void 0,h.content.horizontalAlignment=void 0,h.content.verticalAlignment=void 0,h.content.yoffset=void 0,c=Z.rotatedAxisLabel):e.renderer instanceof Xs&&(i===$t.Stagger||i===$t.Wrap)&&(c={wrap:!0,dy:Z.axisLabel.dy}),e.renderer instanceof pA&&s!==$t.Hide&&(c={wrap:!0}),fr({label:o,labelConfig:h,defaults:c}),e.renderer.labels.template.paddingTop=e.renderer instanceof Xs?0:Z.axisLabel.dy,o.align="none",o.valign="none",VU({axis:e,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:s,labelsConfig:A,axisLabelsBehaviorChanged:a,isSecondValueAxis:n}),o.axis.invalidateLabels()}function Um(r){return(r??Qf())===Qt.Side}function nw(r,e){let t,i,s=am(r,"bullets"),a=am(r,"columns"),n=Um(e);return n&&s!==void 0?(t=s,i=a):n||(t=a,i=s),{labelToRender:t,labelToHide:i}}function KU(r,e=!0){r.hideOversized=e}function GU(r,e){let t,i,s=Ra(Z.dataLabelInitialize);qa(s.uid,{isDataLabel:!0}),r.bullets.push(s);let a=Ra(Z.dataLabelInitialize,r.columns.template);return qa(a.uid,{isDataLabel:!0}),nm(a,r),nm(s,r),r.events.on(me.Validated,ls(()=>{vA(a)&&a.clones.each(n=>{vA(n)&&n.validate()})},Z.debounceTime)),a.html="{valueX}",s.html="{valueX}",QC(s),Um(e)?(t=s,i=a):(t=a,i=s),DC(Q.BarSeries,s),kC(Q.BarSeries,t),{newLabelToRender:t,newLabelToHide:i}}function WU(r){let{series:e,stackedType:t,isRotated:i,hideOversizedStackedLabels:s,hideOversizedSideBySideLabels:a}=r,{labelToRender:n,labelToHide:o}=nw(e,t);if(n===void 0){let{newLabelToRender:h,newLabelToHide:c}=GU(e,t);n=h,o=c}let A=Z.dataLabel,l=!0;Um(t)?(A=i===!0?Z.dataLabelRotated:Z.dataLabel,l=a===!0):(A=i===!0?Z.dataLabelStackedRotated:Z.dataLabelStackedNonRotated,l=s!==!1),KU(n,l),o!==void 0&&(o.visible=!1,o.disabled=!0),n.html="{valueX}",EC({...r,dataLabel:n,labelDefaults:A,defaultDataLabelFormatter:UC})}function YU(r){let e=r.tooltip;e!==void 0&&!(r instanceof fi)&&(e.label.adapter.add("html",(t,i)=>{let s=t??"";return r instanceof zt?s=xC(r,i.properties?.text??t??""):r instanceof Ji&&(s=bC({axis:r,defaultOutput:t??"",dataItem:e.dataItem})),mi(s)}),e.label.html=Z.htmlEmptyContent)}function om(r){let{axis:e,start:t,end:i}=r;e.zoom({start:t??0,end:i??1})}function UB(r){r!==void 0&&(r.start=0,r.end=1)}function Au(r){r!==void 0&&(r.xAxes!==void 0&&r.xAxes.each(e=>om({axis:e})),r.yAxes!==void 0&&r.yAxes.each(e=>om({axis:e})),UB(r.scrollbarX),UB(r.scrollbarY),Et(r.zoomOutButton,!1))}function vc(r,e){return r instanceof Xs&&e!==!0||r instanceof pA&&e===!0}function zU(r){or(r.labels.template)&&(r.labels.template.events.on(me.Over,e=>{let{axisLabelOveredOpacity:t}=Z;e.target.fillOpacity=(e.target.fillOpacity??1)*t}),r.labels.template.events.on(me.Out,e=>{let{axisLabelOveredOpacity:t}=Z;e.target.fillOpacity=(e.target.fillOpacity??.5)/t}))}function jU(r){let{axis:e,valueFormat:t,axisRenderer:i,queryObject:s}=r;i.grid.template.applyOnClones=!0,i.ticks.template.applyOnClones=!0,i.labels.template.applyOnClones=!0,i.hoverable=!0,i.line.strokeOpacity=1,i.grid.template.strokeOpacity=1,i.ticks.template.strokeOpacity=1,iu(i.labels.template,Z.axisLabel),i.ticks.template.disabled=!1,i.labels.template.disabled=!0,YU(e),yA(t)&&(zU(i),cU(e,s)),zd(e.chart,e.title),gc({chart:e.chart,label:e.title,labelType:e.renderer instanceof Xs?At.XAxisTitle:At.YAxisTitle}),e.renderer instanceof Xs&&e.events.on(me.Validated,ls(()=>{TU({axis:e,restoreLabelsVisibility:!0})},Z.debounceTime))}function ZU(r){let e=r.target,t=ce(e.chart.uid,"isRotated"),i=[];if(e instanceof zt){if(e.renderer instanceof bl)i.push({isXAxis:!0,minimum:e.min,maximum:e.max});else if(e.renderer instanceof(t!==!0?pA:Xs)){e.maxZoomFactor=1;let s=r.target,a=s.chart,n=t!==!0?a.xAxes.getIndex(0):a.yAxes.getIndex(0),o=a.yAxes.getIndex(1)??a.xAxes.getIndex(1);i=[{isXAxis:!1,minimum:s.min,maximum:s.max},{isXAxis:!0,minimum:n instanceof zt?n.min:void 0,maximum:n instanceof zt?n.max:void 0}],o instanceof zt&&i.push({isXAxis:!1,isSecondValueAxis:!0,minimum:o.min,maximum:o.max})}i.length>0&&i.every(s=>!Number.isNaN(s.minimum)&&!Number.isNaN(s.maximum))&&Mf(i,e.chart.htmlContainer)}}function qU(r){r.events.on(me.Validated,ls(ZU,Z.debounceTime))}function JU(r){let{axis:e,isNonAggregatedChart:t}=r,i,s,a,n=e.dataItems.values,o=e.axisRanges.values;if(e instanceof Ji)for(let A=0;A<o.length;A+=1){i=!1,s=!1,a=!1;let l=o[A],{category:h,endCategory:c,axisFill:d,grid:u,label:f}=l;if(l instanceof mo&&l.visible)for(let m=0;m<n.length;m+=1){let g;t===!0?g=ua({value:n[m].category,dataContext:n[m].dataContext}):g=n[m].category.toString(),h===g&&(s=!0),c===g&&(a=!0)}s&&a&&(i=!0),Et(d,i),Et(u,i),Et(f,i)}}function QB(r){let{axis:e,axisMinimum:t,axisMaximum:i}=r,s;if(e instanceof zt&&i!==void 0&&t!==void 0){let a=e.axisRanges.values,n=ce(e.chart.uid,"config"),o=ce(e.chart.uid,"isRotated"),A=vc(e.renderer,o)?0:1,l=n?.axes?.[A]?.guides;for(let h=0;h<a.length;h+=1){let c=a[h],{value:d,endValue:u,axisFill:f,grid:m,label:g}=c;if(Ti(g?.uid,"isGuide")===!0){if(s=c.visible,s&&c instanceof uh){let{start:v,end:B}=km(e,l?.[h]),w=Math.min(d,u,v??d,B??u),_=Math.max(d,u,v??d,B??u);w<t&&_<t||w>i&&_>i?s=!1:(c.value=w<t?t:w,c.endValue=_>i?i:_)}Et(f,s),Et(m,s),Et(g,s)}}}}function eQ(r){r instanceof zt?(r.adapter.add("min",e=>(QB({axis:r,axisMinimum:e,axisMaximum:r.max}),e)),r.adapter.add("max",e=>(QB({axis:r,axisMinimum:r.min,axisMaximum:e}),e))):r instanceof Ji&&r.events.on(me.Validated,()=>{let e=ce(r.chart.uid,"isNonAggregatedChart");JU({axis:r,isNonAggregatedChart:e})})}function uc(r){let{axes:e,isSecondValueAxis:t=!1,isXAxis:i,valueFormat:s,chartType:a,queryObject:n}=r,o;if(bh({isXAxis:i,chartType:a,valueFormat:s})&&!t)o=e.push(new Ji);else if(Vr(s))o=e.push(new fi);else if(ks(s)){o=e.push(new zt);let A=ce(o.chart.uid,"formatLocale");o.numberFormatter=Ea({type:Q.NumberAxisFormat,iLocale:o.chart.language.locale,formatLocale:A}),o.numberFormatter.numberFormat="#",t?(o.renderer.opposite=!0,o.renderer.grid.template.disabled=!0):qU(o)}o!==void 0&&(jI(o),jU({axis:o,valueFormat:s,axisRenderer:o.renderer,queryObject:n}),eQ(o))}function ow(r){let{chart:e,axesConfig:t,isRotated:i,chartType:s,queryObject:a}=r;ot(e.uid,{isRotated:i===!0});let n=i===!0?t?.[1]:t?.[0],o=i===!0?t?.[0]:t?.[1],A=n?.valueFormat,l=o?.valueFormat;A!==void 0&&l!==void 0&&(e.xAxes.clear(),e.yAxes.clear(),uc({chartType:s,isXAxis:i!==!0,axes:e.xAxes,valueFormat:A,queryObject:a}),uc({chartType:s,isXAxis:i===!0,axes:e.yAxes,valueFormat:l,queryObject:a}),t?.[2]!==void 0&&uc({chartType:s,isXAxis:i===!0,axes:i===!0?e.xAxes:e.yAxes,valueFormat:t[2].valueFormat,isSecondValueAxis:!0,queryObject:a}))}function tQ(r){let{axis:e,isLogarithmic:t,axisConfigIndex:i}=r,s=ce(e.chart.uid,"config"),a=t===!0&&$h({chartConfig:s,chartData:e.chart.data,axisConfigIndex:i});(e instanceof fi||e instanceof zt)&&(e.logarithmic=a,e.treatZeroAs=a?Z.treatZeroValueAs:0)}function iQ(r,e){let{minimum:t,maximum:i,isLogarithmic:s}=e??{},{buffer:a}=e??{};return a??=Z.buffer,r instanceof zt&&!(r instanceof fi)&&!a&&(s!==!0||i!=null||t!=null)}function sQ(r,e){let t=!1;return r instanceof zt&&!(r instanceof fi)&&(t=iQ(r,e),r.strictMinMax=t),t}function rQ(r){let{axis:e,axisConfig:t,chartType:i,isSecondValueAxis:s}=r,a=t?.minimum,n=t?.maximum,o=t?.isLogarithmic??!1,A=a,l=n,{chart:h}=e,c=ce(h.uid,"isRotated"),d=ce(h.uid,"config"),u=0;if(h instanceof Rt&&d!==void 0){let f=Ys(d),m=vc(e.renderer,c),g=FD(h),v=Nh({chartConfig:d,isSecondValueAxis:s,seriesIds:g}),B=ng({chartConfig:d,chartData:h.data,filteredSeriesIds:v});if(f===Qt.Stacked100)A=Number.NaN,l=Number.NaN;else{let{minX:w,maxX:_,minY:L,maxY:k}=B,[D,E]=m?[w??Number.NaN,_??Number.NaN]:[L,k];u=D,i===Q.BarSeries||i===Q.ComboLineAndBarSeries||i===Q.LineSeries&&f===Qt.Stacked&&!m?(A=Math.min(D,0),l=Math.max(E,0)):(A=D,l=E)}A=a??A,l=n??l}return o&&A!==void 0&&A!==null&&A<=0&&(A=iD(u)),{min:A,max:l}}function Aw(r){let{axis:e,axisConfig:t,chartType:i,isSecondValueAxis:s}=r,{minimum:a,maximum:n,isLogarithmic:o}=t??{};if(e instanceof zt||e instanceof fi)if(sQ(e,t)){let A=a,l=n;if(vC({minimumFromConfig:a,maximumFromConfig:n,isLogarithmic:o})){let h=rQ({axis:e,axisConfig:t,chartType:i,isSecondValueAxis:s});A=h.min,l=h.max}A=A??Number.NaN,l=l??Number.NaN,Number.isNaN(A)||Number.isNaN(l)||A<l?(e.min=A,e.max=l):(e.min=Number.NaN,e.max=Number.NaN),i===Q.GaugeSeries&&e.validate()}else e.min=Number.NaN,e.max=Number.NaN}function aQ(r){let{axis:e,timeIntervalInfo:t,dateBaseInterval:i}=r;if(e instanceof fi){let{size:s,unit:a}=t??{};if(a||({size:s,unit:a}=i??{}),s&&a!==void 0){let n;switch(a){case Nt.Second:n="second";break;case Nt.Minute:n="minute";break;case Nt.Hour:n="hour";break;case Nt.Day:n="day";break;case Nt.Week:n="week";break;case Nt.Month:n="month";break;case Nt.Year:n="year";break}n!==void 0&&(e.baseInterval={timeUnit:n,count:s})}}}function nQ(r,e){r instanceof zt&&(r.renderer.baseGrid.disabled=e!==!0)}function oQ(r,e){r.cursorTooltipEnabled=e===!0}function AQ(r,e){let t=r.renderer instanceof Xs;r.events.once(me.Validated,()=>{let i=r.renderer instanceof pA?Z.yAxisTitleLabel:Z.xAxisTitleLabel;t&&(i={...i,dy:i.dy??0}),fr({label:r.title,labelConfig:e,defaults:i}),Yo({chart:r.chart,label:r.title,labelType:r.renderer instanceof Xs?At.XAxisTitle:At.YAxisTitle})})}function lQ(r,e){let t=!0;return e===Q.BoxPlotSeries&&(t=r instanceof Li),t}function lw(r){let e=ls(()=>{let{chart:t}=r,i=ce(t.uid,"config");if(t!==void 0&&i!==void 0){let s=_e(i?.series);if(lQ(r,s)){let a=ce(t.uid,"isRotated"),n=Ki(r.uid,"stackedType");n===Qt.Stacked100&&!r.visible&&Et(r,!1);let o=t.xAxes.getIndex(0),A=t.yAxes.getIndex(0),l=t.yAxes.getIndex(1),h=a===!0?1:0,c=i.axes?.[h],d=a===!0?0:1,u=i.axes?.[d],f=i.axes?.[2];[{axis:o,axisConfig:c,updateLabels:!1},{axis:A,axisConfig:u,updateLabels:!0},{axis:l,axisConfig:f,updateLabels:!0,isSecondValueAxis:!0}].forEach(m=>{let{axis:g,axisConfig:v,updateLabels:B,isSecondValueAxis:w}=m;g!==void 0&&(Aw({axis:g,chartType:s,axisConfig:v,isSecondValueAxis:w}),B!==void 0&&g.events.once(me.Validated,()=>{let{labelToRender:_}=nw(r,n);_&&(_.html=a===!0?"{valueX}":"{valueY}")}))})}}},Z.debounceTime);r.events.once(me.Validated,e)}function cQ(r,e){if(r instanceof zt){let{integerOnlyValues:t,valueFormat:i}=e,s=lg(i)?i.intlOptions.maximumFractionDigits:void 0;r.maxPrecision=t===!0||s===0?0:Number.NaN}}function Gd(r){let{axis:e,axisConfig:t,axisConfigIndex:i,timeIntervalInfo:s,chartType:a,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:A,guideTooltipFormatter:l,stackedType:h,axisValueFormatter:c,isSecondValueAxis:d,isRotated:u,isTimeOnlyField:f,utilsStrings:m,errorStrings:g}=r,{visible:v,isLogarithmic:B,title:w,grid:_,lineSymbol:L,labels:k,guides:D,valueFormat:E,displayZeroLine:O,displayCursorTooltip:I,tickSpacing:M,dateBaseInterval:S}=t;aQ({axis:e,timeIntervalInfo:s,dateBaseInterval:S}),Fo({element:e.renderer.grid.template,lineSymbol:_,visible:v}),Fo({element:e.renderer.line,lineSymbol:{color:[...Z.color],...L??Fl()},visible:v}),Fo({element:e.renderer.ticks.template,lineSymbol:L,visible:v}),XU({axis:e,axisConfig:t,horizontalAxisLabelsBehavior:n,verticalAxisLabelsBehavior:o,axisLabelsBehaviorChanged:A,isSecondValueAxis:d}),cQ(e,t),DU({axis:e,labelsConfig:k,horizontalAxisLabelsBehavior:n,isSecondValueAxis:d,tickSpacing:M}),tD({axis:e,isXAxis:vc(e.renderer,u),chartType:a,labelsTextSymbol:t.labels.content,formatOptions:E,overridePercentMultiplication:h===Qt.Stacked100,axisValueFormatter:c,isTimeOnlyField:f,errorStrings:g}),Aw({axis:e,axisConfig:t,chartType:a,isSecondValueAxis:d}),tQ({axis:e,isLogarithmic:B,axisConfigIndex:i}),AQ(e,w),oQ(e,I),d!==!0&&(LU({axis:e,guides:D,guideTooltipFormatter:l,utilsStrings:m}),nQ(e,O))}function hQ(r){let{chart:e,rotationChanged:t,isRotated:i,dualAxisChanged:s,timeIntervalInfoWasReset:a,timeIntervalInfo:n,guideTooltipFormatter:o,xAxisLabelFormatter:A,yAxisLabelFormatter:l,secondaryYAxisLabelFormatter:h,utilsStrings:c,errorStrings:d,queryObject:u}=r,{axisLabelsBehaviorChanged:f}=r,m=ce(e.uid,"config"),g=m.axes,{horizontalAxisLabelsBehavior:v,verticalAxisLabelsBehavior:B}=m,w=_e(m.series),_=Ys(m),L=ce(e.uid,"fieldList")?.some(K=>K.name===m.series[0].x&&K.type===Cl.TimeOnly)??!1,k=i===!0?1:0,D=i===!0?0:1,E=g?.[k],O=g?.[D],I=e.xAxes.getIndex(0);cw({chart:e,dualAxisChanged:s,rotationChanged:t,timeIntervalInfoWasReset:a,axisLabelsBehaviorChanged:f})&&(ow({chart:e,axesConfig:g,isRotated:i,chartType:w,queryObject:u}),f=[!0,!0]),I=e.xAxes.getIndex(0);let M=e.yAxes.getIndex(0),S=e.xAxes.getIndex(1)??e.yAxes.getIndex(1),P=I?.start,Y=I?.end,G=M?.start,ie=M?.end,J=S?.start,ne=S?.end,z={timeIntervalInfo:n,chartType:w,horizontalAxisLabelsBehavior:v,verticalAxisLabelsBehavior:B,axisLabelsBehaviorChanged:f,guideTooltipFormatter:o,stackedType:_,isRotated:i,utilsStrings:c,errorStrings:d};I!==void 0&&E!==void 0&&Gd({...z,axis:I,axisConfig:E,axisConfigIndex:k,axisValueFormatter:k===0?A:l,isTimeOnlyField:L}),M!==void 0&&O!==void 0&&Gd({...z,axis:M,axisConfig:O,axisConfigIndex:D,axisValueFormatter:D===1?l:A,isTimeOnlyField:L}),S!==void 0&&g?.[2]!==void 0&&Gd({...z,axis:S,axisConfig:g[2],axisConfigIndex:2,axisValueFormatter:h,isSecondValueAxis:!0,isTimeOnlyField:L}),t===!0&&[{axis:I,start:P,end:Y},{axis:M,start:G,end:ie},{axis:S,start:J,end:ne}].forEach(K=>{let{axis:ge,start:he,end:re}=K;ge!==void 0&&ge.events.once(me.Validated,()=>{om({axis:ge,start:he,end:re})})}),I!==void 0&&I.ghostLabel.setPropertyValue("disabled",!0),M!==void 0&&M.ghostLabel.setPropertyValue("disabled",!0),S!==void 0&&S.ghostLabel.setPropertyValue("disabled",!0)}function cw(r){let{chart:e,dualAxisChanged:t,rotationChanged:i,timeIntervalInfoWasReset:s,axisLabelsBehaviorChanged:a}=r,n=ce(e.uid,"config"),{rotated:o,series:A}=n,l=n.axes,h=_e(A),c=o===!0?1:0,d=o===!0?0:1,u=l?.[c]?.valueFormat,f=l?.[d]?.valueFormat,m=e.xAxes.getIndex(0),g=e.yAxes.getIndex(0),v=m===void 0||i||u!==void 0&&im({axis:m,valueFormat:u,chartType:h}),B=g===void 0||i||f!==void 0&&im({axis:g,valueFormat:f,chartType:h});return t===!0||i===!0||s===!0||a?.[0]||a?.[1]||v||B}function dQ(r){ow(r)}function uQ(r){let{chart:e,chartConfig:t,rotationChanged:i,axisLabelsBehaviorChanged:s,isRotated:a,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:A,guideTooltipFormatter:l,xAxisLabelFormatter:h,yAxisLabelFormatter:c,secondaryYAxisLabelFormatter:d,utilsStrings:u,errorStrings:f,queryObject:m}=r,g=Ys(t);hQ({chart:e,rotationChanged:i,axisLabelsBehaviorChanged:s,isRotated:a,dualAxisChanged:n,timeIntervalInfoWasReset:o,timeIntervalInfo:A,guideTooltipFormatter:l,xAxisLabelFormatter:h,yAxisLabelFormatter:c,secondaryYAxisLabelFormatter:d,utilsStrings:u,errorStrings:f,queryObject:m});let v=a===!0?e.yAxes.getIndex(0):e.xAxes.getIndex(0);if(v!==void 0){v instanceof Ji&&(v.dataFields.category=Ph(t));let _=v.renderer,L=_.grid.template;L.location=0,_.cellStartLocation=.1,_.cellEndLocation=.9;let k=t.orderOptions?.data&&"orderBy"in t.orderOptions.data&&t.orderOptions.data.orderBy===vl.Descending,D=a===!0;k&&v instanceof fi&&(D=!D),_.inversed=D}let B=a===!0?e.xAxes.getIndex(0):e.yAxes.getIndex(0),w=a===!0?e.xAxes.getIndex(1):e.yAxes.getIndex(1);g===Qt.Stacked100?(B instanceof zt&&(B.calculateTotals=!0),w instanceof zt&&(w.calculateTotals=!0)):(B instanceof zt&&(B.calculateTotals=!1),w instanceof zt&&(w.calculateTotals=!1))}function pc(r){let{value:e,axisMin:t,axisMax:i}=r,s=Number.NaN,a=i-t;return a!==0&&(s=(e-t)/a),s}function Am(r){return r!=null&&r!==0}function hw(r){let{minimum:e,maximum:t,labelsIncrement:i,minimumValueConversion:s,maximumValueConversion:a}=r,n=e??We.gauge.axisMinimum,o=t??We.gauge.axisMaximum;n=Of(n,s),o=Of(o,a);let A=Am(i),l=Am(i)?i:Math.abs(o-n)/We.gauge.numberOfLabelIntervals,h=A?Math.round(Math.abs(o-n)/l):We.gauge.numberOfLabelIntervals;if(A)if(h>We.gauge.maximumNumberOfLabelIntervals)l=Math.abs(o-n),h=1;else{let c=n+h*l;c<o?(h+=1,o=n+h*l):c>o&&(o=c)}return{min:n,max:o,labelsIncrement:l,numberOfIntervals:h}}function dw(r){let{axisConfig:e,axisMin:t,axisMax:i}=r;typeof t=="number"&&typeof i=="number"&&i-t!==0&&e.guides?.forEach(s=>{let{start:a,end:n}=s;typeof a=="number"&&(s.start=pc({value:a,axisMin:t,axisMax:i})),typeof n=="number"&&(s.end=pc({value:n,axisMin:t,axisMax:i}))})}function fQ(r){let{featureIndex:e,chartData:t,chartConfig:i}=r,{minimumFromField:s,maximumFromField:a}=i?.axes?.[0]??{},n,o;if(e>=0&&e<t.length){let A=t[e];typeof s=="string"&&!Mt(s)&&Number.isFinite(A[s])&&(n=A[s]),typeof a=="string"&&!Mt(a)&&Number.isFinite(A[a])&&(o=A[a])}return{minimumFromData:n,maximumFromData:o}}function gQ(r){let{featureIndex:e,chartData:t,x:i}=r,s=-1;if(e>=0&&e<t.length){let a=t[e];i!==void 0&&!Mt(i)&&Number.isFinite(a[i])&&(s=a[i])}return s}async function uw(r){let{featureIndex:e=0,chartData:t,queryConfig:i,chartConfig:s,queryObject:a}=r,{axes:n,series:o}=s,A=Hh(s),{minimum:l,maximum:h}=n?.[0]??{},{x:c}=o?.[0]??{},d=We.gauge,u,f;A?{minimumFromData:u,maximumFromData:f}=fQ({featureIndex:e,chartData:t,chartConfig:s}):i!==void 0&&({minimumFromData:u,maximumFromData:f}=await Eb({queryObject:a,chartConfig:s,queryConfig:i}));let m=u??l??d.axisMinimum,g=f??h??d.axisMaximum,v=gQ({chartData:t,featureIndex:e,x:c});return{minimum:m,maximum:g,dataValue:v}}function pQ(r){let{oldConfig:e,axisMax:t,min:i,max:s,labelsIncrement:a,numberOfIntervals:n,valueFormat:o,minimumFromField:A}=r,l=Bo(o),h=!0;if(e!==void 0){let{minimum:c,minimumFromField:d,labelsIncrement:u,valueFormat:f}=e.axes[0],m=f?.intlOptions?.style!==o?.intlOptions?.style,g=Am(u)?u!==a:n!==We.gauge.numberOfLabelIntervals;h=m||i!==c||A!==d||!l&&s!==t||g}return h}var Zi={InnerLabel:0,InnerLabelSecondary:1,AxisLabels:2,FirstAndLastLabels:3};function eo(r,e){let t;switch(e){case Zi.InnerLabel:t="gaugeAutoResizeInnerLabelFirstDisposer";break;case Zi.InnerLabelSecondary:t="gaugeAutoResizeInnerLabelSecondDisposer";break;case Zi.AxisLabels:t="gaugeAutoResizeAxisLabelsDisposer";break;case Zi.FirstAndLastLabels:t="gaugeAutoResizeFirstAndLastLabelsDisposer";break}if(t!==void 0){let i=ce(r.uid,t);i!==void 0&&(i.dispose(),i=void 0,ot(r.uid,{[t]:void 0}))}}function mQ(r){let{chart:e,labelList:t,scaleToAdjust:i,fontSize:s,type:a,axisConfig:n}=r,o=Number.NaN,A=Number.NaN,l=i;if(a===Zi.InnerLabel){let c=t[0],d=n?.innerLabel?.content?.verticalAlignment??Tt.Middle,u=c.dy??0,f=Math.round(e.chartContainer.measuredHeight-e.radarContainer.pixelY-u),m=c.bbox.height*i,g=0;switch(d){case Tt.Bottom:g=m;break;case Tt.Top:g=-m;break;case Tt.Middle:case Tt.Baseline:g=m*.5;break}g>f&&(l=i*(f/g)),o=Z.gauge.innerLabelAutoMinFontSize,A=Z.gauge.innerLabelAutoMaxFontSize}else o=Z.gauge.axisLabelAutoMinFontSize,A=Z.gauge.axisLabelAutoMaxFontSize;let h=s*l;return h<o?l*=o/h:h>A&&(l*=A/h),l}function Qm(r){let{chart:e,type:t,labelList:i,currentScale:s,currentFontSize:a,axisConfig:n}=r,o=Number.NaN,A=Number.NaN;if(t===Zi.InnerLabel){let l=typeof e.innerRadius=="number"?e.innerRadius:e.innerRadius.value;A=(e.xAxes.getIndex(0)?.measuredWidth!==0?e.xAxes.getIndex(0)?.measuredWidth??1:1)*l}else A=e.xAxes.getIndex(0)?.measuredHeight??1;if(A>1){let l=t===Zi.InnerLabel?i[0]?.measuredWidth??0:i.find(h=>h.measuredWidth>0&&h.measuredHeight>0)?.measuredHeight??0;if(l>0){let h=l/A;if(h>0){let{axisLabelToInnerChartRatio:c,innerLabelToInnerChartRatio:d}=Z.gauge,u=t===Zi.InnerLabel?d:c;o=s*(u/h),o=mQ({chart:e,labelList:i,axisConfig:n,scaleToAdjust:o,fontSize:a,type:t}),o=Number(o.toFixed(2))}}}return Number.isFinite(o)||(o=s),o}function yQ(r){return r?.labels.content.font?.size===void 0||r?.innerLabel?.visible!==!1&&r?.innerLabel?.content?.font?.size===void 0}function lu(r){return r.some(e=>Ml(e)&&e.value!==void 0)}function xQ(r){let{chart:e,axisConfig:t,axis:i}=r;if(t.labels.content.font?.size===void 0&&t.onlyShowFirstAndLastLabels!==!0){eo(e,Zi.AxisLabels),eo(e,Zi.FirstAndLastLabels);let s=()=>{i.events.once(me.Validated,()=>{let n=tr(i,ei.GaugeTicksWithLabels);if(lu(n)){let o=n.map(d=>d.label),A=o[0].scale,l=o[0].fontSize,h=Qm({chart:e,type:Zi.AxisLabels,labelList:o,currentScale:A,currentFontSize:l,axisConfig:t}),c=h/A;Number.isFinite(h)&&h>0&&(c<=.98||c>1.02)&&o.forEach(d=>{d.scale=h})}}),i.validate()};e.events.once(me.Validated,s);let a=e.events.on(me.SizeChanged,s);ot(e.uid,{gaugeAutoResizeAxisLabelsDisposer:a}),s()}else{eo(e,Zi.AxisLabels);let s=tr(i,ei.GaugeTicksWithLabels);s.length>0&&s.map(a=>a.label).forEach(a=>{a.scale=1})}}function bQ(r,e){let t=ce(r.uid,"config")?.axes?.[0];if(t?.innerLabel?.visible!==!1&&t?.innerLabel?.content?.font?.size===void 0){let i=r.xAxes.getIndex(0)?.measuredWidth;if(i!==void 0&&i>0){let s=Qm({chart:r,type:Zi.InnerLabel,labelList:[e],currentScale:e.scale,currentFontSize:e.fontSize,axisConfig:t});Number.isFinite(s)&&Math.abs(e.scale-s)>.25&&(e.scale=s,e.validate())}}else e.scale=1}function vQ(r,e){eo(r,Zi.InnerLabel),eo(r,Zi.InnerLabelSecondary);let t=r.xAxes.getIndex(0),i=()=>{t?.events.once(me.Validated,()=>{bQ(r,e)})},s=r.events.on(me.Validated,i),a=r.events.on(me.SizeChanged,i);ot(r.uid,{gaugeAutoResizeInnerLabelFirstDisposer:a,gaugeAutoResizeInnerLabelSecondDisposer:s}),i()}function lm(r){return r?.labels.content.font?.size===void 0&&r?.onlyShowFirstAndLastLabels===!0}function BQ(r){let e=r.chart,t=ce(e.uid,"config")?.axes?.[0],i=tr(r,ei.GaugeFirstAndLastGuides);if(lu(i)){let s=i.map(A=>A.label),a=s[0].scale,n=s[0].fontSize,o=Qm({chart:e,type:Zi.FirstAndLastLabels,labelList:s,currentScale:a,currentFontSize:n,axisConfig:t});Number.isFinite(o)&&o>0&&s.forEach(A=>{qa(A.uid,{originalWidth:A.measuredWidth/A.scale,originalHeight:A.measuredHeight/A.scale}),A.scale=o,A.validate()})}}function CQ(r){let{chart:e,axisConfig:t,axis:i}=r;if(lm(t)){eo(e,Zi.AxisLabels),eo(e,Zi.FirstAndLastLabels);let s=()=>{i.events.once(me.Validated,()=>{BQ(i)})},a=e.events.on(me.SizeChanged,s);ot(e.uid,{gaugeAutoResizeFirstAndLastLabelsDisposer:a}),s()}else eo(e,Zi.FirstAndLastLabels),tr(i,ei.GaugeFirstAndLastGuides).map(s=>s.label).forEach(s=>{s.scale=1})}function cm(r,e){let t=r.xAxes.getIndex(0);if(t!==void 0){let i=e??ce(r.uid,"config"),{onlyShowFirstAndLastLabels:s}=i?.axes?.[0]??{};if(!t.renderer.labels.template.visible||s===!0)r.radius=new ml(Z.gauge.radius);else{let a=tr(t,ei.GaugeTicksWithLabels),{furthestLabelX:n,furthestLabelY:o}=a.reduce(({furthestLabelX:A,furthestLabelY:l,furthestPixelX:h,furthestPixelY:c},{label:d})=>{if(d?.visible&&d.bbox.width>0&&d.bbox.height>0){let u=d.pixelX,f=d.bbox.width*d.scale,m=0;u<0?m=Math.abs(u):m=u+f,m>h&&(h=m,A=d);let g=d.pixelY,v=d.bbox.height*d.scale,B=0;g<0?B=Math.abs(g):B=g+v,B>c&&(c=B,l=d)}return{furthestLabelX:A,furthestLabelY:l,furthestPixelX:h,furthestPixelY:c}},{furthestLabelX:void 0,furthestPixelX:0,furthestLabelY:void 0,furthestPixelY:0});if(n!==void 0&&o!==void 0){let A=(n.bbox.width+5)*n.scale,l=(o.bbox.height+5)*o.scale,h=typeof t.renderer.labels.template.radius=="number"?t.renderer.labels.template.radius:t.renderer.labels.template.radius.value,c=(A+h)*2+r.radarContainer.measuredWidth+Nd(r.paddingLeft)+Nd(r.paddingRight),d=80,u=170,f=r.htmlContainer?.clientHeight??0,m=Math.max(0,Math.min(1,(f-d)/(u-d))),g=r.radarContainer.measuredHeight+(l+h*m)*2+Nd(r.paddingTop)+Nd(r.paddingBottom),v=r.measuredWidth,B=r.measuredHeight,w=v/c,_=B/g,L=(typeof r.radius=="number"?r.radius:r.radius.value)*100,k=Number((L*w).toFixed(2)),D=Number((L*_).toFixed(2)),E=k/L,O=D/L,I=r.radarContainer.measuredWidth*E,M=r.radarContainer.measuredWidth*O,[S,P]=I<M?[k,E]:[D,O];Number.isFinite(S)&&S>=10&&S<=Z.gauge.radius&&(P<.98||P>1.02)&&(r.radius=new ml(S))}}}}function wQ(r){let e=r.xAxes.getIndex(0);e!==void 0&&(e.events.on(me.SizeChanged,()=>cm(r)),e.events.on(me.Validated,ls(()=>cm(r),Z.debounceTime)))}function fw(r){let e=r.hands.push(new gx),t=Z.gaugeNeedle,{startWidth:i,endWidth:s,innerRadius:a}=t;e.pin.disabled=!0,e.startWidth=i??Number.NaN,e.endWidth=s??Number.NaN,e.innerRadius=vs(a??Number.NaN);let n=r.xAxes.getIndex(0);return n!==void 0&&(e.axis=n),e}function _Q(r){let{x:e,data:t,chart:i,valueFormat:s,minimum:a,maximum:n}=r,o=Number.NaN;if(t!==void 0&&e!==void 0){let A=t.find(h=>e in h),l=Number.parseFloat(A[e]);Number.isFinite(l)&&(o=l,ot(i.uid,{gaugeData:o}))}else{let A=ce(i.uid,"gaugeData");Number.isFinite(A)&&(o=A)}return Bo(s)&&a!==void 0&&n!==void 0&&a!==null&&n!==null&&o!==null&&n-a!==0&&(o=pc({value:o,axisMin:a,axisMax:n})),o}function FQ(r,e){let t=e??null;if(e!=null){let i=r.xAxes.getIndex(0),s=ce(r.uid,"config"),a=i.min??s?.axes?.[0].minimum??Z.gauge.axisMinimum,n=i.max??s?.axes?.[0].maximum??Z.gauge.axisMaximum;e<a?t=a:e>n&&(t=n)}return t}function SQ(r){let{chart:e,needle:t,gaugeValue:i}=r,s=e.hands.getIndex(0)??fw(e);if(s!==void 0){Tl({element:s,fillSymbol:t?.symbol});let{startWidth:a,endWidth:n,innerRadius:o}=Z.gaugeNeedle;s.value=FQ(e,i),s.pin.disabled=t?.displayPin!==!0,s.visible=t?.visible??!0,s.startWidth=t?.startWidth??a,s.endWidth=t?.endWidth??n,s.innerRadius=vs(t?.innerRadius??o)}}function LQ(r){let e=Ra(void 0,r.radarContainer);e.isMeasured=!1,qa(e.uid,{isGaugeAxisInnerLabel:!0}),vQ(r,e)}function TQ(r){let{chart:e,innerLabelConfig:t,valueFormat:i,gaugeValue:s,gaugeInnerLabelFormatter:a}=r,n=e.radarContainer.children.values.find(o=>Ti(o.uid,"isGaugeAxisInnerLabel")===!0);if(n!==void 0){fr({label:n,labelConfig:t,defaults:Z.gaugeInnerLabel});let o=ce(e.uid,"formatLocale");n.html=HQ({valueFormat:i,iLocale:e.language.locale,formatLocale:o,gaugeValue:s,innerLabelConfigContent:t?.content,gaugeInnerLabelFormatter:a}),e.radarContainer.invalidateLabels()}}function IQ(r){let e=r.axisRanges.create();return e.axisFill.fillOpacity=1,e.axisFill.disabled=!0,e.grid.strokeOpacity=1,e.grid.disabled=!1,e.tick.length=Z.gaugeTicksLength,e}function DQ(r){let e=new fh;return e.disabled=!0,e.axis=r,iu(e),e.padding(10,10,10,10),qa(e.uid,{isGaugeAxisLabel:!0}),e}function kQ(r){let{axis:e,min:t,max:i,labelsIncrement:s,numberOfIntervals:a,valueFormat:n}=r,o=Bo(n),A=1,l=tr(e,ei.Ticks);l.length>0&&(A=l[0].label?.scale,l.forEach(d=>{if(Ml(d)){let u=e.axisRanges.values.indexOf(d);u>=0&&e.axisRanges.removeIndex(u)}}));let h=Z.gauge.numberOfTicksBetweenTwoLabels+1,c=a*h+1;for(let d=0;d<c;d+=1){let u=d===c-1,f=IQ(e),m=u?i:t+d/h*s;f.value=o?pc({value:m,axisMin:t,axisMax:i}):m,d%h===0&&(f.label=DQ(e),f.label.text=String(m),f.grid.disabled=!0,Number.isFinite(A)&&(f.label.scale=A))}}function UQ(r){let{chart:e,axis:t,onlyShowFirstAndLastLabels:i,valueFormat:s,axisLabelConfigContent:a,axisValueFormatter:n}=r;if(!i){let o=tr(t,ei.GaugeTicksWithLabels);if(lu(o)){let A=ce(e.uid,"formatLocale");o.forEach(l=>{fr({label:l.label,labelConfig:a}),Ml(l)&&(l.label.html=gw({valueFormat:s,iLocale:e.language.locale,formatLocale:A,gaugeLabelConfigContent:a?.content,itemLabelValue:l.value,axisValueFormatter:n}))})}}}function QQ(r,e){let t=e?.ticks?.visible??!0,i=tr(r,ei.Ticks);for(let s=0;s<i.length;s+=1){let a=i[s];Et(a.tick,t)}}function EQ(r,e){if(r instanceof zt&&r.chart instanceof Ds){let t=tr(r,ei.GaugeTicksWithLabels);if(lu(t)){let{onlyShowFirstAndLastLabels:i,labels:s}=e,a=(s?.visible??!0)&&i!==!0;t.forEach(n=>{Et(n.label,a)})}}}function RQ(r){let{labels:e,guides:t,onlyShowFirstAndLastLabels:i}=r,s=t??[];if(i===!0){let a={type:Q.Guide,start:Number.NaN,style:{type:"esriSLS"},name:""};s.push({...a,start:r.minimum??Number.NaN,name:Z.gaugeFirstLabelId,label:{...e.content,text:`${r.minimum}`}},{...a,start:r.maximum??Number.NaN,name:Z.gaugeLastLabelId,label:{...e.content,text:`${r.maximum}`}})}r.guides=s}function MQ(r){tr(r,ei.GaugeFirstAndLastGuides).forEach(e=>{e.label.adapter.keys().includes("dx")||e.label.adapter.add("dx",t=>{let i=t;if(e.label.measuredWidth>0){let s=ce(r.chart.uid,"config")?.axes?.[0],a=Ti(e.label.uid,"originalWidth"),n=lm(s)&&a!==void 0&&a===e.label.measuredWidth&&e.label.scale!==1;i=Math.round((n?a*e.label.scale:e.label.measuredWidth)/2),e.id===Z.gaugeLastLabelId&&(i*=-1)}return i}),e.label.adapter.keys().includes("dy")||e.label.adapter.add("dy",t=>{let i=t;if(e.label.measuredHeight>0){let s=ce(r.chart.uid,"config")?.axes?.[0],a=Ti(e.label.uid,"originalHeight"),n=lm(s)&&a!==void 0&&a===e.label.measuredHeight&&e.label.scale!==1;i=Math.round((n?a*e.label.scale:e.label.measuredHeight)/2)}return i})})}function PQ(r){let{chart:e,axis:t,onlyShowFirstAndLastLabels:i,valueFormat:s,gaugeLabelConfigContent:a,axisValueFormatter:n}=r;if(i){let o=tr(t,ei.GaugeFirstAndLastGuides),A=ce(e.uid,"formatLocale");o.forEach(l=>{l?.label!==void 0&&Ml(l)&&(l.label.html=gw({valueFormat:s,iLocale:e.language.locale,formatLocale:A,gaugeLabelConfigContent:a?.content,itemLabelValue:l.value,axisValueFormatter:n}))}),MQ(t)}}function OQ(r){let{chart:e,valueFormat:t,queryObject:i}=r;e.xAxes.clear(),uc({isXAxis:!0,axes:e.xAxes,valueFormat:t,queryObject:i});let s=e.xAxes.getIndex(0);s instanceof zt&&(s.renderer.labels.template.disabled=!0,s.renderer.ticks.template.disabled=!0,fw(e),LQ(e),wQ(e),s.maxZoomFactor=1)}function HQ(r){let{valueFormat:e,iLocale:t,formatLocale:i,innerLabelConfigContent:s,gaugeValue:a,gaugeInnerLabelFormatter:n}=r,o="";if(Number.isFinite(a))if(n!==void 0)o=n(a);else{let A=da(e),l=Ea({type:Q.NumberAxisFormat,iLocale:t,formatLocale:i});l.numberFormat=A,o=l.format(`${a}`),o=Ws({textSymbol:{type:je.TS,...s,text:o},format:"html"}),o=mi(o)}return o}function gw(r){let{valueFormat:e,iLocale:t,formatLocale:i,gaugeLabelConfigContent:s,itemLabelValue:a,axisValueFormatter:n}=r,o="";if(Number.isFinite(a))if(n!==void 0)o=n(a);else{let A=da(e),l=Ea({type:Q.NumberAxisFormat,iLocale:t,formatLocale:i});l.numberFormat=A,o=l.format(`${a}`),o=Ws({textSymbol:{type:je.TS,...s,text:o},format:"html"}),o=mi(o)}return o}async function NQ(r){let{chart:e,chartConfig:t,data:i,queryObject:s,axisValueFormatter:a,gaugeInnerLabelFormatter:n,utilsStrings:o,errorStrings:A}=r,{axes:l,series:h}=t,c=Hh(t),d=_e(t.series),{featureIndex:u,x:f}=h[0],m=l?.[0],g=e.xAxes.getIndex(0),v={...m};if(g!==void 0&&v!==void 0){let{valueFormat:B,needle:w,innerLabel:_,onlyShowFirstAndLastLabels:L}=v;im({axis:g,valueFormat:B,chartType:d})&&uc({isXAxis:!0,axes:e.xAxes,valueFormat:B,queryObject:s});let k=await uw({featureIndex:u,chartData:e.data,chartConfig:t,queryObject:s,queryConfig:ce(e.uid,"queryConfig")});v.minimum=k.minimum,v.maximum=k.maximum;let{min:D,max:E,labelsIncrement:O,numberOfIntervals:I}=hw(v);pQ({oldConfig:ce(g.chart.uid,"config"),axisMax:g.max,min:D,max:E,labelsIncrement:O,numberOfIntervals:I,valueFormat:B})&&kQ({axis:g,min:D,max:E,labelsIncrement:O,numberOfIntervals:I,valueFormat:B});let M={...v};Bo(B)?(M.minimum=0,M.maximum=1,dw({axisConfig:M,axisMin:v.minimum,axisMax:v.maximum})):(M.minimum=D,M.maximum=E),RQ(M),Gd({axis:g,axisConfig:M,axisConfigIndex:0,chartType:Q.GaugeSeries,axisValueFormatter:a,isTimeOnlyField:!1,utilsStrings:o,errorStrings:A}),g.renderer.labels.template.disabled||(g.renderer.labels.template.disabled=!0),g.renderer.ticks.template.disabled||(g.renderer.ticks.template.disabled=!0),xQ({chart:g.chart,axis:g,axisConfig:v}),CQ({chart:e,axis:g,axisConfig:v}),QQ(g,v),UQ({chart:e,axis:g,onlyShowFirstAndLastLabels:L??!1,valueFormat:B,axisLabelConfigContent:v.labels,axisValueFormatter:a}),PQ({chart:e,axis:g,onlyShowFirstAndLastLabels:L??!1,valueFormat:B,gaugeLabelConfigContent:v.labels,axisValueFormatter:a});let S=c?k?.dataValue:_Q({x:f,data:i,chart:e,minimum:v.minimum,maximum:v.maximum,valueFormat:B});SQ({chart:e,needle:w,gaugeValue:S}),TQ({chart:e,innerLabelConfig:_,valueFormat:B,gaugeValue:S,gaugeInnerLabelFormatter:n}),EQ(g,v),cm(e,t),e.validateData()}}function $Q(r){r.background.fill=BA(Z.backgroundColor)}function cu(r,e){r.background.fill=BA(e??Z.backgroundColor)}function VQ(r){let e=YC(Z.headerContainer,r),t=Ra(Z.title,e),i=Ra(Z.subtitle,e);return r instanceof ff&&(zd(r,t),zd(r,i),gc({chart:r,label:t,labelType:At.ChartTitle}),gc({chart:r,label:i,labelType:At.ChartSubTitle})),ik(e),{headerContainer:e,title:t,subtitle:i}}function hu(r,e){let{title:t,subtitle:i,headerContainer:s}=r;fr({label:t,labelConfig:e?.title,defaults:Z.titleLabel}),fr({label:i,labelConfig:e?.subtitle,defaults:Z.titleLabel}),zC(s,t.disabled&&i.disabled),Yo({chart:t.parent,label:t,labelType:At.ChartTitle}),Yo({chart:i.parent,label:i,labelType:At.ChartSubTitle})}function XQ(r){let e=YC(Z.footerContainer,r),t=Ra(Z.footer,e);return r instanceof ff&&(zd(r,t),gc({chart:r,label:t,labelType:At.ChartFooter})),{footerContainer:e,footer:t}}function du(r,e){let{footer:t,footerContainer:i}=r;fr({label:t,labelConfig:e,defaults:Z.footer}),zC(i,t.disabled||e?.content.text===""),Yo({chart:t.parent,label:t,labelType:At.ChartFooter})}function pw(r){if(r instanceof Rt){let e=new pf,t=new pf;e.disabled=!0,t.disabled=!0,e.marginTop=-10,t.marginRight=0,r.scrollbarX=e,r.scrollbarY=t}}function KQ(r,e){let t=e?0:-1;r.thumb.tabindex=t,r.startGrip.tabindex=t,r.endGrip.tabindex=t}function GQ(r,e){if(e!==void 0){let t=Lh(e);[r.background,r.startGrip.background,r.endGrip.background,r.thumb.background,r.background.states.getKey("default")?.properties,r.startGrip.background.states.getKey("default")?.properties,r.endGrip.background.states.getKey("default")?.properties,r.thumb.background.states.getKey("default")?.properties,r.startGrip.background.states.getKey("hover")?.properties,r.endGrip.background.states.getKey("hover")?.properties,r.thumb.background.states.getKey("hover")?.properties,r.startGrip.background.states.getKey("down")?.properties,r.endGrip.background.states.getKey("down")?.properties,r.thumb.background.states.getKey("down")?.properties].forEach(i=>{i!==void 0&&(i.fill=t)})}}function WQ(r,e){typeof e=="number"&&Number.isFinite(e)&&(r.orientation==="horizontal"?(r.height=e,r.minHeight=e):(r.width=e,r.minWidth=e))}function YQ(r,e){if(typeof e=="number"&&Number.isFinite(e)){let t=e/30;r.startGrip.scale=t,r.endGrip.scale=t}}function zQ(r,e){typeof e=="number"&&Number.isFinite(e)&&(r.orientation==="horizontal"?r.marginBottom=e:r.marginLeft=e,r.parent?.invalidateLayout())}function mw(r){let{chart:e,scrollbarXConfig:t,scrollbarYConfig:i}=r;if(e instanceof Rt){let s=ce(e.uid,"isRotated");(e.scrollbarX===void 0||e.scrollbarY===void 0)&&pw(e);let{scrollbarX:a,scrollbarY:n}=e;[a,n].forEach(o=>{let A=o.orientation==="horizontal"&&s!==!0||o.orientation==="vertical"&&s===!0?t:i,l=A?.visible!==!0;if(o.disabled=l,KQ(o,!l),A!==void 0&&!l){let{width:h,color:c,gripSize:d,margin:u}=A;zQ(o,u),GQ(o,c),YQ(o,d),WQ(o,h)}})}}function jQ(r,e){r.columns.each(t=>{(t.dataItem?.dataContext)[e]===0&&(t.strokeOpacity=0)})}function ZQ(r,e){let t=r.chart.legend.events.on(me.Validated,()=>{io({element:r.legendDataItem?.marker.children.getIndex(0),stylingInfo:e}),r.chart.legend.isReady()&&(t.dispose(),r.chart.legend.invalidate())})}function qQ(r){let{series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,chartSubType:a,colorMatch:n,rendererType:o}=r,A=e.dataFields.valueY??e.dataFields.valueX??t.y,l=!1,h=new Set,c,d=t.fillSymbol,u={seriesConfig:t,seriesIndex:i,seriesSymbol:d,colorMatch:n,isChartFillSymbol:!0},f={},m={},g=Uf(i);if(e.columns.length===0?f=So({seriesConfig:t,seriesIndex:i,seriesSymbol:d??g,element:new hh,colorMatch:n,isChartFillSymbol:!0}):e.columns.each(v=>{let B=v.dataItem?.dataContext;if(Number.isFinite(B?.[A])){let w=Fr({dataItem:B,seriesConfig:t,chartSubType:a,colorMatch:n,rendererType:o}),_=B[Z.xAxisField]===Z.nullValue,L=(_&&t.nullCategory?.symbol!==void 0?t.nullCategory.symbol:d)??g;f=So({...u,seriesSymbol:L,element:v,rendererSymbol:w}),io({element:v,stylingInfo:f.stylingInfo}),_||(h.add(JSON.stringify(f.symbolWithColorInfo)),m=f)}}),s>1){let v=e.chart.legend.markers.values;v.length!==0?v.forEach(B=>{if(B.dataItem instanceof za){let w=B.dataItem.marker.children.getIndex(0);w!==void 0&&w.baseSprite?.parent instanceof Xi?io({element:w,stylingInfo:m.stylingInfo}):l=!0}}):l=!0}return l&&ZQ(e,m.stylingInfo),h.size<=1&&(c=m.symbolWithColorInfo??d),jQ(e,A),c}function JQ(r){let{series:e,seriesSymbolMapForEvent:t,seriesIndexMapper:i,seriesIndex:s,colorMatch:a,rendererType:n}=r,o=r.seriesConfig,A=ce(e.chart.uid,"config"),l=A?.series.length??0,h=ze(A?.series),c=qQ({series:e,seriesConfig:o,seriesIndex:s,numberOfSeries:l,chartSubType:h,colorMatch:a,rendererType:n});t.set(i.get(o.id)??s,c),t.size===l&&ar({data:t,htmlContainer:e.chart.htmlContainer,chartId:e.chart.id,colorMatchApplied:su(e.chart)})}function yw(r){let{seriesConfig:e,series:t,seriesIndexMapper:i,rotationChanged:s,colorMatch:a,stackedType:n,rendererType:o,seriesIndex:A,seriesSymbolMapForEvent:l,queryObject:h}=r,{name:c}=e,d=ce(t.chart.uid,"config"),u=ur({config:d}),f=ze(d?.series);Et(t,e.visible);let m=c,g=t.dataFields?.customValue??"";(f===xe.BarAndLineSplitBy||f===xe.BarAndLineSplitByNoAggregation)&&(m=Uh({queryObject:h,fieldName:ma(g),fieldValue:m})??m),KA(t,m),Cm({series:t,seriesConfig:e,rotationChanged:s,stackedType:n,isRotated:u}),JQ({series:t,seriesConfig:e,seriesIndex:A,seriesIndexMapper:i,colorMatch:a,rendererType:o,seriesSymbolMapForEvent:l}),wr(t.uid,{barSeriesLastUpdate:{numberOfColumnsUpdated:t.columns.length,updateProps:r}})}function eE(r){r.events.on(me.Validated,()=>{let e=Ki(r.uid,"barSeriesLastUpdate");if(e!==void 0){let{numberOfColumnsUpdated:t,updateProps:i}=e;r.columns.length>t&&yw(i)}})}function tE(r){let{chart:e,chartConfig:t,seriesIndex:i,axisList:s=[],hideLoaderHandle:a,selectionTheme:n,queryObject:o}=r,{rotated:A}=t,l=t.series[i],{y:h,assignToSecondValueAxis:c}=l,d=new Xi;qo(d,a),d.id=l.id;let u,f;A!==!0?(u=s[0],f=c===!0&&s[2]?s[2]:s[1]):(u=c===!0&&s[2]?s[2]:s[0],f=s[1]),u!==void 0&&(d.xAxis=u),f!==void 0&&(d.yAxis=f);let m=e instanceof Rt?ur({chart:e}):!1,g=ze(t.series)!==xe.BarAndLineSplitByNoAggregation?h:`${h}_${Tn({where:l.query?.where,keepSurroundingQuotes:!1,escape:!1})}`;m?d.dataFields.valueX=g:d.dataFields.valueY=g;let v=m?s[1]:s[0];if(v!==void 0){let B=RC(v,m);d.dataFields[B]=Z.xAxisField,d.baseAxis=v}return Cm({series:d,seriesConfig:l,rotationChanged:!1,stackedType:t.stackedType,isRotated:m}),d.dataFields.customValue=l?.query?.where,XC(d.columns.template,d),d.columns.template.width=vs(100),Zo({element:d.columns.template,customSelectionTheme:n}),yc({chart:e,element:d.columns.template,queryObject:o}),Tm(d),eE(d),jo(d),d}function iE(r){let{seriesConfig:e,series:t,seriesIndex:i,axes:s,utilsStrings:a,fieldList:n,queryObject:o,stackedType:A,options:l}=r;t.id=e.id;let h=ur({chart:t.chart});WU({series:t,seriesType:Q.BarSeries,isRotated:h,stackedType:A,hideOversizedSideBySideLabels:e.hideOversizedSideBySideLabels,hideOversizedStackedLabels:e.hideOversizedStackedLabels,dataLabelsConfig:e.dataLabels,yAxisValueFormat:s[1].valueFormat,customDataLabelFormatter:l?.dataLabelFormatter}),ru({styleCallback:yw,callbackProps:r,series:t,seriesConfig:e,onReadyEvent:!0}),GC({series:t,seriesConfig:e,fieldList:n,queryObject:o,utilsStrings:a,seriesIndex:i,tooltipFormatter:l?.tooltipFormatter})}function sE(r){r.labels.template.adapter.add("html",(e,t)=>{let i=Ki(r.uid,"pieChartDataLabelFormatter"),s=e??"",{dataItem:a}=t;if(a instanceof ca){let{slice:n}=a;if(n!==void 0&&!vA(n))s="";else if(i!==void 0){let{value:o,percent:A}=a.values?.value??{};if(o!==void 0&&o!==0){let l=`${a.properties?.category??e}`;s=i(l,o,A)}}}return Mt(s)&&(s=Z.htmlEmptyContent),mi(s)})}function rE(r){let e=r.labels.template;e.maxWidth=Z.pieChart.dataLabels.maxWidth??Number.NaN,e.wrap=Z.pieChart.dataLabels.wrap??!0,e.events.on(me.Over,t=>{let{dataItem:i}=t.target??{};i instanceof ca&&i.slice.showTooltip()}),sE(r)}function aE(r,e){let{numericValueFormat:t,percentValueFormat:i,displayCategoryOnDataLabel:s,displayNumericValueOnDataLabel:a,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:A,percentagePrefix:l,percentageSuffix:h,dataLabelsCharacterLimit:c}=e,d=Lm({iLocale:r.chart.language.locale,pieChart:r.chart,valueIntlOptions:t?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:a??Z.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??Z.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:A,percentagePrefix:l,percentageSuffix:h}),u=Fh(c),f=Gs(r.rtl," ");return(m,g,v)=>{let B=d(m,g,v),w=s??Z.pieChart.displayCategoryOnDataLabel?u(m):"",_=Mt(w)?"":`${w}${f}`;return _=`${_}${B}`,e.dataLabels?.content!==void 0&&(_=Ws({textSymbol:{...e.dataLabels.content,text:_},format:"html",defaults:{...Z.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??Z.pieChart.dataLabels.wrap}})),_}}function nE(r){let{pieSeries:e,seriesConfig:t,dataLabelFormatter:i}=r,{dataLabels:s}=t,a=t.dataLabelsOffset??Z.pieChart.dataLabelsOffset,n=t.dataLabelsInside??Z.pieChart.dataLabelsInside;wr(e.uid,{pieChartDataLabelFormatter:i??aE(e,t)}),fr({label:e.labels.template,labelConfig:s,defaults:{...Z.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??Z.pieChart.alignDataLabels},skipSettingText:!0}),e.alignLabels=!n&&(t.alignDataLabels??Z.pieChart.alignDataLabels);let o=e.labels.template.radius;e.chart.invalidateData(),(n&&o!==vs(-40)||!n&&o===vs(-40)||a!==void 0&&Number.isFinite(a)&&o!==a)&&(e.labels.template.radius=n?vs(-40):a,e.invalidate())}function oE(r,e){let t=(f,m,g)=>Z.htmlEmptyContent,{numericValueFormat:i,percentValueFormat:s,dataTooltipValueFormat:a,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:A,displayPercentageOnTooltip:l,valuePrefix:h,valueSuffix:c,percentagePrefix:d,percentageSuffix:u}=e;return t=(f,m,g)=>{let v=Z.htmlEmptyContent,B=Lm({iLocale:r.chart.language.locale,pieChart:r.chart,valueIntlOptions:(a??i)?.intlOptions,percentageIntlOptions:(n??s)?.intlOptions,displayNumericValue:A??Z.pieChart.displayNumericValueOnTooltip,displayPercentage:l??Z.pieChart.displayPercentageOnTooltip,valuePrefix:h,valueSuffix:c,percentagePrefix:d,percentageSuffix:u})("",m,g),w=!Mt(f)&&(o??Z.pieChart.displayCategoryOnTooltip);if(w&&(v=`<b>${f}</b>`),!Mt(B)){let _=Sh(B);v=w?`${v}<br />${_}`:_}return v},t}function AE(r){if(r.tooltip!==void 0){let e=r.fill;e instanceof xx?e=e.stroke:e instanceof bx&&(e=e.backgroundFill),r.tooltip.background.fill=e}}function lE(r){let e=r.slices.template;e.tooltipHTML=Z.htmlEmptyContent,e.adapter.add("tooltipHTML",(t,i)=>{let s=t??"",{chart:a}=r;if(a!==void 0&&i.tooltip!==void 0){let n=ce(a.uid,"config"),{dataTooltipVisible:o}=n?.series[0]??{};if(o===!1)i.tooltip.disabled=!0;else{let A=Ki(r.uid,"pieChartTooltipFormatter");if(A!==void 0){let{dataItem:l}=i;if(l instanceof ca){let h=l.properties.category??"",c=l.dataContext,d=Xr(c);d===void 0&&(d=h);let u=l.values?.value?.value,f=l.values?.value?.percent;typeof u=="number"&&u!==0&&n?.series?.[0]?.dataTooltipVisible!==!1?(i.tooltip.disabled=!1,AE(i),s=A(`${h}`,u,f,d)):i.tooltip.disabled=!0}}}}return mi(s)})}function cE(r){let{series:e,seriesConfig:t,tooltipFormatter:i}=r;wr(e.uid,{pieChartTooltipFormatter:i??oE(e,t)})}function hE(r){r.ticks.template.adapter.add("disabled",(e,t)=>t.dataItem?.values?.value?.value===0||!Number.isFinite(t.dataItem?.values?.value?.value)||e===!0)}function dE(r){let{chartData:e,pieSeries:t,pieSlicesSymbols:i,seriesConfig:s}=r;if(t.slices.length===0){let a=[];e?.forEach(n=>{let o=Eh({dataContext:n,pieSlicesSymbols:i,seriesConfig:s});a.push(Lh(o.color))}),a.length>0&&(t.colors.list=a)}}function uE(r){let{seriesConfig:e,hideLoaderHandle:t,selectionTheme:i}=r,{x:s,y:a,id:n,visible:o}=e,A=new rr;A.id=n,qo(A,t),A.dataFields.value=a,A.dataFields.category=s;let l=Z.pieChart;A.startAngle=l.min,A.endAngle=360+A.startAngle,hE(A),lE(A),rE(A);let h=i!==void 0&&i.selectedElementsTheme?.transformation?.opacity===void 0?{...i,selectedElementsTheme:{...i?.selectedElementsTheme,transformation:{...i?.selectedElementsTheme?.transformation,opacity:1}}}:i;return Zo({element:A.slices.template,useNativeState:!0,customSelectionTheme:h}),A.slices.template.states.removeKey("hover"),jo(A),A.hidden=o===!1,Tm(A),A}function fE(r){let{series:e,pieSlicesSymbols:t,seriesConfig:i,selectionTheme:s}=r;e.defaultState.reset(),e.slices.each((a,n)=>{let o=a.dataItem?.dataContext,A=Eh({dataContext:o,pieSlicesSymbols:t,seriesConfig:i}),l=Tl({element:a,fillSymbol:A,defaultToColorFromRamp:!0,colorRampIndex:n,isChartFillSymbol:!0});s!==void 0&&s.selectedElementsTheme===void 0&&io({element:a,stylingInfo:l,stateKey:ps.Active})})}function gE(r,e){let{ticks:t}=e,i=t?.visible===!1||e.dataLabelsInside===!0||e.dataLabels===void 0||e.dataLabels?.visible===!1||e.dataLabelsOffset!==void 0&&e.dataLabelsOffset<=0;r.ticks.template.disabled=i,r.ticks.template.strokeOpacity=Z.pieChart.ticksOpacity;let s=t?.lineSymbol??Fl({color:Sf});i&&(s.width=0),Fo({element:r.ticks.template,lineSymbol:s,visible:!i})}function pE(r){let{chart:e,seriesConfig:t,series:i,pieSlicesSymbols:s,options:a,utilsStrings:n,queryObject:o}=r,{tooltipFormatter:A,dataLabelFormatter:l}=a??{},{x:h,y:c,id:d,innerRadius:u,startAngle:f,endAngle:m}=t;i.id=d;let g=ze([t]),v=Z.pieChart;i.dataFields.value=g!==xe.PieFromFields?c:vo,i.dataFields.category=g!==xe.PieFromFields?h:ja;let B=e.radius instanceof ml?e.radius.value:e.radius;e.innerRadius=vs((u??v.innerRadius)*B),i.startAngle=f??v.min,i.endAngle=m??360+i.startAngle,nE({pieSeries:i,seriesConfig:t,dataLabelFormatter:l}),dE({chartData:e.data,pieSeries:i,pieSlicesSymbols:s,seriesConfig:t}),ru({styleCallback:fE,callbackProps:r,series:i,seriesConfig:t}),gE(i,t),cE({series:i,seriesConfig:t,tooltipFormatter:A})}async function EB(r){let{chart:e,hitSlice:t,multiSelect:i=!1,queryObject:s}=r,a=[],n=ce(e.uid,"config"),o=e.series.getIndex(0);if(n&&o!==void 0){let A=SC(o),l=ao(o),h={element:{},xAxisField:A,yAxisField:l,seriesIndex:0,chartConfig:n};o.slices.each((c,d)=>{c.isActive&&(c===t||i||c.dataItem instanceof ca&&c.dataItem.label.isHover)?Ln(c.dataItem?.dataContext)?(FA({groupOfSlicesDataContext:c.dataItem?.dataContext})??[]).forEach(u=>{a.push({...h,element:void 0,elementDataContext:u,elementIndex:d})}):a.push({...h,element:c,elementDataContext:c.dataItem?.dataContext,elementIndex:d}):Rr({element:c,selected:!1,useNativeState:!0})}),a.forEach(c=>{Rr({element:c.element,selected:!0,useNativeState:!0})}),await bc({chart:e,listSelectedElements:a,selectionSource:li.SelectionByClick,queryObject:s})}e.feedLegend()}function mE(r,e){let t=async a=>{let{target:n}=a;if(OC(r)&&r.series.getIndex(0)?.slices.template.togglable){let o=nu(a,r);if(n instanceof px)await EB({chart:r,multiSelect:o,hitSlice:n,queryObject:e});else if(n instanceof yl){let A=n.dataItem;if(A instanceof ca){let{slice:l}=A;l.isActive=!l.isActive,await EB({chart:r,multiSelect:o,hitSlice:l,queryObject:e})}}else n===r.background&&await bc({chart:r,listSelectedElements:[],selectionSource:li.SelectionByClick,queryObject:e})}},i=r.series.getIndex(0)?.slices.template;i!==void 0&&(i.events.on(me.Hit,t),i.events.on(me.DoubleHit,t));let s=r.series.getIndex(0)?.labels.template;s!==void 0&&s.events.on(me.Hit,t),r.background.events.on(me.Hit,t),r.background.events.on(me.DoubleHit,t)}function RB(r){return r?.offsetParent!==null}function yE(r,e){r!==void 0&&e!==void 0&&window.IntersectionObserver!==void 0&&new IntersectionObserver(t=>{t[0].intersectionRatio>0&&(ce(r.uid,"chartWasCreatedWhileHidden")===!0?(r.reinit(),r.events.once(me.Validated,()=>{r.reinit()}),r instanceof Rt&&Au(r),ot(r.uid,{chartWasCreatedWhileHidden:!1})):ce(r.uid,"chartWasUpdatedWhileHidden")===!0&&(r.reinit(),ot(r.uid,{chartWasUpdatedWhileHidden:!1})))},{root:null}).observe(e)}function xE(r,e){let t=Z.pieChart.dataLabels.maxWidth??100;if(r!=null){let{alignDataLabels:i,dataLabelsOffset:s=Z.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:a,dataLabels:n,dataLabelsInside:o}=r;if(n?.visible===!0&&i===!0&&o!==!0&&a===!0){let A=typeof e.radius=="number"?e.radius/100:e.radius.value,l=e.chartContainer.measuredWidth,h=e.chartContainer.measuredHeight,c=A*Math.min(l,h),d=5,u=Math.floor((l-c)/2)-d-s;t=Math.min(u,t-d);let f=30;t<f&&(t=f)}}return t}function xw(r){if(or(r)){let e=typeof r.radius=="number"?r.radius:r.radius.percent;ot(r.uid,{pieChartRadius:e});let t=()=>{let i=vs(ce(r.uid,"pieChartRadius")??Z.pieChart.chartOptimizedRadius),s=i,a=ce(r.uid,"config");if(a!==void 0){let{series:n}=a,{innerRadius:o,optimizeDataLabelsOverlapping:A,alignDataLabels:l,dataLabelsOffset:h=Z.pieChart.dataLabelsOffset,dataLabels:c,dataLabelsInside:d}=n[0];if(c?.visible===!0&&l===!0&&A===!0&&d!==!0){let f=Z.pieChart.chartOptimizedRadius/100,m=500,g=150,v=.6,B=.5,w=1,_=r.chartContainer.measuredWidth-h*2,L=Math.max(_-g,0)/(m-g),k=L<1?Math.max(L**w*v,.4):Math.min(L**B*v,f);s=vs(k*100)}else s=vs(Z.pieChart.chartRadius);i.value.toFixed(1)!==s.value.toFixed(1)&&(ot(r.uid,{pieChartRadius:s.percent}),r.radius=s,r.innerRadius=vs((o??Z.pieChart.innerRadius)*s.value));let u=r.series?.values?.[0];u instanceof rr&&(u.labels.template.maxWidth=xE(a?.series[0],r))}return s};r.events.on(me.SizeChanged,ls(t,Z.debounceTime)),t(),r.validate()}}function bw(r){if(r instanceof gi)xw(r);else if(!(r instanceof Ds)){let e=()=>{let i=ce(r.uid,"config"),{chartPaddingMinSize:s,chartPaddingRightWhenLegendNotOnRight:a,chartContainerPaddingTopWhenRotated:n,chartContainer:o}=Z,A=i?.series,l=_e(A),h=ur({config:i}),c=A?.[0]?.dataLabels?.visible??!0,d=Z.chartDefaultPaddingRight;if(h&&c&&(l===Q.LineSeries||l===Q.ComboLineAndBarSeries||l===Q.BarSeries&&(i?.stackedType??Qf())===Qt.Side)){let f=0,m=g=>Ti(g.uid,"isDataLabel")??!1;r.series.each(g=>{let v=g.bullets.values.find(m);v!==void 0&&v.clones.each(B=>{let w=B.measuredWidth;switch(B.horizontalCenter){case Tt.Middle:w/=2;break;case Vt.Right:w*=-1;break;case Vt.Left:}let _=B.pixelX+w;_>f&&(f=_,d=w)})})}d>=0&&(r.chartContainer.paddingRight=d),r.chartContainer.paddingTop=h?n:o.paddingTop;let u=i?.legend?.visible!==!1&&i?.legend?.position===Te.Right;r.paddingRight=u?s:a},t=0;r.series.each(i=>{i.events.once(me.Validated,()=>{t+=1,t===r.series.length&&e()})})}}function bE(r,e){r.adapter.add("criticalError",t=>(t.message=e.errors.simpleError,t))}function vE(r){let{data:e,seriesConfig:t,utilsStrings:i}=r,s=t[0],a=e?.reduce((d,u)=>{let f=u[vo]??u[s.y];return Number.isFinite(f)||(f=0),f+d},0),n=s?.sliceGrouping?.percentageThreshold??0,o=[],A,l=0,h=e?.find(d=>d[wo.defaultGroupOfSlicesId]===!0)?.[We.pieChart.technicalFieldGroupedSlices]??[],c=[...e,...h].filter(d=>{let u=!0,f=d[vo]??d[s.y];if(Number.isFinite(f)){let m=f/a*100;d[We.pieChart.technicalFieldSlicePercent]=m,m<=n&&d[wo.defaultGroupOfSlicesId]!==!0&&(l+=f,o.push(d),u=!1)}else d[wo.defaultGroupOfSlicesId]!==!0&&(o.push(d),u=n===0||n===void 0);return d[wo.defaultGroupOfSlicesId]===!0&&(A=d,u=!1),u});if(n>0&&o.length>0){let d=l/a*100,u=ze(t)===xe.PieFromFields,f={...A,[wo.defaultGroupOfSlicesId]:!0,[u?ja:s.x]:s.sliceGrouping?.label??i?.pieChart.defaultSliceGroupingLabel,[u?vo:s.y]:l,[We.pieChart.technicalFieldSlicePercent]:d,[We.pieChart.technicalFieldGroupedSlices]:o};c.push(f)}return c}function MB(r){let{creation:e,previousConfig:t,newConfig:i,dataInfo:s,dataUpdateNeeded:a,utilsStrings:n}=r,o=!1;if(s.data&&"dataItems"in s.data&&t?.series[0].type===Q.PieSeries&&i?.series[0].type===Q.PieSeries){let A=e||Qh([t.series[0]],[i?.series[0]]);(a||A)&&(s.data.dataItems=vE({data:s.data.dataItems,seriesConfig:[i.series[0]],utilsStrings:n}),Zf({arrayToSort:s.data.dataItems,chartConfig:i}),o=!0)}return o}function BE(r,e){let t=r.reduce((i,s)=>{if(s[wo.defaultGroupOfSlicesId]===!0){let a=s[We.pieChart.technicalFieldGroupedSlices];a!==void 0&&a.forEach(n=>{i.push(n)})}else i.push(s);return i},[]);return Zf({arrayToSort:t,chartConfig:e}),t=og({data:{dataItems:t},seriesConfig:e.series})?.dataItems??[],t}function vw(r,e){let t=r?.filter(i=>!Ln(i));return!Ya(t,e)}function CE(r){let{dataContext:e,newLabel:t,x:i}=r;t===void 0?e[We.originalCategoryValue]!==void 0&&(e[i]=e[We.originalCategoryValue]):e[i]!==t&&(e[We.originalCategoryValue]===void 0&&(e[We.originalCategoryValue]=e[i]),e[i]=t)}function wE(r){let{data:e,newChartConfig:t,pieSlicesSymbols:i,fieldList:s}=r,a=t.series[0],n=ze(t.series)===xe.PieFromFields?ja:a.x;e.forEach(o=>{let A=Ln(o),l=o[We.pieChart.technicalFieldSliceId],h=A?a.sliceGrouping?.label:rb(i?.slices,l)?.label;CE({dataContext:o,x:n,newLabel:h})}),sb({chartConfig:t,chartData:e,fieldList:s})}gA.classNamePrefix="arcgis-charts-";async function Em(r,e){let t=await XI(e.locale);gA.defaultLocale=t,r.language.locale=t,ot(r.uid,{formatLocale:e.formatLocale}),r.rtl=e.rtl}function uu(r){let{chart:e,actionMode:t,cursorRange:i}=r;if(or(e)){let s=t??ce(e.uid,"actionMode")??Z.actionMode;ot(e.uid,{actionMode:s});let a=ce(e.uid,"filterBySelection");switch(s){case et.MonoSelection:case et.MultiSelection:case et.MultiSelectionWithCtrlKey:a!==!0?MD(e):Zp(e);break;case et.Zoom:Zp(e);break;case et.None:WA({chart:e,selectionSource:li.ClearSelection,clearOnlyVisibleSeries:!1,disposeStyleAndSelection:!1}),Zp(e);break}oD({chart:e,actionMode:s,cursorRange:i})}}function _E(r,e){e===!0&&(r.tapToActivate=!0,r.tapTimeout=3e3,r.responsive.enabled=!0)}function FE(r){let{chart:e,axesConfig:t,chartType:i,isRotated:s,errorStrings:a,queryObject:n}=r;switch(Za({chartType:i,axesConfig:t,errorStrings:a}),i){case Q.GaugeSeries:{Kr(n),e instanceof Ds&&t?.[0]?.valueFormat!==void 0&&OQ({chart:e,valueFormat:t[0].valueFormat,queryObject:n});break}case Q.BarSeries:case Q.LineSeries:case Q.ComboLineAndBarSeries:case Q.BoxPlotSeries:{dQ({chart:e,chartType:i,isRotated:s,axesConfig:t,queryObject:n});break}}}async function Rm(r){let{chart:e,chartConfig:t,chartConfig:{axes:i},rotationChanged:s,axisLabelsBehaviorChanged:a,chartType:n,isRotated:o,dualAxisChanged:A,timeIntervalInfoWasReset:l,data:h,queryObject:c,guideTooltipFormatter:d,xAxisLabelFormatter:u,yAxisLabelFormatter:f,secondaryYAxisLabelFormatter:m,gaugeInnerLabelFormatter:g,utilsStrings:v,errorStrings:B}=r;switch(Za({chartType:n,axesConfig:i,errorStrings:B}),n){case Q.BarSeries:case Q.LineSeries:case Q.ComboLineAndBarSeries:case Q.BoxPlotSeries:{e instanceof Rt&&uQ({chart:e,chartConfig:t,rotationChanged:s,axisLabelsBehaviorChanged:a,isRotated:o,dualAxisChanged:A,timeIntervalInfoWasReset:l,timeIntervalInfo:h?.timeIntervalInfo??ce(e.uid,"timeIntervalInfo"),guideTooltipFormatter:d,xAxisLabelFormatter:u,yAxisLabelFormatter:f,secondaryYAxisLabelFormatter:m,utilsStrings:v,errorStrings:B,queryObject:c});break}case Q.GaugeSeries:{e instanceof Ds&&(Kr(c),await NQ({chart:e,chartConfig:t,data:(h??e.data).dataItems,queryObject:c,axisValueFormatter:u,gaugeInnerLabelFormatter:g,utilsStrings:v,errorStrings:B}));break}}}function Bw(r){let{chart:e,chartConfig:t,hideLoaderHandle:i,options:s,utilsStrings:a,queryObject:n}=r,{selectionTheme:o,ignoreSmoothRenderingLimit:A}=s??{};e.series.clear();let l,h,c=[],d=e instanceof Rt?[e.xAxes.getIndex(0),e.yAxes.getIndex(0),e.xAxes.getIndex(1)??e.yAxes.getIndex(1)]:void 0,u={hideLoaderHandle:i,selectionTheme:o,utilsStrings:a},f={...u,axisList:d};if(e instanceof Rt)for(let g=0;g<t.series.length;g+=1){let v=t.series[g];if(h=_e([v]),en(t))l=Ok({...f,chart:e,axisList:d,chartConfig:t,seriesIndex:g,queryObject:n}),c.push(...l.flat());else switch(h){case Q.BarSeries:{l=tE({...f,chart:e,chartConfig:t,seriesIndex:g,queryObject:n}),c.push(l);break}case Q.LineSeries:{Kr(n),l=Dk({...f,chart:e,chartConfig:t,seriesIndex:g,ignoreSmoothRenderingLimit:A,queryObject:n}),c.push(l);break}}}else e instanceof gi&&t.series[0].type===Q.PieSeries&&(l=uE({...u,seriesConfig:t.series[0]}),c.push(l));let m=lb({chartConfig:t,queryObject:n,chartData:e.data});m.length>0&&(e.colors.list=m.map(g=>{let[v,B,w,_]=g;return new lx({r:v,g:B,b:w,a:_})})),c.length>0&&e.series.pushAll(c),OD(e)}function Mm(r){let{chart:e,chartConfig:t,chartConfig:{series:i,axes:s,chartRenderer:a},seriesIndexMapper:n,rotationChanged:o,seriesReordered:A,outliersVisibilityChanged:l,standardizeValuesVisibilityChanged:h,chartData:c,queryObject:d,options:u,dataWasUpdated:f,sortChanged:m,groupOfSlicesWasUpdated:g,pieSlicesSymbols:v,utilsStrings:B,errorStrings:w}=r,_=e.series.values,L=new Map,k=t.series.length,D=Sn(t),E=Ys(t),O=_r(d,u?.usePopupTemplateFieldsInfo),I=ws(d),M=Rh(a,Cs(I)?void 0:I?.renderer);for(let[S,P]of i.entries()){let Y=_e([P]),G=_[S],ie={numberOfSeries:k,series:G,seriesConfig:P,seriesIndex:S,colorMatch:D,queryObject:d,rendererType:M,options:u,dataWasUpdated:f,fieldList:O,sortChanged:m,utilsStrings:B},J={...ie,axes:s,seriesIndexMapper:n},ne=G;if(e instanceof Rt&&en(t))ne=_.find(z=>z.id===P.id),G!==void 0&&(ne instanceof Li||ne instanceof Ht)&&Zk({...ie,chart:e,series:ne,seriesIndexMapper:n,seriesSymbolMapForEvent:L,chartData:c,showOutliers:t.showOutliers,showMean:t.showMean,outliersVisibilityChanged:l,seriesReordered:A,standardizeValuesVisibilityChanged:h,rotationChanged:o,options:u});else switch(Y){case Q.BarSeries:iE({...J,stackedType:E,seriesSymbolMapForEvent:L,rotationChanged:o});break;case Q.LineSeries:Ek({...J,stackedType:E,seriesSymbolMapForEvent:L,rotationChanged:o});break;case Q.PieSeries:pE({...ie,chart:e,groupOfSlicesWasUpdated:g,pieSlicesSymbols:v,selectionTheme:u?.selectionTheme});break}}oU({chart:e,options:u,dataWasUpdated:f,chartData:c,chartConfig:t,queryObject:d,rotationChanged:o,sortChanged:m,groupOfSlicesWasUpdated:g,errorStrings:w})}async function Pm(r){let{chartConfig:e}=r,{chart:t,options:i,globalOptions:s,colorMatchApplied:a,pieSlicesSymbols:n,queryObject:o,utilsStrings:A,errorStrings:l,dataInfo:h,loaderHandle:c}=r,{disableTogglingLegendItems:d,cursorRange:u,actionMode:f,pieChartLegendValueLabelFormatter:m,guideTooltipFormatter:g,xAxisLabelFormatter:v,yAxisLabelFormatter:B,secondaryYAxisLabelFormatter:w,gaugeInnerLabelFormatter:_,usePopupTemplateFieldsInfo:L}=i??{},{data:k,count:D,queryConfig:E}=h??{},O,I,M,S=_e(e.series),P=_r(o,L);ot(t.uid,{fieldList:P,options:i,elementCount:D,queryConfig:E,timeIntervalInfo:k?.timeIntervalInfo,serverLimitReached:k?.serverLimitReached});let Y=new Map;e.series.forEach((Me,Ne)=>{Y.set(Me.id,Ne)});let G=Gr(k);G!==void 0&&(t.data=G);let ie=ze(e.series);t instanceof gi&&ar({data:n,htmlContainer:t.htmlContainer,chartId:t.id,colorMatchApplied:a===!0});let{title:J,subtitle:ne,footer:z,series:K,background:ge}=e;O=VQ(t),hu(O,{title:J,subtitle:ne}),I=XQ(t),du(I,z),M=Ik(t,K),sk(t);let he=ur({config:e});ot(t.uid,{config:e,isRotated:he,isNonAggregatedChart:!Ql(ie)}),e.axes!==void 0&&(FE({chart:t,axesConfig:e.axes,chartType:S,isRotated:he,errorStrings:l,queryObject:o}),await Rm({chart:t,chartConfig:e,chartType:S,isRotated:he,data:k,queryObject:o,guideTooltipFormatter:g,xAxisLabelFormatter:v,yAxisLabelFormatter:B,secondaryYAxisLabelFormatter:w,gaugeInnerLabelFormatter:_,utilsStrings:A,errorStrings:l})),Bw({chart:t,chartConfig:e,hideLoaderHandle:c.hideLoader,utilsStrings:A,options:i,queryObject:o}),Mm({chart:t,chartConfig:e,seriesIndexMapper:Y,rotationChanged:!1,queryObject:o,chartData:k,groupOfSlicesWasUpdated:!0,pieSlicesSymbols:n,dataWasUpdated:!0,options:i,utilsStrings:A,errorStrings:l}),Im({legendElements:M,seriesConfig:K,webChartLegend:e.legend,pieChartLegendValueLabelFormatter:m}),pw(t),$Q(t),cu(t,ge),mw({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar}),CC(t),wC(t,e?.cursorCrosshair),uu({chart:t,actionMode:f,cursorRange:u});let re=LA(t.htmlContainer??document.documentElement);return t.dateFormatter.intlLocales=re,_E(t,s?.enableResponsiveFeatures),(t instanceof Ds||_m(t.series))&&Fn(t.htmlContainer),bw(t),O!==void 0&&I!==void 0&&M!==void 0?{headerElements:O,footerElements:I,legendElements:M}:void 0}function Cw(r){r.series.each(e=>{e.events.on(me.Ready,()=>{_m(r.series)&&Au(r)})})}async function SE(r){let{chartContainer:e,chartConfig:t,queryObject:i,colorMatchApplied:s,dataInfo:a,t9nStrings:n,options:o,globalOptions:A,loaderHandle:l}=r,{errorStrings:h,utilsStrings:c}=n,d=ph(e,Rt);d.id=t?.id??d.uid,ot(d.uid,{queryObject:i});let{t9nLocale:u}=Bl(d.htmlContainer??document.documentElement),f=LA(d.htmlContainer??document.documentElement),m=ch(d.htmlContainer??document.documentElement)==="rtl";await Em(d,{locale:u,formatLocale:f,rtl:m}),d.events.on(me.Inited,()=>d.zoomOutButton.deepInvalidate());let g=_e(t?.series);d instanceof Rt&&g!==Q.BoxPlotSeries&&(d.maskBullets=!1);let v=await Pm({chartConfig:t,chart:d,queryObject:i,colorMatchApplied:s,options:o,globalOptions:A,utilsStrings:c,errorStrings:h,dataInfo:a,loaderHandle:l});return ot(d.uid,{config:Hi(t)}),Cw(d),QD(d,i),ED(d,i),{chart:d,chartElements:v}}async function LE(r){let{chartContainer:e,chartConfig:t,queryObject:i,dataInfo:s,colorMatchApplied:a,pieSlicesSymbols:n,errorStrings:o,utilsStrings:A,options:l,globalOptions:h,loaderHandle:c}=r,d=ph(e,gi);d.id=t?.id??d.uid;let u=hg(d.htmlContainer);await Em(d,u),d.radius=vs(Z.pieChart.chartRadius);let f=await Pm({chartConfig:t,chart:d,queryObject:i,colorMatchApplied:a,pieSlicesSymbols:n,dataInfo:s,options:l,globalOptions:h,utilsStrings:A,errorStrings:o,loaderHandle:c});return ot(d.uid,{config:Hi(t),filterBySelection:l?.filterBySelection}),mE(d,i),{chart:d,chartElements:f}}async function TE(r){let{chartContainer:e,chartConfig:t,queryObject:i,dataInfo:s,errorStrings:a,utilsStrings:n,options:o,globalOptions:A,loaderHandle:l}=r,h=ph(e,Ds);h.id=t?.id??h.uid;let c=hg(h.htmlContainer);await Em(h,c),h.maskBullets=!1;let d=Z.gauge,u=Number.isFinite(t?.innerRadius)?t?.innerRadius:d.innerRadius,f=Number.isFinite(t?.startAngle)?t?.startAngle:d.startAngle,m=Number.isFinite(t?.endAngle)?t?.endAngle:d.endAngle;h.radius=vs(d.radius),typeof u=="number"&&(h.innerRadius=vs(u)),typeof f=="number"&&(h.startAngle=f),typeof m=="number"&&(h.endAngle=m);let g=await Pm({chartConfig:t,chart:h,queryObject:i,dataInfo:s,options:o,globalOptions:A,utilsStrings:n,errorStrings:a,loaderHandle:l});return ot(h.uid,{config:Hi(t)}),Cw(h),e?.ownerDocument.addEventListener("visibilitychange",()=>{let v=e.ownerDocument.hidden;h&&!v&&yQ(t?.axes?.[0])&&(h.svgContainer?.measure(),h.invalidateData())}),{chart:h,chartElements:g}}async function IE(r){let{newConfig:e}=r,{chart:t,chartElements:i,dataWasUpdated:s,dataUpdateDetails:a,dataInfo:n,options:o,configWithAllSeries:A,hasSeriesFilteredOut:l,queryObject:h,utilsStrings:c,errorStrings:d,loaderHandle:u}=r,{guideTooltipFormatter:f}=o??{},m=ce(t.uid,"config"),g=m?.series,v=e.series,B=_e(v),w=ur({config:e});ot(t.uid,{config:Hi(e),isRotated:w}),ot(t.uid,{filterBySelection:o?.filterBySelection}),uu({chart:t,actionMode:o?.actionMode,cursorRange:o?.cursorRange});let{xOrYChanged:_,layerChanged:L}=a?.common??{},{numberOfSeriesChanged:k}=a?.common??{},D=Jf(m,e),E=eg(m,e),O=_b(m,e),I=Fb(m,e),M=JSON.stringify(Il(g))!==JSON.stringify(Il(v)),S=!1,P=!1;en(e)&&en(m)&&(S=Lb(m,e),P=Tb(m,e));let Y=Rl({oldConfig:l?A:m,newConfig:e,dataWasUpdated:s}),G=_f({oldConfig:m,newConfig:e,rotationChanged:E}),ie=cw({chart:t,dualAxisChanged:O,rotationChanged:E,timeIntervalInfoWasReset:D,axisLabelsBehaviorChanged:G}),J=!1,ne=Gr(n?.data),z=ze(v);if(ot(t.uid,{isNonAggregatedChart:!Ql(z)}),s){let{count:re,data:Me,queryConfig:Ne}=n??{};ot(t.uid,{elementCount:re,queryConfig:Ne,timeIntervalInfo:Me?.timeIntervalInfo,serverLimitReached:Me?.serverLimitReached}),Fn(t.htmlContainer)}else if(B===Q.BarSeries||B===Q.LineSeries||B===Q.RadarSeries||B===Q.ComboLineAndBarSeries||B===Q.BoxPlotSeries){let re=ig(g,v);if(re.length>0&&(Hx(t.series,re),t.feedLegend(),J=!0),db(v[0])){let{binTemporalData:Me}=v[0],{unit:Ne,size:Ee}=v[0].temporalBinning??{};Me===!1&&Ne!==void 0&&Ee!==void 0&&ot(t.uid,{timeIntervalInfo:{unit:Ne,size:Ee}})}}Y&&(s||(t.validateData(),B===Q.BoxPlotSeries&&t.series.each(re=>{re instanceof Ht&&!(re instanceof Ks)&&re.id.includes(kt.Outliers)&&re.validateData()})));let K=new Map;e.series.forEach((re,Me)=>{K.set(re.id,Me)}),k=k||l,ne&&s&&(t.data=ne),e.axes!==void 0&&await Rm({chart:t,chartConfig:e,rotationChanged:E,timeIntervalInfoWasReset:D,axisLabelsBehaviorChanged:G,chartType:B,isRotated:w,dualAxisChanged:O,guideTooltipFormatter:f,xAxisLabelFormatter:o?.xAxisLabelFormatter,yAxisLabelFormatter:o?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:o?.secondaryYAxisLabelFormatter,queryObject:h,utilsStrings:c,errorStrings:d});let ge=B===Q.BoxPlotSeries&&(wb(v,g)||Cb(v,g));(t.series===void 0||t.series.length===0||_||L||k||M||(B===Q.BarSeries||B===Q.LineSeries||B===Q.RadarSeries||B===Q.ComboLineAndBarSeries)&&t.series.length!==e.series.length||ie||I||ge||a?.boxPlot?.showMeanChanged)&&(!s&&(E||ge||ie)&&t.invalidateData(),Bw({chart:t,chartConfig:e,hideLoaderHandle:u.hideLoader,utilsStrings:c,queryObject:h,options:o})),Mm({chart:t,chartConfig:e,seriesIndexMapper:K,rotationChanged:E,seriesReordered:J,outliersVisibilityChanged:S,standardizeValuesVisibilityChanged:P,queryObject:h,chartData:n.data,options:o,dataWasUpdated:s,sortChanged:Y,utilsStrings:c,errorStrings:d}),hu(i.headerElements,{title:e.title,subtitle:e.subtitle}),du(i.footerElements,e.footer),Im({legendElements:i.legendElements,seriesConfig:e.series,webChartLegend:e.legend,disableTogglingLegendItems:o?.disableTogglingLegendItems}),cu(t,e.background),mw({chart:t,scrollbarXConfig:e.axes?.[0]?.scrollbar,scrollbarYConfig:e.axes?.[1]?.scrollbar}),wC(t,e?.cursorCrosshair);let he=aD(t);(he.behavior===Dt.SelectX||he.behavior===Dt.SelectXY||he.behavior===Dt.SelectY||he.behavior===Dt.None)&&t.scrollbarX.start===0&&t.scrollbarX.end===1&&t.scrollbarY.start===0&&t.scrollbarY.end===1&&Au(t),bw(t),lw(t.series.values[0])}function DE(r){let{chart:e,chartElements:t,dataWasUpdated:i,newConfig:s,pieSlicesSymbols:a,queryObject:n,options:o,dataInfo:A,utilsStrings:l,errorStrings:h}=r,c=ce(e.uid,"config"),d=c?.series,u=s?.series,f=Rl({oldConfig:c,newConfig:s,dataWasUpdated:i}),m=Qh(d,u),{count:g,data:v,queryConfig:B}=A??{},w=Gr(v);ot(e.uid,{filterBySelection:o?.filterBySelection,config:Hi(s)});let _=w!==void 0&&(e.data.length!==w.length||vw(e.data,w));_&&(ot(e.uid,{elementCount:g,queryConfig:B}),e.data=w,Fn(e.htmlContainer)),(f||m)&&e.validateData(),ar({data:a,htmlContainer:e.htmlContainer,chartId:e.id,colorMatchApplied:su(e,s)}),Mm({chart:e,queryObject:n,chartConfig:s,seriesIndexMapper:new Map,options:o,dataWasUpdated:_,sortChanged:f,chartData:v,groupOfSlicesWasUpdated:m,pieSlicesSymbols:a,utilsStrings:l,errorStrings:h}),hu(t.headerElements,{title:s.title,subtitle:s.subtitle}),du(t.footerElements,s.footer),Im({legendElements:t.legendElements,seriesConfig:s.series,webChartLegend:s.legend,disableTogglingLegendItems:o?.disableTogglingLegendItems,pieChartLegendValueLabelFormatter:o?.pieChartLegendValueLabelFormatter}),cu(e,s.background),uu({chart:e,actionMode:o?.actionMode,cursorRange:o?.cursorRange}),xw(e)}async function kE(r){let{chart:e,chartElements:t,newConfig:i,queryObject:s,dataInfo:a,dataWasUpdated:n,options:o,utilsStrings:A,errorStrings:l}=r,{xAxisLabelFormatter:h,gaugeInnerLabelFormatter:c,guideTooltipFormatter:d}=o??{},u=i.series,f=_e(u),m;if(n){let{count:_,data:L,queryConfig:k}=a??{};m=L,m?.dataItems!==void 0&&(e.data=m.dataItems),Fn(e.htmlContainer),ot(e.uid,{elementCount:_,queryConfig:k})}i.axes!==void 0&&await Rm({chart:e,chartConfig:i,chartType:f,data:m,queryObject:s,xAxisLabelFormatter:h,gaugeInnerLabelFormatter:c,guideTooltipFormatter:d,utilsStrings:A,errorStrings:l});let g=Z.gauge,v=Number.isFinite(i?.innerRadius)?i.innerRadius:g.innerRadius,B=Number.isFinite(i?.startAngle)?i.startAngle:g.startAngle,w=Number.isFinite(i?.endAngle)?i.endAngle:g.endAngle;e.innerRadius=vs(v),e.startAngle=B,e.endAngle=w,hu(t.headerElements,{title:i.title,subtitle:i.subtitle}),du(t.footerElements,i.footer),cu(e,i.background),ot(e.uid,{config:Hi(i)})}async function UE(r){let{chartContainer:e,chartConfig:t,colorMatchApplied:i,pieSlicesSymbols:s,queryObject:a,dataInfo:n,t9nStrings:o,options:A,globalOptions:l,loaderHandle:h}=r,{errorStrings:c,utilsStrings:d}=o;gA.commercialLicense=l?.hideLicenseWatermark!==!1,gA.queue=l?.queueChartCreation!==!1,gA.autoDispose=l?.autoDisposeChart===!0,l?.useAnimatedCharts===!0?vx(zh):Bx(zh);let u;switch(_e(t?.series)){case Q.PieSeries:Kr(a),u=await LE({chartContainer:e,chartConfig:t,queryObject:a,dataInfo:n,colorMatchApplied:i,pieSlicesSymbols:s,options:A,globalOptions:l,utilsStrings:d,errorStrings:c,loaderHandle:h});break;case Q.GaugeSeries:Kr(a),u=await TE({chartContainer:e,chartConfig:t,queryObject:a,dataInfo:n,options:A,globalOptions:l,utilsStrings:d,errorStrings:c,loaderHandle:h});break;default:u=await SE({chartContainer:e,chartConfig:t,dataInfo:n,colorMatchApplied:i,queryObject:a,options:A,globalOptions:l,t9nStrings:o,loaderHandle:h});break}return u}async function QE(r){let{chartContainer:e,chartConfig:t,t9nStrings:i,queryObject:s,options:a,colorMatchApplied:n,rendererFieldNames:o,pieSlicesSymbols:A,globalOptions:l,dataInfo:h,uniqueInternalID:c,loaderHandle:d}=r,{errorStrings:u}=i,f=!RB(e),m=await UE({chartContainer:e,chartConfig:t,dataInfo:h,colorMatchApplied:n,pieSlicesSymbols:A,queryObject:s,t9nStrings:i,options:a,globalOptions:l,loaderHandle:d}),{chart:g,chartElements:v}=m;ot(g.uid,{chartWasCreatedWhileHidden:f,queryObject:s,filterBySelection:a?.filterBySelection,options:a,colorMatchApplied:n,rendererFieldNames:o}),bE(g,u),yE(g,e);function B(){c&&Kx.delete(c),g.isDisposed()||(yD(g),v!==void 0&&(m.chartElements=void 0),g.dispose())}async function w(D){let{newChartConfig:E,dataWasUpdated:O,dataUpdateDetails:I,queryObject:M,updateOptions:S,t9nStrings:{utilsStrings:P},configWithAllSeries:Y,hasSeriesFilteredOut:G,pieSlicesSymbols:ie,dataInfo:J,loaderHandle:ne}=D,z=ce(g.uid,"config"),K=E?.series,ge=K!==void 0?_e(K):void 0;if(g.isDisposed()||v===void 0||!qf(z,E))throw new fa(CA.ChartDisposed);switch(ge){case Q.BoxPlotSeries:case Q.BarSeries:case Q.LineSeries:case Q.ComboLineAndBarSeries:g instanceof Rt&&await IE({chart:g,chartElements:v,queryObject:M,dataWasUpdated:O,dataUpdateDetails:I,dataInfo:J,newConfig:E,configWithAllSeries:Y,hasSeriesFilteredOut:G,options:S,utilsStrings:P,errorStrings:u,loaderHandle:ne});break;case Q.PieSeries:Kr(M),DE({chart:g,chartElements:v,queryObject:M,dataWasUpdated:O,dataInfo:J,newConfig:E,pieSlicesSymbols:ie,options:S,utilsStrings:P,errorStrings:u});break;case Q.GaugeSeries:Kr(M),await kE({chart:g,chartElements:v,newConfig:E,queryObject:M,dataWasUpdated:O,dataInfo:J,options:S,utilsStrings:P,errorStrings:u});break}}async function _(D){let{newChartConfig:E,updateOptions:O,dataWasUpdated:I,dataUpdateDetails:M,configWithAllSeries:S,hasSeriesFilteredOut:P,pieSlicesSymbols:Y,colorMatchApplied:G,rendererFieldNames:ie,updateGlobalOptions:J,t9nStrings:ne,queryObject:z,dataInfo:K,loaderHandle:ge}=D,he=!RB(e),re=_r(z,a?.usePopupTemplateFieldsInfo);ot(g.uid,{chartWasUpdatedWhileHidden:he,options:O,fieldList:re,queryObject:z,colorMatchApplied:G,rendererFieldNames:ie}),await w({newChartConfig:E,updateOptions:O,dataWasUpdated:I,dataUpdateDetails:M,pieSlicesSymbols:Y,t9nStrings:ne,configWithAllSeries:S,hasSeriesFilteredOut:P,queryObject:z,dataInfo:K,loaderHandle:ge})}async function L(D){if(or(g)&&(g instanceof Rt||g instanceof gi)){let E=ce(g.uid,"actionMode");E!==et.MonoSelection&&E!==et.None&&await RD(g,D)}}function k(){Au(g)}return{update:_,dispose:B,resetZoom:k,clearSelection:()=>WA({chart:g}),switchSelection:async D=>await L(D),exportImage:async D=>await xD({chart:g,exportOptions:D}),setActionMode:(D,E)=>uu({chart:g,actionMode:D,cursorRange:E}),loaderHandle:d}}var EE="AM5C241025748",gt={SelectEnded:"selectended",DataValidated:"datavalidated",BoundsChanged:"boundschanged",PointerUp:"pointerup",FrameEnded:"frameended",Click:"click"},hm=new Map;function RE(r,e){return eA(r,e)}function ME(r,e){Jo(r,e)}function Jo(r,e){let t=hm.get(r)??{};hm.set(r,{...t,...e})}function eA(r,e){return hm.get(r)?.[e]}function oe(r,e){return eA(r,e)}function Fi(r,e){Jo(r,e)}function qe(r,e){return eA(r,e)}function Ei(r,e){Jo(r,e)}function ia(r,e){return eA(r,e)}function YA(r,e){Jo(r,e)}function Oa(r,e){return eA(r,e)}function PE(r,e){Jo(r,e)}function ir(r,e){return eA(r,e)}function Om(r,e){Jo(r,e)}function OE(r,e){return eA(r,e)}function HE(r,e){Jo(r,e)}function Hm(r){return r!=null&&!r.isDisposed()}function NE(r){let e;if(r!=null){let t=r;if(t instanceof _i)e=t.chart;else{let i=t.dataItem?.component;i instanceof _i&&(e=i.chart)}}return e}function ww(r){let e;if(r){let t=r.get("background")?.get("fill");if(t){let{r:i,g:s,b:a}=t;e=[Math.round(i),Math.round(s),Math.round(a),255]}}return e}function _w(r){let e=us(r),{r:t,g:i,b:s}=e;return{r:t,g:i,b:s}}function $E(r,e){e===!0&&r.setThemes([xB.new(r)])}function VE(r,e){e===!0&&r.setThemes([yB.new(r)])}function st(r){let e=us("#000000"),t=Bh;if(r!=null){let[i,s,a,n]=r;t=n/255,e=us(`rgba(${i}, ${s}, ${a}, ${t})`)}return{color:e,opacity:t}}function si(r,e){e===!1&&(!("isHiding"in r)||!r.isHiding())?(r.set("visible",!1),"hide"in r&&r.hide()):e!==!1&&(!("isShowing"in r)||!r.isShowing())&&(r.set("visible",!0),"show"in r&&r.show())}function Ft(r){let{childId:e,parent:t,useChildId:i}=r,s=i?e:rs(e,t.uid);return t.children.values.find(a=>a.get("id")===s)}function rs(r,e){return`${r}${e}`}function so(r,e=100){return setTimeout(()=>r(),e)}function PB(r){let e=Number.NaN;if(typeof r=="number")e=r;else if(r.includes("%")){let t=Number.parseFloat(r.trim().replace("%","").trim());Number.isFinite(t)&&(e=Ve(t))}return e}function XE(r,e){return e!==!0||r?.includes("Dot")===!0?"round":"square"}function KE(r,e){let t=r??$r.Solid,i=e??V.lineWidth,s={[$r.Solid]:[],[$r.Dot]:[1,i],[$r.DashDotDot]:[4*i,i,1,i,1,i],[$r.Dash]:[4*i,3*i],[$r.DashDot]:[4*i,3*i,1,3*i],[$r.Null]:[]};return s[t]??s[$r.Null]}function GE(r){let{root:e,fill:t,rotation:i,isLinePattern:s,chartBackgroundFill:a}=r,n;if(s!==!1){let{tileSize:o,diagonalTileSize:A}=V.patternLineProperties,l=i===45||i===135,h=l?A:o;n=ln.new(e,{width:h,height:h,strokeWidth:V.patternLineProperties.strokeWidth??1,gap:6,color:t,...l?{angle:i}:{rotation:i??Number.NaN},...a!==void 0&&{fill:a,fillOpacity:1}})}else{let o=a!==void 0?1:V.patternRectProperties.fillOpacity??Number.NaN;n=Xn.new(e,{width:V.patternRectProperties.width??Number.NaN,height:V.patternRectProperties.height??Number.NaN,strokeWidth:V.patternRectProperties.strokeWidth??Number.NaN,fillOpacity:o,color:a??t,fill:t,gap:1,maxWidth:V.patternRectProperties.rectWidth??Number.NaN,maxHeight:V.patternRectProperties.rectHeight??Number.NaN,rotation:i??Number.NaN})}return n}function WE(r){let{fill:e,root:t,style:i,chartBackgroundFill:s}=r,a,n,o=!0;switch(i){case ha.Horizontal:{n=0;break}case ha.Vertical:{n=90;break}case ha.ForwardDiagonal:{n=135;break}case ha.BackwardDiagonal:{n=45;break}case ha.Cross:{n=0,o=!1;break}case ha.DiagonalCross:{n=135,o=!1;break}case ha.Solid:}return n!==void 0&&t!==void 0&&(a=GE({root:t,fill:e,rotation:n,isLinePattern:o,chartBackgroundFill:s})),a}function Fw(r,e=0){return(r??e)%360}function Sw(r,e){let t={stroke:st().color,strokeWidth:V.lineWidth,strokeDasharray:[],linecap:e!==!0?"round":"square",strokeOpacity:Bh};if(r!=null){let i=st(r.color);t.stroke=i.color,t.strokeOpacity=i.opacity,r.width!==void 0&&(t.strokeWidth=r.width,t.strokeOpacity=r.width===0?0:i.opacity),r.style!==void 0&&r.style!==$r.Null&&(t.strokeDasharray=KE(r.style,t.strokeWidth),t.linecap=XE(r.style,e))}return t}function Lw(r,e){let t=r,[i,s,a,n]=r?.color??e??V.color,o=[i,s,a,n];return t==null?t={type:je.SLS,color:o}:t.color===void 0&&(t.color=o),Sw(t,!1)}function YE(r,e,t){let{color:i,outline:s,style:a}=r,n=st(i),o=Pf(a),A;return t!==void 0?A=st(t).color:o&&(A=st(V.backgroundColor).color),{pattern:WE({root:e,fill:n.color,style:a,chartBackgroundFill:A}),fill:n.color,outline:Lw(s,i),fillOpacity:n.opacity}}function zE(r){let{color:e,style:t,size:i,outline:s,xoffset:a,yoffset:n,angle:o}=r,A=Fw(o),l=t!==void 0?Dx(t,i):"",h=st(e),c=s;return t!==wl.Cross&&t!==wl.X&&i!==void 0&&i<=V.lineSeries.marker.markerSizeThresholdForTooltipDisplay&&(s?.width===void 0||s.width===0)&&(c={type:je.SLS,style:s?.style??$r.Solid,color:[0,0,0,0],width:V.lineSeries.marker.markerSizeThresholdForTooltipDisplay-i}),{path:l,fill:h.color,outline:Lw(c,e),xOffset:a??0,yOffset:n??0,angle:A,fillOpacity:h.opacity}}function jE(r){let e;switch(r){case mh.LineThrough:case mh.Underline:e=r;break;case mh.None:}return e}function ZE(r){return r===!0?"wrap":"none"}function Tw(r,e){let t=Ce;switch(r??e){case Vt.Right:t=Ae;break;case Vt.Left:t=Bi;break;case Vt.Center:case Vt.Justify:}return t}function Iw(r,e){let t=Ce;switch(r??e){case Tt.Top:t=Bi;break;case Tt.Bottom:t=Ae;break;case Tt.Baseline:case Tt.Middle:}return t}function qE(r){let{angle:e,mappedHAlignment:t,mappedVAlignment:i,isGuideLabel:s}=r,a=t,n=i,o=t,A=i;return(Math.abs(e)===270||Math.abs(e)===90)&&(s||(o=void 0,n=void 0),A===Bi?a=Ae:A===Ae?a=Bi:A===Ce&&(a=Ce)),{align:a,valign:n,horizontalCenter:o,verticalCenter:A}}function Nm(r){let{root:e,symbol:t,defaultToColorFromRamp:i,colorRampIndex:s,isChartFillSymbol:a=!1,chartBackgroundColor:n}=r,o;if(i===!0){let A=a?Ff:Bh;if(t.color=t.color??bA({colorIndex:s,opacity:A}),Vh(t)||Ag(t)){let{outline:l}=t;l!==void 0&&(l.color=l?.color??bA({colorIndex:s}),t.outline={...l})}}return Xb(t)?o=Sw(t,!0):Ag(t)?(t.style??=V.lineSeries.marker.markerStyle,t.size??=V.lineSeries.marker.markerBigSize,o=zE(t)):Vh(t)&&(o=YE(t,e,n)),o}function JE(r){let{input:e,isGuideLabel:t,defaults:i}=r,s=Fw(e.angle,i?.rotation),a=Tw(e.horizontalAlignment,i?.horizontalCenter),n=Iw(e.verticalAlignment,i?.verticalCenter),{align:o,valign:A,horizontalCenter:l,verticalCenter:h}=qE({angle:s,mappedHAlignment:a,mappedVAlignment:n,isGuideLabel:t});return{fill:st(e.color).color,fontFamily:e.font?.family??"Arial, Helvetica, sans-serif",fontSize:e.font?.size??V.generalFontSize,fontWeight:e.font?.weight??"400",textDecoration:jE(e.font?.decoration),align:o,valign:A,verticalCenter:h,horizontalCenter:l,text:Ws({textSymbol:e,format:"amChartsV5"}),angle:s,xOffset:e.xoffset??i?.dx??0,yOffset:e.yoffset??i?.dy??0,backgroundFill:st(e.backgroundColor).color,borderFill:st(e.borderLineColor).color,borderWidth:e.borderLineSize??1,haloColor:st(e.haloColor).color,rtl:(e.rightToLeft??ch(document.documentElement))==="rtl"?"rtl":"ltr",wrap:ZE(i?.wrap),maxWidth:i?.maxWidth??Number.NaN}}function Dw(r,e){e!==void 0&&(e.marginBottom!==void 0&&r.set("marginBottom",e.marginBottom),e.marginTop!==void 0&&r.set("marginTop",e.marginTop),e.marginRight!==void 0&&r.set("marginRight",e.marginRight),e.marginLeft!==void 0&&r.set("marginLeft",e.marginLeft),e.verticalCenter!==void 0&&r.set("y",Iw(e.verticalCenter)),e.horizontalCenter!==void 0&&r.set("x",Tw(e.horizontalCenter)),e.strokeWidth!==void 0&&r.get("background")?.set("strokeWidth",e.strokeWidth),e.paddingBottom!==void 0&&r.set("paddingBottom",e.paddingBottom),e.paddingTop!==void 0&&r.set("paddingTop",e.paddingTop),e.paddingLeft!==void 0&&r.set("paddingLeft",e.paddingLeft),e.paddingRight!==void 0&&r.set("paddingRight",e.paddingRight),e.maxWidth!==void 0&&r.set("maxWidth",e.maxWidth))}function NA(r){let{root:e,parent:t,defaults:i,index:s,id:a}=r,n=at.new(e,{text:"",textAlign:"center",background:Xt.new(e,{}),paddingBottom:0,paddingTop:0,paddingLeft:0,paddingRight:0});return a!==void 0&&n.set("id",a),Dw(n,i),t!==void 0&&t.children.insertIndex(s??t.children.length,n),n}function OB(r){let{label:e,offset:t,offsetProperty:i}=r;e.adapters.remove(i),(e instanceof at?[e]:e.entities).forEach(s=>{if(typeof t=="string"&&!Number.isFinite(Number(t))){let a=Sl(t);typeof a=="number"&&(a/=100,s.adapters.add(i,()=>(i==="dx"?s.width():s.height())*(a??0)))}else{let a=Number(t);Number.isFinite(a)&&s.set(i,a)}})}function gr(r){let{label:e,labelConfig:t,defaults:i,skipSettingText:s,skipSettingXAndY:a}=r,n=t?.visible??!0;if(e!==void 0&&!e.isDisposed()&&t!==void 0){let o=e instanceof at&&ir(e.uid,"isGuide"),A=JE({input:t.content,isGuideLabel:o,defaults:i});e.setAll({fill:A.fill,fontFamily:A.fontFamily,fontWeight:A.fontWeight,fontSize:A.fontSize,textDecoration:A.textDecoration,rotation:A.angle,direction:A.rtl,oversizedBehavior:A.wrap,maxWidth:A.maxWidth}),s||e.setAll({text:A.text}),a||(OB({label:e,offset:A.xOffset,offsetProperty:"dx"}),OB({label:e,offset:A.yOffset,offsetProperty:"dy"}),e.setAll({centerX:A.align,centerY:A.valign,x:A.horizontalCenter,y:A.verticalCenter})),e.get("background")?.setAll({strokeWidth:A.borderWidth,strokeOpacity:1}),e.set("visible",n),e instanceof at?si(e,n):e.entities.forEach(l=>{si(l,n)})}}function Ma(r){let{chart:e,label:t,labelType:i}=r,{legendTitle:s}=V.legendProperties,a=oe(e.uid,"config"),n=s.maxWidth??Number.NaN,o=Number.NaN;switch(i){case At.GuideLabel:if(e instanceof bt){let A=t.get("rotation");A===90||A===270?n=e.seriesContainer.height():n=e.seriesContainer.width()}break;case At.XAxisTitle:e instanceof bt&&(n=e.seriesContainer.width());break;case At.YAxisTitle:e instanceof bt&&(o=e.seriesContainer.height());break;case At.ChartTitle:case At.ChartSubTitle:case At.ChartFooter:n=e.chartContainer.width()-20;break;case At.LegendTitle:a?.legend?.position!==void 0&&(a?.legend?.position===Te.Top||a?.legend?.position===Te.Bottom)&&(n=e.chartContainer.width()-20);break}n>0&&t.setAll({maxWidth:n,oversizedBehavior:"wrap"}),o>0&&i===At.YAxisTitle&&t.setAll({maxHeight:o,oversizedBehavior:"wrap"})}function $A(r){let{chart:e}=r;Ma(r),e.events.onDebounced(gt.BoundsChanged,()=>Ma(r),V.debounceTime)}function kw(r){let{hour:e,minute:t=0,format:i,locale:s="en-US"}=r,a=i&&Object.keys(i).length>0?i:{hour:"numeric",minute:"2-digit",hour12:!1},n=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let o=new Date(2e3,0,1,e,t);n=new Intl.DateTimeFormat(s,a).format(o),n.includes(":")||n.startsWith("0")&&(n=n.slice(1))}return n}function Uw(r){let{weekdayNumber:e,format:t,locale:i="en-US",firstDayOfWeek:s=7}=r,a=t&&Object.keys(t).length>0?t:{weekday:"long"},n=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(s)&&s>0&&s<=7){let o=(e+s-1)%7,A=new Date(2e3,0,2+o);n=new Intl.DateTimeFormat(i,a).format(A)}return n}function Qw(r){let{monthNumber:e,format:t,locale:i="en-US"}=r,s=t&&Object.keys(t).length>0?t:{month:"long"},a=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let n=new Date(2e3,e-1);a=new Intl.DateTimeFormat(i,s).format(n)}return a}function jd(r,e){let t=e.get("axisFill"),i=e.get("label");if(t!==void 0&&i!==void 0){let s=ir(i.uid,"guideLabelConfig"),a=r.get("renderer")instanceof Qi,n=Math.round(t.width()),o=Math.round(t.height()),A=Math.round(i.height()),l=Math.round(i.width()),{horizontalAlignment:h,verticalAlignment:c}=s??{},d=0,u=0;if(a){let f=n!==0;switch(h){case Vt.Left:f?d=-l/2:d=-l;break;case Vt.Right:f?d=l/2:d=l;break;case Vt.Center:case Vt.Justify:break;default:f||(d=l/2);break}switch(c){case Tt.Bottom:f?u=-A:u=-A/2;break;case Tt.Middle:u=-o/2;break;case Tt.Top:default:u=-o+A/2;break}}else{let f=o!==0;switch(h){case Vt.Center:d=n/2;break;case Vt.Left:d=l/2;break;case Vt.Right:default:d=n-l/2;break}switch(c){case Tt.Bottom:f?u=o/2:u=A;break;case Tt.Top:f?u=-o/2+A/2:u=-A;break;case Tt.Middle:default:f||(u=-A/2);break}}i.setAll({dx:d,dy:u})}}function eR(r){let{axis:e,guide:t,label:i}=r,{chart:s}=e;if(s){let a=e.get("renderer")instanceof Qi?s.yAxes.getIndex(0):s.xAxes.getIndex(0);a&&(a.events.onDebounced(gt.BoundsChanged,()=>jd(e,t),V.debounceTime),e.events.onDebounced(gt.BoundsChanged,()=>jd(e,t),V.debounceTime))}i.setAll({paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0})}function tR(r){let{guide:e,axis:t,guideLabelConfig:i}=r,s=e.get("label");if(s!==void 0){Dw(s),Om(s.uid,{isGuide:!0,guideLabelConfig:i});let{chart:a}=t;a!==void 0&&$A({chart:a,label:s,labelType:At.GuideLabel}),eR({axis:t,guide:e,label:s})}}function iR(r){let{axis:e,guide:t,guideConfig:i,guideType:s}=r,a=t?.get("label");if(a!==void 0)if(i.label!==void 0){let n=e.get("renderer")instanceof Qi,o;e instanceof ss||(n?s===je.SFS?o=V.verticalSurfaceGuideLabels:o=V.verticalLineGuideLabels:s===je.SFS?o=V.horizontalSurfaceGuideLabels:o=V.horizontalLineGuideLabels),Om(a.uid,{guideLabelConfig:i.label});let A={type:Q.Text,visible:i.visible,content:{...i.label,verticalAlignment:Tt.Middle,horizontalAlignment:Vt.Center,rightToLeft:a.get("direction")==="rtl"}};gr({label:a,labelConfig:A,defaults:o});let l=i.label?.text;typeof l=="string"&&/<\/?[a-z][\s\S]*>/iu.test(l)&&(a.set("html",mi(l)),a.set("text","")),a.events.once(gt.BoundsChanged,()=>{jd(e,t)}),jd(e,t)}else si(a,!1)}function sR(r){r.set("themeTags",[]);let e=r.dataItem?.component;e instanceof nt?(e.uid!==void 0?qe(e.uid,"bulletTemplate"):void 0)?.adapters?.remove?.("fill"):e instanceof _t?e.columns?.template?.adapters?.remove?.("fill"):e instanceof bi&&e.slices?.template?.adapters?.remove?.("fill")}function Ew(r){let{element:e,fill:t,fillOpacity:i,pattern:s,chartBackgroundFill:a}=r,n=e.get("tooltip"),o=!0,A=e;if(s!==void 0){n!==void 0&&(o=!1,n.get("background")?.set("fill",t)),A.set("fillPattern",s);let l=a??t;A.set("fill",l),A.set("fillOpacity",1)}else A.set("fill",t),A.remove("fillPattern"),A.set("fillOpacity",i);sR(A),n!==void 0&&n.set("getFillFromSprite",o)}function Zd(r,e){r.setAll({stroke:e.stroke,strokeDasharray:e.strokeDasharray,strokeOpacity:e.strokeOpacity,strokeWidth:e.strokeWidth,lineCap:e.linecap})}function Rw(r){let{element:e,markerSymbol:t,visible:i,defaultToColorFromRamp:s,colorRampIndex:a}=r,n;return e!==void 0&&t!==void 0&&(n=Nm({symbol:t,defaultToColorFromRamp:s,colorRampIndex:a}),n!==void 0&&(e.setAll({svgPath:n.path,rotation:n.angle,dx:n.xOffset,dy:n.yOffset}),Ew({element:e,fill:n.fill,fillOpacity:n.fillOpacity}),Zd(e,n.outline)),si(e,i)),n}function ro(r){let{root:e,element:t,fillSymbol:i,visible:s,defaultToColorFromRamp:a,colorRampIndex:n,isChartFillSymbol:o,keepCurrentVisibility:A,chartBackgroundColor:l}=r,h=Pf(i?.style),c=NE(t),d=l??(h?ww(c)??[...V.backgroundColor]:void 0),u;if(t!==void 0&&!t.isDisposed()){if(i!==void 0&&(u=Nm({root:e,symbol:i,defaultToColorFromRamp:a,colorRampIndex:n,isChartFillSymbol:o,chartBackgroundColor:d}),u!==void 0)){let f=d!==void 0?st(d).color:void 0;Ew({element:t,fill:u.fill,fillOpacity:u.fillOpacity,pattern:u.pattern,chartBackgroundFill:f}),Zd(t,u.outline)}A||si(t,s)}return u}function ea(r){let{element:e,lineSymbol:t,visible:i,defaultToColorFromRamp:s,colorRampIndex:a}=r,n;return e!==void 0&&!e.isDisposed()&&(t!==void 0&&(n=Nm({symbol:t,defaultToColorFromRamp:s,colorRampIndex:a}),n!==void 0&&(Zd(e,n),e instanceof nt&&Zd(e.strokes.template,n))),si(e,i)),n}function er(r){let{root:e,element:t,seriesIndex:i,seriesSymbol:s,isChartFillSymbol:a,colorMatch:n,rendererSymbol:o,keepCurrentVisibility:A}=r,l,h;n&&o!==void 0&&(l=Ab({rendererSymbol:o,seriesSymbol:s,colorIndex:i}));let c={root:e,element:t,defaultToColorFromRamp:!0,colorRampIndex:i},d=l??{...s};switch(s.type){case je.SLS:h=ea({...c,lineSymbol:d});break;case je.SFS:h=ro({...c,fillSymbol:d,isChartFillSymbol:a,keepCurrentVisibility:A});break;case je.SMS:h=Rw({...c,markerSymbol:d});break}return{symbolWithColorInfo:d,stylingInfo:h}}function HB(r,e){if(e!==void 0){let{elementColor:t,elementOutlineColor:i,elementOutlineWidth:s,rotation:a,transformation:n}=e,{opacity:o,scale:A}=n??{};t!==void 0&&r.setAll({fill:st(t).color,fillOpacity:1}),i!==void 0&&r.setAll({stroke:st(i).color,strokeOpacity:1}),s!==void 0&&r.setAll({strokeWidth:s}),a!==void 0&&r.setAll({rotation:a}),A!==void 0&&r.setAll({scale:A}),o!==void 0&&(r.setAll({fillOpacity:(r.get("fillOpacity")??1)*o}),r.setAll({strokeOpacity:(r.get("strokeOpacity")??1)*o}))}}async function rR(r=Bl(document.documentElement).t9nLocale){let e=await import("./I3BNBZ4D.js");switch(r){case"ar":e=await import("./6HUDF5Q2.js");break;case"bs":e=await import("./LOX7MXL4.js");break;case"bg":e=await import("./QF7PCBW5.js");break;case"ca":e=await import("./FSNQ3YXX.js");break;case"cs":e=await import("./MS6EYP4R.js");break;case"da":break;case"de":e=await import("./NGLXQHZ2.js");break;case"el":e=await import("./DNSUOJXJ.js");break;case"es":e=await import("./ZL5EGDOW.js");break;case"et":e=await import("./BUCYRXMT.js");break;case"fi":e=await import("./GWPFABGL.js");break;case"fr":e=await import("./JM6E3U5J.js");break;case"he":e=await import("./3VMIFF7C.js");break;case"hr":e=await import("./THJTENN5.js");break;case"hu":e=await import("./5TOYNVTW.js");break;case"id":e=await import("./B4ULOSFG.js");break;case"it":e=await import("./TX2SYGTH.js");break;case"ja":e=await import("./AVU2CHAB.js");break;case"ko":e=await import("./FLSUJTUZ.js");break;case"lt":e=await import("./EIIQ2CSC.js");break;case"lv":e=await import("./BY77PBZ2.js");break;case"no":e=await import("./F57IRWBF.js");break;case"nl":e=await import("./NPVXLEZW.js");break;case"pl":e=await import("./COQ55XOW.js");break;case"pt-BR":e=await import("./GR4BZF3L.js");break;case"pt-PT":e=await import("./NSRIVIOH.js");break;case"ro":e=await import("./47EOUNYO.js");break;case"ru":e=await import("./HJW6UNEH.js");break;case"sr":e=await import("./G2L5FYWK.js");break;case"sk":e=await import("./FPBBWTJ7.js");break;case"sl":e=await import("./S5EI7T2D.js");break;case"sv":e=await import("./RHGKKMJG.js");break;case"th":e=await import("./3OGKV4KZ.js");break;case"tr":break;case"uk":e=await import("./EVHJVY4I.js");break;case"vi":e=await import("./ALRIN5E5.js");break;case"zh-CN":e=await import("./SOIF6AMX.js");break;case"zh-HK":e=await import("./YQJLA77R.js");break;case"zh-TW":e=await import("./YQJLA77R.js");break}let t=(await yC(r)).customAmchartsStrings;return{...e.default,...t}}function Mr(r){let{root:e,type:t,intlOptions:i,formatLocale:s}=r,a;switch(t){case Q.NumberAxisFormat:{a=On.new(e,{}),a.set("intlLocales",s),a.set("numberFormat",i);break}case Q.DateAxisFormat:{a=Mo.new(e,{}),a.set("intlLocales",s);break}}return a}function aR(r,e,t){let i=e-r,s=[];if(i!==0){if(t===1)s=[r];else if(t>1){let a=i/(t-1);s=[...zx(r,e,a),e]}}return s}function nR({x:r,mean:e,stddev:t,scalingFactor:i}){let s=-1/(2*t**2);return(i??1)*Math.exp(s*(r-e)**2)}function oR(r){let e=0;if(r.length>0)for(let t=0;t<r.length;t+=1)r[t].count>e&&(e=r[t].count);return e}function Mw(r){let e=!1,t;if(r.target.dataItem?.component instanceof _i?{chart:t}=r.target.dataItem.component:(r.target instanceof Er||r.target instanceof Ua)&&({chart:t}=r.target),t instanceof bt||t instanceof is){let i=oe(t.uid,"actionMode");if(i!==void 0){let{originalEvent:s}=r;e=i===et.MultiSelection||i===et.MultiSelectionWithCtrlKey&&("ctrlKey"in s&&s.ctrlKey||"metaKey"in s&&s.metaKey)}}return e}function ms(r){let{element:e,selected:t,multiSelect:i,isDateOrCategoryAxis:s,backToDefaultState:a}=r,n=!1;if(e!==void 0){let o=Oa(e.uid,"selected")??!1;n=o,i!==!0?s===!0?n=o?!1:o!==t:n=t:n=o!==t;let A=a===!0?ps.Default:ps.CustomInactive;e.states.apply(ps.Default),e.states.apply(n?ps.CustomActive:A),n!==o&&(PE(e.uid,{selected:n}),n&&(e.toFront(),e.dataItem?.component instanceof _i&&e.dataItem.component.toFront()))}return n}function AR(r,e){let t=oe(e.chart?.uid??Number.NaN,"actionMode"),i=Mw(r);return t===et.MonoSelection||t===et.MultiSelectionWithCtrlKey&&!i}function Ri(r,e){let{selectedElementsTheme:t,nonSelectedElementsTheme:i}=e??V.selectionTheme??{},s=r.states.create(ps.CustomActive,{}),a=r.states.create(ps.CustomInactive,{});HB(s,t),HB(a,i)}function VA(r){let{value:e,valueFormat:t,formatLocale:i,root:s}=r,a=e?.toString(),n=Mr({type:t.type,intlOptions:t.intlOptions,formatLocale:i,root:s});return typeof e=="number"&&t.type===Q.NumberAxisFormat?a=n.format(e,da(t)):(typeof e=="number"||e instanceof Date)&&t.type===Q.DateAxisFormat&&(a=n.format(e,da(t))),a}async function lR(r){let{root:e,exportOptions:t}=r,{format:i,quality:s=1,...a}=t,n=s<0||s>1?1:s,o=await Zn.new(e,{}).exportImage(i,{quality:n,...a}),A=IC(o),l=i==="jpg"?"image/jpeg":"image/png";return new File([A],`chart.${i}`,{type:l})}function PA(r,e){if(r!==void 0&&e!==void 0&&(r.states.lookup("default")?.setAll({fill:e.fill,fillOpacity:e.fillOpacity}),e.outline!==void 0)){let{outline:t}=e;r.states.lookup("default")?.setAll({stroke:t.stroke,strokeOpacity:t.strokeOpacity,strokeDasharray:t.strokeDasharray,lineCap:t.linecap,strokeWidth:t.strokeWidth})}}function Pw(r){let{numberFormatter:e,dataLabelsConfigContent:t,stackedType:i,externalDataLabelFormatter:s}=r;return(a,n)=>{let o=i===Qt.Stacked100&&n!==void 0?n:a;return e.get("numberFormat").style==="percent"&&(o/=100),Ws({textSymbol:{...t,text:e.format(o)},format:s===void 0?"amChartsV5":"html"})}}function cR(r,e){let t=r.dataItem,i;switch(e){case Q.LineSeries:case Q.ScatterSeries:i=t.get("point");break;case Q.HistogramSeries:case Q.BarSeries:case Q.HeatSeries:i=t.get("graphics");break}let s=i??r,a=i?.x??s?.get("x")??0,n=i?.y??s?.get("y")??0;return{x:a,y:n}}function Ow(r){let{label:e,chart:t,seriesType:i}=r,s=n=>{if(t instanceof bt){let o=cR(n,i),A=t.plotContainer,l=A.x(),h=A.y(),c=o.x<l||o.x>l+A.width()||o.y<h||o.y>h+A.height();n.setAll({visible:!c,forceHidden:c})}},a=ls((n,o)=>{o&&s(o)},V.debounceTime);e.on("x",a),e.on("y",a)}function hR(r){let{series:e,label:t,isHeatChart:i}=r;t.adapters.add("y",(s,a)=>{let{chart:n}=e,o=n!==void 0?oe(n.uid,"isRotated"):!1,A=typeof s=="number"?s:s?.value,l=a.dataItem;if(l!==void 0&&A!==void 0&&A!==null){let h=l?.get("valueY"),c=a.localBounds().bottom;if(o!==!0){let d=V.dataLabelNegative?.paddingTop??0;if(e.get("stacked")||i)if(h<0)A+=c-d;else{let u=i?V.heatChartLabelPadding.paddingTop:0;A+=c/2+u}}else{let d=V.rotatedChartPadding?.paddingTop??0;A+=c/2+d}}return A}),t.adapters.add("x",(s,a)=>{let{chart:n}=e,o=n!==void 0?oe(n.uid,"isRotated"):!1,A=typeof s=="number"?s:s?.value,l=a.dataItem;if(l!==void 0&&A!==void 0&&A!==null&&o===!0){let h=l?.get("valueX"),c=a.width()/2,d=V.rotatedChartPadding?.paddingRight??0,u=c+d;e.get("stacked")||(h<0?A-=u:A+=u)}return A})}function dR(r){let{series:e,isRotated:t,externalDataLabelFormatter:i}=r;e.bullets.push(()=>{let s=oe(e.chart?.uid??Number.NaN,"config")?.series?.find(A=>A.id===e.get("id"))?.dataLabels??r.dataLabelsConfig,a=e.get("stacked"),n=Fs.new(e.root,{locationY:!a&&!t?1:void 0,locationX:!a&&t?1:void 0,sprite:at.new(e.root,{text:t?"{valueX}":"{valueY}",populateText:!0,centerY:Ae,centerX:Bi,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:st(s?.content.color).color,fontSize:s?.content.font?.size})}),o=n.get("sprite");if(o){let A=o;Nw({dataLabel:A,series:e,externalDataLabelFormatter:i}),$w({...r,dataLabelsConfig:s,dataLabel:A,dataLabelFormatter:Pw})}return n})}function $m(r,e=1){r.bullets.removeIndex(e)}function Hw(r){let{textBackgroundColor:e,chartBackgroundColor:t,fillOpacity:i}=r,s;return kl({r:e.r,g:e.g,b:e.b,a:i})?s=kl({r:t.r,g:t.g,b:t.b,a:i})?st(Sx).color:t:s=kl({r:t.r,g:t.g,b:t.b,a:i})?t:st(Fx).color,s}function uR(r){let{dataLabel:e,labelConfigColor:t,seriesColor:i,backgroundColor:s,autoInverseDataLabelTextColor:a,isHeatChart:n}=r,o=s??st(V.backgroundColor).color;a===!0&&i&&e.adapters.add("fill",(A,l,h)=>{let c=t??l.text.get("fill"),d=(l.dataItem?.component).get("stacked"),u=c;if(c&&(d||n)){let f=l.dataItem.get("graphics"),m=f?.get("fillOpacity");u=Hw({textBackgroundColor:f?.get("fill")??i,chartBackgroundColor:o,fillOpacity:m})}return u})}function Nw(r){let{dataLabel:e,series:t,externalDataLabelFormatter:i}=r;e.adapters.remove("text"),e.adapters.remove("html");let s=i!==void 0?"html":"text";mc({label:e,labelOutputProp:s}),e.adapters.add(s,(a,n)=>{let o=a??"",A=n.dataItem,l=qe(t.uid,t instanceof _t?"barSeriesDataLabelFormatter":"lineSeriesDataLabelFormatter");if(l!==void 0&&t.chart&&A){let h=oe(t.chart.uid,"isRotated"),c=h===!0?A.get("valueX"):A.get("valueY"),d=h===!0?A.get("valueXTotalPercent"):A.get("valueYTotalPercent"),u=t.get("valueYShow")==="valueYTotalPercent"||t.get("valueXShow")==="valueXTotalPercent";o=l(u?d:c)}return s==="html"?mi(o):o})}function mc(r){let{label:e,labelOutputProp:t}=r,i=e;t==="html"?i.set("html",V.htmlEmptyContent):i.set("html",void 0)}function fu(r){let{series:e,seriesConfig:t,dataLabel:i,labelDefaults:s,dataLabelsConfig:a,yAxisValueFormat:n,stackedType:o,isRotated:A,seriesType:l,defaultDataLabelFormatter:h,externalDataLabelFormatter:c}=r,{chart:d}=e;if(i!==void 0){let u=c,f=a?.content??{type:je.TS};if(c===void 0&&h!==void 0&&n?.type===Q.NumberAxisFormat&&d){let w=oe(d.uid,"formatLocale"),_=Mr({root:d.root,type:n.type,formatLocale:w,intlOptions:n.intlOptions});u=h({numberFormatter:_,dataLabelsConfigContent:f,stackedType:o,externalDataLabelFormatter:c})}let m;switch(l){case Q.BarSeries:m="barSeriesDataLabelFormatter";break;case Q.LineSeries:m="lineSeriesDataLabelFormatter";break;case Q.HistogramSeries:m="histogramDataLabelFormatter";break;case Q.ScatterSeries:m="scatterplotDataLabelFormatter";break;case Q.HeatSeries:m="heatChartDataLabelFormatter";break}m!==void 0&&Ei(e.uid,{[m]:u}),a!==void 0&&(l===Q.HeatSeries?a.content.text="{value}":a.content.text=A===!0?"{valueX}":"{valueY}",a.visible=a.visible!==!1),gr({label:i,labelConfig:a,defaults:s??V.dataLabel,skipSettingText:!0});let g=e.get("stacked"),v=g&&l===Q.BarSeries&&t?.hideOversizedStackedLabels!==!1,B=!g&&l===Q.BarSeries&&t?.hideOversizedSideBySideLabels===!0;B||v?i.setAll({oversizedBehavior:"hide",maxWidth:void 0,maxHeight:B?100:void 0}):i.setAll({oversizedBehavior:"none"})}}function fR(r){let{series:e,labelDefaults:t,externalDataLabelFormatter:i}=r;e.dataItems.forEach(s=>{let a=s.bullets?.[1];if(a){a.set("locationY",e.get("stacked")?void 0:1);let n=a.get("sprite");n&&(Nw({dataLabel:n,series:e,externalDataLabelFormatter:i}),fu({...r,dataLabel:n,labelDefaults:t,defaultDataLabelFormatter:Pw,externalDataLabelFormatter:i}))}})}function $w(r){let{series:e,dataLabelsConfig:t,autoInverseDataLabelTextColor:i,externalDataLabelFormatter:s,labelDefaults:a,seriesType:n,dataLabel:o,isHeatChart:A,dataLabelFormatter:l}=r;o&&(e.chart&&t?.visible&&Ow({label:o,chart:e.chart,seriesType:n}),hR({series:e,label:o,isHeatChart:A}),fu({...r,dataLabel:o,labelDefaults:a,defaultDataLabelFormatter:l,externalDataLabelFormatter:s}),uR({dataLabel:o,labelConfigColor:st(t?.content.color).color,seriesColor:e.get("fill"),backgroundColor:e.chart?.get("background")?.get("fill"),autoInverseDataLabelTextColor:i,isHeatChart:A}))}function Vw(r){let{series:e,dataLabelsConfig:t}=r,i=t?.visible,s=e.bullets.hasIndex(1);i!==!0?s&&$m(e):(s||dR(r),fR(r))}function gR(r){let{dataLabel:e,series:t,externalDataLabelFormatter:i}=r;e.adapters.remove("text"),e.adapters.remove("html");let s=i!==void 0?"html":"text";mc({label:e,labelOutputProp:s}),e.adapters.add(s,(a,n)=>{let o=a??"",A=n.dataItem,l=qe(t.uid,"heatChartDataLabelFormatter"),h=oe(t.chart?.uid??NaN,"config");if(l!==void 0&&A){let c=A.get("value"),d=A.get("categoryX"),u=A.get("categoryY");c===null?o=h?.series[0].emptyCells?.text??V.heatChart.emptyCells?.text??"":c!==void 0&&(o=l(c,d,u))}return s==="html"?mi(o):o})}function pR(r){let{numberFormatter:e,dataLabelsConfigContent:t}=r;return i=>Ws({textSymbol:{...t,text:e.format(i)},format:"amChartsV5"})}function mR(r){let{series:e,externalDataLabelFormatter:t}=r;e.bullets.push(()=>{let i=oe(e.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??r.dataLabelsConfig,s=Fs.new(e.root,{sprite:at.new(e.root,{text:"{value}",populateText:!0,centerY:Ae,centerX:Bi,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:st(i?.content.color).color,fontSize:i?.content.font?.size,oversizedBehavior:"hide"})}),a=s.get("sprite");if(a){let n=a;gR({dataLabel:n,series:e,externalDataLabelFormatter:t}),$w({...r,dataLabelsConfig:i,dataLabel:n,isHeatChart:!0,dataLabelFormatter:pR}),n.set("oversizedBehavior","hide"),n.set("maxWidth",void 0),n.set("maxHeight",void 0)}return s})}function yR(r){let{series:e,dataLabelsConfig:t}=r,i=t?.visible;e.bullets.hasIndex(0)&&$m(e,0),i===!0&&mR(r)}var ji={nameField:"name",fillField:"fill",strokeField:"stroke",fillOpacityField:"fillOpacity",strokeOpacityField:"strokeOpacity"};function Vm(r,e){let t=Bc(r);r.columns.template.set("tooltip",t);let i=e!==void 0||qe(r.uid,"hasExternalTooltipFormatter")===!0,s=i?"tooltipHTML":"tooltipText";Pa({element:r.columns.template,labelOutputProp:s}),r.columns.template.setAll({tooltipPosition:V.columnTooltipPosition}),r.columns.template.adapters.remove("tooltipText"),r.columns.template.adapters.remove("tooltipHTML"),r.columns.template.adapters.add(s,(a,n)=>ta({element:n,series:r,isHTML:i})),r.columns.each(a=>{a.set("tooltip",t),Pa({element:a,labelOutputProp:s}),a.adapters.remove("tooltipText"),a.adapters.remove("tooltipHTML"),a.adapters.add(s,(n,o)=>ta({element:o,series:r,isHTML:i}))})}function Xw(r){let{axesConfig:e,currentSeries:t,tooltipValueFormat:i}=r,{root:s,chart:a}=t;if(a){let n=e?.[1]?.valueFormat,o=e?.[0].valueFormat,A=oe(a.uid,"formatLocale");if(n?.type===Q.NumberAxisFormat){let l=Mr({root:s,type:n.type,formatLocale:A,intlOptions:n.intlOptions});Ei(t.uid,{tooltipValueYNumberFormatCallback:h=>l.format(h,i?.intlOptions??n.intlOptions)})}if(o?.type===Q.NumberAxisFormat){let l=Mr({root:s,type:o.type,formatLocale:A,intlOptions:o.intlOptions});Ei(t.uid,{tooltipValueXNumberFormatCallback:h=>l.format(h,i?.intlOptions??o.intlOptions)})}}}function xR(r){let{axes:e,seriesConfig:t,series:i,fieldList:s,utilsStrings:a}=r,{dataTooltipVisible:n}=t,o,A=oe(i.chart?.uid??0,"rtl")??!1,l=Gs(A);return n===!1?o=(h,c,d)=>"":o=(h,c,d)=>{let u=vi(s,t.x),f=HA(u,e?.[0].title?.content?.text),m=HA(a?.statistics.count??"",e?.[1]?.title?.content?.text??""),g=qe(i.uid,"tooltipValueXNumberFormatCallback"),v=qe(i.uid,"tooltipValueYNumberFormatCallback"),B=g?g(c):c,w=g?g(d):d,_=v?v(h):h;return`[bold]${f}${l} [/]${B} - ${w}
|
|
26
|
+
[bold]${m}${l} [/]${_}`},o}function bR(r){let{seriesConfig:e,series:t,tooltip:i}=r,{dataTooltipVisible:s}=e;if(s!==!1){let a=qe(t.uid,"histogramTooltipFormatter");if(a!==void 0){let n=i.dataItem;if(n!==void 0){let o=n.dataContext;return a(n.get("valueY")??0,o.minValue,o.maxValue)}}}return""}function Xm(r,e){let t=Bc(r);r.columns.template.set("tooltip",t);let i=e!==void 0||qe(r.uid,"hasExternalTooltipFormatter")===!0,s=i?"tooltipHTML":"tooltipText";Pa({element:r.columns.template,labelOutputProp:s}),r.columns.template.setAll({tooltipPosition:V.columnTooltipPosition}),r.columns.template.adapters.remove("tooltipText"),r.columns.template.adapters.remove("tooltipHTML"),r.columns.template.adapters.add(s,(a,n)=>ta({element:n,series:r,isHTML:i})),r.columns.each(a=>{a.set("tooltip",t),a.set("tooltipPosition","pointer"),Pa({element:a,labelOutputProp:s}),a.adapters.remove("tooltipText"),a.adapters.remove("tooltipHTML"),a.adapters.add(s,(n,o)=>ta({element:o,series:r,isHTML:i}))})}function vR(r){let{series:e,tooltipFormatter:t,axesConfig:i,seriesConfig:s}=r,a=qe(e.uid,"hasExternalTooltipFormatter")===!0,n=t!==void 0;Xw({axesConfig:i,currentSeries:e,tooltipValueFormat:s.dataTooltipValueFormat}),Ei(e.uid,{histogramTooltipFormatter:t??xR(r),hasExternalTooltipFormatter:n}),a!==n&&Xm(e,t)}function Km(r){let{pieChart:e,valueIntlOptions:t,percentageIntlOptions:i,displayNumericValue:s,displayPercentage:a,valuePrefix:n,valueSuffix:o,percentagePrefix:A,percentageSuffix:l}=r,{root:h}=e,c=oe(e.uid,"formatLocale"),d=Mr({root:h,type:Q.NumberAxisFormat,intlOptions:t,formatLocale:c}),u=Mr({root:h,type:Q.NumberAxisFormat,intlOptions:{...i,style:"percent"},formatLocale:c}),f=Gs(oe(e.uid,"rtl")??!1," ");return(m,g,v)=>{let B="";if(g!==void 0&&v!==void 0){let w=`${n??""}${d.format(g)}${o??""}`,_=`${A??""}${u.format(Math.abs(v/100))}${l??""}`;Number.isFinite(g)?s===!0&&a===!0?B=`${_}${f}(${w})`:s===!0?B=w:a===!0&&(B=_):B=""}return B}}function BR(r,e){let t=(f,m,g)=>"",{numericValueFormat:i,percentValueFormat:s,dataTooltipValueFormat:a,dataTooltipPercentFormat:n,displayCategoryOnTooltip:o,displayNumericValueOnTooltip:A,displayPercentageOnTooltip:l,valuePrefix:h,valueSuffix:c,percentagePrefix:d,percentageSuffix:u}=e;return t=(f,m,g)=>{let v="",{chart:B}=r;if(B){let w=Km({pieChart:B,valueIntlOptions:(a??i)?.intlOptions,percentageIntlOptions:(n??s)?.intlOptions,displayNumericValue:A??V.pieChart.displayNumericValueOnTooltip,displayPercentage:l??V.pieChart.displayPercentageOnTooltip,valuePrefix:h,valueSuffix:c,percentagePrefix:d,percentageSuffix:u})("",m,g),_=!Mt(f)&&(o??V.pieChart.displayCategoryOnTooltip);if(_&&(v=`[bold]${f}[/]`),!Mt(w)){let L=Sh(w);v=_?`${v}
|
|
27
|
+
${L}`:L}}return v},t}function CR(r){let e=r.get("tooltip");if(e!==void 0){let t=r.get("fill");t instanceof ln&&(t=t.get("fill")),e.get("background")?.set("fill",t)}}function wR(r){let{pieSeries:e,tooltip:t}=r,i="",{chart:s}=e;if(s!==void 0&&t!==void 0){let a=oe(s.uid,"config"),{dataTooltipVisible:n}=a?.series[0]??{};if(n!==!1){let o=qe(e.uid,"pieChartTooltipFormatter");if(o){let A=t.dataItem;if(A!==void 0){let l=A,h=l.get("category")??"",c=A.dataContext,d=Xr(c);d===void 0&&(d=h);let u=l.get("value"),f=l.get("valuePercentTotal");typeof u=="number"&&u!==0&&a?.series?.[0]?.dataTooltipVisible!==!1?(t.set("disabled",!1),CR(l.get("slice")),i=o(h,u,f,d)):t.set("disabled",!0)}}}else return}return i}function Gm(r,e){let t=r.slices.template,i=Bc(r),s=e!==void 0||qe(r.uid,"hasExternalTooltipFormatter")===!0,a=s?"tooltipHTML":"tooltipText";Pa({element:t,labelOutputProp:a}),t.setAll({tooltip:i,tooltipPosition:V.sliceTooltipPosition}),t.adapters.remove("tooltipText"),t.adapters.remove("tooltipHTML"),t.adapters.add(a,(n,o)=>{let A=" ";try{let l=o.get("tooltip");l&&(l.dataItem=o.dataItem,A=ta({element:l,series:r,isHTML:s}))}catch{}return A}),t.set(a," "),r.slices.each(n=>{n.set("tooltip",i),n.set("tooltipPosition","fixed"),Pa({element:n,labelOutputProp:a}),n.adapters.remove("tooltipText"),n.adapters.remove("tooltipHTML"),n.adapters.add(a,(o,A)=>{let l=" ";try{let h=A.get("tooltip");h&&(h.dataItem=A.dataItem,l=ta({element:h,series:r,isHTML:s}))}catch{}return l})})}function _R(r){let{series:e,seriesConfig:t,tooltipFormatter:i}=r,s=qe(e.uid,"hasExternalTooltipFormatter")===!0,a=i!==void 0;Ei(e.uid,{pieChartTooltipFormatter:i??BR(e,t),hasExternalTooltipFormatter:a}),s!==a&&Gm(e,i)}function FR(r){let{axesConfig:e,seriesConfig:t,series:i,fieldList:s}=r,{dataTooltipVisible:a}=t,n,{chart:o}=i,A=o?.uid!==void 0?oe(o.uid,"rtl"):!1,l=Gs(A??!1);return a===!1?n=(h,c,d,u)=>"":n=(h,c,d,u)=>{let f=vi(s,t.x),m=Mt(e?.[0].title?.content?.text)?f:e?.[0].title?.content?.text,g=vi(s,t.y),v=Mt(e?.[1]?.title?.content?.text)?g:e?.[1]?.title?.content?.text,B=qe(i.uid,"tooltipValueXNumberFormatCallback"),w=B?B(h):h,_=qe(i.uid,"tooltipValueYNumberFormatCallback"),L=_?_(c):c,k=`[bold]${m}${l} [/]${w}
|
|
28
|
+
[bold]${v}${l} [/]${L}`;if(d!==void 0&&t.sizePolicy?.field!==void 0){let D=vi(s,t.sizePolicy?.field),E=_?_(d):d;k+=`
|
|
29
|
+
[bold]${D}${l} [/]${E}`}return t.additionalTooltipFields?.forEach(D=>{let E=vi(s,D),O=s?.find(S=>S.name===D),I=u?.[D],M="";if(I!=null&&I!==void 0&&O)if(Zx(O)&&typeof I=="number")M=String(_?_(I):I);else if(qx(O)){let S=new Date(I),P=o?oe(o.uid,"formatLocale"):void 0;M=new Intl.DateTimeFormat(P,{}).format(S)}else O.type===Cl.String&&typeof I=="string"&&(M=I);k+=A?`
|
|
30
|
+
${M}[bold]${E}${l} [/]`:`
|
|
31
|
+
[bold]${E}${l} [/]${M}`}),k},n}function SR(r){let{seriesConfig:e,markerSeries:t,tooltip:i}=r,{x:s,y:a,sizePolicy:n,dataTooltipVisible:o}=e,{field:A}=n??{};if(o!==!1){let l=qe(t.uid,"scatterplotTooltipFormatter");if(!i.isHidden()&&l){let{dataItem:h}=i;if(h){let c=h.dataContext;if(c){let d=s in c&&typeof c[s]=="number"?Number(c[s]):Number.NaN,u=a in c&&typeof c[a]=="number"?Number(c[a]):Number.NaN,f=A&&A in c&&typeof c[A]=="number"?Number(c[A]):void 0;return l(d,u,f,c)}}}}}function LR(r){let{axesConfig:e,series:t,seriesConfig:i,tooltipFormatter:s}=r;Xw({axesConfig:e,currentSeries:t,tooltipValueFormat:i.dataTooltipValueFormat}),Ei(t.uid,{scatterplotTooltipFormatter:s??FR(r),hasExternalTooltipFormatter:s!==void 0});let a=qe(t.uid,"bulletTemplate");a&&zA({series:t,element:a,tooltipFormatter:s})}function NB(r,e){if(e!==void 0){let t=_w(e);t!==void 0&&r.label.setAll({fill:kl({r:t.r,g:t.g,b:t.b,a:1})?us("#000000"):us("#ffffff")})}}function Kw(r){r.label.setAll({paddingTop:4,paddingBottom:4})}function Gw(r,e){let{dataTooltipStyleReversed:t,dataTooltipStyle:i}=V;if(e===!0){let s=r.get("background")?.get("fill");if(s!==void 0)if(NB(r,r.get("background")?.get("fill")?.toCSS()),t?.color!==void 0&&s.toCSSHex()!==st(t.color).color.toCSSHex()){r.get("background")?.setAll({fill:st(t.color).color,stroke:s,strokeWidth:t.outline?.width??Number.NaN});let a=r.get("background");if(a instanceof Re&&a.parent instanceof wi){let n=a.parent.get("tooltipTarget");a.set("strokeOpacity",n instanceof Re?n.get("fillOpacity"):void 0)}r.get("background")?.adapters.enable("fillOpacity")}else s.toCSSHex()===st(t?.color).color.toCSSHex()&&r.get("background")?.adapters.disable("fillOpacity")}else NB(r,r.get("background")?.get("fill")?.toCSS()),r.setAll({getStrokeFromSprite:!0,getFillFromSprite:!0}),r.get("background")?.adapters.enable("fillOpacity"),r.get("background")?.setAll({strokeWidth:i?.outline?.width??Number.NaN,stroke:st(i?.outline?.color).color})}function TR(r){r.get("background")?.adapters.add("fillOpacity",(e,t)=>{let i=e;if(t.parent instanceof wi){let s=t.parent.get("tooltipTarget");i=s instanceof Re?s.get("fillOpacity"):i}return i})}function Bc(r){let{root:e,chart:t}=r,i=wi.new(e,{});return i.label.setAll({oversizedBehavior:"wrap",maxWidth:V.tooltipWidth}),i.adapters.add("visible",(s,a)=>(s&&DR(a,r),s)),TR(i),IR(i,t),i}function zA(r){let{series:e,element:t,tooltipFormatter:i}=r,s,a=Bc(e);t&&t.get("tooltip")===void 0?(s=t,t.setAll({tooltip:a,tooltipPosition:V.markerTooltipPosition})):s=a;let n=i!==void 0||qe(e.uid,"hasExternalTooltipFormatter")===!0,o=n?"tooltipHTML":"tooltipText";Pa({element:s,labelOutputProp:o}),s instanceof wi?(s.adapters.remove("tooltipText"),s.adapters.remove("tooltipHTML"),s.adapters.add(o,(l,h)=>ta({element:h,series:e,isHTML:n}))):s instanceof Ke&&(s.adapters.remove("tooltipText"),s.adapters.remove("tooltipHTML"),s.adapters.add(o,(l,h)=>ta({element:h,series:e,isHTML:n})));let A=l=>{l.set("tooltip",a),l.set("tooltipPosition","fixed"),Pa({element:l,labelOutputProp:o}),l.adapters.remove("tooltipText"),l.adapters.remove("tooltipHTML"),l.adapters.add(o,(h,c)=>ta({element:c,series:e,isHTML:n}))};return e.bulletsContainer.children.each(l=>{l instanceof Ii&&A(l)}),a}function Pa(r){let{element:e,labelOutputProp:t}=r,i=t==="tooltipHTML";if(e instanceof wi)i?(e.label.set("html",V.htmlEmptyContent),e.label.set("text","")):e.label.set("html",void 0);else if(e instanceof Ii){let s=e.get("tooltip");s&&(i?(s.label.set("html",V.htmlEmptyContent),s.label.set("text","")):s.label.set("html",void 0)),e.set("tooltipText",i?void 0:V.htmlEmptyContent),e.set("tooltipHTML",i?V.htmlEmptyContent:void 0)}else e instanceof Ke&&(e.set("tooltipText",i?void 0:V.htmlEmptyContent),e.set("tooltipHTML",i?V.htmlEmptyContent:void 0))}function IR(r,e){if(r){let t=oe(e?.uid??0,"rtl");r.label.set("direction",t?"rtl":"ltr"),Kw(r)}}function DR(r,e){let{chart:t}=e;if(t&&r){let i=oe(t.uid,"config");if(i){let{seriesConfig:s}=yu(e,i);if(s){let{dataTooltipReverseColor:a}=s;Gw(r,a)}}}}function kR(r){let{seriesConfig:e,series:t,tooltip:i,isRotated:s}=r,a=qe(t.uid,"barAndLineTooltipFormatter");if(a!==void 0){let n=i.dataItem;if(n!==void 0){let o=n.get("valueX"),A=n.get("valueY"),l=n.get("valueXTotalPercent"),h=n.get("valueYTotalPercent"),c=s?o:A,d;s&&typeof l=="number"?d=l:!s&&typeof h=="number"&&(d=h),d&&(d/=100);let u=n.dataContext??{},f=oe(t.chart?.uid??0,"config"),m=oe(t.chart?.uid??0,"rendererFieldNames"),g=ua({value:u[e.x],dataContext:u,useRendererLabel:Ul(f,m),specificField:Dl(ze([e]),e)}),v=Xr(u);v===void 0&&(v=g);let B=u[V.dateBinningRange];if(v!==void 0||c!==void 0||d!==void 0||B!==void 0)return a({seriesName:t.get("name")??e.name,xValue:g,originalXValue:v,dateBinningRange:B,statValue:c,percentValue:d})}}}function $B(r,e){if(r instanceof wi)r.set("forceHidden",e);else{let t=r.get("tooltip");t&&t.set("forceHidden",e)}}function ta(r){let{element:e,series:t,isHTML:i}=r,s,{chart:a}=t;if(a!==void 0){let o=oe(a.uid,"config"),{seriesConfig:A}=yu(t,o),{dataTooltipVisible:l}=o?.series[0]??{};if(l===!1||!A)s="",$B(e,!0);else switch($B(e,!1),A.type){case Q.ScatterSeries:t instanceof nt&&(s=SR({seriesConfig:A,markerSeries:t,tooltip:e}));break;case Q.BarSeries:case Q.LineSeries:case Q.RadarSeries:s=kR({seriesConfig:A,series:t,tooltip:e,isRotated:o?.rotated??!1});break;case Q.HistogramSeries:s=bR({seriesConfig:A,series:t,tooltip:e});break;case Q.HeatSeries:s=OR({heatSeries:t,tooltip:e});break;case Q.PieSeries:t instanceof bi&&e instanceof wi&&(s=wR({pieSeries:t,tooltip:e}));break}}let n=s??"";if(i){let o=mi(n),A=e instanceof wi?e:e.get("tooltip");return A&&A.label.setAll({html:o,text:""}),o}return n}function UR(r){let{series:e,dateRange:t,xAxisValueFormat:i}=r,s,a=oe(e.chart?.uid??Number.NaN,"timeIntervalInfo");if(t!==void 0&&t.length>0){let n={};switch(a?.unit){case Nt.Second:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric",second:"numeric"};break;case Nt.Minute:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case Nt.Hour:n={month:"numeric",day:"numeric",year:"numeric",hour:"numeric",minute:"numeric"};break;case Nt.Day:case Nt.Week:case Nt.Month:case Nt.Year:n={month:"numeric",day:"numeric",year:"numeric"};break}n.timeZone=i.intlOptions.timeZone;let o=new Date(t[0]),A=new Date(t[1]),{root:l}=e;if(!Number.isNaN(o.valueOf())&&e.chart!==void 0){let h=oe(e.chart.uid,"formatLocale"),c=Mr({root:l,type:Q.DateAxisFormat,formatLocale:h,intlOptions:n}),d=c.format(o,n);if(s=d,!Number.isNaN(A.valueOf())){let u=c.format(A,n);u!==d&&(s=`${s} - ${u}`)}}}return s?.toString()??""}function QR(r){let{seriesConfig:e,xAxisValueFormat:t,setTimeBinningInfoWhenNotProvided:i,dataTooltipValueFormat:s,dataTooltipDateFormat:a,series:n,xValue:o,dateBinningRange:A,isTimeOnlyField:l,queryObject:h}=r,{root:c}=n,d,u=oe(n.chart?.uid??0,"formatLocale");return Mh({seriesConfig:e,xAxisValueFormatType:t?.type,setTimeBinningInfoWhenNotProvided:i,queryObject:h})&&A!==void 0&&t?.type===Q.DateAxisFormat?d=UR({series:n,dateRange:A,xAxisValueFormat:t}):Vr(t)?l&&typeof o=="number"?d=new Date(o).toLocaleTimeString(u):(o instanceof Date||typeof o=="number"&&Number.isFinite(o))&&(d=VA({root:c,value:o,valueFormat:a??t,formatLocale:u})):typeof o=="number"&&ks(t)?d=VA({root:c,value:o,valueFormat:s??t,formatLocale:u}):d=o,d?.toString()??""}function ER(r){let{isStacked100:e,series:t,statValue:i,percentValue:s,yAxisValueFormat:a,dataTooltipValueFormat:n,dataTooltipPercentFormat:o}=r,A=t.chart?.uid??0,{root:l}=t,h=n;h===void 0&&(ks(a)&&a?(h=a,e&&(h.intlOptions.style="decimal")):h=wh());let c=oe(A,"formatLocale"),d=i!==void 0?VA({root:l,value:i,valueFormat:h,formatLocale:c}):"",u="";if(e&&s!==void 0&&l!==void 0){let f=o;f===void 0&&(f=Tf(),f.intlOptions.minimumFractionDigits=2,f.intlOptions.maximumFractionDigits=2),u=VA({root:l,value:s,valueFormat:f,formatLocale:c})}return{formattedStatValue:d,formattedPercentValue:u}}function RR(r){let{utilsStrings:e,fieldList:t,queryObject:i,series:s,seriesConfig:a,seriesIndex:n,setTimeBinningInfoWhenNotProvided:o}=r,{chart:A}=s,{dataTooltipDateFormat:l,dataTooltipPercentFormat:h,dataTooltipValueFormat:c}=a,d=()=>"";if(A!==void 0){let u=oe(A.uid,"config");if(u!==void 0){let{dataTooltipVisible:f}=a,m=s instanceof nt?a.markerVisible:void 0;if(f!==!1&&m!==!1){let g=u.axes,v=g[0].valueFormat,B=g[1].valueFormat,w=t?.find(P=>P.name===a.x)?.type===Cl.TimeOnly,_=ze(u.series),L=Ys(u)===Qt.Stacked100,k=ws(i),D=To(k).idField,E=vi(t,a.x),O=HA(E,g[0].title?.content.text),I=$C({config:u,fieldList:t,objectIdField:D,seriesIndex:n,utilsStrings:e,isStacked100:L}),M=oe(A.uid,"rtl"),S=Gs(M??!1);d=P=>{let{seriesName:Y,statValue:G,percentValue:ie,xValue:J,dateBinningRange:ne}=P,z=QR({seriesConfig:a,xAxisValueFormat:v,dataTooltipValueFormat:c,dataTooltipDateFormat:l,setTimeBinningInfoWhenNotProvided:o,series:s,xValue:J,dateBinningRange:ne,isTimeOnlyField:w,queryObject:i}),{formattedStatValue:K,formattedPercentValue:ge}=ER({isStacked100:L,yAxisValueFormat:B,dataTooltipValueFormat:c,dataTooltipPercentFormat:h,series:s,statValue:G,percentValue:ie}),he=[`[bold]${O}${S} [/]${z}`];switch(_){case xe.BarAndLineFromFields:{he.pop();let re=Fm({config:u,fieldName:vi(t,z??""),utilsStrings:e});he.push(`[bold]${re}${S} [/]${K}`);break}case xe.BarAndLineMonoField:case xe.BarAndLineNoAggregation:case xe.BarAndLineMultiFields:he.push(`[bold]${I}${S} [/]${K}`);break;case xe.BarAndLineSplitByNoAggregation:case xe.BarAndLineSplitBy:{let re=ma(a.query?.where,!1),Me=Kf({value:vi(t,re)});he.push(`[bold]${Me}${S} [/]${Y}
|
|
32
|
+
[bold]${I}${S} [/]${K}`)}break}return L&&he.push(`[bold]${e.statistics.percent}${S} [/]${ge}`),he.join(`
|
|
33
|
+
`)}}}}return d}function Wm(r){let{series:e,tooltipFormatter:t,seriesConfig:i}=r,s=qe(e.uid,"hasExternalTooltipFormatter")===!0,a=t!==void 0;if(Ei(e.uid,{barAndLineTooltipFormatter:t??RR(r),hasExternalTooltipFormatter:a}),s!==a)switch(i.type){case Q.BarSeries:{e instanceof _t&&Vm(e,t);break}case Q.LineSeries:case Q.RadarSeries:{if(e instanceof nt){let n=qe(e.uid,"bulletTemplate");n&&zA({series:e,element:n,tooltipFormatter:t})}break}}}function MR(r){let{chartType:e,series:t,tooltipFormatter:i}=r;switch(!0){case(e===Q.HistogramSeries&&t instanceof _t):{Xm(t,i);break}case(e===Q.PieSeries&&t instanceof bi):{let s=qe(t.uid,"tooltipCallback");s&&s.dispose();let a=t.events.on(gt.DataValidated,()=>{Gm(t,i)});Ei(t.uid,{tooltipCallback:a});break}case(e===Q.HeatSeries&&t instanceof _t):{Ym(t,i);break}case((e===Q.ComboLineAndBarSeries||e===Q.BarSeries)&&t instanceof _t):{Vm(t,i);break}case(t instanceof nt&&(e===Q.ComboLineAndBarSeries||e===Q.LineSeries||e===Q.RadarSeries||e===Q.ScatterSeries)):{let s=qe(t.uid,"bulletTemplate");s&&zA({series:t,element:s,tooltipFormatter:i});break}}}function VB(r){let{value:e,formatLocale:t,unit:i,config:s,utilsStrings:a}=r,n={label:"",value:e.toString()};switch(i){case Cr.DayOfWeek:n={label:a.heatChartCalendarDatePartsUnits.dayOfWeek,value:Uw({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in s?s.firstDayOfWeek:V.heatChartFirstDayOfWeek,locale:t})};break;case Cr.MonthOfYear:n={label:a.heatChartCalendarDatePartsUnits.monthOfYear,value:Qw({monthNumber:e,locale:t})};break;case Cr.HourOfDay:n={label:a.heatChartCalendarDatePartsUnits.hourOfDay,value:kw({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case Cr.DayOfMonth:n={label:a.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case Cr.DayOfYear:n={label:a.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case Cr.MinuteOfDay:n={label:a.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case Cr.WeekOfYear:n={label:a.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case Cr.QuarterOfYear:n={label:a.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return n}function PR(r){let{columnSeries:e,seriesConfig:t,utilsStrings:i,fieldList:s,queryObject:a}=r;return(n,o,A)=>{let l="",h=n,c=oe(e.chart?.uid??0,"rtl"),d=oe(e.chart?.uid??0,"config");if(Ja(d)){h!==null?e.chart&&(h=Mr({root:e.chart.root,type:"number",intlOptions:{}}).format(n)):h=d.series[0].emptyCells?.text??V.heatChart.emptyCells?.text??"";let u=Gs(c??!1),f=t.query?.outStatistics?.[0].onStatisticField,m=ws(a),g=i.statistics.count;f!==To(m).idField&&(g=Fm({config:d,fieldName:vi(s,t.query?.outStatistics?.[0].onStatisticField??""),utilsStrings:i}));let v=oe(e.chart?.uid??0,"formatLocale"),B={label:t.x,value:o},w={label:t.y,value:A};if(t.xTemporalBinning!==void 0){let{label:_,value:L}=VB({value:Number(o),config:d,formatLocale:v,unit:t.xTemporalBinning.unit,utilsStrings:i});!Mt(_)&&!Mt(L)&&(B={label:_,value:L})}if(t.yTemporalBinning!==void 0){let{label:_,value:L}=VB({value:Number(A),config:d,formatLocale:v,unit:t.yTemporalBinning.unit,utilsStrings:i});!Mt(_)&&!Mt(L)&&(w={label:_,value:L})}Mt(l)&&(l=`[bold]${B.label}${u} [/]${B.value}
|
|
34
|
+
[bold]${w.label}${u} [/]${w.value}
|
|
35
|
+
[bold]${g}${u}[/] ${h} [/]]`)}return l}}function OR(r){let{heatSeries:e,tooltip:t}=r,i="",{chart:s}=e;if(s!==void 0&&t!==void 0){let a=oe(s.uid,"config"),{dataTooltipVisible:n}=a?.series[0]??{};if(n!==!1){let o=qe(e.uid,"heatChartTooltipFormatter");if(o){let A=t.dataItem;if(A!==void 0){let l=A.dataContext;if(a?.series?.[0]?.dataTooltipVisible!==!1){let h=l?.[ri.valueField]??null,c=l?.[ri.xField],d=l?.[ri.yField];i=o(h,c,d)}}}}else return}return mi(i)}function Ym(r,e){let t=Bc(r);r.columns.template.set("tooltip",t);let i=e!==void 0||qe(r.uid,"hasExternalTooltipFormatter")===!0,s=i?"tooltipHTML":"tooltipText";Pa({element:r.columns.template,labelOutputProp:s}),r.columns.template.setAll({tooltipPosition:V.columnTooltipPosition}),r.columns.template.adapters.remove("tooltipText"),r.columns.template.adapters.remove("tooltipHTML"),r.columns.template.adapters.add(s,(a,n)=>ta({element:n,series:r,isHTML:i})),r.columns.each(a=>{a.set("tooltip",t),a.set("tooltipPosition","pointer"),Pa({element:a,labelOutputProp:s}),a.adapters.remove("tooltipText"),a.adapters.remove("tooltipHTML"),a.adapters.add(s,(n,o)=>ta({element:o,series:r,isHTML:i}))})}function HR(r){let{series:e,seriesConfig:t,utilsStrings:i,fieldList:s,options:a,queryObject:n}=r,o=qe(e.uid,"hasExternalTooltipFormatter")===!0,A=a?.tooltipFormatter!==void 0;Ei(e.uid,{heatChartTooltipFormatter:a?.tooltipFormatter??PR({columnSeries:e,seriesConfig:t,utilsStrings:i,fieldList:s,queryObject:n}),hasExternalTooltipFormatter:A}),o!==A&&Ym(e,a?.tooltipFormatter)}function qd(r){let e={type:je.SLS,color:[0,0,0,0],width:0},t=r?.color?r:e,i=r?.color?st(r.color).color:void 0,s=r?.color?st(r.color).opacity:void 0;return{outlineSymbol:t,outlineColor:i,outlineOpacity:s}}function NR(r){let{root:e,xAxis:t,yAxis:i,options:s,chartConfig:a,queryObject:n}=r,o=_t.new(e,{calculateAggregates:!0,stroke:st(V.backgroundColor).color,clustered:!1,turboMode:!0,xAxis:t,yAxis:i,categoryXField:ri.xField,categoryYField:ri.yField,valueField:ri.valueField});return o.columns.template.setAll({tooltipText:`x: {${ri.xField}}
|
|
36
|
+
y: {${ri.yField}}
|
|
37
|
+
Value: {${ri.valueField}}`,width:Ae,height:Ae}),Ym(o,s?.tooltipFormatter),qA(o,a),Ri(o.columns.template,s?.selectionTheme),sa({element:o.columns.template,series:o,queryObject:n}),o}function $R(r){let{columnSeries:e,data:t,loaderHandle:i}=r;t?.dataItems&&(e.events.once(gt.DataValidated,()=>{i.hideLoader()}),e.data.setAll(t.dataItems))}function VR(r){let{columnSeries:e,seriesConfig:t}=r,{gradientHeatRules:i}=V.heatChart,{gradientRules:s,heatRulesType:a,gridLine:n}=t,o=t.emptyCells?.symbol??V.heatChart.emptyCells?.symbol,A=s?.colorList?.[0]??i.minColor,l=s?.colorList?.[1]??i.maxColor,h=s?.outsideRangeLowerColor??i.outsideRangeLowerColor,c=s?.outsideRangeUpperColor??i.outsideRangeUpperColor,{minValue:d,maxValue:u}=s??{},{color:f,opacity:m}=st(A),{color:g,opacity:v}=st(l),B=st(h),w=st(c);e.set("heatRules",[{target:e.columns.template,dataField:"value",key:"fill",customFunction:(_,L,k,D)=>{let E=_.dataItem?.dataContext;if(_ instanceof Re){let O,I,M,S=!1;if(a===xo.Renderer){let P=E?.[We.rendererSymbolField];if(Vh(P)){M=Hi(P);let{outlineSymbol:Y}=qd(n);M.outline=Y}else S=!0}if((!Number.isFinite(D)||S)&&o){M=Hi(o);let{outlineSymbol:P}=qd(n);M.outline=P}if(M){let P=ro({root:e.root,element:_,fillSymbol:M});PA(_,P)}else typeof d=="number"&&D<d?{color:O,opacity:I}=B:typeof u=="number"&&D>u?{color:O,opacity:I}=w:L===k?(O=f,I=m):(O=Ie.interpolate((D-L)/(k-L),f,g,"rgb"),I=m+(D-L)/(k-L)*(v-m)),O&&_.set("fill",O),I!==void 0&&_.set("fillOpacity",I)}}}])}function XR(r,e){e?.color?ea({element:r.columns.template,lineSymbol:e}):r.columns.template.setAll({strokeOpacity:0,strokeWidth:0})}function KR(r){let{series:e,data:t,loaderHandle:i,dataWasUpdated:s,sortChanged:a,timeZoneChanged:n,seriesWereReinitialized:o,seriesConfig:A,autoInverseDataLabelTextColor:l,options:h,queryObject:c,chartConfig:d}=r,u=s===!0||a===!0||n||o===!0;e.set("id",A.id),XA(e,!1),Ri(e.columns.template,h?.selectionTheme),no(e.columns.template,t?.dataItems?.length),HR(r),XR(e,A.gridLine),VR({columnSeries:e,seriesConfig:A}),u&&$R({columnSeries:e,data:t,loaderHandle:i}),yR({seriesType:Q.HeatSeries,series:e,seriesConfig:A,dataLabelsConfig:A.dataLabels,yAxisValueFormat:{intlOptions:{},type:"number"},autoInverseDataLabelTextColor:l,externalDataLabelFormatter:h?.dataLabelFormatter});let{chart:f}=e;f&&GR({seriesConfig:A,queryObject:c,chartConfig:d,chart:f}),h?.disableInteractions&&XA(e,!0)}function GR(r){let{seriesConfig:e,queryObject:t,chartConfig:i,chart:s}=r,a;if(e.heatRulesType===xo.Renderer)a={heatRulesType:xo.Renderer,seriesColors:Yw({queryObject:t,chartConfig:i,forLegend:!1})};else{let{gradientHeatRules:n}=V.heatChart,{gradientRules:o}=e;a={heatRulesType:xo.Gradient,seriesColors:{startColor:o?.colorList?.[0]??n.minColor,endColor:o?.colorList?.[1]??n.maxColor}}}ar({chartId:s.get("id"),data:a,colorMatchApplied:!1,htmlContainer:s.root.dom})}function Ww(r,e){let t="",i,s,a;return r&&typeof r=="object"&&(t="label"in r&&typeof r.label=="string"?r.label:"",i="symbol"in r&&r.symbol&&typeof r.symbol=="object"&&"color"in r.symbol&&Array.isArray(r.symbol.color)?r.symbol.color:void 0,a="symbol"in r&&r.symbol&&typeof r.symbol=="object"&&"outline"in r.symbol&&Array.isArray(r.symbol.outline)?r.symbol.outline:void 0,e&&(Array.isArray(i)&&({color:i,opacity:s}=st(i)),Array.isArray(a)&&(a=st(a).color))),{legendItemLabel:t,legendItemColor:i,legendItemColorOpacity:s,legendItemStrokeColor:a}}function WR(r){let e,{outlineColor:t,outlineOpacity:i,dataItems:s,valueField:a,classBreakInfo:n,classBreakIndex:o,numberOfClassBreaks:A,evaluateUpTo:l}=r,{legendItemLabel:h,legendItemColor:c,legendItemColorOpacity:d}=Ww(n,!0);if(n&&typeof n=="object"&&c&&!Array.isArray(c)){let u=!0;if(s&&a){let f="classMinValue"in n&&typeof n.classMinValue=="number"?n.classMinValue:-1/0,m="classMaxValue"in n&&typeof n.classMaxValue=="number"?n.classMaxValue:1/0,g=o===A-1;u=s.some(v=>{let B=v[a];return g||l?typeof B=="number"&&B>=f&&B<=m:typeof B=="number"&&B>=f&&B<m})}u&&(e={[ji.nameField]:h,[ji.fillField]:c,[ji.strokeField]:t,[ji.fillOpacityField]:d,[ji.strokeOpacityField]:i})}return e}function YR(r){let e,{legendItemLabel:t,legendItemColor:i,legendItemStrokeColor:s}=Ww(r,!1);return Array.isArray(i)&&(!s||Array.isArray(s))&&(e={label:t,symbol:{type:je.SFS,style:ha.Solid,color:i,outline:{type:je.SLS,color:s??i}}}),e}function Yw(r){let{queryObject:e,chartConfig:t,forLegend:i,series:s}=r,a,n=ws(e),o=t.series?.[0],A=t.chartRenderer??n?.renderer?.toJSON(),{outlineColor:l,outlineOpacity:h}=qd(o?.gridLine);if((A?.type==="classBreaks"||A?.type==="class-breaks")&&"classBreakInfos"in A){let c=s?.data.values,d=s?.get("valueField")??ri.valueField,u=A.classBreakInfos?.[0],f=u?u.classMinValue===u.classMaxValue:!1;a=A.classBreakInfos.map((m,g)=>{let v;return i?v=WR({outlineColor:l,outlineOpacity:h,dataItems:c,valueField:d,classBreakInfo:m,classBreakIndex:g,numberOfClassBreaks:A.classBreakInfos.length,evaluateUpTo:f}):v=YR(m),v}).filter(Boolean)}return a}var gu="arcgis_charts_title_container",zm="arcgis_charts_subtitle_container",pu="arcgis_charts_footer_container",zw="arcgis_charts_title",jw="arcgis_charts_subtitle",Zw="arcgis_charts_footer",Is="arcgis_charts_legend_container",Pr="arcgis_charts_legend_title",dm="arcgis_charts_axis_title_id";function zR(r){let e=r.yAxes.getIndex(0);if(e){let t=Ft({childId:`${dm}_y_${e.uid}`,parent:e});t instanceof at&&t.set("dx",0)}}function jR(r,e){let t=V.axisLabelSpacing.verticalAxisLabelSidePadding,i=V.heatChart.legend.legendPadding+t;e.set("marginRight",i),r.leftAxesContainer.setAll({paddingLeft:t});let s=r.leftAxesContainer.children.values[0];s instanceof ni&&s.set("paddingLeft",t)}function qw(r,e){let{root:t}=r,i=oe(r.uid,"rtl")??!1,s=oe(r.uid,"config")??e,a=s?.series[0],{start:n,end:o}=mu(i,a),A=s?.legend?.position??V.heatChart.legend.position,l=A===Te.Top||A===Te.Bottom;return Yr.new(t,{orientation:l?"horizontal":"vertical",startColor:n.color,endColor:o.color,visible:s?.legend?.visible,startOpacity:n.opacity,endOpacity:o.opacity})}function ZR(r,e){let t=oe(e.uid,"rtl")??!1,i=oe(e.uid,"config");if(i?.series[0].type===Q.HeatSeries){let s=i?.series[0],{start:a,end:n}=mu(t,s);r.setAll({startColor:a.color,endColor:n.color,startOpacity:a.opacity,endOpacity:n.opacity})}}function mu(r=!1,e){let t=V.heatChart.gradientHeatRules,i=e.gradientRules?.colorList??[...r?[t.maxColor,t.minColor]:[t.minColor,t.maxColor]],{color:s,opacity:a}=st(i[0]),{color:n,opacity:o}=st(i[1]);return{start:{color:s,opacity:a},end:{color:n,opacity:o}}}function XB(r,e){let t=oe(r.uid,"rtl")??!1,i=oe(r.uid,"config")?.series[0],{start:s,end:a}=mu(t,i);e.setAll({startColor:s.color,endColor:a.color})}function Jw(r){let e=oe(r.uid,"config");if(e?.series?.[0]?.type===Q.HeatSeries&&e?.legend?.visible!==!1){let t=V.heatChart.legend,i=e?.legend?.position??t.position,s=rs(Is,r.uid),a,n=!1;switch(i){case Te.Top:a=r.topAxesContainer,n=!0;break;case Te.Bottom:a=r.bottomAxesContainer,n=!1;break;case Te.Left:a=r.leftAxesContainer,n=!0;break;case Te.Right:a=r.rightAxesContainer,n=!1;break;default:a=void 0}if(a!==void 0){let o=Ft({childId:s,parent:a,useChildId:!0});if(o!==void 0){let{children:A}=a,l=A.indexOf(o);l!==-1&&(n&&l!==0?(A.removeValue(o),A.unshift(o),a.markDirty()):!n&&l!==A.length-1&&(A.removeValue(o),A.push(o),a.markDirty()))}}}}function e_(r){let{chart:e,legend:t,legendContainer:i}=r,{root:s}=e,a=oe(e.uid,"config"),n=V.heatChart.legend,o=a?.legend?.position??n.position,A,l,h,c=o===Te.Left||o===Te.Top,d=Ft({childId:Pr,parent:i}),u=a?.legend?a.legend.visible??!0:!1,f=a?.legend?.title?a.legend.title.visible??!0:!1,m=d instanceof at&&u&&f?d.height()>0?d.height():n.titleHeight:0,g=o===Te.Left||o===Te.Right;switch(t.setAll({orientation:g?"vertical":"horizontal",width:Ae}),o){case Te.Left:i.setAll({layout:s.verticalLayout,paddingRight:n.legendPadding,width:n.width}),jR(e,i),A=e.leftAxesContainer;break;case Te.Right:i.setAll({layout:s.verticalLayout,paddingLeft:n.legendPadding,paddingRight:n.legendPadding,width:n.width}),e.rightAxesContainer.setAll({paddingRight:n.chartPadding}),A=e.rightAxesContainer;break;case Te.Top:h=n.chartPadding,i.setAll({layout:s.verticalLayout,paddingBottom:n.legendPadding,paddingTop:n.legendPadding,width:Ae}),A=e.topAxesContainer;break;case Te.Bottom:{l=n.chartPadding,i.setAll({layout:s.verticalLayout,paddingTop:n.legendPadding,width:Ae}),e.bottomAxesContainer.setAll({paddingBottom:n.legendPadding+m});let v=Ft({childId:pu,parent:e});v instanceof ve&&v.set("paddingBottom",n.chartPadding+m),A=e.bottomAxesContainer}break}zR(e),t.markDirty(),t_(e,{chartPaddingTop:h,chartPaddingBottom:l}),so(()=>{A&&(c?A.children.unshift(i):A.children.push(i),e.markDirty(),t.markDirty(),A.markDirty())})}function t_(r,e){let{chartPaddingTop:t,chartPaddingLeft:i,chartPaddingRight:s,chartPaddingBottom:a}=e;r.setAll({paddingTop:t,paddingLeft:i,paddingRight:s,paddingBottom:a})}function i_(r,e){let t=r.root.events.on(gt.FrameEnded,()=>{r.markerContainer.children.length>0&&(e(),t.dispose())})}function s_(r){let{series:e,legend:t,chart:i}=r,s=oe(i.uid,"config"),a=n=>{let o=n.getPrivate("valueLow"),A=n.getPrivate("valueHigh");o!==void 0&&A!==void 0&&(t.get("orientation")==="vertical"?(t.set("startValue",A),t.set("endValue",o)):(t.set("startValue",o),t.set("endValue",A))),so(()=>{i_(t,()=>{r_({legend:t,series:n,chartConfig:s})})})};e!==void 0&&(e.events.on("datavalidated",()=>{a(e)}),a(e)),a_(t,s?.legend)}function r_(r){let{legend:e,series:t,chartConfig:i}=r,s=i?.series[0],a=s?.gradientRules;if(a&&(a.minValue!==void 0||a.maxValue!==void 0)){let n=t.getPrivate("valueLow"),o=t.getPrivate("valueHigh");if(n!==void 0&&o!==void 0&&o>n){let A=n,l=o,h=l-A,c=a.minValue??A,d=a.maxValue??l,u=(c-A)/h,f=(d-A)/h;u=Math.max(0,Math.min(1,u)),f=Math.max(0,Math.min(1,f));let{start:m,end:g}=mu(!1,s),{color:v,opacity:B}=st(a.outsideRangeLowerColor??V.heatChart.gradientHeatRules.outsideRangeLowerColor),{color:w,opacity:_}=st(a.outsideRangeUpperColor??V.heatChart.gradientHeatRules.outsideRangeUpperColor),L=[{color:v,opacity:B,offset:0},{color:v,opacity:B,offset:u},{color:m.color,opacity:m.opacity,offset:u},{color:g.color,opacity:g.opacity,offset:f},{color:w,opacity:_,offset:f},{color:w,opacity:_,offset:1}],k=(E,O,I)=>{let M=rs(`heatLegendLabel${I}`,e.uid),S=e.markerContainer.children.values.find(G=>G instanceof at&&G.get("id")===M),P=S&&!S.isDisposed()?S:void 0,Y=e.startLabel;if(P||(P=at.new(e.root,{id:M,position:"absolute",isMeasured:!1,centerX:Ce,centerY:Ce,paddingLeft:0}),e.markerContainer.children.push(P)),P.setAll({fill:Y.get("fill"),fontSize:Y.get("fontSize"),fontFamily:Y.get("fontFamily")}),P.set("text",E.toString()),e.get("orientation")==="vertical"){let G=Y.localBounds().top,ie=Y.get("fontSize")??0;if(typeof ie=="number"){let J=V.heatChart.legend.minMaxLabelPadding;P.set("x",G-ie*2-J)}else P.set("x",G);P.set("y",Ve(O*100)),P.set("centerY",Ce)}else{P.set("x",Ve(O*100));let G=e.startLabel.localBounds().bottom,ie=V.heatChart.legend.minMaxLabelPadding;P.set("y",-G-ie),P.set("centerX",Bi)}};u>0&&u<1&&k(c,u,"Min"),f>0&&f<1&&k(d,f,"Max");let D=()=>{let E;if(e.markerContainer.children.length>0&&e.markerContainer.children.each(O=>{O instanceof Xt&&(E=O)}),E){let O=0;e.get("orientation")==="vertical"&&(O=90),E.set("fillGradient",_a.new(e.root,{stops:L,rotation:O}))}};if(e.markerContainer.children.length>0)D();else{let E=e.markerContainer.children.events.once("push",()=>{e.markerContainer.children.length>0&&(E.dispose(),D())})}}}else{let n=()=>{if(e.get("orientation")==="vertical"){let o;e.markerContainer.children.length>0&&e.markerContainer.children.each(A=>{A instanceof Xt&&(o=A)}),o&&o.set("rotation",180)}};if(e.markerContainer.children.length>0)n();else{let o=e.markerContainer.children.events.once("push",()=>{e.markerContainer.children.length>0&&(o.dispose(),n())})}}}function a_(r,e){if(r!==void 0){let t={type:Q.Text,visible:e?.visible,content:{...e?.body,type:je.TS,text:" "}};[r.startLabel,r.endLabel].forEach(i=>{gr({label:i,labelConfig:t,skipSettingText:!0,skipSettingXAndY:!0})})}}function jm(r){let e=rs(Is,r.uid);[r.bottomAxesContainer,r.rightAxesContainer,r.leftAxesContainer,r.topAxesContainer].forEach(t=>{let i=Ft({childId:e,parent:t,useChildId:!0});i&&(i.children.values.filter(s=>s instanceof Yr).forEach(s=>{s.dispose()}),t.children.removeValue(i),i.dispose()),t.markDirty()}),t_(r,{}),JR(r)}function Zm(r,e){let t=NA({root:e.root,parent:e,index:0,id:rs(Pr,e.uid)});return t.set("paddingTop",V.heatChart.legend.titlePadding),$A({chart:r,label:t,labelType:At.LegendTitle}),t}function um(r){let{chart:e,legendConfig:t,container:i}=r,s=rs(Is,e.uid),a=i;if(a||[e.bottomAxesContainer,e.rightAxesContainer,e.leftAxesContainer,e.topAxesContainer].forEach(n=>{let o=Ft({childId:s,parent:n,useChildId:!0});o&&(a=o)}),a!==void 0){let n=Ft({childId:Pr,parent:a})??Zm(e,a);if(t!==void 0){let{title:o,visible:A}=t,{legendTitle:l}=V.legendProperties;if(o!==void 0){gr({label:n,labelConfig:{...o,visible:A!==!1&&o.visible!==!1},defaults:{...l,verticalCenter:Tt.Top}});let h=oe(e.uid,"config")?.legend?.position??V.heatChart.legend.position;h===Te.Left||h===Te.Right?(n.set("maxWidth",250),Ma({chart:e,label:n,labelType:At.LegendTitle})):n.set("maxWidth",void 0),n_({legendContainer:a,chart:e})}else si(n,!1)}}}function qR(r,e){let{root:t}=r,i=oe(r.uid,"config"),s=i?.legend,a=r.series.values[0];jm(r);let n=qw(r,i??e),o=ve.new(t,{id:rs(Is,r.uid),layout:t.verticalLayout});return o.children.push(n),Zm(r,o),um({chart:r,legendConfig:s,container:o}),s_({series:a,legend:n,chart:r}),s!==void 0&&s.visible!==!1&&(e_({chart:r,legend:n,legendContainer:o}),fm({legend:n,chart:r,legendContainer:o})),n}function fm(r){let{legend:e,chart:t,legendContainer:i}=r,s=oe(t.uid,"config"),a=V.heatChart.legend,n=s?.legend?.position??a.position;if(n===Te.Left||n===Te.Right)e.set("height",Ae),i.set("height",Ae),n_({legendContainer:i,chart:t});else{let o=Ft({childId:Pr,parent:i}),A=s?.legend?s.legend.visible??!0:!1,l=s?.legend?.title?s.legend.title.visible??!0:!1,h=o instanceof at&&A&&l?o.height()>0?o.height():a.titleHeight+a.titlePadding:0,c=n===Te.Top?a.topHeight:a.bottomHeight;e.set("height",c),i.set("height",c+h+20)}}function n_(r){let{legendContainer:e,chart:t}=r,i=oe(t.uid,"config"),s=V.heatChart.legend,a=i?.legend?.position??s.position;if(a!==Te.Left&&a!==Te.Right)return;let n=Ft({childId:Pr,parent:e}),o=i?.legend?.title?i.legend.title.visible??!0:!1;if(n instanceof at&&o){let A=()=>{let l=n.width(),h=s.width,c=Math.max(l+s.legendPadding*2,h);e.set("width",c)};n.width()>0?A():n.events.once("boundschanged",A)}else e.set("width",s.width)}function JR(r){let e=Ft({childId:gu,parent:r});e instanceof ve&&e.set("marginTop",0)}function eM(r){let e,t=rs(Is,r.uid);return[r.bottomAxesContainer,r.rightAxesContainer,r.leftAxesContainer,r.topAxesContainer].forEach(i=>{let s=Ft({childId:t,parent:i,useChildId:!0});if(s){let n=s.children.values.find(o=>o instanceof Yr);if(n){e=n;return}}let a=i.children.values.find(n=>n instanceof Yr);if(a){e=a;return}}),e}function tM(r){let{chart:e,chartConfig:t,heatLegendPositionChanged:i,heatRulesTypeChanged:s}=r,{legend:a}=t,n=a!==void 0&&a.visible!==!1,o=e.series.values[0];if(i||s)jm(e),n&&o instanceof _t&&so(()=>{let A=qw(e),l=ve.new(e.root,{id:rs(Is,e.uid),layout:e.root.verticalLayout});l.children.push(A),Zm(e,l),um({chart:e,legendConfig:a,container:l}),XB(e,A),e_({chart:e,legend:A,legendContainer:l}),s_({series:o,legend:A,chart:e}),fm({legend:A,chart:e,legendContainer:l})});else if(o instanceof _t){let A=eM(e);if(A){XB(e,A),um({chart:e,legendConfig:a}),a_(A,a);let l=A.parent;l&&l.get("id")===rs(Is,e.uid)&&si(l,n),si(A,n),ZR(A,e),l&&fm({legend:A,chart:e,legendContainer:l}),so(()=>{i_(A,()=>{r_({legend:A,series:o,chartConfig:t})})})}}}function iM(r,e){let t=!1;if(e===Te.Right||e===Te.Left)t=!0;else{let i=r.dataItems[0]?.get("itemContainer").bounds().left;i!==void 0&&(t=!r.dataItems.some(s=>s.get("itemContainer").bounds().left!==i))}return t}function sM(r){let e=!1,t=r.dataItems[0]?.get("itemContainer").bounds().bottom;return t!==void 0&&(e=!r.dataItems.some(i=>i.get("itemContainer").bounds().bottom!==t)),e}function rM(r){Om(r.uid,{isLegendValueLabel:!0}),r.valueLabels.template.adapters.add("text",(e,t)=>{let i=e??"",s=RE(r.uid,"pieChartLegendValueLabelsFormatter");return s!==void 0&&(i=s(t.dataItem?.get("value")??0,t.dataItem?.get("valuePercentTotal")??0)),i}),r.valueLabels.template.set("text","")}function o_(r){let{legend:e,seriesConfig:t,webChartLegend:i,pieChartLegendValueLabelFormatter:s,chart:a}=r,{visible:n,body:o,displayNumericValue:A,displayPercentage:l}=i??{};if(_e(t)===Q.PieSeries){let{numericValueFormat:h,percentValueFormat:c,valuePrefix:d,valueSuffix:u,percentagePrefix:f,percentageSuffix:m}=t[0],g=A??V.pieChart.displayNumericValueOnLegend,v=l??V.pieChart.displayPercentageOnLegend,B=s;if(s===void 0){let O=Km({pieChart:a,valueIntlOptions:h?.intlOptions,percentageIntlOptions:c?.intlOptions,displayNumericValue:g,displayPercentage:v,valuePrefix:d,valueSuffix:u,percentagePrefix:f,percentageSuffix:m});B=(I,M)=>O("",I,M)}ME(e.uid,{pieChartLegendValueLabelsFormatter:B});let w=oe(a?.uid??0,"config")?.legend?.position??V.legendProperties.position,_=i?.valueLabelMaxWidth,L=iM(e,w),k={type:Q.Text,visible:n,content:{...o,type:je.TS,text:".",verticalAlignment:Tt.Middle,horizontalAlignment:L?Vt.Right:Vt.Center}};gr({label:e.valueLabels.template,labelConfig:k,defaults:V.legendProperties.valueLabels});let D=oe(a?.uid??0,"rtl")??!1,E=_!==void 0&&!Number.isNaN(_);e.valueLabels.template.setAll({x:void 0,y:void 0,paddingRight:5,textAlign:D?"right":"left",disabled:g===!1&&v===!1,width:E?_:null,oversizedBehavior:E?"wrap":"none"})}}function aM(r,e){r.labels.template.adapters.add("maxWidth",t=>{let i=t,s=oe(e.uid,"config"),a=s?.legend?.labelMaxWidth,n=s?.legend?.position??V.legendProperties.position;if(n===Te.Right||n===Te.Left)i=a??V.legendProperties.legendLabels.maxWidth;else if(a!==void 0)i=a;else{let o=0;r.valueLabels.template.get("forceHidden")||r.valueLabels.each(l=>{let h=l.get("width",0);typeof h=="number"&&(o=Math.max(o,h))});let A=r.get("width",200);typeof A=="number"&&(i=A+o)}return i}),r.valueLabels.template.adapters.add("maxWidth",t=>{let i=t,s=oe(e.uid,"config"),a=s?.legend?.valueLabelMaxWidth,n=s?.legend?.position??V.legendProperties.position;return n===Te.Right||n===Te.Left?i=a??V.legendProperties.valueLabels.maxWidth:i=a??Number.NaN,i})}function A_(r,e){let t=0;for(let i of r.dataItems){let s=i.get("label")?._contentWidth??0;t=Math.max(t,s)}return e&&t>e?e:t}function nM(r,e){for(let t of r.dataItems)t.get("label")?.set("width",e)}function oM(r,e){let t=0;for(let i of r.dataItems){let s=i.get("marker")?._contentWidth??0,a=i.get("valueLabel")?._contentWidth??0,n=s+e+a;t=Math.max(t,n)}return Math.ceil(t)+V.legendPadding}function l_(r,e){so(()=>{let t=sM(r),i=e===Te.Right||e===Te.Left||!t;nM(r,i?A_(r):void 0)})}function AM(r){let{legend:e,chart:t,seriesConfig:i,legendConfig:s}=r,{displayCategory:a}=s??{},n=a??V.pieChart.displayCategoryOnLegend,o=oe(t?.uid??0,"rtl")??!1;e.labels.template.setAll({forceHidden:n===!1,direction:o?"rtl":"ltr",oversizedBehavior:s?.labelMaxWidth!==void 0&&!Number.isNaN(s.labelMaxWidth)?"wrap":"none"}),so(()=>{let A=A_(e,s?.labelMaxWidth),l=oM(e,A);e.itemContainers.template.setAll({width:l,layout:t.root.horizontalLayout}),aM(e,t),o_({legend:e,seriesConfig:i,webChartLegend:s,chart:t});let h=s.position??V.legendProperties.position;l_(e,h),e.markDirty()})}function c_(r){return r?.[0].type===Q.HeatSeries&&r[0].heatRulesType!==xo.Renderer}function h_(r){let e=r.get("id");r.on("visible",(t,i)=>{if(i){let{chart:s}=i;if(s instanceof zi){let a=Ft({childId:Is,parent:s});a!==void 0&&a.dataItems?.forEach(n=>{n.get("id")===e&&a.set("opacity",t?1:V.legendProperties.legendLabelReducedOpacity)})}}})}function lM(r){let e=r.target.dataItem;if(e?.dataContext!==void 0){let{dataContext:t}=e,i=typeof t=="object"&&t!==null&&"component"in t?t.component:t;if(i instanceof _i){let s={visible:!i.get("visible")};dn(i)||Cc(i)?s.overlayType=qe(i.uid,"type"):s.seriesId=i.get("id"),Ef(s,i.root.dom)}}}function cM(r){r.itemContainers.template.events.on(gt.Click,lM)}function hM(r,e){let t=oe(e.uid,"rtl")??!1;r.itemContainers.template.setAll({reverseChildren:t})}function dM(r){let{chart:e,legend:t,chartConfig:i,hideEmptySeries:s,queryObject:a}=r,n=_e(i.series);if(e.series.length>1||n===Q.PieSeries||n===Q.HeatSeries){let o=[],A=ze(i.series);switch(n){case Q.BoxPlotSeries:{let l=Us(i);o=e.series.values.filter(h=>{let c=!1;return l?c=h instanceof nt&&!(h instanceof qr):c=h instanceof Ms,c});break}case Q.HistogramSeries:{o=e.series.values.filter(l=>{let h=!1;if(qe(l.uid,"isOverlay")){let c=i.series[0].type===Q.HistogramSeries?i.series[0].overlays:void 0,d=qe(l.uid,"type"),u;switch(d){case ti.Mean:u=c?.mean?.created;break;case ti.Median:u=c?.median?.created;break;case ti.Normal:u=c?.comparisonDistribution?.created;break;case ti.StdDev:u=c?.standardDeviation?.created;break}h=u===!0}return h});break}case Q.PieSeries:{o=e.series.getIndex(0)?.dataItems??[];break}case Q.ComboLineAndBarSeries:case Q.LineSeries:case Q.RadarSeries:case Q.BarSeries:o=e.series.values.filter(l=>{let h=!0;if(s!==!1){let c=i.series.find(d=>d.id===l.get("id"));if(c!==void 0&&"y"in c&&typeof c.y=="string"){let{x:d,y:u}=c,f=A===xe.BarAndLineSplitByNoAggregation?`${u}_${Tn({where:c.query?.where,keepSurroundingQuotes:!1,escape:!1})}`:u;h=l.data.values.some(m=>Mb({dataItem:m,x:d,y:f}))}}return h});break;case Q.ScatterSeries:{let l=g_(e);l!==void 0&&(o=[l]);break}case Q.HeatSeries:{let l=e.series.getIndex(0);if(l instanceof _t&&Ja(i)&&!Cs(a)){let h=Yw({queryObject:a,chartConfig:i,forLegend:!0,series:l});if(h){o=[...h];let c=_M(e);c!==void 0&&o.push(c)}}break}}t.data.setAll(o)}}function KB(r){let e=0;return r.dataItems.forEach(t=>{let i=t.get("itemContainer").width();e=Math.max(i,e)}),Math.ceil(e)}function GB(r){let e=0;if(r instanceof at&&r.get("visible")!==!1&&r.get("forceHidden")!==!0){let t=r.width();Number.isFinite(t)&&(e=t)}return e}function WB(r){let e=0;return r.series.values.forEach(t=>{let i=t.bulletsContainer;i&&i.children.values.forEach(s=>{e=Math.max(e,GB(s))}),e===0&&t.dataItems.forEach(s=>{let a=s.bullets;if(a)for(let n of a)e=Math.max(e,GB(n.get("sprite")))})}),Math.ceil(e)}function Wo(r,e){let{root:t}=r,i=Ft({childId:Is,parent:r});if(i!==void 0){let s=oe(r.uid,"config"),a=oe(r.uid,"rtl"),n=es(s),o=_e(s?.series),A=Ys(s),l=s?.series?.some(Ee=>Ee.dataLabels?.visible!==!1)??!1,h=s?.title?s.title.visible??!0:!1,c=s?.subtitle?s.subtitle.visible??!0:!1,d=s?.footer?s.footer.visible??!0:!1,u=s?.legend?s.legend.visible??!0:!1,f=s?.legend?.title?s.legend.title.visible??!0:!1,m=Ft({childId:gu,parent:r}),g=m instanceof ve&&h?m.height():0,v=Ft({childId:zm,parent:r}),B=v instanceof ve&&c?v.height():0,w=Ft({childId:pu,parent:r}),_=w instanceof ve&&d?w.height():0,L=Ft({childId:Pr,parent:i}),k=L instanceof at&&u&&f?L?.height():0,D=s?.legend?.position??V.legendProperties.position,E,O=e.get("verticalScrollbar"),I=Ce,M=Ce,S=t.verticalLayout,P=Ce,Y=Ce,G=Ce,ie=Ce,J=0,ne,z=e.height()+k,K=0,ge=0,he=l&&!n?V.chartContainer.paddingTop??0:0,re=0,Me,Ne;switch(D){case Te.Left:S=t.verticalLayout,P=Bi,G=Bi,Y=Bi,ie=Bi,ne=void 0,I=Bi,M=Bi,K=i.width(),J=g+B,z<r.seriesContainer.height()&&(J+=r.seriesContainer.height()/2-z/2),E=KB(e),O?.width()!==void 0&&E&&O.isVisible()&&(E+=O.width()+V.scrollbarPadding),a&&(Me=Ae,Ne=E);break;case Te.Right:S=t.verticalLayout,P=Ae,G=Ae,Y=Bi,ie=Bi,ne=void 0,I=Bi,M=Bi,ge=i.width(),J=g+B,z<r.seriesContainer.height()&&(J+=r.seriesContainer.height()/2-z/2),E=KB(e),O?.width()!==void 0&&E&&O.isVisible()&&(E+=O.width()+V.scrollbarPadding),a&&(Me=Ae,Ne=E);break;case Te.Top:S=t.gridLayout,P=Ce,G=Ce,Y=Bi,ie=Bi,ne=Ae,I=Ce,M=Ce,he+=z,J+=g+B,E=void 0,a&&(Me=void 0);break;case Te.Bottom:S=t.gridLayout,P=Ce,G=Ce,Y=Ae,ie=Ae,ne=Ae,I=Ce,M=Ce,re=z,J=-re-_,E=void 0,a&&(Me=void 0);break}if(n&&l&&(o===Q.LineSeries||o===Q.ComboLineAndBarSeries||o===Q.BarSeries&&A===Qt.Side)){let Ee=WB(r);if(Ee>0)ge+=Ee;else if(r.series.length>0){let Ge=e.root.events.on(gt.FrameEnded,()=>{let yt=WB(r);yt>0&&(a?K+=yt:ge+=yt,Ge.dispose(),Wo(r,e))})}}(E===void 0||E>0)&&(e.setPrivate("width",E),a&&e.itemContainers.template.setAll({centerX:Me,dx:Ne})),e.setAll({layout:S,x:I,centerX:M}),i.setAll({x:P,y:Y,centerX:G,centerY:ie,dy:J,width:ne,height:0}),r.chartContainer.setAll({paddingBottom:re,paddingTop:he,paddingLeft:K,paddingRight:ge}),ne===void 0&&(i.setPrivate("width",void 0),i.markDirty()),r instanceof is&&l_(e,D)}}function uM(r){let{chart:e,legend:t,legendContainer:i}=r,s=Ft({childId:Pr,parent:i});s&&s.on("visible",()=>{t.root.events.once(gt.FrameEnded,()=>{Wo(e,t)})}),i.events.on(gt.BoundsChanged,()=>{Wo(e,t)}),t.events.on(gt.BoundsChanged,()=>{Wo(e,t)}),e.seriesContainer.onPrivate("height",()=>{Wo(e,t)}),e.series.each(a=>{a.events.on(gt.DataValidated,()=>{Wo(e,t)})})}function d_(r,e){let t=NA({root:e.root,parent:e,index:0,id:rs(Pr,e.uid)});return t.set("paddingTop",10),$A({chart:r,label:t,labelType:At.LegendTitle}),t}function fM(r,e){e.markers.template.setAll({width:V.legendProperties.legendMarkersSize,height:V.legendProperties.legendMarkersSize}),e.markerRectangles.template.adapters.add("fillOpacity",(t,i)=>{let s=i.parent?.dataItem?.dataContext,a=s&&ji.fillOpacityField in s?s[ji.fillOpacityField]:t;return typeof a=="number"?a:t}),e.markerRectangles.template.adapters.add("strokeOpacity",(t,i)=>{let s=i.parent?.dataItem?.dataContext,a=s&&ji.strokeOpacityField in s?s[ji.strokeOpacityField]:t;return typeof a=="number"?a:t}),e.labels.template.adapters.add("text",(t,i)=>{let s=t,a=oe(r.uid,"config");if(_e(a?.series)!==Q.HeatSeries){let n=i.dataItem?.component;n instanceof bi?s=(i.dataItem?.dataContext?.[n.get("categoryField")??""]??t)?.toString():n instanceof _i&&(s=n.get("name"))}if(a!==void 0){let{legend:n}=a,o={...n?.body,type:je.TS,text:s};s=Ws({textSymbol:o,format:"amChartsV5"})}return s})}function gM(r,e){e.seriesContainer.onPrivate("height",t=>{let i=0,s=oe(e.uid,"config"),a=s?.legend,n=Ft({childId:Is,parent:e});if(n!==void 0){let A=Ft({childId:Pr,parent:n});A!==void 0&&a?.visible!==!1&&a?.title?.visible!==!1&&(i=A.height())}let o=s?.legend?.maxHeight??Number.NaN;Number.isFinite(o)||(s?.legend?.position===Te.Top||s?.legend?.position===Te.Bottom?o=V.legendProperties.maxHeight:typeof t=="number"&&(o=t-i)),r.set("maxHeight",o)})}function pM(r,e,t){r.events.on(gt.DataValidated,()=>{r.dataItems.length>0&&u_(r,e,t)})}function mM(r){let e;if(r!==void 0){let t=oe(r?.uid,"config");e=oe(r.uid,"rtl")&&(t?.legend?.position===Te.Top||t?.legend?.position===Te.Bottom)}return e??!1}function yM(r){let e="";if(r instanceof bt){let t=oe(r.uid,"config"),i=es(t),s=i?C.Rotated:C.NonRotated,a=Ys(t),n=C.SideBySide;a===Qt.Stacked?n=C.Stacked:a===Qt.Stacked100&&(n=C.Stacked100);let o=oe(r.uid,"rtl")?C.RTL:C.LTR,A;switch(t?.legend?.position){case Te.Left:A=C.LegendLeft;break;case Te.Top:A=C.LegendTop;break;case Te.Bottom:A=C.LegendBottom;break;case Te.Right:default:A=C.LegendRight;break}let l=i?r.yAxes.getIndex(0):r.xAxes.getIndex(0),h;l instanceof Jt?h=C.DateAxis:l instanceof ft?h=C.ValueAxis:h=C.CategoryAxis;let c=t?.orderOptions?.data&&"orderBy"in t.orderOptions.data&&t.orderOptions.data.orderBy===vl.Descending?C.OrderByFieldsDESC:C.OrderByFieldsASC;e=`${s}-${o}-${n}-${A}-${h}-${c}`}return e}function xM(r){let e=yM(r);return WC.has(e)}function u_(r,e,t){switch(t){case Q.HistogramSeries:case Q.PieSeries:r.set("reverseChildren",mM(e));break;case Q.BarSeries:case Q.LineSeries:case Q.RadarSeries:case Q.ComboLineAndBarSeries:r.set("reverseChildren",xM(e));break}}function bM(r,e){let t=Ft({childId:Is,parent:r});if(t!==void 0){let i=Ft({childId:Pr,parent:t})??d_(r,t);if(e!==void 0){let{title:s,visible:a}=e,{legendTitle:n}=V.legendProperties;s!==void 0?(gr({label:i,labelConfig:{...s,visible:a!==!1&&s.visible!==!1},defaults:{...n,verticalCenter:Tt.Top}}),Ma({chart:r,label:i,labelType:At.LegendTitle})):si(i,!1)}}}function vM(r,e=!1){let t=e?V.legendProperties.roundedMarkerRadius:V.legendProperties.rectangleMarkerRadius;r.markerRectangles.template.setAll({cornerRadiusTL:t,cornerRadiusTR:t,cornerRadiusBL:t,cornerRadiusBR:t})}function BM(r){let{legend:e,legendConfig:t,chartType:i,seriesConfig:s,chart:a}=r;if(e!==void 0){let n={type:Q.Text,visible:t?.visible,content:{...t?.body,type:je.TS,text:" "}};if(i===Q.PieSeries){let o=Ft({childId:Is,parent:a});o!==void 0&&Ft({childId:Pr,parent:o})!==void 0&&o_({legend:e,seriesConfig:s,webChartLegend:t,chart:a})}gr({label:e.labels.template,labelConfig:n}),e.labels.template.setAll({x:void 0,y:void 0,paddingRight:5})}}function CM(r,e){e===!0&&r.itemContainers.each(t=>{t.events.disableType(gt.Click)})}function wM(r){let{legend:e,chart:t,seriesConfig:i}=r;i?.[0].type!==Q.HeatSeries&&e.itemContainers.template.adapters.add("cursorOverStyle",()=>oe(t.uid,"options")?.disableTogglingLegendItems===!0?"default":"pointer")}function YB(r,e){let{root:t}=r,i;if(c_(e?.series))i=qR(r,e);else{let s=ve.new(t,{id:rs(Is,r.uid),layout:t.verticalLayout}),a=e?.series?.[0].type===Q.HeatSeries?{nameField:ji.nameField,fillField:ji.fillField,strokeField:ji.strokeField,fillOpacityField:ji.fillOpacityField,strokeOpacityField:ji.strokeOpacityField}:{};i=Fa.new(t,{...a,verticalScrollbar:La.new(t,{orientation:"vertical"})}),r instanceof is?rM(i):i.valueLabels.template.setAll({forceHidden:!0,textAlign:"left"}),fM(r,i),d_(r,s),cM(i),hM(i,r),uM({chart:r,legend:i,legendContainer:s}),gM(i,r),pM(i,r,_e(e?.series)),wM({legend:i,chart:r,seriesConfig:e?.series}),s.children.push(i),r.children.push(s)}return i}function _M(r){let e=oe(r.uid??NaN,"config"),t=e?.series[0].heatRulesType===xo.Renderer,i=r.series.values[0].data.values.some(a=>a[ri.valueField]===null||t&&!a[We.rendererSymbolField]),s;if(i){let a=e?.series[0].emptyCells,n=a?.symbol?.color??V.heatChart.emptyCells?.symbol?.color,{outlineColor:o,outlineOpacity:A}=qd(e?.series[0].gridLine);s={[ji.nameField]:a?.text??V.heatChart.emptyCells?.text??"",[ji.fillField]:st(n).color,[ji.fillOpacityField]:st(n).opacity,[ji.strokeField]:o,[ji.strokeOpacityField]:A}}return s}function zB(r){let{chart:e,legend:t,showLegend:i}=r,s=Ft({childId:Is,parent:e});s&&(si(s,i),si(t,i))}function jB(r){let{chart:e,showLegend:t,legendConfig:i}=r;if(i){let{title:s,visible:a}=i,n=s!==void 0&&a!==!1&&s.visible!==!1,o=Ft({childId:Is,parent:e});if(o){let A=Ft({childId:Pr,parent:o});A&&(s?si(A,n):si(A,t))}}}function f_(r){let{chart:e,chartConfig:t,legend:i,heatChartLegendUpdatedNeeded:s,hideEmptySeries:a,seriesConfig:n,queryObject:o,heatRulesTypeChanged:A,heatLegendPositionChanged:l}=r,{legend:h,series:c}=t;if(c_(n)&&s)A&&i&&(zB({chart:e,legend:i,showLegend:!1}),jB({chart:e,showLegend:!1,legendConfig:h})),tM({chart:e,chartConfig:t,heatLegendPositionChanged:l,heatRulesTypeChanged:A});else if(i instanceof Fa&&(n?.[0].type===Q.HeatSeries&&jm(e),Ft({childId:Is,parent:e})!==void 0)){let d=Gf(c)&&h!==void 0&&h.visible!==!1;if(zB({chart:e,legend:i,showLegend:d}),jB({chart:e,showLegend:d,legendConfig:h}),d){vM(i,h?.roundMarkers),BM({legend:i,legendConfig:h,chartType:_e(c),seriesConfig:n,chart:e}),u_(i,e,_e(c)),dM({chart:e,legend:i,chartConfig:t,hideEmptySeries:a,queryObject:o}),bM(e,h),Wo(e,i);let u=oe(e.uid,"options");CM(i,u?.disableTogglingLegendItems),e instanceof is&&AM({legend:i,chart:e,seriesConfig:n,legendConfig:h})}}}function FM(r){let{seriesConfig:e,series:t,sizePolicyChanged:i}=r,{sizePolicy:s}=e,a=t.get("heatRules")?.[0],n=qe(t.uid,"bulletTemplate");if(n!==void 0)if(s!==void 0){let{scaleType:o,field:A,minSize:l,maxSize:h}=s,c=Lx(),d=e.markerSymbol?.size??kf().size??1,u=(l??c.minSize)/d,f=(h??c.maxSize)/d;a!==void 0?i&&(a.min=u,a.max=f,a.logarithmic=o===Cf.Logarithmic,t.set("valueField",A),t.markDirtySize()):t.setAll({valueField:A,calculateAggregates:!0,heatRules:[{target:n,key:"scale",min:u,max:f,dataField:"value",logarithmic:o===Cf.Logarithmic}]})}else t.get("heatRules")?.pop(),t.setAll({valueField:void 0,calculateAggregates:!1})}function dn(r){return r.get("id")===V.overlayId.scatterplotTrendLine}function SM(r){return r.series.values.find(e=>!dn(e))}function g_(r){return r.series.values.find(e=>dn(e))}function LM(r){let{root:e,xAxis:t,yAxis:i,seriesConfig:s}=r,{x:a,y:n}=s,o=nt.new(e,{xAxis:t,yAxis:i,valueXField:a,valueYField:n,layer:V.zIndexes.scatterplotTrendLine});return o.set("id",V.overlayId.scatterplotTrendLine),Ei(o.uid,{type:ti.Trendline}),o}function TM(r){let{markerSeries:e,options:t,queryObject:i}=r,s=Ke.new({});Ei(e.uid,{bulletTemplate:s}),Ri(s,t?.selectionTheme),e.bullets.push(a=>{let n=Re.new(a,{nonScalingStroke:!0,tooltip:zA({series:e,tooltipFormatter:t?.tooltipFormatter})},s);return sa({element:n,series:e,queryObject:i}),C_(n,e),Fs.new(a,{sprite:n})})}function IM(r){let{root:e,chartConfig:t,seriesConfig:i,xAxis:s,yAxis:a,options:n,queryObject:o}=r,{x:A,y:l,id:h}=i,c=[],d=nt.new(e,{xAxis:s,yAxis:a,valueXField:A,valueYField:l,id:h,opacity:0,valueField:"value",maskBullets:!1,layer:V.zIndexes.bulletMarkers});d.strokes.template.set("forceHidden",!0),TM({markerSeries:d,options:n,queryObject:o}),qA(d,t),c.push(d);let u=LM({root:e,xAxis:s,yAxis:a,seriesConfig:i});return h_(u),c.push(u),d.appear(),c}function DM(r){let{root:e,trendLineSeries:t,data:i,dataWasUpdated:s,seriesWereReinitialized:a,valueFormat:n,defaultR2Value:o,chartConfig:A}=r,{chart:l}=t,h=A.series[0],c=h.overlays?.trendLine,d=c?.symbol??{type:je.SLS},u=c?.created===!0&&c.visible!==!1;if(i&&(s||a)){let f=V.scatterplotSeries,m=l!==void 0?oe(l.uid,"formatLocale"):void 0,{x:g,y:v}=h;t.setAll({valueXField:g,valueYField:v}),t.data.setAll(i.trendLinePoints??V.scatterplotSeries.trendLinePoints);let B=Number.isFinite(i.r2)?VA({root:e,value:i.r2??f.r2,valueFormat:n,formatLocale:m}):void 0,w=B!==void 0?`R\xB2 = ${B}`:o;t.set("name",w)}d.color===void 0&&(d.color=bA({colorIndex:1})),ea({element:t,lineSymbol:d,visible:u})}function kM(r){let{root:e,chartConfig:t,markerSeries:i}=r,s=i.chart;if(s){let a=t.series[0],n=Sn(t),o,A,l=kf(),h=new Set;i.dataItems.forEach(d=>{let u=d.bullets?.[0]?.get("sprite");if(u!==void 0){let f=Fr({dataItem:d?.dataContext,seriesConfig:a,chartSubType:xe.NonSpecific,colorMatch:n}),m=er({root:e,element:u,seriesSymbol:a.markerSymbol??l,rendererSymbol:f,colorMatch:n});o=m.symbolWithColorInfo,A=m.stylingInfo,PA(u,A),h.add(JSON.stringify(A))}}),o=h.size>1?void 0:o;let c=new Map;c.set(0,o),ar({data:c,htmlContainer:e.dom,chartId:i.chart?.get("id"),colorMatchApplied:JA(s)})}}function UM(r){let{dataWasUpdated:e,seriesWereReinitialized:t,data:i,series:s,chartConfig:a,loaderHandle:n}=r;if((e||t)&&i){let{x:o,y:A}=a.series[0];if(s.setAll({valueXField:o,valueYField:A}),s.events.once(gt.DataValidated,()=>{n.hideLoader()}),a.series[0].type===Q.ScatterSeries&&a.series[0].sizePolicy){let{field:l}=a.series[0].sizePolicy;i.dataItems=i.dataItems.sort((h,c)=>typeof c[l]=="number"&&typeof h[l]=="number"?c[l]-h[l]:0)}s.data.setAll(i.dataItems)}}function QM(r){let{root:e,chartConfig:t,seriesConfig:i,options:s,fieldList:a,series:n,trendLineSeries:o,data:A,dataWasUpdated:l,seriesWereReinitialized:h,sizePolicyChanged:c,loaderHandle:d,utilsStrings:u}=r,{axes:f}=t,{tooltipFormatter:m}=s??{};n.set("id",i.id);let g=qe(n.uid,"bulletTemplate");g&&Ri(g,s?.selectionTheme),si(n.bulletsContainer,i.visible),DM({root:e,trendLineSeries:o,chartConfig:t,data:A,dataWasUpdated:l,seriesWereReinitialized:h,valueFormat:Lf(),defaultR2Value:u.notAvailable}),FM({seriesConfig:i,series:n,sizePolicyChanged:c}),un(r)&&fn({styleCallback:kM,callbackProps:{root:e,chartConfig:t,markerSeries:n,dataWasUpdated:l},series:n,seriesConfig:i}),LR({axesConfig:f,seriesConfig:i,series:n,fieldList:a,tooltipFormatter:m}),UM({dataWasUpdated:l,seriesWereReinitialized:h,data:A,series:n,chartConfig:t,loaderHandle:d})}function EM(r){r.series.each(e=>{e instanceof nt?e.dataItems.forEach(t=>{let i=t.bullets?.[0];i&&ms({element:i.get("sprite"),selected:!1,backToDefaultState:!0})}):e instanceof _t?e.columns.each(t=>{ms({element:t,selected:!1,backToDefaultState:!0})}):e instanceof bi&&e.slices.each(t=>{ms({element:t,selected:!1,backToDefaultState:!0})})})}function tA(r){let{chart:e,selectionSource:t}=r,i=oe(e.uid,"currentSelectionDataItems");Fi(e.uid,{currentSelectionDataItems:void 0,currentSelectionOIDs:void 0,currentSelectionIndexes:void 0,computedSelectionDataItems:void 0,computedSelectionIndexes:void 0,pendingSelectionQueries:!1}),Hm(e)&&EM(e),i&&_o({data:{selectionSource:t??li.ClearSelection},htmlContainer:e.root.dom})}function p_(r){let e=r?.selection.width();return e!==void 0&&e>0&&e!==2e7}function sa(r){let{element:e,series:t,queryObject:i}=r;e.events.on(gt.PointerUp,async s=>{let{chart:a}=t;if(a){let n=a.get("cursor");if(!p_(n)){let o=oe(t.chart?.uid??Number.NaN,"actionMode");if(!oe(t.chart?.uid??Number.NaN,"filterBySelection")&&o!==et.None&&o!==et.Zoom){let A=s.target,l=AR(s,t);ms({element:A,selected:Oa(A.uid,"selected")!==!0}),l&&a.series.each(h=>{h instanceof nt?h.dataItems.forEach(c=>{let d=c.bullets?.[0]?.get("sprite");d!==A&&ms({element:d,selected:!1})}):h instanceof _t?h.columns.each(c=>{c!==A&&ms({element:c,selected:!1})}):h instanceof bi&&h.slices.each(c=>{c!==A&&ms({element:c,selected:!1})})}),await qm({chart:a,selectionSource:li.SelectionByClick,queryObject:i})}}}})}function ZB(r,e){let t=Number.NaN,i=Number.NaN;if(r instanceof Ua){let s=e.get("renderer")instanceof ss,a=r.getPrivate(s?"downPositionX":"downPositionY"),n=r.getPrivate(s?"positionX":"positionY");if(a!==void 0&&n!==void 0)if(e instanceof ni)t=e.axisPositionToIndex(e.toAxisPosition(a)),i=e.axisPositionToIndex(e.toAxisPosition(n));else if(e instanceof Jt){t=e.positionToDate(e.toAxisPosition(a)).getTime(),i=e.positionToDate(e.toAxisPosition(n)).getTime();let o=e.getPrivate("baseInterval"),A=Oo.getDuration(o.timeUnit,o.count)*(e.chart?.series.getIndex(0)?.get("locationX")??1);t-=A,i-=A}else e instanceof ft&&(t=e.positionToValue(e.toAxisPosition(a)),i=e.positionToValue(e.toAxisPosition(n)))}else{let s=e.get("renderer")instanceof Qi,a=r.getPrivate(s?"downPositionX":"downPositionY"),n=r.getPrivate(s?"positionX":"positionY");a!==void 0&&n!==void 0&&(t=a*(s?e.width():e.height()),i=n*(s?e.width():e.height()))}return{value1:t,value2:i}}function RM(r){let e=()=>{let t=r instanceof bt?r.get("cursor"):void 0,i=oe(r.uid,"filterBySelection");(t===void 0||!p_(t))&&!i&&tA({chart:r})};r.get("background")?.events.on(gt.Click,e),r instanceof bt&&r.plotContainer.events.on(gt.PointerUp,e)}function MM(r){let{series:e,cursorBounds:t,multiSelect:i}=r,s=oe(e.chart?.uid??NaN,"config"),a=_e(s?.series);e.columns.each(n=>{let o=n.get("x"),A=n.get("y"),l=n.height()<0&&a!==Q.HeatSeries,h=l?Math.abs(n.height()):n.height();if(typeof o=="number"&&typeof A=="number"){let c=l?A-h:A,d={left:o,right:o+n.width(),top:c,bottom:c+h};if(a===Q.HeatSeries){let f=d.top;d.top=d.bottom,d.bottom=f}let u=!(d.left>t.right||d.right<t.left||d.top>t.bottom||d.bottom<t.top)||i&&Oa(n.uid,"selected")===!0;ms({element:n,selected:u})}})}function PM(r){let{series:e,cursorBounds:t,multiSelect:i}=r;e.dataItems.forEach(s=>{let a=s.bullets?.[0]?.get("sprite");if(a){let n=s.bullets?.[0]?.get("sprite").get("x"),o=s.bullets?.[0]?.get("sprite").get("y"),A=typeof n=="number"&&typeof o=="number"&&n>=t.left&&n<=t.right&&o>=t.top&&o<=t.bottom||i&&Oa(a.uid,"selected")===!0;ms({element:a,selected:A})}})}function OM(r){let{xAxis:e,series:t,cursorBounds:i,multiSelect:s}=r;t.dataItems.forEach(a=>{let n=a.bullets?.[0]?.get("sprite");if(n){let o=a.dataContext,A=a.get("valueX"),l=a.get("valueY");if(e instanceof ni){let u=o?.[V.xAxisField];typeof u=="string"&&(A=e.categoryToIndex(u))}let h=typeof A=="number"&&A>=i.left&&A<=i.right,c=typeof l=="number"&&l>=i.top&&l<=i.bottom,d=h&&c||s&&Oa(n.uid,"selected")===!0;ms({element:n,selected:d})}})}function HM(r){let{cursor:e,xAxis:t,yAxis:i}=r,s=e.get("behavior"),{value1:a,value2:n}=ZB(e,t),{value1:o,value2:A}=ZB(e,i),l={left:a>n?n:a,right:a>n?a:n,top:o<A?o:A,bottom:o<A?A:o};return s==="selectX"?(l.top=Number.NEGATIVE_INFINITY,l.bottom=Number.POSITIVE_INFINITY):s==="selectY"&&(l.right=Number.POSITIVE_INFINITY,l.left=Number.NEGATIVE_INFINITY),l}function NM(r,e){r.get("cursor")?.events.on(gt.SelectEnded,async t=>{let i=oe(r.uid,"actionMode");if(i===et.MultiSelection||i===et.MultiSelectionWithCtrlKey){let s=r.xAxes.getIndex(0),a=r.yAxes.getIndex(0);if(s&&a){let n=oe(r.uid,"config"),o=_e(n?.series),A=r.get("cursor"),l=HM({cursor:A,xAxis:s,yAxis:a}),h=Mw(t);r.series.each(c=>{!dn(c)&&!Cc(c)&&(c instanceof _t?MM({series:c,cursorBounds:l,multiSelect:h}):c instanceof nt&&(o===Q.RadarSeries?OM({xAxis:s,series:c,cursorBounds:l,multiSelect:h}):PM({series:c,cursorBounds:l,multiSelect:h})))}),si(A.selection,!1),await qm({chart:r,selectionSource:li.SelectionByRange,queryObject:e})}}})}function $M(r){let{series:e,labelDefaults:t,externalDataLabelFormatter:i,seriesType:s}=r;e.bullets.push(()=>{let a=oe(e.chart?.uid??Number.NaN,"config")?.series?.[0]?.dataLabels??r.dataLabelsConfig,n=Fs.new(e.root,{locationY:1,sprite:at.new(e.root,{populateText:!0,oversizedBehavior:"hide",centerY:Ae,centerX:Ce,paddingBottom:0,paddingTop:0,paddingRight:0,paddingLeft:0,fill:st(a?.content.color).color,fontSize:a?.content.font?.size})}),o=n.get("sprite");return o&&(m_({dataLabel:o,series:e,externalDataLabelFormatter:i}),e.chart&&a?.visible&&Ow({label:o,chart:e.chart,seriesType:s}),fu({...r,dataLabel:o,dataLabelsConfig:a,labelDefaults:t,defaultDataLabelFormatter:y_})),n})}function m_(r){let{dataLabel:e,series:t,externalDataLabelFormatter:i}=r;e.adapters.remove("text"),e.adapters.remove("html");let s=i!==void 0?"html":"text";mc({label:e,labelOutputProp:s}),e.adapters.add(s,(a,n)=>{let o=a??"",A=qe(t.uid,"histogramDataLabelFormatter"),l=n.dataItem;if(l&&"dataContext"in l&&l.dataContext!==void 0&&A!==void 0){let{count:h,minValue:c,maxValue:d}=l.dataContext;o=A(h,c,d)}return s==="html"?mi(o):o})}function y_(r){let{numberFormatter:e,dataLabelsConfigContent:t,externalDataLabelFormatter:i}=r;return(s,a,n)=>Ws({textSymbol:{...t,text:e.format(s)},format:i===void 0?"amChartsV5":"html"})}function VM(r){let{series:e,labelDefaults:t,externalDataLabelFormatter:i}=r;e.dataItems.forEach(s=>{let a=s.bullets?.[0];if(a){let n=a.get("sprite");n&&n instanceof at&&(m_({dataLabel:n,series:e,externalDataLabelFormatter:i}),fu({...r,dataLabel:n,labelDefaults:t,defaultDataLabelFormatter:y_,externalDataLabelFormatter:i}))}})}function x_(r){let{series:e,dataLabelsConfig:t}=r,i=t?.visible,s=e.bullets.hasIndex(0);i!==!0?s&&$m(e,0):(s||$M(r),VM(r))}function Cc(r){return[V.overlayId.histogramMean,V.overlayId.histogramMedian,V.overlayId.histogramStdDev,V.overlayId.histogramNormalDistribution].includes(r.get("id")??"")}function XM(r){let e="";switch(r){case ti.Mean:e=V.overlayId.histogramMean;break;case ti.Median:e=V.overlayId.histogramMedian;break;case ti.StdDev:e=V.overlayId.histogramStdDev;break;case ti.Normal:e=V.overlayId.histogramNormalDistribution;break}return e}function KM(r){let{series:e,seriesConfig:t,colorMatch:i,rendererSymbol:s}=r,{root:a}=e,n=e.chart;if(n){let o=t.fillSymbol??Tx(),A=er({root:e.root,element:e.columns.template,seriesSymbol:o,rendererSymbol:s,colorMatch:i,isChartFillSymbol:!0}).symbolWithColorInfo;if(A!==void 0){let l=new Map;l.set(0,A),ar({data:l,htmlContainer:a.dom,chartId:n.get("id"),colorMatchApplied:JA(n)})}}}function GM(r){let{series:e,data:t,dataWasUpdated:i,seriesWereReinitialized:s,loaderHandle:a}=r;t&&(i===!0||s===!0)&&(e.events.once(gt.DataValidated,()=>{a.hideLoader()}),e.data.setAll(t.bins))}function Vd(r){let{root:e,xAxis:t,yAxis:i,type:s,utilsStrings:a}=r,n=nt.new(e,{id:XM(s),valueXField:"x",valueYField:"y",xAxis:t,yAxis:i,visible:!1});return s===ti.Normal&&ZA(n,a.overlays.normal),Ei(n.uid,{isOverlay:!0,type:s}),n.set("connect",!1),n.appear(),n}function WM(r){let{root:e,seriesConfig:t,xAxis:i,yAxis:s,options:a,chartConfig:n,queryObject:o}=r,{id:A,name:l}=t,h=_t.new(e,{id:A,name:l,xAxis:i,yAxis:s,categoryXField:mA.Start,valueYField:mA.Count,maskBullets:!1});return Ri(h.columns.template,a?.selectionTheme),sa({element:h.columns.template,series:h,queryObject:o}),h.columns.template.setAll({width:Ae}),x_({yAxisValueFormat:n.axes?.[1]?.valueFormat,series:h,seriesConfig:t,seriesType:Q.HistogramSeries,dataLabelsConfig:t.dataLabels,externalDataLabelFormatter:a?.dataLabelFormatter}),qA(h,n),h.appear(),h}function YM(r){let{root:e,seriesConfig:t,xAxis:i,xAxisForOverlaySeries:s,yAxis:a,utilsStrings:n,options:o,chartConfig:A,queryObject:l}=r,h=[],c=WM({root:e,seriesConfig:t,xAxis:i,yAxis:a,options:o,chartConfig:A,queryObject:l});return h.push(c),Xm(c,o?.tooltipFormatter),s&&(h.push(Vd({root:e,xAxis:s,yAxis:a,type:ti.Mean,utilsStrings:n})),h.push(Vd({root:e,xAxis:s,yAxis:a,type:ti.Median,utilsStrings:n})),h.push(Vd({root:e,xAxis:s,yAxis:a,type:ti.StdDev,utilsStrings:n})),h.push(Vd({root:e,xAxis:s,yAxis:a,type:ti.Normal,utilsStrings:n}))),h}function zM(r){let{lineSeries:e,overlayConfig:t,data:i,utilsStrings:s}=r;if(!t)si(e,!1);else{let{symbol:a,created:n,visible:o}=t,A=qe(e.uid,"type"),l=a??{type:je.SLS};if(t.symbol?.color===void 0&&(l.color=bA({colorIndex:Wf(A),histogramOverlays:!0})),ea({element:e,lineSymbol:l,visible:n===!0&&o!==!1}),i&&"bins"in i){let c=i.bins.map(w=>w.count),d=Math.max(...c),{mean:u,stddev:f,median:m}=i,g=u-f,v=u+f,B=[];switch(A){case ti.Mean:B=[{x:u,y:0},{x:u,y:d}];break;case ti.Median:B=[{x:m,y:0},{x:m,y:d}];break;case ti.StdDev:B=[{x:g,y:0},{x:g,y:d},{x:null,y:null},{x:v,y:0},{x:v,y:d}];break}e.data.setAll(B)}let h=e.data.getIndex(0)?.x;if(A===ti.StdDev&&(h=i?.stddev??qe(e.uid,"stddev"),Ei(e.uid,{stddev:h})),typeof h=="number"){let c=A;switch(A){case ti.Mean:c=s.overlays.mean;break;case ti.Median:c=s.overlays.median;break;case ti.StdDev:c=s.overlays.stdDev;break}let d=oe(e.chart?.uid??Number.NaN,"formatLocale"),u=VA({root:e.root,value:h,valueFormat:Lf(),formatLocale:d}),f=`${c}: ${u}`;ZA(e,f)}}}function jM(r){let{lineSeries:e,overlayConfig:t,data:i,numberOfPoints:s}=r;if(!t)si(e,!1);else{let{symbol:a,created:n,visible:o}=t,A=a??{type:je.SLS};if(t?.symbol?.color===void 0&&(A.color=bA({colorIndex:Wf(ti.Normal),histogramOverlays:!0})),ea({element:e,lineSymbol:A,visible:n===!0&&o!==!1}),i&&"bins"in i){let{mean:l,stddev:h,min:c,max:d}=i,u=oR(i.bins),f=aR(c,d,s??V.histogramSeries.normalDistribNumberOfPoints).map(m=>({x:m,y:nR({x:m,mean:l,stddev:h,scalingFactor:u})}));e.data.setAll(f)}}}function ZM(r){let{series:e,seriesConfig:t,seriesWereReinitialized:i,dataWasUpdated:s,data:a,loaderHandle:n,options:o}=r;e.set("id",t.id),si(e,t.visible),Ri(e.columns.template,o?.selectionTheme),no(e.columns.template,a?.bins?.length),ZA(e,t.name);let A=a?.bins.find(l=>"symbol"in l)?.symbol;un(r)&&fn({styleCallback:KM,callbackProps:{...r,rendererSymbol:A},series:e,seriesConfig:t}),GM({series:e,seriesWereReinitialized:i,dataWasUpdated:s,data:a,loaderHandle:n})}function qM(r){let{allChartSeries:e,seriesConfig:t,data:i,utilsStrings:s,fieldList:a,axes:n,options:o,dataLabelFormatter:A,chartConfig:l}=r,{tooltipFormatter:h}=o??{};for(let c=0;c<e.length;c++){let d=e[c];if(d instanceof nt&&qe(d.uid,"isOverlay")){let u=qe(d.uid,"type");if(u===ti.Normal)jM({lineSeries:d,overlayConfig:t.overlays?.comparisonDistribution,data:i});else{let f;switch(u){case ti.Mean:f=t.overlays?.mean;break;case ti.Median:f=t.overlays?.median;break;case ti.StdDev:f=t.overlays?.standardDeviation;break}zM({lineSeries:d,overlayConfig:f,data:i,utilsStrings:s})}}else d instanceof _t&&(ZM({...r,series:d}),x_({series:d,yAxisValueFormat:l.axes?.[1]?.valueFormat,seriesConfig:t,seriesType:Q.HistogramSeries,dataLabelsConfig:t.dataLabels,externalDataLabelFormatter:A}),vR({axes:n,series:d,seriesConfig:t,fieldList:a,tooltipFormatter:h,utilsStrings:s,axesConfig:l.axes}))}}function JM(r){let e="";return r instanceof Ls?e=r.get("categoryXField")??r.get("valueXField")??"":r instanceof bi&&(e=r.get("categoryField")??""),e}function eP(r){let e="";return r instanceof Ls?e=r.get("categoryYField")??r.get("valueYField")??"":r instanceof bi&&(e=r.get("categoryField")??""),e}function wc(r){let e="",{chart:t}=r;return t!==void 0&&(e=oe(t.uid,"isRotated")===!0?JM(r):eP(r)),e}function tP(r){Yf(),Rf(r.root.dom),tA({chart:r})}function iP(r){let{chart:e,chartType:t,showMean:i}=r;return e.series.values.filter(s=>{let a=!0;return dn(s)||Cc(s)||qe(s.uid,"isOverlay")===!0?a=!1:t===Q.BoxPlotSeries&&(i?a=qe(s.uid,"isBoxPlotMeanLineSeries")===!0:a=s instanceof Ms),a}).every(s=>qe(s.uid,"isSelectionApplied")===!0)}function sP(r){r.series.each(e=>Ei(e.uid,{isSelectionApplied:void 0}))}function rP(r){let e=[];if(!dn(r)&&!Cc(r))switch(!0){case r instanceof bi:e=r.slices.values;break;case r instanceof _t:let{chart:t}=r;if(t){let i=oe(t.uid,"config");if(i){let s=_e(i?.series),a=[];s===Q.HistogramSeries?a=[mA.Count]:s===Q.HeatSeries?a=[ri.valueField]:a=ya(i?.series,[r.get("id")??""]),e=r.columns.values.filter(n=>{let o=!1,A=n.dataItem?.dataContext;return A&&(o=s===Q.HeatSeries||a.some(l=>l in A&&Number.isFinite(A[l]))),o})}}break;case r instanceof nt:e=Array.from(r.dataItems.values());break}return e}function b_(r,e){let t=oe(r.uid,"actionMode");(t===et.MonoSelection||t===et.None)&&e.length>1?tA({chart:r}):e.forEach(i=>{ms({element:i,selected:!0})})}function aP(r){let{chart:e,selectionIndexes:t,queryObject:i}=r,s=[],a=[],n=oe(e.uid,"config"),o=pa(n),A=ya(n?.series??[]),l=ze(n?.series),h=_e(n?.series);return e.series.each((c,d)=>{if(n&&c.get("visible")===!0&&c.get("id")!==V.overlayId.scatterplotTrendLine){let u=n.series[0].x,f=wc(c),m=t.get(d);if(m!==void 0){let g;if(c instanceof nt&&(g=c.dataItems.map(v=>v?.bullets?.[0]?.get("sprite")).filter(v=>v!==void 0)),g!==void 0){let{indexesToSelect:v}=m;g.forEach((B,w)=>{if(v===void 0||v.includes(w)){let _=hn({dataContext:B.dataItem?.dataContext,yList:A,yAxisField:f,xAxisField:u,chartType:h,chartSubType:l,showOutliers:o,isFeatureCollectionLayer:ga(i)});_!==void 0&&s.push(_),a.push(B)}else ms({element:B,selected:!1})})}}}}),b_(e,a),s}function nP(r){let{chart:e,chartConfig:t,options:i,elementsToApplySelectionTo:s,selectionDataItems:a,layerOidField:n,xAxisField:o,yAxisField:A,splitBy:l,queryObject:h}=r,c=_e(t.series),d=ze(t.series),u=pa(t),f=[],m=[],g=[],v=ya(t.series);return s.forEach((B,w)=>{let _=B instanceof qt||B instanceof Ss?B:B.bullets?.[0]?.get("sprite");if(_!==void 0){let L=B instanceof qt||B instanceof Ss?_.dataItem?.dataContext:B.dataContext;if(L!==void 0&&c===Q.BoxPlotSeries&&L[V.boxPlot.boxPlotOutlierId]!==!0&&(L=hn({dataContext:L,yAxisField:A,yList:v,xAxisField:o,splitBy:l,chartType:c,chartSubType:d,showOutliers:u,isFeatureCollectionLayer:ga(h)})),tu({elementDataContext:L,options:i,selectionDataItems:a,layerOidField:n,xAxisField:o,yAxisField:A,chartType:c,splitBy:l,chartSubType:d,showOutliers:u}))if(f.push(_),m.push(w),_?.dataItem instanceof yo&&L!==void 0)g.push(L);else{let k=new Set;c===Q.PieSeries&&Ln(L)?(FA({groupOfSlicesDataContext:L})??[]).forEach(D=>{a.forEach(E=>{vm({layerOidField:n,sliceDataContext:D,selectionDataContext:E,xAxisField:o})&&k.add(D)})}):k.add(L),Array.from(k)?.forEach(D=>{let E=hn({dataContext:D,yAxisField:A,yList:v,xAxisField:o,splitBy:l,chartType:c,chartSubType:d,showOutliers:u,isFeatureCollectionLayer:ga(h)});E!==void 0&&g.push(E)})}else ms({element:_,selected:!1})}}),b_(e,f),{selectedIndexes:m,newSelectionDataItems:g}}function oP(r){let{series:e,seriesIndex:t,queryObject:i,dataWasUpdated:s,sortChanged:a,groupOfSlicesWasUpdated:n,xAxisField:o,yAxisField:A,splitBy:l,rotationChanged:h}=r,{chart:c}=e;if(c instanceof zi){let d=oe(c.uid,"options"),{filterBySelection:u,selectionData:f,returnSelectionIndexes:m,returnSelectionOIDs:g}=d??{},{selectionIndexes:v}=f??{},B=oe(c.uid,"config"),w=Us(B),_=_e(B?.series),L=ze(B?.series),k=rP(e);if(u!==!0&&B!==void 0){let D=ws(i),E=To(D).idField,O=oe(c.uid,"currentSelectionDataItems"),I=!1,M=!1,S,P=!1;if(k?.[0]!==void 0){if(d?.viewExtentUpdated!==!0){S=d?.selectionData?.selectionItems??O;let Y=oe(c.uid,"currentSelectionIndexes");P=sg({itemsA:S,itemsB:O,isPieFromFields:L===xe.PieFromFields,x:o,y:A,outStatisticFieldName:B.series[0].query?.outStatistics?.[0]?.outStatisticFieldName});let G=v?.keys.length!==Y?.keys.length||!Ya(v,Y);I=a===!0||s===!0||n===!0||h===!0||S!==void 0&&P;let ie=!0;if(v!==void 0&&v.size>0){let{indexesToSelect:J}=v.get(t??0)??{};ie=J!==void 0&&J[0]===void 0}M=s===!0||n===!0||h===!0||!ie&&G}if(I&&S!==void 0&&S.length>0){let{selectedIndexes:Y,newSelectionDataItems:G}=nP({chart:c,chartConfig:B,options:d,elementsToApplySelectionTo:k,selectionDataItems:S,layerOidField:E,xAxisField:o,yAxisField:A,splitBy:l,queryObject:i}),ie=oe(c.uid,"computedSelectionDataItems")??[];if(ie.push(...G),B.series.length>1&&L!==xe.BarAndLineNoAggregation&&L!==xe.BarAndLineSplitByNoAggregation&&(ie=ag({data:ie,x:B.series[0].x,splitByField:ma(B.series[0].query?.where)})),Fi(c.uid,{computedSelectionDataItems:ie}),m===!0){let J=Array.from(new Set(Y)),ne=oe(c.uid,"computedSelectionIndexes");ne===void 0&&(ne=new Map),J.length===k.length?ne.set(t??0,{}):ne.set(t??0,{indexesToSelect:J}),Fi(c.uid,{computedSelectionIndexes:ne})}}else if(v!==void 0&&M)S=aP({chart:c,selectionIndexes:v,queryObject:i});else{let Y=G=>{let ie=G.dataItem?.dataContext;return tu({elementDataContext:ie,options:d,selectionDataItems:S??O??[],layerOidField:E,xAxisField:o,yAxisField:A,chartType:_,splitBy:l,chartSubType:L})};k.forEach(G=>{let ie=G instanceof qt||G instanceof Ss?G:G.bullets?.[0]?.get("sprite");ie!==void 0&&ms({element:ie,selected:Oa(ie.uid,"selected")===!0||Y(ie),backToDefaultState:S===void 0||S.length===0})})}}if(Ei(e.uid,{isSelectionApplied:!0}),iP({chart:c,chartType:_,showMean:w})&&(sP(c),P||M)){let Y=oe(c.uid,"computedSelectionDataItems")??S;Y=Array.from(new Set(Y?.map(ie=>JSON.stringify(ie)))).map(ie=>JSON.parse(ie)),S!==void 0&&Fi(c.uid,{currentSelectionDataItems:Y}),f?.selectionOIDs!==void 0&&Fi(c.uid,{currentSelectionOIDs:f.selectionOIDs});let G;if(m===!0&&(G=oe(c.uid,"computedSelectionIndexes")??v,G!==void 0&&Fi(c.uid,{currentSelectionIndexes:G})),Y===void 0||Y.length===0)tA({chart:c,selectionSource:li.ProgrammaticSelection});else{let ie={selectionItems:Y,selectionSource:li.ProgrammaticSelection};m===!0&&(ie.selectionIndexes=G),g!==!1&&(ie.selectionOIDs=f?.selectionOIDs??oe(c.uid,"currentSelectionOIDs")),_o({data:ie,htmlContainer:c.root.dom})}Fi(c.uid,{computedSelectionIndexes:void 0,computedSelectionDataItems:void 0})}}}}function AP(r){let{chart:e,chartConfig:t,queryObject:i}=r;!oe(e.uid,"filterBySelection")&&!Cs(i)&&e.series.values.filter(s=>!dn(s)&&!Cc(s)).forEach(s=>{let{seriesConfig:a,seriesIndex:n}=yu(s,t);if(a){let o=a.x,A=a.type===Q.BoxPlotSeries||a.type===Q.HeatSeries?a.y.toString():wc(s),l=a.query?.where??"";lP({callbackProps:{...r,series:s,seriesIndex:n,xAxisField:o,yAxisField:A,splitBy:l},series:s,seriesConfig:a})}})}async function qm(r){let{chart:e,selectionSource:t,queryObject:i}=r,s=oe(e.uid,"config"),a=Cs(i);if(s){let n=oe(e.uid,"options"),o=_e(s.series),A=ze(s.series),l=pa(s),h=ya(s.series),c=s.series[0].x,d=wA(i),u=a?void 0:Dh(ws(i))?.dateFieldsTimeZone,f=Ja(s)?s.outTimeZone:void 0,m=_r(i).find(g=>g.name===c)?.type;try{let g=new Set,v=[],B=new Map,w=[],_=[],L=0;if(e.series.each((k,D)=>{let{seriesConfig:E}=yu(k,s),O=E?.query?.where??"",I=E?.type===Q.BoxPlotSeries?E.y.toString():wc(k),M;k instanceof nt?M=k.dataItems:k instanceof _t?M=k.columns.values:k instanceof bi&&(M=k.slices.values),M?.forEach((S,P)=>{let Y=S instanceof qt||S instanceof Ss?S:S.bullets?.[0]?.get("sprite");if(Y!==void 0&&Oa(Y.uid,"selected")===!0){L+=1;let G=S instanceof qt||S instanceof Ss?S.dataItem?.dataContext:S.dataContext;if(G!==void 0){if(G=hn({dataContext:G,yAxisField:I,yList:h,xAxisField:c,splitBy:O,chartType:o,chartSubType:A,showOutliers:l,isFeatureCollectionLayer:ga(i)}),g.has(JSON.stringify(G))||(g.add(JSON.stringify(G)),v.push(G)),P!==void 0){let J=B.get(D)?.indexesToSelect??[];J.push(P),B.set(D,{indexesToSelect:Array.from(new Set(J))})}let ie=G[Co.uniqueIdsName]!==void 0?[G[Co.uniqueIdsName]].flat():[];if(ie.length>0)_.push(...ie);else if(!a&&n?.returnSelectionOIDs!==!1){let J=rg({dataContext:G,options:n,xAxisField:c,yAxisField:I??"",splitBy:O,xAxisFieldType:m,chartConfig:s,outTimeZone:f,dataTimeZone:u,runsOnClientQueryEngine:d,queryObject:i});w.push(J)}}}})}),L===0)tA({chart:e,selectionSource:t});else{if(!a&&n?.returnSelectionOIDs!==!1&&w.length>0){let D={...oe(e.uid,"queryConfig")};delete D.groupByFieldsForStatistics,delete D.orderByFields,delete D.outStatistics;let E=await LC({whereList:w,queryObject:i,queryConfig:D});if(w.length===L)_=E;else for(let O=0;O<E.length;O+=1)_.push(E[O])}_=Array.from(new Set(_)),Fi(e.uid,{currentSelectionDataItems:v,currentSelectionOIDs:_,currentSelectionIndexes:B});let k={selectionItems:v,selectionSource:t};n?.returnSelectionIndexes===!0&&(k.selectionIndexes=B),n?.returnSelectionOIDs!==!1&&(k.selectionOIDs=_),a&&(k.selectionPixelTarget=jx({chartConfig:s,layer:i,selectionDataItems:v})),_o({data:k,htmlContainer:e.root.dom})}}catch(g){Fi(e.uid,{pendingSelectionQueries:!1});let{httpStatus:v}=g instanceof fa?g.details.details:g.details??{};if(v===429)tP(e);else throw g}Fi(e.uid,{pendingSelectionQueries:!1})}}function jA(r,e){let{y:t,query:i}=e,s=ze(r.series)===xe.BarAndLineSplitByNoAggregation?`${t.toString()}_${Tn({where:i?.where,keepSurroundingQuotes:!1,escape:!1})}`:[t].flat()[0],a=V.xAxisField,n=r.rotated===!0?"categoryYField":"categoryXField",o=r.rotated===!0?"valueYField":"valueXField",A=r.axes?.[0]?.valueFormat?.type===Q.CategoryAxisFormat?n:o,l=r.rotated===!0?"valueXField":"valueYField";return{xField:a,yField:s,xAxisField:A,yAxisField:l}}function un(r){let{chartConfig:e,seriesWereReinitialized:t,dataWasUpdated:i,colorMatchChanged:s,seriesStyleChanged:a,sortChanged:n,groupOfSlicesUpdateNeeded:o,stackedTypeChanged:A}=r,l=e.series.length===1,h=_e(e.series),c=!!(t||i||s||a||A),d=!1;switch(h){case Q.BarSeries:d=!!(l&&n);break;case Q.PieSeries:d=!!(o||n);break}return c||d}function v_(r){let{series:e,callbackInfo:t,seriesConfig:i}=r,s=n=>{let{type:o,callbackProps:A}=n;o==="selection"?oP(A):(si(e,i.visible),n.styleCallback(A))},a=oe(e.chart?.uid??Number.NaN,"config");switch(!0){case e instanceof qr:e.events.once(gt.DataValidated,()=>s(t));break;case e instanceof _t:{let n=e.root.events.on(gt.FrameEnded,()=>{e.columns.length===e.dataItems.length&&(n.dispose(),s(t))})}break;case e instanceof nt:{let n=qe(e.uid,"bulletTemplate");if(n)if(_e(a?.series??[i])===Q.ScatterSeries){let o=e.root.events.on(gt.FrameEnded,()=>{n.entities.length===e.data.length&&e.dataItems[e.dataItems.length-1]?.bullets?.[0]?.get("sprite")&&(o.dispose(),s(t))})}else{let o=e.root.events.on(gt.FrameEnded,()=>{let A=wc(e)??"",l=a?.series[0]?.x??"";e.dataItems.filter(h=>{let c=h.dataContext;return A in c&&l in c&&c[l]!==void 0}).every(h=>!Number.isFinite(h.dataContext[A])||h?.bullets?.[0]?.get("sprite"))&&(o.dispose(),s(t))});t.type==="style"&&s(t)}}break;default:s(t);break}}function lP(r){let{series:e,callbackProps:t,seriesConfig:i}=r;v_({callbackInfo:{callbackProps:t,type:"selection"},series:e,seriesConfig:i})}function fn(r){let{series:e,styleCallback:t,callbackProps:i,seriesConfig:s}=r;v_({callbackInfo:{styleCallback:t,callbackProps:i,type:"style"},series:e,seriesConfig:s})}function B_(r){let e;return r&&r.series.length>0&&(e=r.series.values.map(t=>t.get("visible")!==!1?`${t.get("id")}`:"").filter(t=>t!=="")),e}function Jm(r){let{series:e,chartConfig:t,isRotated:i}=r,s=Ys(t),a=t.series[0],n=e.chart?.xAxes.getIndex(0),o=e.chart?.yAxes.getIndex(0),A=i&&(s===Qt.Stacked||s===Qt.Stacked100)?o:n;switch(s){case Qt.Stacked:{e.setAll({stacked:!0,valueYShow:"valueYWorking",valueXShow:"valueXWorking",baseAxis:A}),e instanceof nt&&e.set("stackToNegative",a.stackNegativeValuesToBaseline??V.lineSeries.stackNegativeValuesToBaseline);break}case Qt.Stacked100:{e.setAll({stacked:!0,baseAxis:A}),i===!0?(e.setAll({valueXShow:"valueXTotalPercent"}),n instanceof ft&&n.set("calculateTotals",!0)):(e.setAll({valueYShow:"valueYTotalPercent"}),o instanceof ft&&o.set("calculateTotals",!0));break}case Qt.Side:default:{e.setAll({stacked:!1,valueYShow:"valueYWorking",valueXShow:"valueXWorking"});break}}}function ZA(r,e){r.set("name",e)}function cP(r){let{chart:e,chartType:t,rotated:i,assignToSecondValueAxis:s}=r,a=e.xAxes.getIndex(0),n=e.yAxes.getIndex(0),o=[a,n,e.xAxes.getIndex(1)??e.yAxes.getIndex(1)],A,l;i!==!0?(A=o[0],l=s===!0&&o[2]?o[2]:o[1]):(A=s===!0&&o[2]?o[2]:o[0],l=o[1]);let h=t===Q.HistogramSeries?e.xAxes.getIndex(1):void 0;return{xAxis:A,xAxisForHistogramOverlaySeries:h,yAxis:l}}function qA(r,e){let{series:t}=e,i=_e(t);r instanceof _t&&(r.columns.template.setAll({hoverOnFocus:!0}),i===Q.HeatSeries?r.columns.template.set("ariaLabel",uP()):r.columns.template.set("ariaLabel",El()))}function no(r,e){r&&r.set("focusable",(e??0)<V.focusableThreshold)}function hP(r){let{currentChartSeriesCount:e,chartConfig:t,dataUpdateDetails:i,seriesCompositionChanged:s,seriesFilteredOut:a,sizePolicyChangesRequireSeriesReinit:n}=r,o=!1;switch(_e(t.series)){case Q.BarSeries:case Q.LineSeries:case Q.RadarSeries:case Q.ComboLineAndBarSeries:case Q.BoxPlotSeries:o=a||s||i?.common?.numberOfSeriesChanged===!0||e!==t.series.length;break;case Q.ScatterSeries:o=n===!0;break}return o}function ey(r){let{chartConfig:e,series:t,seriesIndex:i,queryObject:s}=r,a=e.series[i];if(a){let n=ze(e.series),o=a.name;if(n===xe.BarAndLineSplitBy||n===xe.BarAndLineSplitByNoAggregation){let A=ma(a.query?.where);o=Uh({queryObject:s,fieldName:A,fieldValue:o})??o}ZA(t,o)}}function yu(r,e){let t=_e(e?.series),i,s;return e?.series.forEach((a,n)=>{let o=!1;t!==Q.BoxPlotSeries||r instanceof Ms?o=r.get("id")===a.id:r instanceof qr?o=r.get("id")?.replace(`_${kt.Top}`,"")===a.id||r.get("id")?.replace(`_${kt.Median}`,"")===a.id||r.get("id")?.replace(`_${kt.Bottom}`,"")===a.id:r instanceof nt&&(o=r.get("id")?.replace(`_${kt.Outliers}`,"")===a.id),o&&(i=a,s=n)}),{seriesConfig:i,seriesIndex:s}}function dP(r,e){let{chart:t}=e;if(t instanceof bt){let i=e.get("xAxis"),s=e.get("yAxis"),a=r.dataItem?.get("valueX"),n=r.dataItem?.get("valueY");if(typeof a=="number"&&typeof n=="number"){let o=i?.getPrivate("min",0),A=i?.getPrivate("max",0),l=s?.getPrivate("min",0),h=s?.getPrivate("max",0),c=i?.get("start",0),d=i?.get("end",1),u=s?.get("start",0),f=s?.get("end",1),m=o+c*(A-o),g=o+d*(A-o),v=l+u*(h-l),B=l+f*(h-l),w=a<m||a>g||n<v||n>B;r.set("forceHidden",w)}}}function C_(r,e){let t=(i,s)=>{s!==void 0&&dP(s,e)};r.on("x",t),r.on("y",t)}function JA(r,e){let t=e;t===void 0&&(t=oe(r.uid,"config"));let i=oe(r.uid,"colorMatchApplied")??!1;return(t?.colorMatch??!1)&&i}function XA(r,e){r.set("turboMode",e===!0)}function uP(){return`{${ri.xField}} {${ri.yField}} {${ri.valueField}}`}function w_(r){let{root:e,intlOptions:t,formatLocale:i,overridePercentMultiplication:s}=r,a=Mr({root:e,intlOptions:t,type:Q.NumberAxisFormat,formatLocale:i});return n=>{let o=`${n}`;if(a!==void 0&&n!==null&&!(n instanceof Date)){let A=typeof n=="number"?n:dg(n,a.get("intlLocales"));s===!0&&t.style==="percent"&&(A/=100),o=a.format(A)}else n instanceof Date&&(o=n.toLocaleString(void 0,t));return o}}function fP(r){let{axis:e,intlOptions:t,overridePercentMultiplication:i,valueAxisFormatter:s}=r,{chart:a,root:n}=e,o=a!==void 0?oe(a.uid,"formatLocale"):void 0,A=s??w_({root:n,intlOptions:t,formatLocale:o,overridePercentMultiplication:i});return YA(e.uid,{numberFormatter:A}),A}function gP(r){let{chart:e,formatOptions:t,isNonAggregatedChart:i}=r,{root:s}=e;return a=>{let n=a??"",o=oe(e.uid,"formatLocale"),A=oe(e.uid,"config");if(typeof a=="number"&&t.type===Q.NumberAxisFormat)n=w_({root:s,intlOptions:t.intlOptions,formatLocale:o})(a);else if(i===!0&&t.type===Q.DateAxisFormat)n=Mr({root:s,type:Q.DateAxisFormat,intlOptions:t.intlOptions,formatLocale:o}).format(n,t.intlOptions);else if(t.type===Q.CategoryAxisFormat){let l=ze(A?.series);if([xe.BoxPlotMonoField,xe.BoxPlotMultiFields,xe.BoxPlotMonoFieldAndSplitBy,xe.BoxPlotMultiFieldsAndSplitBy,xe.BarAndLineFromFields].includes(l)&&typeof a=="string"){let c=oe(e.uid,"fieldList");a=vi(c,a)}let{characterLimit:h}=t;n=a?.toString()??"",!Mt(n)&&n!==V.htmlEmptyContent&&(n=Hf({stringToTruncate:n,characterLimit:h}))}return n.toString()}}function pP(r){let{chart:e,isXAxis:t=!0,formatOptions:i}=r,{root:s}=e;return a=>{let n=a??"",o=oe(e.uid,"formatLocale"),A=oe(e.uid,"config");if(Ja(A)){let l=wx(A.series[0],t);if(l&&a!==void 0&&a!==""){if(i.type===Q.DateAxisFormat&&i.intlOptions)switch(l.unit){case Cr.DayOfWeek:n=Uw({weekdayNumber:Number(a),format:i.intlOptions,firstDayOfWeek:A.firstDayOfWeek,locale:o});break;case Cr.MonthOfYear:n=Qw({monthNumber:Number(a),format:i.intlOptions,locale:o});break;case Cr.HourOfDay:n=kw({hour:Number(a),format:i.intlOptions,locale:o});break}}else if(a!==void 0&&a!==""){if(i.type===Q.DateAxisFormat)n=Mr({root:s,type:Q.DateAxisFormat,intlOptions:i.intlOptions,formatLocale:o}).format(n,i.intlOptions);else if(i.type===Q.CategoryAxisFormat&&(n=a?.toString()??"",!Mt(n)&&n!==V.htmlEmptyContent)){let{characterLimit:h}=i;n=Hf({stringToTruncate:n,characterLimit:h})}}}return n.toString()}}function mP(r){let{axis:e,formatOptions:t,isTimeOnlyField:i}=r,s={...da(t)},a=["year","month","day","hour","minute","second"],n=i?{hour:{hour:"numeric",minute:"numeric"}}:{},o=i?{hour:{hour:"numeric",minute:"numeric"}}:{},A=Ro.new(s.timeZone??Intl.DateTimeFormat().resolvedOptions().timeZone);e.root.timezone?.name!==A.name&&(e.root.timezone=A);for(let l=0;l<a.length;l+=1){let h=a[l],c=l===0?h:a[l-1],d=t?.formatPerDateTimeUnit?.[h]??s,u=t?.formatPerDateTimeUnit?.[c];d&&Object.values(d).find(f=>f!==void 0&&(typeof f!="string"||!Mt(f)))&&(n[h]=d,o[h]=u??d)}Object.keys(n).length>0&&e.set("dateFormats",n),Object.keys(o).length>0&&e.set("periodChangeDateFormats",o)}function qB(r){let{axis:e,valueFormat:t,chartType:i}=r,s=sy({isXAxis:!0,chartType:i,valueFormat:t}),a=Vr(t)&&e instanceof Jt,n=ks(t)&&e instanceof ft&&!(e instanceof Jt),o=s&&e instanceof ni;return!a&&!n&&!o}function __(r){let{dataContext:e,defaultValue:t,chartUID:i}=r,s=Xr(e),a=oe(i,"config"),n=oe(i,"rendererFieldNames"),o=_e(a?.series),A=ze(a?.series);if(o===Q.BoxPlotSeries&&(A===xe.BoxPlotMonoField||A===xe.BoxPlotMultiFields||A===xe.BoxPlotMonoFieldAndSplitBy||A===xe.BoxPlotMultiFieldsAndSplitBy))s=e?.[Ch];else if(o===Q.HistogramSeries)s=e?.[mA.Start];else if((o===Q.BarSeries||o===Q.LineSeries||o===Q.RadarSeries||o===Q.ComboLineAndBarSeries)&&a!==void 0){let l=a.series?.[0]?.nullCategory,h=Dl(A,a.series?.[0]);s=s===null&&l?.text!==void 0?l.text:e?.[h]?.toString()??""}else s=ua({value:t??"",dataContext:e,useRendererLabel:Ul(a,n),specificField:We.xAxisField});return{labelValue:s,originalLabelValue:Xr(e)}}function yP(r,e){let{chart:t}=r;if(t!==void 0){let i=r.get("renderer").labels.template;i.adapters.remove("text"),i.adapters.remove("html"),i.set("html",void 0);let s=ia(r.uid,"isHtmlLabelFormatter")===!0,a=e!==void 0||s?"html":"text";i.adapters.add(a,(n,o)=>{let A=n,l=ia(r.uid,"labelFormatter");if(!ir(o.uid,"isGuide")&&l!==void 0){let h,c;switch(!0){case r instanceof Jt:case r instanceof ft:h=o.dataItem?._settings?.value;break;case r instanceof ni:{let d=n,u=o.dataItem?.dataContext,f=oe(r.chart?.uid??Number.NaN,"config");if(_e(f?.series)===Q.HeatSeries){let g=zo(r.get("renderer"))?u?.[ri.xField]:u?.[ri.yField];typeof g=="string"&&(d=g)}let m=__({dataContext:u,defaultValue:d,chartUID:t.uid});h=m.labelValue,c=m.originalLabelValue}break}h!==void 0&&(A=l(h,c),a==="html"&&(A=mi(A)))}return A}),i.adapters.add(a,(n,o)=>{let A=n,l=oe(t.uid,"config");if(!ir(o.uid,"isGuide")&&l!==void 0&&!(a==="html"&&s)){let h=es(l),c=zo(r.get("renderer"),h),d=l.axes?.[c?0:1],u={type:je.TS,...d?.labels.content,text:n};A=Ws({textSymbol:u,format:a==="text"?"amChartsV5":"html"})}return A}),a==="html"&&(i.set("html",V.htmlEmptyContent),i.set("text","")),xP(r,a)}}function xP(r,e){r.get("renderer").labels.each(t=>{if(e==="html")t.set("html",void 0),t.set("html",V.htmlEmptyContent),t.set("text","");else{let i=t.get("text")??"";t.set("text",""),t.set("text",i),t.set("html",void 0)}})}function bP(r){let{axis:e,isRotated:t,chartConfig:i}=r;if(e instanceof ni||e instanceof Jt){let s=i.orderOptions?.data&&"orderBy"in i.orderOptions.data?i.orderOptions.data.orderBy===vl.Descending:!1,a=t===!0;s&&e instanceof Jt&&(a=!a),e.get("renderer").set("inversed",a)}}function vP(r){let{axis:e,isXAxis:t,chartType:i,formatOptions:s,isNonAggregatedChart:a,overridePercentMultiplication:n,externalAxisLabelFormatter:o,isTimeOnlyField:A,errorStrings:l}=r,{chart:h}=e;if(h!==void 0){let c=sy({isXAxis:t,chartType:i,valueFormat:s}),d=e instanceof ft&&!(e instanceof Jt)&&ks(s),u=e instanceof Jt&&Vr(s),f=e instanceof ni&&c;if(!(d||u||f))xh("mismatchAxisAndValueFormat",l);else{let m=ia(e.uid,"labelFormatter"),g=o??m;o===void 0&&(i===Q.HeatSeries?g=pP({chart:h,isXAxis:t,formatOptions:s}):f?g=gP({chart:h,formatOptions:s,isNonAggregatedChart:a}):d?g=fP({axis:e,intlOptions:s.intlOptions,overridePercentMultiplication:n,valueAxisFormatter:o}):u&&mP({axis:e,formatOptions:s,isTimeOnlyField:A}));let v=o!==void 0;YA(e.uid,{labelFormatter:g,isHtmlLabelFormatter:v}),yP(e,g)}}}function BP(r){let{chart:e,chartConfig:{axes:t,series:i},rotationChanged:s,axisLabelsBehaviorChanged:a,timeIntervalInfoWasReset:n}=r,o=_e(i),A=es(r.chartConfig),l=A?1:0,h=A?0:1,c=t?.[l]?.valueFormat,d=t?.[h]?.valueFormat,u=e.xAxes.getIndex(0),f=e.yAxes.getIndex(0),m=u===void 0||s||c!==void 0&&qB({axis:u,valueFormat:c,chartType:o}),g=f===void 0||s||d!==void 0&&qB({axis:f,valueFormat:d,chartType:o});return n||a?.[0]||a?.[1]||m||g}function zo(r,e){return r instanceof Qi&&!e||r instanceof Ts&&e||r instanceof ss}function xu(r){return r instanceof Qi}function CP(r){return r instanceof Ts}function wP(r){let{axis:e,isLogarithmic:t,axisConfigIndex:i}=r,s=oe(e.chart?.uid??Number.NaN,"config"),a=t===!0&&$h({chartConfig:s,axisConfigIndex:i,chartData:e.chart?.series.getIndex(0)?.data.values});(e instanceof Jt||e instanceof ft)&&e.setAll({logarithmic:a,treatZeroAs:a?V.treatZeroValueAs:0,maxPrecision:a?0:void 0})}function _P(r,e){if(r instanceof ft){let{integerOnlyValues:t,valueFormat:i}=e,s=lg(i)?i.intlOptions.maximumFractionDigits:void 0;r.set("maxPrecision",t===!0||s===0?0:Number.NaN)}}function F_(r,e){let{chart:t}=e,i=wi.new(r,{forceHidden:!0});return e.set("tooltip",i),i.adapters.add("labelText",(s,a)=>{let n=s??"",o=ia(e.uid,"labelFormatter");if(!a.isHidden()&&o&&t){let{label:A}=a,l=A.get("text")??"";if(e instanceof ft){let h=Number.parseFloat(l.replace(/,/gu,""));n=o(Number.isNaN(h)?l:h,s)}else if(e instanceof ni){let h=A.dataItem?.dataContext,c=__({dataContext:h,defaultValue:s,chartUID:t.uid});n=o(c.labelValue??l,s??c.originalLabelValue)}}return n}),i}function FP(r){let{root:e,axis:t,displayCursorTooltip:i}=r;(t.get("tooltip")??F_(e,t)).set("forceHidden",i!==!0)}function SP(r){let{axis:e,timeIntervalInfo:t,dateBaseInterval:i,xFieldIsTimeOnly:s}=r;if(e instanceof Jt){let a,n=1;if(s)a="second";else{let{size:o,unit:A}=t??{};if(A||({size:o,unit:A}=i??{}),o&&A!==void 0){switch(A){case Nt.Second:a="second";break;case Nt.Minute:a="minute";break;case Nt.Hour:a="hour";break;case Nt.Day:a="day";break;case Nt.Week:a="week";break;case Nt.Month:a="month";break;case Nt.Year:a="year";break}n=o}}a!==void 0&&e.set("baseInterval",{timeUnit:a,count:n})}}function LP(r,e){let{buffer:t}=e??{};return t??=V.buffer,r instanceof ft&&!(r instanceof Jt)&&!t}function TP(r,e){let t=!1;return r instanceof ft&&!(r instanceof Jt)&&(t=LP(r,e),r.set("strictMinMax",t)),t}function JB(r,e){let t=r;if(r){let i=(e?Math.ceil:Math.floor)(Math.log10(r));t=Math.pow(10,i)}return t}function IP(r){let{axis:e,xAxis:t,isSecondValueAxis:i,chartType:s,stackedType:a,isLogarithmic:n}=r,o=!1,A=[Q.BarSeries,Q.LineSeries,Q.RadarSeries];if(s!==void 0&&A.includes(s)&&a===Qt.Stacked100&&!n&&e instanceof ft&&!t){let l=oe(e.chart?.uid??Number.NaN,"config"),h=e.chart?.series.getIndex(0)?.data.values;if(l&&h){let c=B_(e.chart),d=Nh({chartConfig:l,isSecondValueAxis:i,seriesIds:c});o=!Ob({seriesConfig:l.series,filteredData:h,filteredSeriesIds:d}).dataHasNegativeValues}}return o}function DP(r){let{dataMinMax:e,chartType:t,stackedType:i,isXAxis:s,minimumFromConfig:a,maximumFromConfig:n,isLogarithmic:o}=r,{minX:A,maxX:l,minY:h,maxY:c}=e,[d,u]=s?[A??Number.NaN,l??Number.NaN]:[h,c],f=d,m=u;return i===Qt.Stacked100?(f=Number.NaN,m=Number.NaN):((t===Q.BarSeries||t===Q.ComboLineAndBarSeries||t===Q.HistogramSeries&&!s||(t===Q.LineSeries||t===Q.RadarSeries)&&i===Qt.Stacked&&!s)&&(f=Math.min(d,0),m=Math.max(u,0)),f=a??f,m=n??m),o===!0&&(f=Number.isFinite(f)?JB(f,!1):f,m=Number.isFinite(m)?JB(m,!0):m),{min:f??Number.NaN,max:m??Number.NaN}}function kP(r){let{axis:e,xAxis:t,isSecondValueAxis:i,data:s,minimumFromConfig:a,maximumFromConfig:n}=r,o=a,A=n,{chart:l}=e;if(l){let h=oe(l.uid,"config");if(l instanceof bt&&h){let c=_e(h.series),d=Ys(h)??Qt.Side,u=B_(l),f=Nh({chartConfig:h,isSecondValueAxis:i,seriesIds:u}),m=Gr(s),g=ng({chartConfig:h,chartData:m??l.series.getIndex(0)?.data.values??[],filteredSeriesIds:f}),v=DP({dataMinMax:g,chartType:c,stackedType:d,isXAxis:t,minimumFromConfig:a,maximumFromConfig:n});o=v.min,A=v.max}}return{min:o,max:A}}function UP(r){let{axis:e,axisConfig:t,minimumFromConfig:i,maximumFromConfig:s,isLogarithmic:a,chartType:n,stackedType:o,isRotated:A,data:l,isSecondValueAxis:h}=r,{chart:c}=e;if(c&&(e instanceof ft||e instanceof Jt))if(TP(e,t)){let d=i,u=s,f=zo(e.get("renderer"),A);if(IP({chartType:n,stackedType:o,isLogarithmic:a,axis:e,xAxis:f}))d=d??0,u=u??100;else if(vC({minimumFromConfig:i,maximumFromConfig:s,isLogarithmic:a})){let m=kP({axis:e,xAxis:f,data:l,minimumFromConfig:d,maximumFromConfig:u,isSecondValueAxis:h});d=m.min,u=m.max}u=u??Number.NaN,d=d??Number.NaN,a&&d!==void 0&&d!==null&&(d=Number.isNaN(d)||d===0?V.treatZeroValueAs:d),Number.isNaN(d)||Number.isNaN(u)||d<u?e.setAll({min:d,max:u}):e.setAll({min:Number.NaN,max:Number.NaN}),n===Q.GaugeSeries&&e.markDirty()}else e.setAll({min:Number.NaN,max:Number.NaN})}function Jd(r,e){if(r!==void 0){let t=oe(r.uid,"config");if(t!==void 0){let i=_e(t?.series),s=Ys(t)??Qt.Side,a=es(t),n=r.xAxes.getIndex(0),o=t.axes?.[0],A=t.axes?.[1],l=t.axes?.[2],h=r.yAxes.getIndex(0),c=r.xAxes.getIndex(1)??r.yAxes.getIndex(1);[{axis:n,axisConfig:o},{axis:h,axisConfig:A},{axis:c,axisConfig:i===Q.HistogramSeries?o:l,isSecondValueAxis:i!==Q.HistogramSeries}].forEach(d=>{let{axis:u,axisConfig:f,isSecondValueAxis:m}=d;if(u!==void 0){let{minimum:g,maximum:v,buffer:B,isLogarithmic:w}=f??{};UP({axis:u,axisConfig:f,data:e,chartType:i,stackedType:s,isRotated:a,minimumFromConfig:g,maximumFromConfig:v,isLogarithmic:w,isSecondValueAxis:m})}})}}}function QP(r){r.get("renderer").grid.template.adapters.add("strokeWidth",(e,t)=>{let i=ia(r.uid,"zeroGridLine"),s=i?.displayZeroLine===!0,a=i?.strokeWidth??V.lineWidth;return t.get("themeTags")?.includes("base")&&s&&(a=(a===0?1:a)*1.5),a}),r.get("renderer").grid.template.adapters.add("strokeOpacity",(e,t)=>{let i=ia(r.uid,"zeroGridLine"),s=i?.displayZeroLine===!0,a=i?.visible===!0?e:0;return t.get("themeTags")?.includes("base")&&s&&(a=1),a})}function ty(r){r.on("visible",()=>{r.chart instanceof bt&&Jd(r.chart)}),r.events.on(gt.DataValidated,()=>{r.chart instanceof bt&&Jd(r.chart)})}function EP(r){let e=0;return r.dataItems.forEach(t=>{let i=t.get("label");i!==void 0&&ir(i.uid,"isGuide")!==!0&&i.getText()!==void 0&&i.height()>e&&i.isVisible()&&(e=i.height())}),e}function eC(r,e){if(e){let{chart:t}=e;if(t){let i=oe(t.uid,"isRotated"),s=oe(t.uid,"config"),a=_e(s?.series),n=[],o=(A,l)=>{if(A instanceof ft){let h=A.get("renderer")instanceof ss;n.push({isXAxis:zo(A.get("renderer"),i),isSecondValueAxis:l===1&&a!==Q.HistogramSeries,minimum:h?A.get("min"):A.getPrivate("min"),maximum:h?A.get("max"):A.getPrivate("max")})}};t.xAxes.each(o),t.yAxes.each(o),n.length>0&&n.every(A=>!Number.isNaN(A.minimum)&&!Number.isNaN(A.maximum))&&Mf(n,t.root.dom)}}}function S_(r){r.ghostLabel?.set("forceHidden",!0)}function tC(r){let{axis:e,start:t,end:i}=r;e.zoom(t??0,i??1)}function iC(r){r!==void 0&&r.setAll({start:0,end:1})}function RP(r){r instanceof bt&&(r.xAxes.each(e=>tC({axis:e})),r.yAxes.each(e=>tC({axis:e})),iC(r.get("scrollbarX")),iC(r.get("scrollbarY")))}function MP(r){let{axis:e,guide:t,guideIndex:i}=r,{root:s,chart:a}=e,n=t.get("axisFill");n?.set("tooltip",wi.new(s,{autoTextColor:!1}));let o=n?.get("tooltip");if(o!==void 0&&a!==void 0){o.label.setAll({oversizedBehavior:"wrap"}),o.label.adapters.add("maxWidth",()=>Math.min(V.tooltipWidth,a.seriesContainer.width())),o.get("background")?.set("fillOpacity",Ff);let A=oe(a.uid,"rtl");o.label.set("direction",A?"rtl":"ltr")}if(n!==void 0){n.adapters.remove("tooltipText"),n.adapters.remove("tooltipHTML"),n.setAll({tooltipText:void 0,tooltipHTML:V.htmlEmptyContent,tooltipPosition:V.guideTooltipPosition}),n.adapters.add("tooltipHTML",(l,h)=>{let c=l,{dataItem:d}=h;if(!(e.get("renderer")instanceof ss)){let u=ia(e.uid,"guideTooltipFormatter");if(u!==void 0&&d instanceof Ui){let f,m;switch(!0){case e instanceof Jt:case e instanceof ft:f=d.get("value"),m=d.get("endValue");break;case e instanceof ni:f=d.get("category"),m=d.get("endCategory");break}c=u({guideName:OE(d.uid,"name")??"",start:f??"",end:m,guideIndex:i})}}return mi(c??"")});let A=n.getTooltip();A&&(Kw(A),A.adapters.add("x",(l,h)=>{let{chart:c}=e;if(c&&h){let d=oe(c.uid,"config"),u=oe(c.uid,"isRotated");if(d){let f=zo(e.get("renderer"),u)?0:1,m=d?.axes?.[f]?.guides?.[i];if(m){let{tooltipReverseColor:g}=m;Gw(h,g)}}}return l}))}}function PP(r,e){return t=>{let{guideName:i,start:s,end:a}=t,{chart:n,root:o}=r,A="";if(n!==void 0){let l=oe(n.uid,"config"),h=oe(n.uid,"isRotated"),c=zo(r.get("renderer"),h)?0:1,d=l?.axes?.[c]?.guides,u=s,f=a;if(r instanceof Jt){let w;if(n!==void 0){let _=oe(r.chart?.uid??Number.NaN,"formatLocale");w=Mr({root:r.root,type:Q.DateAxisFormat,formatLocale:_});let L=l?.axes?.[0]?.valueFormat?.type===Q.DateAxisFormat?l.axes[0].valueFormat.intlOptions:void 0;u=w.format(s,L),a!==void 0&&(f=w.format(a,L))}}else if(r instanceof ft&&!(s instanceof Date)&&!(a instanceof Date)){let w=d?.find(D=>D.name===i),{start:_,end:L}=L_(r,w);Number.isFinite(_)&&(u=_),Number.isFinite(L)&&(f=L);let k=ia(r.uid,"numberFormatter")??(D=>On.new(o,{}).format(D));u=k(u),f!==void 0&&(f=k(f))}else r instanceof ni&&(u=s,f=a);let m=u.toString(),g=f?.toString()??"";!Mt(g)&&m!==g?A=OA(e.guideTooltipLabel,{guideStart:m,guideEnd:g}):A=m;let v=oe(n.uid,"rtl"),B=Gs(v??!1);A=`${i}${B} ${A}`}return A}}function OP(r){let{axis:e,guideTooltipFormatter:t,utilsStrings:i}=r;YA(e.uid,{guideTooltipFormatter:t??PP(e,i)})}function sC(r){let{inputValue:e,axis:t,axisMin:i,axisMax:s}=r,a=e;if(e!=null)switch(!0){case t instanceof Jt:a=e;break;case t instanceof ni:a=e.toString();break;case t instanceof ft:if(typeof e!="number"){let n=e.toString().trim(),o=Sl(n);o!==void 0?i!==void 0&&s!==void 0?a=o/100*(s-i)+i:a=null:a=Number.parseFloat(n)}break}return a}function iy(r,e){return r.axisRanges?.values?.filter(t=>{let i=t.get("label"),s=ir(i?.uid??Number.NaN,"isGuide")??!1,a=ir(i?.uid??Number.NaN,"isGaugeAxisLabel")??!1,n=!1;switch(e){case ei.Ticks:n=!s;break;case ei.Guides:n=s;break;case ei.GaugeTicksWithLabels:n=a&&"value"in t&&t.value!==void 0;break}return n})??[]}function HP(r){let{axis:e,guideConfig:t,above:i}=r,s=t!==void 0,a=e.axisRanges.length,n=e.axisRanges.insertIndex(a,e.makeDataItem({above:i}));s&&(i===!0&&n.get("axisFill")?.setAll({layer:V.zIndexes.guide}),tR({guide:n,axis:e,guideLabelConfig:t?.label}));let o=n.get("axisFill");o!==void 0&&o.setAll({disabled:!0,fillOpacity:1});let A=n.get("grid");return A!==void 0&&s&&A.set("strokeOpacity",0),n}function NP(r){let{axis:e,guideIndex:t,guideConfig:i}=r,s=HP({axis:e,guideConfig:i,above:i?.above});MP({axis:e,guide:s,guideIndex:t});let a=s.get("tick"),n=s.get("label"),o=s.get("grid");a!==void 0&&a.set("disabled",!0),n!==void 0&&n.set("inside",!0),o!==void 0&&o.set("disabled",!0)}function $P(r,e){let t=iy(r,ei.Guides).length,i=(e?.length??t)-t;for(let s=0;s<i;s+=1)NP({axis:r,guideIndex:s,guideConfig:e?.[s]})}function VP(r,e){let{start:t,end:i}=e,s=t!==null?t:void 0,a=i!==null?i:void 0,{chart:n}=r,o=oe(n?.uid??Number.NaN,"config");if(o!==void 0){let A=Ph(o),l=r.data.values,h=l.find(c=>c[V.originalCategoryValue]===t)?.[A];if((typeof h=="string"||typeof h=="number"||h instanceof Date)&&(s=h),a!==void 0)for(let c=l.length-1;c>=0;c-=1){let d=l[c],u=d[A];if(d[V.originalCategoryValue]===i&&(typeof u=="string"||typeof u=="number"||u instanceof Date)){a=u;break}}}return{modifiedStart:s,modifiedEnd:a}}function L_(r,e){let{start:t,end:i}=e??{},s;if(e!==void 0&&t!==void 0&&t!==null){let a=r instanceof ft?r.get("min"):void 0,n=r instanceof ft?r.get("max"):void 0,o=sC({inputValue:t,axis:r,axisMin:a,axisMax:n}),A=e.style?.type===je.SFS&&i!==null&&i!==void 0?sC({inputValue:i,axis:r,axisMin:a,axisMax:n}):o;s={isValidGuide:o!=null&&(i===void 0||A!=null),start:o,end:A}}else s={isValidGuide:!1,start:void 0,end:void 0};return s}function XP(r){let{axis:e,guide:t,guideConfig:i}=r,{start:s,end:a}=i;if(s!==void 0){let{chart:n}=e,o;if(e instanceof ni&&n instanceof bt&&oe(n.uid,"isNonAggregatedChart")===!0){let{modifiedStart:A,modifiedEnd:l}=VP(e,i);o={isValidGuide:!0,start:A??s,end:l??a}}else o=L_(e,i);if(o.isValidGuide){let A,l;switch(!0){case e instanceof Jt:case e instanceof ft:A="value",l="endValue";break;case e instanceof ni:A="category",l="endCategory";break}A!==void 0&&o.start!==void 0&&t.setAll({[A]:o.start}),l!==void 0&&o.end!==void 0&&t.setAll({[l]:o.end})}}}function KP(r){let{axis:e,guide:t,guideConfig:i}=r;if(t){let s=t.get("axisFill"),a=t.get("label");if(i!==void 0){HE(t.uid,{name:i.name}),si(t,i.visible),XP({axis:e,guide:t,guideConfig:i}),i.style.type===je.SLS?ro({root:e.root,element:s,fillSymbol:{type:je.SFS,color:i.style?.color,outline:i.style},visible:i.visible}):i.style.type===je.SFS&&ro({root:e.root,element:s,fillSymbol:i.style,visible:i.visible}),iR({axis:e,guide:t,guideConfig:i,guideType:i.style.type}),t.get("axisFill")?.setAll({layer:i.above?V.zIndexes.guide:0});let{chart:n}=e}else s!==void 0&&s.set("disabled",!0),a!==void 0&&a.set("disabled",!0)}}function GP(r){let{axis:e,guideConfigs:t,guideTooltipFormatter:i,utilsStrings:s}=r;if(t!==void 0){let a=iy(e,ei.Guides);t.forEach((n,o)=>{KP({axis:e,guide:a[o],guideConfig:n})}),OP({axis:e,guideTooltipFormatter:i,utilsStrings:s})}}function WP(r){let{axis:e,tickOrGuide:t,numberOfElementsToBeDeleted:i}=r,s=[],a=e.axisRanges.length-1,n=i;for(;n>0&&a>=0;){let o=e.axisRanges.getIndex(a);o!==void 0&&(ir(o.get("label")?.uid??Number.NaN,"isGuide")??!1)===!0&&t===ei.Guides&&(s.push(o),n-=1),a-=1}for(let o=0;o<s.length;o+=1)e.axisRanges.removeValue(s[o])}function rC(r,e){let t=iy(r,ei.Guides).length,i=e?.length??0,s=t-i;WP({axis:r,numberOfElementsToBeDeleted:s,tickOrGuide:ei.Guides})}function YP(r){let{axis:e,guideConfigs:t,anyGuideAboveChanged:i}=r;i&&rC(e),$P(e,t),GP(r),rC(e,t)}function T_(r){return r.getCellWidthPosition()*r.width()}function zP(r,e){let t=r.get("renderer");if(r!==void 0){let i=Number.NaN;if(e===$t.Wrap){let s=Number.MAX_SAFE_INTEGER;t.labels.each(n=>{ir(n.uid,"isGuide")!==!0&&n.width()>0&&(s=Math.min(s,n.innerWidth()))});let a=r instanceof Jt?r.width()/V.maxNumberOfXAxisLabelsInWrapModeForDateAxis:r.width()/V.maxNumberOfXAxisLabelsInWrapMode;i=Math.max(s,a)}else if(e===$t.Hide){let s=Number.MIN_SAFE_INTEGER;t.labels.each(a=>{ir(a.uid,"isGuide")!==!0&&a.width()>0&&(s=Math.max(s,a.innerWidth()))}),i=s+2}Number.isFinite(i)&&i>V.shortestMinGridDistance&&t.set("minGridDistance",i)}}function jP(r){let{axis:e,chartType:t,labelConfig:i,isSecondValueAxis:s,tickSpacing:a}=r,{horizontalAxisLabelsBehavior:n}=r;n===void 0&&(n=t!==Q.HistogramSeries?$t.Rotate:$t.Hide);let o=e.get("renderer"),A=o.get("minGridDistance");if(typeof a=="number"&&Number.isFinite(a))A=a;else if(t!==Q.RadarSeries)if(o instanceof ss)A=V.gauge.gaugeMinGridDistance;else if(e instanceof ft)A=o instanceof Qi?V.xAxisMinGridDistance:V.yAxisMinGridDistance;else if(o instanceof Qi)if(s===!0)A=V.secondRotatedValueAxisMinGridDistance;else if(n===$t.Rotate){let l=i.content.font?.size??V.generalFontSize,h=e instanceof ni?V.categoryAxisLabelPadding:V.axisLabelPadding;A=l*h}else if(n===$t.Wrap||n===$t.Hide){n===$t.Hide&&(A=e instanceof ni?V.xCategoryAxisMinGridDistance:V.xAxisMinGridDistance);let l=ia(e.uid,"minGridDistanceCallbackDisposer");l!==void 0&&l.dispose(),l=e.events.on(gt.BoundsChanged,()=>{zP(e,n)}),YA(e.uid,{minGridDistanceCallbackDisposer:l})}else n===$t.Stagger?A=V.staggerMinGridDistance:A=e instanceof ni?V.xCategoryAxisMinGridDistance:V.xAxisMinGridDistance;else A=e instanceof ni?V.yCategoryAxisMinGridDistance:V.yAxisMinGridDistance;o.set("minGridDistance",A)}function aC(r=1,e){e.get("renderer").labels.template.set("maxWidth",T_(e)*r)}function nC(r,e=1){r.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",paddingLeft:.5,paddingRight:.5,textAlign:"center"}),r.events.on(gt.BoundsChanged,()=>aC(e,r)),aC(e,r)}function ZP(r){let e=r.get("renderer").labels.template;e.adapters.add("rotation",(t,i)=>{let s=ir(i.uid,"isGuide")!==!0?ia(r.uid,"rotation")??0:t??0;return e.set("centerX",s===0?Ce:Ae),s})}function Jp(r){if(r?.chart!==void 0){let e=r.get("renderer");if(oe(r.chart.uid,"config")?.axes?.[0].labels!==void 0&&e.labels.length>1){let t=e.labels.getIndex(0)?.get("rotation"),i=0;e.labels.each(a=>{if(ir(a.uid,"isGuide")!==!0&&a.width()>0){let n=t===V.rotatedAxisLabel.rotation?Math.sqrt(a.innerHeight()**2+a.innerWidth()**2):a.innerWidth();n>i&&(i=n)}});let s=T_(r)>=i+5;if(!s&&t===0||s&&t===V.rotatedAxisLabel.rotation){let a=s?V.axisLabel.rotation:V.rotatedAxisLabel.rotation;e.labels.template.setAll({rotation:a,centerX:s?Ce:Ae,centerY:Bi,paddingTop:s?V.axisLabel.paddingTop:V.rotatedAxisLabel.paddingTop,paddingLeft:s?V.axisLabel.paddingLeft:V.rotatedAxisLabel.paddingLeft,paddingRight:s?V.axisLabel.paddingRight:V.rotatedAxisLabel.paddingRight}),YA(r.uid,{rotation:a})}}}}function oC(r){let e=r.get("renderer");ZP(r),e.labels.template.setAll({oversizedBehavior:"hide"}),r instanceof Jt||(e.labels.template.setAll({multiLocation:.5}),e.ticks.template.setAll({multiLocation:.5})),r.events.on(gt.BoundsChanged,()=>Jp(r)),r.events.on(gt.DataValidated,()=>Jp(r)),Jp()}function AC(r){if(r&&oe(r.chart?.uid??Number.NaN,"config")?.axes?.[0].labels?.visible!==!1){let e=0;r.dataItems.forEach((t,i)=>{let s=t.get("label");s!==void 0&&ir(s.uid,"isGuide")!==!0&&s.getText()!==void 0&&s.width()>0&&i%2===0&&s.innerHeight()>e&&(e=s.innerHeight())}),e=Math.round(e),e>0&&(r.dataItems.filter(t=>{let i=t.get("tick"),s=t.get("label");return i!==void 0&&s!==void 0&&ir(s.uid,"isGuide")!==!0&&s.getText()!==void 0&&s.width()>0}).forEach((t,i)=>{let s=t.get("tick"),a=t.get("label"),n=i%2===1;s&&s.set("length",n?e+5:V.axisTickLength),a&&a.set("dy",n?e:0)}),e&&r.get("renderer").labels.template.get("paddingBottom")!==e+5&&r.get("renderer").labels.template.set("paddingBottom",e+5))}}function qP(r){r.get("renderer").labels.template.set("oversizedBehavior","wrap"),r.events.on(gt.BoundsChanged,()=>AC(r)),AC(r)}function JP(r){r.get("renderer").labels.template.setAll({oversizedBehavior:"wrap",maxWidth:V.yAxisLabelMaxWidth,textAlign:"end"})}function eO(r){let{axis:e,horizontalAxisLabelsBehavior:t,verticalAxisLabelsBehavior:i,axisLabelsBehaviorChanged:s,labelConfig:a,chartType:n}=r,o=e.get("renderer");if(!(o instanceof ss))if(xu(o)&&s?.[0]===!0)switch(n===Q.HistogramSeries&&t===void 0?$t.Hide:t){case $t.Hide:break;case $t.Stagger:qP(e),nC(e,2);break;case $t.Wrap:nC(e);break;case $t.Rotate:oC(e);break;default:a.content.angle!==null&&a.content.angle===void 0&&oC(e);break}else CP(o)&&i!==$t.Hide&&JP(e)}function tO(r){let{renderer:e,axisConfig:t,labelConfig:i}=r;switch(t.labelsOrientation){case wf.Horizontal:e.labels.template.setAll({textType:"adjusted"}),e.labels.template.remove("radius");break;case wf.Radial:e.labels.template.setAll({textType:"radial",radius:35}),i.content.verticalAlignment=Tt.Middle;break;default:e.labels.template.setAll({textType:"circular"}),e.labels.template.remove("radius")}}function iO(r){let{axis:e,axisConfig:{labels:t},horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:s,axisLabelsBehaviorChanged:a,chartType:n}=r,o={...t},A=e.get("renderer"),l=A?.get("opposite");xu(A)?(o.content.horizontalAlignment=Vt.Center,o.content.verticalAlignment=l?Tt.Bottom:Tt.Top):(o.content.horizontalAlignment=l?Vt.Left:Vt.Right,o.content.verticalAlignment=Tt.Middle),A instanceof ss?tO({renderer:A,axisConfig:r.axisConfig,labelConfig:t}):o.content.angle=o.content.angle??A.labels.template.get("rotation");let h=ia(e.uid,"isHtmlLabelFormatter")===!0;gr({label:A.labels.template,labelConfig:o,skipSettingText:h}),eO({axis:e,horizontalAxisLabelsBehavior:i,verticalAxisLabelsBehavior:s,labelConfig:t,axisLabelsBehaviorChanged:a,chartType:n})}function sO(r){let{axis:e,isHorizontalAxis:t,label:i}=r,{chart:s}=e;if(s){let a=t?"width":"height",n=t?At.XAxisTitle:At.YAxisTitle;Ma({chart:s,label:i,labelType:n}),e.onPrivate(a,ls(()=>Ma({chart:s,label:i,labelType:n}),V.debounceTime))}}function rO(r){let{x:e,data:t,chart:i,valueFormat:s,minimum:a,maximum:n}=r,o=Number.NaN;if(t!==void 0&&e!==void 0){let A=t.find(h=>e in h),l=Number.parseFloat(A[e]);Number.isFinite(l)&&(o=l,Fi(i.uid,{gaugeData:o}))}else{let A=oe(i.uid,"gaugeData");Number.isFinite(A)&&(o=A)}return Bo(s)&&a!==void 0&&n!==void 0&&a!==null&&n!==null&&o!==null&&n-a!==0&&(o=pc({value:o,axisMin:a,axisMax:n})),o}function aO(r,e){let t=e??null;if(e!=null){let i=r.xAxes.getIndex(0),s=oe(r.uid,"config"),a=i.get("min")??s?.axes?.[0].minimum??V.gauge.axisMinimum,n=i.get("max")??s?.axes?.[0].maximum??V.gauge.axisMaximum;e<a?t=a:e>n&&(t=n)}return t??void 0}function nO(r){let{root:e}=r,t=ka.new(e,{radius:Ve(100)}),i=r.makeDataItem({value:0,bullet:zn.new(e,{sprite:t})});return r.createAxisRange(i),i.get("grid")?.set("visible",!1),i.get("tick")?.set("visible",!1),t}function oO(r){let{chart:e,axis:t,needleConfig:i,gaugeValue:s}=r,a=t.axisRanges.values.find(o=>o.get("bullet")?.get("sprite")instanceof ka),n=a?.get("bullet")?.get("sprite");if(a&&n instanceof ka){let{startWidth:o,endWidth:A,innerRadius:l}=V.gaugeNeedle;ro({root:t.root,element:n.hand,fillSymbol:i?.symbol}),ro({root:t.root,element:n.pin,fillSymbol:i?.symbol}),a.set("value",aO(e,s)),n.pin.set("visible",i?.displayPin===!0),n.setAll({visible:i?.visible??!0,innerRadius:Ve(i?.innerRadius??l),bottomWidth:i?.startWidth??o,topWidth:i?.endWidth??A})}}function AO(r,e){let t=Number.isFinite(e?.innerRadius)?e?.innerRadius:V.gauge.innerRadius;typeof t=="number"&&Number.isFinite(t)&&r.set("innerRadius",Ve(t))}function lO(r,e){let t=Number.isFinite(e?.startAngle)?e?.startAngle:V.gauge.startAngle,i=Number.isFinite(e?.endAngle)?e?.endAngle:V.gauge.endAngle;typeof t=="number"&&Number.isFinite(t)&&r.set("startAngle",t),typeof i=="number"&&Number.isFinite(i)&&r.set("endAngle",i)}async function cO(r){let{chart:e,chartConfig:t,data:i,queryObject:s,xAxisLabelFormatter:a,utilsStrings:n,errorStrings:o}=r,{axes:A,series:l}=t,h=Hh(t),{featureIndex:c,x:d}=l[0],u=A?.[0],f=e.xAxes.getIndex(0),m={...u};if(f instanceof ft&&f.get("renderer")instanceof ss&&m!==void 0&&i&&"dataItems"in i){let{valueFormat:g,needle:v}=m;AO(e,t),lO(e,t);let B=await uw({featureIndex:c,chartData:i.dataItems,chartConfig:t,queryObject:s,queryConfig:oe(e.uid,"queryConfig")});m.minimum=B.minimum,m.maximum=B.maximum;let{min:w,max:_}=hw(m),L={...m};Bo(g)?(L.minimum=0,L.maximum=1,dw({axisConfig:L,axisMin:m.minimum,axisMax:m.maximum})):(L.minimum=w,L.maximum=_),ry({chartConfig:t,axis:f,axisConfig:L,axisConfigIndex:0,externalAxisLabelFormatter:a,utilsStrings:n,errorStrings:o,queryObject:s});let k=h?B?.dataValue:rO({x:d,data:i.dataItems,chart:e,minimum:m.minimum,maximum:m.maximum,valueFormat:g});oO({chart:e,axis:f,needleConfig:v,gaugeValue:k})}}function hO(r){let{chart:e,axesConfig:t,errorStrings:i}=r,{root:s}=e;Za({chartType:Q.GaugeSeries,axesConfig:t,errorStrings:i});let a=e.xAxes.push(ft.new(s,{min:0,max:100,renderer:ss.new(s,{})}));nO(a),S_(a)}function dO(r){let{chart:e,chartConfig:t,axisLabelsBehaviorChanged:i,sortChanged:s,data:a,dataWasUpdated:n,axesInitializationNeeded:o,yAxisLabelFormatter:A,xAxisLabelFormatter:l,guideTooltipFormatter:h,utilsStrings:c,errorStrings:d,queryObject:u}=r,{horizontalAxisLabelsBehavior:f,verticalAxisLabelsBehavior:m,axes:g}=t,v=Q.HistogramSeries,B=e.xAxes.getIndex(0),w=e.yAxes.getIndex(0);Za({chartType:v,axesConfig:g,errorStrings:d}),[{axis:B,axisConfig:g?.[0],externalAxisLabelFormatter:l},{axis:w,axisConfig:g?.[1],externalAxisLabelFormatter:A}].forEach((_,L)=>{let{axis:k,axisConfig:D,externalAxisLabelFormatter:E}=_;k!==void 0&&!k.isDisposed()&&D!==void 0&&ry({axis:k,data:a,dataWasUpdated:n,axesInitializationNeeded:o,sortChanged:s,axisConfig:D,axisConfigIndex:L,horizontalAxisLabelsBehavior:f,verticalAxisLabelsBehavior:m,axisLabelsBehaviorChanged:i,utilsStrings:c,chartConfig:t,externalAxisLabelFormatter:E,guideTooltipFormatter:h,errorStrings:d,queryObject:u})}),Jd(e,a)}function uO(r){let{chart:e,axesConfig:t,x:i,errorStrings:s}=r,{root:a}=e,n=Q.HistogramSeries;Za({chartType:n,axesConfig:t,errorStrings:s});let o={root:a,x:i,chartType:n},A=t?.[0]?.valueFormat,l=t?.[1]?.valueFormat;if(A!==void 0&&l!==void 0){let h=to({...o,axes:e.xAxes,valueFormat:A,axisRenderer:Qi.new(a,{}),isXAxis:!0,x:i}),c=to({...o,axes:e.xAxes,valueFormat:A,axisRenderer:Qi.new(a,{}),isAxisForHistogramOverlaySeries:!0,isXAxis:!0,x:i});to({...o,axes:e.yAxes,valueFormat:l,axisRenderer:Ts.new(a,{}),isXAxis:!1,x:i}),h&&(h.get("renderer").grid.template.set("location",0),h.get("renderer").ticks.template.set("location",0),h.get("renderer").labels.template.set("location",0)),c&&(c.set("visible",!1),c.get("renderer").grid.template.set("visible",!1),c.get("renderer").ticks.template.set("visible",!1),c.get("renderer").labels.template.set("visible",!1))}}function sy(r){let{isXAxis:e,chartType:t,valueFormat:i,isAxisForHistogramOverlaySeries:s}=r;return t===Q.HeatSeries||e&&(yA(i)||t===Q.HistogramSeries&&!s||t===Q.BarSeries&&ks(i))}function I_(r,e){return e?`${dm}_x_${r.uid}`:`${dm}_y_${r.uid}`}function gm(r,e){let t=oe(r.chart?.uid??Number.NaN,"config"),i=es(t)?1:0,s=t?.axes?.[i]?.title?.content?.verticalAlignment,a=EP(r),n=a;switch(s){case Tt.Baseline:case Tt.Middle:n=a/2;break;case Tt.Bottom:n=Math.min(a,0);break;case Tt.Top:}e?.set("dy",n)}function fO(r){r instanceof ft&&(r.onPrivate("min",eC),r.onPrivate("max",eC))}function gO(r){let{axis:e,isHorizontalAxis:t,isSecondValueAxis:i}=r,{root:s}=e,a=t?{...V.xAxisTitleLabel,verticalCenter:Tt.Top}:V.yAxisTitleLabel,n=NA({root:s,id:I_(e,t),defaults:a});return e.get("renderer")instanceof Ts&&i!==!0||e.get("renderer")instanceof Qi&&i===!0?e.children.unshift(n):e.children.push(n),t&&i!==!0&&(e.events.onDebounced(gt.BoundsChanged,()=>gm(e,n),V.debounceTime),e.events.onDebounced(gt.DataValidated,()=>gm(e,n),V.debounceTime),sO({axis:e,isHorizontalAxis:t,label:n})),n}function to(r){let{root:e,axes:t,isXAxis:i,valueFormat:s,axisRenderer:a,isSecondValueAxis:n=!1,chartType:o,x:A,isAxisForHistogramOverlaySeries:l}=r,h;if(sy({isXAxis:i,chartType:o,valueFormat:s,isAxisForHistogramOverlaySeries:l})&&!n){let c;switch(o){case Q.HeatSeries:c=i?ri.xField:ri.yField;break;case Q.HistogramSeries:c=mA.Start;break;case Q.BoxPlotSeries:c=A;break;default:c=V.xAxisField;break}c&&(h=t.push(ni.new(e,{categoryField:c,renderer:a})))}else if(Vr(s))h=t.push(Jt.new(e,{strictMinMax:!0,baseInterval:{timeUnit:"day",count:1},renderer:a}));else if(ks(s)&&(h=t.push(ft.new(e,{strictMinMax:!0,renderer:a})),n&&h instanceof ft)){let c=t.getIndex(0);c instanceof ft&&h.set("syncWithAxis",c)}if(h!==void 0&&!l){QP(h),F_(e,h);let c=o===Q.HistogramSeries||o===Q.HeatSeries?0:.1,d=o===Q.HistogramSeries||o===Q.HeatSeries?1:.9;h.get("renderer").setAll({cellStartLocation:c,cellEndLocation:d}),o===Q.HeatSeries&&(a instanceof Qi||a instanceof Ts)&&a.setAll({layer:V.zIndexes.axisLineLayer}),S_(h),fO(h),xu(h.get("renderer"))?h.get("renderer").labels.template.set(n?"paddingBottom":"paddingTop",V.axisLabelSpacing.horizontalAxisLabelPaddingTop):a instanceof Ts&&h.get("renderer").labels.template.set(n?"paddingLeft":"paddingRight",V.axisLabelSpacing.verticalAxisLabelSidePadding)}return h}function pO(r){let{axis:e,data:t,chartType:i,dataWasUpdated:s,axesInitializationNeeded:a,sortChanged:n,heatChartHideEmptyRowsAndColumnsChanged:o}=r;if(t&&(s||a||n||o)){let A=Gr(t);if(i!==Q.HeatSeries)e.data.setAll(A??[]);else{let l=(d,u)=>{let f=u?.map(m=>d in m?m[d]:void 0);return Array.from(new Set(f)).map(m=>({[d]:m}))},h=e.get("renderer")instanceof Ts?ri.yField:ri.xField,c=l(h,A);e.data.setAll(c)}}}function mO(r){let{axis:e,axisTitleConfig:t,isSecondValueAxis:i}=r,s=e.get("renderer"),{chart:a}=e,n=xu(s),o=Ft({childId:I_(e,n),parent:e,useChildId:!0})??gO({axis:e,isHorizontalAxis:n,isSecondValueAxis:i});if(o instanceof at){let A=n?{...V.xAxisTitleLabel,verticalCenter:Tt.Top}:V.yAxisTitleLabel;if(gr({label:o,labelConfig:t,defaults:A}),n&&i!==!0&&gm(e,o),a){let l={chart:a,label:o,labelType:n?At.XAxisTitle:At.YAxisTitle};Ma(l)}}}function ry(r){let{axis:e,data:t,dataWasUpdated:i,axesInitializationNeeded:s,sortChanged:a,heatChartHideEmptyRowsAndColumnsChanged:n,axisConfig:o,axisConfigIndex:A,timeIntervalInfo:l,horizontalAxisLabelsBehavior:h,verticalAxisLabelsBehavior:c,axisLabelsBehaviorChanged:d,anyGuideAboveChanged:u,isNonAggregatedChart:f,isSecondValueAxis:m,chartConfig:g,externalAxisLabelFormatter:v,guideTooltipFormatter:B,utilsStrings:w,errorStrings:_,queryObject:L}=r,{visible:k,lineSymbol:D,title:E,labels:O,isLogarithmic:I,grid:M,displayCursorTooltip:S,displayZeroLine:P,valueFormat:Y,guides:G,tickSpacing:ie,dateBaseInterval:J}=o,{root:ne}=e,z=_e(g.series),K=Ys(g),ge=es(g),{chart:he}=e,re=he?oe(he.uid,"config"):void 0,Me=ws(L),Ne=_r(Me).find(yt=>yt.name===re?.series?.[0]?.x),Ee=Jx(Ne),Ge=e.get("renderer");YA(e.uid,{zeroGridLine:{displayZeroLine:P,strokeWidth:M?.width??V.lineWidth,visible:M!==void 0}}),wP({axis:e,isLogarithmic:I,axisConfigIndex:A}),vP({axis:e,isXAxis:zo(e.get("renderer"),ge),chartType:z,formatOptions:Y,isNonAggregatedChart:f,overridePercentMultiplication:K===Qt.Stacked100,externalAxisLabelFormatter:v,isTimeOnlyField:Ee,errorStrings:_}),bP({axis:e,isRotated:ge,chartConfig:g}),SP({axis:e,timeIntervalInfo:l,dateBaseInterval:J,xFieldIsTimeOnly:Ee}),ea({element:Ge,lineSymbol:{color:[...V.color],...D??Fl()},visible:k}),ea({element:Ge.ticks.template,lineSymbol:D,visible:k}),ea({element:Ge.grid.template,lineSymbol:M,visible:k}),M===void 0&&(e.get("renderer").grid.template.set("strokeWidth",V.lineWidth),e.markDirtyValues()),iO({axis:e,axisConfig:o,chartType:z,horizontalAxisLabelsBehavior:h,verticalAxisLabelsBehavior:c,axisLabelsBehaviorChanged:d}),mO({axis:e,axisTitleConfig:E,isSecondValueAxis:m}),_P(e,o),jP({axis:e,chartType:z,labelConfig:O,horizontalAxisLabelsBehavior:h,isSecondValueAxis:m,tickSpacing:ie}),FP({root:ne,axis:e,displayCursorTooltip:S}),YP({axis:e,guideConfigs:G,guideTooltipFormatter:B,anyGuideAboveChanged:u,utilsStrings:w}),pO({axis:e,data:t,chartType:z,dataWasUpdated:i,axesInitializationNeeded:s,heatChartHideEmptyRowsAndColumnsChanged:n,sortChanged:a})}function yO(r){let{chart:e,errorStrings:t}=r,{root:i}=e,s=oe(e.uid,"config");if(s){let{x:a}=s.series[0],n=es(s),{axes:o}=s,A=_e(s.series);Za({chartType:A,axesConfig:o,errorStrings:t});let l={root:i,x:a,chartType:A},h=n?o?.[1]:o?.[0],c=n?o?.[0]:o?.[1],d=h?.valueFormat,u=c?.valueFormat;if(d!==void 0&&u!==void 0&&(to({...l,axes:e.xAxes,valueFormat:d,axisRenderer:Qi.new(i,{}),isXAxis:!n,x:a}),to({...l,axes:e.yAxes,valueFormat:u,axisRenderer:Ts.new(i,{}),isXAxis:n,x:a}),o?.[2]!==void 0)){let f=n?Qi:Ts;to({...l,axes:n?e.xAxes:e.yAxes,valueFormat:o[2]?.valueFormat,axisRenderer:f.new(i,{opposite:!0}),isSecondValueAxis:!0,isXAxis:n,x:a})}}}function xO(r){let{chart:e,chartType:t,axesConfig:i,x:s,errorStrings:a}=r,{root:n}=e,o=i?.[0],A=i?.[1];if(Za({chartType:t,axesConfig:i,errorStrings:a}),o?.valueFormat!==void 0&&A?.valueFormat!==void 0){let l={root:n,x:s,chartType:t};to({...l,axes:e.xAxes,valueFormat:o.valueFormat,axisRenderer:ss.new(n,{}),isXAxis:!0,x:s}),to({...l,axes:e.yAxes,valueFormat:A.valueFormat,axisRenderer:Wn.new(n,{}),isXAxis:!1,x:s})}}function D_(r){let{chart:e,chartConfig:t,errorStrings:i}=r,{axes:s}=t,{x:a}=t.series[0],n=_e(t.series);switch(e.xAxes.clear(),e.yAxes.clear(),n){case Q.GaugeSeries:e instanceof Rs&&hO({chart:e,axesConfig:s,errorStrings:i});break;case Q.HistogramSeries:uO({chart:e,axesConfig:s,x:a,errorStrings:i});break;case Q.HeatSeries:case Q.BarSeries:case Q.ComboLineAndBarSeries:case Q.ScatterSeries:case Q.LineSeries:case Q.BoxPlotSeries:yO({chart:e,errorStrings:i});break;case Q.RadarSeries:e instanceof Rs&&xO({chart:e,axesConfig:s,chartType:n,x:a,errorStrings:i});break}}function bO(r){let{chart:e,chartConfig:t,axisLabelsBehaviorChanged:i,sortChanged:s,anyGuideAboveChanged:a,data:n,dataWasUpdated:o,axesInitializationNeeded:A,heatChartHideEmptyRowsAndColumnsChanged:l,timeIntervalInfo:h,xAxisLabelFormatter:c,yAxisLabelFormatter:d,secondaryYAxisLabelFormatter:u,guideTooltipFormatter:f,utilsStrings:m,errorStrings:g,queryObject:v}=r,{horizontalAxisLabelsBehavior:B,verticalAxisLabelsBehavior:w,axes:_}=t,L=es(t),k=_e(t.series),D=oe(e.uid,"isNonAggregatedChart"),E=e.xAxes.getIndex(0),O=e.yAxes.getIndex(0),I=e.xAxes.getIndex(1)??e.yAxes.getIndex(1);Za({chartType:k,axesConfig:_,errorStrings:g});let M=L?1:0,S=L?0:1,P=_?.[M],Y=_?.[S];[{axis:E,axisConfig:P,externalAxisLabelFormatter:L?d:c,axisConfigIndex:M},{axis:O,axisConfig:Y,externalAxisLabelFormatter:L?c:d,axisConfigIndex:S},{axis:I,axisConfig:_?.[2],externalAxisLabelFormatter:u,isSecondValueAxis:!0,axisConfigIndex:2}].forEach(G=>{let{axis:ie,axisConfig:J,axisConfigIndex:ne,externalAxisLabelFormatter:z,isSecondValueAxis:K}=G;ie!==void 0&&!ie.isDisposed()&&J!==void 0&&ry({axis:ie,data:n,dataWasUpdated:o,axesInitializationNeeded:A,heatChartHideEmptyRowsAndColumnsChanged:l,sortChanged:s,timeIntervalInfo:h,axisConfig:J,axisConfigIndex:ne,horizontalAxisLabelsBehavior:B,verticalAxisLabelsBehavior:w,axisLabelsBehaviorChanged:i,anyGuideAboveChanged:a,isNonAggregatedChart:D,isSecondValueAxis:K,utilsStrings:m,chartConfig:t,externalAxisLabelFormatter:z,guideTooltipFormatter:f,errorStrings:g,queryObject:v})}),Jd(e,n)}async function k_(r){let{chart:e,chartConfig:t}=r,i=_e(t.series);i===Q.GaugeSeries&&e instanceof Rs?await cO(r):i===Q.HistogramSeries?dO(r):bO(r)}function vO(r,e){let t=st(V.backgroundColor);e.set("background",Xt.new(r,{fill:t.color,fillOpacity:t.opacity}))}function U_(r,e){let t=st(e??V.backgroundColor);r.get("background")?.setAll({fill:t.color,fillOpacity:t.opacity})}function Q_(r,e){let t=_e(e.series);return r instanceof bt&&t!==Q.GaugeSeries}function BO(r,e){let t=V.cursorCrosshair.style,i={type:je.SLS,style:e?.style??t.style,color:e?.color??t.color,width:e?.width??t.width},s=r.get("cursor")?.lineX,a=r.get("cursor")?.lineY;ea({element:s,lineSymbol:i}),ea({element:a,lineSymbol:i})}function E_(r){let{root:e,chart:t,config:i,queryObject:s}=r,a;if(Q_(t,i)){let n=t instanceof Rs?Ua:Er;a=t.set("cursor",n.new(e,{})),NM(t,s)}return a}function R_(r){let{root:e,chart:t,cursorCrosshair:i,config:s,queryObject:a}=r;if(Q_(t,s)){let n=t.get("cursor")??E_({root:e,chart:t,config:s,queryObject:a});n&&(BO(t,i?.style),n.lineX.set("visible",i?.verticalLineVisible??V.cursorCrosshair.verticalLineVisible),n.lineY.set("visible",i?.horizontalLineVisible??V.cursorCrosshair.horizontalLineVisible))}}function CO(r){let{chart:e,enabled:t}=r,i=t?"pointer":"default";e instanceof zi&&e.series.each(s=>{switch(!0){case s instanceof _t:s.columns.template.set("cursorOverStyle",i);break;case s instanceof nt:let a=qe(s.uid,"bulletTemplate");a!==void 0&&!dn(s)&&a.set("cursorOverStyle",i);break;case s instanceof bi:s.slices.template.setAll({cursorOverStyle:i});break}})}function wO(r){let{chart:e,actionMode:t,cursorRange:i}=r,s=oe(e.uid,"isRotated"),a=oe(e.uid,"config"),n=_e(a?.series),o=n===Q.ScatterSeries,A=(n===Q.LineSeries||n===Q.RadarSeries)&&ks(a?.axes?.[0]?.valueFormat),l=(n===Q.LineSeries||n===Q.RadarSeries)&&yA(a?.axes?.[0]?.valueFormat),h=(n===Q.LineSeries||n===Q.RadarSeries)&&Vr(a?.axes?.[0]?.valueFormat),c,d=!1,u=t??oe(e.uid,"actionMode")??V.actionMode;if(oe(e.uid,"filterBySelection")===!0)c=Dt.None,d=!1;else if(i!==void 0)c=BC({actionMode:u,cursorRange:i,isRotated:s});else switch(u){case et.Zoom:o||A||h?c=Dt.ZoomXY:c=s===!0?Dt.ZoomY:Dt.ZoomX,d=!1;break;case et.MultiSelection:case et.MultiSelectionWithCtrlKey:l?c=s===!0?Dt.SelectY:Dt.SelectX:c=Dt.SelectXY,d=!0;break;case et.MonoSelection:c=Dt.None,d=!0;break;case et.None:c=Dt.None,d=!1;break}e instanceof bt&&e.get("cursor")!==void 0&&c!==void 0&&e.get("cursor")?.set("behavior",c),CO({chart:e,enabled:d})}function _O(r,e){e!==void 0&&(e.width!==void 0&&r.set("width",PB(e.width)),e.height!==void 0&&r.set("height",PB(e.height)),e.paddingTop!==void 0&&r.set("paddingTop",e.paddingTop),e.paddingBottom!==void 0&&r.set("paddingBottom",e.paddingBottom))}function pm(r){let{root:e,defaults:t,parent:i,id:s,index:a}=r,n=ve.new(e,{});return _O(n,t),i!==void 0&&i.children.insertIndex(a??i.children.length,n),s!==void 0&&n.set("id",s),n}function mm(r,e){e?r.hide():r.show()}function FO(r,e){let t=pm({root:r,defaults:V.headerContainer,parent:e,id:rs(gu,e.uid),index:0}),i=pm({root:r,defaults:V.headerContainer,parent:e,id:rs(zm,e.uid),index:1}),s=NA({root:r,parent:t,defaults:V.titleLabel,id:rs(zw,t.uid)}),a=NA({root:r,parent:i,defaults:V.subtitleLabel,id:rs(jw,i.uid)});$A({chart:e,label:s,labelType:At.ChartTitle}),$A({chart:e,label:a,labelType:At.ChartSubTitle})}function M_(r,e){let{title:t,subtitle:i}=e??{},s=oe(r.uid,"config"),a=s?.legend?.visible!==!1&&s?.legend?.position===Te.Top?0:V.headerContainer.paddingBottom??0,n=Ft({childId:gu,parent:r});if(n!==void 0){n.set("paddingBottom",a);let A=Ft({childId:zw,parent:n});A!==void 0&&(gr({label:A,labelConfig:t,defaults:V.titleLabel}),Ma({chart:r,label:A,labelType:At.ChartTitle}),mm(n,A.get("disabled")===!0||(t?.content.text??"")===""))}let o=Ft({childId:zm,parent:r});if(o!==void 0){o.set("paddingBottom",a),n!==void 0&&n.set("paddingBottom",V.titleAndSubtitlePaddingBottom);let A=Ft({childId:jw,parent:o});A!==void 0&&(gr({label:A,labelConfig:i,defaults:V.subtitleLabel}),Ma({chart:r,label:A,labelType:At.ChartSubTitle}),mm(o,A.get("disabled")===!0||(i?.content.text??"")===""))}}function SO(r){let{root:e}=r,t=pm({root:e,defaults:V.footerContainer,parent:r,id:rs(pu,r.uid)}),i=NA({root:e,parent:t,id:rs(Zw,t.uid)});$A({chart:r,label:i,labelType:At.ChartFooter})}function P_(r,e){let t=Ft({childId:pu,parent:r});if(t!==void 0){let i=Ft({childId:Zw,parent:t});i!==void 0&&(gr({label:i,labelConfig:e,defaults:V.footer}),Ma({chart:r,label:i,labelType:At.ChartFooter}),mm(t,i.get("disabled")||(e?.content.text??"")===""))}}function O_(r){if(!(r instanceof Rs)&&r instanceof bt){let{root:e}=r,t=La.new(e,{orientation:"horizontal",visible:!1,marginTop:0}),i=La.new(e,{orientation:"vertical",visible:!1});r.setAll({scrollbarX:t,scrollbarY:i})}}function LO(r,e){if(e!==void 0){let t=st(e),i=e[3]/255,s=i/2;[{element:r.get("background"),specificOpacity:s},{element:r.startGrip.get("background")},{element:r.endGrip.get("background")},{element:r.thumb}].forEach(a=>{let{element:n,specificOpacity:o}=a;n!==void 0&&n.setAll({fill:t.color,fillOpacity:o??i})}),[{element:r.get("background"),stateName:"default",specificOpacity:s},{element:r.startGrip.get("background"),stateName:"default"},{element:r.startGrip.get("background"),stateName:"hover"},{element:r.startGrip.get("background"),stateName:"down"},{element:r.endGrip.get("background"),stateName:"default"},{element:r.endGrip.get("background"),stateName:"hover"},{element:r.endGrip.get("background"),stateName:"down"},{element:r.thumb,stateName:"default"},{element:r.thumb,stateName:"hover"},{element:r.thumb,stateName:"down"}].forEach(a=>{let{element:n,stateName:o,specificOpacity:A}=a;(n?.states.lookup(o)??n?.states.create(o,{}))?.setAll({fill:t.color,fillOpacity:A??i})})}}function TO(r,e){typeof e=="number"&&Number.isFinite(e)&&(r.get("orientation")==="horizontal"?r.setAll({height:e,minHeight:e}):r.setAll({width:e,minWidth:e}))}function IO(r,e){if(typeof e=="number"&&Number.isFinite(e)){let t=e/30;r.startGrip.set("scale",t),r.endGrip.set("scale",t)}}function lC(r,e){typeof e=="number"&&Number.isFinite(e)&&(r.get("orientation")==="horizontal"?r.set("marginBottom",e):r.set("marginLeft",e),r.markDirtyBounds())}function H_(r){let{chart:e,scrollbarXConfig:t,scrollbarYConfig:i}=r;if(!(e instanceof Rs)&&e instanceof bt){let s=oe(e.uid,"isRotated");(e.get("scrollbarX")===void 0||e.get("scrollbarY")===void 0)&&O_(e);let a=e.get("scrollbarX"),n=e.get("scrollbarY");[a,n].forEach(o=>{if(o!==void 0){let A=o.get("orientation")==="horizontal"&&s!==!0||o.get("orientation")==="vertical"&&s===!0?t:i,l=A?.visible!==!0;if(si(o,!l),A!==void 0&&!l){let{width:h,color:c,gripSize:d,margin:u}=A;lC(o,u??h??V.scrollbarPadding),LO(o,c),IO(o,d),TO(o,h)}else lC(o,0)}})}}function DO(r){Vw(r)}function cC(r){return r.get("legendDataItem")?.get("marker").children.getIndex(0)}function kO(r,e){r.columns.each(t=>{(t.dataItem?.dataContext)[e]===0&&t.set("strokeOpacity",0)})}function UO(r){let{root:e,chartConfig:t,seriesConfig:i,xAxis:s,yAxis:a,options:n,queryObject:o}=r,{id:A,name:l}=i,{xField:h,yField:c,xAxisField:d,yAxisField:u}=jA(t,i),f=Ub(t),m=_t.new(e,{id:A,name:l,stacked:f,turboMode:!0,xAxis:s,yAxis:a,[d]:h,[u]:c,maskBullets:!1});Ri(m.columns.template,n?.selectionTheme);let g=Ke.new({});return Ei(m.uid,{bulletTemplate:g}),sa({element:m.columns.template,series:m,queryObject:o}),m.bullets.push(v=>{let B=Re.new(v,{},g);return Fs.new(v,{sprite:B})}),m.columns.template.set("width",Ve(100)),ty(m),Vm(m,n?.tooltipFormatter),h_(m),qA(m,t),m.appear(),m}function QO(r){let{series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,chartSubType:a,colorMatch:n,rendererType:o}=r,A=e.root,l=wc(e),h=new Set,c,d,u=t.fillSymbol,f={root:A,seriesConfig:t,seriesIndex:i,seriesSymbol:u,isChartFillSymbol:!0},m={},g={},v=Uf(i),B=qe(e.uid,"bulletTemplate");if(B&&u?.style&&u.style!==ha.Solid&&ro({root:A,element:B,fillSymbol:u,defaultToColorFromRamp:!0,colorRampIndex:i,isChartFillSymbol:!0,chartBackgroundColor:ww(e.chart)??[...V.backgroundColor]}),e.columns.length===0?m=er({root:A,seriesIndex:i,colorMatch:n,seriesSymbol:u??v,element:Re.new(A,{}),isChartFillSymbol:!0}):e.columns.each(w=>{let _=w.dataItem?.dataContext;if(Number.isFinite(_?.[l])){d=Fr({dataItem:_,seriesConfig:t,chartSubType:a,colorMatch:n,rendererType:o});let L=_[V.xAxisField]===V.nullValue,k=(L&&t.nullCategory?.symbol!==void 0?t.nullCategory.symbol:u)??v;m=er({...f,seriesSymbol:k,element:w,colorMatch:n,rendererSymbol:d}),PA(w,m.stylingInfo),L||(h.add(JSON.stringify(m.symbolWithColorInfo)),g=m)}}),s>1){let w=cC(e);if(w!==void 0)er({...f,seriesSymbol:u??v,element:w,colorMatch:n,rendererSymbol:d}),PA(w,g.stylingInfo);else if(e.chart instanceof bt){let _=e.chart.children.values.find(L=>L instanceof Fa);_!==void 0&&_.events.once(gt.BoundsChanged,()=>{PA(cC(e),g.stylingInfo)})}er({...f,seriesSymbol:g.symbolWithColorInfo??u??v,element:e,colorMatch:n,rendererSymbol:d,keepCurrentVisibility:!0}),er({...f,seriesSymbol:g.symbolWithColorInfo??u??v,element:e.columns.template,colorMatch:n,rendererSymbol:d})}return h.size<=1&&(c=g.symbolWithColorInfo??u),kO(e,l),c}function EO(r){let{series:e,seriesSymbolMapForEvent:t,seriesIndexMapper:i,seriesIndex:s,colorMatch:a,rendererType:n,disableInteractions:o}=r,A=r.seriesConfig,l=e.chart;if(l!==void 0){let h=oe(l.uid,"config"),c=h?.series.length??0,d=ze(h?.series);XA(e,!1);let u=QO({series:e,seriesConfig:A,seriesIndex:s,numberOfSeries:c,chartSubType:d,colorMatch:a,rendererType:n});o&&XA(e,!0),t.set(i?.get(A.id)??s,u),t.size===c&&ar({data:t,htmlContainer:e.root.dom,chartId:l.get("id"),colorMatchApplied:JA(l)})}}function RO(r){let{columnSeries:e,data:t,seriesIndex:i,chartConfig:s,dataWasUpdated:a,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:A,timeZoneChanged:l,sortChanged:h,loaderHandle:c}=r,d=s.series[i];if(t&&d?.type===Q.BarSeries&&(o===!0||a===!0||h===!0||A===!0||l||n===!0)){let{xField:u,yField:f,xAxisField:m,yAxisField:g}=jA(s,d);e.setAll({[m]:u,[g]:f}),e.events.once(gt.DataValidated,()=>{c.hideLoader()}),e.data.setAll(t.dataItems)}}function MO(r){let{series:e,data:t,chartConfig:i,options:s,seriesIndex:a,dataWasUpdated:n,rotationChanged:o,timeZoneChanged:A,queryObject:l,utilsStrings:h,seriesWereReinitialized:c,autoInverseDataLabelTextColor:d,fieldList:u,sortChanged:f,stackedTypeChanged:m,loaderHandle:g}=r,v=i.series[a],B=i.rotated,w=i.axes,_;if(w?.[1]&&(_=w[1]),e.set("id",v.id),Ri(e.columns.template,s?.selectionTheme),no(e.columns.template,t?.dataItems?.length),Jm({series:e,chartConfig:i,isRotated:B}),DO({seriesType:Q.BarSeries,series:e,seriesConfig:v,isRotated:B,dataLabelsConfig:v.dataLabels,autoInverseDataLabelTextColor:d,yAxisValueFormat:_?.valueFormat,externalDataLabelFormatter:s?.dataLabelFormatter}),RO({columnSeries:e,data:t,seriesIndex:a,chartConfig:i,dataWasUpdated:n,timeZoneChanged:A,seriesWereReinitialized:c,rotationChanged:o,stackedTypeChanged:m,sortChanged:f,loaderHandle:g}),Wm({series:e,seriesConfig:v,fieldList:u,queryObject:l,seriesIndex:a,tooltipFormatter:s?.tooltipFormatter,utilsStrings:h}),un(r)){let L={series:e,seriesConfig:v,seriesIndex:a,colorMatch:r.colorMatch,seriesIndexMapper:r.seriesIndexMapper,seriesSymbolMapForEvent:r.seriesSymbolMapForEvent,rendererType:r.rendererType,disableInteractions:s?.disableInteractions};fn({styleCallback:EO,callbackProps:L,series:e,seriesConfig:v})}ey({chartConfig:i,series:e,seriesIndex:a,queryObject:l})}function PO(r){let{chartConfig:e,seriesConfig:t}=r,i=es(e),s=e.showOutliers,a=e.standardizeValues,n=Us(e),{y:o}=t,A=Oh(e),l=ze(A.series),h=n?void 0:t?.query?.where,c={y:l===xe.BoxPlotMultiFieldsAndCategory&&typeof o=="string"?o:void 0,chartSubType:l,splitBy:h,showOutliers:s,standardizeValues:SA(l)?a:!1},d=bu({chartConfig:e,seriesConfig:t,key:rt.ThirdQuartile});return{properties:{...d.properties,low:Ot({...c,key:rt.Min}),open:Ot({...c,key:rt.FirstQuartile}),high:Ot({...c,key:rt.Max})},dataFields:{...d.dataFields,low:i?"lowValueXField":"lowValueYField",open:i?"openValueXField":"openValueYField",high:i?"highValueXField":"highValueYField"}}}function OO(r){let{candleStickSeries:e,data:t,rotationChanged:i,sortChanged:s,dataWasUpdated:a,seriesWereReinitialized:n,loaderHandle:o}=r;(i===!0||a===!0||s===!0||n===!0)&&(e.events.once(gt.DataValidated,()=>{o.hideLoader()}),e.data.setAll(t?.dataItems??[]))}function HO(r){let{candleStickSeries:e,seriesConfig:t,seriesIndex:i,chartSubType:s,colorMatch:a,showMean:n,rendererType:o,options:A}=r,{root:l}=e,h=t.fillSymbol??_h(i),c={},d={root:l,seriesConfig:t,seriesIndex:i,colorMatch:a,isChartFillSymbol:!0};XA(e,!1),e.columns.length===0?c=er({...d,seriesSymbol:h,element:Re.new(l,{})}):e.columns.each(u=>{c=er({...d,seriesSymbol:h,element:u,rendererSymbol:n?void 0:Fr({dataItem:u.dataItem?.dataContext,seriesConfig:t,chartSubType:s,colorMatch:a,rendererType:o})})}),er({...d,seriesSymbol:c?.symbolWithColorInfo??h,element:e.columns.template,colorMatch:a}),A?.disableInteractions&&XA(e,!0)}function NO(r){let{candleStickSeries:e,seriesConfig:t,data:i,options:s}=r;Ri(e.columns.template,s?.selectionTheme),no(e.columns.template,i?.dataItems?.length),ZA(e,t.name),OO(r),un(r)&&fn({styleCallback:HO,callbackProps:r,series:e,seriesConfig:t})}function $O(r){let{root:e,xAxis:t,yAxis:i,chartConfig:s,seriesIndex:a,options:n,queryObject:o}=r,A=s.series[a],l;if(A.type===Q.BoxPlotSeries){let h=PO({chartConfig:s,seriesConfig:A});l=Ms.new(e,{id:A.id,turboMode:!0,xAxis:t,yAxis:i,[h.dataFields.low]:h.properties.low,[h.dataFields.open]:h.properties.open,[h.dataFields.high]:h.properties.high,[h.dataFields.value]:h.properties.value,[h.dataFields.category]:h.properties.category}),l.columns.template.setAll({themeTags:[],width:Ve(80)}),Ri(l.columns.template,n?.selectionTheme),sa({element:l.columns.template,series:l,queryObject:o})}return l}function VO(r){let{chartConfig:e,seriesConfig:t}=r,i=ze(e.series),{showOutliers:s,standardizeValues:a}=e,{y:n}=t,o=t?.query?.where,A=Oh(e),l=bu({chartConfig:A,seriesConfig:t,key:rt.Average}),h=Ot({y:i===xe.BoxPlotMultiFieldsAndCategory&&typeof n=="string"?n:void 0,chartSubType:i,splitBy:o,showOutliers:s,standardizeValues:SA(i)?a:!1,key:rt.Average});return l.properties.value=h,l}function XO(r){let{meanLineSeries:e,data:t,rotationChanged:i,sortChanged:s,dataWasUpdated:a,seriesWereReinitialized:n}=r;(i===!0||a===!0||s===!0||n===!0)&&e.data.setAll(t?.meanLines??[])}function KO(r){let{meanLineSeries:e,seriesConfig:t,data:i,dataWasUpdated:s,sortChanged:a,rotationChanged:n,seriesWereReinitialized:o,options:A}=r,l=qe(e.uid,"bulletTemplate");l&&Ri(l,A?.selectionTheme),no(l,i?.meanLines?.length),ZA(e,t?.name),XO({meanLineSeries:e,data:i,dataWasUpdated:s,sortChanged:a,rotationChanged:n,seriesWereReinitialized:o})}function GO(r){let{root:e,xAxis:t,yAxis:i,chartConfig:s,seriesIndex:a,options:n,queryObject:o}=r,A=s.series[a],l;if(A.type===Q.LineSeries){let h=VO({chartConfig:s,seriesConfig:A});l=nt.new(e,{id:A.id,xAxis:t,yAxis:i,[h.dataFields.value]:h.properties.value,[h.dataFields.category]:h.properties.category}),l.appear();let c=Ke.new({});Ei(l.uid,{isBoxPlotMeanLineSeries:!0,bulletTemplate:c}),Ri(c,n?.selectionTheme),l.bullets.push(d=>{let u=Re.new(d,{},c),f=Fs.new(d,{sprite:u});return l&&sa({element:u,series:l,queryObject:o}),f})}return l}function WO(r,e){return r.get("id")===`${e}_${kt.Outliers}`}function YO(r){let{chartConfig:e,seriesConfig:t}=r;return bu({chartConfig:e,seriesConfig:t,key:rt.Outlier})}function zO(r){let{outlierSeries:e,data:t,rotationChanged:i,sortChanged:s,dataWasUpdated:a,seriesWereReinitialized:n}=r;(i===!0||a===!0||s===!0||n===!0)&&e.data.setAll(t?.outliers??[])}function jO(r,e){return(r??V.boxPlot.boxPlotOutliersVisibility)&&e!==!1}function ZO(r){let{outlierSeries:e,chartSubType:t,seriesConfig:i,colorMatch:s,showOutliers:a}=r;if(qe(e.uid,"bulletTemplate")&&i.type===Q.BoxPlotSeries){let o=i.fillSymbol,A={type:je.SMS,style:wl.Circle,color:o?.color,size:V.boxPlot.boxPlotOutliersSize};e.dataItems.forEach(l=>{let h=l.bullets?.[0]?.get("sprite");if(h!==void 0){let c=Fr({dataItem:l.dataContext,seriesConfig:i,chartSubType:t,colorMatch:s});er({root:e.root,seriesSymbol:A,element:h,colorMatch:s,rendererSymbol:c})}})}let n=jO(a,i.visible);si(e,n)}function qO(r){let{outlierSeries:e,data:t,seriesConfig:i,sortChanged:s,dataWasUpdated:a,rotationChanged:n,seriesWereReinitialized:o,options:A}=r;if(e&&i.type===Q.BoxPlotSeries){let l=qe(e.uid,"bulletTemplate");l&&Ri(l,A?.selectionTheme),no(l,t?.outliers?.length),zO({outlierSeries:e,data:t,rotationChanged:n,sortChanged:s,dataWasUpdated:a,seriesWereReinitialized:o}),un(r)&&fn({styleCallback:ZO,callbackProps:r,series:e,seriesConfig:i})}}function JO(r){let{root:e,xAxis:t,yAxis:i,chartConfig:s,seriesIndex:a,options:n,queryObject:o}=r,A=s.series[a],l;if(A.type===Q.BoxPlotSeries){let h=YO({chartConfig:s,seriesConfig:A});l=nt.new(e,{id:`${A.id}_${kt.Outliers}`,xAxis:t,yAxis:i,[h.dataFields.value]:h.properties.value,[h.dataFields.category]:h.properties.category}),l.strokes.template.set("forceHidden",!0);let c=Ke.new({});Ei(l.uid,{isBoxPlotOutliersSeries:!0,bulletTemplate:c}),Ri(c,n?.selectionTheme),l.bullets.push(d=>{let u=Re.new(d,{},c),f=Fs.new(d,{sprite:u});return l&&sa({element:u,series:l,queryObject:o}),aH({outlierSeries:l,bullet:f,seriesConfigId:A.id}),f}),l.appear()}return l}function eH(r){let{chartConfig:e,seriesConfig:t,type:i}=r,s="";switch(i){case kt.Top:s=rt.Max;break;case kt.Median:s=rt.Median;break;case kt.Bottom:s=rt.Min;break}return bu({chartConfig:e,seriesConfig:t,key:s})}function tH(r){let{stepLineSeries:e,data:t,rotationChanged:i,sortChanged:s,dataWasUpdated:a,seriesWereReinitialized:n}=r;(i===!0||a===!0||s===!0||n===!0)&&e.data.setAll(t?.dataItems??[])}function iH(r){let{stepLineSeries:e,data:t,seriesConfig:i,seriesIndex:s,colorMatch:a,chartSubType:n,rendererType:o}=r;if(i.type===Q.BoxPlotSeries){let{root:A}=e,l=TC({data:t.dataItems,colorMatch:a,chartSubType:n,rendererType:o}),h=(i.fillSymbol??_h(s)).color,c={type:je.SLS,width:V.boxPlot.boxPlotLineWidth,color:l?V.boxPlot.boxPlotWhiskersColor:h};er({root:A,seriesIndex:s,seriesSymbol:c,element:e,colorMatch:a})}}function sH(r){let{stepLineSeries:e,data:t,seriesConfig:i,rotationChanged:s,sortChanged:a,dataWasUpdated:n,seriesWereReinitialized:o}=r,A=i.visible!==!1;e!==void 0&&i.type===Q.BoxPlotSeries&&(si(e,A),un(r)&&fn({styleCallback:iH,callbackProps:r,series:e,seriesConfig:i}),tH({stepLineSeries:e,data:t,rotationChanged:s,sortChanged:a,dataWasUpdated:n,seriesWereReinitialized:o}))}function em(r){let{root:e,xAxis:t,yAxis:i,chartConfig:s,seriesIndex:a,type:n,options:o,queryObject:A}=r,l=s.series[a],h;if(l.type===Q.BoxPlotSeries){let c=eH({chartConfig:s,seriesConfig:l,type:n});h=qr.new(e,{id:`${l.id}_${n}`,xAxis:t,yAxis:i,noRisers:!0,[c.dataFields.value]:c.properties.value,[c.dataFields.category]:c.properties.category}),Ri(h.strokes.template,o?.selectionTheme),sa({element:h.strokes.template,series:h,queryObject:A})}return h}function bu(r){let{chartConfig:e,seriesConfig:t,key:i}=r,s=es(e),a=e.showOutliers,n=e.standardizeValues,o=Us(e),A=ze(e.series),{x:l,y:h}=t,c=o?void 0:t?.query?.where,d={y:A===xe.BoxPlotMultiFieldsAndCategory&&typeof h=="string"?h:void 0,chartSubType:A,splitBy:c,showOutliers:a,standardizeValues:SA(A)?n:!1},u=A===xe.BoxPlotMonoField||A===xe.BoxPlotMultiFields||A===xe.BoxPlotMonoFieldAndSplitBy||A===xe.BoxPlotMultiFieldsAndSplitBy?Ch:l;return{dataFields:{value:s?"valueXField":"valueYField",category:s?"categoryYField":"categoryXField"},properties:{value:Ot({key:i,...d}),category:u}}}function rH(r,e){return r.series.values.find(t=>WO(t,e))}function N_(r,e){let t=r.series.values.find(a=>a.get("id")===`${e}_${kt.Top}`),i=r.series.values.find(a=>a.get("id")===`${e}_${kt.Median}`),s=r.series.values.find(a=>a.get("id")===`${e}_${kt.Bottom}`);return{topStepLineSeries:t,medianStepLineSeries:i,bottomStepLineSeries:s}}function $_(r){return r!==xe.BoxPlotMonoField&&r!==xe.BoxPlotMultiFields&&r!==xe.BoxPlotMonoFieldAndCategory}function V_(r){let{chart:e,candleSeriesIndex:t,numberOfCandleStickSeries:i}=r,s,a,n=oe(e.uid,"config");if(n){let o=es(n),A=Us(n),l=o?e.yAxes.getIndex(0)?.get("renderer"):e.xAxes.getIndex(0)?.get("renderer"),h=l?.get("cellStartLocation"),c=l?.get("cellEndLocation");if(h&&c){let d=h/(A?1:n.series.length);s=h+t/i*(c-h)+d,a=h+(t+1)/i*(c-h)-d}}return{startLocation:s,endLocation:a}}function aH(r){let{outlierSeries:e,bullet:t,seriesConfigId:i}=r;if(e){let{chart:s}=e;if(s){let a=oe(s.uid,"config");if(a){let n=ze(a.series);if($_(n)){let o=s.series.values.filter(l=>l instanceof Ms),A=o?.findIndex(l=>l.get("id")===i);if(A&&A!==-1&&o[A]){let{startLocation:l,endLocation:h}=V_({chart:s,candleSeriesIndex:A,numberOfCandleStickSeries:o.length});l!==void 0&&h!==void 0&&t.set("locationX",(l+h)/2)}}}}}}function nH(r){let e=oe(r.uid,"config");if(e){let t=ze(e.series),i=e.series.length,s=es(e)?r.yAxes.getIndex(0)?.get("renderer"):r.xAxes.getIndex(0)?.get("renderer"),a=s?.get("cellStartLocation"),n=s?.get("cellEndLocation");if(a&&n){let o=r.series.values.filter(A=>A instanceof Ms);o.forEach((A,l)=>{let{topStepLineSeries:h,medianStepLineSeries:c,bottomStepLineSeries:d}=N_(r,A.get("id")??"");if($_(t)){let{startLocation:u,endLocation:f}=V_({chart:r,candleSeriesIndex:l,numberOfCandleStickSeries:o.length});[h,c,d].forEach(m=>{m!==void 0&&(m.set("stepWidth",Ve(60/i)),u&&f&&m.set("locationX",(u+f)/2))})}else[h,c,d].forEach(u=>{u!==void 0&&u.setAll({stepWidth:Ve(60/i)})})})}}}function oH(r){let{chartConfig:e,seriesIndex:t}=r,i=e.series[t],s=_e([i]),a=[];if(s===Q.BoxPlotSeries)[$O(r),em({...r,type:kt.Top}),em({...r,type:kt.Median}),em({...r,type:kt.Bottom}),JO(r)].forEach(n=>{n&&a.push(n)});else if(s===Q.LineSeries){let n=GO(r);n&&a.push(n)}return a}function AH(r){let{chart:e,chartConfig:t,series:i,seriesConfig:s}=r;if(e&&t)if(nH(e),i instanceof Ms&&s.type===Q.BoxPlotSeries){i.set("id",s.id);let a=i.get("id")??"";NO({...r,series:i,seriesConfig:s,candleStickSeries:i});let{topStepLineSeries:n,medianStepLineSeries:o,bottomStepLineSeries:A}=N_(e,a),l=[kt.Top,kt.Median,kt.Bottom];[n,o,A].forEach((c,d)=>{c&&(c.set("id",`${s.id}_${l[d]}`),sH({...r,stepLineSeries:c}))});let h=rH(e,a);h&&(h.set("id",`${s.id}_${kt.Outliers}`),qO({...r,outlierSeries:h}))}else i instanceof nt&&s.type===Q.LineSeries&&KO({...r,meanLineSeries:i})}function lH(r){Vw(r)}function ay(r){let{isLineSmoothed:e,isRadarLineSeries:t,isRotated:i}=r,s=t?Vp:Xo;return e&&(s=t?$p:i?Hp:Op),s}function cH(r){let{series:e,seriesConfig:t,chartSubType:i,colorMatch:s,rendererType:a}=r,n;for(let o of e.dataItems){let A=o.dataContext;if(n=Fr({seriesConfig:t,dataItem:A,chartSubType:i,colorMatch:s,rendererType:a}),n!==void 0)break}return n}function hH(r){let{series:e,seriesConfig:t,seriesIndex:i,chartSubType:s,colorMatch:a,rendererType:n}=r,o=e.root,A=cH({series:e,seriesConfig:t,chartSubType:s,colorMatch:a,rendererType:n}),l=er({root:o,seriesIndex:i,seriesSymbol:t.lineSymbol??Df(i),element:e,colorMatch:a,rendererSymbol:A});return si(e,t.visible),l.symbolWithColorInfo}function dH(r){let{series:e,seriesIndex:t,chartSubType:i,seriesConfig:s,colorMatch:a,lineColor:n}=r,o=!1,A,l=qe(e.uid,"bulletTemplate");if(l!==void 0){s.markerVisible!==!1&&s.visible!==!1?e.bulletsContainer.show():e.bulletsContainer.hide();let{markerSymbol:h}=s;h===void 0&&(h=If(),h.color=n),a?h.color=n:h.color??=n;let c=Fr({dataItem:e.dataItems[0]?.dataContext,seriesConfig:s,chartSubType:i,colorMatch:a});c&&c.outline&&(h.outline??=c.outline,h.outline.color=c.outline.color),Rw({element:l,markerSymbol:h});let d=new Set,u;e.dataItems.forEach(f=>{let m=f.bullets?.[0]?.get("sprite");if(m!==void 0){let g=Fr({dataItem:f?.dataContext,seriesConfig:s,chartSubType:i,colorMatch:a}),v=er({root:e.root,seriesIndex:t,seriesSymbol:h,element:m,colorMatch:a,rendererSymbol:g});A=v.symbolWithColorInfo,u=v.stylingInfo,PA(m,u),d.add(JSON.stringify(u))}}),o=d.size>1}return o?void 0:A}function uH(r,e){if(r.showArea===!0)if(r.areaColor!==void 0){let{color:t,opacity:i}=st(r.areaColor);e.set("fill",t),e.fills.template.setAll({fillOpacity:i,visible:!0})}else e.set("fill",e.get("stroke")),e.fills.template.setAll({fillOpacity:V.lineSeries.areaOpacity,visible:!0});else e.fills.template.set("visible",!1)}function X_(r){let{series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,colorMatch:a,rendererType:n,chartSubType:o,seriesIndexMapper:A,seriesSymbolMapForEvent:l,isRotated:h}=r,c=e.root,d=e.chart;if(d){let u=e instanceof Qa;si(e,t.visible);let f=ay({isRadarLineSeries:u,isLineSmoothed:t.lineSmoothed,isRotated:h});e.set("curveFactory",f);let m=hH({series:e,seriesConfig:t,seriesIndex:i,chartSubType:o,colorMatch:a,rendererType:n}),g=dH({series:e,seriesConfig:t,seriesIndex:i,chartSubType:o,colorMatch:a,lineColor:m.color});l.set(A?.get(t.id)??i,{lineSymbol:m,markerSymbol:g}),uH(t,e),l.size===s&&(ar({data:Hi(l),htmlContainer:c.dom,chartId:e.chart?.get("id"),colorMatchApplied:JA(d)}),l.clear())}}function fH(r){let{root:e,chartConfig:t,xAxis:i,yAxis:s,seriesConfig:a,options:n,queryObject:o}=r,{id:A,name:l}=a,{xField:h,yField:c,xAxisField:d,yAxisField:u}=jA(t,a),f=nt.new(e,{id:A,name:l,xAxis:i,yAxis:s,[d]:h,[u]:c,maskBullets:!1,curveFactory:ay({isRadarLineSeries:!1,isLineSmoothed:a.lineSmoothed,isRotated:t.rotated})});f.appear();let m=Ke.new({});return Ri(m,n?.selectionTheme),Ei(f.uid,{bulletTemplate:m}),f.bullets.push(g=>{let v=Re.new(g,{role:V.aria.defaultChartItemRole,ariaLabel:El(),hoverOnFocus:!0,tooltip:zA({series:f,tooltipFormatter:n?.tooltipFormatter}),layer:V.zIndexes.bulletMarkers},m);return sa({element:v,series:f,queryObject:o}),C_(v,f),Fs.new(g,{sprite:v})}),ty(f),qA(f,t),f}function gH(r){let{lineSeries:e,data:t,seriesIndex:i,chartConfig:s,dataWasUpdated:a,seriesWereReinitialized:n,rotationChanged:o,stackedTypeChanged:A,timeZoneChanged:l,sortChanged:h,loaderHandle:c}=r,d=s.series[i];if(t!==void 0&&i>=0&&i<s.series.length&&d.type===Q.LineSeries&&(o===!0||a===!0||A===!0||l||n===!0||h===!0)){let{xField:u,yField:f,xAxisField:m,yAxisField:g}=jA(s,d);e.setAll({[m]:u,[g]:f}),e.events.once(gt.DataValidated,()=>{c.hideLoader()}),e.data.setAll(t.dataItems)}}function pH(r){let{series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,colorMatch:a,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:A}=r,{chart:l}=e;if(l!==void 0){let h=oe(l.uid,"config"),c=oe(l.uid,"isRotated")??!1,d=ze(h?.series);X_({series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,colorMatch:a,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:A,isRotated:c})}}function mH(r,e){let{connectLines:t,temporalBinning:i}=e,s=i?.nullPolicy;r.set("connect",t!==!1&&s!==Bf.Null)}function yH(r){let{series:e,data:t,chartConfig:i,options:s,seriesIndex:a,dataWasUpdated:n,queryObject:o,fieldList:A,utilsStrings:l,rotationChanged:h,seriesWereReinitialized:c,timeZoneChanged:d,sortChanged:u,stackedTypeChanged:f,loaderHandle:m}=r,g=i.series[a],v=i.rotated,B=i.axes,w;B?.[1]&&(w=B[1]),e.set("id",g.id);let _=qe(e.uid,"bulletTemplate");_&&Ri(_,s?.selectionTheme),no(_,t?.dataItems?.length),Jm({series:e,chartConfig:i,isRotated:v}),lH({seriesType:Q.LineSeries,series:e,seriesConfig:g,isRotated:v,dataLabelsConfig:g.dataLabels,yAxisValueFormat:w?.valueFormat,externalDataLabelFormatter:s?.dataLabelFormatter}),mH(e,g),gH({lineSeries:e,seriesIndex:a,data:t,chartConfig:i,dataWasUpdated:n,rotationChanged:h,stackedTypeChanged:f,seriesWereReinitialized:c,timeZoneChanged:d,sortChanged:u,loaderHandle:m}),Wm({series:e,seriesConfig:g,fieldList:A,queryObject:o,seriesIndex:a,tooltipFormatter:s?.tooltipFormatter,utilsStrings:l}),un(r)&&fn({styleCallback:pH,callbackProps:r,series:e,seriesConfig:g}),ey({chartConfig:i,series:e,seriesIndex:a,queryObject:o})}function K_(r,e){let t=r.labels.template;t.adapters.remove("text"),t.adapters.remove("html");let i=e!==void 0?"html":"text";mc({label:t,labelOutputProp:i});let s=(a,n)=>{let o=a??"",A=qe(r.uid,"pieChartDataLabelFormatter");if(A){let l=n.dataItem;if(l){let h=l?.get("valuePercentTotal"),c=l?.get("value"),d=l?.get("category")??a??"";o=A(d,c,h)}}return i==="html"?mi(o):o};t.adapters.add(i,(a,n)=>s(a,n)),r.labels.each(a=>{a.adapters.remove("text"),a.adapters.remove("html"),mc({label:a,labelOutputProp:i}),a.adapters.add(i,n=>s(n,a))})}function xH(r){let e=r.dataItem?.component,t;if(e instanceof bi){let i=oe(e.chart?.uid??Number.NaN,"config");if(i!==void 0&&i.series[0].type===Q.PieSeries){let s=i.series[0].dataLabelsInside??V.pieChart.dataLabelsInside,a=st(i?.series[0].dataLabels?.content?.color).color,n=e.chart?.get("background")?.get("fill")??st(V.backgroundColor).color,o=oe(e.chart?.uid??Number.NaN,"options")?.autoInverseDataLabelTextColor??We.options.autoInverseDataLabelTextColor,A=r.dataItem?.dataContext?.[We.pieChart.technicalFieldSliceId],l=e.slices.values.find(c=>(c.dataItem?.dataContext)[We.pieChart.technicalFieldSliceId]===A)?.get("fill")??st(i.series[0].fillSymbol?.color).color,h=a??r.text.get("fill");t=h,h&&l&&o&&s&&(t=Hw({textBackgroundColor:l,chartBackgroundColor:n}))}}return t}function bH(r,e){let t=r.labels.template;t.set("cursorOverStyle","pointer"),t.setAll({cursorOverStyle:"pointer",maxWidth:V.pieChart.dataLabels.maxWidth??Number.NaN,oversizedBehavior:V.pieChart.dataLabels.wrap??!0?"wrap":"none",centerX:Ce,centerY:Ce}),K_(r,e),t.adapters.add("fill",(i,s,a)=>xH(s))}function vH(r,e){let{numericValueFormat:t,percentValueFormat:i,displayNumericValueOnDataLabel:s,displayCategoryOnDataLabel:a,displayPercentageOnDataLabel:n,valuePrefix:o,valueSuffix:A,percentagePrefix:l,percentageSuffix:h,dataLabelsCharacterLimit:c}=e,{chart:d}=r,u;if(d){let f=Km({pieChart:d,valueIntlOptions:t?.intlOptions,percentageIntlOptions:i?.intlOptions,displayNumericValue:s??V.pieChart.displayNumericValueOnDataLabel,displayPercentage:n??V.pieChart.displayPercentageOnDataLabel,valuePrefix:o,valueSuffix:A,percentagePrefix:l,percentageSuffix:h}),m=Fh(c),g=Gs(oe(r.chart?.uid??Number.NaN,"rtl")??!1," ");u=(v,B,w)=>{let _=f(v,B,w),L=a??V.pieChart.displayCategoryOnDataLabel?m(v):"",k=Mt(L)?"":`${L}${g}`;return k=`${k}${_}`,e.dataLabels?.content!==void 0&&(k=Ws({textSymbol:{...e.dataLabels.content,text:k},format:"amChartsV5",defaults:{...V.pieChart.dataLabels,wrap:e.optimizeDataLabelsOverlapping??V.pieChart.dataLabels.wrap}})),k}}return u}function BH(r){let{pieSeries:e,seriesConfig:t,dataLabelFormatter:i}=r,{dataLabels:s}=t,a=t.dataLabelsOffset??V.pieChart.dataLabelsOffset,n=t.dataLabelsInside??V.pieChart.dataLabelsInside;K_(e,i),Ei(e.uid,{pieChartDataLabelFormatter:i??vH(e,t)}),gr({label:e.labels.template,labelConfig:s,defaults:{...V.pieChart.dataLabels,wrap:t.optimizeDataLabelsOverlapping??V.pieChart.alignDataLabels}});let o=oe(e.chart?.uid??0,"rtl"),A=!n&&(t.alignDataLabels??V.pieChart.alignDataLabels),l=t.optimizeDataLabelsOverlapping===!0;e.set("alignLabels",A),e.labels.template.setAll({forceHidden:!s?.visible,breakWords:l?!1:void 0,textAlign:o?"right":"left"});let h=e.labels.template.get("radius"),c=e.labels.template.get("baseRadius");n&&c!==Ve(60)?e.labels.template.setAll({radius:void 0,baseRadius:Ve(60),textType:"regular"}):!n&&!l&&!A&&(e.labels.template.setAll({baseRadius:Ae,textType:"adjusted"}),a!==void 0&&Number.isFinite(a)&&h!==a&&e.labels.template.set("radius",a))}var tm;function CH(r,e){let{ticks:t}=e,i=t?.visible===!1||e.dataLabelsInside===!0||e.dataLabels===void 0||e.dataLabels?.visible===!1||e.dataLabelsOffset!==void 0&&e.dataLabelsOffset<=0;r.ticks.template.setAll({visible:!i,crisp:!1});let s=t?.lineSymbol??Fl({color:Sf});i&&(s.width=0),ea({element:r.ticks.template,lineSymbol:s,visible:!i})}function wH(r){let{series:e,pieSlicesSymbols:t,seriesConfig:i}=r;e.slices.each((s,a)=>{let n=s.dataItem?.dataContext,o=Eh({dataContext:n,pieSlicesSymbols:t,seriesConfig:i});ro({root:e.root,element:s,fillSymbol:o,defaultToColorFromRamp:!0,colorRampIndex:a,isChartFillSymbol:!0})})}function _H(r,e){let t=new Map(r.map((i,s)=>[i.arcgis_charts_original_category_value,s]));return[...e].sort((i,s)=>(t.get(i.arcgis_charts_original_category_value)??1/0)-(t.get(s.arcgis_charts_original_category_value)??1/0))}function FH(r){let{series:e,data:t,seriesConfig:i,dataWasUpdated:s,sortChanged:a,seriesWereReinitialized:n,loaderHandle:o,labelUpdateNeeded:A,groupOfSlicesUpdateNeeded:l}=r,{x:h,y:c}=i,d=ze([i]),u=d===xe.PieFromFields?ja:h;if(t&&(s===!0||n===!0||a===!0||l===!0))e.setAll({categoryField:u,valueField:d===xe.PieFromFields?vo:c}),e.events.once(gt.DataValidated,()=>{o.hideLoader()}),e.data.setAll(t.dataItems);else if(t&&A){let f=e.dataItems,m=f.map(v=>v.dataContext),g=_H(m,t.dataItems);f.forEach((v,B)=>{let w=g[B];typeof w[u]=="string"&&v.set("category",w[u])}),e.markDirty()}}function SH(r,e){let{innerRadius:t}=e;r.set("innerRadius",t?Ve(t):0)}function LH(r,e){let{startAngle:t,endAngle:i}=e;r.setAll({startAngle:t??V.pieChart.min,endAngle:i??360+(r.get("startAngle")??0)})}function TH(r){let{root:e,seriesConfig:t,options:i,chart:s,queryObject:a}=r,{id:n,name:o,x:A,y:l}=t,h=ze([t]),c=bi.new(e,{id:n,name:o,categoryField:h===xe.PieFromFields?ja:A,valueField:h===xe.PieFromFields?vo:l});return bH(c,i?.dataLabelFormatter),Gm(c,i?.tooltipFormatter),c.slices.template.states.create("hover",{scale:1,stateAnimationDuration:0}),Ri(c.slices.template,i?.selectionTheme),sa({element:c.slices.template,series:c,queryObject:a}),c.appear(),s instanceof is&&G_(s,c),c}function IH(r){let{series:e,seriesConfig:t,seriesWereReinitialized:i,dataWasUpdated:s,sortChanged:a,data:n,options:o,loaderHandle:A,labelUpdateNeeded:l,utilsStrings:h,groupOfSlicesUpdateNeeded:c}=r,{dataLabelFormatter:d,tooltipFormatter:u}=o??{};e.set("id",t.id),Ri(e.slices.template,o?.selectionTheme),FH({series:e,seriesConfig:t,seriesWereReinitialized:i,dataWasUpdated:s,sortChanged:a,data:n,loaderHandle:A,labelUpdateNeeded:l,groupOfSlicesUpdateNeeded:c}),un(r)&&fn({styleCallback:wH,callbackProps:r,series:e,seriesConfig:t}),BH({pieSeries:e,seriesConfig:t,dataLabelFormatter:d}),SH(e,t),LH(e,t),CH(e,t),_R({series:e,seriesConfig:t,tooltipFormatter:u});let{chart:f}=e;f instanceof is&&G_(f,e)}function G_(r,e){if(!r.isDisposed()){let t=r.radius();Fi(r.uid,{pieChartRadius:t});let i=()=>{let s=Ve(oe(r.uid,"pieChartRadius")??V.pieChart.chartOptimizedRadius),a=s,n=r.series?.values?.[0]??e,o=oe(r.uid,"config");if(o!==void 0){let{series:A}=o,{innerRadius:l,optimizeDataLabelsOverlapping:h,alignDataLabels:c,dataLabelsOffset:d=V.pieChart.dataLabelsOffset,dataLabels:u,dataLabelsInside:f}=A[0];if(u?.visible===!0&&c===!0&&h===!0&&f!==!0){let m=V.pieChart.chartOptimizedRadius/100,g=500,v=150,B=.6,w=.5,_=1,L=r.seriesContainer.width()-d*2,k=Math.max(L-v,0)/(g-v),D=k<1?Math.max(k**_*B,.4):Math.min(k**w*B,m);a=Ve(D*100)}else a=Ve(V.pieChart.chartRadius);s.value.toFixed(1)!==a.value.toFixed(1)&&(Fi(r.uid,{pieChartRadius:a.percent}),tm&&clearTimeout(tm),tm=so(()=>{let m=r.chartContainer.height();if(r.chartContainer.set("height",m+.1),r.set("radius",a),l&&!Number.isNaN(l)&&l>0){let g=(l??V.pieChart.innerRadius)*a.value;r.set("innerRadius",Ve(g))}r.markDirty(),n.markDirty(),r.root.resize(),DH(r)})),n instanceof bi&&n.labels.template.setAll({maxWidth:kH({seriesConfig:o?.series[0],chart:r,newChartRadius:a})})}return a};r.events.onDebounced(gt.BoundsChanged,()=>i(),V.debounceTime),i()}}function DH(r){so(()=>{r.chartContainer.set("height",Ve(100)),r.root.resize()})}function kH(r){let{seriesConfig:e,chart:t,newChartRadius:i}=r,s=V.pieChart.dataLabels.maxWidth??100;if(e!=null){let{alignDataLabels:a,dataLabelsOffset:n=V.pieChart.dataLabelsOffset,optimizeDataLabelsOverlapping:o,dataLabels:A,dataLabelsInside:l}=e;if(A?.visible===!0&&a===!0&&l!==!0&&o===!0){let h=t.seriesContainer.width(),c=t.seriesContainer.height(),d=i.value*Math.min(h,c),u=5,f=Math.floor((h-d)/2)-u-n;s=Math.min(f,s-u);let m=V.pieChartDataLabel.minWidth;s<m&&(s=m)}}return s}function UH(r){let{root:e,chartConfig:t,xAxis:i,yAxis:s,seriesConfig:a,options:n,queryObject:o}=r,{id:A,name:l}=a,{xField:h,yField:c,xAxisField:d,yAxisField:u}=jA(t,a),f=Qa.new(e,{id:A,name:l,xAxis:i,yAxis:s,[d]:h,[u]:c,curveFactory:ay({isRadarLineSeries:!0,isLineSmoothed:a.lineSmoothed,isRotated:t.rotated}),layer:V.zIndexes.bulletMarkers});f.appear();let m=Ke.new({});return Ei(f.uid,{bulletTemplate:m}),Ri(m,n?.selectionTheme),f.bullets.push(g=>{let v=Re.new(g,{tooltip:zA({series:f,tooltipFormatter:n?.tooltipFormatter})},m);return sa({element:v,series:f,queryObject:o}),Fs.new(g,{sprite:v})}),ty(f),qA(f,t),f}function QH(r){let{radarLineSeries:e,data:t,seriesIndex:i,chartConfig:s,dataWasUpdated:a,seriesWereReinitialized:n,stackedTypeChanged:o,timeZoneChanged:A,loaderHandle:l}=r,h=s.series[i];if(t!==void 0&&h?.type===Q.RadarSeries&&(a||A||n||o)){let{xField:c,yField:d,xAxisField:u,yAxisField:f}=jA(s,h);e.setAll({[u]:c,[f]:d}),e.events.once(gt.DataValidated,()=>{l.hideLoader()}),e.data.setAll(t.dataItems)}}function EH(r){let{series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,colorMatch:a,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:A}=r,{chart:l}=e;if(l!==void 0){let h=oe(l.uid,"config"),c=oe(l.uid,"isRotated")??!1,d=ze(h?.series);X_({series:e,seriesConfig:t,seriesIndex:i,numberOfSeries:s,colorMatch:a,chartSubType:d,rendererType:n,seriesIndexMapper:o,seriesSymbolMapForEvent:A,isRotated:c})}}function RH(r){let{series:e,data:t,seriesWereReinitialized:i,chartConfig:s,options:a,seriesIndex:n,dataWasUpdated:o,timeZoneChanged:A,stackedTypeChanged:l,fieldList:h,queryObject:c,loaderHandle:d,utilsStrings:u}=r,f=s.series[n];e.set("id",f.id);let m=qe(e.uid,"bulletTemplate");m&&Ri(m,a?.selectionTheme),no(m,t?.dataItems?.length),Jm({series:e,chartConfig:s,isRotated:!1}),Wm({series:e,seriesConfig:f,fieldList:h,queryObject:c,seriesIndex:n,tooltipFormatter:a?.tooltipFormatter,utilsStrings:u}),un(r)&&fn({styleCallback:EH,callbackProps:r,series:e,seriesConfig:f}),ey({chartConfig:s,series:e,seriesIndex:n,queryObject:c}),QH({radarLineSeries:e,data:t,seriesIndex:n,chartConfig:s,dataWasUpdated:o,timeZoneChanged:A,stackedTypeChanged:l,seriesWereReinitialized:i,loaderHandle:d})}function ny(r){let{chart:e,chartConfig:t,options:i,utilsStrings:s,queryObject:a}=r,{rotated:n}=t,{root:o}=e,A=_e(t.series);e.series.clear();let l={root:o,chartConfig:t,options:i,chart:e,utilsStrings:s,queryObject:a},h=[];for(let c=0;c<t.series.length;c+=1){let d=t.series[c],{assignToSecondValueAxis:u,type:f}=d,m=e instanceof bt?cP({chart:e,chartType:A,rotated:n,assignToSecondValueAxis:u}):void 0,{xAxis:g,xAxisForHistogramOverlaySeries:v,yAxis:B}=m??{};switch(!0){case f===Q.HeatSeries:{Kr(a),g&&B&&h.push(NR({...l,queryObject:a,xAxis:g,yAxis:B}));break}case A===Q.BoxPlotSeries:{g&&B&&en(t)&&h.push(...oH({...l,xAxis:g,yAxis:B,seriesIndex:c,seriesConfig:t.series[c],chartConfig:t}));break}case f===Q.HistogramSeries:{g&&B&&h.push(...YM({...l,seriesConfig:d,xAxis:g,xAxisForOverlaySeries:v,yAxis:B}));break}case f===Q.PieSeries:{h.push(TH({...l,seriesConfig:d}));break}case(A===Q.ComboLineAndBarSeries||A===Q.BarSeries||A===Q.LineSeries):{g&&B&&(f===Q.BarSeries?h.push(UO({...l,seriesConfig:d,xAxis:g,yAxis:B})):f===Q.LineSeries&&h.push(fH({...l,seriesConfig:d,xAxis:g,yAxis:B})));break}case f===Q.RadarSeries:{g&&B&&h.push(UH({...l,seriesConfig:d,xAxis:g,yAxis:B}));break}case f===Q.ScatterSeries:{g&&B&&h.push(...IM({...l,seriesConfig:d,xAxis:g,yAxis:B}));break}}}h.forEach(c=>{c instanceof Ls&&c.setPrivate("doNotUpdateLegend",!0)}),e.series.pushAll(h)}function vu(r){let{chart:e,chartConfig:t,options:i,data:s,seriesIndexMapper:a,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:A,rotationChanged:l,colorMatchChanged:h,stackedTypeChanged:c,seriesStyleChanged:d,timeZoneChanged:u,sizePolicyChanged:f,pieSlicesSymbols:m,queryObject:g,loaderHandle:v,utilsStrings:B,errorStrings:w,groupOfSlicesUpdateNeeded:_,labelUpdateNeeded:L}=r,{chartRenderer:k}=t,{root:D}=e,{series:E}=t,O=_e(t.series),I=ze(t.series),M=e.series.values,S=Sn(t),P=t.series.length,Y=new Map,G=_r(g,i?.usePopupTemplateFieldsInfo),ie=ws(g),J=Cs(ie)?void 0:Rh(k,ie.renderer),ne=A||n||o||l||c,z={root:D,chartConfig:t,queryObject:g,options:i,colorMatch:S,dataWasUpdated:n,sortChanged:o,seriesWereReinitialized:A,fieldList:G,rendererType:J,dataLabelFormatter:i?.dataLabelFormatter,utilsStrings:B,chartSubType:I,loaderHandle:v,autoInverseDataLabelTextColor:i?.autoInverseDataLabelTextColor??V.options.autoInverseDataLabelTextColor},K={...z,numberOfSeries:P,rotationChanged:l,colorMatchChanged:h,stackedTypeChanged:c,seriesStyleChanged:d,seriesIndexMapper:a,seriesSymbolMapForEvent:Y,timeZoneChanged:u};for(let ge=0;ge<E.length;ge++){let he=E[ge],re=M[ge],Me=he.type;switch(!0){case O===Q.HeatSeries:{re instanceof _t&&e instanceof bt&&Ja(t)&&KR({...K,series:re,data:s,seriesConfig:t.series[ge],chartConfig:t});break}case O===Q.BoxPlotSeries:{re=M.find(Ne=>Ne.get("id")===he.id),e instanceof bt&&en(t)&&(re instanceof Ms||re instanceof nt)&&(Me===Q.BoxPlotSeries||Me===Q.LineSeries)&&AH({...K,chart:e,series:re,data:s,seriesIndex:ge,seriesConfig:he,chartConfig:t,showMean:Us(t),showOutliers:pa(t)});break}case Me===Q.HistogramSeries:{re instanceof _t&&e instanceof bt&&Kb(s)&&qM({...K,series:re,allChartSeries:M,data:s,seriesIndex:ge,seriesConfig:he,axes:t.axes});break}case Me===Q.PieSeries:{re instanceof bi&&e instanceof is&&Xh(s)&&IH({...z,series:re,seriesConfig:he,data:s,pieSlicesSymbols:m,groupOfSlicesUpdateNeeded:_,seriesStyleChanged:d,colorMatchChanged:h,labelUpdateNeeded:L});break}case(O===Q.ComboLineAndBarSeries||O===Q.BarSeries||O===Q.LineSeries):e instanceof bt&&Xh(s)&&(Me===Q.BarSeries&&re instanceof _t?MO({...K,series:re,data:s,seriesIndex:ge}):Me===Q.LineSeries&&re instanceof nt&&yH({...K,series:re,seriesIndex:ge,seriesConfig:he,data:s}));break;case Me===Q.ScatterSeries:{re=SM(e);let Ne=g_(e);re instanceof nt&&Ne instanceof nt&&Gb(s)&&QM({...K,series:re,seriesConfig:he,trendLineSeries:Ne,sizePolicyChanged:f,data:s});break}case Me===Q.RadarSeries:{re instanceof Qa&&e instanceof Rs&&Xh(s)&&RH({...K,series:re,data:s,seriesIndex:ge,seriesConfig:he,chartConfig:t});break}}ne&&O&&re&&MR({chartType:O,series:re,tooltipFormatter:i?.tooltipFormatter})}AP({chart:e,options:i,dataWasUpdated:n,data:s,chartConfig:t,queryObject:g,errorStrings:w})}function MH(r){dn(r)||r.dataItems.forEach(e=>{let t=e.bullets?.[0];if(t){let i=t.get("sprite"),s=Oa(i.uid,"selected")!==!0;ms({element:i,selected:s})}})}function PH(r){r.columns.each(e=>{let t=Oa(e.uid,"selected")!==!0;ms({element:e,selected:t})})}function OH(r){r.slices.each(e=>{let t=Oa(e.uid,"selected")!==!0;ms({element:e,selected:t})})}async function HH(r,e){if(Hm(r)){let t=oe(r.uid,"actionMode");t!==et.MonoSelection&&t!==et.None&&(r.series.each(i=>{switch(!0){case i instanceof _t:PH(i);break;case i instanceof nt:MH(i);break;case i instanceof bi:OH(i);break}}),await qm({chart:r,selectionSource:li.ProgrammaticSelection,queryObject:e}))}}function NH(r,e){let t=!1,i=r.series,s=e.series,a=_e(s),n=(c,d)=>c.filter(u=>u.type===d).flatMap(u=>{let f=[];switch(d){case Q.BarSeries:case Q.HistogramSeries:f.push(u.fillSymbol);break;case Q.LineSeries:case Q.RadarSeries:f.push(u.lineSymbol,u.markerSymbol);break;case Q.ScatterSeries:f.push(u.markerSymbol);break;case Q.PieSeries:let m=u;f.push(m.fillSymbol),m.slices?.forEach(g=>{f.push(g.fillSymbol)}),m.sliceGrouping&&f.push(m.sliceGrouping.fillSymbol);break}return(u.type===Q.BarSeries||u.type===Q.LineSeries||u.type===Q.RadarSeries)&&u.nullCategory?.symbol!==void 0&&f.push(u.nullCategory.symbol),f}),o,A;a===Q.ComboLineAndBarSeries?(o=n(i,Q.BarSeries).concat(n(i,Q.LineSeries)),A=n(s,Q.BarSeries).concat(n(s,Q.LineSeries))):(o=n(i,i[0].type),A=n(s,s[0].type));let l=!Ya(o,A),h=!1;switch(a){case Q.LineSeries:case Q.RadarSeries:case Q.ComboLineAndBarSeries:h=s.filter(c=>c.type===Q.LineSeries||c.type===Q.RadarSeries).some(c=>{let d=i.find(u=>u.id===c.id);return(c.showArea??V.lineSeries.showArea)!==(d?.showArea??V.lineSeries.showArea)||(c.lineSmoothed??V.lineSeries.lineSmoothed)!==(d?.lineSmoothed??V.lineSeries.lineSmoothed)||(c.markerVisible??V.lineSeries.markerVisible)!==(d?.markerVisible??V.lineSeries.markerVisible)||c.showArea&&!Ya(c.areaColor,d?.areaColor)});break}return t=l||h,t}function $H(r){let{chartSeries:e,oldSeries:t,newSeries:i}=r,s=ig(t,i);for(let a=0;a<s.length;a+=1){let n=s[a][0],o=s[a][1],A=e.length;n>=0&&n<A&&o>=0&&o<A&&e.swap(s[a][0],s[a][1])}}function VH(){jg(EE)}function XH(r){r.dispose()}async function KH(r,e){let{root:t}=r,{t9nLocale:i}=Bl(e??document.documentElement),s=LA(e??document.documentElement),a=await rR(i);t.locale=a,Fi(r.uid,{locale:i,formatLocale:s,rtl:ch(e??document.documentElement)==="rtl"})}function ym(r){let{chart:e,actionMode:t,cursorRange:i}=r;if(Hm(e)){let s=t??oe(e.uid,"actionMode")??V.actionMode;Fi(e.uid,{actionMode:s}),s===et.None&&tA({chart:e,selectionSource:li.ClearSelection}),wO({chart:e,actionMode:s,cursorRange:i})}}function GH(r){return Qs.rootElements.find(e=>e.dom===r)?.dispose(),Po.new(r)}function WH(r,e){r.container.children.clear();let t=_e(e?.series),i;switch(t){case Q.RadarSeries:case Q.GaugeSeries:i=Rs;break;case Q.PieSeries:i=is;break;default:i=bt;break}return r.container.children.push(i.new(r,{id:`${e?.id}`,layout:r.verticalLayout,paddingBottom:V.chartPadding,paddingTop:V.chartPadding,paddingRight:V.chartPadding,paddingLeft:V.chartPadding}))}function YH(r){let{chart:e,chartConfig:t,data:i,dataWasUpdated:s,sortChanged:a,slicesConfigChangedSinceLastUpdate:n,chartRendererChanged:o,colorMatchChanged:A,pieSlicesSymbols:l,options:h,queryObject:c,loaderHandle:d,utilsStrings:u,errorStrings:f,groupOfSlicesUpdateNeeded:m,seriesStyleChanged:g}=r;vu({chart:e,chartConfig:t,options:h,data:i,dataWasUpdated:s,sortChanged:a,queryObject:c,pieSlicesSymbols:l,loaderHandle:d,utilsStrings:u,errorStrings:f,groupOfSlicesUpdateNeeded:m,seriesStyleChanged:g,colorMatchChanged:A,labelUpdateNeeded:s||n||o||A}),ar({data:l,htmlContainer:e.root.dom,chartId:e.get("id"),colorMatchApplied:JA(e)})}async function zH(r){let{chart:e,chartConfig:t,data:i,anyGuideAboveChanged:s,dataWasUpdated:a,dataUpdateDetails:n,seriesIndexMapper:o,seriesFilteredOut:A,sortChanged:l,options:h,queryObject:c,rotationChanged:d,colorMatchChanged:u,stackedTypeChanged:f,seriesCompositionChanged:m,heatChartHideEmptyRowsAndColumnsChanged:g,seriesStyleChanged:v,timeZoneChanged:B,timeIntervalInfoWasReset:w,sizePolicyChanged:_,sizePolicyChangesRequireSeriesReinit:L,loaderHandle:k,utilsStrings:D,errorStrings:E}=r,{axisLabelsBehaviorChanged:O}=r,I=BP({chart:e,chartConfig:t,rotationChanged:d,axisLabelsBehaviorChanged:O,timeIntervalInfoWasReset:w}),M=I||hP({currentChartSeriesCount:e.series.length,chartConfig:t,dataUpdateDetails:n,seriesFilteredOut:A,sizePolicyChangesRequireSeriesReinit:L,seriesCompositionChanged:m});I&&(D_({chart:e,chartConfig:t,errorStrings:E}),O=[!0,!0]),M&&(e.series.clear(),ny({chart:e,chartConfig:t,options:h,utilsStrings:D,queryObject:c}),e.gridContainer?.toBack?.()),await k_({chart:e,chartConfig:t,queryObject:c,data:i,dataWasUpdated:a,axesInitializationNeeded:I,heatChartHideEmptyRowsAndColumnsChanged:g,sortChanged:l,timeIntervalInfo:i?.timeIntervalInfo??oe(e.uid,"timeIntervalInfo"),axisLabelsBehaviorChanged:O,anyGuideAboveChanged:s,xAxisLabelFormatter:h?.xAxisLabelFormatter,yAxisLabelFormatter:h?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:h?.secondaryYAxisLabelFormatter,guideTooltipFormatter:h?.guideTooltipFormatter,gaugeInnerLabelFormatter:h?.gaugeInnerLabelFormatter,utilsStrings:D,errorStrings:E}),vu({chart:e,chartConfig:t,options:h,data:i,dataWasUpdated:a,sortChanged:l,seriesIndexMapper:o,seriesWereReinitialized:M,rotationChanged:d,colorMatchChanged:u,stackedTypeChanged:f,seriesStyleChanged:v,timeZoneChanged:B,sizePolicyChanged:_,queryObject:c,loaderHandle:k,utilsStrings:D,errorStrings:E}),_e(t.series)===Q.HeatSeries&&Jw(e),H_({chart:e,scrollbarXConfig:t.axes?.[0]?.scrollbar,scrollbarYConfig:t.axes?.[1]?.scrollbar})}async function jH(r){let{chart:e,legend:t,loaderHandle:i,updateProps:s}=r,{newChartConfig:a,updateOptions:n,dataWasUpdated:o,dataUpdateDetails:A,hasSeriesFilteredOut:l,pieSlicesSymbols:h,colorMatchApplied:c,rendererFieldNames:d,configWithAllSeries:u,t9nStrings:f,queryObject:m,dataInfo:g}=s,{data:v}=g,{utilsStrings:B,errorStrings:w}=f,{root:_}=e,{usePopupTemplateFieldsInfo:L}=n??{};if(a===void 0)throw new Error;let k=a,D=oe(e.uid,"config");if(e.isDisposed()||!qf(D,k))throw new fa(CA.ChartDisposed);D??=k,Fi(e.uid,{queryObject:m});let E=ze(k.series),O=es(k);Fi(e.uid,{config:Hi(k),options:n,isNonAggregatedChart:!Ql(E),isRotated:O,filterBySelection:n?.filterBySelection,colorMatchApplied:c,rendererFieldNames:d});let I=_r(m,L),M=Sb(D,k),S=eg(D,k),P=pb(D,k),Y=mb(D,k),G=NH(D,k),ie=JSON.stringify(Il(D.series))!==JSON.stringify(Il(k.series)),J=tg(D,k),ne=Ib(D,k),z=Jf(D,k),K=Db(D,k),ge=kb(D,k),he=Rl({oldConfig:l?u:D,newConfig:k,dataWasUpdated:o}),re=!1,Me=!1,Ne=!1,Ee=!1;Ja(D)&&Ja(a)&&(re=vb(D,a),Me=xb(D,a),Ne=yb(D,a)||bb(D,a)||re,Ee=gb(D,a));let Ge=_f({oldConfig:D,newConfig:k,rotationChanged:S}),yt=D.series,Xe=k.series;if(o){let{queryConfig:ue,count:le}=g??{};Fi(e.uid,{fieldList:I,queryConfig:ue,elementCount:le,timeIntervalInfo:v!==void 0&&"timeIntervalInfo"in v?v.timeIntervalInfo:void 0}),Fn(_.dom)}e instanceof zi&&$H({chartSeries:e.series,oldSeries:yt,newSeries:Xe});let Mi=e instanceof is?Qh(yt,Xe):!1,oi=Bb({oldConfig:D,newConfig:k}),U=new Map;switch(k.series.forEach((ue,le)=>{U.set(ue.id,le)}),U_(e,k.background),M_(e,{title:k.title,subtitle:k.subtitle}),P_(e,k.footer),R_({root:_,chart:e,cursorCrosshair:k.cursorCrosshair,config:k,queryObject:m}),_e(k.series)){case Q.PieSeries:{e instanceof is&&(Kr(m),YH({chart:e,chartConfig:k,options:n,data:v,dataWasUpdated:o,slicesConfigChangedSinceLastUpdate:oi,pieSlicesSymbols:h,chartRendererChanged:J,sortChanged:he,queryObject:m,loaderHandle:i,colorMatchChanged:P,utilsStrings:B,errorStrings:w,groupOfSlicesUpdateNeeded:Mi,seriesStyleChanged:G}));break}case Q.HeatSeries:case Q.BarSeries:case Q.LineSeries:case Q.ComboLineAndBarSeries:case Q.ScatterSeries:case Q.RadarSeries:case Q.GaugeSeries:case Q.HistogramSeries:case Q.BoxPlotSeries:e instanceof bt&&await zH({chart:e,chartConfig:k,options:n,data:v,dataWasUpdated:o,seriesIndexMapper:U,dataUpdateDetails:A,seriesFilteredOut:l,heatChartHideEmptyRowsAndColumnsChanged:Ee,sortChanged:he,axisLabelsBehaviorChanged:Ge,anyGuideAboveChanged:M,rotationChanged:S,colorMatchChanged:P,stackedTypeChanged:Y,seriesStyleChanged:G,seriesCompositionChanged:ie,timeZoneChanged:ne,timeIntervalInfoWasReset:z,sizePolicyChanged:K,sizePolicyChangesRequireSeriesReinit:ge,queryObject:m,loaderHandle:i,utilsStrings:B,errorStrings:w});break}e instanceof zi&&f_({chart:e,chartConfig:k,legend:t,hideEmptySeries:n?.hideEmptySeries,seriesConfig:k.series,heatChartLegendUpdatedNeeded:Ne,heatRulesTypeChanged:re,heatLegendPositionChanged:Me,queryObject:m}),ym({chart:e,actionMode:n?.actionMode,cursorRange:n?.cursorRange})}function ZH(r){let{chart:e,data:t,chartConfig:i,pieSlicesSymbols:s,options:a,queryObject:n,loaderHandle:o,utilsStrings:A,errorStrings:l}=r;ny({chart:e,chartConfig:i,options:a,utilsStrings:A,queryObject:n}),vu({chart:e,chartConfig:i,options:a,data:t,dataWasUpdated:!0,pieSlicesSymbols:s,queryObject:n,loaderHandle:o,utilsStrings:A,errorStrings:l}),ar({data:s,htmlContainer:e.root.dom,chartId:e.get("id"),colorMatchApplied:JA(e)})}async function qH(r){let{chart:e,data:t,chartConfig:i,options:s,queryObject:a,loaderHandle:n,seriesIndexMapper:o,utilsStrings:A,errorStrings:l}=r;O_(e),H_({chart:e,scrollbarXConfig:i.axes?.[0]?.scrollbar,scrollbarYConfig:i.axes?.[1]?.scrollbar}),D_({chart:e,chartConfig:i,errorStrings:l}),await k_({chart:e,chartConfig:i,queryObject:a,axisLabelsBehaviorChanged:[!0,!0],data:t,dataWasUpdated:!0,timeIntervalInfo:t?.timeIntervalInfo,xAxisLabelFormatter:s?.xAxisLabelFormatter,yAxisLabelFormatter:s?.yAxisLabelFormatter,secondaryYAxisLabelFormatter:s?.secondaryYAxisLabelFormatter,guideTooltipFormatter:s?.guideTooltipFormatter,gaugeInnerLabelFormatter:s?.gaugeInnerLabelFormatter,utilsStrings:A,errorStrings:l}),ny({chart:e,chartConfig:i,options:s,utilsStrings:A,queryObject:a}),e.gridContainer?.toBack?.(),vu({chart:e,chartConfig:i,seriesIndexMapper:o,options:s,data:t,dataWasUpdated:!0,timeZoneChanged:!0,queryObject:a,loaderHandle:n,utilsStrings:A,errorStrings:l}),_e(i.series)===Q.HeatSeries&&Jw(e)}async function JH(r){let{chartContainer:e,chartConfig:t,options:i,colorMatchApplied:s,rendererFieldNames:a,pieSlicesSymbols:n,globalOptions:o,t9nStrings:A,queryObject:l,dataInfo:h,loaderHandle:c}=r,{errorStrings:d,utilsStrings:u}=A,{data:f,queryConfig:m,count:g}=h??{};VH();let v=t,B=GH(e);$E(B,o?.enableResponsiveFeatures);let w=WH(B,v);await KH(w,e);let _;if(VE(B,o?.useAnimatedCharts),!w.isDisposed()){let k=ze(v.series),D=es(v);Fi(w.uid,{options:i,filterBySelection:i?.filterBySelection,config:v,queryObject:l,isNonAggregatedChart:!Ql(k),isRotated:D,colorMatchApplied:s,rendererFieldNames:a}),E_({root:B,chart:w,config:v,queryObject:l}),R_({root:B,chart:w,cursorCrosshair:v.cursorCrosshair,config:v,queryObject:l});let{title:E,subtitle:O,footer:I}=v;FO(B,w),M_(w,{title:E,subtitle:O}),SO(w),P_(w,I),vO(B,w),U_(w,v.background);let M=_r(l,i?.usePopupTemplateFieldsInfo);Fi(w.uid,{fieldList:M}),Fi(w.uid,{options:i,queryConfig:m,elementCount:g,timeIntervalInfo:f!==void 0&&"timeIntervalInfo"in f?f.timeIntervalInfo:void 0});let S=new Map;v.series.forEach((P,Y)=>{S.set(P.id,Y)}),Fi(w.uid,{queryConfig:m,elementCount:g}),w instanceof bt?await qH({chart:w,data:f,chartConfig:v,options:i,queryObject:l,loaderHandle:c,utilsStrings:u,errorStrings:d}):w instanceof is&&f&&"dataItems"in f&&(Kr(l),ZH({chart:w,data:f,chartConfig:v,pieSlicesSymbols:n,options:i,queryObject:l,loaderHandle:c,utilsStrings:u,errorStrings:d})),w instanceof zi&&(_=YB(w,v),f_({chart:w,chartConfig:v,legend:_,hideEmptySeries:i?.hideEmptySeries,seriesConfig:v.series,queryObject:l})),ym({chart:w,actionMode:i?.actionMode,cursorRange:i?.cursorRange}),RM(w),Fn(B.dom)}function L(){RP(w)}return{update:async k=>{_===void 0&&(_=YB(w,k.newChartConfig)),await jH({chart:w,legend:_,loaderHandle:c,updateProps:k})},dispose:()=>XH(B),resetZoom:L,clearSelection:()=>tA({chart:w}),switchSelection:async()=>await HH(w,l),exportImage:async k=>await lR({root:B,exportOptions:k}),setActionMode:(k,D)=>ym({chart:w,actionMode:k,cursorRange:D}),loaderHandle:c}}function hC(r){let e="";for(let t=0;t<r.length;t+=1){let i=r[t];e+=`<li>${i.message}</li>`}return`<ol>${e}</ol>`}function eN(r){let{chartConfig:e,createMessage:t,status:i,errorStrings:s}=r,{schemaErrors:a,customErrors:n,warnings:o}=i,A="",l="";return e===void 0?(l=t===void 0?s.modalHeaders.newChart:"",A=t??s.errors.newChartRequest):a.length>0?(l=s.modalHeaders.error,A=s.errors.simpleError):n.length>0?(l=s.modalHeaders.error,A=hC(n)):o.length>0&&(l=s.modalHeaders.warning,A=`<p>${s.errors.warningRequest}</p>${hC(o)}`),{title:l,message:A}}function tN(r,e){let t;switch(r){case Q.PieSeries:t=e?.placeholders.pieChartCreateMsg;break;case Q.BarSeries:t=e?.placeholders.barChartCreateMsg;break;case Q.BoxPlotSeries:t=e?.placeholders.boxPlotCreateMsg;break;case Q.LineSeries:t=e?.placeholders.lineChartCreateMsg;break;case Q.HistogramSeries:t=e?.placeholders.histogramCreateMsg;break;case Q.ScatterSeries:t=e?.placeholders.scatterplotCreateMsg;break;case Q.HeatSeries:t=e?.placeholders.calendarHeatChartCreateMsg;break;case Q.ComboLineAndBarSeries:t=e?.placeholders.comboBarLineChartCreateMsg;break;case Q.RadarSeries:t=e?.placeholders.radarChartCreateMsg;break;case Q.GaugeSeries:t=e?.placeholders.gaugeCreateMsg;break}return t}function Xd(r){let e;if(r){let t=_w(r);t&&(e=[t.r,t.g,t.b,255])}return e}function xm(r){return ox(r)==="dark"}function W_(r){let e=window.getComputedStyle(r);return{backgroundColor:Xd(e.getPropertyValue("--calcite-color-foreground-1")),textColor:Xd(e.getPropertyValue("--calcite-color-text-1")),lineColor:Xd(e.getPropertyValue("--calcite-color-border-1")),secondLineColor:Xd(e.getPropertyValue("--calcite-color-text-3"))}}function iN(r,e){r?.axes?.forEach(t=>{t?.title?.content&&e.textColor&&(t.title.content.color=e.textColor),t?.labels?.content&&e.textColor&&(t.labels.content.color=e.textColor),t?.grid&&e.lineColor&&(t.grid.color=e.lineColor),t?.lineSymbol&&e.lineColor&&(t.lineSymbol.color=e.lineColor),t?.guides?.forEach(i=>{i.label&&e.textColor&&(i.label.color=e.textColor),e.lineColor&&(i.style?.type===je.SLS?i.style.color=e.lineColor:i.style?.type===je.SFS&&i.style?.outline&&(i.style.outline.color=e.lineColor))})})}function sN(r,e){r&&e.backgroundColor&&(r.background=e.backgroundColor)}function rN(r,e){r?.title?.content&&e.textColor&&(r.title.content.color=e.textColor),r?.subtitle?.content&&e.textColor&&(r.subtitle.content.color=e.textColor),r?.footer?.content&&e.textColor&&(r.footer.content.color=e.textColor)}function dc(r,e){e?.created&&e?.visible&&(e.symbol={type:je.SLS,...e.symbol,color:r})}function dC(r){let{configElementWithFillSymbol:e,markerColor:t,lineColor:i}=r;e.markerSymbol={type:je.SMS,...e.markerSymbol,color:t},e.markerSymbol.outline={type:je.SLS,...e.markerSymbol.outline,color:i}}function Kd(r){let{configElementWithFillSymbol:e,fillColor:t,lineColor:i}=r;e.fillSymbol={type:je.SFS,...e.fillSymbol,color:t},i&&(e.fillSymbol.outline={type:je.SLS,...e.fillSymbol.outline,color:i})}function Y_(r,e){r&&(r.colorMatch=!1,r.series.forEach((t,i)=>{t.dataLabels?.content&&e.textColor&&(t.dataLabels.content.color=e.textColor);let s=_l[i%_l.length];switch(t.type){case Q.BarSeries:Kd({configElementWithFillSymbol:t,fillColor:s,lineColor:e.lineColor});break;case Q.HistogramSeries:Kd({configElementWithFillSymbol:t,fillColor:s,lineColor:e.lineColor}),dc(xA[0],t.overlays?.standardDeviation),dc(xA[1],t.overlays?.mean),dc(xA[2],t.overlays?.median),dc(xA[3],t.overlays?.comparisonDistribution);break;case Q.LineSeries:case Q.RadarSeries:t.lineSymbol={type:je.SLS,...t.lineSymbol,color:s},dC({configElementWithFillSymbol:t,markerColor:s,lineColor:e.lineColor}),t.areaColor=[s[0],s[1],s[2],255*Z.lineSeries.areaOpacity];break;case Q.BoxPlotSeries:Kd({configElementWithFillSymbol:t,fillColor:s,lineColor:e.lineColor});break;case Q.PieSeries:t.slices?.forEach((a,n)=>{Kd({configElementWithFillSymbol:a,fillColor:_l[n%_l.length],lineColor:e.lineColor})});break;case Q.ScatterSeries:dC({configElementWithFillSymbol:t,markerColor:s,lineColor:e.lineColor}),dc(xA[1],t.overlays?.trendLine);break;case Q.HeatSeries:case Q.GaugeSeries:}}))}function aN(r,e){if(r?.series[0].type===Q.PieSeries){let t=r.series[0];t.ticks?.lineSymbol&&e.secondLineColor&&(t.ticks.lineSymbol.color=e.secondLineColor)}}function nN(r,e){r?.legend&&(r.legend.title?.content&&e.textColor&&(r.legend.title.content.color=e.textColor),r.legend.body&&e.textColor&&(r.legend.body.color=e.textColor))}function oN(r,e){r?.series[0].type===Q.GaugeSeries&&r.axes?.forEach(t=>{t.innerLabel?.content&&e.textColor&&(t.innerLabel.content.color=e.textColor),t.needle?.symbol&&e.textColor&&(t.needle.symbol.color=e.textColor)})}function AN(r,e){r?.series[0].type===Q.HeatSeries&&r.series.forEach(t=>{t.gridLine&&e.textColor&&(t.gridLine.color=e.textColor)})}function lN(r){let{chartElement:e,options:t,calciteThemeApplied:i}=r,s=t;return i==="dark"&&(s.selectionTheme={...We.selectionTheme,selectedElementsTheme:{...We.selectionTheme.selectedElementsTheme,elementOutlineColor:[55,255,255,255]}},s.chartWillRender=async a=>{let{chartConfig:n,slices:o}=a,A=Hi(n);if(e.chartWillRender&&(A=await e.chartWillRender(a)),A.series[0].type===Q.PieSeries&&!A.series[0].slices){let l=W_(e);A.series[0].slices=o,Y_(A,l)}return A}),s}function cN(r,e){let t=Hi(e);if(t&&xm(r)){let i=W_(r);sN(t,i),rN(t,i),iN(t,i),Y_(t,i),nN(t,i),oN(t,i),aN(t,i),AN(t,i)}return t}function hN(){return!0}function uC(r){let{layer:e}=r,t,i=ws(e),s=Dh(i);return s!==void 0&&"definitionExpression"in s&&r.layerFilterChangePolicy===Gh.Refresh&&(t=Ps.watch(()=>s.definitionExpression,()=>{r.refresh({updateData:!0,resetAxesBounds:!0})})),t}function fC(r){let{layer:e,model:t}=r,i=xa(t)?t.config:t,s;if(e!==void 0&&r.layerRendererChangePolicy===Wh.Refresh){let a=ws(e);s=Ps.watch(()=>a.renderer,()=>{if(Sn(i)){let n=hN();r.refresh({updateData:n})}})}return s}async function dN(r){let{view:e,layer:t,model:i,filterByExtent:s}=r,a=xa(i)?i.config:i,n;if(e!==void 0&&a!==void 0){let o=await zf({chartConfig:a,view:e,layer:t,filterByExtent:s}),A;if(wA(o)?A=o:Cs(o)&&(A=await e.whenLayerView(o)),A){await Ps.whenOnce(()=>!A.updating);let l=async()=>{r.filterByExtent&&e.stationary&&(A.updating&&await Ps.whenOnce(()=>!A.updating),await r.refresh({updateData:!0,resetAxesBounds:!0}))};n=[],wA(A)?(n.push(Ps.when(()=>e.stationary,l)),n.push(Ps.when(()=>!A.dataUpdating,l))):n.push(Ps.when(()=>e.stationary,l)),await l()}}return n}function uN(r){let{view:e,model:t}=r,i=xa(t)?t.config:t,s=_e(i?.series),a;return e!==void 0&&r.viewTimeExtentChangePolicy===Pl.Refresh&&s!==Q.HistogramSeries&&(a=Ps.watch(()=>e.timeExtent,()=>{r.refresh({updateData:!0})})),a}function fN(r){let{view:e}=r,t;return e&&"timeZone"in e&&(t=Ps.watch(()=>e.timeZone,()=>{let{model:i}=r,s=xa(i)?i.config:i;Ja(s)&&r.refresh({updateData:!0})})),t}function gC(r){let{layer:e}=r,t,i=ws(e),s=Dh(i);return s!==void 0&&"fields"in s&&r.layerFieldsChangePolicy===Yh.Refresh&&(t=Ps.watch(()=>[s.fields],()=>{r.refresh({updateData:!0})})),t}function z_(r,e){return Ps.watch(()=>e.selections,t=>{(r.syncViewSelection||r.syncSelectionsBetweenChartAndLayerViewPolicy===Ol.Enabled)&&(Array.isArray(t)&&t?.length===0?r.clearSelection():r.applySelectionFromSelectionManager())})}function gN(r){let{view:e}=r,t;return e?.selectionManager&&(t=z_(r,e.selectionManager)),t}function pN(r){let{selectionManager:e}=r,t;return e&&(t=z_(r,e)),t}var mN=({message:r,heading:e,options:t})=>fA`<calcite-alert .icon=${t?.icon??"exclamationMarkTriangle"} .open=${t?.active===!0} .autoClose=${t?.autoClose??!1} .autoCloseDuration=${t?.duration??"medium"} scale=m .kind=${t?.kind??"danger"} .ariaHidden=${t?.active!==!0} dir=ltr role=alertdialog label="arcgis charts notify panel">${e!==void 0?fA`<div slot=title>${e}</div>`:null}${r!==void 0?fA`<div slot=message>${r}</div>`:null}</calcite-alert>`,yN=q0`.hide{visibility:hidden}.am5-html-container{z-index:101!important}.am5-layer-1000{z-index:1000!important}.am5-layer-30{z-index:100!important}.show{display:block}.notifyPanel{flex:0 1 auto}.disable-interactions{pointer-events:none}.dim-text{color:var(--arcgis-charts-dim-text)}.chart{flex-grow:1;overflow-y:hidden}.chart>div{justify-content:center;align-items:center}:host{width:var(--chart-width, var(--arcgis-charts-default-width));height:var(--chart-height, var(--arcgis-charts-default-height));display:flex;flex-direction:row;position:relative;overflow:hidden}.chart-wrapper{position:relative;width:100%}.chart-container{height:100%;overflow:hidden}`,bm=class extends ix{constructor(){super(),this.loaderHandle={showLoader:()=>{this.showLoader=this.hideLoaderAnimation!==!0},hideLoader:()=>{this.showLoader=!1}},this._messages=ug(),this.chartRef=tx(),this.guid=hv(),this.commonStrings=ug({name:"common",blocking:!0}),this.dataUpdateNeededProps=["forceDataUpdate","runtimeDataFilters","returnFeaturesExtent","chartLimits","updateSplitBySeries"],this.updatedProps=new Map,this.updateQueue=VI.promise(async()=>await this.renderChart(),Ux),this.noRenderingUpdateProps=["_messages","showLoader","infoModalMessage","notifyMessage"],this.handleExternalSelection=e=>{if(!Cs(this.layer)){let t=e,{selectionData:i,model:s}=t.detail,a=this.layer&&s?.layer?.id===Lo(this.layer).id;this.syncSelection&&a&&e.target!==this.el&&!Ya(i.selectionOIDs,this.selectionData?.selectionOIDs)&&(i.selectionOIDs?(this.selectionData={selectionOIDs:i.selectionOIDs,selectionSource:li.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model})):this.clearSelection())}},this.configPanelNumberChange=e=>{let t=e,{panelNumber:i,modelList:s}=t.detail;this.actionBarElement&&this.enableConfiguration&&this.ourModelExistsIn(s)&&(this.actionBarElement.editChartToggle=i===1?yg.Active:yg.Inactive)},this.configDataChangeError=e=>{let t=e,{error:i,model:s}=t.detail;this.enableConfiguration&&s?.isSameChartAs(this._model)&&this.notify(i.message)},this.modelConfigChange=e=>{let t=e;this.lastModelSetterCalled=t.detail.setterName;let i=this._model?.config;i?.iLayer&&!Ya(this.config?.iLayer,i?.iLayer)&&(this.layer=new Yp(i.iLayer)),JSON.stringify(this.config)!==JSON.stringify(i)&&(this.config=Hi(i))},this.modelDataChange=()=>{this.setTimeBinningInfoWhenNotProvided&&qb(this._model)&&this._model?.resetTimeInterval()},this.actionBarSlotRef=e=>{this.actionBarElement=e&&"assignedElements"in e?e.assignedElements().find(t=>t.tagName.toLowerCase()==="arcgis-charts-action-bar"):void 0},this.checkForInvalidContainer=()=>{this.chartRef.value||xh("divNode",this.commonStrings?.errorStrings)},this._loadQueryObject=new Hl(this,{args:()=>[this.config,this.layer,this.view,this.filterByExtent],task:async([e,t,i,s],{signal:a})=>{let n=await zf({chartConfig:e,layer:t,view:i,filterByExtent:s,abortSignal:a});return await ws(n)?.load({signal:a}),n}}),this.showLoader=!1,this.enableBetaFeatures=!1,this.enableConfiguration=!1,this.enableAutoTheming=!1,this.syncSelection=!1,this.allowUsingObjectIdStat=!1,this.nullAsValid=!1,this.errorPolicy=Kh.Throw,this.layerFilterChangePolicy=Gh.Refresh,this.viewTimeExtentChangePolicy=Pl.Ignore,this.layerRendererChangePolicy=Wh.Refresh,this.layerFieldsChangePolicy=Yh.Refresh,this.syncSelectionsBetweenChartAndLayerViewPolicy=Ol.Disabled,this.syncViewSelection=!1,this.autoDestroyDisabled=!1,this.arcgisAxesMinMaxChange=As(),this.arcgisBadDataWarningRaise=As(),this.arcgisChartNotFoundWarning=As(),this.arcgisConfigChange=As(),this.arcgisDataFetchComplete=As(),this.arcgisDataProcessComplete=As(),this.arcgisDataProcessError=As(),this.arcgisInvalidConfigWarningRaise=As(),this.arcgisLegendItemVisibilityChange=As(),this.arcgisNoRenderPropChange=As(),this.arcgisRenderingComplete=As(),this.arcgisRuntimeError=As(),this.arcgisSelectionComplete=As(),this.arcgisSeriesColorChange=As(),this.arcgisSeriesOrder=As(),this.arcgisUpdateComplete=As(),this.listen("arcgisChartsJSLegendItemVisibilityChange",this.handleLegendItemVisibilityChanged),this.listen("arcgisChartsJSInvalidConfigWarningRaise",this.handleInvalidConfigWarningRaise),this.listen("arcgisChartsJSSeriesColorChange",this.handleSeriesColorsChange),this.listen("arcgisChartsJSSelectionComplete",this.handleSelection),this.listen("arcgisChartsJSTooManySelectedElements",this.handleTooManySelectedElements),this.listen("calciteAlertClose",this.handleAlertClosed),this.listen("arcgisChartsJSAxesMinMaxChange",this.handleAxesMinMaxChange),this.listen("arcgisChartsJSSeriesOrder",this.handleSeriesOrder),this.listen("arcgisChartsJSRenderingComplete",this.handleRenderingComplete),this.addConfigListeners(),this.listenOn(document,"arcgisSelectionComplete",this.handleExternalSelection)}static{this.properties={infoModalMessage:16,notifyMessage:16,showLoader:16,config:16,enableBetaFeatures:5,model:0,enableConfiguration:5,enableAutoTheming:5,syncSelection:5,rotation:[5,{hasChanged:()=>!1}],actionMode:1,cursorRange:1,legendPosition:[1,{hasChanged:()=>!1}],legendVisibility:[5,{hasChanged:()=>!1}],allowUsingObjectIdStat:5,nullAsValid:5,showUIMessages:5,hideEmptySeries:5,autoInverseDataLabelTextColor:5,replaceNoValueCategoryWithZero:5,ignoreSmoothRenderingLimit:5,chartWillRender:0,legendValueLabelFormatter:0,timeZone:1,view:[0,{hasChanged:()=>!1}],layer:0,layerItemId:1,chartIndex:9,selectionData:0,returnSelectionOIDs:5,returnSelectionIndexes:5,returnFeaturesExtent:5,filterBySelection:5,filterByExtent:[5,{hasChanged:()=>!1}],disableInteractions:[5,{hasChanged:()=>!1}],queueChartCreation:5,useAnimatedCharts:5,hideLicenseWatermark:5,enableResponsiveFeatures:5,autoDisposeChart:5,featureIndex:[9,{hasChanged:()=>!1}],placeholder:1,selectionTheme:0,setTimeBinningInfoWhenNotProvided:5,chartLimits:0,aria:[0,{hasChanged:()=>!1}],tooltipFormatter:0,dataLabelFormatter:0,guideTooltipFormatter:0,xAxisLabelFormatter:0,yAxisLabelFormatter:0,secondaryYAxisLabelFormatter:0,gaugeInnerLabelFormatter:0,errorPolicy:1,disableTogglingLegendItems:5,hideLoaderAnimation:5,loaderColors:0,runtimeDataFilters:0,usePopupTemplateFieldsInfo:5,layerFilterChangePolicy:1,viewTimeExtentChangePolicy:1,layerRendererChangePolicy:1,layerFieldsChangePolicy:1,syncSelectionsBetweenChartAndLayerViewPolicy:1,syncViewSelection:5,ignoreViewExtent:5,updateSplitBySeries:0,messageOverrides:0,autoDestroyDisabled:5,selectionManager:0}}static{this.styles=yN}get config(){return this._config}set config(e){let t=this._config;this._config=e,t&&e&&ub(t,e)&&this.updatedProps.set("forceDataUpdate",{oldValue:!1,newValue:!0}),this.arcgisConfigChange.emit({newConfig:e,oldConfig:t,functionCalled:this.lastModelSetterCalled}),this.lastModelSetterCalled=void 0,this.actionBarElement&&!Io(e)&&(this.actionBarElement.forceDisableActions=!1)}get rotation(){return this._rotation}set rotation(e){this.rotationChange(e),this.handleNoRenderPropChange("rotation",e),this._rotation=e}get legendPosition(){return this._legendPosition}set legendPosition(e){this.legendPositionChange(e),this.handleNoRenderPropChange("legendPosition",e),this._legendPosition=e}get legendVisibility(){return this._legendVisibility}set legendVisibility(e){this.legendVisibilityChange(e),this.handleNoRenderPropChange("legendVisibility",e),this._legendVisibility=e}get view(){return this._view}set view(e){let t=this._view;this._view=e,this.viewChange(e,t),this.handleNoRenderPropChange("view",e)}get filterByExtent(){return this._filterByExtent}set filterByExtent(e){this._filterByExtent=e,this.filterByExtentChanged(e),this.handleNoRenderPropChange("filterByExtent",e)}get disableInteractions(){return this._disableInteractions??!1}set disableInteractions(e){this.disableInteractionsChange(e),this.handleNoRenderPropChange("disableInteractions",e),this._disableInteractions=e}get featureIndex(){return this._featureIndex}set featureIndex(e){let t=this.featureIndex;this.featureIndexChange(e,t),this.handleNoRenderPropChange("featureIndex",e),this._featureIndex=e}get aria(){return this._aria??{}}set aria(e){this._aria=e,this.chartRef.value&&(this.chartRef.value.ariaLabel=e.label??this.chartRef.value.ariaLabel,this.chartRef.value.ariaDescription=e.description??this.chartRef.value.ariaDescription,this.chartRef.value.ariaLabelledByElements=e.labelledByElements??this.chartRef.value.ariaLabelledByElements,this.chartRef.value.ariaDescribedByElements=e.describedByElements??this.chartRef.value.ariaDescribedByElements),this.handleNoRenderPropChange("aria",e)}async clearSelection(){this.chart!==void 0&&(this.unsanitizedSelectionDataItems=void 0,this.chart.clearSelection(),this.filterBySelection===!0&&await this.refresh())}async destroy(){this.chart?.dispose()}async exportAsCSV(e){let t=Gx(this.config)||Cs(this.layer),i,s;if(this.sanitizedChartData&&!t){let a=await this._loadQueryObject.taskComplete,n=a?_r(a,this.usePopupTemplateFieldsInfo):void 0,o=xa(this.model)?this.model.titleText:this.config?.title?.content?.text??this.commonStrings.utilsStrings.chartType.chart;if(Object.values(this.sanitizedChartData).filter(A=>Array.isArray(A)&&A.length>0).length>1){let A=new mC.default;Object.entries(this.sanitizedChartData).forEach(([h,c])=>{if(Array.isArray(c)&&c.length>0){let d=vg({rawData:c,config:this._model?.config??this.config,layer:a,fieldList:n}),u=bg(d,e),f=`${o}-${h}.csv`;A.file(f,u)}});let l=await A.generateAsync({type:"blob"});i=URL.createObjectURL(l),s=`${o}.zip`}else{let A;if("bins"in this.sanitizedChartData?A=this.sanitizedChartData.bins:"dataItems"in this.sanitizedChartData&&(A=this.sanitizedChartData.dataItems),A){let l=vg({rawData:A,config:this._model?.config??this.config,layer:a,fieldList:n}),h=bg(l,e);i=URL.createObjectURL(new Blob([h],{type:"text/csv;charset=utf-8;"})),s=`${o}.csv`}}i!==void 0&&s!==void 0&&xg(i,s)}}async exportAsImage(e=Qx.PNG){let t=this.chartRef.value;t?(await(0,pC.default)(t,{useCORS:!0,backgroundColor:null})).toBlob(i=>{if(i){let s=URL.createObjectURL(i),a=`${this.model.titleText??this.commonStrings.utilsStrings.chartType.chart}.${e}`;xg(s,a)}},e):this.notify(this.commonStrings?.errorStrings.errors.exportImageChartNotReady)}async loadModel(){return this._model?await this._model.asyncUpdatesPromise:await new Promise(e=>{this.resolveModelSetup=e})}async notify(e,t){this.infoModalMessage=e,this.infoModalHeading=t}async refresh(e){let{updateData:t=!0,resetAxesBounds:i=!1}=e??{};this.updatedProps.set(t?"forceDataUpdate":"forceSimpleUpdate",{oldValue:!1,newValue:!0}),i&&(delete this.config?.axes?.[0]?.minimum,delete this.config?.axes?.[0]?.maximum,delete this.config?.axes?.[1]?.minimum,delete this.config?.axes?.[1]?.maximum),this.requestUpdate("refresh")}async resetZoom(){this.chart!==void 0&&this.chart.resetZoom()}async switchSelection(){let e=await this._loadQueryObject.taskComplete;this.chart!==void 0&&this.filterBySelection!==!0&&e&&await this.chart.switchSelection(e)}load(){if(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===Ol.Enabled){let e=this.getSelectionFromSelectionManager();e&&(this.selectionData={selectionOIDs:e,selectionSource:li.ProgrammaticSelection})}}willUpdate(e){e.has("model")&&this.modelChange(),e.has("selectionData")&&this.selectionDataChange(),e.has("layer")&&this.layerChange(),e.has("layerItemId")&&this.layerItemIdChange(),(e.has("chartIndex")||e.has("layerItemId"))&&this.createModelFromLayer(),e.has("timeZone")&&this.timeZoneChange(),e.has("filterBySelection")&&this.filterBySelectionChanged(),e.has("layerFilterChangePolicy")&&this.layerFilterChangePolicyCallBack(this.layerFilterChangePolicy),e.has("viewTimeExtentChangePolicy")&&this.viewTimeExtentChangePolicyCallback(this.viewTimeExtentChangePolicy),e.has("layerRendererChangePolicy")&&this.layerRendererChangePolicyCallBack(this.layerRendererChangePolicy),e.has("layerFieldsChangePolicy")&&this.layerFieldsChangePolicyCallBack(this.layerFieldsChangePolicy),e.has("selectionManager")&&(this.setSelectionManagerChangeWatchHandler(),this.applySelectionFromSelectionManager()),Array.from(e.keys(),t=>{let i=t.toString(),s=i==="model"||i==="config"?this.updatedProps.get(i)?.oldValue??e.get(i):e.get(i);this.updatedProps.set(i,{oldValue:s,newValue:this[i]})})}updated(e){Array.from(e.keys()).filter(t=>!this.noRenderingUpdateProps.includes(t)).length>0&&this.updatedAsync(),this.actionBarElement!==void 0&&lv({actionBar:this.actionBarElement,chartComponent:this.el,config:this.config,isInfoModalDisplayed:this.infoModalMessage!==void 0})}disconnectedCallback(){super.disconnectedCallback(),this.removeLayerWatchHandlers(),this.removeExtentChangeWatchHandlers(),this.removeViewWatchHandlers(),this.removeSelectionManagerChangeWatchHandler(),this.autoDestroyDisabled||this.chart?.dispose()}hideInfoModal(){this.infoModalMessage=void 0}async generateHeatChartClassBreaks(e){if(!Cs(this.layer)&&gg(this._model)&&e?.data&&"dataItems"in e.data){let t=await dv({data:e.data,classificationMethod:this._model.classificationMethod,breaksCount:this._model.breaksCount,xAxisField:this._model.xAxisField,existingClassBreakInfos:this._model.chartRenderer?.classBreakInfos});uv({currentBreaks:t,configBreaks:this._model.chartRenderer?.classBreakInfos??[]})&&(this._model.chartRenderer={...this._model.chartRenderer,classBreakInfos:t,type:"classBreaks",field:ri.valueField})}}async updatedAsync(){if(this.dataFetching&&(await this.dataFetching,this.dataFetching=void 0),this.chart===void 0&&this.chartCreationProcessing!==void 0&&(await this.chartCreationProcessing,this.chartCreationProcessing=void 0),this.config!==void 0&&this.chart!==void 0)try{(!this.config&&!this.layer||pg(this.config,this.layer)&&!Io(this.config)&&await mg(this.config,this.layer))&&await this.updateQueue?.push({})}catch(e){this.updatedProps.clear(),this.chartRef.value!==void 0&&(e instanceof fa&&e.name===CA.ChartDisposed?(this.chart?.dispose(),this.chart=void 0,this.chartRef.value.innerHTML="",await this.createChartInstance(!1)):(e instanceof fa&&e.name===CA.QueryFeaturesError?this.arcgisDataProcessError.emit(e.details):e instanceof fa&&this.arcgisRuntimeError.emit(e.details??e),typeof e=="object"&&e&&"message"in e&&this.notify(String(e.message),this.commonStrings?.errorStrings.errorHeading)))}else this.chart===void 0&&this.chartCreationProcessing===void 0&&await this.createChartInstance();this.placeholder!==void 0?await this.notify(this.placeholder):this.enableConfiguration&&Io(this.config)&&this.applyPlaceholderForPartialConfig(this.config)}useAmCharts5(){let e=_e(this.config?.series);return this.enableBetaFeatures||e===Q.ScatterSeries||e===Q.HistogramSeries||e===Q.RadarSeries||e===Q.HeatSeries}handleNoRenderPropChange(e,t){this.arcgisNoRenderPropChange.emit({propName:e,value:t,model:this._model})}handleRenderingComplete(e){this.arcgisRenderingComplete.emit(e.detail),this.showLoader=!1}applySelectionFromSelectionManager(){let e=this.getSelectionFromSelectionManager();e&&(this.selectionData={selectionOIDs:e,selectionSource:li.ProgrammaticSelection},this.arcgisSelectionComplete.emit({selectionData:this.selectionData,model:this._model}))}applySelectionFromView(){this.applySelectionFromSelectionManager()}handleLegendItemVisibilityChanged(e){Xx(e,this.config),this.arcgisLegendItemVisibilityChange.emit({legendItemVisibility:e.detail,model:this._model})}handleUpdateCompleted(e){if(this.enableConfiguration){let t=this.commonStrings?.errorStrings.notifications;if(this.placeholder===void 0&&(e.schemaErrors.length>0&&!Io(this.config)?this.notify(t?.invalidConfig,void 0):e.warnings.length>0&&e.warnings.some(i=>i.keyword===Yx.NonNumericAggregation)&&this.notify(t?.validateAggregationTypeMsg,t?.missingNumericFields)),(zb(this._model)||jb(this._model)||fg(this._model)||Zb(this._model))&&this._model.aggregationType===Br.NoAggregation&&this._model.numericFields.length===1&&this.layer){let i=Lo(this.layer),s=To(i).idField;s&&this._model.numericFields.includes(s)&&this.notify(t?.noAggregationRequiresNumericFields,t?.missingNumericFields)}}this.showLoader&&this.loaderHandle.hideLoader(),this.arcgisUpdateComplete.emit(e)}handleInvalidConfigWarningRaise(e){this.arcgisInvalidConfigWarningRaise.emit(e.detail),this.notify(e.detail.message,e.detail.header)}handleSeriesColorsChange(e){this.arcgisSeriesColorChange.emit({data:e.detail.data,colorMatchApplied:e.detail.colorMatchApplied,model:this._model})}handleSelection(e){let t={...e.detail};this.unsanitizedSelectionDataItems=t.selectionItems;let i={...t},s=Hi(t.selectionItems);s&&(s=Nb(s,this.config?.series),s=s.map($b),s=Hb(s,this.config?.series),i.selectionItems=s),Ya(i,this.selectionData)||(this.selectionData=i,this.arcgisSelectionComplete.emit({selectionData:i,model:this._model}))}handleTooManySelectedElements(){this.errorPolicy===Kh.Throw&&(this.infoModalHeading=this.commonStrings?.errorStrings.tooManySelectedElements?.title,this.infoModalMessage=this.commonStrings?.errorStrings.tooManySelectedElements?.message,this.notifyOptions={kind:"warning",autoClose:!0,duration:"fast",active:!0})}handleAlertClosed(e){e.target===this.el&&(this.notifyHeading=void 0,this.notifyMessage=void 0)}handleAxesMinMaxChange(e){this.arcgisAxesMinMaxChange.emit({bounds:e.detail,model:this._model})}handleSeriesOrder(e){this.arcgisSeriesOrder.emit(e.detail)}modelChange(){if(xa(this.model)){this._model=this.model,this.config=Hi(this._model?.config);let e=this._model?.layer;!this.layerItemId&&e&&(this.layer=e),this.addModelListeners(),this._model.asyncUpdatesPromise.then(()=>{typeof this.resolveModelSetup=="function"&&this.resolveModelSetup()})}else this.config=this.model;if(this.enableBetaFeatures===void 0){let e=_e(this.config?.series);this.enableBetaFeatures=e===Q.ScatterSeries||e===Q.HistogramSeries}}selectionDataChange(){this.setSelectionInSelectionManager()}async viewChange(e,t){this.layerItemId&&this.layerItemId?.trim()!==""&&(this.layer=jf({view:this.view,portalItemId:this.layerItemId})??new Yp({portalItem:{id:this.layerItemId}})),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),t!==void 0&&e===void 0&&await this.refresh(),this.view?this.setViewSelectionsChangeWatchHandler():this.removeViewSelectionsChangeWatchHandler()}async layerChange(){this.addLayerWatchHandlers(),this.layer&&(await Lo(this.layer).load(),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler())}layerItemIdChange(){this.layerItemId&&this.layerItemId?.trim()!==""?this.layer=jf({view:this.view,portalItemId:this.layerItemId})??new Yp({portalItem:{id:this.layerItemId}}):this.layer=void 0}featureIndexChange(e,t){t===void 0&&typeof e=="number"&&this.updatedProps.set("forceDataUpdate",{oldValue:t,newValue:e})}disableInteractionsChange(e){e?this.chartRef.value?.classList.add(Nr.DisableInteractions):this.chartRef.value?.classList.remove(Nr.DisableInteractions)}rotationChange(e){e!==void 0&&(this.config=tv(e,this.config))}legendPositionChange(e){e!==void 0&&(this.config=Jb(e,this.config))}legendVisibilityChange(e){e!==void 0&&(this.config=ev(e,this.config))}timeZoneChange(){this.updateConfigTimeZone()}filterBySelectionChanged(){this.config=iv(this.config)}layerFilterChangePolicyCallBack(e){e!==Gh.Ignore?this.setLayerFilterWatchHandler():this.removeLayerFilterWatchHandler()}viewTimeExtentChangePolicyCallback(e){e!==Pl.Refresh?this.removeViewTimeExtentChangeWatchHandler():this.setViewTimeExtentChangeWatchHandler()}layerRendererChangePolicyCallBack(e){e!==Wh.Ignore?this.setLayerRendererWatchHandler():this.removeLayerRendererWatchHandler()}async filterByExtentChanged(e){e||await this.refresh({updateData:!0,resetAxesBounds:!0}),e?this.setExtentChangeWatchHandler(e):this.removeExtentChangeWatchHandlers()}layerFieldsChangePolicyCallBack(e){e!==Yh.Ignore?this.setLayerFieldsWatchHandler():this.removeLayerFieldsWatchHandler()}addConfigListeners(){this.listenOn(document,"arcgisChartsConfigPanelNumberChange",this.configPanelNumberChange),this.listenOn(document,"arcgisChartsConfigDataChangeError",this.configDataChangeError)}getSelectionFromSelectionManager(){let e;if((this.view||this.selectionManager)&&this.layer&&!Cs(this.layer)){let t=Lo(this.layer);e=(this.selectionManager??this.view?.selectionManager)?.getSelection(t)}return e}setSelectionInSelectionManager(){let e=this.selectionManager??this.view?.selectionManager;if(this.layer&&e&&!Cs(this.layer)&&(this.syncViewSelection||this.syncSelectionsBetweenChartAndLayerViewPolicy===Ol.Enabled)){let t,i=this.selectionData?.selectionOIDs?.length===0||this.selectionData?.selectionOIDs===void 0||this.selectionData?.selectionSource===li.ClearSelection,s=(this.selectionData?.selectionOIDs?.length??0)>0;i?t=[]:s&&this.selectionData&&(t=this.selectionData.selectionOIDs),t&&e.replace(Lo(this.layer),t)}}addModelListeners(){this.listenOn(this._model??null,"arcgisChartsModelConfigChange",this.modelConfigChange),this.listenOn(this._model??null,"arcgisChartsModelDataChange",this.modelDataChange)}addLayerWatchHandlers(){this.removeLayerWatchHandlers(),this.layerFilterWatchHandler=uC(this),this.layerRendererWatchHandler=fC(this),this.layerFieldsWatchHandler=gC(this)}setLayerFilterWatchHandler(){this.removeLayerFilterWatchHandler(),this.layerFilterWatchHandler=uC(this)}setLayerRendererWatchHandler(){this.removeLayerRendererWatchHandler(),this.layerRendererWatchHandler=fC(this)}setLayerFieldsWatchHandler(){this.removeLayerFieldsWatchHandler(),this.layerFieldsWatchHandler=gC(this)}async setExtentChangeWatchHandler(e){(e??this.filterByExtent)&&(this.removeExtentChangeWatchHandlers(),this.extentChangeWatchHandlers=await dN(this))}setViewTimeZoneWatchHandler(){this.removeViewTimeZoneChangeWatchHandler(),this.viewTimeZoneChangeWatchHandler=fN(this)}setViewTimeExtentChangeWatchHandler(){this.removeViewTimeExtentChangeWatchHandler(),this.viewTimeExtentChangeWatchHandler=uN(this)}setViewSelectionsChangeWatchHandler(){this.removeViewSelectionsChangeWatchHandler(),this.viewSelectionsChangeWatchHandler=gN(this)}setSelectionManagerChangeWatchHandler(){this.removeSelectionManagerChangeWatchHandler(),this.selectionManagerChangeWatchHandler=pN(this)}removeLayerWatchHandlers(){this.removeLayerFilterWatchHandler(),this.removeLayerRendererWatchHandler(),this.removeLayerFieldsWatchHandler()}removeViewWatchHandlers(){this.removeViewSelectionsChangeWatchHandler(),this.removeViewTimeZoneChangeWatchHandler(),this.removeViewTimeExtentChangeWatchHandler()}removeLayerFilterWatchHandler(){this.layerFilterWatchHandler?.remove()}removeLayerRendererWatchHandler(){this.layerRendererWatchHandler?.remove()}removeLayerFieldsWatchHandler(){this.layerFieldsWatchHandler?.remove()}removeExtentChangeWatchHandlers(){this.extentChangeWatchHandlers?.forEach(e=>e.remove()),this.extentChangeWatchHandlers=[]}removeViewSelectionsChangeWatchHandler(){this.viewSelectionsChangeWatchHandler?.remove()}removeSelectionManagerChangeWatchHandler(){this.selectionManagerChangeWatchHandler?.remove()}removeViewTimeZoneChangeWatchHandler(){this.viewTimeZoneChangeWatchHandler?.remove()}removeViewTimeExtentChangeWatchHandler(){this.viewTimeExtentChangeWatchHandler?.remove(),this.runtimeDataFilters?.timeExtent&&delete this.runtimeDataFilters.timeExtent}async createModelFromLayer(){if(this.layer){let e=Lo(this.layer);await e.load();let t=this.chartIndex??0,i="charts"in e?e?.charts?.[t]:void 0;if(i)this.model=await av({layer:e,config:i});else{let s=OA(this._messages?.chartNotFoundWarning??"",{chartIndex:t.toString(),layerTitle:e.title});this.arcgisChartNotFoundWarning.emit(s),ex("warn",this,s)}}}applyPlaceholderForPartialConfig(e){let t=fg(this._model)?Q.ComboLineAndBarSeries:_e(e?.series),i=tN(t,this.commonStrings?.errorStrings);this.notify(i)}checkForIncompatibleChartVersion(){let e=this.config?.version;this.errorPolicy===Kh.Throw&&cb(e).versionStatus===Cx.Newer&&(this.notifyHeading=this.commonStrings?.errorStrings.incompatibleChartVersion?.title,this.notifyMessage=this.commonStrings?.errorStrings.incompatibleChartVersion?.message?OA(this.commonStrings?.errorStrings.incompatibleChartVersion?.message,{chartVersion:e??""}):"",this.notifyOptions={kind:"warning",autoClose:!0,active:!0})}ourModelExistsIn(e){return e.some(t=>this._model?.isSameChartAs(t))}updateConfigTimeZone(){this.config?.axes?.[0]?.valueFormat.type===Q.DateAxisFormat&&(this.config.axes[0].valueFormat.intlOptions.timeZone=Wb(this.timeZone))}gatherComponentGlobalOptions(){return{queueChartCreation:this.queueChartCreation,useAnimatedCharts:this.useAnimatedCharts,hideLicenseWatermark:this.hideLicenseWatermark,enableResponsiveFeatures:this.enableResponsiveFeatures,autoDisposeChart:this.autoDisposeChart}}addMutationObserverForCalciteTheme(){nx(this.el,["class"],()=>{if(this.enableAutoTheming){let e=xm(this.el);(this.calciteThemeApplied==="dark"&&!e||this.calciteThemeApplied!=="dark"&&e)&&(this.calciteThemeApplied=e?"dark":void 0,this.refresh({updateData:!1}))}})}gatherComponentOptions(e=!0){let t=this.runtimeDataFilters;this.view&&this.viewTimeExtentChangePolicy===Pl.Refresh&&this.view.timeExtent?.start!=null&&this.view.timeExtent?.end!=null&&(t={...t,timeExtent:[this.view.timeExtent.start.valueOf(),this.view.timeExtent.end.valueOf()]});let i;if(Cs(this.layer))i=this.filterByExtent?this.view:void 0;else{let s=xa(this.model)?this.model.config:this.model,a=_e(s?.series);i=this.filterByExtent||a!==Q.HistogramSeries?this.view:void 0}return{layer:this.layer,view:i,viewExtentUpdated:e&&this.filterByExtent===!0&&(this.view!==void 0||wA(this.layer)),allowUsingObjectIdStat:this.allowUsingObjectIdStat,nullAsValid:this.nullAsValid,showUIMessages:this.showUIMessages,createMessage:this.placeholder,hideLoaderAnimation:this.hideLoaderAnimation,loaderColors:Hi(this.loaderColors),runtimeDataFilters:t,usePopupTemplateFieldsInfo:this.usePopupTemplateFieldsInfo,ignoreViewExtent:this.ignoreViewExtent,chartLimits:this.chartLimits,guideTooltipFormatter:this.guideTooltipFormatter,xAxisLabelFormatter:this.xAxisLabelFormatter,yAxisLabelFormatter:this.yAxisLabelFormatter,secondaryYAxisLabelFormatter:this.secondaryYAxisLabelFormatter,tooltipFormatter:this.tooltipFormatter,dataLabelFormatter:this.dataLabelFormatter,selectionData:this.selectionData,filterBySelection:this.filterBySelection,actionMode:this.actionMode,cursorRange:this.cursorRange,selectionTheme:this.selectionTheme,setTimeBinningInfoWhenNotProvided:this.setTimeBinningInfoWhenNotProvided,returnSelectionOIDs:Cs(this.layer)?!1:this.returnSelectionOIDs,returnSelectionIndexes:this.returnSelectionIndexes,returnFeaturesExtent:this.returnFeaturesExtent,disableInteractions:this.disableInteractions,disableTogglingLegendItems:this.disableTogglingLegendItems,hideEmptySeries:this.hideEmptySeries,autoInverseDataLabelTextColor:this.autoInverseDataLabelTextColor,replaceNoValueCategoryWithZero:this.replaceNoValueCategoryWithZero,gaugeInnerLabelFormatter:this.gaugeInnerLabelFormatter,ignoreSmoothRenderingLimit:this.ignoreSmoothRenderingLimit,chartWillRender:this.chartWillRender,pieChartLegendValueLabelFormatter:this.legendValueLabelFormatter}}raiseLogScaleNotCompatibleWarning(e){let t=!0;return this.config?.axes?.forEach((i,s)=>{$h({chartConfig:this.config,axisConfigIndex:s,chartData:Gr(e?.data??this.sanitizedChartData)})||(t=!1,this.raiseInvalidDataWarning(s===0?_A.NegativeValueInXAxisLogScale:_A.NegativeValueInYAxisLogScale))}),t}raiseNoDataWarning(e,t){let i=!1;if(e?.data){let s=Gr(e.data);Pb({chartConfig:t,nullAsValid:this.nullAsValid,dataSet:s})&&(i=!0,this.raiseInvalidDataWarning(_A.EmptyDataSet))}return i}raiseInvalidDataWarning(e,t){let i=this.layer,s=this.gatherComponentOptions(),a=this.config!==void 0&&Mh({seriesConfig:this.config.series[0],xAxisValueFormatType:_x(this.config),queryObject:i}),n=Qb({invalidType:e,elementCount:t,seriesCount:this.config?.series?.length,chartLimits:s?.chartLimits,filterBySelection:s?.filterBySelection,queryObject:i,formatLocale:LA(this.el),isTemporalChart:a,errorStrings:this.commonStrings?.errorStrings});(n.keyword!==_A.EmptyDataSet||this.infoModalMessage===void 0)&&(this.arcgisBadDataWarningRaise.emit(n),this.notify(n.message,n.header))}processInvalidConfigStatus(e,t){if(this.enableConfiguration)this.handleUpdateCompleted(e);else{this.loaderHandle.hideLoader();let{title:i,message:s}=eN({chartConfig:t,createMessage:this.placeholder,status:e,errorStrings:this.commonStrings?.errorStrings});this.arcgisInvalidConfigWarningRaise.emit({keyword:_A.InvalidConfig,header:i,message:s}),this.notify(s,i)}}async createChartInstance(e=!0){if(this.config)try{this.addMutationObserverForCalciteTheme(),await this.renderChart(),e&&this.chart&&(this.addLayerWatchHandlers(),await this.setExtentChangeWatchHandler(),this.setViewTimeExtentChangeWatchHandler(),this.setViewTimeZoneWatchHandler(),this.setViewSelectionsChangeWatchHandler(),this.setSelectionManagerChangeWatchHandler())}catch(t){this.updatedProps.clear(),t instanceof fa&&t.name===CA.QueryFeaturesError?this.arcgisDataProcessError.emit(t.details):t instanceof fa&&this.arcgisRuntimeError.emit(t.details??t),typeof t=="object"&&t&&"message"in t&&this.notify(String(t.message),this.commonStrings?.errorStrings.errorHeading),this.chart?.dispose(),this.chartCreationProcessing=void 0,this.chart=void 0}}notifyDataProcessComplete(e){if(e&&this._config){let t=og({data:e,seriesConfig:this._config.series});t&&(this.sanitizedChartData=t,this.arcgisDataProcessComplete.emit({chartData:t,model:this._model}))}}notifyDataFetchComplete(e){if(e&&"dataItems"in e&&this._config&&_e(this._config?.series)===Q.PieSeries){let t=Hi(e);t.dataItems=BE(t.dataItems,this._config),this.arcgisDataFetchComplete.emit(t)}}async renderChart(){if(Io(this.config))this.applyPlaceholderForPartialConfig(this.config);else if(this.config){let e=this.chart===void 0,t=new Map(this.updatedProps),i=Array.from(t.keys());if(e||i.length>0){this.checkForInvalidContainer(),e&&(this.dataFetching&&(await this.dataFetching,this.dataFetching=void 0),this.chartCreationProcessing&&(await this.chartCreationProcessing,this.chartCreationProcessing=void 0),this.updateConfigTimeZone(),this.checkForIncompatibleChartVersion(),this.updatedProps.clear());let s=await this._loadQueryObject.taskComplete;if(s){let a=this.gatherComponentOptions(),n=_r(s,this.usePopupTemplateFieldsInfo),o;if(t.has("model")){let f=t.get("model")?.oldValue;xa(f)?o=f.config:o=f}!o&&t.has("config")&&(o=t.get("config")?.oldValue),o??=this.config;let A=e,l;e||({dataUpdateNeeded:A,dataUpdateDetails:l}=tb({config:this.config,previousConfig:o,dataUpdateNeededProps:this.dataUpdateNeededProps,updatedProps:t,options:a,filterBySelection:this.filterBySelection,previousSelectionOIDs:t.has("selectionData")?t.get("selectionData")?.oldValue?.selectionOIDs:this.selectionData?.selectionOIDs,fieldList:n,queryObject:s}),A&&this.hideInfoModal());let h=this.updateSplitBySeries?.addMissingSeries===!0&&(e||A||i.includes("layer")||i.includes("filterByExtent")),c,d,u=!0;for(let f=0;f<cv&&u;f++){let m=this.config;({alteredConfig:c,preFetchedQueryResponse:d}=await sv({configToAlter:this.config,updateSplitBySeries:this.updateSplitBySeries,addMissingSeries:h,chartContainer:this.el,queryObject:s,options:a,layer:this.layer})),u=this.config!==m}if(this._config=c,this.model&&c&&!xa(this.model)&&(this.model.series=c.series),l?.common&&o?.series&&c?.series&&(l.common.numberOfSeriesChanged=fb(o.series,c.series)),!c&&!this.layer||pg(c,this.layer)&&await mg(c,this.layer)){let f=await cg({input:c,queryObject:s,allowUsingObjectIdStat:a?.allowUsingObjectIdStat});if(i.forEach(m=>this.updatedProps.delete(m)),!f.valid)this.processInvalidConfigStatus(f,c);else{let m={valid:!0,data:this.processedChartData??this.sanitizedChartData};if(c){if(wA(s)&&await Ps.whenOnce(()=>!s.updating),A=A&&c!==void 0&&!Io(c),A&&(this.loaderHandle.showLoader(),this.dataFetching=Rb({chartConfig:c,preFetchedQueryResponse:d,queryObject:s,options:a,fieldList:n,currentSelectionDataItems:this.unsanitizedSelectionDataItems,dataForFilterBySelectionChanged:l?.common?.dataForFilterBySelectionChanged,errorStrings:this.commonStrings?.errorStrings,abortKey:this.guid}),m=await this.dataFetching,gg(this._model)&&ov(nv,m.data)),_e(c.series)===Q.PieSeries){let g=MB({creation:e,previousConfig:o,newConfig:c,dataInfo:m,dataUpdateNeeded:A,utilsStrings:this.commonStrings.utilsStrings});A=A||g}if(!m.valid)this.raiseInvalidDataWarning(m.invalidType,m.count);else{if(_e(c.series)===Q.PieSeries){let B=MB({creation:e,previousConfig:o,newConfig:c,dataInfo:m,dataUpdateNeeded:A,utilsStrings:this.commonStrings.utilsStrings});A=A||B}let g,v=Hi(c);if({filteredConfig:c,seriesFilteredOut:g}=rv({hideEmptySeries:this.hideEmptySeries??!0,config:c,data:m?.data}),!this.raiseNoDataWarning(m,c)&&this.raiseLogScaleNotCompatibleWarning(m)){let B=Rl({oldConfig:g?v:o,newConfig:c,dataWasUpdated:A});B&&eb({alteredConfig:c,dataInfo:m,fieldList:n,options:a,queryObject:s}),tg(o,c)&&(A=!0);let w=en(c)?c.showMean:void 0,_=m?.data??this.sanitizedChartData,L=_&&w&&"meanLines"in _?_.meanLines:Gr(_);L&&(e||A)&&({colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames}=await ib({data:L,queryObject:s,chartConfig:c,allowColorMatch:ob({chartConfig:c,queryObject:s})})),this.enableAutoTheming&&(c=cN(this.el,c),this.calciteThemeApplied=xm(this.el)?"dark":void 0,a=lN({chartElement:this.el,options:a,calciteThemeApplied:this.calciteThemeApplied}));let k=!1,D;if(c.series[0].type===Q.PieSeries){let O=Gr(this.processedChartData),I=Gr(m.data);k=vw(O,I),D=ab({creation:e,dataInfo:m,pieChartDataActuallyChanged:k,chartConfig:c,previousConfig:o,queryObject:s,usePopupTemplateFieldsInfo:a?.usePopupTemplateFieldsInfo,utilsStrings:this.commonStrings.utilsStrings})}let E=await nb({creation:e,dataInfo:m,pieChartDataActuallyChanged:k,chartConfig:c,previousConfig:o,pieSlicesSymbols:D,queryObject:s,options:a,utilsStrings:this.commonStrings?.utilsStrings});if(E?.changesApplied&&(f=await cg({input:E?.alteredConfig,queryObject:s,allowUsingObjectIdStat:a?.allowUsingObjectIdStat}),f.valid&&(c=E?.alteredConfig,D=E.alteredPieSlicesSymbols,this._colorMatchApplied=E.colorMatchApplied,this._rendererFieldNames=E.rendererFieldNames)),c.series[0].type===Q.PieSeries&&m.data&&"dataItems"in m.data&&wE({data:m.data.dataItems,newChartConfig:c,pieSlicesSymbols:D,fieldList:n}),this.processedChartData=Hi(m.data),!f.valid)this.processInvalidConfigStatus(f,c);else{(A||B)&&(this.notifyDataProcessComplete(m.data),this.notifyDataFetchComplete(m.data));let O={chartContainer:this.chartRef.value,queryObject:s,dataInfo:m,colorMatchApplied:this._colorMatchApplied,rendererFieldNames:this._rendererFieldNames,pieSlicesSymbols:D,hasSeriesFilteredOut:g,uniqueInternalID:this.el.id,t9nStrings:{errorStrings:this.commonStrings?.errorStrings,utilsStrings:this.commonStrings?.utilsStrings},loaderHandle:this.loaderHandle};if(!this.filterBySelection&&!Cs(s)){let I=await Vb({updatedPropsSnapshot:t,chartConfig:c,chartData:this.processedChartData,dataWasUpdated:A,queryObject:s,options:a,errorStrings:this.commonStrings?.errorStrings});I&&a&&(a.selectionData={...a?.selectionData,selectionItems:I})}if(this.hideInfoModal(),e){let I=this.useAmCharts5()?JH:QE;this.chartCreationProcessing=I({...O,chartConfig:c,options:a,globalOptions:this.gatherComponentGlobalOptions()}),this.chart=await this.chartCreationProcessing,this.chartCreationProcessing=void 0}else await this.chart?.update({...O,newChartConfig:c,dataUpdateDetails:l,configWithAllSeries:v,dataWasUpdated:A,updateOptions:a,updateGlobalOptions:this.gatherComponentGlobalOptions()}),this.handleUpdateCompleted(f);await this.generateHeatChartClassBreaks(m)}}}}}}}}}}render(){let e=this.notifyMessage?mN({heading:this.notifyHeading,message:this.notifyMessage,options:this.notifyOptions}):null,t="";switch(!0){case(this.notifyMessage&&this.notifyOptions?.kind==="danger"):case(this.infoModalMessage&&this.showUIMessages!==!1):t=Nr.Hide;break;default:t=`${Nr.Chart} ${Nr.Show}`;break}let i=this.notifyMessage?`${Nr.Show} ${Nr.NotifyPanel}`:Nr.Hide;return fA`<slot name=${Yb.actionBar} @slotchange=${s=>{this.actionBarElement=Av(s,this.el,this.config)}} ${lf(this.actionBarSlotRef)}></slot>${(this.infoModalMessage||this.showLoader)&&this.showUIMessages!==!1?fA`<arcgis-charts-info-modal .heading=${this.infoModalHeading??""} .message=${this.infoModalMessage??""} .showLoader=${this.showLoader} .loaderColors=${this.loaderColors} .calciteThemeApplied=${this.calciteThemeApplied} .enableAutoTheming=${this.enableAutoTheming}></arcgis-charts-info-modal>`:null}<div class=${`${Nr.ChartWrapper} ${t}`}><div class=${`${Nr.ChartContainer} ${t}`} ${lf(this.chartRef)}></div></div><div class=${sx(i)}>${e}</div>`}};rx("arcgis-chart",bm);return bm},"core/reactiveUtils","intl","layers/FeatureLayer","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","layers/support/FeatureFilter","smartMapping/statistics/histogram","smartMapping/statistics/summaryStatistics","AttributeBinsGraphic","layers/support/CodedValueDomain","core/sql",a,b,c,d,e,f,g,h,i,j,k,l,m,n,o)
|