@arcgis/map-components 6.0.0-next.20 → 6.0.0-next.21
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/{VQDXE456.js → 22RLIDCP.js} +1 -1
- package/dist/cdn/{CD2XIXN5.js → 27TSPXYV.js} +1 -1
- package/dist/cdn/{THIUS6HZ.js → 2GPVEWYM.js} +1 -1
- package/dist/cdn/{UHP6ZS6H.js → 2IBL2HKQ.js} +1 -1
- package/dist/cdn/{VYM3TR3Q.js → 2NM6UWC4.js} +1 -1
- package/dist/cdn/{CYUO2UNT.js → 2PLAZVGP.js} +1 -1
- package/dist/cdn/{M6COQWFB.js → 2RQGZLOJ.js} +1 -1
- package/dist/cdn/{AD2IA3IS.js → 2SQGIY7T.js} +1 -1
- package/dist/cdn/{R2KMEDRH.js → 2UAH624K.js} +1 -1
- package/dist/cdn/{C2YP473B.js → 2WJ53TNR.js} +1 -1
- package/dist/cdn/{IEZGQ2LC.js → 2YXWKKNB.js} +1 -1
- package/dist/cdn/{VTER7AQ2.js → 32526XJ7.js} +1 -1
- package/dist/cdn/{WQF3SS53.js → 34XDXFK6.js} +1 -1
- package/dist/cdn/3B4VHD67.js +2 -0
- package/dist/cdn/{LKMQHTBY.js → 3EXEL7AM.js} +1 -1
- package/dist/cdn/{MGQA3G43.js → 3GN3DAON.js} +1 -1
- package/dist/cdn/{AI3ETXGZ.js → 3MWXYWKR.js} +1 -1
- package/dist/cdn/{J7VECW7F.js → 3SXQLU4S.js} +1 -1
- package/dist/cdn/{WD4TPDI6.js → 3W7KESW7.js} +1 -1
- package/dist/cdn/{Y3S6WJN2.js → 43IGD6V3.js} +1 -1
- package/dist/cdn/{UKB45JOM.js → 4DPAOAMZ.js} +1 -1
- package/dist/cdn/{YAVRBZ5C.js → 4FFEPX2D.js} +1 -1
- package/dist/cdn/{IZKG2DP3.js → 4H2REMNG.js} +1 -1
- package/dist/cdn/{VHYR3UPY.js → 4I6F64B2.js} +1 -1
- package/dist/cdn/{DUKK2PHD.js → 4IG6WUCI.js} +1 -1
- package/dist/cdn/4LNXCEM5.js +2 -0
- package/dist/cdn/4LO7PNX7.js +2 -0
- package/dist/cdn/{ALZFPS2D.js → 4P4NKBQC.js} +1 -1
- package/dist/cdn/{SQI6CU3W.js → 4PDZTEB2.js} +1 -1
- package/dist/cdn/{LPXSF4M6.js → 4WZZZTT5.js} +1 -1
- package/dist/cdn/{XSEDC76K.js → 55VX76T5.js} +1 -1
- package/dist/cdn/{UBCDF55B.js → 57LPG3BE.js} +1 -1
- package/dist/cdn/{6BMZP72L.js → 5A7LDBDR.js} +1 -1
- package/dist/cdn/{6NCZTAOF.js → 5DN4ONEW.js} +1 -1
- package/dist/cdn/{YMAEN7NR.js → 5FBHHKRV.js} +1 -1
- package/dist/cdn/{DYUFBVXE.js → 5GFPOTOB.js} +1 -1
- package/dist/cdn/{LL3DXDKE.js → 5V6BNJ5O.js} +1 -1
- package/dist/cdn/{QABRDQFJ.js → 5V6K43GW.js} +1 -1
- package/dist/cdn/{GD4XR5XA.js → 5XZKVLHC.js} +1 -1
- package/dist/cdn/{F2EOAAKS.js → 62OAO327.js} +1 -1
- package/dist/cdn/{3YQDH3QT.js → 6DRXFSTW.js} +1 -1
- package/dist/cdn/{YFYFQWXG.js → 6G5QADEG.js} +1 -1
- package/dist/cdn/{4IJC4V6Z.js → 6HDYZ7WW.js} +1 -1
- package/dist/cdn/6KYZMT4A.js +2 -0
- package/dist/cdn/{XNHTHY3W.js → 6QWLMG5M.js} +1 -1
- package/dist/cdn/{NEQJAZLZ.js → 6WFVZM5S.js} +1 -1
- package/dist/cdn/{HJZRNUBU.js → 6Y7Q7GRB.js} +1 -1
- package/dist/cdn/{D7T33U5Z.js → 74PUSJU5.js} +1 -1
- package/dist/cdn/{H7QBBTTP.js → 7EIN5VCY.js} +1 -1
- package/dist/cdn/{KQZYGYQO.js → 7EKBNXGL.js} +1 -1
- package/dist/cdn/7ILT5PDJ.js +2 -0
- package/dist/cdn/{IU7BOICX.js → 7JK4JGPG.js} +1 -1
- package/dist/cdn/{KRJCOTGC.js → 7JPHMESH.js} +1 -1
- package/dist/cdn/{XCHCC6HT.js → 7LO6ACC7.js} +1 -1
- package/dist/cdn/{P7XX5RSZ.js → 7V7LQ35Q.js} +1 -1
- package/dist/cdn/{27HLXBPP.js → 7Y4SF2NT.js} +1 -1
- package/dist/cdn/{XFPFS6PS.js → 7Y6PADB5.js} +1 -1
- package/dist/cdn/{CYXNSUYF.js → 7ZWBGSCM.js} +1 -1
- package/dist/cdn/{OLEUR4YB.js → A5IFDSOU.js} +1 -1
- package/dist/cdn/{5FA37EZ6.js → AHWBCZBO.js} +1 -1
- package/dist/cdn/{4EGKJPJ2.js → AKGUTL2V.js} +1 -1
- package/dist/cdn/AMRGLUBB.js +2 -0
- package/dist/cdn/{RQ2MM3DQ.js → AOGDXJ2J.js} +1 -1
- package/dist/cdn/ARN5ZKLI.js +2 -0
- package/dist/cdn/{KLY36SOM.js → AUP633OS.js} +1 -1
- package/dist/cdn/{JCCTYIZ2.js → B2TICPHR.js} +1 -1
- package/dist/cdn/{CI6VWQ63.js → BDZHLGVT.js} +1 -1
- package/dist/cdn/{H6SIAY6D.js → BFYJTV6Q.js} +1 -1
- package/dist/cdn/{7NB627L5.js → BJ35LPCU.js} +1 -1
- package/dist/cdn/{66RQ6K6J.js → BJI5DVB5.js} +1 -1
- package/dist/cdn/{5Y45LLBY.js → BJJZGYBG.js} +1 -1
- package/dist/cdn/{EPNWPJZ6.js → BLYXYNGB.js} +1 -1
- package/dist/cdn/{F4AJCUZ6.js → BOPNSNUT.js} +1 -1
- package/dist/cdn/{LMI7MLKS.js → BUH3AQ7E.js} +1 -1
- package/dist/cdn/{Y7ILKQZU.js → BVRQWRKX.js} +1 -1
- package/dist/cdn/{JSHCS4Y6.js → C6K7TZ27.js} +1 -1
- package/dist/cdn/{2ZNQABOI.js → CLICUS2A.js} +1 -1
- package/dist/cdn/{2JOUXCA5.js → COSETVX4.js} +1 -1
- package/dist/cdn/{EBQ537XN.js → CWCVAPXD.js} +1 -1
- package/dist/cdn/{YCQWS3JT.js → CXXBV6RJ.js} +1 -1
- package/dist/cdn/{YR4YEJ2N.js → DCO26B7J.js} +1 -1
- package/dist/cdn/{KV5K3ATE.js → DDGUDJJZ.js} +1 -1
- package/dist/cdn/{ASHCHM4V.js → DEW5IWND.js} +1 -1
- package/dist/cdn/{OBQUHPHJ.js → DFNH6YRR.js} +1 -1
- package/dist/cdn/{DE4OSJG5.js → DFTYQJWJ.js} +1 -1
- package/dist/cdn/{ZOLOOVHX.js → DFZ22GLY.js} +1 -1
- package/dist/cdn/{R3VD3PEO.js → DGSTI5DI.js} +1 -1
- package/dist/cdn/{5JRZJANG.js → DS6EUOYE.js} +1 -1
- package/dist/cdn/{ZDLHDQCX.js → DWPXOIRF.js} +1 -1
- package/dist/cdn/{2T3ALADJ.js → DZIJPJS3.js} +1 -1
- package/dist/cdn/{6DDIOOI6.js → E6ZXXC74.js} +1 -1
- package/dist/cdn/{RTZG4WTI.js → EB4V6SPF.js} +1 -1
- package/dist/cdn/{EXSZCSCL.js → ECUVJOIW.js} +1 -1
- package/dist/cdn/{M6CSJLXC.js → ED2T4ASN.js} +1 -1
- package/dist/cdn/{LB52TH7O.js → EP27GLNL.js} +1 -1
- package/dist/cdn/{BE5M3N7T.js → EXB4CY2Y.js} +1 -1
- package/dist/cdn/{QMH2OBF6.js → EZHYSI6R.js} +1 -1
- package/dist/cdn/{RUMWDBIU.js → F2DTKJTK.js} +1 -1
- package/dist/cdn/{NU75HQA2.js → F74YQZ2X.js} +1 -1
- package/dist/cdn/{DIXSGC2P.js → FDESUDJ5.js} +1 -1
- package/dist/cdn/{BWM4ZVN7.js → FGU7NUST.js} +1 -1
- package/dist/cdn/{KQDXSX5Y.js → FH6Q5A5L.js} +1 -1
- package/dist/cdn/{Z24QDG3E.js → FMLDKHWP.js} +2 -2
- package/dist/cdn/{7EIWYGE2.js → FOKE5ILO.js} +1 -1
- package/dist/cdn/{WALR7J3I.js → FQ3ZJA4Q.js} +1 -1
- package/dist/cdn/{QYOTQQAL.js → FZGMIIBX.js} +1 -1
- package/dist/cdn/{DQSP4RFL.js → G2ACNJGG.js} +1 -1
- package/dist/cdn/{6S6CZJKN.js → G2PLGAUY.js} +1 -1
- package/dist/cdn/{X5WMEO4X.js → G56N6RF4.js} +1 -1
- package/dist/cdn/{CESPPRYQ.js → GEOME3IC.js} +1 -1
- package/dist/cdn/{WV2GLDRQ.js → GFC6LS4L.js} +1 -1
- package/dist/cdn/{WNRWNZGL.js → GKNGEZCO.js} +1 -1
- package/dist/cdn/{SW6UOJIE.js → GPYZM5CC.js} +1 -1
- package/dist/cdn/{U7FYQAUZ.js → GQQTIX2X.js} +1 -1
- package/dist/cdn/{KM7PWRG2.js → H4BTVLCG.js} +1 -1
- package/dist/cdn/{M76PF7SP.js → HLOH2QPV.js} +1 -1
- package/dist/cdn/{C6XAWMZK.js → I52P5EXK.js} +1 -1
- package/dist/cdn/{TTGQ4Y7X.js → IFLDLAK4.js} +1 -1
- package/dist/cdn/{XYEUSNMJ.js → IN7TMVRK.js} +1 -1
- package/dist/cdn/{IAIVTB2Q.js → IOUO7KBT.js} +1 -1
- package/dist/cdn/{LXLZB2JC.js → IZFEOYED.js} +1 -1
- package/dist/cdn/{L4HKKYNC.js → JBD7Q5YD.js} +1 -1
- package/dist/cdn/{GWXQ6CHV.js → JN6RVFAM.js} +1 -1
- package/dist/cdn/{RYQW6GPV.js → JUOOKKZJ.js} +1 -1
- package/dist/cdn/{NY7PPWFQ.js → JUYPQUPQ.js} +1 -1
- package/dist/cdn/{35EYUDTJ.js → KAG4QZ7K.js} +1 -1
- package/dist/cdn/{OFBCNFBW.js → KE2ER3F7.js} +1 -1
- package/dist/cdn/{AA4RF7H6.js → KIHYSYOL.js} +1 -1
- package/dist/cdn/{IQ4ADF3I.js → KIWV2RIN.js} +1 -1
- package/dist/cdn/{3ZFHZPWM.js → KXD4VEKE.js} +1 -1
- package/dist/cdn/{SDMJGSR7.js → L4WLEN3C.js} +1 -1
- package/dist/cdn/{STOPSNWH.js → L5XC4FXT.js} +1 -1
- package/dist/cdn/{AXJE2SZV.js → L6FLCEH6.js} +1 -1
- package/dist/cdn/{BRGIHQI3.js → LILX2DJE.js} +1 -1
- package/dist/cdn/{ZN52ACGS.js → LKGURYDH.js} +1 -1
- package/dist/cdn/{CEW6QJGT.js → LRH4FKHU.js} +1 -1
- package/dist/cdn/{BNZFCSS2.js → LSLTIN2Q.js} +1 -1
- package/dist/cdn/{BK2UM27Y.js → LTFGTX7S.js} +1 -1
- package/dist/cdn/{T2UN4CJT.js → LUW2PXWZ.js} +1 -1
- package/dist/cdn/{QFWFBHIF.js → LWVYNWD5.js} +1 -1
- package/dist/cdn/{NIMNZJJZ.js → LXHZGIW5.js} +1 -1
- package/dist/cdn/{TJC7VHRZ.js → LXJURAXP.js} +1 -1
- package/dist/cdn/{3XEUTP6J.js → M37TWKYP.js} +1 -1
- package/dist/cdn/{SMRY445Z.js → M3CIFZFR.js} +1 -1
- package/dist/cdn/{5P7WPXOY.js → M5OK7RKI.js} +1 -1
- package/dist/cdn/{RLYKTTAI.js → M7MRLBZA.js} +1 -1
- package/dist/cdn/{QYYYQIAI.js → MA2DWIGR.js} +1 -1
- package/dist/cdn/{6XODSQWR.js → MBLS5ES4.js} +1 -1
- package/dist/cdn/{EVQL7FMR.js → MDS3NVWM.js} +1 -1
- package/dist/cdn/{K7OB5AHB.js → MGH6EHT7.js} +1 -1
- package/dist/cdn/{OT43XHBV.js → MNL7ONFB.js} +1 -1
- package/dist/cdn/{FNJBBQT5.js → N4D5I6Y4.js} +1 -1
- package/dist/cdn/{5RCFYMHK.js → NHMHVWNB.js} +1 -1
- package/dist/cdn/{XDQ6UHVN.js → NKFAPBY3.js} +1 -1
- package/dist/cdn/{LDC5FSWA.js → NQ3COROI.js} +1 -1
- package/dist/cdn/{454VHWQQ.js → NTHSQXKG.js} +1 -1
- package/dist/cdn/{5VXEMMLV.js → NTT5IV4A.js} +1 -1
- package/dist/cdn/{7QA26M4F.js → NZQLQGTQ.js} +1 -1
- package/dist/cdn/{UJLIKFS6.js → O46PVNMT.js} +1 -1
- package/dist/cdn/{AWB7XOHF.js → O5HQ5YZK.js} +1 -1
- package/dist/cdn/{FFVPO4JB.js → OJJSIN3V.js} +1 -1
- package/dist/cdn/{U7WRQCRV.js → OLY5EME5.js} +1 -1
- package/dist/cdn/{D6GJRZJV.js → ONYCZO7Y.js} +1 -1
- package/dist/cdn/{TIUFHDP2.js → OQ6SYZBT.js} +1 -1
- package/dist/cdn/{4EHW2LXW.js → ORVSAF3Z.js} +1 -1
- package/dist/cdn/{AVLV4PPI.js → OZF64H7N.js} +1 -1
- package/dist/cdn/P3565WG3.js +2 -0
- package/dist/cdn/{5EBCPTE5.js → P65FMRMP.js} +1 -1
- package/dist/cdn/{AB74IWXX.js → PCXDOSKQ.js} +1 -1
- package/dist/cdn/{B7D5ZTB2.js → PFSIUSDJ.js} +1 -1
- package/dist/cdn/{I3FQUA77.js → PHVKEWZ7.js} +1 -1
- package/dist/cdn/{XX6G24PV.js → PKYYNRBS.js} +1 -1
- package/dist/cdn/{7IGSTLKW.js → PQ7NUE5C.js} +2 -2
- package/dist/cdn/{M2HYKS62.js → PRUHLC54.js} +1 -1
- package/dist/cdn/{RSNXBYXL.js → PXDX3LCI.js} +1 -1
- package/dist/cdn/PYBUTNHM.js +2 -0
- package/dist/cdn/Q6RSVQNE.js +2 -0
- package/dist/cdn/{GIBXI44G.js → Q7GF26CL.js} +1 -1
- package/dist/cdn/{QPHKPPYM.js → QAOT2TJ6.js} +1 -1
- package/dist/cdn/{MRCZ6R25.js → QET5SVDO.js} +1 -1
- package/dist/cdn/QKGJVGXJ.js +2 -0
- package/dist/cdn/{KIFEVB5D.js → QUPDTNAC.js} +1 -1
- package/dist/cdn/{OISNNHIG.js → QVJ2FUNW.js} +1 -1
- package/dist/cdn/{NR2RFSZB.js → QZVF23GH.js} +1 -1
- package/dist/cdn/{XOOSPWUF.js → RBRDUDEY.js} +1 -1
- package/dist/cdn/{7465ANAR.js → REB4CHAK.js} +1 -1
- package/dist/cdn/{F2QSG3HU.js → RINX3CTL.js} +1 -1
- package/dist/cdn/{YNMIPIKK.js → S4L4V6FJ.js} +1 -1
- package/dist/cdn/{4JL3FLRV.js → SAQ5BNZJ.js} +1 -1
- package/dist/cdn/{R5DBF7SZ.js → SDLZ4BNM.js} +1 -1
- package/dist/cdn/{SBYVR52H.js → SI2DEXWH.js} +1 -1
- package/dist/cdn/{UQLRFL2S.js → SIT5NBLS.js} +1 -1
- package/dist/cdn/{GCTF7CS7.js → SJGQALDG.js} +1 -1
- package/dist/cdn/{XYQWC4QA.js → SJGWHUCR.js} +1 -1
- package/dist/cdn/{QE7SN2DZ.js → SKAZPI3A.js} +1 -1
- package/dist/cdn/{ZNAOFUAU.js → SU2SAOBL.js} +1 -1
- package/dist/cdn/{CBAI4VLY.js → SXW4GFL3.js} +1 -1
- package/dist/cdn/{IU5QHF6T.js → T3MDSQ3T.js} +1 -1
- package/dist/cdn/T4Z2B3T7.js +2 -0
- package/dist/cdn/{WTRZ6OZV.js → TDYIVFVF.js} +1 -1
- package/dist/cdn/{YECZWYQZ.js → TKD5T5DW.js} +1 -1
- package/dist/cdn/{RQT2PVDJ.js → U77WHUC6.js} +1 -1
- package/dist/cdn/{PVAKLYII.js → UE6EBLH3.js} +1 -1
- package/dist/cdn/{UJYW2LBF.js → UFDB6U6V.js} +1 -1
- package/dist/cdn/{2CV4EHYO.js → UFK7DHVC.js} +1 -1
- package/dist/cdn/{SQXGDXHV.js → UHDJ2SI5.js} +1 -1
- package/dist/cdn/{3POODM7N.js → UI4IEVSV.js} +1 -1
- package/dist/cdn/{QCYQNVPL.js → UKIVMO7H.js} +1 -1
- package/dist/cdn/{YSE67FR2.js → UPCWZNTA.js} +1 -1
- package/dist/cdn/{RVJKTOGT.js → UR3Z5YHW.js} +1 -1
- package/dist/cdn/{DAZLYCHV.js → UVAUYBWF.js} +1 -1
- package/dist/cdn/{VIMOA3H7.js → UVPQKV5P.js} +1 -1
- package/dist/cdn/{3ND2HQVC.js → UYAOMCP7.js} +1 -1
- package/dist/cdn/UYDXI4AK.js +4 -0
- package/dist/cdn/{T2ONRGQX.js → V4AT7ENI.js} +1 -1
- package/dist/cdn/{5UF6YKFN.js → V4JCZIP5.js} +1 -1
- package/dist/cdn/{H22SGLVH.js → V7DMA5ZO.js} +1 -1
- package/dist/cdn/{AFYLXNX3.js → VEV3AAVP.js} +1 -1
- package/dist/cdn/{6IF5KBOJ.js → VHZM25YV.js} +1 -1
- package/dist/cdn/{5T4TPTPA.js → VKO3CVBS.js} +1 -1
- package/dist/cdn/{FUJYJKDU.js → VLHURRRU.js} +1 -1
- package/dist/cdn/{HKB7SRFI.js → VM5QVCMC.js} +1 -1
- package/dist/cdn/{JVC5XNYJ.js → VPDDFGYQ.js} +1 -1
- package/dist/cdn/{3TGVVG6M.js → VWUH2VUY.js} +1 -1
- package/dist/cdn/{3VB6M2GX.js → VWW5GBIK.js} +1 -1
- package/dist/cdn/{3SZ3FE66.js → W4GNRGIN.js} +1 -1
- package/dist/cdn/{ERULVBEV.js → WG5PHRPT.js} +1 -1
- package/dist/cdn/{KWPVYPJ5.js → WKI4XW7G.js} +1 -1
- package/dist/cdn/WTAAQHO3.js +2 -0
- package/dist/cdn/{BKSKZ6W6.js → WUWF6ZDM.js} +1 -1
- package/dist/cdn/{CYH72IDQ.js → WVKMYNN7.js} +1 -1
- package/dist/cdn/{64TOY3PA.js → WW7YOPDY.js} +1 -1
- package/dist/cdn/{TTDOASDI.js → XLB473BN.js} +1 -1
- package/dist/cdn/XLZB6JMZ.js +2 -0
- package/dist/cdn/{CUFP5Q3Z.js → XO7X6L4B.js} +1 -1
- package/dist/cdn/{JPFLHUNR.js → XPBFBRSY.js} +1 -1
- package/dist/cdn/{MWFZNICV.js → XTCYIS4Z.js} +1 -1
- package/dist/cdn/{BT755NSP.js → XYAJT7LP.js} +1 -1
- package/dist/cdn/{NHGQ7T4H.js → Y3E2FJPQ.js} +1 -1
- package/dist/cdn/Y4C7JJCJ.js +2 -0
- package/dist/cdn/{VLGRGILZ.js → Y6NC7ML3.js} +1 -1
- package/dist/cdn/{4NW2V4RQ.js → Y7IM3OFU.js} +1 -1
- package/dist/cdn/{FTFHL3EA.js → Y7XSHXVA.js} +1 -1
- package/dist/cdn/YAWLVMV6.js +2 -0
- package/dist/cdn/{SNGKRGPF.js → YBJ6ZAPO.js} +1 -1
- package/dist/cdn/{ZMXN6PZS.js → YBSEIOQX.js} +1 -1
- package/dist/cdn/{2C4EHM32.js → YBXCTOS7.js} +1 -1
- package/dist/cdn/{BPNUA7MC.js → YC7VLNKI.js} +1 -1
- package/dist/cdn/{FUSAMFLS.js → YDILFOHE.js} +1 -1
- package/dist/cdn/{7CHCF6IX.js → YEKQVWF5.js} +1 -1
- package/dist/cdn/{H6KJMGY6.js → YJROHURO.js} +1 -1
- package/dist/cdn/{LOF4XAJZ.js → YYCTSS52.js} +1 -1
- package/dist/cdn/{CG7BTPM3.js → Z42MH42I.js} +1 -1
- package/dist/cdn/{ID3UU7QE.js → Z6NHKWWS.js} +1 -1
- package/dist/cdn/{4XEZYOW7.js → ZC5YVHZ3.js} +1 -1
- package/dist/cdn/{SNEMD7IN.js → ZE4UHSTB.js} +1 -1
- package/dist/cdn/{HS2TQPAG.js → ZH3MW6H3.js} +1 -1
- package/dist/cdn/{BSTT6ICQ.js → ZJPYW3TN.js} +1 -1
- package/dist/cdn/{L726CUBZ.js → ZKKZQVJT.js} +1 -1
- package/dist/cdn/{4IQJMQQZ.js → ZNV3M5P2.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +14 -20
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-features-next/customElement.js +27 -20
- package/dist/components/arcgis-floor-filter/customElement.d.ts +3 -0
- package/dist/components/arcgis-floor-filter/customElement.js +3 -3
- package/dist/components/arcgis-floor-filter/interfaces.d.ts +72 -0
- package/dist/components/arcgis-sketch/customElement.js +394 -204
- package/dist/components/arcgis-sketch/toolbar-sizing-controller.d.ts +96 -0
- package/dist/components/arcgis-time-bar-slider/customElement.d.ts +8 -0
- package/dist/components/arcgis-time-bar-slider/customElement.js +35 -35
- 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.d.ts +6 -0
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +3 -1
- package/dist/types/preact.d.ts +3 -1
- package/dist/types/react.d.ts +3 -1
- package/dist/types/stencil.d.ts +3 -1
- package/package.json +7 -7
- package/dist/cdn/3SX4JMXA.js +0 -2
- package/dist/cdn/4CLSMFD2.js +0 -2
- package/dist/cdn/7FA44B44.js +0 -2
- package/dist/cdn/ATLQSGEK.js +0 -2
- package/dist/cdn/ELAKAKPE.js +0 -2
- package/dist/cdn/EVJFKABL.js +0 -4
- package/dist/cdn/EWM5PERI.js +0 -2
- package/dist/cdn/GBJY4A36.js +0 -2
- package/dist/cdn/HWRPCOVE.js +0 -2
- package/dist/cdn/M4M3QTI4.js +0 -2
- package/dist/cdn/O7ZXS622.js +0 -2
- package/dist/cdn/SIXKHDVJ.js +0 -2
- package/dist/cdn/TFXSKVB7.js +0 -2
- package/dist/cdn/TWPVYHJG.js +0 -2
- package/dist/cdn/VBSWB2VR.js +0 -2
- package/dist/cdn/W472ZYUY.js +0 -2
- package/dist/cdn/ZIQRARXE.js +0 -2
- /package/dist/cdn/{PBXO27K2.js → 2P5AJORF.js} +0 -0
- /package/dist/cdn/{GGUWUNUA.js → 4LWSF6AI.js} +0 -0
- /package/dist/cdn/{VCJ6M3PX.js → 5GGAWGSN.js} +0 -0
- /package/dist/cdn/{FIYZBOAN.js → 5GTPIPN7.js} +0 -0
- /package/dist/cdn/{BP7H6IBX.js → 62HMPABL.js} +0 -0
- /package/dist/cdn/{KZUUBMYO.js → 6SL7YNKF.js} +0 -0
- /package/dist/cdn/{7SDUVBEL.js → 7YT5W57B.js} +0 -0
- /package/dist/cdn/{X5RVRRKO.js → AKTIOEYM.js} +0 -0
- /package/dist/cdn/{LFSVKJXI.js → AYQJ2LTV.js} +0 -0
- /package/dist/cdn/{S5MD2X3H.js → CHMBPPHS.js} +0 -0
- /package/dist/cdn/{Z66I2FAE.js → DLUFAV4S.js} +0 -0
- /package/dist/cdn/{VWHNYGBM.js → DPEWQQEB.js} +0 -0
- /package/dist/cdn/{PSD74QRS.js → ECA47Z37.js} +0 -0
- /package/dist/cdn/{ZUYPKJYL.js → FJMXBIN5.js} +0 -0
- /package/dist/cdn/{DRD2FAEC.js → G4IKO2R6.js} +0 -0
- /package/dist/cdn/{GE4QV5JC.js → GCPR7XFU.js} +0 -0
- /package/dist/cdn/{DQDUD556.js → IAYL44LK.js} +0 -0
- /package/dist/cdn/{CEVISDMV.js → IRFIHD5X.js} +0 -0
- /package/dist/cdn/{DQRQZK5Y.js → KOMTNQPT.js} +0 -0
- /package/dist/cdn/{MPIIQAQO.js → LS4U4GD5.js} +0 -0
- /package/dist/cdn/{6LUCQLB7.js → LVIYMA67.js} +0 -0
- /package/dist/cdn/{WQIIAMYV.js → MEISDI2H.js} +0 -0
- /package/dist/cdn/{V3HQQ6TJ.js → N2YWWQOS.js} +0 -0
- /package/dist/cdn/{ENHMLZOY.js → NVKOZL7X.js} +0 -0
- /package/dist/cdn/{SIIF27TS.js → NVN2CATF.js} +0 -0
- /package/dist/cdn/{JAH2AKJ5.js → OFBWNR54.js} +0 -0
- /package/dist/cdn/{AKAOYYJ7.js → OLSESBZ7.js} +0 -0
- /package/dist/cdn/{SFMD5PPC.js → PWZHB6VD.js} +0 -0
- /package/dist/cdn/{UN65FKRA.js → QWMDZDQA.js} +0 -0
- /package/dist/cdn/{23L5GSFN.js → RTDY3HLR.js} +0 -0
- /package/dist/cdn/{MGE3J5KE.js → SFDCS6A2.js} +0 -0
- /package/dist/cdn/{ONSMVZAM.js → SLNXNVPI.js} +0 -0
- /package/dist/cdn/{DWQQDLIU.js → SLQPDAGN.js} +0 -0
- /package/dist/cdn/{EGD2CSA7.js → T34W3GKP.js} +0 -0
- /package/dist/cdn/{PST64E7E.js → TP2KQRW6.js} +0 -0
- /package/dist/cdn/{33LESQ6T.js → UDXDE3LW.js} +0 -0
- /package/dist/cdn/{ZQL4CTJK.js → XCSF7KJK.js} +0 -0
- /package/dist/cdn/{V7OBQRSG.js → XGWYQ7FU.js} +0 -0
- /package/dist/cdn/{P3ZJLVKC.js → XQ2WXTW7.js} +0 -0
- /package/dist/cdn/{TT57O767.js → ZCL4XHIZ.js} +0 -0
- /package/dist/cdn/{T5XVILYA.js → ZHYXFOYU.js} +0 -0
- /package/dist/cdn/{ZO5WNVFD.js → ZNIMZP5R.js} +0 -0
- /package/dist/cdn/{ITRBNYSS.js → ZSKO7HLH.js} +0 -0
package/dist/cdn/EWM5PERI.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{A as Si,B as Ai,C as $i,K as Bi,S as Ii,V as Mi,W as P,X as Je,Y as Qe,Z as Li,_ as fe,a as Y,b as Ze,f as Ci,i as ce,m as qe,r as Ri,x as J}from"./ELAKAKPE.js";import{a as A,b as he,d as R,e as C}from"./33LESQ6T.js";import{A as pe,B as Ti,D as wi,G as gt,H as Nt,I as Pi,K as E,O as _t,Q as yt,S as ki,T as St,U as ti,V as Ei,X as ei,Y as Hi,a as xi,b as Ve,c as bi,e as ze,g as D,h as je,j as Ge,m as Gt,o as Ke,p as _,q as mt,s as de,t as X,v as Ye,x as ue,y as Xe,z as Di}from"./KZUUBMYO.js";import{a as We}from"./TAVTDQ6S.js";function Kt(a,t){if(!(a>=0&&a<t))throw new Error("Index out of bounds: "+a)}var ht=class{constructor(t=[]){this.events=new St,this._values=t}get values(){return this._values}contains(t){return this._values.indexOf(t)!==-1}removeValue(t){let e=0,i=this._values.length;for(;e<i;)this._values[e]===t?(this.removeIndex(e),--i):++e}indexOf(t){return Gt(this._values,t)}get length(){return this._values.length}hasIndex(t){return t>=0&&t<this._values.length}getIndex(t){return this._values[t]}_onPush(t){this.events.isEnabled("push")&&this.events.dispatch("push",{type:"push",target:this,newValue:t})}_onInsertIndex(t,e){this.events.isEnabled("insertIndex")&&this.events.dispatch("insertIndex",{type:"insertIndex",target:this,index:t,newValue:e})}_onSetIndex(t,e,i){this.events.isEnabled("setIndex")&&this.events.dispatch("setIndex",{type:"setIndex",target:this,index:t,oldValue:e,newValue:i})}_onSwap(t,e){this.events.isEnabled("swap")&&this.events.dispatch("swap",{type:"swap",target:this,a:t,b:e})}_onRemoveIndex(t,e){this.events.isEnabled("removeIndex")&&this.events.dispatch("removeIndex",{type:"removeIndex",target:this,index:t,oldValue:e})}_onMoveIndex(t,e,i){this.events.isEnabled("moveIndex")&&this.events.dispatch("moveIndex",{type:"moveIndex",target:this,oldIndex:t,newIndex:e,value:i})}_onClear(t){this.events.isEnabled("clear")&&this.events.dispatch("clear",{type:"clear",target:this,oldValues:t})}setIndex(t,e){Kt(t,this._values.length);let i=this._values[t];return i!==e&&(this._values[t]=e,this._onSetIndex(t,i,e)),i}insertIndex(t,e){return Kt(t,this._values.length+1),ue(this._values,t,e),this._onInsertIndex(t,e),e}swap(t,e){let i=this._values.length;if(Kt(t,i),Kt(e,i),t!==e){let n=this._values[t],s=this._values[e];this._values[t]=s,this._values[e]=n,this._onSwap(n,s)}}removeIndex(t){Kt(t,this._values.length);let e=this._values[t];return Xe(this._values,t),this._onRemoveIndex(t,e),e}moveValue(t,e){let i=this.indexOf(t);if(i!==-1)if(Xe(this._values,i),e==null){let n=this._values.length;this._values.push(t),this._onMoveIndex(i,n,t)}else ue(this._values,e,t),this._onMoveIndex(i,e,t);else e==null?(this._values.push(t),this._onPush(t)):(ue(this._values,e,t),this._onInsertIndex(e,t));return t}push(t){return this._values.push(t),this._onPush(t),t}unshift(t){return this.insertIndex(0,t),t}pushAll(t){_(t,e=>{this.push(e)})}copyFrom(t){this.pushAll(t._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(t){let e=this._values;this._values=[],this._onClear(e),_(t,i=>{this._values.push(i),this._onPush(i)})}clear(){this.setAll([])}*[Symbol.iterator](){let t=this._values.length;for(let e=0;e<t;++e)yield this._values[e]}each(t){_(this._values,t)}eachReverse(t){mt(this._values,t)}},Yt=class extends ht{constructor(){super(...arguments),this.autoDispose=!0,this._disposed=!1}swap(t,e){let i=this.autoDispose;this.autoDispose=!1,super.swap(t,e),this.autoDispose=i}_onSetIndex(t,e,i){this.autoDispose&&e.dispose(),super._onSetIndex(t,e,i)}_onRemoveIndex(t,e){this.autoDispose&&e.dispose(),super._onRemoveIndex(t,e)}_onClear(t){this.autoDispose&&_(t,e=>{e.dispose()}),super._onClear(t)}_dispose(){this.autoDispose&&_(this._values,t=>{t.dispose()})}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}},Oi=class extends Yt{constructor(t,e){super(),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}};var $t={};We($t,{DEGREES:()=>ge,HALFPI:()=>ii,PI:()=>_e,RADIANS:()=>At,boundsOverlap:()=>Cs,ceil:()=>fs,circlesOverlap:()=>Ss,closest:()=>ks,cos:()=>ut,fitAngleToRange:()=>xs,fitToRange:()=>ye,getAngle:()=>bs,getArcBounds:()=>ys,getArcPoint:()=>me,getCubicControlPointA:()=>ms,getCubicControlPointB:()=>gs,getPointOnCubicCurve:()=>Ts,getPointOnLine:()=>ws,getPointOnQuadraticCurve:()=>Ds,inBounds:()=>si,mergeBounds:()=>vs,normalizeAngle:()=>st,resolveLocationOnPath:()=>Ps,round:()=>cs,sin:()=>dt,spiralPoints:()=>Rs,tan:()=>_s});var _e=Math.PI,ii=_e/2,At=_e/180,ge=180/_e;function cs(a,t,e){if(!D(t)||t<=0){let i=Math.round(a);return e&&i-a==.5&&i--,i}else{let i=Math.pow(10,t);return Math.round(a*i)/i}}function fs(a,t){if(!D(t)||t<=0)return Math.ceil(a);{let e=Math.pow(10,t);return Math.ceil(a*e)/e}}function ms(a,t,e,i,n){return{x:(-a.x+t.x/i+e.x)*i,y:(-a.y+t.y/n+e.y)*n}}function gs(a,t,e,i,n){return{x:(a.x+t.x/i-e.x)*i,y:(a.y+t.y/n-e.y)*n}}function ye(a,t,e){return Math.min(Math.max(a,t),e)}function dt(a){return Math.sin(At*a)}function _s(a){return Math.tan(At*a)}function ut(a){return Math.cos(At*a)}function st(a){return a=a%360,a<0&&(a+=360),a}function ys(a,t,e,i,n){if(!Number.isFinite(e)||!Number.isFinite(i)||Math.abs(i-e)>=360){let u=Number.isFinite(n)?Math.abs(n):0;return{left:a-u,top:t-u,right:a+u,bottom:t+u}}let s=Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(me(n,e)),l.push(me(n,i));let d=Math.min(Math.floor(e/90)*90,Math.floor(i/90)*90),p=Math.max(Math.ceil(e/90)*90,Math.ceil(i/90)*90);for(let u=d;u<=p;u+=90)u>=e&&u<=i&&l.push(me(n,u));for(let u=0;u<l.length;u++){let f=l[u];f.x<s&&(s=f.x),f.y<r&&(r=f.y),f.x>o&&(o=f.x),f.y>h&&(h=f.y)}return{left:a+s,top:t+r,right:a+o,bottom:t+h}}function me(a,t){return{x:a*ut(t),y:a*dt(t)}}function vs(a){let t=a.length;if(t>0){let e=a[0],i=e.left,n=e.top,s=e.right,r=e.bottom;if(t>1)for(let o=1;o<t;o++)e=a[o],i=Math.min(e.left,i),s=Math.max(e.right,s),n=Math.min(e.top,n),r=Math.max(e.bottom,r);return{left:i,right:s,top:n,bottom:r}}return{left:0,right:0,top:0,bottom:0}}function xs(a,t,e){if(t>e){let r=t;t=e,e=r}a=st(a);let i=(t-st(t))/360;a<t&&(a+=360*(i+1));let n=t+(e-t)/2+180,s=t+(e-t)/2-180;return a>e&&(a-360>t?a-=360:a<n?a=e:a=t),a<t&&(a>s?a=t:a=e),a}function si(a,t){return a.x>=t.left&&a.y>=t.top&&a.x<=t.right&&a.y<=t.bottom}function bs(a,t){t||(t={x:a.x*2,y:a.y*2});let e=t.x-a.x,i=t.y-a.y,n=Math.atan2(i,e)*ge;return n<0&&(n+=360),st(n)}function Ds(a,t,e,i){let n=(1-i)*(1-i)*a.x+2*(1-i)*i*e.x+i*i*t.x,s=(1-i)*(1-i)*a.y+2*(1-i)*i*e.y+i*i*t.y;return{x:n,y:s}}function Ts(a,t,e,i,n){let s=1-n,r=s*s*s*a.x+3*s*s*n*e.x+3*s*n*n*i.x+n*n*n*t.x,o=s*s*s*a.y+3*s*s*n*e.y+3*s*n*n*i.y+n*n*n*t.y;return{x:r,y:o}}function ws(a,t,e){return{x:a.x+(t.x-a.x)*e,y:a.y+(t.y-a.y)*e}}function Ps(a,t){let e=t.length;if(e>0){let i=t[e-1],n=a*i,s=0;for(let l=0;l<e;l++)if(t[l]>=n){s=l;break}let r=s>0?t[s-1]:0,o=t[s]-r,h=o>0?(n-r)/o:0;return{index:s,t:h}}return{index:0,t:0}}function ks(a,t){return a.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})}function Cs(a,t){let e=a.left<t.right&&a.right>t.left,i=a.top<t.bottom&&a.bottom>t.top;return e&&i}function Rs(a,t,e,i,n,s,r,o,h){let l=n+.01;o=st(o),h=st(h);let d=o*At;h<o&&(h+=360);let p=[];for(;l<e+r;){let u=s;u/2>l&&(u=2*l);let f=Math.max(.01,Math.min(1,l/200));u=u*f;let m=d*ge,g={x:a+l*Math.cos(d),y:t+l*i/e*Math.sin(d)};if(p.push(g),l=n+.01+(m-o)/360*r,d+=2*Math.asin(u/2/l),d*ge>h+360*Math.ceil((e-n)/r))break}return p.shift(),p}function Ss(a,t){return Math.hypot(a.x-t.x,a.y-t.y)<=a.radius+t.radius}var Te={};We(Te,{bounce:()=>zi,byName:()=>ni,circle:()=>Wi,cubic:()=>tt,easingInfo:()=>De,elastic:()=>Ki,exp:()=>Fi,inOut:()=>Vi,linear:()=>Ft,out:()=>pt,pow:()=>As,quad:()=>Ni,sine:()=>Ui,yoyo:()=>ai});function be(a,t){return a._easingInfo=t,a}function De(a){return a?a._easingInfo:void 0}function Ft(a){return a}function Ni(a){return a*a}function tt(a){return a*a*a}function As(a,t){return Math.pow(a,t)}function Fi(a){return Math.pow(2,10*a-10)}function Ui(a){return 1-Math.cos(a*ii)}function Wi(a){return 1-Math.sqrt(1-a*a)}function ai(a){let t=function(i){return i<.5?a(i*2):a((1-i)*2)},e=De(a);return e&&!e.yoyo?be(t,Object.assign(Object.assign({},e),{yoyo:!0})):t}function pt(a){let t=function(i){return 1-a(1-i)},e=De(a);return e&&!e.ease&&!e.yoyo?be(t,Object.assign(Object.assign({},e),{ease:"out"})):t}function Vi(a){let t=function(i){return i<=.5?a(i*2)/2:1-a((1-i)*2)/2},e=De(a);return e&&!e.ease&&!e.yoyo?be(t,Object.assign(Object.assign({},e),{ease:"inOut"})):t}var ri=4/11,$s=6/11,Bs=8/11,Is=3/4,Ms=9/11,Ls=10/11,Es=15/16,Hs=21/22,Os=63/64,ve=1/ri/ri;function zi(a){return 1-Ns(1-a)}function Ns(a){return a=a,a<ri?ve*a*a:a<Bs?ve*(a-=$s)*a+Is:a<Ls?ve*(a-=Ms)*a+Es:ve*(a-=Hs)*a+Os}var Fs=2*Math.PI,ji=1,Gi=.3/Fs,Us=Math.asin(1/ji)*Gi;function Ki(a){let t=a;return ji*Math.pow(2,10*--t)*Math.sin((Us-t)/Gi)}var Yi={linear:Ft,quad:Ni,cubic:tt,exp:Fi,sine:Ui,circle:Wi,bounce:zi,elastic:Ki};E(Yi,(a,t)=>{be(t,{easing:String(a)})});function ni(a,t){let e=a&&Yi[a]||Ft;return t==="out"?pt(e):t==="inOut"?Vi(e):e}var oi=class{constructor(){this.version="5.21.4",this.licenses=[],this.entitiesById={},this.rootElements=[],this.autoDispose=!1,this.geometryFunctions={}}},Bt=new oi;function gr(a){Bt.licenses.push(a)}function _r(){let a;for(;a=Bt.rootElements.pop();)a.dispose()}function yr(a){let t;return Bt.rootElements.forEach(e=>{e.dom.id==a&&(t=e)}),t}var li=class{constructor(t,e){this._userSettings={},this._computedSettings={},this._entity=t,this._settings=e,E(e,i=>{this._userSettings[i]=!0})}get(t,e){let i=this._settings[t];return i!==void 0?i:e}setRaw(t,e){this._settings[t]=e}set(t,e){this._userSettings[t]=!0,delete this._computedSettings[t],this.setRaw(t,e)}_setCRaw(t,e){this.setRaw(t,e),this._computedSettings[t]=!0}_setC(t,e){let i=!this._computedSettings[t]&&this._settings[t]===e;this.set(t,e),i||(this._computedSettings[t]=!0)}remove(t){delete this._userSettings[t],delete this._computedSettings[t],delete this._settings[t]}setAll(t){Nt(t).forEach(([e,i])=>{this.set(e,i)})}_eachSetting(t){E(this._settings,t)}apply(){let t={};t.stateAnimationEasing=!0,t.stateAnimationDuration=!0;let e=this._entity.states.lookup("default");this._eachSetting((i,n)=>{t[i]||(t[i]=!0,this!==e&&(i in e._settings||e._setCRaw(i,this._entity.get(i))),this._entity._setC(i,n))})}applyAnimate(t){t==null&&(t=this._settings.stateAnimationDuration),t==null&&(t=this.get("stateAnimationDuration",this._entity.get("stateAnimationDuration",0)));let e=this._settings.stateAnimationEasing;e==null&&(e=this.get("stateAnimationEasing",this._entity.get("stateAnimationEasing",tt)));let i=this._entity.states.lookup("default"),n={};n.stateAnimationEasing=!0,n.stateAnimationDuration=!0;let s={};return this._eachSetting((r,o)=>{if(!n[r]){n[r]=!0,this!=i&&(r in i._settings||i._setCRaw(r,this._entity.get(r)));let h=this._entity.animate({key:r,to:o,duration:t,easing:e});h&&(s[r]=h)}}),s}},we=class{constructor(t){this._states={},this._entity=t}lookup(t){return this._states[t]}create(t,e){let i=this._states[t];if(i)return i.setAll(e),i;{let n=new li(this._entity,e);return this._states[t]=n,n}}_createC(t,e){let i=this.create(t,e);return E(e,n=>{i._computedSettings[n]=!0}),i}remove(t){delete this._states[t]}apply(t){let e=this._states[t];e&&e.apply(),this._entity._applyState(t)}applyAnimate(t,e){let i,n=this._states[t];return n&&(i=n.applyAnimate(e)),this._entity._applyStateAnimated(t,e),i}};var hi=class{constructor(t){this._callbacks={},this._disabled={},this._entity=t}add(t,e){let i=this._callbacks[t];return i===void 0&&(i=this._callbacks[t]=[]),i.push(e),this._entity._markDirtyKey(t),new _t(()=>{X(i,e)&&this._entity._markDirtyKey(t)})}remove(t){let e=this._callbacks[t];e!==void 0&&(delete this._callbacks[t],e.length!==0&&this._entity._markDirtyKey(t))}enable(t){this._disabled[t]&&(delete this._disabled[t],this._entity._markDirtyKey(t))}disable(t){this._disabled[t]||(this._disabled[t]=!0,this._entity._markDirtyKey(t))}fold(t,e){if(!this._disabled[t]){let i=this._callbacks[t];if(i!==void 0)for(let n=0,s=i.length;n<s;++n)e=i[n](e,this._entity,t)}return e}},Ut=class{constructor(t,e,i,n,s,r,o){this._time=0,this._stopped=!1,this._playing=!0,this._declared=!1,this.events=new St,this._animation=t,this._from=e,this._to=i,this._duration=n,this._easing=s,this._loops=r,this._interpolate=Li(e,i),this._oldTime=o}get to(){return this._to}get duration(){return this._duration}get easing(){return this._easing}get loops(){return this._loops}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((t,e)=>{if(this._stopped)t();else{let i=()=>{n.dispose(),t()},n=this.events.on("stopped",i)}})}_checkEnded(){return this._loops>1?(--this._loops,!1):!0}_run(t){this._oldTime!==null&&(this._time+=t-this._oldTime,this._time>this._duration&&(this._time=this._duration)),this._oldTime=t}_reset(t){this._oldTime=t,this._time=0}_value(t){if(t<=0)return this._from;let e=this._easing(t);return e>=.999999?this._to:e<=1e-6?this._from:this._interpolate(e,this._from,this._to)}},Ws=0;var Xt=0,Zt=class{constructor(t){this.uid=++Ws,this._privateSettings={},this._settingEvents={},this._privateSettingEvents={},this._debouncedSettingEvents={},this._debouncedPrivateSettingEvents={},this._prevSettings={},this._prevPrivateSettings={},this._animatingSettings={},this._animatingPrivateSettings={},this._disposed=!1,this._userProperties={},this._computedProperties={},this._animationBases={},this._animationWriting=0,this.enableDispose=!0,this._settings=t}_checkDirty(){gt(this._settings).forEach(t=>{this._userProperties[t]=!0,this._markDirtyKey(t)})}resetUserSettings(){this._userProperties={},this._computedProperties={}}_runAnimation(t){let e=fe.Stopped;if(!this.isDisposed()){let i=!1,n=!1;E(this._animatingSettings,(s,r)=>{if(r.stopped)this._stopAnimation(s);else if(r.playing){r._run(t);let o=r.percentage;o>=1?r._checkEnded()?this._setAnimated(s,r._value(1)):(i=!0,r._reset(t),this._set(s,r._value(1))):(i=!0,this._set(s,r._value(o)))}else n=!0}),E(this._animatingPrivateSettings,(s,r)=>{if(r.stopped)this._stopAnimationPrivate(s);else if(r.playing){r._run(t);let o=r.percentage;o>=1?r._checkEnded()?this.setPrivate(s,r._value(1)):(i=!0,r._reset(t),this._setPrivate(s,r._value(1))):(i=!0,this._setPrivate(s,r._value(o)))}else n=!0}),i?e=fe.Playing:n&&(e=fe.Paused)}return e}_markDirtyKey(t){this.markDirty()}_markDirtyPrivateKey(t){this.markDirty()}on(t,e){let i=this._settingEvents[t];return i===void 0&&(i=this._settingEvents[t]=[]),i.push(e),new _t(()=>{X(i,e),i.length===0&&delete this._settingEvents[t]})}off(t,e){let i=this._settingEvents[t];i!==void 0&&e!==void 0?X(i,e):delete this._settingEvents[t]}once(t,e){let i=this.on(t,(n,s,r)=>{i.dispose(),e(n,s,r)});return i}_onDebouncedHelper(t,e,i,n){let s=t[e];s===void 0&&(s=t[e]=[]);let r={cb:i,delay:n};return s.push(r),new _t(()=>{r.timeout&&window.clearTimeout(r.timeout),X(s,r),s.length===0&&delete t[e]})}_offDebouncedHelper(t,e,i){let n=t[e];if(n!==void 0)if(i!==void 0){let s=Di(n,r=>r.cb===i);if(s!==-1){let r=n[s];r.timeout&&window.clearTimeout(r.timeout),n.splice(s,1),n.length===0&&delete t[e]}}else _(n,s=>{s.timeout&&window.clearTimeout(s.timeout)}),delete t[e]}onDebounced(t,e,i){return this._onDebouncedHelper(this._debouncedSettingEvents,t,e,i)}offDebounced(t,e){this._offDebouncedHelper(this._debouncedSettingEvents,t,e)}onceDebounced(t,e,i){let n=this.onDebounced(t,(s,r,o)=>{n.dispose(),e(s,r,o)},i);return n}onPrivate(t,e){let i=this._privateSettingEvents[t];return i===void 0&&(i=this._privateSettingEvents[t]=[]),i.push(e),new _t(()=>{X(i,e),i.length===0&&delete this._privateSettingEvents[t]})}offPrivate(t,e){let i=this._privateSettingEvents[t];i!==void 0&&e!==void 0?X(i,e):delete this._privateSettingEvents[t]}onPrivateDebounced(t,e,i){return this._onDebouncedHelper(this._debouncedPrivateSettingEvents,t,e,i)}offDebouncedPrivate(t,e){this._offDebouncedHelper(this._debouncedPrivateSettingEvents,t,e)}getRaw(t,e){let i=this._settings[t];return i!==void 0?i:e}has(t){return t in this._settings}get(t,e){return this.getRaw(t,e)}_sendKeyEvent(t,e){let i=this._settingEvents[t];i!==void 0&&_(i.slice(),s=>{s(e,this,t)});let n=this._debouncedSettingEvents[t];n!==void 0&&_(n,s=>{s.timeout&&window.clearTimeout(s.timeout),s.timeout=window.setTimeout(()=>{s.timeout=void 0,s.cb(e,this,t)},s.delay)})}_sendPrivateKeyEvent(t,e){let i=this._privateSettingEvents[t];i!==void 0&&_(i.slice(),s=>{s(e,this,t)});let n=this._debouncedPrivateSettingEvents[t];n!==void 0&&_(n,s=>{s.timeout&&window.clearTimeout(s.timeout),s.timeout=window.setTimeout(()=>{s.timeout=void 0,s.cb(e,this,t)},s.delay)})}_setRaw(t,e,i){this._prevSettings[t]=e,this._sendKeyEvent(t,i)}setRaw(t,e){let i=this._settings[t];this._settings[t]=e,i!==e&&this._setRaw(t,i,e)}_set(t,e){let i=this._settings[t];this._settings[t]=e,i!==e&&(this._setRaw(t,i,e),this._markDirtyKey(t))}_stopAnimation(t){let e=this._animatingSettings[t];e&&(delete this._animatingSettings[t],e.stop())}set(t,e){return this._set(t,e),this._stopAnimation(t),e}remove(t){t in this._settings&&(this._prevSettings[t]=this._settings[t],delete this._settings[t],this._sendKeyEvent(t,void 0),this._markDirtyKey(t)),this._stopAnimation(t)}removeAll(){_(gt(this._settings),t=>{this.remove(t)})}getPrivate(t,e){let i=this._privateSettings[t];return i!==void 0?i:e}_setPrivateRaw(t,e,i){this._prevPrivateSettings[t]=e,this._sendPrivateKeyEvent(t,i)}setPrivateRaw(t,e){let i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&this._setPrivateRaw(t,i,e)}_setPrivate(t,e){let i=this._privateSettings[t];this._privateSettings[t]=e,i!==e&&(this._setPrivateRaw(t,i,e),this._markDirtyPrivateKey(t))}_stopAnimationPrivate(t){let e=this._animatingPrivateSettings[t];e&&(e.stop(),delete this._animatingPrivateSettings[t])}setPrivate(t,e){return this._setPrivate(t,e),this._stopAnimationPrivate(t),e}removePrivate(t){t in this._privateSettings&&(this._prevPrivateSettings[t]=this._privateSettings[t],delete this._privateSettings[t],this._markDirtyPrivateKey(t)),this._stopAnimationPrivate(t)}setAll(t){E(t,(e,i)=>{this.set(e,i)})}_setAnimated(t,e){let i=this._userProperties[t]&&!this._computedProperties[t];this._animationWriting++;try{this.set(t,e)}finally{this._animationWriting--}i||(this._computedProperties[t]=!0)}animate(t){let e=t.key,i=t.to,n=t.duration||0,s=t.loops||1,r=t.from===void 0?this.get(e):t.from,o=t.easing===void 0?Ft:t.easing;if(n===0)this._setAnimated(e,i);else if(r===void 0||r===i)this._setAnimated(e,i);else{this._setAnimated(e,r);let l=this._animatingSettings[e]=new Ut(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Ut(this,r,i,n,o,s,null);return h.stop(),h}animatePrivate(t){let e=t.key,i=t.to,n=t.duration||0,s=t.loops||1,r=t.from===void 0?this.getPrivate(e):t.from,o=t.easing===void 0?Ft:t.easing;if(n===0)this.setPrivate(e,i);else if(r===void 0||r===i)this.setPrivate(e,i);else{this.setPrivate(e,r);let l=this._animatingPrivateSettings[e]=new Ut(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Ut(this,r,i,n,o,s,null);return h.stop(),h}_dispose(){}isDisposed(){return this._disposed}dispose(){this.enableDispose&&!this._disposed&&(this._disposed=!0,this._dispose())}},V=class extends Zt{constructor(t,e,i,n=[]){if(super(e),this.states=new we(this),this.adapters=new hi(this),this.events=this._createEvents(),this._userPrivateProperties={},this._dirty={},this._dirtyPrivate={},this._templates=[],this._defaultThemes=[],this._templateDisposers=[],this._disposers=[],this._runSetup=!0,this._disposerProperties={},this._builtIn=!1,this._declaredAnimations=[],this._declaredTimers=[],this._animationsApplied=!1,!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=n,e.id&&this._registerId(e.id)}static new(t,e,i){let n=Xt>0,s=!n&&e.themeTags?e.themeTags.slice():void 0;Xt++;try{let r=new this(t,e,!0);return r._builtIn=n,r._userThemeTags=s,r._template=i,r._afterNew(),r}finally{Xt--}}static _new(t,e,i=[]){Xt++;try{let n=new this(t,e,!0,i);return n._builtIn=!0,n._afterNew(),n}finally{Xt--}}_afterNew(){this._checkDirty();let t=!1,e=this._template;e&&(t=!0,e._setObjectTemplate(this)),_(this._internalTemplates,i=>{t=!0,i._setObjectTemplate(this)}),t&&this._applyTemplates(!1),this.states.create("default",{}),this._setDefaults()}_afterNewApplyThemes(){this._checkDirty();let t=this._template;t&&t._setObjectTemplate(this),_(this._internalTemplates,e=>{e._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new St}get classNames(){return this.constructor.classNames}get className(){return this.constructor.className}_setDefaults(){}_setDefaultFn(t,e){let i=this.get(t);if(i)return i;{let n=e();return this._setC(t,n),n}}_setDefault(t,e){this.has(t)||(super.set(t,e),this._computedProperties[t]=!0)}_setRawDefault(t,e){this.has(t)||(super.setRaw(t,e),this._computedProperties[t]=!0)}_clearDirty(){this._animationsApplied=!1,gt(this._dirty).forEach(t=>{this._dirty[t]=!1}),gt(this._dirtyPrivate).forEach(t=>{this._dirtyPrivate[t]=!1})}isDirty(t){return!!this._dirty[t]}isPrivateDirty(t){return!!this._dirtyPrivate[t]}_markDirtyKey(t){this._dirty[t]=!0,super._markDirtyKey(t)}_markDirtyPrivateKey(t){this._dirtyPrivate[t]=!0,super._markDirtyKey(t)}isType(t){return this.classNames.indexOf(t)!==-1}_pushPropertyDisposer(t,e){let i=this._disposerProperties[t];return i===void 0&&(i=this._disposerProperties[t]=[]),i.push(e),e}_disposeProperty(t){let e=this._disposerProperties[t];e!==void 0&&(_(e,i=>{i.dispose()}),delete this._disposerProperties[t])}set template(t){let e=this._template;e!==t&&(this._template=t,e&&e._removeObjectTemplate(this),t&&t._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(t){}_applyStateAnimated(t,e){}get(t,e){let i=this.adapters.fold(t,this._settings[t]);return i!==void 0?i:e}isUserSetting(t){return this._userProperties[t]||!1}set(t,e){return this._userProperties[t]=!0,delete this._computedProperties[t],this._animationWriting||delete this._animationBases[t],super.set(t,e)}_setC(t,e){let i=this._userProperties[t]&&!this._computedProperties[t]&&this._settings[t]===e,n=this.set(t,e);return i||(this._computedProperties[t]=!0),n}_setCRaw(t,e){let i=this._userProperties[t]&&!this._computedProperties[t]&&this._settings[t]===e;this.setRaw(t,e),i||(this._computedProperties[t]=!0)}_markC(...t){return _(t,e=>{this._computedProperties[e]=!0}),this}_setCAll(t){E(t,(e,i)=>{this._setC(e,i)})}isComputedSetting(t){return this._computedProperties[t]||!1}setRaw(t,e){this._userProperties[t]=!0,delete this._computedProperties[t],this._animationWriting||delete this._animationBases[t],super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[t],delete this._computedProperties[t],this._removeTemplateProperty(t)}setPrivate(t,e){return this._userPrivateProperties[t]=!0,super.setPrivate(t,e)}setPrivateRaw(t,e){this._userPrivateProperties[t]=!0,super.setPrivateRaw(t,e)}removePrivate(t){delete this._userPrivateProperties[t],this._removeTemplatePrivateProperty(t)}_setTemplateProperty(t,e,i){if(!this._userProperties[e]){let n=this._findTemplateByKey(e);t===n&&super.set(e,i)}}_setTemplatePrivateProperty(t,e,i){if(!this._userPrivateProperties[e]){let n=this._findTemplateByPrivateKey(e);t===n&&super.setPrivate(e,i)}}_removeTemplateProperty(t){if(!this._userProperties[t]){let e=this._findTemplateByKey(t);e?super.set(t,e._settings[t]):super.remove(t)}}_removeTemplatePrivateProperty(t){if(!this._userPrivateProperties[t]){let e=this._findTemplateByPrivateKey(t);e?super.setPrivate(t,e._privateSettings[t]):super.removePrivate(t)}}_walkParents(t){t(this._root._rootContainer),t(this)}_applyStateByKey(t){let e=this.states.create(t,{}),i={};this._eachTemplate(n=>{let s=n.states.lookup(t);s&&s._apply(e,i)}),E(e._settings,n=>{!i[n]&&!e._userSettings[n]&&e.remove(n)})}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),E(t._settings,(i,n)=>{!e.settings[i]&&!this._userProperties[i]&&(e.settings[i]=!0,super.set(i,n))}),E(t._privateSettings,(i,n)=>{!e.privateSettings[i]&&!this._userPrivateProperties[i]&&(e.privateSettings[i]=!0,super.setPrivate(i,n))}),this._runSetup&&t.setup&&(this._runSetup=!1,t.setup(this))}_findStaticTemplate(t){if(this._template&&t(this._template))return this._template}_eachTemplate(t){this._findStaticTemplate(e=>(t(e),!1)),mt(this._internalTemplates,t),_(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();let e={settings:{},privateSettings:{},states:{}};this._eachTemplate(i=>{this._applyTemplate(i,e)}),t&&(E(this._settings,i=>{!this._userProperties[i]&&!e.settings[i]&&super.remove(i)}),E(this._privateSettings,i=>{!this._userPrivateProperties[i]&&!e.privateSettings[i]&&super.removePrivate(i)}))}_findTemplate(t){let e=this._findStaticTemplate(t);if(e===void 0){let i=Ti(this._internalTemplates,t);return i===void 0?pe(this._templates,t):i}else return e}_findTemplateByKey(t){return this._findTemplate(e=>t in e._settings)}_findTemplateByPrivateKey(t){return this._findTemplate(e=>t in e._privateSettings)}_disposeTemplates(){_(this._templateDisposers,t=>{t.dispose()}),this._templateDisposers.length=0}_removeTemplates(){_(this._templates,t=>{t._removeObjectTemplate(this)}),this._templates.length=0}_applyThemes(t=!1){if(this.get("ignoreThemes"))return!1;let e=!1,i=[],n=[],s=new Set,r=this.get("themeTagsSelf");return r&&_(r,o=>{s.add(o)}),this._walkParents(o=>{o===this._root._rootContainer&&(e=!0),o._defaultThemes.length>0&&i.push(o._defaultThemes);let h=o.get("themes");h&&n.push(h);let l=o.get("themeTags");l&&_(l,d=>{s.add(d)})}),n=i.concat(n),this._removeTemplates(),(e||t)&&mt(this.classNames,o=>{let h=[];_(n,l=>{_(l,d=>{let p=d._lookupRules(o);p&&mt(p,u=>{if(u.tags.every(m=>s.has(m))){let m=wi(h,g=>{let v=ti(u.tags.length,g.tags.length);return v===0?Ei(u.tags,g.tags,ti):v});h.splice(m.index,0,u)}})})}),_(h,l=>{this._templates.push(l.template),l.template._setObjectTemplate(this)})}),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_stopDeclaredAnimations(t=!0){_(this._declaredTimers,e=>this.removeDispose(e)),this._declaredTimers=[],_(this._declaredAnimations,e=>e.animation.stop()),this._declaredAnimations=[],t&&(E(this._animationBases,(e,i)=>{this._set(e,i.value),i.user?this._userProperties[e]=!0:delete this._userProperties[e],i.computed?this._computedProperties[e]=!0:delete this._computedProperties[e]}),this._animationBases={})}_playDeclaredAnimations(){this._stopDeclaredAnimations();let t=this.get("animations");!t||!t.length||_(t,e=>{let i=e.target==="dataItem"?this.dataItem:this,n=e.key;if(!i||!n)return;i===this&&!this._animationBases[n]&&(this._animationBases[n]={value:this._settings[n],user:!!this._userProperties[n],computed:!!this._computedProperties[n]});let s=ni(e.easing,e.ease),r=e.duration||0,o=e.loops===0?1/0:e.loops||1,h=()=>{if(i.isDisposed())return;let l=i.animate({key:n,from:e.from,to:e.to,duration:e.yoyo?r*2:r,easing:e.yoyo?ai(s):s,loops:o});l._declared=!0,this._declaredAnimations.push({target:i,key:n,animation:l})};e.delay?this._declaredTimers.push(this.setTimeout(h,e.delay)):h()})}_applyDeclaredAnimations(){!this._animationsApplied&&this.isDirty("animations")&&(this._animationsApplied=!0,this._playDeclaredAnimations())}_beforeChanged(){if(this._applyDeclaredAnimations(),this.isDirty("id")){let t=this.get("id");t&&this._registerId(t);let e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete Bt.entitiesById[e])}}_registerId(t){if(this._root.entitiesById[t]&&this._root.entitiesById[t]!==this)throw new Error('An entity with id "'+t+'" already exists.');this._root.entitiesById[t]=this,Bt.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose(),this._stopDeclaredAnimations(!1);let t=this._template;t&&t._removeObjectTemplate(this),_(this._internalTemplates,i=>{i._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach(i=>{i.dispose()}),E(this._disposerProperties,(i,n)=>{_(n,s=>{s.dispose()})});let e=this.get("id");e&&(delete this._root.entitiesById[e],delete Bt.entitiesById[e])}setTimeout(t,e){let i=setTimeout(()=>{this.removeDispose(n),t()},e),n=new _t(()=>{clearTimeout(i)});return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=Gt(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return Gt(this.get("themeTags",[]),t)!==-1}addTag(t){if(!this.hasTag(t)){let e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}_getUserThemeTags(){let t=this._userThemeTags;if(!t)return[];let e=this.get("themeTags",[]);return t.filter(i=>e.indexOf(i)!==-1)}_addUserThemeTags(t){let e=this._userThemeTags||[];_(t,i=>{e.indexOf(i)===-1&&e.push(i)}),this._userThemeTags=e}removeTag(t){if(this.hasTag(t)){let e=this.get("themeTags",[]);de(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}};V.className="Entity";V.classNames=["Entity"];var Pe=class a extends St{constructor(t){super(),this._rendererDisposers={},this._dispatchParents=!0,this._sprite=t}_makePointerEvent(t,e){return{type:t,originalEvent:e.event,point:e.point,simulated:e.simulated,native:e.native,target:this._sprite}}_onRenderer(t,e){this._sprite._setC("interactive",!0),this._sprite._display.interactive=!0;let i=this._rendererDisposers[t];if(i===void 0){let n=this._sprite._display.on(t,s=>{e.call(this,s)});i=this._rendererDisposers[t]=new ki(()=>{delete this._rendererDisposers[t],n.dispose()})}return i.increment()}_on(t,e,i,n,s,r,o){let h=super._on(t,e,i,n,s,r,o),l=a.RENDERER_EVENTS[e];return l!==void 0&&(h.disposer=new yt([h.disposer,this._onRenderer(e,l)])),h}stopParentDispatch(){this._dispatchParents=!1}dispatchParents(t,e){let i=this._dispatchParents;this._dispatchParents=!0;try{this.dispatch(t,e),this._dispatchParents&&this._sprite.parent&&this._sprite.parent.events.dispatchParents(t,e)}finally{this._dispatchParents=i}}};Pe.RENDERER_EVENTS={click:function(a){this.isEnabled("click")&&!this._sprite.isDragging()&&this._sprite._hasDown()&&!this._sprite._hasMoved(this._makePointerEvent("click",a))&&this.dispatch("click",this._makePointerEvent("click",a))},rightclick:function(a){this.isEnabled("rightclick")&&this.dispatch("rightclick",this._makePointerEvent("rightclick",a))},middleclick:function(a){this.isEnabled("middleclick")&&this.dispatch("middleclick",this._makePointerEvent("middleclick",a))},dblclick:function(a){this.dispatchParents("dblclick",this._makePointerEvent("dblclick",a))},pointerover:function(a){let t=this._sprite,e=!0;if(t.getPrivate("trustBounds")){t._getBounds();let i=t.globalBounds();if(t.isType("Graphics")){let n=t.get("strokeWidth",1)/2;n>=1&&(i.left-=n,i.right+=n,i.top-=n,i.bottom+=n)}si(a.point,i)||(e=!1,t._root._renderer.removeHovering(t._display))}e&&this.isEnabled("pointerover")&&this.dispatch("pointerover",this._makePointerEvent("pointerover",a))},pointerout:function(a){this.isEnabled("pointerout")&&this.dispatch("pointerout",this._makePointerEvent("pointerout",a))},pointerdown:function(a){this.dispatchParents("pointerdown",this._makePointerEvent("pointerdown",a))},pointerup:function(a){this.isEnabled("pointerup")&&this.dispatch("pointerup",this._makePointerEvent("pointerup",a))},globalpointerup:function(a){this.isEnabled("globalpointerup")&&this.dispatch("globalpointerup",this._makePointerEvent("globalpointerup",a))},globalpointermove:function(a){this.isEnabled("globalpointermove")&&this.dispatch("globalpointermove",this._makePointerEvent("globalpointermove",a))},globalpointerdown:function(a){this.isEnabled("globalpointerdown")&&this.dispatch("globalpointerdown",this._makePointerEvent("globalpointerdown",a))},wheel:function(a){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:a.event,point:a.point})}};var F=class extends V{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={},this._appeared=!1,this._appearApplied=!1,this._appearPending=!1}_afterNew(){this.setPrivateRaw("visible",!0),super._afterNew()}markDirtyKey(t){this._markDirtyKey(t)}_markDirtyKey(t){super._markDirtyKey(t),(t=="x"||t=="y"||t=="dx"||t=="dy")&&(this.markDirtyBounds(),this._addPercentagePositionChildren(),this.markDirtyPosition())}_markDirtyPrivateKey(t){super._markDirtyPrivateKey(t),(t=="x"||t=="y")&&this.markDirtyPosition()}_removeTemplateField(){this._templateField&&this._templateField._removeObjectTemplate(this)}_createEvents(){return new Pe(this)}_processTemplateField(){let t,e=this.get("templateField");if(e){let i=this.dataItem;if(i){let n=i.dataContext;n&&(t=n[e],!(t instanceof ei)&&t&&(t=ei.new(t)))}}this._templateField!==t&&(this._removeTemplateField(),this._templateField=t,t&&t._setObjectTemplate(this),this._applyTemplates())}_setDataItem(t){let e=this._dataItem;this._dataItem=t,this._processTemplateField();let i="dataitemchanged";if(t!=e){let n=this.get("animations");n&&n.some(s=>s.target==="dataItem")&&this._markDirtyKey("animations"),this.events.isEnabled(i)&&this.events.dispatch(i,{type:i,target:this,oldDataItem:e,newDataItem:t})}}set dataItem(t){this._setDataItem(t)}get dataItem(){if(this._dataItem)return this._dataItem;{let t=this._parent;for(;t;){if(t._dataItem)return t._dataItem;t=t._parent}}}_addPercentageSizeChildren(){let t=this.parent;t&&(this.get("width")instanceof A||this.get("height")instanceof A?Ye(t._percentageSizeChildren,this):X(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof A||this.get("y")instanceof A?Ye(t._percentagePositionChildren,this):X(t._percentagePositionChildren,this))}markDirtyPosition(){this._root._addDirtyPosition(this)}updatePivotPoint(){let t=this._localBounds;if(t){let e=this.get("centerX");e!=null&&(this._display.pivot.x=t.left+J(e,t.right-t.left));let i=this.get("centerY");i!=null&&(this._display.pivot.y=t.top+J(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),this._applyAutoAppear(),this._handleStates(),this.isDirty("tooltip")){let t=this._prevSettings.tooltip;t&&t.dispose()}if((this.isDirty("layer")||this.isDirty("layerMargin"))&&(this._display.setLayer(this.get("layer"),this.get("layerMargin")),this.markDirtyLayer()),this.isDirty("tooltipPosition")){let t=this._tooltipMoveDp;t&&(t.dispose(),this._tooltipMoveDp=void 0);let e=this._tooltipPointerDp;e&&(e.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 yt([this.events.on("pointerover",()=>{let i=this._tooltipMoveDp;i&&(i.dispose(),this._tooltipMoveDp=void 0),this._tooltipMoveDp=this.events.on("globalpointermove",n=>{this.showTooltip(n.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._setC("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this._setC("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this._setC("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this._setC("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();let t=this._display,e=this.events;if(this.isDirty("draggable")){let i=this.get("draggable");i?(this._setC("interactive",!0),this._dragDp=new yt([e.on("pointerdown",n=>{this.dragStart(n)}),e.on("globalpointermove",n=>{this.dragMove(n)}),e.on("globalpointerup",n=>{this.dragStop(n)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!i}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){let i=this.get("tooltipText"),n=this.get("tooltipHTML"),s=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(i||n)&&(s=="click"?(this._tooltipDp=new yt([e.on("click",()=>{this.setTimeout(()=>{let r=this.getTooltip();r&&!r.isHidden()&&r.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()},10)}),Ci(document,"click",r=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):s=="always"||(this._tooltipDp=new yt([e.on("pointerover",()=>{this.showTooltip()}),e.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let i=this.get("toggleKey");i&&i!="none"?this._toggleDp=e.on("click",()=>{this._isDragging||this.set(i,!this.get(i))}):this._toggleDp&&(this._toggleDp.dispose(),this._toggleDp=void 0)}if(this.isDirty("opacity")&&(t.alpha=Math.max(0,this.get("opacity",1)),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("rotation")&&(this.markDirtyBounds(),t.angle=this.get("rotation",0)),this.isDirty("scale")&&(this.markDirtyBounds(),t.scale=this.get("scale",0)),this.isPrivateDirty("deform")&&(this.markDirtyBounds(),t.deform=this.getPrivate("deform")||null),(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")?(t.visible=!1,this.hideTooltip()):t.visible=!0,this.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()),this.isDirty("width")||this.isDirty("height")){this.markDirtyBounds(),this._addPercentageSizeChildren();let i=this.parent;i&&(this.isDirty("width")&&this.get("width")instanceof A||this.isDirty("height")&&this.get("height")instanceof A)&&(i.markDirty(),i._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 i=this.get("wheelable");i&&this._setC("interactive",!0),t.wheelable=!!i}if(this.isPrivateDirty("focusExcluded")&&this.get("focusable")&&(this._root._registerTabindexOrder(this),this.markDirtyAccessibility()),(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")||this.isDirty("blur")||this.isDirty("saturate")||this.isDirty("brightness")||this.isDirty("contrast")||this.isDirty("sepia")||this.isDirty("hue")||this.isDirty("invert")){let i=this.get("filter",""),n=this.get("blur",0);n!=0&&(i+=" blur("+n+"px)");let s=this.get("saturate",1);s!=1&&(i+=" saturate("+s+")");let r=this.get("brightness",1);r!=1&&(i+=" brightness("+r+")");let o=this.get("contrast",1);o!=1&&(i+=" contrast("+o+")");let h=this.get("sepia",0);h!=0&&(i+=" sepia("+h+")");let l=this.get("hue",0);l!=0&&(i+=" hue-rotate("+l+"deg)");let d=this.get("invert",0);d!=0&&(i+=" invert("+d+")"),t.filter=i.trim()}if(this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new yt([e.on("focus",()=>{let i=this.getTooltip();i&&(i._focusAnnounce=!0),this.showTooltip()}),e.on("blur",()=>{let i=this.getTooltip();i&&(i._focusAnnounce=!1),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(e.on("blur",()=>{this.setPrivateRaw("touchHovering",!1)})),this._disposers.push(e.once("boundschanged",()=>{this.markDirtyAccessibility()}))),(this.isPrivateDirty("focusable")||this.isPrivateDirty("focusOutOfView"))&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaCurrent")||this.isDirty("ariaSelected")||this.isDirty("ariaExpanded")||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")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){let i=this.events;this.get("interactive")&&!i.isDisposed()?this._hoverDp=new yt([i.on("click",n=>{qe(n.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:n.target,originalEvent:n.originalEvent,point:n.point,simulated:n.simulated})},10))}),i.on("globalpointerup",n=>{qe(n.originalEvent)&&this.getPrivate("touchHovering")&&!this.isHover()&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:n.target,originalEvent:n.originalEvent,point:n.point,simulated:n.simulated})),this._isDown&&this._handleUp(n)}),i.on("pointerover",()=>{this._handleOver()}),i.on("pointerout",()=>{this._handleOut()}),i.on("pointerdown",n=>{this._handleDown(n)})]):(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(t){this._dragEvent=t,this.events.stopParentDispatch()}dragStop(t){if(this._dragEvent=void 0,this._dragPoint=void 0,this.events.stopParentDispatch(),this._isDragging){this._isDragging=!1;let e="dragstop";this.events.isEnabled(e)&&this.events.dispatch(e,{type:e,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.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(t){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 e=ce(t.originalEvent);delete this._downPoints[e],gt(this._downPoints).length==0&&(this._isDown=!1)}}_hasMoved(t){let e=ce(t.originalEvent),i=this._downPoints[e];if(i){let n=Math.abs(i.x-t.point.x),s=Math.abs(i.y-t.point.y);return n>5||s>5}return!1}_hasDown(){return gt(this._downPoints).length>0}_handleDown(t){let e=this.parent;if(e&&!this.get("draggable")&&e._handleDown(t),this.get("interactive")&&!this.isHidden()){this.states.lookup("down")&&this.states.applyAnimate("down"),this._downPoint={x:t.point.x,y:t.point.y},this._isDown=!0;let i=ce(t.originalEvent);this._downPoints[i]={x:t.point.x,y:t.point.y}}}dragMove(t){let e=this._dragEvent;if(e){if(e.simulated&&!t.simulated)return!0;let i=0,n=this.parent,s=1;for(;n!=null;)i+=n.get("rotation",0),s*=n.get("scale",1),n=n.parent;let r=(t.point.x-e.point.x)/s,o=(t.point.y-e.point.y)/s,h=this.events;if(e.simulated&&!this._isDragging){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";h.isEnabled(l)&&h.dispatch(l,{type:l,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}if(this._isDragging){let l=this._dragPoint;this.set("x",l.x+r*ut(i)+o*dt(i)),this.set("y",l.y+o*ut(i)-r*dt(i));let d="dragged";h.isEnabled(d)&&h.dispatch(d,{type:d,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}else if(Math.hypot(r,o)>5){this._isDragging=!0,this._dragEvent=t,this._dragPoint={x:this.x(),y:this.y()};let l="dragstart";h.isEnabled(l)&&h.dispatch(l,{type:l,target:this,originalEvent:t.originalEvent,point:t.point,simulated:t.simulated})}}}_updateSize(){}_getBounds(){this._localBounds=this._display.getLocalBounds()}depth(){let t=this.parent,e=0;for(;;)if(t)++e,t=t.parent;else return e}markDirtySize(){this._sizeDirty=!0,this.markDirty()}markDirtyBounds(){let t=this._display;if(this.get("isMeasured")){this._root._addDirtyBounds(this),t.isMeasured=!0,t.invalidateBounds();let e=this.parent;e&&this.get("position")!="absolute"&&(e.get("width")==null||e.get("height")==null||e.get("layout"))&&e.markDirtyBounds(),this.get("focusable")&&this.markDirtyAccessibility()}}markDirtyAccessibility(){this._root._invalidateAccessibility(this)}markDirtyLayer(){this._display.markDirtyLayer(!0)}markDirty(){super.markDirty(),this.markDirtyLayer()}_updateBounds(){let t=this._adjustedLocalBounds,e;if(!this.get("visible")||!this.getPrivate("visible")||this.get("forceHidden")?(e={left:0,right:0,top:0,bottom:0},this._localBounds=e,this._adjustedLocalBounds=e):(this._getBounds(),this._fixMinBounds(this._localBounds),this.updatePivotPoint(),this._adjustedLocalBounds=this._display.getAdjustedBounds(this._localBounds),e=this._adjustedLocalBounds),!t||t.left!==e.left||t.top!==e.top||t.right!==e.right||t.bottom!==e.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(),this.get("focusable")&&this.markDirtyAccessibility()}}_fixMinBounds(t){let e=this.get("minWidth",this.getPrivate("minWidth")),i=this.get("minHeight",this.getPrivate("minHeight"));D(e)&&t.right-t.left<e&&(t.right=t.left+e),D(i)&&t.bottom-t.top<i&&(t.bottom=t.top+i);let n=this.getPrivate("width"),s=this.getPrivate("height");D(n)&&(n>0?t.right=t.left+n:t.left=t.right+n),D(s)&&(s>0?t.bottom=t.top+s:t.top=t.bottom+s)}_removeParent(t){t&&(t.children.removeValue(this),X(t._percentageSizeChildren,this),X(t._percentagePositionChildren,this))}_autoAppearReady(){return!0}_applyAutoAppear(){if(this.isDirty("autoAppear")&&!this.get("autoAppear")&&(this._appeared=!1),this._appearApplied||this._appeared||!this.get("autoAppear")||!this._autoAppearReady()||(this._appearApplied=!0,this._appeared=!0,this.get("visible")===!1||this.isHidden()||this.isShowing()))return;let t=this.get("appearDuration"),e=this.get("appearDelay",0);this._appearPending=!0,this.hide(0).then(()=>{let i=()=>{this._appearPending=!1,this.isDisposed()||(this.show(t),this._replayDeclaredAnimations())};e?this.setTimeout(i,e):i()})}_replayDeclaredAnimations(){let t=this.get("animations"),e=this.states.lookup("hidden");if(t&&e){let i=Object.keys(e._settings);t.some(n=>n.target!=="dataItem"&&i.indexOf(n.key)!==-1)&&this._playDeclaredAnimations()}}_clearDirty(){super._clearDirty(),this._appearApplied=!1,this._sizeDirty=!1}hover(){this.isDisposed()||(this.showTooltip(),this._handleOver())}unhover(){this.isDisposed()||(this.hideTooltip(),this._handleOut())}showTooltip(t){if(!this.isDisposed()){let e=this.getTooltip(),i=this.get("tooltipText"),n=this.get("tooltipHTML");if((i||n)&&e){let s=this.get("tooltipPosition"),r=this.getPrivate("tooltipTarget",this);if(s=="pointer"&&!t&&(t=this.getPrivate("lastTooltipCoords")),(s=="fixed"||!t)&&(this._display._setMatrix(),t=this.toGlobal(r._getTooltipPoint())),s=="pointer"){let l=this.getPrivate("lastTooltipCoords");if(l&&l.x==t.x&&l.y==t.y)return;this.setPrivate("lastTooltipCoords",t)}e.set("pointTo",t),e.set("tooltipTarget",r),e.get("x")||e.set("x",t.x),e.get("y")||e.set("y",t.y),i&&e.label.set("text",i),n&&e.label.set("html",n);let o=this.dataItem;if(o&&e.label._setDataItem(o),this.get("showTooltipOn")=="always"&&(t.x<0||t.x>this._root.width()||t.y<0||t.y>this._root.height())){this.hideTooltip();return}e.label.text.markDirtyText();let h=e.show();return this.setPrivateRaw("showingTooltip",!0),h}}}hideTooltip(){let t=this.getTooltip();if(t&&(this.removePrivate("lastTooltipCoords"),t.get("tooltipTarget")==this.getPrivate("tooltipTarget",this)||this.get("tooltip")==t)){let e=t.get("keepTargetHover")&&t.get("stateAnimationDuration",0)==0?400:void 0,i=t.hide(e);return this.setPrivateRaw("showingTooltip",!1),i}}_getTooltipPoint(){let t=this._localBounds;if(t){let e=0,i=0;return this.get("isMeasured")?(e=t.left+J(this.get("tooltipX",0),t.right-t.left),i=t.top+J(this.get("tooltipY",0),t.bottom-t.top)):(e=J(this.get("tooltipX",0),this.width()),i=J(this.get("tooltipY",0),this.height())),{x:e,y:i}}return{x:0,y:0}}getTooltip(){let t=this.get("tooltip");if(t)return t;{let e=this.parent;if(e)return e.getTooltip()}}_updatePosition(){let t=this.parent,e=this.get("dx",0),i=this.get("dy",0),n=this.get("x"),s=this.getPrivate("x"),r=0,o=0,h=this.get("position");n instanceof A&&(t?n=t.innerWidth()*n.value+t.get("paddingLeft",0):n=0),D(n)?r=n+e:s!=null?r=s:t&&h=="relative"&&(r=t.get("paddingLeft",0)+e);let l=this.get("y"),d=this.getPrivate("y");l instanceof A&&(t?l=t.innerHeight()*l.value+t.get("paddingTop",0):l=0),D(l)?o=l+i:d!=null?o=d:t&&h=="relative"&&(o=t.get("paddingTop",0)+i);let p=this._display;if(p.x!=r||p.y!=o){p.invalidateBounds(),p.x=r,p.y=o;let u="positionchanged";this.events.isEnabled(u)&&this.events.dispatch(u,{type:u,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x"),i=this.parent;return i?t instanceof A?J(t,i.innerWidth())+i.get("paddingLeft",0):D(t)?t:e??i.get("paddingLeft",this._display.x):this._display.x}y(){let t=this.getPrivate("y");if(t!=null)return t;let e=this.get("y"),i=this.parent;return i?e instanceof A?J(e,i.innerHeight())+i.get("paddingTop",0):D(e)?e:t??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 t=this.get("tooltip");t&&t.dispose(),this.markDirty()}adjustedLocalBounds(){return this._fixMinBounds(this._adjustedLocalBounds),this._adjustedLocalBounds}localBounds(){return this._localBounds}bounds(){let t=this._adjustedLocalBounds,e=this.x(),i=this.y();return{left:t.left+e,right:t.right+e,top:t.top+i,bottom:t.bottom+i}}globalBounds(){return this._toGlobalBounds(this.localBounds())}_focusBounds(){return this.get("isMeasured")?this.globalBounds():this._toGlobalBounds(this._display.getContentBounds())}_toGlobalBounds(t){let e=this.toGlobal({x:t.left,y:t.top}),i=this.toGlobal({x:t.right,y:t.top}),n=this.toGlobal({x:t.right,y:t.bottom}),s=this.toGlobal({x:t.left,y:t.bottom});return{left:Math.min(e.x,i.x,n.x,s.x),top:Math.min(e.y,i.y,n.y,s.y),right:Math.max(e.x,i.x,n.x,s.x),bottom:Math.max(e.y,i.y,n.y,s.y)}}_onShow(t){}_onHide(t){}appear(t,e){return Y(this,void 0,void 0,function*(){return this._appearPending=!0,yield this.hide(0),e?new Promise((i,n)=>{this.setTimeout(()=>{this._appearPending=!1,i(this.show(t))},e)}):(this._appearPending=!1,this.show(t))})}show(t){return Y(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._setC("visible",!0),this._onShow(t);let e=this.states.applyAnimate("default",t);yield Je(e),this._isShowing=!1}})}hide(t){return Y(this,void 0,void 0,function*(){if(!this._isHiding&&!this._isHidden){this._isHiding=!0,this._isShowing=!1;let e=this.states.lookup("hidden");e||(e=this.states._createC("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);let i=this.states.applyAnimate("hidden",t);yield Je(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 t=this.get("opacity",1);return this._parent?this._parent.compositeOpacity()*t:t}compositeScale(){let t=this.get("scale",1);return this._parent?this._parent.compositeScale()*t:t}compositeRotation(){let t=this.get("rotation",0);return this._parent?this._parent.compositeRotation()+t:t}width(){let t=this.get("width"),e=this.get("maxWidth",this.getPrivate("maxWidth")),i=this.get("minWidth",this.getPrivate("minWidth")),n=this.getPrivate("width"),s=0;if(D(n))s=n;else if(t==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.right-this._adjustedLocalBounds.left);else if(t instanceof A){let r=this.parent;r?s=r.innerWidth()*t.value:s=this._root.width()*t.value}else D(t)&&(s=t);return D(i)&&(s=Math.max(i,s)),D(e)&&(s=Math.min(e,s)),s}maxWidth(){let t=this.get("maxWidth",this.getPrivate("maxWidth"));if(D(t))return t;{let i=this.get("width");if(D(i))return i}let e=this.parent;return e?e.innerWidth():this._root.width()}maxHeight(){let t=this.get("maxHeight",this.getPrivate("maxHeight"));if(D(t))return t;{let i=this.get("height");if(D(i))return i}let e=this.parent;return e?e.innerHeight():this._root.height()}height(){let t=this.get("height"),e=this.get("maxHeight",this.getPrivate("maxHeight")),i=this.get("minHeight",this.getPrivate("minHeight")),n=this.getPrivate("height"),s=0;if(D(n))s=n;else if(t==null)this._adjustedLocalBounds&&(s=this._adjustedLocalBounds.bottom-this._adjustedLocalBounds.top);else if(t instanceof A){let r=this.parent;r?s=r.innerHeight()*t.value:s=this._root.height()*t.value}else D(t)&&(s=t);return D(i)&&(s=Math.max(i,s)),D(e)&&(s=Math.min(e,s)),s}_findStaticTemplate(t){return this._templateField&&t(this._templateField)?this._templateField:super._findStaticTemplate(t)}_walkParents(t){(this._parent||this._virtualParent)&&this._walkParent(t)}_walkParent(t){this._parent?this._parent._walkParent(t):this._virtualParent&&this._virtualParent._walkParent(t),t(this)}set virtualParent(t){this._virtualParent!==t&&(this._virtualParent=t,this._applyThemes())}get parent(){return this._parent}_setParent(t,e=!1){let i=this._parent;t!==i&&(this.markDirtyBounds(),t.markDirty(),this._parent=t,e&&(this._removeParent(i),t&&(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(t){return this._display.toGlobal(t)}toLocal(t){return this._display.toLocal(t)}_getDownPoint(){let t=this._getDownPointId();if(t)return this._downPoints[t]}_getDownPointId(){if(this._downPoints)return Pi(this._downPoints,(t,e)=>t>e?1:t<e?-1:0)[0]}toFront(){let t=this.parent;t&&t.children.moveValue(this,t.children.length-1)}toBack(){let t=this.parent;t&&t.children.moveValue(this,0)}};F.className="Sprite";F.classNames=V.classNames.concat([F.className]);var vt=class extends V{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 t=this.get("repetition",""),e=this.get("width",100),i=this.get("height",100),n=this.get("fill"),s=this.get("fillOpacity",1),r=this._backgroundDisplay,o=this._display;o.clear(),r.clear(),n&&s>0&&(r.beginFill(n,s),r.drawRect(0,0,e,i),r.endFill()),o.angle=this.get("rotation",0),this._draw(),this._pattern=this._root._renderer.createPattern(o,r,t,e,i)}this._clear=!1}};vt.className="Pattern";vt.classNames=V.classNames.concat([vt.className]);var xt=class extends vt{_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();let t=this.get("canvas");t&&(this.set("width",t.width),this.set("height",t.height))}_draw(){super._draw();let t=this.get("colorOpacity");t!==void 0&&(this._display.alpha=Math.max(0,t));let e=this._image;if(e){let n=this.get("width",100),s=this.get("height",100),r=this.get("fit","image"),o=0,h=0;r=="pattern"?(o=n,h=s,this.markDirty()):(o=e.width,h=e.height,r=="image"&&(this.set("width",o),this.set("height",h)));let l=this.get("centered",!0),d=0,p=0;l&&(d=n/2-o/2,p=s/2-h/2),this._display.image(e,o,h,d,p)}let i=this.get("canvas");i&&this._display.image(i,i.width,i.height,0,0)}_load(){let t=this.get("src");if(t){let e=new Image;e.src=t,e.decode().then(()=>{this._image=e,this._draw(),this.events.isEnabled("loaded")&&this.events.dispatch("loaded",{type:"loaded",target:this})}).catch(i=>{})}}};xt.className="PicturePattern";xt.classNames=vt.classNames.concat([xt.className]);var ke;(function(a){a.ADD="lighter",a.COLOR="color",a.COLOR_BURN="color-burn",a.COLOR_DODGE="color-dodge",a.DARKEN="darken",a.DIFFERENCE="difference",a.DST_OVER="destination-over",a.EXCLUSION="exclusion",a.HARD_LIGHT="hard-light",a.HUE="hue",a.LIGHTEN="lighten",a.LUMINOSITY="luminosity",a.MULTIPLY="multiply",a.NORMAL="source-over",a.OVERLAY="overlay",a.SATURATION="saturation",a.SCREEN="screen",a.SOFT_LIGHT="soft-light",a.SRC_ATOP="source-atop",a.XOR="xor"})(ke||(ke={}));var zr=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"],et=class extends F{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.isDirty("shadowOpacity"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){let t=this.get("fillGradient");if(t){this._display.isMeasured=!0;let e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",()=>{this._markDirtyKey("fill")})),this._disposers.push(e.events.on("positionchanged",()=>{this._markDirtyKey("fill")})))}}if(this.isDirty("strokeGradient")){let t=this.get("strokeGradient");if(t){this._display.isMeasured=!0;let e=t.get("target");e&&(this._disposers.push(e.events.on("boundschanged",()=>{this._markDirtyKey("stroke")})),this._disposers.push(e.events.on("positionchanged",()=>{this._markDirtyKey("stroke")})))}}}_changed(){if(super._changed(),this._clear){this.markDirtyBounds(),this.markDirtyLayer(),this._display.clear();let t=this.get("strokeDasharray");D(t)&&(t<.5?t=[0]:t=[t]),this._display.setLineDash(t);let e=this.get("strokeDashoffset");e&&this._display.setLineDashOffset(e);let i=this.get("blendMode",ke.NORMAL);this._display.blendMode=i;let n=this.get("draw");n&&typeof n=="function"&&n(this._display,this);let s=this.get("svgPath");s!=null&&this._display.svgPath(s)}}_afterChanged(){if(super._afterChanged(),this._clear){let t=this.get("fill"),e=this.get("fillGradient"),i=this.get("fillPattern"),n=this.get("fillOpacity"),s=this.get("stroke"),r=this.get("strokeGradient"),o=this.get("strokePattern"),h=this.get("shadowColor"),l=this.get("shadowBlur"),d=this.get("shadowOffsetX"),p=this.get("shadowOffsetY"),u=this.get("shadowOpacity");if(h&&(l||d||p)&&this._display.shadow(h,l,d,p,u),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){let m=e.get("stops",[]);m.length&&_(m,g=>{(!g.color||g.colorInherited)&&t&&(g.color=t,g.colorInherited=!0),(g.opacity==null||g.opacityInherited)&&(g.opacity=n,g.opacityInherited=!0)})}let f=e.getFill(this);f&&(this._display.beginFill(f,n),this._display.endFill())}if(i){let f=i.pattern;f&&(this._display.beginFill(f,n),this._display.endFill(),i instanceof xt&&i.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(s||r||o){let f=this.get("strokeOpacity"),m=this.get("strokeWidth",1);this.get("nonScalingStroke")&&(m=m/this.get("scale",1)),this.get("crisp")&&(m/=this._root._renderer.resolution);let g=this.get("lineJoin"),v=this.get("lineCap");if(s&&!r&&(this._display.lineStyle(m,s,f,g,v),this._display.endStroke()),r){let x=r.get("stops",[]);x.length&&_(x,w=>{(!w.color||w.colorInherited)&&s&&(w.color=s,w.colorInherited=!0),(w.opacity==null||w.opacityInherited)&&(w.opacity=f,w.opacityInherited=!0)});let c=r.getFill(this);c&&(this._display.lineStyle(m,c,f,g,v),this._display.endStroke())}if(o){let x=o.pattern;x&&(this._display.lineStyle(m,x,f,g,v),this._display.endStroke(),o instanceof xt&&o.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}if(this.getPrivate("showingTooltip")&&this.showTooltip(),this.get("focusable")&&!this.get("isMeasured")){let f=this.getPrivate("focusElement");f&&(this._root.focused(this)||f.dom.getAttribute("aria-hidden")=="true"==this._root._hasFocusSize(this))&&this.markDirtyAccessibility()}}this._clear=!1}};et.className="Graphics";et.classNames=F.classNames.concat([et.className]);var ft=class extends et{_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.isDirty("containStroke"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let t=this.width(),e=this.height(),i=0,n=0,s=t/Math.abs(t),r=e/Math.abs(e);if(this.get("containStroke",!1)){let o=this.get("strokeWidth",0);t-=o*s,e-=o*r,i+=o/2*s,n+=o/2*r}this._display.drawRect(i,n,t,e)}_updateSize(){this.markDirty(),this._clear=!0}};ft.className="Rectangle";ft.classNames=et.classNames.concat([ft.className]);function Z(a,t){a.get("reverseChildren",!1)?a.children.eachReverse(t):a.children.each(t)}var G=class extends V{};G.className="Layout";G.classNames=V.classNames.concat([G.className]);var bt=class extends G{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),n=0;Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof A){n+=o.value;let h=i*o.value,l=r.get("minWidth",r.getPrivate("minWidth",-1/0));l>h&&(i-=l,n-=o.value);let d=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h>d&&(i-=d,n-=o.value)}else D(o)||(o=r.width()),i-=o+r.get("marginLeft",0)+r.get("marginRight",0)}}),(i<=0||i==1/0)&&(i=.1),Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof A){let h=i*o.value/n-r.get("marginLeft",0)-r.get("marginRight",0),l=r.get("minWidth",r.getPrivate("minWidth",-1/0)),d=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h=Math.min(Math.max(l,h),d),r.setPrivate("width",h)}else r._prevSettings.width instanceof A&&r.setPrivate("width",void 0)}});let s=e;Z(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginLeft",0),l=r.get("marginRight",0),d=r.get("maxWidth"),p=o.left,u=o.right;d&&u-p>d&&(u=p+d);let f=s+h-p;r.setPrivate("x",f),s=f+u+l}else r.setPrivate("x",void 0)})}};bt.className="HorizontalLayout";bt.classNames=G.classNames.concat([bt.className]);var Dt=class extends G{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),n=0;Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof A){n+=o.value;let h=i*o.value,l=r.get("minHeight",r.getPrivate("minHeight",-1/0));l>h&&(i-=l,n-=o.value);let d=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h>d&&(i-=d,n-=o.value)}else D(o)||(o=r.height()),i-=o+r.get("marginTop",0)+r.get("marginBottom",0)}}),(i<=0||i==1/0)&&(i=.1),Z(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof A){let h=i*o.value/n-r.get("marginTop",0)-r.get("marginBottom",0),l=r.get("minHeight",r.getPrivate("minHeight",-1/0)),d=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h=Math.min(Math.max(l,h),d),r.setPrivate("height",h)}else r._prevSettings.height instanceof A&&r.setPrivate("height",void 0)}});let s=e;Z(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginTop",0),l=o.top,d=o.bottom,p=r.get("maxHeight");p&&d-l>p&&(d=l+p);let u=r.get("marginBottom",0),f=s+h-l;r.setPrivate("y",f),s=f+d+u}else r.setPrivate("y",void 0)})}};Dt.className="VerticalLayout";Dt.classNames=G.classNames.concat([Dt.className]);var rt=class extends G{_afterNew(){this._setRawDefault("maxColumns",Number.MAX_VALUE),super._afterNew()}updateContainer(t){let e=t.get("paddingLeft",0),i=t.get("paddingRight",0),n=t.get("paddingTop",0),s=t.maxWidth()-e-i,r=s,o=1;Z(t,m=>{if(m.get("visible")&&m.getPrivate("visible")&&!m.get("forceHidden")&&m.get("position")!="absolute"){let g=m.width();g<r&&(r=g),g>o&&(o=g)}}),r=ye(r,1,s),o=ye(o,1,s);let h=1;this.get("fixedWidthGrid")?h=s/o:h=s/r,h=Math.max(1,Math.floor(h)),h=Math.min(this.get("maxColumns",Number.MAX_VALUE),h);let l=this.getColumnWidths(t,h,o,s),d=n,p=0,u=0;h=l.length;let f=e;Z(t,m=>{if(m.get("position")=="relative"&&m.isVisible()){let g=m.get("marginTop",0),v=m.get("marginBottom",0),x=m.adjustedLocalBounds(),c=m.get("marginLeft",0),w=m.get("marginRight",0),k=f+c-x.left,B=d+g-x.top;m.setPrivate("x",k),m.setPrivate("y",B),f+=l[p]+w,u=Math.max(u,m.height()+g+v),p++,p>=h&&(p=0,f=e,d+=u,u=0)}})}getColumnWidths(t,e,i,n){let s=0,r=[],o=0;return Z(t,h=>{let l=h.adjustedLocalBounds();h.get("position")!="absolute"&&h.isVisible()&&(this.get("fixedWidthGrid")?r[o]=i:r[o]=Math.max(r[o]|0,l.right-l.left+h.get("marginLeft",0)+h.get("marginRight",0)),o<t.children.length-1&&(o++,o==e&&(o=0)))}),_(r,h=>{s+=h}),s>n?e>2?(e-=1,this.getColumnWidths(t,e,i,n)):[n]:r}};rt.className="GridLayout";rt.classNames=G.classNames.concat([rt.className]);var Wt=class{static escape(t){return t.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(t){return t.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(t){return t.replace(/\[\[/g,"[").replace(/\]\]/g,"]").replace(/\{\{/g,"{").replace(/\}\}/g,"}").replace(/\'\'/g,"'")}static chunk(t,e=!1,i=!1){let n=[];t=this.escape(t);let s=e?t.split("'"):[t];for(let r=0;r<s.length;r++){let o=s[r];if(o!=="")if(r%2===0){o=o.replace(/\]\[/g,"]"+Ge+"["),o=o.replace(/\[\]/g,"[ ]");let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let d=this.cleanUp(this.unescape(h[l]));d!==Ge&&d!==""&&(l%2===0?n.push({type:"value",text:d}):n.push({type:i?"value":"format",text:"["+d+"]"}))}}else{let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let d=this.cleanUp(this.unescape(h[l]));d!==""&&(l%2===0?n.push({type:"text",text:d}):this.isImage(d)?n.push({type:"image",text:"["+d+"]"}):n.push({type:"format",text:"["+d+"]"}))}}}return n}static isImage(t){return!!t.match(/img[ ]?:/)}static getTextStyle(t){let e={};if(t==""||t=="[ ]")return{};let i=t.match(/('[^']*')|("[^"]*")/gi);if(i)for(let s=0;s<i.length;s++)t=t.replace(i[s],i[s].replace(/['"]*/g,"").replace(/[ ]+/g,"+"));let n=t.match(/([\w\-]*:[\s]?[^;\s\]]*)|(\#[\w]{1,6})|([\w\-]+)|(\/)/gi);if(!n)return{};for(let s=0;s<n.length;s++)if(n[s].match(/^(normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900)$/i))e.fontWeight=n[s];else if(n[s].match(/^(underline|line-through)$/i))e.textDecoration=n[s];else if(n[s]!="/")if(!n[s].match(/:/))e.fill=P.fromString(n[s]);else{let r=n[s].replace("+"," ").split(/:[ ]*/);e[r[0]]=r[1]}return e}};Wt.prefix="__amcharts__";function Vt(a,t){if(t!=null){t=""+t,t=Wt.escape(t);let e=t.match(/\{([^}]+)\}/g),i;if(e)for(i=0;i<e.length;i++){let n=e[i].replace(/\{([^}]+)\}/,"$1"),s=di(a,n,"");s==null&&(s=""),t=t.split(e[i]).join(s)}t=Wt.unescape(t)}else t="";return t}function di(a,t,e){let i,n=a.dataItem,s=[],r=/(format[a-zA-Z]*)\((.*)\)|([^.]+)/g,o;for(;o=r.exec(t),o!==null;)if(o[3]){s.push({prop:o[3]});let h=a.getDateFormatter().get("dateFields",[]),l=a.getNumberFormatter().get("numericFields",[]),d=a.getDurationFormatter().get("durationFields",[]);h.indexOf(o[3])!==-1?s.push({method:"formatDate",params:[]}):l.indexOf(o[3])!==-1?s.push({method:"formatNumber",params:[]}):d.indexOf(o[3])!==-1&&s.push({method:"formatDuration",params:[]})}else{let h=[];if(Si(o[2])!=""){let l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,d;for(;d=l.exec(o[2]),d!==null;)h.push(d[1]||d[2]||d[3])}s.push({method:o[1],params:h})}if(n){i=It(a,s,n._settings),(i==null||je(i))&&(i=It(a,s,n));let h=n.dataContext;i==null&&h&&(i=It(a,s,h),i==null&&(i=It(a,[{prop:t}],h)),i==null&&h.dataContext&&(i=It(a,s,h.dataContext))),i==null&&n.component&&n.component.dataItem!==n&&(i=di(n.component,t,e))}return i==null&&(i=It(a,s,a)),i==null&&a.parent&&(i=di(a.parent,t,e)),i}function Vs(a,t){let e=a.getPrivate("customData");if(je(e))return e[t]}function It(a,t,e,i){let n=e,s=!1;for(let r=0,o=t.length;r<o;r++){let h=t[r];if(h.prop){if(n instanceof F){let l=n.get(h.prop);l==null&&(l=n.getPrivate(h.prop)),l==null&&(l=Vs(n,h.prop)),l==null&&(l=n[h.prop]),n=l}else if(n.get){let l=n.get(h.prop);l==null&&(l=n[h.prop]),n=l}else n=n[h.prop];if(n==null)return}else switch(h.method){case"formatNumber":let l=Ve(n);l!=null&&(n=a.getNumberFormatter().format(l,i||h.params[0]||void 0),s=!0);break;case"formatDate":let d=bi(n);if(!ze(d)||xi(d.getTime()))return;d!=null&&(n=a.getDateFormatter().format(d,i||h.params[0]||void 0),s=!0);break;case"formatDuration":let p=Ve(n);p!=null&&(n=a.getDurationFormatter().format(p,i||h.params[0]||void 0,h.params[1]||void 0),s=!0);break;case"urlEncode":case"encodeURIComponent":n=encodeURIComponent(n);break;default:n[h.method]&&n[h.method].apply(e,h.params);break}}if(!s){let r=[{method:"",params:i}];if(i==null)D(n)?(r[0].method="formatNumber",r[0].params=""):ze(n)&&(r[0].method="formatDate",r[0].params="");else{let o=$i(i);o==="number"?r[0].method="formatNumber":o==="date"?r[0].method="formatDate":o==="duration"&&(r[0].method="formatDuration")}r[0].method&&(n=It(a,r,n))}return n}var Ce=class extends ht{constructor(t){super(),this._disposed=!1,this._container=t,this._events=this.events.onAll(e=>{if(e.type==="clear")_(e.oldValues,i=>{this._onRemoved(i)});else if(e.type==="push")this._onInserted(e.newValue);else if(e.type==="setIndex")this._onRemoved(e.oldValue),this._onInserted(e.newValue,e.index);else if(e.type==="insertIndex")this._onInserted(e.newValue,e.index);else if(e.type==="removeIndex")this._onRemoved(e.oldValue);else if(e.type==="moveIndex")this._onRemoved(e.value),this._onInserted(e.value,e.newIndex);else throw new Error("Unknown IListEvent type")})}_onInserted(t,e){t._setParent(this._container,!0);let i=this._container._childrenDisplay;e===void 0?i.addChild(t._display):i.addChildAt(t._display,e)}_onRemoved(t){this._container._childrenDisplay.removeChild(t._display),this._container.markDirtyBounds(),this._container.markDirty()}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._events.dispose(),_(this.values,t=>{t.dispose()}))}};var M=class a extends F{constructor(){super(...arguments),this._display=this._root._renderer.makeContainer(),this._childrenDisplay=this._root._renderer.makeContainer(),this.children=new Ce(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)}_setDefaultTagged(t,e,i){let n=this._setDefaultFn(t,i),s=n;return s.set("themeTags",Ii(s.get("themeTags",[]),e)),n}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){mt(this.allChildren(),t=>{t.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(t=>{t.removePrivate("x"),t.removePrivate("y")})),(this.isDirty("paddingTop")||this.isDirty("paddingBottom")||this.isDirty("paddingLeft")||this.isDirty("paddingRight"))&&(this.children.each(t=>{t.markDirtyPosition()}),this.markDirtyBounds()),this.isDirty("maskContent")){let t=this._childrenDisplay,e=this._contentMask;this.get("maskContent")?e||(e=ft.new(this._root,{x:-.5,y:-.5,width:this.width()+1,height:this.height()+1}),this._contentMask=e,t.addChildAt(e._display,0),t.mask=e._display):e&&(t.removeChild(e._display),t.mask=null,e.dispose(),this._contentMask=void 0)}}_updateSize(){super._updateSize(),_(this._percentageSizeChildren,t=>{t._updateSize()}),_(this._percentagePositionChildren,t=>{t.markDirtyPosition(),t._updateSize()}),this.updateBackground()}updateBackground(){let t=this.get("background"),e=this._localBounds;if(e&&!this.isHidden()){let i=e.left,n=e.top,s=e.right-i,r=e.bottom-n,o=this.get("maxWidth"),h=this.get("maxHeight");h&&r>h&&(r=h),o&&s>o&&(s=o);let l=this.width(),d=this.height();t&&(t._setCAll({width:s,height:r,x:i,y:n}),this._display.interactive&&(t._display.interactive=!0));let p=this._contentMask;p&&p.setAll({width:l+1,height:d+1});let u=this.get("verticalScrollbar");if(u){u.set("height",d),u.set("x",l-u.width()-u.get("marginRight",0));let f=Math.min(1,d/this._contentHeight),m=Math.max(0,1-f),g=u.get("start",0);g>m&&(g=m,u._setC("start",g)),u._setC("end",g+f);let v=u.get("background");v&&v.setAll({width:u.width(),height:d});let x=!0;this._contentHeight<=d&&(x=!1),u.setPrivate("visible",x)}}}_applyThemes(t=!1){return super._applyThemes(t)?(this.eachChildren(e=>{e._applyThemes(t)}),!0):!1}_applyState(t){super._applyState(t),this.get("setStateOnChildren")&&this.eachChildren(e=>{e.states.apply(t)})}_applyStateAnimated(t,e){super._applyStateAnimated(t,e),this.get("setStateOnChildren")&&this.eachChildren(i=>{i.states.applyAnimate(t,e)})}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 t=this._localBounds;t&&(this._contentWidth=t.right-t.left,this._contentHeight=t.bottom-t.top)}else{let t=this.get("width"),e=this.get("height"),i=this.getPrivate("width"),n=this.getPrivate("height"),s={left:0,top:0,right:this.width(),bottom:this.height()},r=this.get("layout"),o=!1,h=!1;if((r instanceof bt||r instanceof rt)&&(o=!0),r instanceof Dt&&(h=!0),!((t!=null||i!=null)&&(e!=null||n!=null)&&!this.get("verticalScrollbar"))){let l=Number.MAX_VALUE,d=l,p=-l,u=l,f=-l,m=this.get("paddingLeft",0),g=this.get("paddingTop",0),v=this.get("paddingRight",0),x=this.get("paddingBottom",0);this.children.each(k=>{if(k.get("position")!="absolute"&&k.get("isMeasured")&&k.isVisible()){let B=k.adjustedLocalBounds(),H=k.x(),z=k.y(),W=H+B.left,I=H+B.right,O=z+B.top,L=z+B.bottom;o&&(W-=k.get("marginLeft",0),I+=k.get("marginRight",0)),h&&(O-=k.get("marginTop",0),L+=k.get("marginBottom",0)),W<d&&(d=W),I>p&&(p=I),O<u&&(u=O),L>f&&(f=L)}}),d==l&&(d=0),p==-l&&(p=0),u==l&&(u=0),f==-l&&(f=0),s.left=d-m,s.top=u-g,s.right=p+v,s.bottom=f+x;let c=this.get("minWidth");D(c)&&c>0&&s.right-s.left<c&&(s.right>=c?s.left=s.right-c:s.right=s.left+c);let w=this.get("minHeight");D(w)&&w>0&&s.bottom-s.top<w&&(s.bottom>=w?s.top=s.bottom-w:s.bottom=s.top+w)}this._contentWidth=s.right-s.left,this._contentHeight=s.bottom-s.top,D(t)&&(s.left=0,s.right=t),D(i)&&(s.left=0,s.right=i),D(e)&&(s.top=0,s.bottom=e),D(n)&&(s.top=0,s.bottom=n),this._localBounds=s}}_updateBounds(){let t=this.get("layout");t&&t.updateContainer(this),super._updateBounds(),this.updateBackground()}markDirty(){super.markDirty(),this._root._addDirtyParent(this)}_prepareChildren(){this._applyDeclaredAnimations(),this._applyAutoAppear(),this._childrenPrep=!0;let t=this.innerWidth(),e=this.innerHeight();if(t!=this._prevWidth||e!=this._prevHeight){let i=this.get("layout"),n=!1,s=!1;i&&((i instanceof bt||i instanceof rt)&&(n=!0),i instanceof Dt&&(s=!0)),_(this._percentageSizeChildren,r=>{if(!n){let o=r.get("width");o instanceof A&&r.setPrivate("width",o.value*t)}if(!s){let o=r.get("height");o instanceof A&&r.setPrivate("height",o.value*e)}}),_(this._percentagePositionChildren,r=>{r.markDirtyPosition(),r.markDirtyBounds()}),this._prevWidth=t,this._prevHeight=e,this._sizeDirty=!0,this.updateBackground()}}_updateHTMLContent(){let t=this.get("html","");t&&t!==""?this._root._setHTMLContent(this,Vt(this,t)):this._root._removeHTMLContent(this),this._root._positionHTMLElement(this)}scrollToChild(t){let e=this.get("verticalScrollbar");if(e){let i=t.y(),n=this.innerHeight(),s=t.height(),r=this._contentHeight,o=Math.max(0,1-this.height()/r);if(i+s*.7+this._childrenDisplay.y>n||i-s*.3+this._childrenDisplay.y<0){let h=Math.max(0,Math.min(o,(i-s/2)/r));e.animate({key:"start",to:h,duration:e.get("animationDuration",0),easing:e.get("animationEasing")})}}}_updateChildren(){if(this._childrenUpdt=!0,this.isDirty("html")&&this._updateHTMLContent(),this.isDirty("verticalScrollbar")){let t=this.get("verticalScrollbar");if(t)t._setParent(this),t.startGrip.setPrivate("visible",!1),t.endGrip.setPrivate("visible",!1),this.set("maskContent",!0),this.set("paddingRight",t.width()+t.get("marginRight",0)+t.get("marginLeft",0)),this._setDefaultTagged("background",["background"],()=>ft.new(this._root,{fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")})),this._vsbd0=this.events.on("wheel",e=>{let i=e.originalEvent;if(Ri(i,this))i.preventDefault();else return;let n=i.deltaY/5e3,s=t.get("start",0),r=t.get("end",1);s+n<=0&&(n=-s),r+n>=1&&(n=1-r),s+n>=0&&r+n<=1&&(t._setC("start",s+n),t._setC("end",r+n))}),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",()=>{let e=this._contentHeight,i=this._childrenDisplay,n=this._contentMask;i.y=-t.get("start",0)*e,i.markDirtyLayer(),n&&(n._display.y=-i.y,i.mask=n._display)}),this._disposers.push(this._vsbd1),this._display.addChild(t._display);else{let e=this._prevSettings.verticalScrollbar;if(e){this._display.removeChild(e._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 t=this._prevSettings.background;t&&this._display.removeChild(t._display);let e=this.get("background");e instanceof F&&(e._setC("isMeasured",!1),e._setParent(this),e.get("templateField")&&e._processTemplateField(),this._display.addChildAt(e._display,0),e instanceof ft&&!e.isUserSetting("crisp")&&e._setC("crisp",!0))}if(this.isDirty("mask")){let t=this.get("mask"),e=this._prevSettings.mask;if(e&&(this._display.removeChild(e._display),e!=t&&e.dispose()),t){let i=t.parent;i&&i.children.removeValue(t),t._setParent(this),this._display.addChildAt(t._display,0),this._childrenDisplay.mask=t._display}else this._childrenDisplay.mask=this._contentMask?this._contentMask._display:null}}_processTemplateField(){super._processTemplateField(),this.children.each(t=>{t._processTemplateField()})}walkChildren(t){this.children.each((e,i)=>{e instanceof a&&e.walkChildren(t),t(e,i)})}eachChildren(t){let e=this.get("background");e&&t(e);let i=this.get("verticalScrollbar");i&&t(i);let n=this.get("mask");n&&t(n),this.children.values.forEach(s=>{t(s)})}allChildren(){let t=[];return this.eachChildren(e=>{t.push(e)}),t}_setDataItem(t){let e=t!==this._dataItem;super._setDataItem(t);let i=this.get("background");i&&i.get("templateField")&&i._processTemplateField();let n=this.get("html","");n&&n!==""&&e&&this._root._setHTMLContent(this,Vt(this,n))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}};M.className="Container";M.classNames=F.classNames.concat([M.className]);var at=class extends F{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 t=this.get("fillGradient");t&&(this._display.style.fill=t.getFill(this))}else{let t={left:0,right:0,top:0,bottom:0};this._adjustedLocalBounds=t}}_changed(){super._changed(),this._display.clear();let t=this.textStyle;if(this.isDirty("opacity")){let e=this.get("opacity",1);this._display.alpha=e}if((this.isDirty("text")||this.isDirty("populateText"))&&(this._display.text=this._getText(),this.markDirtyBounds(),this.get("role")=="tooltip"&&this._root.updateTooltip(this)),this.isPrivateDirty("tooltipElement")&&this.getPrivate("tooltipElement")&&this._disposers.push(new _t(()=>{this._root._removeTooltipElement(this)})),this.isDirty("width")&&(t.wordWrapWidth=this.width(),this.markDirtyBounds()),this.isDirty("oversizedBehavior")&&(t.oversizedBehavior=this.get("oversizedBehavior","none"),this._display.invalidateVisibility(),this.markDirtyBounds()),this.isDirty("breakWords")&&(t.breakWords=this.get("breakWords",!1),this.markDirtyBounds()),this.isDirty("ellipsis")&&(t.ellipsis=this.get("ellipsis"),this.markDirtyBounds()),this.isDirty("ignoreFormatting")&&(t.ignoreFormatting=this.get("ignoreFormatting",!1),this.markDirtyBounds()),this.isDirty("minScale")&&(t.minScale=this.get("minScale",0),this.markDirtyBounds()),this.isDirty("fill")||this.isDirty("fillGradient")){let e=this.get("fill"),i=this.get("fillGradient"),n=this.get("fillOpacity");if(i){if(e){let s=i.get("stops",[]);s.length&&_(s,r=>{(!r.color||r.colorInherited)&&e&&(r.color=e,r.colorInherited=!0),(r.opacity==null||r.opacityInherited)&&(r.opacity=n,r.opacityInherited=!0)})}t.fill=i.getFill(this)}else e&&(t.fill=e)}this.isDirty("fillOpacity")&&(t.fillOpacity=this.get("fillOpacity",1)),(this.isDirty("maxWidth")||this.isPrivateDirty("maxWidth"))&&(t.maxWidth=this.get("maxWidth",this.getPrivate("maxWidth")),this.markDirtyBounds()),(this.isDirty("maxHeight")||this.isPrivateDirty("maxHeight"))&&(t.maxHeight=this.get("maxHeight",this.getPrivate("maxHeight")),this.markDirtyBounds()),_(this._textStyles,e=>{this._dirty[e]&&(t[e]=this.get(e),this.markDirtyBounds())}),t.fontSize=this.get("fontSize"),t.fontFamily=this.get("fontFamily"),this._display.style=t,this.isDirty("role")&&this.get("role")=="tooltip"&&this._root.updateTooltip(this)}_getText(){let t=this.get("text","");return this.get("maxChars")&&(t=Ai(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?Vt(this,t):t}_getAccessibleText(){let t=this.get("ariaLabel");return t!==void 0?this.get("populateText")?Vt(this,t):t:this._getText()}markDirtyText(){this._display.text=this._getText(),this.get("role")=="tooltip"&&this._root.updateTooltip(this),this.markDirtyBounds(),this.markDirty()}_setDataItem(t){super._setDataItem(t),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()}};at.className="Text";at.classNames=F.classNames.concat([at.className]);var K=class extends M{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(),_(this._textKeys,t=>{let e=this._getTextKeyValue(t);e!=null&&this._text.set(t,e)}),this.get("html","")!==""&&this._text.set("text",""),this.onPrivate("maxWidth",()=>{this._setMaxDimentions()}),this.onPrivate("maxHeight",()=>{this._setMaxDimentions()})}_makeText(){this._text=this.children.push(at.new(this._root,{}))}_getTextKeyValue(t){if((t==="fontFamily"||t==="fontSize"||t==="fontWeight")&&!this.isUserSetting(t)){let e=this._root.settings[t];if(e!=null)return e}return this.get(t)}_updateChildren(){super._updateChildren();let t=this._text;if(_(this._textKeys,i=>{this._text.set(i,this._getTextKeyValue(i))}),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation")||this.isDirty("paddingLeft")||this.isDirty("paddingRight")||this.isDirty("paddingTop")||this.isDirty("paddingBottom"))&&this._setMaxDimentions(),this.get("html","")!==""?t.set("text",""):(t.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"),n;this.get("width")!=null?i=="right"?n=R:i=="center"?n=C:n=0:i=="left"||i=="start"?n=this.get("paddingLeft",0):(i=="right"||i=="end")&&(n=-this.get("paddingRight",0)),t.set("x",n)}let e=this.get("background");e&&e.setPrivate("visible",t._display.textVisible)}_maybeUpdateHTMLColor(){let t=this.getPrivate("htmlElement");t&&this.get("fill")&&(t.style.color=this.get("fill").toCSSHex())}_setMaxDimentions(){let t=st(this.get("rotation",0)),e=t==90||t==270,i=this._text,n=this.get("paddingLeft",0)+this.get("paddingRight",0),s=this.get("paddingTop",0)+this.get("paddingBottom",0),r=this.get("maxWidth",this.getPrivate("maxWidth",1/0));D(r)?i.set(e?"maxHeight":"maxWidth",r-(e?s:n)):i.set(e?"maxHeight":"maxWidth",void 0);let o=this.get("maxHeight",this.getPrivate("maxHeight",1/0));D(o)?i.set(e?"maxWidth":"maxHeight",o-(e?n:s)):i.set(e?"maxWidth":"maxHeight",void 0),this.root.events.once("frameended",()=>{i.markDirtyBounds()})}_setDataItem(t){super._setDataItem(t),this._markDirtyKey("text"),this._markDirtyKey("html");let e=this._text;e.get("populateText")&&e.markDirtyText();let i=this.get("html");i&&i!==""&&this._updateHTMLContent()}getText(){return this._text._getText()}getAccessibleText(){return this._text._getAccessibleText()}};K.className="Label";K.classNames=M.classNames.concat([K.className]);var Re=class extends ht{incrementRef(){}decrementRef(){}_onPush(t){this.processor&&this.processor.processRow(t),super._onPush(t)}_onInsertIndex(t,e){this.processor&&this.processor.processRow(e),super._onInsertIndex(t,e)}_onSetIndex(t,e,i){this.processor&&this.processor.processRow(i),super._onSetIndex(t,e,i)}},Xi=class{constructor(t){this._value=t}incrementRef(){}decrementRef(){}};var Jt=class extends Zt{constructor(t,e,i){super(i),this.dataContext=e,this.component=t,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(t){this.setRaw("visible",!0),this.component&&this.component.showDataItem(this,t)}hide(t){this.setRaw("visible",!1),this.component&&this.component.hideDataItem(this,t)}isHidden(){return!this.get("visible")}},Tt=class extends M{constructor(){super(...arguments),this._data=new Re,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(t){t.incrementRef(),this._data.decrementRef(),this._data=t}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(t=>{let e=this._mainDataItems;if(this.markDirtyValues(),this._markDirtyGroup(),this._dataChanged=!0,t.type==="clear")_(e,i=>{i.dispose()}),e.length=0,this._onDataClear();else if(t.type==="push"){let i=new Jt(this,t.newValue,this._makeDataItem(t.newValue));e.push(i),this.processDataItem(i)}else if(t.type==="setIndex"){let i=e[t.index],n=this._makeDataItem(t.newValue);i.bullets&&i.bullets.length==0&&(i.bullets=void 0),Nt(n).forEach(([s,r])=>{i.get(s)!=r&&i.animate({key:s,to:r,duration:this.get("interpolationDuration",0),easing:this.get("interpolationEasing")})}),i.dataContext=t.newValue}else if(t.type==="insertIndex"){let i=new Jt(this,t.newValue,this._makeDataItem(t.newValue));e.splice(t.index,0,i),this.processDataItem(i)}else if(t.type==="removeIndex")e[t.index].dispose(),e.splice(t.index,1);else if(t.type==="moveIndex"){let i=e[t.oldIndex];e.splice(t.oldIndex,1),e.splice(t.newIndex,0,i)}else throw new Error("Unknown IStreamEvent type");this._afterDataChange()}))}_postUpdateData(){}updateData(t){let e=-1;_(t,(i,n)=>{let s=this.dataItems[n];if(!s)this.data.push(i);else{let r=s.dataContext;r&&Nt(i).forEach(([h,l])=>{r[h]=l});let o=this._makeDataItem(r);Nt(o).forEach(([h,l])=>{var d;if(s.get(h)!=l){s.set(h,l);let p=(d=this._valueFieldsF[h])===null||d===void 0?void 0:d.workingKey;p&&s.set(p,l)}})}e=n});for(let i=this.dataItems.length-1;i>e;i--){let n=this.dataItems[i];de(this.dataItems,n),n.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},_(this.valueFields,t=>{this.get(t+"Field")&&(this._valueFields.push(t),this._valueFieldsF[t]={fieldKey:t+"Field",workingKey:t+"Working"})})),this.fields&&(this._fields=[],this._fieldsF={},_(this.fields,t=>{this.get(t+"Field")&&(this._fields.push(t),this._fieldsF[t]=t+"Field")}))}get dataItems(){return this._dataItems}processDataItem(t){}_makeDataItem(t){let e={};return this._valueFields&&_(this._valueFields,i=>{let n=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[n],e[this._valueFieldsF[i].workingKey]=e[i]}),this._fields&&_(this._fields,i=>{let n=this.get(this._fieldsF[i]);e[i]=t[n]}),e}makeDataItem(t,e){let i=new Jt(this,e,t);return this.processDataItem(i),i}pushDataItem(t,e){let i=this.makeDataItem(t,e);return this._mainDataItems.push(i),i}disposeDataItem(t){}showDataItem(t,e){return Y(this,void 0,void 0,function*(){t.set("visible",!0)})}hideDataItem(t,e){return Y(this,void 0,void 0,function*(){t.set("visible",!1)})}_clearDirty(){super._clearDirty(),this._valuesDirty=!1}_afterDataChange(){}_afterChanged(){if(super._afterChanged(),this._dataChanged){let t="datavalidated";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this}),this._dataChanged=!1}if(this._valuesDirty){let t="valueschanged";this.events.isEnabled(t)&&this.events.dispatch(t,{type:t,target:this})}this.inited=!0}markDirtyValues(t){this.markDirty(),this._valuesDirty=!0}_markDirtyGroup(){this._dataGrouped=!1}markDirtySize(){this._sizeDirty=!0,this.markDirty()}getDataItemById(t){return pe(this.dataItems,e=>e.get("id")==t)}};Tt.className="Component";Tt.classNames=M.classNames.concat([Tt.className]);var es={};We(es,{add:()=>Ks,checkChange:()=>Qi,chooseInterval:()=>ts,copy:()=>Gs,getDateIntervalDuration:()=>zs,getDuration:()=>q,getIntervalDuration:()=>qi,getNextUnit:()=>Zi,getTime:()=>js,getUnitValue:()=>Zs,now:()=>Ji,roun:()=>Xs,round:()=>Mt,sleep:()=>ui,timeUnitDurations:()=>Se});function ui(a){return new Promise((t,e)=>{setTimeout(t,a)})}var Se={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:365.242/12*864e5,year:31536e6};function Zi(a){switch(a){case"year":return;case"month":return"year";case"week":return"month";case"day":return"month";case"hour":return"day";case"minute":return"hour";case"second":return"minute";case"millisecond":return"second"}}function q(a,t){return t==null&&(t=1),Se[a]*t}function qi(a){return a?Se[a.timeUnit]*a.count:0}function zs(a,t,e,i,n){let s=a.timeUnit,r=a.count;if(s=="hour"||s=="minute"||s=="second"||s=="millisecond")return Se[a.timeUnit]*a.count;{let o=Mt(new Date(t.getTime()),s,r,e,i,void 0,n).getTime(),h=o+r*q(s)*1.05;return h=Mt(new Date(h),s,1,e,i,void 0,n).getTime(),h-o}}function Ji(){return new Date}function js(){return Ji().getTime()}function Gs(a){return new Date(a.getTime())}function Qi(a,t,e,i,n){if(t-a>q(e,1.2))return!0;let s=new Date(a),r=new Date(t),o=i;n&&!i&&(s=new Date(a-Math.round(n.offsetUTC(s)*6e4)),r=new Date(t-Math.round(n.offsetUTC(r)*6e4)),o=!0);let h=0,l=0;!o&&e!="millisecond"&&(h=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-h),l=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-l));let d=!1;switch(e){case"year":s.getUTCFullYear()!=r.getUTCFullYear()&&(d=!0);break;case"month":(s.getUTCFullYear()!=r.getUTCFullYear()||s.getUTCMonth()!=r.getUTCMonth())&&(d=!0);break;case"day":(s.getUTCMonth()!=r.getUTCMonth()||s.getUTCDate()!=r.getUTCDate())&&(d=!0);break;case"hour":s.getUTCHours()!=r.getUTCHours()&&(d=!0);break;case"minute":s.getUTCMinutes()!=r.getUTCMinutes()&&(d=!0);break;case"second":s.getUTCSeconds()!=r.getUTCSeconds()&&(d=!0);break;case"millisecond":s.getTime()!=r.getTime()&&(d=!0);break}if(d)return d;let p=Zi(e);return p?Qi(a,t,p,i,n):!1}function Ks(a,t,e,i,n){if(n&&!i)return Ys(a,t,e,n);let s=0;switch(!i&&t!="millisecond"&&(s=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-s)),t){case"day":let r=a.getUTCDate();a.setUTCDate(r+e);break;case"second":let o=a.getUTCSeconds();a.setUTCSeconds(o+e);break;case"millisecond":let h=a.getUTCMilliseconds();a.setUTCMilliseconds(h+e);break;case"hour":let l=a.getUTCHours();a.setUTCHours(l+e);break;case"minute":let d=a.getUTCMinutes();a.setUTCMinutes(d+e);break;case"year":let p=a.getUTCFullYear();a.setUTCFullYear(p+e);break;case"month":let u=a.getUTCDate(),f=new Date(a.getUTCFullYear(),a.getUTCMonth(),0).getUTCDate(),m=a.getUTCMonth();u>f?a.setUTCMonth(m+e,f):a.setUTCMonth(m+e);break;case"week":let g=a.getUTCDate();a.setUTCDate(g+e*7);break}if(!i&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+s),t=="day"||t=="week"||t=="month"||t=="year")){let r=a.getTimezoneOffset();if(r!=s){let o=r-s;a.setUTCMinutes(a.getUTCMinutes()+o),a.getTimezoneOffset()!=r&&a.setUTCMinutes(a.getUTCMinutes()-o)}}return a}function Ys(a,t,e,i){let n=a.getTime();if(isNaN(n))return a;if(t!="day"&&t!="week"&&t!="month"&&t!="year")return a.setTime(n+q(t,e)),a;let s=Math.round(i.offsetUTC(a)*6e4),r=new Date(n-s);switch(t){case"day":r.setUTCDate(r.getUTCDate()+e);break;case"week":r.setUTCDate(r.getUTCDate()+e*7);break;case"month":let l=r.getUTCDate(),d=new Date(Ze(r.getUTCFullYear(),r.getUTCMonth(),0,0,0,0,0)).getUTCDate();l>d?r.setUTCMonth(r.getUTCMonth()+e,d):r.setUTCMonth(r.getUTCMonth()+e);break;case"year":r.setUTCFullYear(r.getUTCFullYear()+e);break}let o=r.getTime()+s,h=Math.round(i.offsetUTC(new Date(o))*6e4);if(h!=s){o=r.getTime()+h;let l=Math.round(i.offsetUTC(new Date(o))*6e4);l!=h&&(o=r.getTime()+Math.max(h,l))}return a.setTime(o),a}function Xs(a,t,e,i,n){let s;return n!=null&&(s=new Date(n)),Mt(new Date(a),t,e,i.locale.firstDayOfWeek,i.utc,s,i.timezone).getTime()}function Mt(a,t,e,i,n,s,r){if(!r||n){let o=0;switch(!n&&t!="millisecond"&&(o=a.getTimezoneOffset(),a.setUTCMinutes(a.getUTCMinutes()-o)),t){case"day":let h=a.getUTCDate();if(e>1){if(s){s=Mt(s,"day",1);let x=a.getTime()-s.getTime(),c=Math.floor(x/q("day")/e),w=q("day",c*e);a.setTime(s.getTime()+w-o*q("minute"))}}else a.setUTCDate(h);a.setUTCHours(0,0,0,0);break;case"second":let l=a.getUTCSeconds();e>1&&(l=Math.floor(l/e)*e),a.setUTCSeconds(l,0);break;case"millisecond":if(e==1)return a;let d=a.getUTCMilliseconds();d=Math.floor(d/e)*e,a.setUTCMilliseconds(d);break;case"hour":let p=a.getUTCHours();e>1&&(p=Math.floor(p/e)*e),a.setUTCHours(p,0,0,0);break;case"minute":let u=a.getUTCMinutes();e>1&&(u=Math.floor(u/e)*e),a.setUTCMinutes(u,0,0);break;case"month":let f=a.getUTCMonth();e>1&&(e==2||e==3||e==4||e==6)&&(f=Math.floor(f/e)*e),a.setUTCMonth(f,1),a.setUTCHours(0,0,0,0);break;case"year":let m=a.getUTCFullYear();e>1&&(m=Math.floor(m/e)*e),a.setUTCFullYear(m,0,1),a.setUTCHours(0,0,0,0);break;case"week":if(e>1&&s){s=Mt(s,"week",1);let x=a.getTime()-s.getTime(),c=Math.floor(x/q("week")/e),w=q("week",c*e);a.setTime(s.getTime()+w-o*q("minute"))}let g=a.getUTCDate(),v=a.getUTCDay();D(i)||(i=1),v>=i?g=g-v+i:g=g-(7+v)+i,a.setUTCDate(g),a.setUTCHours(0,0,0,0);break}if(!n&&t!="millisecond"&&(a.setUTCMinutes(a.getUTCMinutes()+o),t=="day"||t=="week"||t=="month"||t=="year")){let h=a.getTimezoneOffset();if(h!=o){let l=h-o;a.setUTCMinutes(a.getUTCMinutes()+l)}}return a}else{if(isNaN(a.getTime()))return a;let o=a.getTime(),h=r.offsetUTC(a),l=r.parseDate(a),d=l.year,p=l.month,u=l.day,f=l.hour,m=l.minute,g=l.second,v=l.millisecond,x=l.weekday,c=h;switch(t){case"day":if(e>1&&s){s=Mt(s,"day",1,i,n,void 0,r);let H=a.getTime()-s.getTime(),z=Math.floor(H/q("day")/e),W=q("day",z*e);a.setTime(s.getTime()+W),l=r.parseDate(a),d=l.year,p=l.month,u=l.day}f=0,m=c,g=0,v=0;break;case"second":m+=c,e>1&&(g=Math.floor(g/e)*e),v=0;break;case"millisecond":m+=c,e>1&&(v=Math.floor(v/e)*e);break;case"hour":e>1&&(f=Math.floor(f/e)*e),m=c,g=0,v=0;break;case"minute":e>1&&(m=Math.floor(m/e)*e),m+=c,g=0,v=0;break;case"month":e>1&&(p=Math.floor(p/e)*e),u=1,f=0,m=c,g=0,v=0;break;case"year":e>1&&(d=Math.floor(d/e)*e),p=0,u=1,f=0,m=c,g=0,v=0;break;case"week":D(i)||(i=1),x>=i?u=u-x+i:u=u-(7+x)+i,f=0,m=c,g=0,v=0;break}a=new Date(Ze(d,p,u,f,m,g,v));let w=a.getTime(),k=36e5;t=="hour"&&(k=36e5*e),w+k<=o&&(t=="hour"||t=="minute"||t=="second"||t=="millisecond")&&(a=new Date(w+k));let B=r.offsetUTC(a);return B!=c&&a.setTime(a.getTime()+(B-c)*6e4),a}}function ts(a,t,e,i){let n=i[a],s=qi(n),r=i.length-1;if(a>=r)return Object.assign({},i[r]);let o=Math.ceil(t/s);return t<s&&a>0?Object.assign({},i[a-1]):o<=e?Object.assign({},i[a]):a+1<i.length?ts(a+1,t,e,i):Object.assign({},i[a])}function Zs(a,t){switch(t){case"day":return a.getDate();case"second":return a.getSeconds();case"millisecond":return a.getMilliseconds();case"hour":return a.getHours();case"minute":return a.getMinutes();case"month":return a.getMonth();case"year":return a.getFullYear();case"week":return Bi(a)}}function qs(a,t){let e=t.length-1;if(e<1)return t[0];let i=(a>0?Math.min(1,a):0)*e,n=Math.min(Math.floor(i),e-1),s=t[n],r=t[n+1],o=i-n;if(D(s))return s+(r-s)*o;if(s instanceof P)return P.interpolate(o,s,r);if(s instanceof A)return Qe(o,s,r)}var Qt=class extends Tt{constructor(){super(...arguments),this._aggregatesCalculated=!1,this._selectionAggregatesCalculated=!1,this._dataProcessed=!1,this._baseSeriesDirty=!1,this.bullets=new ht,this.bulletsContainer=M.new(this._root,{width:R,height:R,position:"absolute"})._markC("width","height","position")}_afterNew(){this.valueFields.push("value","customValue"),this.fields.push("url"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(()=>{this._handleBullets(this.dataItems)}))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let t=this.dataItems.length;return Math.min(this.getPrivate("startIndex",0),t)}endIndex(){let t=this.dataItems.length;return Math.max(0,Math.min(this.getPrivate("endIndex",t),t))}_handleBullets(t){_(t,e=>{let i=e.bullets;i&&(_(i,n=>{n.dispose()}),e.bullets=void 0)}),this.markDirtyValues()}_makeBullets(t){this._shouldMakeBullet(t)&&(t.bullets=[],this.bullets.each(e=>{this._makeBullet(t,e)}))}_shouldMakeBullet(t){return!0}_makeBullet(t,e,i){let n=e(this._root,this,t);return n&&(n._index=i,this._makeBulletReal(t,n)),n}_getBulletContainer(t){return this.bulletsContainer}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this._applyBulletDefaultPaint(i,t),this._linkSprite(i,t),this._getBulletContainer(t).children.push(i)),e.series=this,t.bullets.push(e)}_linkSprite(t,e){let i=!1,n=s=>{s&&!i&&(i=!0,t.events.on("click",()=>{this.openUrl(e)})),!(t.isUserSetting("cursorOverStyle")&&!t.isComputedSetting("cursorOverStyle"))&&(s?t._setC("cursorOverStyle","pointer"):t.get("cursorOverStyle")=="pointer"&&t.remove("cursorOverStyle"))};n(e.get("url")),t.addDisposer(e.on("url",s=>n(s)))}openUrl(t){let e=t.get("url");if(e&&!/^(javascript|data|vbscript):/i.test(String(e).replace(/[\s\x00-\x1f]/g,""))){let i=this.get("linkTarget","_self");window.open(e,i,i=="_blank"?"noopener":void 0)}}_applyBulletDefaultPaint(t,e){if(t.isType("Graphics")&&t.get("fill")==null&&t.get("fillGradient")==null&&t.get("fillPattern")==null&&t.get("stroke")==null&&t.get("strokeGradient")==null){let n=e?e.get("fill"):void 0;t.set("fill",n??this.get("fill")),t.set("fillGradient",this.get("fillGradient")),t.set("fillPattern",this.get("fillPattern")),t.set("stroke",this.get("stroke")),t.set("strokeGradient",this.get("strokeGradient"))}}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_autoAppearReady(){return this.dataItems.length>0}_clearDirty(){super._clearDirty(),this._aggregatesCalculated=!1,this._baseSeriesDirty=!1,this._selectionAggregatesCalculated=!1}_prepareChildren(){super._prepareChildren();let t=this.dataItems,e=t.length,i=this.startIndex(),n=this.endIndex();if(this.isDirty("urlField")){this._updateFields();let r=this.get("urlField");_(t,o=>{let h=o.dataContext;o.set("url",r&&h?h[r]:void 0)})}if(this.isDirty("name")&&this.updateLegendValue(),this.isDirty("heatRules")&&(this._valuesDirty=!0),this.isPrivateDirty("baseValueSeries")){let r=this.getPrivate("baseValueSeries");r&&this._disposers.push(r.onPrivate("startIndex",()=>{this._baseSeriesDirty=!0,this.markDirtyValues()}))}if(this.get("calculateAggregates")&&(this._valuesDirty&&!this._dataProcessed&&(this._aggregatesCalculated||(this._calculateAggregates(0,e),this._aggregatesCalculated=!0,i!=0&&(this._psi=void 0))),(this._psi!=i||this._pei!=n||this.isPrivateDirty("adjustedStartIndex"))&&!this._selectionAggregatesCalculated&&(i===0&&n===e&&this._aggregatesCalculated||this._calculateAggregates(i,n),this._selectionAggregatesCalculated=!0)),this.isDirty("tooltip")){let r=this.get("tooltip");r&&(r.hide(0),r.set("tooltipTarget",this))}if(this.isDirty("fill")||this.isDirty("stroke")){let r,o=this.get("legendDataItem");if(o&&(r=o.get("markerRectangle"),r&&this.isVisible())){if(this.isDirty("stroke")){let h=this.get("stroke");r.set("stroke",h)}if(this.isDirty("fill")){let h=this.get("fill");r.set("fill",h)}}this.updateLegendMarker(void 0)}if(this.bullets.length>0){let r=this.startIndex(),o=this.endIndex();o<e&&o++;for(let h=r;h<o;h++){let l=t[h];l.bullets||this._makeBullets(l)}}}_handleRemoved(){}_adjustStartIndex(t){return t}_calculateAggregates(t,e){let i=this._valueFields;if(!i)throw new Error("No value fields are set for the series.");let n=this.get("excludeFromAggregate");n&&(i=i.filter(v=>n.indexOf(v)==-1));let s={},r={},o={},h={},l={},d={},p={},u={},f={};for(let v=0,x=i.length;v<x;v++){let c=i[v];s[c]=0,r[c]=0,o[c]=0}let m=this.dataItems,g=m.length;for(let v=0,x=i.length;v<x;v++){let c=i[v],w=c+"Change",k=c+"ChangePercent",B=c+"ChangePrevious",H=c+"ChangePreviousPercent",z=c+"ChangeSelection",W=c+"ChangeSelectionPercent",I=c;c==="valueX"||c.endsWith("ValueX")?I="valueX":(c==="valueY"||c.endsWith("ValueY"))&&(I="valueY");let O=this.getPrivate("baseValueSeries"),L=this.getPrivate("adjustedStartIndex",t),N=(y,T,S)=>{if(t===0){let ot=d[I],Rt=T-ot;y.setRaw(w,Rt),y.setRaw(k,Rt/ot*100)}let Ct=T-f[I],nt=T-d[I];y.setRaw(B,Ct),y.setRaw(H,Ct/f[I]*100),y.setRaw(z,nt),y.setRaw(W,nt/d[I]*100),f[S]=T};for(let y=L;y<e;y++){let T=m[y];if(T){let S=T.get(c);if(S!=null){h[c]==null&&(h[c]=S),l[c]==null&&(l[c]=S),d[c]==null&&(d[c]=S,f[c]=S,O&&(d[I]=O._getBase(I)));break}}}for(let y=L;y<e;y++){let T=m[y];if(T){let S=T._settings[c];S!=null&&(o[c]++,s[c]+=S,r[c]+=Math.abs(S),h[c]>S&&(h[c]=S),l[c]<S&&(l[c]=S),p[c]=S,N(T,S,c))}}if(u[c]=s[c]/o[c],e<g){let y=m[e];if(y){let T=y.get(c);T!=null&&N(y,T,c)}}if(e+1<g){let y=m[e+1];if(y){let T=y.get(c);T!=null&&N(y,T,c)}}t>0&&t--,delete f[c];for(let y=t;y<L;y++){let T=m[y];if(T){let S=T.get(c);f[c]==null&&(f[c]=S),S!=null&&N(T,S,c)}}}for(let v=0,x=i.length;v<x;v++){let c=i[v];this.setPrivate(c+"AverageSelection",u[c]),this.setPrivate(c+"CountSelection",o[c]),this.setPrivate(c+"SumSelection",s[c]),this.setPrivate(c+"AbsoluteSumSelection",r[c]),this.setPrivate(c+"LowSelection",h[c]),this.setPrivate(c+"HighSelection",l[c]),this.setPrivate(c+"OpenSelection",d[c]),this.setPrivate(c+"CloseSelection",p[c])}if(t===0&&e===g)for(let v=0,x=i.length;v<x;v++){let c=i[v];this.setPrivate(c+"Average",u[c]),this.setPrivate(c+"Count",o[c]),this.setPrivate(c+"Sum",s[c]),this.setPrivate(c+"AbsoluteSum",r[c]),this.setPrivate(c+"Low",h[c]),this.setPrivate(c+"High",l[c]),this.setPrivate(c+"Open",d[c]),this.setPrivate(c+"Close",p[c])}}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer._setC("visible",this.get("visible"));let t=this.get("heatRules");if(this._valuesDirty&&t&&t.length>0&&_(t,e=>{let i=D(e.minValue)?e.minValue:this.getPrivate(e.dataField+"Low")||0,n=D(e.maxValue)?e.maxValue:this.getPrivate(e.dataField+"High")||0;_(e.target._entities,s=>{let r=s.dataItem.get(e.dataField);if(!D(r)){e.neutral&&s._setC(e.key,e.neutral);let o=s.states;if(o){let h=o.lookup("default");h&&e.neutral&&h._setC(e.key,e.neutral)}if(!e.customFunction)return}if(e.customFunction)e.customFunction.call(this,s,i,n,r);else{let o;e.logarithmic?o=(Math.log(r)*Math.LOG10E-Math.log(i)*Math.LOG10E)/(Math.log(n)*Math.LOG10E-Math.log(i)*Math.LOG10E):o=(r-i)/(n-i),D(r)&&(!D(o)||Math.abs(o)==1/0)&&(o=.5);let h;e.stops&&e.stops.length?h=qs(o,e.stops):D(e.min)?h=e.min+(e.max-e.min)*o:e.min instanceof P?h=P.interpolate(o,e.min,e.max):e.min instanceof A&&(h=Qe(o,e.min,e.max)),s._setC(e.key,h);let l=s.states;if(l){let d=l.lookup("default");d&&d._setC(e.key,h)}}})}),this.get("visible")){let e=this.dataItems,i=e.length,n=this.startIndex(),s=this.endIndex();s<i&&s++,n>0&&n--;for(let r=0;r<n;r++)this._hideBullets(e[r]);for(let r=n;r<s;r++)this._positionBullets(e[r]);for(let r=s;r<i;r++)this._hideBullets(e[r])}}_positionBullets(t){t.bullets&&_(t.bullets,e=>{this._positionBullet(e);let i=e.get("sprite");e.get("dynamic")&&(i&&(i._markDirtyKey("fill"),i.markDirtySize()),i instanceof M&&i.walkChildren(n=>{n._markDirtyKey("fill"),n.markDirtySize(),n instanceof K&&n.text.markDirtyText()})),i instanceof K&&i.get("populateText")&&i.text.markDirtyText()})}_hideBullets(t){t.bullets&&_(t.bullets,e=>{let i=e.get("sprite");i&&i.setPrivate("visible",!1)})}_positionBullet(t){}_placeBulletsContainer(t){t.bulletsContainer.children.moveValue(this.bulletsContainer)}_removeBulletsContainer(){let t=this.bulletsContainer;t.parent&&t.parent.children.removeValue(t)}disposeDataItem(t){let e=t.bullets;e&&(_(e,i=>{i.dispose()}),t.bullets=void 0)}_getItemReaderLabel(){return""}showDataItem(t,e){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return Y(this,void 0,void 0,function*(){let n=[i.showDataItem.call(this,t,e)],s=t.bullets;s&&_(s,r=>{let o=r.get("sprite");o&&n.push(o.show(e))}),yield Promise.all(n)})}hideDataItem(t,e){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return Y(this,void 0,void 0,function*(){let n=[i.hideDataItem.call(this,t,e)],s=t.bullets;s&&_(s,r=>{let o=r.get("sprite");o&&n.push(o.hide(e))}),yield Promise.all(n)})}_sequencedShowHide(t,e){return Y(this,void 0,void 0,function*(){if(this.get("sequencedInterpolation"))if(D(e)||(e=this.get("interpolationDuration",0)),e>0){let i=this.startIndex(),n=this.endIndex();yield Promise.all(Ke(this.dataItems,(s,r)=>Y(this,void 0,void 0,function*(){let o=e||0;(r<i-10||r>n+10)&&(o=0);let h=this.get("sequencedDelay",0)+o/(n-i);yield ui(h*(r-i)),t?yield this.showDataItem(s,o):yield this.hideDataItem(s,o)})))}else yield Promise.all(Ke(this.dataItems,i=>t?this.showDataItem(i,0):this.hideDataItem(i,0)))})}updateLegendValue(t){if(t){let e=t.get("legendDataItem");if(e){let i=e.get("valueLabel");if(i){let s=i.text,r="";i._setDataItem(t),r=this.get("legendValueText",s.get("text","")),i.set("text",r),s.markDirtyText()}let n=e.get("label");if(n){let s=n.text,r="";n._setDataItem(t),r=this.get("legendLabelText",s.get("text","")),n.set("text",r),s.markDirtyText()}}}}updateLegendMarker(t){}_onHide(){super._onHide();let t=this.getTooltip();t&&t.hide()}hoverDataItem(t){}unhoverDataItem(t){}_getBase(t){let e=this.dataItems[this.startIndex()];return e?e.get(t):0}};Qt.className="Series";Qt.classNames=Tt.classNames.concat([Qt.className]);function pi(a,t){for(let e=0,i=t.length;e<i;e++){let n=t[e];if(n.length>0){let s=n[0];if(s.length>0){let r=s[0];a.moveTo(r.x,r.y);for(let o=0,h=n.length;o<h;o++)Js(a,n[o])}}}}function Js(a,t){for(let e=0,i=t.length;e<i;e++){let n=t[e];a.lineTo(n.x,n.y)}}var wt=class extends et{_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 t=this.get("points"),e=this.get("segments");if(t&&t.length>0){let i=t[0];this._display.moveTo(i.x,i.y),pi(this._display,[[t]])}else if(e)pi(this._display,e);else if(!this.get("draw")){let i=this.width(),n=this.height();this._display.moveTo(0,0),this._display.lineTo(i,n)}}}};wt.className="Line";wt.classNames=et.classNames.concat([wt.className]);var Lt=class extends at{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)*At,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())}};Lt.className="RadialText";Lt.classNames=at.classNames.concat([Lt.className]);var te=class extends K{constructor(){super(...arguments),this._flipped=!1}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(Lt.new(this._root,{}))}baseRadius(){let t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+J(i,t-e)}radius(){let t=this.get("inside",!1);return this.baseRadius()+this.get("radius",0)*(t?-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 t=this.get("textType","adjusted"),e=this.get("inside",!1),i=this.get("orientation"),n=st(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);let s=dt(n),r=ut(n),o=this.baseRadius(),h=this.radius();if(this._display.angle=0,t=="circular")this._setCAll({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",h);else{o==0&&(n=0,h=0);let l=h*r,d=h*s;t=="radial"?(this.setRaw("x",l),this.setRaw("y",d),n<90||n>270||i!="auto"?(this._display.angle=n,this._flipped=!1):(this._display.angle=n+180,this._flipped=!0),this._dirty.rotation=!1):t=="adjusted"?(this.setRaw("centerX",C),this.setRaw("centerY",C),this.setRaw("x",l),this.setRaw("y",d)):t=="regular"&&(this.setRaw("x",l),this.setRaw("y",d))}this.markDirtyPosition(),this.markDirtyBounds()}}_updatePosition(){let t=this.get("textType","regular"),e=this.get("inside",!1),i=0,n=0,s=this.get("labelAngle",0),r=this.localBounds(),o=r.right-r.left,h=r.bottom-r.top;if(t=="radial"){if(this._flipped){let l=this.get("centerX");l instanceof A&&(o=o*(1-l.value*2)),i=o*ut(s),n=o*dt(s)}}else!e&&t=="adjusted"&&(i=o/2*ut(s),n=h/2*dt(s));this._setCRaw("dx",i),this._setCRaw("dy",n),super._updatePosition()}get text(){return this._text}};te.className="RadialLabel";te.classNames=K.classNames.concat([te.className]);var Pt=class extends M{constructor(){super(...arguments),this.chartContainer=this.children.push(M.new(this._root,{width:R,height:R,interactiveChildren:!1})),this.bulletsContainer=M.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:R,height:R})}};Pt.className="Chart";Pt.classNames=M.classNames.concat([Pt.className]);var ee=class extends Pt{constructor(){super(...arguments),this.seriesContainer=M.new(this._root,{width:R,height:R,isMeasured:!1}),this.series=new Yt}_afterNew(){super._afterNew(),this._disposers.push(this.series);let t=this.seriesContainer.children;this._disposers.push(this.series.events.onAll(e=>{if(e.type==="clear"){_(e.oldValues,s=>{this._removeSeries(s)});let i=this.get("colors");i&&i.reset();let n=this.get("patterns");n&&n.reset()}else if(e.type==="push")t.moveValue(e.newValue),this._processSeries(e.newValue);else if(e.type==="setIndex")t.setIndex(e.index,e.newValue),this._processSeries(e.newValue);else if(e.type==="insertIndex")t.insertIndex(e.index,e.newValue),this._processSeries(e.newValue);else if(e.type==="removeIndex")this._removeSeries(e.oldValue);else if(e.type==="moveIndex")t.moveValue(e.value,e.newIndex),this._processSeries(e.value);else if(e.type==="swap"){let i=e.a,n=e.b,s=this.series.indexOf(i),r=this.series.indexOf(n);t.moveValue(i,r),t.moveValue(n,s),this.series.each(o=>{this._processSeries(o),o.markDirtyValues()})}else throw new Error("Unknown IListEvent type")}))}_processSeries(t){t.chart=this,t._placeBulletsContainer(this)}_removeSeries(t){t._handleRemoved(),t.isDisposed()||(this.seriesContainer.children.removeValue(t),t._removeBulletsContainer())}};ee.className="SerialChart";ee.classNames=Pt.classNames.concat([ee.className]);var ie=class extends wt{};ie.className="Tick";ie.classNames=wt.classNames.concat([ie.className]);var is=new WeakMap;function se(a){let t=is.get(a);return t==null&&(t=a.length,is.set(a,t)),t}function tr(a,t){for(;t;)[a,t]=[t,a%t];return a}var re=class extends V{static paletteLength(t){return se(t)}_afterNew(){super._afterNewApplyThemes(),this._dirty.colors=!1}_beforeChanged(){this.isDirty("colors")&&this.reset()}generateColors(){this.setPrivate("currentPass",this.getPrivate("currentPass",0)+1);let t=this.getPrivate("currentPass"),e=this.get("colors",[this.get("baseColor",P.fromHex(16711680))]);se(e),this.getPrivate("numColors")||this.setPrivate("numColors",e.length);let i=this.getPrivate("numColors"),n=0,s=this.get("passOptions"),r=this.get("reuse"),o=this.get("repeatLightness",0);if(r&&o){let h=se(e),l=Math.floor(e.length/h);for(let d=0;d<h;d++){let p=e[d].toHSL();e.push(P.fromHSL(p.h,p.s,Math.min(1,Math.max(0,p.l+o*l))))}return}for(let h=n;h<i;h++)if(r)e.push(e[h]);else{let l=e[h].toHSL(),d=l.h+(s.hue||0)*t;for(;d>1;)d-=1;let p=l.s+(s.saturation||0)*t;p>1&&(p=1),p<0&&(p=0);let u=l.l+(s.lightness||0)*t;for(;u>1;)u-=1;e.push(P.fromHSL(d,p,u))}}getIndex(t){let e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):i!=null?P.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0)),e=this.getPrivate("currentCount",0);return this.setPrivate("currentStep",t+this.get("step",1)),this.setPrivate("currentCount",e+1),this.getIndex(this.reuseIndex(t,e))}reuseIndex(t,e){if(this.get("reuse")&&t%1==0){let i=se(this.get("colors",[]));if(i>0){let n=((t+this.reuseOffset(e))%i+i)%i;return Math.floor(e/i)*i+n}}return t}reuseOffset(t){let e=this.get("step",1);if(this.get("reuse")&&e>0&&e%1==0){let i=se(this.get("colors",[]));if(i>1){let n=tr(e,i);if(n>1)return Math.floor(t/(i/n))%n}}return 0}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0),this.setPrivate("currentCount",0)}};re.className="ColorSet";re.classNames=V.classNames.concat([re.className]);function b(a,t,e,i){a.set(t,e.get(i)),e.on(i,n=>{a.set(t,n)})}var ss=class extends Hi{setupDefaultRules(){super.setupDefaultRules();let t=this._root.language,e=this._root.interfaceColors,i=this._root.horizontalLayout,n=this._root.verticalLayout,s=this.rule.bind(this);s("InterfaceColors").setAll({stroke:P.fromHex(15066597),fill:P.fromHex(15987699),primaryButton:P.fromHex(6788316),primaryButtonHover:P.fromHex(6779356),primaryButtonDown:P.fromHex(6872182),primaryButtonActive:P.fromHex(6872182),primaryButtonDisabled:P.fromHex(14342874),primaryButtonTextDisabled:P.fromHex(16777215),primaryButtonText:P.fromHex(16777215),primaryButtonStroke:P.fromHex(16777215),secondaryButton:P.fromHex(14277081),secondaryButtonHover:P.fromHex(10724259),secondaryButtonDown:P.fromHex(9276813),secondaryButtonActive:P.fromHex(15132390),secondaryButtonText:P.fromHex(0),secondaryButtonStroke:P.fromHex(16777215),grid:P.fromHex(0),background:P.fromHex(16777215),alternativeBackground:P.fromHex(0),text:P.fromHex(0),alternativeText:P.fromHex(16777215),disabled:P.fromHex(11382189),positive:P.fromHex(5288704),negative:P.fromHex(11730944),warning:P.fromHex(15909424)});{let r=s("ColorSet");r.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[P.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),r.setPrivate("currentStep",0),r.setPrivate("currentPass",0)}s("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:pt(tt)}),s("Component").setAll({interpolationDuration:0,interpolationEasing:pt(tt)}),s("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:C,tooltipY:C,tooltipPosition:"fixed",isMeasured:!0}),s("Sprite").states.create("default",{visible:!0,opacity:1}),s("Container").setAll({interactiveChildren:!0,setStateOnChildren:!1}),s("Graphics").setAll({strokeWidth:1}),s("Chart").setAll({width:R,height:R,interactiveChildren:!1}),s("ZoomableContainer").setAll({width:R,height:R,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:pt(tt),animationDuration:600,maxPanOut:.4}),s("ZoomableContainer",["serialchartcontainer"]).setAll({wheelable:!1,pinchZoom:!1,maskContent:!0}),s("Sprite",["horizontal","center"]).setAll({centerX:C,x:C}),s("Sprite",["vertical","center"]).setAll({centerY:C,y:C}),s("Container",["horizontal","layout"]).setAll({layout:i}),s("Container",["vertical","layout"]).setAll({layout:n}),s("Pattern").setAll({repetition:"repeat",width:50,height:50,rotation:0,fillOpacity:1}),s("LinePattern").setAll({gap:6,colorOpacity:1,width:49,height:49}),s("RectanglePattern").setAll({gap:6,checkered:!1,centered:!0,maxWidth:5,maxHeight:5,width:48,height:48,strokeWidth:0}),s("CirclePattern").setAll({gap:5,checkered:!1,centered:!1,radius:3,strokeWidth:0,width:45,height:45}),s("GrainPattern").setAll({width:200,height:200,colors:[P.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{let r=s("PatternSet");r.setAll({step:1}),b(r,"color",e,"stroke")}s("LinearGradient").setAll({rotation:90}),s("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:rt.new(this._root,{}),layer:30,clickTarget:"itemContainer"}),s("Container",["legend","item","itemcontainer"]).setAll({paddingLeft:5,paddingRight:5,paddingBottom:5,paddingTop:5,layout:i,setStateOnChildren:!0,interactiveChildren:!1,ariaChecked:!0,focusable:!0,ariaLabel:t.translate("Press ENTER to toggle"),role:"checkbox"});{let r=s("Rectangle",["legend","item","background"]);r.setAll({fillOpacity:0}),b(r,"fill",e,"background")}s("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:C,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),s("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:R,height:R,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{let r=s("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});b(r,"fill",e,"disabled"),b(r,"stroke",e,"disabled")}s("Label",["legend","label"]).setAll({centerY:C,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});{let r=s("Label",["legend","label"]).states.create("disabled",{});b(r,"fill",e,"disabled")}s("Label",["legend","value","label"]).setAll({centerY:C,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:R,populateText:!0});{let r=s("Label",["legend","value","label"]).states.create("disabled",{});b(r,"fill",e,"disabled")}s("HeatLegend").setAll({stepCount:1}),s("RoundedRectangle",["heatlegend","marker"]).setAll({cornerRadiusTR:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusBL:0}),s("RoundedRectangle",["vertical","heatlegend","marker"]).setAll({height:R,width:15}),s("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:R,height:15}),s("HeatLegend",["vertical"]).setAll({height:R}),s("HeatLegend",["horizontal"]).setAll({width:R}),s("Label",["heatlegend","start"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5}),s("Label",["heatlegend","end"]).setAll({paddingLeft:5,paddingRight:5,paddingTop:5,paddingBottom:5});{let r=s("Label");r.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}),b(r,"fill",e,"text")}s("RadialLabel").setAll({textType:"regular",centerY:C,centerX:C,inside:!1,radius:0,baseRadius:R,orientation:"auto",textAlign:"center"}),s("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),s("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:P.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:P.fromHex(0)}),s("RoundedRectangle",["editablelabel","background"]).states.create("active",{strokeOpacity:.2}),s("RoundedRectangle").setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8}),s("PointedRectangle").setAll({pointerBaseWidth:15,pointerLength:10,cornerRadius:8}),s("Slice").setAll({shiftRadius:0,dRadius:0,dInnerRadius:0});{let r=s("Tick");r.setAll({strokeOpacity:.15,isMeasured:!1,length:4.5,position:"absolute",crisp:!0}),b(r,"stroke",e,"grid")}s("Bullet").setAll({locationX:.5,locationY:.5}),s("Tooltip").setAll({position:"absolute",getFillFromSprite:!0,getStrokeFromSprite:!1,autoTextColor:!0,paddingTop:9,paddingBottom:8,paddingLeft:10,paddingRight:10,marginBottom:5,pointerOrientation:"vertical",centerX:C,centerY:C,animationEasing:pt(tt),exportable:!1}),s("Tooltip",["system"]).setAll({pointerOrientation:"horizontal",paddingTop:4,paddingRight:7,paddingBottom:4,paddingLeft:7});{let r=s("PointedRectangle",["tooltip","system","background"]);r.setAll({strokeOpacity:.3}),b(r,"fill",e,"background"),b(r,"stroke",e,"grid")}s("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),s("Polygon").setAll({animationEasing:pt(tt)}),s("Link").setAll({cornerRadius:8,setStateOnChildren:!0});{let r=s("OrthogonalLine",["link","line"]);r.setAll({isMeasured:!1,crisp:!0});let o=r.states.create("active",{strokeWidth:2});b(o,"stroke",e,"negative")}s("OrthogonalLine",["link","hit"]).setAll({strokeWidth:10,opacity:0,strokeOpacity:0});{let r=s("OrthogonalLine");r.setAll({strokeWidth:1,strokeOpacity:1,cornerRadius:10}),b(r,"stroke",e,"grid")}{let r=s("Triangle",["link"]);r.setAll({width:14,height:10,centerY:0}),b(r,"fill",e,"grid"),b(r,"stroke",e,"grid"),r.states.create("default",{stateAnimationDuration:0});let o=r.states.create("active",{stateAnimationDuration:0,stroke:Mi(16777215),strokeWidth:2});o.set("draw",h=>{h.arc(0,0,11,0,Math.PI*2),h.moveTo(-4,-4),h.lineTo(4,4),h.moveTo(4,-4),h.lineTo(-4,4)}),b(o,"fill",e,"negative")}s("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:P.fromHex(16777215)});{let r=s("Label",["tooltip"]);r.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),b(r,"fill",e,"alternativeText")}s("Button").setAll({paddingTop:8,paddingBottom:8,paddingLeft:10,paddingRight:10,interactive:!0,layout:i,interactiveChildren:!1,setStateOnChildren:!0,focusable:!0}),s("Button").states.create("hover",{}),s("Button").states.create("down",{stateAnimationDuration:0}),s("Button").states.create("active",{}),s("Button").states.create("disabled",{forceInactive:!0});{let r=s("RoundedRectangle",["button","background"]);b(r,"fill",e,"primaryButton"),b(r,"stroke",e,"primaryButtonStroke")}{let r=s("RoundedRectangle",["button","background"]).states.create("hover",{});b(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0});b(r,"fill",e,"primaryButtonDown")}{let r=s("RoundedRectangle",["button","background"]).states.create("active",{});b(r,"fill",e,"primaryButtonActive")}{let r=s("RoundedRectangle",["button","background"]).states.create("disabled",{});b(r,"fill",e,"primaryButtonDisabled")}{let r=s("Graphics",["button","icon"]).states.create("disabled",{});b(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Label",["button"]).states.create("disabled",{});b(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Graphics",["button","icon"]);r.setAll({forceInactive:!0}),b(r,"stroke",e,"primaryButtonText")}{let r=s("Label",["button"]);b(r,"fill",e,"primaryButtonText")}s("ConfirmButton").setAll({toggleKey:"active",setStateOnChildren:!0,label:K.new(this._root,{text:t.translate("Confirm"),forceHidden:!0})});{let r=s("RoundedRectangle",["button","background","confirm"]).states.create("active",{});b(r,"fill",e,"negative")}s("Label",["button","confirm"]).setAll({paddingTop:0,paddingBottom:0,paddingRight:3,paddingLeft:5}),s("Label",["button","confirm"]).states.create("default",{stateAnimationDuration:0}),s("Label",["button","confirm"]).states.create("active",{forceHidden:!1,stateAnimationDuration:0});{let r=s("Graphics",["icon","confirm","button"]);r.setAll({stateAnimationDuration:0}),r.states.create("default",{stateAnimationDuration:0}),b(r,"stroke",e,"primaryButtonText")}{let r=s("Graphics",["icon","confirm","button"]).states.create("active",{svgPath:"M -5 1 L 0 6 L 8 -5",strokeWidth:2});b(r,"stroke",e,"primaryButtonText")}{let r=s("Graphics",["icon","confirm","button","secondary"]).states.create("active",{});b(r,"stroke",e,"primaryButtonText")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1});b(r,"fill",e,"negative")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1});b(r,"fill",e,"negative")}s("Button",["button","confirm"]).states.create("hoverActive",{}),s("Button",["zoom"]).setAll({paddingTop:18,paddingBottom:18,paddingLeft:12,paddingRight:12,centerX:46,centerY:-10,y:0,x:R,role:"button",ariaLabel:t.translate("Zoom Out"),layer:30});{let r=s("RoundedRectangle",["background","button","zoom"]);r.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),b(r,"fill",e,"primaryButton")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("hover",{});b(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0});b(r,"fill",e,"primaryButtonDown")}{let r=s("Graphics",["icon","button","zoom"]);r.setAll({crisp:!0,strokeOpacity:.7,draw:o=>{o.moveTo(0,0),o.lineTo(12,0)}}),b(r,"stroke",e,"primaryButtonText")}s("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:C,centerY:C,position:"absolute",role:"slider",ariaValueMin:"0",ariaValueMax:"100",ariaLabel:t.translate("Use up and down arrows to move selection")});{let r=s("RoundedRectangle",["background","resize","button"]);r.setAll({cornerRadiusBL:40,cornerRadiusBR:40,cornerRadiusTL:40,cornerRadiusTR:40}),b(r,"fill",e,"secondaryButton"),b(r,"stroke",e,"secondaryButtonStroke")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("hover",{});b(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0});b(r,"fill",e,"secondaryButtonDown")}{let r=s("Graphics",["resize","button","icon"]);r.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)}}),b(r,"stroke",e,"secondaryButtonText")}s("Button",["resize","vertical"]).setAll({rotation:90,cursorOverStyle:"ns-resize"}),s("Button",["resize","horizontal"]).setAll({cursorOverStyle:"ew-resize"}),s("Button",["play"]).setAll({paddingTop:13,paddingBottom:13,paddingLeft:14,paddingRight:14,ariaLabel:t.translate("Play"),toggleKey:"active"});{let r=s("RoundedRectangle",["play","background"]);r.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),b(r,"fill",e,"primaryButton")}{let r=s("Graphics",["play","icon"]);r.setAll({stateAnimationDuration:0,dx:1,draw:o=>{o.moveTo(0,-5),o.lineTo(8,0),o.lineTo(0,5),o.lineTo(0,-5)}}),b(r,"fill",e,"primaryButtonText")}s("Graphics",["play","icon"]).states.create("default",{stateAnimationDuration:0}),s("Graphics",["play","icon"]).states.create("active",{stateAnimationDuration:0,draw:r=>{r.moveTo(-4,-5),r.lineTo(-1,-5),r.lineTo(-1,5),r.lineTo(-4,5),r.lineTo(-4,-5),r.moveTo(4,-5),r.lineTo(1,-5),r.lineTo(1,5),r.lineTo(4,5),r.lineTo(4,-5)}}),s("Button",["switch"]).setAll({paddingTop:4,paddingBottom:4,paddingLeft:4,paddingRight:4,ariaLabel:t.translate("Press ENTER to toggle"),toggleKey:"active",width:40,height:24,layout:null});{let r=s("RoundedRectangle",["switch","background"]);r.setAll({strokeOpacity:.5,cornerRadiusBL:100,cornerRadiusBR:100,cornerRadiusTL:100,cornerRadiusTR:100}),b(r,"fill",e,"primaryButton")}{let r=s("Circle",["switch","icon"]);r.setAll({radius:8,centerY:0,centerX:0,dx:0}),b(r,"fill",e,"primaryButtonText")}s("Graphics",["switch","icon"]).states.create("active",{dx:16}),s("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:pt(tt)}),s("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:R}),s("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:R}),this.rule("Button",["scrollbar"]).setAll({exportable:!1});{let r=s("RoundedRectangle",["scrollbar","main","background"]);r.setAll({cornerRadiusTL:8,cornerRadiusBL:8,cornerRadiusTR:8,cornerRadiusBR:8,fillOpacity:.8}),b(r,"fill",e,"fill")}{let r=s("RoundedRectangle",["scrollbar","thumb"]);r.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),b(r,"fill",e,"secondaryButton")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{});b(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0});b(r,"fill",e,"secondaryButtonDown")}s("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:C,width:R,centerX:C,ariaLabel:t.translate("Use up and down arrows to move selection")}),s("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:C,centerY:C,height:R,ariaLabel:t.translate("Use left and right arrows to move selection")});{let r=s("PointedRectangle",["axis","tooltip","background"]);r.setAll({cornerRadius:0}),b(r,"fill",e,"alternativeBackground")}s("Label",["axis","tooltip"]).setAll({role:void 0}),s("Label",["axis","tooltip","y"]).setAll({textAlign:"right"}),s("Label",["axis","tooltip","y","opposite"]).setAll({textAlign:"left"}),s("Label",["axis","tooltip","x"]).setAll({textAlign:"center"}),s("Tooltip",["categoryaxis"]).setAll({labelText:"{category}"}),s("Star").setAll({spikes:5,innerRadius:5,radius:10}),s("Tooltip",["stock"]).setAll({paddingTop:6,paddingBottom:5,paddingLeft:7,paddingRight:7}),s("Tooltip",["indicator"]).setAll({forceHidden:!0}),s("PointedRectangle",["tooltip","stock","axis"]).setAll({pointerLength:0,pointerBaseWidth:0,cornerRadius:3}),s("Label",["tooltip","stock"]).setAll({fontSize:"0.8em"}),s("SpriteResizer").setAll({rotationStep:10,isMeasured:!1}),s("Container",["resizer","grip"]).states.create("hover",{});{let r=s("RoundedRectangle",["resizer","grip"]);r.setAll({strokeOpacity:.7,strokeWidth:1,fillOpacity:1,width:12,height:12}),b(r,"fill",e,"background"),b(r,"stroke",e,"alternativeBackground")}{let r=s("RoundedRectangle",["resizer","grip","outline"]);r.setAll({strokeOpacity:0,fillOpacity:0,width:20,height:20}),r.states.create("hover",{fillOpacity:.3}),b(r,"fill",e,"alternativeBackground")}s("RoundedRectangle",["resizer","grip","left"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0}),s("RoundedRectangle",["resizer","grip","right"]).setAll({cornerRadiusBL:0,cornerRadiusBR:0,cornerRadiusTL:0,cornerRadiusTR:0});{let r=s("Rectangle",["resizer","rectangle"]);r.setAll({strokeDasharray:[2,2],strokeOpacity:.5,strokeWidth:1}),b(r,"stroke",e,"alternativeBackground")}s("Graphics",["button","plus","icon"]).setAll({x:C,y:C,draw:r=>{r.moveTo(-4,0),r.lineTo(4,0),r.moveTo(0,-4),r.lineTo(0,4)}}),s("Graphics",["button","minus","icon"]).setAll({x:C,y:C,draw:r=>{r.moveTo(-4,0),r.lineTo(4,0)}}),s("Graphics",["button","home","icon"]).setAll({x:C,y:C,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"}),s("Button",["zoomtools"]).setAll({marginTop:1,marginBottom:2,role:"button"}),s("Button",["zoomtools","plus"]).setAll({ariaLabel:t.translate("Press ENTER to zoom in")}),s("Button",["zoomtools","minus"]).setAll({ariaLabel:t.translate("Press ENTER to zoom out")}),s("Button",["zoomtools","home"]).setAll({ariaLabel:t.translate("Home")}),s("ZoomTools").setAll({x:R,centerX:R,y:R,centerY:R,paddingRight:10,paddingBottom:10}),s("ProgressPie").setAll({radius:R,width:50,height:50,centerX:he(-50),centerY:he(-50),innerRadius:he(85),numberFormat:"#."});{let r=s("Label",["progresspie"]);r.setAll({centerX:C,centerY:C,fontSize:"0.75em"}),b(r,"fill",e,"primaryButton")}{let r=s("Circle",["progresspie"]);r.setAll({fillOpacity:.5}),b(r,"fill",e,"background")}{let r=s("Slice",["progresspie"]);r.setAll({startAngle:-90}),b(r,"fill",e,"primaryButton")}{let r=s("Slice",["progresspie","background"]);r.setAll({fillOpacity:.2,arc:360}),b(r,"fill",e,"primaryButton")}s("EditableLabel",["numericstepper"]).setAll({y:C,centerY:C,multiLine:!1,marginRight:2});{let r=s("Container",["numericstepper","buttons"]);r.setAll({layout:this._root.verticalLayout,centerY:C,y:C,marginRight:10,opacity:0}),r.states.create("active",{opacity:1}),r.states.create("default",{opacity:0})}{let r=s("Triangle",["numericstepper"]);r.setAll({width:17,height:11,marginTop:3,marginBottom:3,strokeWidth:5,strokeOpacity:0,cursorOverStyle:"pointer"}),b(r,"fill",e,"secondaryButton")}s("Triangle",["downbutton"]).setAll({rotation:180})}};function $(a){return function(){return a}}var ci=Math.abs,U=Math.atan2,kt=Math.cos,rs=Math.max,Ae=Math.min,it=Math.sin,Et=Math.sqrt,j=1e-12,zt=Math.PI,ae=zt/2,as=2*zt;function ns(a){return a>1?0:a<-1?zt:Math.acos(a)}function fi(a){return a>=1?ae:a<=-1?-ae:Math.asin(a)}var mi=Math.PI,gi=2*mi,Ht=1e-6,er=gi-Ht;function os(a){this._+=a[0];for(let t=1,e=a.length;t<e;++t)this._+=arguments[t]+a[t]}function ir(a){let t=Math.floor(a);if(!(t>=0))throw new Error(`invalid digits: ${a}`);if(t>15)return os;let e=10**t;return function(i){this._+=i[0];for(let n=1,s=i.length;n<s;++n)this._+=Math.round(arguments[n]*e)/e+i[n]}}var Ot=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?os:ir(t)}moveTo(t,e){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,e){this._append`L${this._x1=+t},${this._y1=+e}`}quadraticCurveTo(t,e,i,n){this._append`Q${+t},${+e},${this._x1=+i},${this._y1=+n}`}bezierCurveTo(t,e,i,n,s,r){this._append`C${+t},${+e},${+i},${+n},${this._x1=+s},${this._y1=+r}`}arcTo(t,e,i,n,s){if(t=+t,e=+e,i=+i,n=+n,s=+s,s<0)throw new Error(`negative radius: ${s}`);let r=this._x1,o=this._y1,h=i-t,l=n-e,d=r-t,p=o-e,u=d*d+p*p;if(this._x1===null)this._append`M${this._x1=t},${this._y1=e}`;else if(u>Ht)if(!(Math.abs(p*h-l*d)>Ht)||!s)this._append`L${this._x1=t},${this._y1=e}`;else{let f=i-r,m=n-o,g=h*h+l*l,v=f*f+m*m,x=Math.sqrt(g),c=Math.sqrt(u),w=s*Math.tan((mi-Math.acos((g+u-v)/(2*x*c)))/2),k=w/c,B=w/x;Math.abs(k-1)>Ht&&this._append`L${t+k*d},${e+k*p}`,this._append`A${s},${s},0,0,${+(p*f>d*m)},${this._x1=t+B*h},${this._y1=e+B*l}`}}arc(t,e,i,n,s,r){if(t=+t,e=+e,i=+i,r=!!r,i<0)throw new Error(`negative radius: ${i}`);let o=i*Math.cos(n),h=i*Math.sin(n),l=t+o,d=e+h,p=1^r,u=r?n-s:s-n;this._x1===null?this._append`M${l},${d}`:(Math.abs(this._x1-l)>Ht||Math.abs(this._y1-d)>Ht)&&this._append`L${l},${d}`,i&&(u<0&&(u=u%gi+gi),u>er?this._append`A${i},${i},0,1,${p},${t-o},${e-h}A${i},${i},0,1,${p},${this._x1=l},${this._y1=d}`:u>Ht&&this._append`A${i},${i},0,${+(u>=mi)},${p},${this._x1=t+i*Math.cos(s)},${this._y1=e+i*Math.sin(s)}`)}rect(t,e,i,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${i=+i}v${+n}h${-i}Z`}toString(){return this._}};function ls(){return new Ot}ls.prototype=Ot.prototype;function jt(a){let t=3;return a.digits=function(e){if(!arguments.length)return t;if(e==null)t=null;else{let i=Math.floor(e);if(!(i>=0))throw new RangeError(`invalid digits: ${e}`);t=i}return a},()=>new Ot(t)}function sr(a){return a.innerRadius}function rr(a){return a.outerRadius}function ar(a){return a.startAngle}function nr(a){return a.endAngle}function or(a){return a&&a.padAngle}function lr(a,t,e,i,n,s,r,o){var h=e-a,l=i-t,d=r-n,p=o-s,u=p*h-d*l;if(!(u*u<j))return u=(d*(t-s)-p*(a-n))/u,[a+u*h,t+u*l]}function $e(a,t,e,i,n,s,r){var o=a-e,h=t-i,l=(r?s:-s)/Et(o*o+h*h),d=l*h,p=-l*o,u=a+d,f=t+p,m=e+d,g=i+p,v=(u+m)/2,x=(f+g)/2,c=m-u,w=g-f,k=c*c+w*w,B=n-s,H=u*g-m*f,z=(w<0?-1:1)*Et(rs(0,B*B*k-H*H)),W=(H*w-c*z)/k,I=(-H*c-w*z)/k,O=(H*w+c*z)/k,L=(-H*c+w*z)/k,N=W-v,y=I-x,T=O-v,S=L-x;return N*N+y*y>T*T+S*S&&(W=O,I=L),{cx:W,cy:I,x01:-d,y01:-p,x11:W*(n/B-1),y11:I*(n/B-1)}}function hr(){var a=sr,t=rr,e=$(0),i=null,n=ar,s=nr,r=or,o=null,h=jt(l);function l(){var d,p,u=+a.apply(this,arguments),f=+t.apply(this,arguments),m=n.apply(this,arguments)-ae,g=s.apply(this,arguments)-ae,v=ci(g-m),x=g>m;if(o||(o=d=h()),f<u&&(p=f,f=u,u=p),!(f>j))o.moveTo(0,0);else if(v>as-j)o.moveTo(f*kt(m),f*it(m)),o.arc(0,0,f,m,g,!x),u>j&&(o.moveTo(u*kt(g),u*it(g)),o.arc(0,0,u,g,m,x));else{var c=m,w=g,k=m,B=g,H=v,z=v,W=r.apply(this,arguments)/2,I=W>j&&(i?+i.apply(this,arguments):Et(u*u+f*f)),O=Ae(ci(f-u)/2,+e.apply(this,arguments)),L=O,N=O,y,T;if(I>j){var S=fi(I/u*it(W)),Ct=fi(I/f*it(W));(H-=S*2)>j?(S*=x?1:-1,k+=S,B-=S):(H=0,k=B=(m+g)/2),(z-=Ct*2)>j?(Ct*=x?1:-1,c+=Ct,w-=Ct):(z=0,c=w=(m+g)/2)}var nt=f*kt(c),ot=f*it(c),Rt=u*kt(B),ne=u*it(B);if(O>j){var oe=f*kt(w),le=f*it(w),Ee=u*kt(k),He=u*it(k),lt;if(v<zt)if(lt=lr(nt,ot,Ee,He,oe,le,Rt,ne)){var Oe=nt-lt[0],Ne=ot-lt[1],Fe=oe-lt[0],Ue=le-lt[1],yi=1/it(ns((Oe*Fe+Ne*Ue)/(Et(Oe*Oe+Ne*Ne)*Et(Fe*Fe+Ue*Ue)))/2),vi=Et(lt[0]*lt[0]+lt[1]*lt[1]);L=Ae(O,(u-vi)/(yi-1)),N=Ae(O,(f-vi)/(yi+1))}else L=N=0}z>j?N>j?(y=$e(Ee,He,nt,ot,f,N,x),T=$e(oe,le,Rt,ne,f,N,x),o.moveTo(y.cx+y.x01,y.cy+y.y01),N<O?o.arc(y.cx,y.cy,N,U(y.y01,y.x01),U(T.y01,T.x01),!x):(o.arc(y.cx,y.cy,N,U(y.y01,y.x01),U(y.y11,y.x11),!x),o.arc(0,0,f,U(y.cy+y.y11,y.cx+y.x11),U(T.cy+T.y11,T.cx+T.x11),!x),o.arc(T.cx,T.cy,N,U(T.y11,T.x11),U(T.y01,T.x01),!x))):(o.moveTo(nt,ot),o.arc(0,0,f,c,w,!x)):o.moveTo(nt,ot),!(u>j)||!(H>j)?o.lineTo(Rt,ne):L>j?(y=$e(Rt,ne,oe,le,u,-L,x),T=$e(nt,ot,Ee,He,u,-L,x),o.lineTo(y.cx+y.x01,y.cy+y.y01),L<O?o.arc(y.cx,y.cy,L,U(y.y01,y.x01),U(T.y01,T.x01),!x):(o.arc(y.cx,y.cy,L,U(y.y01,y.x01),U(y.y11,y.x11),!x),o.arc(0,0,u,U(y.cy+y.y11,y.cx+y.x11),U(T.cy+T.y11,T.cx+T.x11),x),o.arc(T.cx,T.cy,L,U(T.y11,T.x11),U(T.y01,T.x01),!x))):o.arc(0,0,u,B,k,x)}if(o.closePath(),d)return o=null,d+""||null}return l.centroid=function(){var d=(+a.apply(this,arguments)+ +t.apply(this,arguments))/2,p=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-zt/2;return[kt(p)*d,it(p)*d]},l.innerRadius=function(d){return arguments.length?(a=typeof d=="function"?d:$(+d),l):a},l.outerRadius=function(d){return arguments.length?(t=typeof d=="function"?d:$(+d),l):t},l.cornerRadius=function(d){return arguments.length?(e=typeof d=="function"?d:$(+d),l):e},l.padRadius=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:$(+d),l):i},l.startAngle=function(d){return arguments.length?(n=typeof d=="function"?d:$(+d),l):n},l.endAngle=function(d){return arguments.length?(s=typeof d=="function"?d:$(+d),l):s},l.padAngle=function(d){return arguments.length?(r=typeof d=="function"?d:$(+d),l):r},l.context=function(d){return arguments.length?(o=d??null,l):o},l}var Bn=Array.prototype.slice;function Be(a){return typeof a=="object"&&"length"in a?a:Array.from(a)}function hs(a){this._context=a}hs.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(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2;default:this._context.lineTo(a,t);break}}};function Ie(a){return new hs(a)}function Me(a){return a[0]}function Le(a){return a[1]}function _i(a,t){var e=$(!0),i=null,n=Ie,s=null,r=jt(o);a=typeof a=="function"?a:a===void 0?Me:$(a),t=typeof t=="function"?t:t===void 0?Le:$(t);function o(h){var l,d=(h=Be(h)).length,p,u=!1,f;for(i==null&&(s=n(f=r())),l=0;l<=d;++l)!(l<d&&e(p=h[l],l,h))===u&&((u=!u)?s.lineStart():s.lineEnd()),u&&s.point(+a(p,l,h),+t(p,l,h));if(f)return s=null,f+""||null}return o.x=function(h){return arguments.length?(a=typeof h=="function"?h:$(+h),o):a},o.y=function(h){return arguments.length?(t=typeof h=="function"?h:$(+h),o):t},o.defined=function(h){return arguments.length?(e=typeof h=="function"?h:$(!!h),o):e},o.curve=function(h){return arguments.length?(n=h,i!=null&&(s=n(i)),o):n},o.context=function(h){return arguments.length?(h==null?i=s=null:s=n(i=h),o):i},o}function dr(a,t,e){var i=null,n=$(!0),s=null,r=Ie,o=null,h=jt(l);a=typeof a=="function"?a:a===void 0?Me:$(+a),t=typeof t=="function"?t:t===void 0?$(0):$(+t),e=typeof e=="function"?e:e===void 0?Le:$(+e);function l(p){var u,f,m,g=(p=Be(p)).length,v,x=!1,c,w=new Array(g),k=new Array(g);for(s==null&&(o=r(c=h())),u=0;u<=g;++u){if(!(u<g&&n(v=p[u],u,p))===x)if(x=!x)f=u,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=u-1;m>=f;--m)o.point(w[m],k[m]);o.lineEnd(),o.areaEnd()}x&&(w[u]=+a(v,u,p),k[u]=+t(v,u,p),o.point(i?+i(v,u,p):w[u],e?+e(v,u,p):k[u]))}if(c)return o=null,c+""||null}function d(){return _i().defined(n).curve(r).context(s)}return l.x=function(p){return arguments.length?(a=typeof p=="function"?p:$(+p),i=null,l):a},l.x0=function(p){return arguments.length?(a=typeof p=="function"?p:$(+p),l):a},l.x1=function(p){return arguments.length?(i=p==null?null:typeof p=="function"?p:$(+p),l):i},l.y=function(p){return arguments.length?(t=typeof p=="function"?p:$(+p),e=null,l):t},l.y0=function(p){return arguments.length?(t=typeof p=="function"?p:$(+p),l):t},l.y1=function(p){return arguments.length?(e=p==null?null:typeof p=="function"?p:$(+p),l):e},l.lineX0=l.lineY0=function(){return d().x(a).y(t)},l.lineY1=function(){return d().x(a).y(e)},l.lineX1=function(){return d().x(i).y(t)},l.defined=function(p){return arguments.length?(n=typeof p=="function"?p:$(!!p),l):n},l.curve=function(p){return arguments.length?(r=p,s!=null&&(o=r(s)),l):r},l.context=function(p){return arguments.length?(p==null?s=o=null:o=r(s=p),l):s},l}function ds(a,t,e){a._context.bezierCurveTo(a._x1+a._k*(a._x2-a._x0),a._y1+a._k*(a._y2-a._y0),a._x2+a._k*(a._x1-t),a._y2+a._k*(a._y1-e),a._x2,a._y2)}function us(a,t){this._context=a,this._k=(1-t)/6}us.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:ds(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2,this._x1=a,this._y1=t;break;case 2:this._point=3;default:ds(this,a,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=a,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var ur=(function a(t){function e(i){return new us(i,t)}return e.tension=function(i){return a(+i)},e})(0);function ps(a,t){this._context=a,this._t=t}ps.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(a,t){switch(a=+a,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(a,t):this._context.moveTo(a,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(a,t);else{var e=this._x*(1-this._t)+a*this._t;this._context.lineTo(e,this._y),this._context.lineTo(e,t)}break}}this._x=a,this._y=t}};function pr(a){return new ps(a,1)}export{ht as a,Yt as b,Oi as c,At as d,ge as e,cs as f,fs as g,ye as h,dt as i,_s as j,ut as k,st as l,ys as m,vs as n,bs as o,ks as p,$t as q,tt as r,pt as s,Te as t,Bt as u,gr as v,_r as w,yr as x,V as y,F as z,vt as A,xt as B,ke as C,zr as D,et as E,ft as F,G,bt as H,Dt as I,rt as J,Wt as K,Vt as L,di as M,Vs as N,It as O,M as P,at as Q,K as R,b as S,ss as T,Re as U,Xi as V,Jt as W,Tt as X,Zi as Y,q as Z,qi as _,zs as $,Qi as aa,Xs as ba,Mt as ca,ts as da,Zs as ea,es as fa,Qt as ga,wt as ha,Lt as ia,te as ja,hr as ka,_i as la,dr as ma,ur as na,pr as oa,Pt as pa,ee as qa,ie as ra,re as sa};
|
package/dist/cdn/GBJY4A36.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a}from"./R5DBF7SZ.js";import"./4L43F7HU.js";import"./ZCFWKPXL.js";import"./GIBXI44G.js";import"./RQT2PVDJ.js";import"./LXME6MU5.js";import"./7IGSTLKW.js";import"./TAVTDQ6S.js";export{a as ArcgisLayerListItemIndicator};
|
package/dist/cdn/HWRPCOVE.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{b as Z}from"./JB6WQEFJ.js";import h from"./DSIYRWN2.js";import{a as y}from"./BK2UM27Y.js";import"./FH3WFF5O.js";import{a as f}from"./6J3KSMFG.js";import g from"./F4AJCUZ6.js";import"./WJQUE4DR.js";import e from"./OISNNHIG.js";import{a as Q}from"./7465ANAR.js";import d from"./TWPVYHJG.js";import c from"./KRJCOTGC.js";import b from"./U7WRQCRV.js";import{d as N,h as j}from"./GIBXI44G.js";import"./RQT2PVDJ.js";import a from"./SBYVR52H.js";import"./LXME6MU5.js";import{E as U,F,O as H,P as w,Q as S,R as z,X as P,_ as q,a as K,b as u,e as k,x as W}from"./7IGSTLKW.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:ne},le,ae,{watch:m,on:re,whenOnce:ce},de,{getOrCreateMapValue:ie,createReactiveMap:he},pe,{property:r,subclass:ge},{ignoreAbortErrors:C},ue,me,,,,v,X,{f:J},Y])=>{var ve=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],ye=new Set(ve);function ee(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Ce=K`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,be={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},fe={selectionTools:{defaultPriority:y.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:y.High,groupKind:"actions"},createTools:{defaultPriority:y.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:y.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:y.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:y.Default,groupKind:"actions"}},Te=Object.defineProperty,we=Object.getOwnPropertyDescriptor,a=(i,e,t,o)=>{for(var s=o>1?void 0:o?we(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Te(e,t,s),s},l=class extends pe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new ue,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new me({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Y({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),re(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],h=i.rootPlugins,d=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&h)return[...this._pluginsToActions(h),...d];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...d];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:be[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...d]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let h=o?.get("selection-toolbar");return h&&c.push(...this._customActionsToSketchActions(h)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ce(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)ie(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};a([r()],l.prototype,"_isEffectiveRenderStateFrozen",1);a([r()],l.prototype,"_effectiveGeometrySimplificationInProgress",2);a([r()],l.prototype,"_state",1);a([r()],l.prototype,"_customToolOptions",2);a([r()],l.prototype,"_activeCustomToolOptions",2);a([r()],l.prototype,"_customActions",2);a([r()],l.prototype,"selectionViewModel",2);a([r()],l.prototype,"_activeSelectionTool",1);a([r()],l.prototype,"_activePluginUniqueIds",1);a([r()],l.prototype,"_createToolActions",1);a([r()],l.prototype,"_shouldShowBackButton",1);a([r()],l.prototype,"_selectionToolActions",1);a([r()],l.prototype,"_settingsActions",1);a([r()],l.prototype,"_activeTool",1);a([r()],l.prototype,"_selectionCommands",1);a([r()],l.prototype,"_selectionSetActions",1);a([r()],l.prototype,"_undoRedoActions",1);a([r()],l.prototype,"sketchViewModel",2);a([r()],l.prototype,"visibleElements",2);a([r()],l.prototype,"view",2);a([r()],l.prototype,"settingsPopoverOpen",2);a([r()],l.prototype,"availableCreateTools",2);a([r()],l.prototype,"state",1);a([r()],l.prototype,"activeTool",1);a([r()],l.prototype,"activePluginIds",1);a([r()],l.prototype,"groupedActions",1);l=a([ge("components.sketch.SketchComponentViewModel")],l);var O=class extends H{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==U.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return k}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),k}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||J(()=>t(e),{timeout:16})})}},te=F(O),Se=X(i=>new de({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new ae({text:"hello world"}),useLegacyCreateTools:!1})),A=class extends z{constructor(){super(),this.#t=new l,this.#o=w(),this.#s=w(),this._defaultGraphicsLayer=null,this._messages=Q(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=he(),this.viewModel=Se(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=v(()=>this.viewModel,"create"),this.arcgisDelete=v(()=>this.viewModel,"delete"),this.arcgisDuplicate=v(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=j()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=W(),this.arcgisRedo=v(()=>this.viewModel,"redo"),this.arcgisUndo=v(()=>this.viewModel,"undo"),this.arcgisUpdate=v(()=>this.viewModel,"update"),N(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),m(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Ce}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(ye.has(e)?e:Z.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new le({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:h}=this,d=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${S(this.#o)}>${f({hidden:!d?.visible||h!=="inline",children:this._renderActionGroup(d)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!d?.visible||h!=="inline-end",children:this._renderActionGroup(d)})}</arcgis-toolbar>${f({hidden:!d?.visible||h!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(d)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,useViewOptions:p,view:h,viewModel:d}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${p||s} .directionMode=${d.valueOptions.directionMode} .labelsEnabled=${d.labelOptions.enabled} .tooltipsEnabled=${d.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:T,directionMode:E}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=E;break;case"tooltipsEnabled":b.tooltipOptions.enabled=T;break}}}></arcgis-sketch-tooltip-controls>${!p&&!o?u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${h} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${d.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=fe[o],h=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,d=t.map(n=>this._renderCommand(n)),g=ee(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${h}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${h}>${d}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${h}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${h}>${d}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${h}>${d}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:h,id:d,kind:g,labelKey:n,labelParameters:T,loading:E,tooltipKey:b,iconFlipRTL:L,onClick:G,refKey:$,textEnabled:R,renderAsAction:oe}){let{_messages:V,_refMap:se,layout:x}=this,_=ee(n,V),M=_===void 0?n:T?ne(_,T):_,I=V?.[b]??M,D=$?ie(se,$,w):this.#s,B={afterCreate:t,afterRemoved:o,afterUpdate:s};return oe?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${h} .icon=${p} .iconFlipRtl=${L} id=${d??P} .kind=${g} .loading=${E} .labelText=${x==="horizontal"?M:""} .textEnabled=${R} .tooltipText=${x==="horizontal"&&R?"":I} @arcgisToolbarItemSelected=${G} ${te(B)} ${S(D)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${h} .icon=${p} id=${d??P} .iconFlipRtl=${L} .labelText=${M} .tooltipText=${I} @arcgisItemSelected=${G} ${te(B)} ${S(D)}></arcgis-toolbar-item>`}};q("arcgis-sketch",A);return A},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g,h)
|
package/dist/cdn/M4M3QTI4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as w}from"./Y6WTYXVP.js";import{a as P}from"./FH3WFF5O.js";import h from"./3ND2HQVC.js";import{d as _,k as y}from"./FXUZU52U.js";import f from"./F4AJCUZ6.js";import{a as B}from"./WJQUE4DR.js";import e from"./OISNNHIG.js";import{a as $}from"./7465ANAR.js";import{a as u}from"./L5IRXOCJ.js";import c from"./KRJCOTGC.js";import b from"./U7WRQCRV.js";import{h as D}from"./GIBXI44G.js";import"./RQT2PVDJ.js";import a from"./SBYVR52H.js";import"./LXME6MU5.js";import{Q as U,R as k,T as v,X as g,_ as M,a as C,b as d,x as S}from"./7IGSTLKW.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{createChart:F},{signal:L},{ignoreAbortErrors:b},{watch:m},A,{property:a,subclass:R},,,,z,{b:O,d:f},E])=>{var I=C`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{--internal-chart-height: 180px;--internal-gap: var(--calcite-spacing-sm-plus);width:550px;isolation:isolate;position:relative;container-type:inline-size}.root{display:flex;flex-direction:column;width:100%;min-width:0;gap:var(--internal-gap)}.header{display:flex;flex-direction:row;align-items:center;justify-content:flex-end;margin-bottom:calc(var(--internal-gap) * -1)}.actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:var(--calcite-spacing-xs)}.action-button{width:auto;min-height:32px}.main-container{display:flex;position:relative;flex-flow:column;width:100%;height:var(--internal-chart-height)}.chart-container{position:relative;width:100%;height:100%}.prompt-container{box-sizing:border-box;display:grid;place-content:center;padding-inline:var(--calcite-spacing-md);height:100%;text-align:center}.prompt-message{margin:0;width:100%}.spinner{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transition:opacity .15s ease-in-out;transition-delay:0;opacity:0;&.visible{transition-delay:50ms;opacity:1}&.small{inset-inline-start:0;inset-block-start:-24px;left:unset;transform:none;color:var(--calcite-color-brand)}}@container (max-width: 400px){.esri-widget--panel{height:auto}.actions{flex-direction:column}.action-button{align-self:stretch}}`;async function T(t,e,i){let n=await H(t,e);return O(i),Z(n)?n.highlight(e):P()}async function H(t,e){let i=e?.layer;if(!(!i||i.type==="subtype-sublayer"||i.type==="sublayer"||i.type==="building-component"))return await t.whenLayerView(i)}function Z(t){return t!=null&&"highlight"in t&&typeof t.highlight=="function"}function j({geometry:t}){return t?.type==="polyline"&&t.paths.length>0&&t.paths.every(e=>e.length>=2)}function G({geometry:t}){return t?.type==="polyline"&&t.paths.reduce((e,i)=>e+i.length,0)>0}function q(t){return t?.samples?.some(e=>e.z!=null)??!1}function J(t){return t?.type==="polyline"}var K=Object.defineProperty,N=Object.getOwnPropertyDescriptor,o=(t,e,i,n)=>{for(var r=n>1?void 0:n?N(e,i):e,l=t.length-1,c;l>=0;l--)(c=t[l])&&(r=(n?c(e,i,r):c(r))||r);return n&&r&&K(e,i,r),r},s=class extends E{constructor(){super(...arguments),this._resettingUnits=!1,this.highlightDisabled=!1,this.uniformChartScaling=!1,this.shouldForceInteractive=!1,this.supportedViewType="both",this.unsupportedErrorMessage=""}get _hasSamples(){let{progress:t}=this;return!!this.analysisView?.results?.some(e=>e.available&&(t<1||q(e)))}get doneButtonAvailable(){if(this.featureIsSelected)return!1;let{geometry:t}=this.analysis;return J(t)&&t.paths.length>0&&t.paths[0].length>2}get effectiveDisplayUnits(){return this.analysisView?.effectiveDisplayUnits}get errorState(){if(!j(this.analysis))return"no-valid-input";let t=this.analysisView?.error;if(t)switch(t.name){case"too-complex":return"too-complex";case"elevation-query-error":return"no-valid-input";default:return"unknown"}return this._hasSamples?"none":"no-available-profiles"}get feature(){return this._selectedFeature}set feature(t){t?t!==this.feature&&(this.analysis.setGeometryFromFeature(t),this._selectedFeature=t):this._selectedFeature=void 0}get featureIsSelected(){return this.feature!=null}get hasVertices(){return G(this.analysis)}get indicatorRelativePosition(){return this.analysisView?.indicatorRelativePosition??void 0}get geometry(){return this.analysis.geometry}set geometry(t){this.analysis.geometry=t}get elevationInfo(){return this.analysis.elevationInfo}set elevationInfo(t){this.analysis.elevationInfo=t}get profiles(){return this.analysis.profiles}set profiles(t){this.analysis.profiles=t}get progress(){return this.analysisView?.progress??0}get results(){return this.analysisView?.results??[]}get selectButtonAvailable(){for(let t of this.view?.map?.allLayers.toArray()??[])if(t.type==="graphics"&&!("internal"in t&&t.internal)&&t.graphics.some(e=>e.geometry?.type==="polyline")||"geometryType"in t&&t.geometryType==="polyline")return!0;return!!this.view?.graphics?.some(t=>t.geometry?.type==="polyline")}get state(){return this.disabled||!this.ready?"disabled":this._selectingPromise?"selecting":this.operationState==="active"?"creating":this.analysis.valid?this.featureIsSelected?"selected":"created":"ready"}get distanceUnit(){return y({userUnit:this._userDistanceUnit,analysisUnit:this.analysis.displayUnits?.distance,options:this.distanceUnitOptions,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.length})}set distanceUnit(t){this._userDistanceUnit=t}get distanceUnitOptions(){return V(this._userDistanceUnitOptions)}set distanceUnitOptions(t){this._userDistanceUnitOptions=t}get elevationUnit(){return y({userUnit:this._userElevationUnit,analysisUnit:this.analysis.displayUnits?.elevation,options:this.elevationUnitOptions,defaultUnit:this.defaultMeasurementSystem,viewUnit:this.view?.options.displayUnits.verticalLength})}set elevationUnit(t){this._userElevationUnit=t}get elevationUnitOptions(){return V(this._userElevationUnitOptions)}set elevationUnitOptions(t){this._userElevationUnitOptions=t}get canResetDistanceUnit(){return this._userDistanceUnit!=null||this.analysis.displayUnits.distance!=null}get canResetElevationUnit(){return this._userElevationUnit!=null||this.analysis.displayUnits.elevation!=null}resetUnit(t){this._resettingUnits=!0;try{t==="distance"?this._userDistanceUnit=void 0:this._userElevationUnit=void 0,this.analysis.displayUnits[t]=null}finally{this._resettingUnits=!1}}initialize(){this.addHandles([m(()=>({analysis:this.analysis,unitDistance:this._userDistanceUnit,unitElevation:this._userElevationUnit}),({analysis:t,unitDistance:e,unitElevation:i})=>{this._resettingUnits||(i&&(t.displayUnits.elevation=i),e&&(t.displayUnits.distance=e))},{sync:!0,initial:!0}),m(()=>({selectedFeature:this.feature,profiles:this.analysis.profiles.toArray()}),({selectedFeature:t,profiles:e},i)=>{this._highlightSelectedFeature(this.highlightDisabled?void 0:t),this.analysis.viewOptions.geometryVisualizationVisible=!this.highlightDisabled&&t==null;let n=i?.selectedFeature;e.forEach(r=>{switch(r.type){case"scene":this._excludeSelectedFeatureFromProfile(r,t,n);break;case"input":r.chartOptions.lineVisible=t!=null,r.viewOptions.lineVisible=t!=null;break}})},{initial:!0})])}destroy(){this._removeSelectionHighlight()}async select(){if(this.interactionDisabled)return;let t=this.analysisView;if(!t)return;this.clear();let e=super.start({operation:async i=>{let n=await t.pickFeature(i);i?.signal?.aborted||(t.interactive=!1,this.feature=n.feature)},clear:!1});this._selectingPromise=e;try{await b(e)}finally{this._selectingPromise===e&&(this._selectingPromise=void 0)}}async place(t){await this.analysisView?.place(t)}clearAnalysis(){this.geometry=null,this.elevationInfo=null,this.feature=void 0}constructAnalysis(){return new A}_highlightSelectedFeature(t){this._removeSelectionHighlight();let e=this.view;!e||!t||(this._selectionHighlightTask=f(async i=>await T(e,t,{signal:i})))}_removeSelectionHighlight(){this._selectionHighlightTask?.value?.remove(),this._selectionHighlightTask=B(this._selectionHighlightTask)}_excludeSelectedFeatureFromProfile(t,e,i){let n=new Set(t.exclude??[]);i&&n.delete(i),e&&n.add(e),t.exclude=Array.from(n)}};o([a()],s.prototype,"_userDistanceUnit",2);o([a()],s.prototype,"_userDistanceUnitOptions",2);o([a()],s.prototype,"_userElevationUnit",2);o([a()],s.prototype,"_userElevationUnitOptions",2);o([a()],s.prototype,"_selectingPromise",2);o([a()],s.prototype,"_selectedFeature",2);o([a()],s.prototype,"_selectionHighlightTask",2);o([a()],s.prototype,"_hasSamples",1);o([a()],s.prototype,"doneButtonAvailable",1);o([a({readOnly:!0})],s.prototype,"effectiveDisplayUnits",1);o([a({readOnly:!0})],s.prototype,"errorState",1);o([a()],s.prototype,"feature",1);o([a()],s.prototype,"featureIsSelected",1);o([a({readOnly:!0})],s.prototype,"hasVertices",1);o([a()],s.prototype,"highlightDisabled",2);o([a()],s.prototype,"indicatorRelativePosition",1);o([a()],s.prototype,"geometry",1);o([a()],s.prototype,"elevationInfo",1);o([a()],s.prototype,"profiles",1);o([a({readOnly:!0})],s.prototype,"progress",1);o([a({readOnly:!0})],s.prototype,"results",1);o([a({readOnly:!0})],s.prototype,"selectButtonAvailable",1);o([a({readOnly:!0})],s.prototype,"state",1);o([a()],s.prototype,"uniformChartScaling",2);o([a()],s.prototype,"distanceUnit",1);o([a()],s.prototype,"distanceUnitOptions",1);o([a()],s.prototype,"elevationUnit",1);o([a()],s.prototype,"elevationUnitOptions",1);o([a({readOnly:!0})],s.prototype,"canResetDistanceUnit",1);o([a({readOnly:!0})],s.prototype,"canResetElevationUnit",1);s=o([R("components.elevation-profile.ElevationProfileViewModel")],s);function V(t){let e=t?.filter(i=>_.includes(i));return e&&e.length>0?e:_.slice()}var W=z(s),x=class extends k{constructor(){super(...arguments),this.viewModel=W(this),this._chartInitializationTask=L(void 0),this._messages=$(),this._hideZoomOutButton=!0,this._hasSettingsStartContent=!1,this._hasSettingsEndContent=!1,this.analysis=this.viewModel.analysis,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.effectiveDisplayUnits=this.viewModel.effectiveDisplayUnits,this.feature=this.viewModel.feature,this.hideChart=!1,this.hideChartGridLines=!1,this.hideChartAxisLabels=!1,this.hideClearButton=!1,this.hideLegend=!1,this.hideSelectButton=!1,this.hideSettingsButton=!1,this.hideResetUnitsButton=!1,this.hideStartButton=!1,this.hideUniformChartScalingToggle=!1,this.hideDistanceDisplayUnitSelect=!1,this.hideElevationDisplayUnitSelect=!1,this.hideVisualization=this.viewModel.hideVisualization,this.highlightDisabled=this.viewModel.highlightDisabled,this.icon="altitude",this.indicatorRelativePosition=this.viewModel.indicatorRelativePosition,this.interactionDisabled=this.viewModel.interactionDisabled,this.geometry=this.viewModel.geometry,this.elevationInfo=this.viewModel.elevationInfo,this.profiles=this.viewModel.profiles,this.progress=this.viewModel.progress,this.state=this.viewModel.state,this.uniformChartScaling=this.viewModel.uniformChartScaling,this.distanceUnit=this.viewModel.distanceUnit,this.distanceUnitOptions=this.viewModel.distanceUnitOptions,this.elevationUnit=this.viewModel.elevationUnit,this.elevationUnitOptions=this.viewModel.elevationUnitOptions,this.arcgisPropertyChange=D()("analysis","effectiveDisplayUnits","elevationInfo","feature","geometry","indicatorRelativePosition","interactionDisabled","progress","state"),this.arcgisReady=S()}static{this.properties={_messages:16,_hideZoomOutButton:16,_chartContainer:16,_hasSettingsStartContent:16,_hasSettingsEndContent:16,analysis:0,view:0,autoDestroyDisabled:5,effectiveDisplayUnits:32,feature:0,hideChart:5,hideChartGridLines:5,hideChartAxisLabels:5,hideClearButton:5,hideLegend:5,hideSelectButton:5,hideSettingsButton:5,hideResetUnitsButton:5,hideStartButton:5,hideUniformChartScalingToggle:5,hideDistanceDisplayUnitSelect:5,hideElevationDisplayUnitSelect:5,hideVisualization:5,highlightDisabled:5,icon:3,indicatorRelativePosition:40,interactionDisabled:5,geometry:0,elevationInfo:0,label:1,messageOverrides:0,referenceElement:1,profiles:0,progress:40,state:32,uniformChartScaling:5,distanceUnit:1,distanceUnitOptions:0,elevationUnit:1,elevationUnitOptions:0}}static{this.styles=I}get _selectButtonVisible(){return!this.hideSelectButton&&this.viewModel.selectButtonAvailable}get _chart(){return this._chartInitializationTask.value?.value}async clear(){this.viewModel.clear()}async destroy(){await this.manager.destroy()}async select(){b(this.viewModel.select())}async start(){b(this.viewModel.start())}async stop(){this.viewModel.stop()}load(){this.manager.onLifecycle(()=>[m(()=>({container:this._chartContainer,messages:this._messages}),({container:e,messages:i})=>{this._destroyChart(),!(!e||i._loading)&&(this._chartInitializationTask.value=f(async n=>await F({view:this.viewModel.view,analysisView:this.viewModel.analysisView,container:e,messages:i,signal:n,uniformScaling:this.viewModel.uniformChartScaling,onRangeChange:(r,l)=>{this._hideZoomOutButton=r===1&&l===1},onCursorPositionChange:(r,l)=>{let{analysisView:c}=this.viewModel;c&&(c.indicatorRelativePosition=r)}})))},{sync:!0,initial:!0}),m(()=>({chart:this._chart,messages:this._messages,view:this.viewModel.view,analysisView:this.viewModel.analysisView,uniformScaling:this.viewModel.uniformChartScaling,hideGridLines:this.hideChartGridLines,hideLabels:this.hideChartAxisLabels}),({chart:e,messages:i,view:n,analysisView:r,uniformScaling:l})=>{e&&(e.messages=i,e.view=n,e.analysisView=r,e.uniformScaling=l,e.hideGridLines=this.hideChartGridLines,e.hideAxisLabels=this.hideChartAxisLabels)},{sync:!0,initial:!0}),{remove:()=>this._destroyChart()}])}_destroyChart(){let e=this._chart;this._chartInitializationTask.value?.abort(),this._chartInitializationTask.value=void 0,e?.destroy()}_onCancelButtonClick(){this.viewModel.stop(),this.viewModel.clear()}_onDoneButtonClick(){this.viewModel.stop()}_getErrorMessage(){let e=X[this.viewModel.errorState];return e?this._messages?.errors?.[e]:void 0}_onClearButtonClick(){this.viewModel.clear()}_onZoomOutButtonClick(){this._chart?.zoomOut()}_onChartContainerRef(e){this._chartContainer=e}render(){return d`<div aria-label=${this._messages.componentLabel??g} class=${v({root:!0,[u.widget]:!0,[u.widgetDisabled]:this.viewModel.state==="disabled",[u.panel]:!0})} role=presentation>${this._renderContentForState()}</div>`}_renderContentForState(){switch(this.viewModel.state){case"ready":return this._renderContentForReadyState();case"selecting":return this._renderContentForSelectingState();case"creating":return this._renderContentForCreatingState();case"selected":return this._renderContentForSelectedState();case"created":return this._renderContentForCreatedState();case"disabled":return this._renderContentForReadyState()}}_renderContentForReadyState(){let{_messages:e,hideSelectButton:i,hideStartButton:n}=this,{selectButtonAvailable:r}=this.viewModel,l=!i&&r,c;return!n&&l?c=e.readyPrompt:n?l?c=e.readyPromptSelectOnly:c=e.errors?.noProfile:c=e.readyPromptCreateOnly,this._renderContent({prompt:c,chart:!1,actions:p})}_renderContentForSelectingState(){let{view:e}=this.viewModel;if(!e)return;let i=this._messages[`selectingPrompt-${e.type}`];return this._renderContent({prompt:i,chart:!1,actions:[{type:"select-cancel"}]})}_renderContentForCreatingState(){let{viewModel:e}=this,{view:i}=e;if(!i)return;let n=e.hasVertices?[{type:"sketch-cancel"},{type:"sketch-done",disabled:!e.doneButtonAvailable}]:[{type:"select"},{type:"sketch",disabled:!0}];if(e.errorState==="no-valid-input"){let l=this._messages[`creatingPrompt-${i.type}`];return this._renderContent({chart:!1,actions:n,prompt:l})}let r=this._getErrorMessage();return r?this._renderContent({chart:!1,actions:n,prompt:r}):this._renderContent({chart:!0,actions:n})}_renderContentForSelectedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContentForCreatedState(){let e=this._getErrorMessage();return e?this._renderContent({chart:!1,actions:p,prompt:e}):this._renderContent({chart:!0,actions:p})}_renderContent(e){let{viewModel:i}=this,n=i.geometry!=null;return d`<header class="header">${h({hidden:this._hideZoomOutButton,children:this._renderZoomOutButton()})}${h({hidden:this.hideClearButton||!n,children:this._renderClearButton()})}${h({hidden:this.hideSettingsButton,children:this._renderSettingsButton()})}</header><div class="main-container">${e.prompt!=null?this._renderPrompt(e.prompt):e.chart?this._renderChart():void 0}</div>${h({hidden:this.hideLegend,children:this._renderLegend()})}${this._renderActions(e)}`}_renderPrompt(e){return[d`<div class="prompt-container"><p class="prompt-message">${e}</p></div>`]}_renderZoomOutButton(){let e=this._messages.zoomOut??"";return d`<calcite-action icon=magnifying-glass-minus @click=${this._onZoomOutButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderChart(){if(this.hideChart)return;let e=this._chart;return d`${this._renderSpinner({size:e?.chartVisible?"small":"large",visible:e?.spinnerVisible??!1})}<div class="chart-container" ${U(this._onChartContainerRef)}></div>`}_renderSpinner(e){let i=e.size==="small",n=e.visible??!0;return d`<calcite-loader class=${v({spinner:!0,small:i,visible:n})} .inline=${i} label></calcite-loader>`}_renderClearButton(){let e=this._messages.clearProfile??"";return d`<calcite-action icon=trash @click=${this._onClearButtonClick} .text=${e} title=${e??g}></calcite-action>`}_renderLegend(){return d`<arcgis-elevation-profile-legend .effectiveDisplayUnits=${this.viewModel.effectiveDisplayUnits} .featureSelected=${this.viewModel.featureIsSelected} .messages=${this._messages} .profiles=${this.profiles} .results=${this.viewModel.results}></arcgis-elevation-profile-legend>`}_renderSettingsButton(){return d`<arcgis-elevation-profile-settings .hasCustomStartContent=${this._hasSettingsStartContent} .hasCustomEndContent=${this._hasSettingsEndContent} .viewModel=${this.viewModel} .hideUniformChartScalingToggle=${this.hideUniformChartScalingToggle} .hideDistanceDisplayUnitSelect=${this.hideDistanceDisplayUnitSelect} .hideElevationDisplayUnitSelect=${this.hideElevationDisplayUnitSelect} .hideResetUnitsButton=${this.hideResetUnitsButton} .messages=${this._messages} .messageOverrides=${this.messageOverrides} .uniformChartScaling=${this.viewModel.uniformChartScaling} .unitOptionsDistance=${this.viewModel.distanceUnitOptions} .unitOptionsElevation=${this.viewModel.elevationUnitOptions} @arcgisElevationProfileSettingsUniformChartScalingChange=${e=>{this.viewModel.uniformChartScaling=e.detail}}><slot name=settings-start slot=settings-start @slotchange=${e=>{this._hasSettingsStartContent=w(e)}}></slot><slot name=settings-end slot=settings-end @slotchange=${e=>{this._hasSettingsEndContent=w(e)}}></slot></arcgis-elevation-profile-settings>`}_renderActions({actions:e}){let i=this._messages,n=e.map(r=>{switch(r.type){case"sketch":return h({hidden:this.hideStartButton,children:this._renderAction({action:r,label:i.sketchButtonLabel,primary:!0,onClick:()=>{this.start()}})});case"sketch-cancel":return h({hidden:this.hideStartButton,children:this._renderAction({action:r,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});case"sketch-done":return h({hidden:this.hideStartButton,children:this._renderAction({action:r,label:i.doneButtonLabel,primary:!0,onClick:this._onDoneButtonClick})});case"select":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:r,label:i.selectButtonLabel,primary:!1,onClick:()=>{this.select()}})});case"select-cancel":return h({hidden:!this._selectButtonVisible,children:this._renderAction({action:r,label:i.cancelButtonLabel,primary:!1,onClick:this._onCancelButtonClick})});default:return}}).filter(Boolean);return n.length?d`<footer class="actions">${n}</footer>`:void 0}_renderAction({action:e,label:i,onClick:n,primary:r}){return d`<calcite-button .appearance=${r?"solid":"outline-fill"} class="action-button" .disabled=${e.disabled||this.interactionDisabled&&(e.type==="sketch"||e.type==="select")} @click=${n}>${i}</calcite-button>`}};function h(t){return t.hidden?void 0:t.children}var p=[{type:"select"},{type:"sketch"}],X={none:void 0,"no-valid-input":"noProfile","no-available-profiles":"noProfile","too-complex":"tooComplex",unknown:"unknown"};M("arcgis-elevation-profile",x);return x},"applications/Components/analysisUtils","applications/Components/reactiveUtils","core/promiseUtils","core/reactiveUtils","analysis/ElevationProfileAnalysis","core/accessorSupport/decorators",a,b,c,e,f,h)
|