@arcgis/map-components 5.1.0-next.3 → 5.1.0-next.31
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/README.md +2 -2
- package/dist/cdn/22YBLZZ5.js +2 -0
- package/dist/cdn/{ATRTNMMR.js → 23HX6BD2.js} +1 -1
- package/dist/cdn/2AYGSNEO.js +2 -0
- package/dist/cdn/{5UDFTH5U.js → 2CZVQJFN.js} +1 -1
- package/dist/cdn/{XMZSFKKO.js → 2E5U7E4Y.js} +1 -1
- package/dist/cdn/{HXPCADLA.js → 2HRXVQNT.js} +1 -1
- package/dist/cdn/{GKW3DDEQ.js → 2NW3IA4C.js} +1 -1
- package/dist/cdn/2Q4WMDEY.js +2 -0
- package/dist/cdn/{B6T4CWYF.js → 34K7KDP3.js} +1 -1
- package/dist/cdn/{2IOCPFSI.js → 34Z77QHJ.js} +1 -1
- package/dist/cdn/37VDMTVJ.js +2 -0
- package/dist/cdn/{GLV3FW3Z.js → 3NTRW2I5.js} +1 -1
- package/dist/cdn/3ON5H2G5.js +2 -0
- package/dist/cdn/{AJHRJ5EA.js → 3W3MBD25.js} +1 -1
- package/dist/cdn/42IKCJ2T.js +2 -0
- package/dist/cdn/44APAUMM.js +2 -0
- package/dist/cdn/{JBJ5NQTI.js → 4IFAJH4D.js} +1 -1
- package/dist/cdn/4J3CK2QK.js +2 -0
- package/dist/cdn/{3FSARSVN.js → 4JCY4NHX.js} +1 -1
- package/dist/cdn/{NGKNECON.js → 4MNQPYT6.js} +1 -1
- package/dist/cdn/{ZYMCKBTT.js → 4YQZ3XVG.js} +1 -1
- package/dist/cdn/{CQ4QHVEL.js → 54WDNPKC.js} +1 -1
- package/dist/cdn/{ENDLVIST.js → 5KRCPR2U.js} +1 -1
- package/dist/cdn/5ZHD4P65.js +2 -0
- package/dist/cdn/{EYW7YQF6.js → 63N5ERFL.js} +1 -1
- package/dist/cdn/6I4ST6BV.js +2 -0
- package/dist/cdn/{AP2IFWYH.js → 6M6VT4H6.js} +1 -1
- package/dist/cdn/6OMMETC4.js +2 -0
- package/dist/cdn/{BEXRPBHT.js → 6RKD6GFP.js} +1 -1
- package/dist/cdn/{C4DJABUI.js → 6UNF7T5E.js} +1 -1
- package/dist/cdn/{IFSGM32L.js → 7FS3KABY.js} +1 -1
- package/dist/cdn/7LEGZD2O.js +2 -0
- package/dist/cdn/{EENOVGOS.js → 7LYFC7SC.js} +1 -1
- package/dist/cdn/{THXN5VZY.js → 7RUBJPVS.js} +1 -1
- package/dist/cdn/{H5QDPW5Y.js → 7SZFENQP.js} +1 -1
- package/dist/cdn/{34V5UMTY.js → 7VRU553O.js} +1 -1
- package/dist/cdn/7WKBNAQD.js +2 -0
- package/dist/cdn/{KYOYYCFY.js → 7XJ2H56Y.js} +1 -1
- package/dist/cdn/{4363SIKC.js → A6SBSKY7.js} +1 -1
- package/dist/cdn/{WAASVZRG.js → AA6JMN5J.js} +1 -1
- package/dist/cdn/{HO4JUZ6N.js → AH4HKYPE.js} +1 -1
- package/dist/cdn/AR47FOKN.js +2 -0
- package/dist/cdn/ATBESYRQ.js +2 -0
- package/dist/cdn/AZNCJT62.js +2 -0
- package/dist/cdn/{TVTQW6GC.js → B2G5OTNZ.js} +1 -1
- package/dist/cdn/{FARFUCNU.js → B4GFOGFO.js} +1 -1
- package/dist/cdn/BHB3PSCU.js +2 -0
- package/dist/cdn/BJEDYTXQ.js +2 -0
- package/dist/cdn/CAXI6CJY.js +2 -0
- package/dist/cdn/{6ZNO34O5.js → CCKYOWZO.js} +1 -1
- package/dist/cdn/CDVHDTSM.js +2 -0
- package/dist/cdn/{HY73HOSP.js → CDVPXUWH.js} +1 -1
- package/dist/cdn/D27YXH3W.js +2 -0
- package/dist/cdn/{3PQT2S7Z.js → D3WZ5UUP.js} +1 -1
- package/dist/cdn/DCI5XVB6.js +2 -0
- package/dist/cdn/DJMRUJ7O.js +2 -0
- package/dist/cdn/DQUREUJ4.js +2 -0
- package/dist/cdn/DVMAHZFP.js +2 -0
- package/dist/cdn/DW3K3W57.js +2 -0
- package/dist/cdn/E3ATQTQG.js +2 -0
- package/dist/cdn/{OSPWEZQJ.js → EPII4PE5.js} +1 -1
- package/dist/cdn/EQPYSPT5.js +2 -0
- package/dist/cdn/{E2JLZZFR.js → ET6WL43W.js} +1 -1
- package/dist/cdn/EUFSNMR4.js +2 -0
- package/dist/cdn/{UKKUFJLL.js → EY7SYUYY.js} +1 -1
- package/dist/cdn/EYX4XXBU.js +2 -0
- package/dist/cdn/G3DJLLNR.js +2 -0
- package/dist/cdn/G44JDQZ4.js +2 -0
- package/dist/cdn/{B5XR4LXQ.js → GIICS6MH.js} +1 -1
- package/dist/cdn/{6RDB26PI.js → GKZICLQB.js} +1 -1
- package/dist/cdn/{GHFKQEFW.js → GST63XCD.js} +1 -1
- package/dist/cdn/{X26CF5AU.js → H337G76Z.js} +1 -1
- package/dist/cdn/HA465EKI.js +2 -0
- package/dist/cdn/{J7ZNOOZ4.js → HEAH7MYD.js} +1 -1
- package/dist/cdn/{QLPUP6A3.js → HHJN3Q6G.js} +1 -1
- package/dist/cdn/HIASLYKF.js +2 -0
- package/dist/cdn/HSXR7HAG.js +2 -0
- package/dist/cdn/{PMQLTMQ4.js → IEC2UOVC.js} +1 -1
- package/dist/cdn/{5CYQI4SX.js → IEOFMCCO.js} +1 -1
- package/dist/cdn/INULU27Q.js +2 -0
- package/dist/cdn/IP6MMWXP.js +2 -0
- package/dist/cdn/IQPGSWSL.js +2 -0
- package/dist/cdn/ITTHJAUG.js +2 -0
- package/dist/cdn/{HOYFIMNJ.js → J5H3B35H.js} +1 -1
- package/dist/cdn/J756LIIM.js +2 -0
- package/dist/cdn/JF4W5UZ7.js +2 -0
- package/dist/cdn/{XOP2SCW3.js → JIZ6BEMO.js} +1 -1
- package/dist/cdn/JODAZMW3.js +2 -0
- package/dist/cdn/JWTRJAFZ.js +2 -0
- package/dist/cdn/{T2ZF4XIZ.js → JYDGMTWJ.js} +1 -1
- package/dist/cdn/KEKWNLTW.js +2 -0
- package/dist/cdn/{3YA25S2J.js → KUFUPG4B.js} +1 -1
- package/dist/cdn/KUFW2OOW.js +2 -0
- package/dist/cdn/{27HOTQNB.js → KUUX4Y7X.js} +1 -1
- package/dist/cdn/KV2UORZN.js +2 -0
- package/dist/cdn/KVIUDTBB.js +2 -0
- package/dist/cdn/KX25AEKF.js +2 -0
- package/dist/cdn/KX5PBTVM.js +2 -0
- package/dist/cdn/{UKNKW6MH.js → KYJD5CQL.js} +1 -1
- package/dist/cdn/{556MC5SF.js → L6D5F5SD.js} +1 -1
- package/dist/cdn/LB32PLWG.js +2 -0
- package/dist/cdn/LGEWMTBM.js +2 -0
- package/dist/cdn/{7ZAVSDBZ.js → LGO4NCZM.js} +1 -1
- package/dist/cdn/{3OE7JG5I.js → LO6QWIYR.js} +1 -1
- package/dist/cdn/{TSPKG2WN.js → LONLK6RH.js} +2 -2
- package/dist/cdn/{EQCNO3G4.js → LY5GZCVF.js} +1 -1
- package/dist/cdn/M67RIQAG.js +2 -0
- package/dist/cdn/{TPOLS4YM.js → M6ZVATVW.js} +1 -1
- package/dist/cdn/MD2KA2VE.js +2 -0
- package/dist/cdn/{NW44UOKT.js → MFQWNYVF.js} +1 -1
- package/dist/cdn/MHVCLFTY.js +2 -0
- package/dist/cdn/MJQIWRRC.js +2 -0
- package/dist/cdn/{BQMLNDT6.js → MR5JAWKH.js} +1 -1
- package/dist/cdn/MX7LKRXI.js +2 -0
- package/dist/cdn/{C7YN3AZA.js → MYATZCJP.js} +1 -1
- package/dist/cdn/NBA6VGFB.js +2 -0
- package/dist/cdn/NQ53C2SG.js +2 -0
- package/dist/cdn/NWQEVQPN.js +2 -0
- package/dist/cdn/O5TDDX7K.js +2 -0
- package/dist/cdn/ODGZ4RGD.js +2 -0
- package/dist/cdn/OHUCKLK5.js +2 -0
- package/dist/cdn/ONRBFGY5.js +2 -0
- package/dist/cdn/{UM2FDZJJ.js → OPATO46Y.js} +1 -1
- package/dist/cdn/{IZOPV2VQ.js → OZICG5FF.js} +1 -1
- package/dist/cdn/P4DS6L6N.js +2 -0
- package/dist/cdn/P4RZQHRD.js +2 -0
- package/dist/cdn/P5MTPM2I.js +2 -0
- package/dist/cdn/{K27JJT2P.js → P6I2HVEZ.js} +1 -1
- package/dist/cdn/PL6H7VTE.js +2 -0
- package/dist/cdn/{MQ6HO6LA.js → PPOG4NAA.js} +1 -1
- package/dist/cdn/{37TNG76C.js → PUJPVTUS.js} +1 -1
- package/dist/cdn/PY4FXGEA.js +2 -0
- package/dist/cdn/PZC5TBXA.js +2 -0
- package/dist/cdn/Q3NBRWIQ.js +2 -0
- package/dist/cdn/QAXSOHDW.js +2 -0
- package/dist/cdn/QB7F6BBW.js +2 -0
- package/dist/cdn/{ZATCJZP2.js → QCCYKLEL.js} +1 -1
- package/dist/cdn/QDHEAX7N.js +2 -0
- package/dist/cdn/{D4BT63BV.js → QRIK2V22.js} +1 -1
- package/dist/cdn/{KAXJKSFB.js → QUBU7FFY.js} +1 -1
- package/dist/cdn/R5KGKAEB.js +4 -0
- package/dist/cdn/R7BJHEHH.js +2 -0
- package/dist/cdn/{CNMF4MVD.js → R7YMIGPE.js} +1 -1
- package/dist/cdn/RB4ZCMX4.js +2 -0
- package/dist/cdn/{JFDN4YD7.js → RG3A222F.js} +1 -1
- package/dist/cdn/{TCG6VGIB.js → RG4S7JVP.js} +1 -1
- package/dist/cdn/{FYYKRDW3.js → RVGCVXBV.js} +1 -1
- package/dist/cdn/S4I3X6AX.js +2 -0
- package/dist/cdn/{CIUAWIL5.js → S4NUCPRQ.js} +2 -2
- package/dist/cdn/{W2A4ONZA.js → SEPRRGUF.js} +1 -1
- package/dist/cdn/SJUWADQP.js +2 -0
- package/dist/cdn/SKEB63NG.js +2 -0
- package/dist/cdn/SMHB2XNO.js +2 -0
- package/dist/cdn/SUAJ2D6L.js +2 -0
- package/dist/cdn/{JLK664TB.js → T36AHJZT.js} +1 -1
- package/dist/cdn/T4WQQ7MP.js +2 -0
- package/dist/cdn/T5F57ZKY.js +2 -0
- package/dist/cdn/{RN44YUJM.js → TMXAN3O2.js} +1 -1
- package/dist/cdn/TTZN7HIT.js +2 -0
- package/dist/cdn/{7IBXOWTT.js → TZHRLKZR.js} +1 -1
- package/dist/cdn/TZXIPFOD.js +2 -0
- package/dist/cdn/U3CQZ6CI.js +2 -0
- package/dist/cdn/U557VRFM.js +2 -0
- package/dist/cdn/U5PXE2DX.js +2 -0
- package/dist/cdn/{YC6JWXOW.js → U7GSOBVS.js} +1 -1
- package/dist/cdn/{FC6W37TT.js → UCWDM6D2.js} +1 -1
- package/dist/cdn/UEF6TPIT.js +2 -0
- package/dist/cdn/UKG6DYFF.js +2 -0
- package/dist/cdn/{RP5SO6BA.js → UMYVF65X.js} +1 -1
- package/dist/cdn/{BUE7MOVD.js → US4GUOT3.js} +1 -1
- package/dist/cdn/UXYBJXLL.js +2 -0
- package/dist/cdn/{OKXZJQ2B.js → UZFDHLQM.js} +1 -1
- package/dist/cdn/V47NU4HK.js +2 -0
- package/dist/cdn/{JTFZMNCO.js → V5FNVAX5.js} +1 -1
- package/dist/cdn/{GYTQDFSL.js → V5WAYR44.js} +1 -1
- package/dist/cdn/VE5FQNBP.js +2 -0
- package/dist/cdn/VGR7AU6K.js +2 -0
- package/dist/cdn/VNCC2KP5.js +2 -0
- package/dist/cdn/{TUW6NLYY.js → VQ4QWOQY.js} +1 -1
- package/dist/cdn/VWHIK5GL.js +2 -0
- package/dist/cdn/{NWK2WHZF.js → W5TN3LOU.js} +1 -1
- package/dist/cdn/WJ4JHHNJ.js +2 -0
- package/dist/cdn/{HK6EWWUB.js → WO76BRRK.js} +1 -1
- package/dist/cdn/{H5UJFKXO.js → X7IBOHSI.js} +1 -1
- package/dist/cdn/XDDOM7RA.js +2 -0
- package/dist/cdn/{32K266S4.js → XIUUCICM.js} +1 -1
- package/dist/cdn/XP7ST6TO.js +2 -0
- package/dist/cdn/XUESBDWT.js +2 -0
- package/dist/cdn/XV2NVNDJ.js +2 -0
- package/dist/cdn/{ILPNFQWH.js → XW72RT5D.js} +1 -1
- package/dist/cdn/Y2HW37MS.js +2 -0
- package/dist/cdn/Y6CUKQ7R.js +2 -0
- package/dist/cdn/{ZHINQNZ2.js → Y6IN6NEC.js} +1 -1
- package/dist/cdn/YBL2FOGP.js +2 -0
- package/dist/cdn/{AFU3S7KW.js → YC5JACID.js} +1 -1
- package/dist/cdn/YQMPW2VC.js +2 -0
- package/dist/cdn/YRUX64GE.js +2 -0
- package/dist/cdn/{WJ5HD2YN.js → YSPFHM7A.js} +1 -1
- package/dist/cdn/ZBANIHB3.js +2 -0
- package/dist/cdn/ZOAOTITT.js +2 -0
- package/dist/cdn/{62WRVJ3U.js → ZW733SWS.js} +1 -1
- package/dist/cdn/ZXEQN6RW.js +2 -0
- package/dist/cdn/ZZAD2X6F.js +2 -0
- package/dist/cdn/assets/elevation-profile/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/fonts/CalciteWebCoreIcons.woff2 +0 -0
- package/dist/cdn/assets/utility-network-trace-inputs/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +106 -99
- package/dist/chunks/action-utils.js +2 -2
- package/dist/chunks/component-utils.js +85 -72
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +73 -73
- package/dist/chunks/heading.js +2 -2
- package/dist/chunks/layer-utils.js +32 -11
- package/dist/chunks/measurementUtils.js +45 -22
- package/dist/chunks/slots.js +27 -27
- package/dist/chunks/time-utils.js +24 -22
- package/dist/chunks/useArcgisViewReadyError.js +7 -7
- package/dist/chunks/useViewModel.js +5 -5
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +19 -11
- package/dist/components/arcgis-area-measurement-2d/customElement.js +100 -91
- package/dist/components/arcgis-area-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +27 -25
- package/dist/components/arcgis-area-measurement-3d/customElement.js +73 -94
- package/dist/components/arcgis-area-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-attachments/customElement.d.ts +5 -6
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -5
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +16 -16
- package/dist/components/arcgis-basemap-layer-list/customElement.d.ts +127 -100
- package/dist/components/arcgis-basemap-toggle/customElement.d.ts +6 -6
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.d.ts +12 -17
- package/dist/components/arcgis-bookmarks/types.d.ts +14 -7
- package/dist/components/arcgis-building-explorer/customElement.d.ts +16 -75
- package/dist/components/arcgis-building-explorer/customElement.js +3 -3
- package/dist/components/arcgis-catalog-layer-list/customElement.d.ts +121 -74
- package/dist/components/arcgis-clipboard/customElement.d.ts +3 -3
- package/dist/components/arcgis-compass/customElement.d.ts +2 -3
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.d.ts +14 -16
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +31 -32
- package/dist/components/arcgis-daylight/customElement.js +202 -200
- package/dist/components/arcgis-daylight/types.d.ts +1 -0
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +24 -22
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +79 -100
- package/dist/components/arcgis-direct-line-measurement-3d/types.d.ts +1 -0
- package/dist/components/arcgis-directional-pad/customElement.d.ts +2 -4
- package/dist/components/arcgis-directions/customElement.d.ts +60 -14
- package/dist/components/arcgis-directions/customElement.js +31 -9
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +23 -11
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +95 -86
- package/dist/components/arcgis-distance-measurement-2d/types.d.ts +1 -0
- package/dist/components/arcgis-editor/customElement.d.ts +46 -19
- package/dist/components/arcgis-editor/customElement.js +3 -3
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +30 -29
- package/dist/components/arcgis-elevation-profile/customElement.js +100 -111
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +22 -22
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +25 -31
- package/dist/components/arcgis-expand/customElement.d.ts +6 -7
- package/dist/components/arcgis-expand/types.d.ts +1 -0
- package/dist/components/arcgis-feature/customElement.d.ts +38 -39
- package/dist/components/arcgis-feature/customElement.js +39 -39
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +23 -26
- package/dist/components/arcgis-feature-fields/customElement.js +28 -27
- package/dist/components/arcgis-feature-form/customElement.d.ts +32 -14
- package/dist/components/arcgis-feature-form/customElement.js +2 -2
- package/dist/components/arcgis-feature-image/customElement.d.ts +5 -5
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +13 -13
- package/dist/components/arcgis-feature-table/customElement.d.ts +183 -89
- package/dist/components/arcgis-feature-table/customElement.js +46 -30
- package/dist/components/arcgis-feature-templates-legacy/customElement.d.ts +126 -0
- package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/customElement.js +4 -4
- package/dist/components/arcgis-feature-title/customElement.d.ts +3 -3
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +11 -8
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +62 -62
- package/dist/components/arcgis-features/customElement.d.ts +70 -70
- package/dist/components/arcgis-features/customElement.js +71 -76
- package/dist/components/arcgis-floor-filter/customElement.d.ts +12 -15
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.d.ts +1 -1
- package/dist/components/arcgis-grid-controls/customElement.d.ts +10 -10
- package/dist/components/arcgis-histogram-range-slider/customElement.d.ts +36 -37
- package/dist/components/arcgis-home/customElement.d.ts +8 -10
- package/dist/components/arcgis-home/customElement.js +16 -14
- package/dist/components/arcgis-layer-list/customElement.d.ts +51 -54
- package/dist/components/arcgis-legend/customElement.d.ts +42 -43
- package/dist/components/arcgis-legend-classic-element/customElement.js +22 -24
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +16 -14
- package/dist/components/arcgis-link-chart/customElement.d.ts +75 -85
- package/dist/components/arcgis-link-chart/customElement.js +16 -16
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.d.ts +3 -5
- package/dist/components/arcgis-link-chart-layout-switcher/types.d.ts +1 -0
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.d.ts +9 -9
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +13 -13
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/types.d.ts +3 -0
- package/dist/components/arcgis-locate/customElement.d.ts +3 -4
- package/dist/components/arcgis-locate/customElement.js +17 -16
- package/dist/components/arcgis-map/customElement.d.ts +188 -198
- package/dist/components/arcgis-map/customElement.js +11 -11
- package/dist/components/arcgis-measurement/customElement.d.ts +4 -5
- package/dist/components/arcgis-multi-feature-form/customElement.d.ts +9 -11
- package/dist/components/arcgis-navigation-toggle/customElement.d.ts +7 -12
- package/dist/components/arcgis-navigation-toggle/customElement.js +9 -6
- package/dist/components/arcgis-navigation-toggle/types.d.ts +1 -0
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -3
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +2 -2
- package/dist/components/arcgis-paste/ClipboardMove.d.ts +6 -3
- package/dist/components/arcgis-paste/PasteViewModel.d.ts +28 -16
- package/dist/components/arcgis-paste/commands/PasteCommand.d.ts +267 -123
- package/dist/components/arcgis-paste/commands/PasteCustomCommand.d.ts +117 -116
- package/dist/components/arcgis-paste/customElement.d.ts +5 -5
- package/dist/components/arcgis-paste/customElement.js +59 -54
- package/dist/components/arcgis-paste/index.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +87 -75
- package/dist/components/arcgis-popup/customElement.js +121 -125
- package/dist/components/arcgis-popup/types.d.ts +2 -2
- package/dist/components/arcgis-presentation/PresentationViewModel.d.ts +4 -3
- package/dist/components/arcgis-presentation/customElement.d.ts +1 -1
- package/dist/components/arcgis-presentation/customElement.js +6 -6
- package/dist/components/arcgis-print/customElement.d.ts +51 -31
- package/dist/components/arcgis-print/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +7 -7
- package/dist/components/arcgis-print-layout-panel/customElement.js +6 -6
- package/dist/components/arcgis-print-main-panel/customElement.js +7 -7
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.d.ts +14 -2
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +38 -41
- package/dist/components/arcgis-scale-bar/customElement.d.ts +3 -7
- package/dist/components/arcgis-scale-bar/customElement.js +7 -7
- package/dist/components/arcgis-scale-bar/types.d.ts +5 -0
- package/dist/components/arcgis-scale-range-slider/customElement.d.ts +7 -8
- package/dist/components/arcgis-scene/customElement.d.ts +185 -200
- package/dist/components/arcgis-scene/customElement.js +14 -14
- package/dist/components/arcgis-search/customElement.d.ts +63 -59
- package/dist/components/arcgis-search/customElement.js +19 -18
- package/dist/components/arcgis-search/types.d.ts +1 -0
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +84 -40
- package/dist/components/arcgis-sketch/customElement.d.ts +78 -33
- package/dist/components/arcgis-sketch/customElement.js +21 -9
- package/dist/components/arcgis-slice/customElement.d.ts +26 -26
- package/dist/components/arcgis-slice/customElement.js +6 -6
- package/dist/components/arcgis-slice/types.d.ts +4 -0
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.d.ts +128 -97
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.d.ts +53 -59
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.d.ts +55 -62
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.d.ts +112 -100
- package/dist/components/arcgis-slider-color-legacy/customElement.js +8 -8
- package/dist/components/arcgis-slider-color-size-legacy/customElement.d.ts +154 -99
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +6 -6
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.d.ts +14 -17
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.d.ts +75 -93
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.d.ts +85 -104
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-snapping-controls/customElement.d.ts +76 -16
- package/dist/components/arcgis-swipe/customElement.d.ts +11 -11
- package/dist/components/arcgis-table-list/customElement.d.ts +116 -81
- package/dist/components/arcgis-time-of-day-slider/customElement.d.ts +1 -0
- package/dist/components/arcgis-time-of-day-slider/customElement.js +11 -11
- package/dist/components/arcgis-time-slider/customElement.d.ts +23 -26
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.d.ts +19 -33
- package/dist/components/arcgis-time-zone-label/customElement.js +19 -58
- package/dist/components/arcgis-time-zone-label/index.js +0 -1
- package/dist/components/arcgis-time-zone-label/types.d.ts +1 -0
- package/dist/components/arcgis-track/customElement.d.ts +6 -7
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.d.ts +18 -10
- package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +54 -59
- package/dist/components/arcgis-utility-network-aggregated-geometry/index.js +0 -1
- package/dist/components/arcgis-utility-network-associations/customElement.d.ts +5 -6
- package/dist/components/arcgis-utility-network-trace/customElement.d.ts +11 -8
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +86 -29
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +65 -58
- package/dist/components/arcgis-utility-network-trace-analysis/index.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/types.d.ts +1 -0
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +18 -6
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +110 -73
- package/dist/components/arcgis-utility-network-trace-location/customElement.d.ts +10 -3
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +80 -69
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +18 -2
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +109 -89
- package/dist/components/arcgis-utility-network-trace-results/index.js +2 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +1 -2
- package/dist/components/arcgis-value-picker-legacy/customElement.d.ts +51 -53
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.d.ts +7 -21
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management/types.d.ts +15 -0
- package/dist/components/arcgis-video/customElement.d.ts +12 -12
- package/dist/components/arcgis-video-player/customElement.d.ts +6 -6
- package/dist/components/arcgis-video-player/customElement.js +2 -2
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +46 -41
- package/dist/components/arcgis-volume-measurement/customElement.js +171 -171
- package/dist/components/arcgis-volume-measurement/index.js +1 -1
- package/dist/components/arcgis-volume-measurement/types.d.ts +1 -0
- package/dist/components/arcgis-weather/customElement.d.ts +17 -18
- package/dist/components/arcgis-zoom/customElement.d.ts +8 -7
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/arcgis-zoom/types.d.ts +3 -0
- package/dist/components/types.d.ts +58 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +13 -35
- package/dist/loader.js +36 -36
- package/dist/types/lumina.d.ts +36 -58
- package/dist/types/preact.d.ts +37 -63
- package/dist/types/react.d.ts +38 -68
- package/dist/types/stencil.d.ts +36 -58
- package/package.json +6 -6
- package/dist/cdn/22LNBUKE.js +0 -2
- package/dist/cdn/23UYZVTW.js +0 -2
- package/dist/cdn/2EJ4XRH4.js +0 -2
- package/dist/cdn/2VC2VUTP.js +0 -2
- package/dist/cdn/2XSXH4TM.js +0 -2
- package/dist/cdn/3DO7PVNW.js +0 -2
- package/dist/cdn/3GZCJE62.js +0 -2
- package/dist/cdn/3XMPN66U.js +0 -2
- package/dist/cdn/42UR6TXZ.js +0 -2
- package/dist/cdn/4EAZ4PIQ.js +0 -2
- package/dist/cdn/4TURMTXA.js +0 -2
- package/dist/cdn/52GXKBGP.js +0 -2
- package/dist/cdn/55QGHI47.js +0 -2
- package/dist/cdn/5PRNT4KD.js +0 -2
- package/dist/cdn/5RGFRTJS.js +0 -2
- package/dist/cdn/63P5VYGP.js +0 -2
- package/dist/cdn/64OEHFBZ.js +0 -2
- package/dist/cdn/7UR4M6PN.js +0 -2
- package/dist/cdn/7YLXQNEC.js +0 -2
- package/dist/cdn/A4UJ53JS.js +0 -2
- package/dist/cdn/AGYDL2DX.js +0 -2
- package/dist/cdn/BGOWWLCQ.js +0 -2
- package/dist/cdn/BMR2YFEM.js +0 -2
- package/dist/cdn/CC53K2CR.js +0 -2
- package/dist/cdn/CKNH5OMJ.js +0 -2
- package/dist/cdn/DOLELC6W.js +0 -2
- package/dist/cdn/DTVW3MYT.js +0 -2
- package/dist/cdn/E7FLH54K.js +0 -2
- package/dist/cdn/EL62JS5C.js +0 -2
- package/dist/cdn/EVRFMTMV.js +0 -2
- package/dist/cdn/EX22SAPL.js +0 -2
- package/dist/cdn/EYNKJZG3.js +0 -2
- package/dist/cdn/F2TXAMXM.js +0 -2
- package/dist/cdn/F4HWT5H3.js +0 -2
- package/dist/cdn/FEQLUSM2.js +0 -2
- package/dist/cdn/FJJVAOBW.js +0 -2
- package/dist/cdn/FQGKKJL7.js +0 -2
- package/dist/cdn/GNGZFV2C.js +0 -2
- package/dist/cdn/H6ILOF27.js +0 -2
- package/dist/cdn/HH6BDERO.js +0 -2
- package/dist/cdn/HNHCO4OD.js +0 -2
- package/dist/cdn/HR2OOT3F.js +0 -2
- package/dist/cdn/I2MQQXVU.js +0 -2
- package/dist/cdn/I5QTPPFJ.js +0 -2
- package/dist/cdn/IDDSHZVB.js +0 -2
- package/dist/cdn/J55YUTPM.js +0 -2
- package/dist/cdn/JDZWJLJX.js +0 -2
- package/dist/cdn/KECAR2NZ.js +0 -2
- package/dist/cdn/KEFY4XPI.js +0 -2
- package/dist/cdn/KHM3S4Q6.js +0 -2
- package/dist/cdn/KNAUIRT6.js +0 -2
- package/dist/cdn/KXF2562U.js +0 -2
- package/dist/cdn/KY4FMFIC.js +0 -2
- package/dist/cdn/LG4PZVHS.js +0 -2
- package/dist/cdn/LHEP4QSS.js +0 -2
- package/dist/cdn/LZFDWRYI.js +0 -2
- package/dist/cdn/M4L5EDRB.js +0 -2
- package/dist/cdn/M65HMJZA.js +0 -2
- package/dist/cdn/M7VTEC3S.js +0 -2
- package/dist/cdn/MAGJWMWM.js +0 -2
- package/dist/cdn/MSMDSEFM.js +0 -2
- package/dist/cdn/MW73TE2N.js +0 -2
- package/dist/cdn/MWBGBBXT.js +0 -2
- package/dist/cdn/NIUIKBRD.js +0 -2
- package/dist/cdn/NRV7VFJ7.js +0 -2
- package/dist/cdn/NVACRYY6.js +0 -2
- package/dist/cdn/NZ5M5SVG.js +0 -2
- package/dist/cdn/NZAO2BVV.js +0 -2
- package/dist/cdn/OCEXQCFT.js +0 -2
- package/dist/cdn/ORH27QWU.js +0 -2
- package/dist/cdn/PCQ5PXPF.js +0 -2
- package/dist/cdn/PISCYSA5.js +0 -2
- package/dist/cdn/PNDLNFML.js +0 -2
- package/dist/cdn/PTWLVTFS.js +0 -4
- package/dist/cdn/QVMTO5BV.js +0 -2
- package/dist/cdn/R4V6HGJH.js +0 -2
- package/dist/cdn/RCWZGU5T.js +0 -2
- package/dist/cdn/RJ76OXB6.js +0 -2
- package/dist/cdn/S4XGBADW.js +0 -2
- package/dist/cdn/S6G6XXTM.js +0 -2
- package/dist/cdn/SKW7HQZ6.js +0 -2
- package/dist/cdn/SRSYUCVL.js +0 -2
- package/dist/cdn/SZ5MNKOW.js +0 -2
- package/dist/cdn/TM5C2P2F.js +0 -2
- package/dist/cdn/U3LH3AZH.js +0 -2
- package/dist/cdn/UAO23YMW.js +0 -2
- package/dist/cdn/UTH3SGAS.js +0 -2
- package/dist/cdn/UVCYUIKZ.js +0 -2
- package/dist/cdn/VJMMA6UX.js +0 -2
- package/dist/cdn/W2E5L6DS.js +0 -2
- package/dist/cdn/WGWNMYUH.js +0 -2
- package/dist/cdn/WGXSSEAL.js +0 -2
- package/dist/cdn/WOV3LB6K.js +0 -2
- package/dist/cdn/WTMMFDEH.js +0 -2
- package/dist/cdn/WW6L6XX4.js +0 -2
- package/dist/cdn/X6OVNOLQ.js +0 -2
- package/dist/cdn/X7YUU7TS.js +0 -2
- package/dist/cdn/XO6U6OVM.js +0 -2
- package/dist/cdn/XRP25NGI.js +0 -2
- package/dist/cdn/Y53D5YAC.js +0 -2
- package/dist/cdn/YC423DBS.js +0 -2
- package/dist/cdn/YFUI4F5L.js +0 -2
- package/dist/cdn/YKTB6AFH.js +0 -2
- package/dist/cdn/YWQGP6MB.js +0 -2
- package/dist/cdn/YZ5ZVEPC.js +0 -2
- package/dist/cdn/ZD25GJYW.js +0 -2
- package/dist/cdn/ZMLRDNKR.js +0 -2
- package/dist/cdn/ZURN5EZI.js +0 -2
- package/dist/cdn/ZUTQE3OX.js +0 -2
- package/dist/cdn/ZVTPU2MO.js +0 -2
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +0 -14
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +0 -20
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +0 -93
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +0 -24
- package/dist/components/arcgis-building-explorer/support/types.d.ts +0 -11
- package/dist/components/arcgis-building-level-item/customElement.d.ts +0 -25
- package/dist/components/arcgis-building-level-item/index.d.ts +0 -1
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +0 -20
- package/dist/components/arcgis-building-level-picker/index.d.ts +0 -1
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +0 -19
- package/dist/components/arcgis-building-phase-picker/index.d.ts +0 -1
- package/dist/components/arcgis-daylight/daylight-utils.d.ts +0 -8
- package/dist/components/arcgis-expand/ExpandViewModel.d.ts +0 -44
- package/dist/components/arcgis-feature-templates/customElement.d.ts +0 -215
- package/dist/components/arcgis-feature-templates/index.d.ts +0 -1
- package/dist/components/arcgis-slice/SliceViewModel.d.ts +0 -4
- package/dist/components/support/goTo.d.ts +0 -37
- package/dist/controllers/useArcgisLoadError.d.ts +0 -9
- package/dist/support/heading.d.ts +0 -1
- package/dist/support/measurementUtils.d.ts +0 -1
- package/dist/utils/action-utils.d.ts +0 -3
- package/dist/utils/component-utils.d.ts +0 -5
- /package/dist/cdn/{UQ7E33T4.js → 2SQUOXWG.js} +0 -0
- /package/dist/cdn/{KAJ3U6DP.js → 3GVHNIXM.js} +0 -0
- /package/dist/cdn/{E2KWMQKQ.js → 3NF4UU3S.js} +0 -0
- /package/dist/cdn/{PHF2XKSK.js → 43UMYTXQ.js} +0 -0
- /package/dist/cdn/{CHDRBZNL.js → 47T624VO.js} +0 -0
- /package/dist/cdn/{X5H6ZUFX.js → 4NBXFFTY.js} +0 -0
- /package/dist/cdn/{DDI363AI.js → 5IPPKC3M.js} +0 -0
- /package/dist/cdn/{LCXF3AKY.js → 6JUTQDKC.js} +0 -0
- /package/dist/cdn/{YMU5IPMP.js → 6QPD32WT.js} +0 -0
- /package/dist/cdn/{M6TJN2I5.js → 7LEGS7EX.js} +0 -0
- /package/dist/cdn/{ORP3ZND2.js → AQG5RIV3.js} +0 -0
- /package/dist/cdn/{W5XM52J7.js → B3I4OKDQ.js} +0 -0
- /package/dist/cdn/{RCD5UKTW.js → BFHBS4MR.js} +0 -0
- /package/dist/cdn/{CRR65TKV.js → D3X7R3GD.js} +0 -0
- /package/dist/cdn/{7FMJZURP.js → DYC6OHKG.js} +0 -0
- /package/dist/cdn/{5OB4E5PR.js → DZG4EA6U.js} +0 -0
- /package/dist/cdn/{W5B5LTGN.js → ELF2SE5K.js} +0 -0
- /package/dist/cdn/{UVZZX6YP.js → FHSXSYA6.js} +0 -0
- /package/dist/cdn/{BQIH5T3S.js → FRWY77LH.js} +0 -0
- /package/dist/cdn/{ZFFBK3VO.js → FYVM32GJ.js} +0 -0
- /package/dist/cdn/{B7IYR676.js → GVW4OIR5.js} +0 -0
- /package/dist/cdn/{FPD3STSJ.js → H6LWU2FC.js} +0 -0
- /package/dist/cdn/{DEOCASGG.js → HEBLEJCT.js} +0 -0
- /package/dist/cdn/{OSRAPPNR.js → IDITPQDC.js} +0 -0
- /package/dist/cdn/{DWZIXPJ4.js → J3F5FPMC.js} +0 -0
- /package/dist/cdn/{YP3JKXC4.js → JMZA4GQB.js} +0 -0
- /package/dist/cdn/{JDPQMOEW.js → JPDYVHUZ.js} +0 -0
- /package/dist/cdn/{PUOWH3YL.js → KNFAPO3C.js} +0 -0
- /package/dist/cdn/{W2Q7NWBG.js → LEC4CIVO.js} +0 -0
- /package/dist/cdn/{JMDNJPNT.js → NCTWDKYG.js} +0 -0
- /package/dist/cdn/{RDW2NJPR.js → PDCUZMSB.js} +0 -0
- /package/dist/cdn/{76ESM6B2.js → RJTABGPK.js} +0 -0
- /package/dist/cdn/{2ZL4CF6P.js → SPXZXKMH.js} +0 -0
- /package/dist/cdn/{HZTWWEVM.js → TRPYDMNK.js} +0 -0
- /package/dist/cdn/{YHVFARHN.js → UYDFCELQ.js} +0 -0
- /package/dist/cdn/{55VMVXRK.js → V2D4QTRR.js} +0 -0
- /package/dist/cdn/{QAXR4LT6.js → WBZEEY5N.js} +0 -0
- /package/dist/cdn/{YDJGMRV3.js → WG5RPCHL.js} +0 -0
- /package/dist/cdn/{ZLIZCBGT.js → WL4J6REN.js} +0 -0
- /package/dist/cdn/{GB42YXHR.js → XJQRAKJ6.js} +0 -0
- /package/dist/cdn/{L4WRYSKZ.js → YGJ7NPDT.js} +0 -0
- /package/dist/cdn/{V3M37NHT.js → ZJ36DBTH.js} +0 -0
- /package/dist/components/{arcgis-building-discipline-tree → arcgis-feature-templates-legacy}/index.d.ts +0 -0
- /package/dist/components/{arcgis-feature-templates → arcgis-feature-templates-legacy}/index.js +0 -0
- /package/dist/components/arcgis-locate/{LocateViewModel.d.ts → types.d.ts} +0 -0
- /package/dist/components/arcgis-weather/{WeatherViewModel.d.ts → types.d.ts} +0 -0
package/README.md
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# ArcGIS Maps SDK for JavaScript - Map Components
|
|
2
2
|
|
|
3
|
-
The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. This package contains a [Map component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-map/), [Scene component](https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-scene/), and many other components with functionality made possible through the SDK's [core API](https://developers.arcgis.com/javascript/latest/
|
|
3
|
+
The ArcGIS Maps SDK for JavaScript provides a suite of ready-to-use UI components that simplify the process of creating GIS web applications. This package contains a [Map component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-map/), [Scene component](https://developers.arcgis.com/javascript/latest/references/map-components/components/arcgis-scene/), and many other components with functionality made possible through the SDK's [core API](https://developers.arcgis.com/javascript/latest/references/core/) which is also accessible through the components.
|
|
4
4
|
|
|
5
5
|
Want to get started immediately? See [Get started](https://developers.arcgis.com/javascript/latest/get-started/) or try out the [sample applications](https://github.com/Esri/jsapi-resources/tree/main/component-samples) for a variety of popular frameworks, module bundlers, and TypeScript.
|
|
6
6
|
|
|
7
7
|
## Documentation
|
|
8
8
|
|
|
9
9
|
- [Key Features](https://developers.arcgis.com/javascript/latest/key-features/)
|
|
10
|
-
- [Build with npm](https://developers.arcgis.com/javascript/latest/get-started/#
|
|
10
|
+
- [Build with npm](https://developers.arcgis.com/javascript/latest/get-started/#use-arcgiscreate)
|
|
11
11
|
- [API and component references](https://developers.arcgis.com/javascript/latest/references/)
|
|
12
12
|
- [Functionality samples](https://developers.arcgis.com/javascript/latest/sample-code/)
|
|
13
13
|
- [TypeScript setup](https://developers.arcgis.com/javascript/latest/get-started/#typescript)
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{c as m}from"./KX5PBTVM.js";import{b as r,e as c}from"./2E5U7E4Y.js";import{a as u}from"./LB32PLWG.js";import{M as h,b as a,x as i,z as l}from"./R5KGKAEB.js";export default $arcgis.t(([{when:E,watch:g}])=>{var d=class extends l{constructor(t){super(t),this.direction=c(),this.popupRef=h(),this.attributionHeight=0,this._uiContainer=null,this.component.listen("arcgisViewClick",o=>{this._handleOpenPopup(o.detail)}),this.component.listenOn(globalThis,"unhandledrejection",o=>{if(o.reason?.name==="webgl:required"){let{name:e}=o.reason;this.webGLError={name:e}}})}hostLifecycle(){return[E(()=>this.component.view.ready,()=>{this._assignDefaultPopup()}),E(()=>this.component.view.popup?.visible,()=>{this.popupElement?.open&&(this.popupElement.open=!1)})]}async openPopup(t){if(this._assignDefaultPopup(),this.closePopup(),this.popupElement){await this.popupElement.componentOnReady(),this.popupElement.open=!0;let{fetchFeatures:o}=t;delete t.fetchFeatures,Object.assign(this.popupElement,t),o&&this.popupElement.fetchFeatures()}else await this.component.view.openPopup(t)}closePopup(){this.popupElement&&(this.popupElement.open=!1),this.component.view.closePopup()}_assignDefaultPopup(){this.popupRef.value&&!this.popupElement&&(this.popupElement=this.popupRef.value,this.popupElement.referenceElement=this.component.el,this.popupElement.view=this.component.view)}handleAttributionHeightChange(t){if(!(this.attributionHeight===t||!this.component.el.shadowRoot)){if(this.attributionHeight=t,!this._uiContainer){let o=this.component.el.shadowRoot.querySelector(".arcgis-map-container-ui");this._uiContainer=o}this._uiContainer?.style.setProperty("--arcgis-internal-attribution-space-top",`${this.attributionHeight}px`)}}async _handleOpenPopup(t){if(this._assignDefaultPopup(),this.popupElement&&!this.component.popupDisabled){t.stopPropagation();let{location:o,promises:e}=await this.popupElement.handleViewClick(t);e?.length&&this.openPopup({location:o,promises:e})}}_handlePopupSlotChange(t){let o=u(t.target,"arcgis-popup");!this.popupElement&&o.length?this.popupElement=o[0]:o.length||(this.popupElement=void 0)}_webGLErrorAlert(){return this.webGLError?a`<arcgis-webgl-error .errorName=${this.webGLError.name}></arcgis-webgl-error>`:null}render(){return m({direction:this.direction,popupComponentEnabled:this.component.popupComponentEnabled,handlePopupSlotChange:t=>this._handlePopupSlotChange(t),webGLErrorElement:this._webGLErrorAlert(),popupElement:this.popupRef})}},_=r((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>{let{map:e}=p;if(!e||e.destroyed)return[];let n=[];return e.loadError&&n.push(e),e.basemap?.loadError&&n.push(e.basemap),e.ground.loadError&&n.push(e.ground),[...e.allLayers,...e.allTables].forEach(s=>{s.loadError&&n.push(s)}),n},e=>{e.length&&(p.loadErrorSources=e,o.emit())})),o}),L=r((p,t)=>{let o=i();return t.onLifecycle(()=>g(()=>p.view?.readyState,e=>{(e==="map-content-error"||e==="rendering-error")&&o.emit()})),o});return{a:d,b:_,c:L}},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as t,U as a,a as s,b as o}from"./
|
|
2
|
+
import{O as t,U as a,a as s,b as o}from"./R5KGKAEB.js";import"./3TTFCHAA.js";var l=s`:host{min-width:100px;flex:1 1 auto;display:flex;align-items:center;justify-content:center}.slider-progress-container{position:relative;z-index:1;flex:1 1 auto;display:flex;flex-direction:column;align-items:center;justify-content:center}.progress{--arcgis-internal-video-player-progress-width: 2px;appearance:none;position:absolute;top:calc(50% - var(--arcgis-internal-video-player-progress-width) / 2);left:var(--calcite-spacing-xs);border:none;background:var(--calcite-color-border-1);cursor:pointer;width:calc(100% - var(--calcite-spacing-xs) * 2);height:var(--arcgis-internal-video-player-progress-width)}.progress::-webkit-progress-bar{background-color:var(--calcite-color-border-3)}.progress::-webkit-progress-value{background-color:var(--calcite-color-border-input)}.progress::-moz-progress-bar{background-color:var(--calcite-color-border-3)}.slider{--calcite-slider-track-color: transparent;width:100%}`,i=class extends t{static{this.properties={viewModel:0,buffered:9,value:9}}static{this.styles=l}_onSliderInput({currentTarget:r}){if(typeof r.value=="number"){let e=r.value*this.viewModel.duration/100;this.viewModel.seekTo(e)}}render(){let{value:r,buffered:e}=this;return o`<div class="slider-progress-container" dir=ltr><progress class="progress" max=1 .value=${`${e}`}></progress><div class="slider"><calcite-slider max=100 min=0 .value=${r} @calciteSliderInput=${this._onSliderInput}></calcite-slider></div></div>`}};a("arcgis-video-player-slider",i);export{i as VideoPlayerSlider};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import{F as Pi,Q as Di,R as T,S as Ge,T as Ti,U as ki,V as de,a as Y,d as bi,g as ue,k as ze,o as yi,u as q,x as vi,y as xi,z as wi}from"./63N5ERFL.js";import{a as $,b as ne,d as C,e as k}from"./ZJ36DBTH.js";import{B as mi,E as ct,F as Et,G as gi,I as G,M as Ct,O as pt,Q as _i,R as Rt,S as Ke,T as Oi,V as Ye,W as Ci,a as fi,b as Ee,c as ci,e as He,g as D,h as Ne,j as Fe,m as zt,n as Ue,o as y,p as ft,r as oe,s as Z,u as We,w as le,x as Ve,y as he,z as pi}from"./R7BJHEHH.js";import{a as Me}from"./3TTFCHAA.js";function Gt(a,t){if(!(a>=0&&a<t))throw new Error("Index out of bounds: "+a)}var lt=class{constructor(t=[]){Object.defineProperty(this,"_values",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Rt}),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 zt(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){Gt(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 Gt(t,this._values.length+1),le(this._values,t,e),this._onInsertIndex(t,e),e}swap(t,e){let i=this._values.length;if(Gt(t,i),Gt(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){Gt(t,this._values.length);let e=this._values[t];return Ve(this._values,t),this._onRemoveIndex(t,e),e}moveValue(t,e){let i=this.indexOf(t);if(i!==-1)if(Ve(this._values,i),e==null){let n=this._values.length;this._values.push(t),this._onMoveIndex(i,n,t)}else le(this._values,e,t),this._onMoveIndex(i,e,t);else e==null?(this._values.push(t),this._onPush(t)):(le(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){y(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),y(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){y(this._values,t)}eachReverse(t){ft(this._values,t)}},Kt=class extends lt{constructor(){super(...arguments),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1})}swap(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&&y(t,e=>{e.dispose()}),super._onClear(t)}_dispose(){this.autoDispose&&y(this._values,t=>{t.dispose()})}isDisposed(){return this._disposed}dispose(){this._disposed||(this._disposed=!0,this._dispose())}},Ri=class extends Kt{constructor(t,e){super(),Object.defineProperty(this,"template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"make",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.template=t,this.make=e}_dispose(){super._dispose(),this.autoDispose&&this.template.dispose()}};var Ht={};Me(Ht,{DEGREES:()=>ce,HALFPI:()=>Xe,PI:()=>pe,RADIANS:()=>St,boundsOverlap:()=>os,ceil:()=>Zi,circlesOverlap:()=>hs,closest:()=>ns,cos:()=>ut,fitAngleToRange:()=>is,fitToRange:()=>me,getAngle:()=>ss,getArcBounds:()=>ts,getArcPoint:()=>fe,getCubicControlPointA:()=>qi,getCubicControlPointB:()=>Ji,getPointOnLine:()=>as,getPointOnQuadraticCurve:()=>rs,inBounds:()=>Ze,mergeBounds:()=>es,normalizeAngle:()=>mt,round:()=>Xi,sin:()=>ht,spiralPoints:()=>ls,tan:()=>Qi});var pe=Math.PI,Xe=pe/2,St=pe/180,ce=180/pe;function Xi(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 Zi(a,t){if(!D(t)||t<=0)return Math.ceil(a);{let e=Math.pow(10,t);return Math.ceil(a*e)/e}}function qi(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 Ji(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 me(a,t,e){return Math.min(Math.max(a,t),e)}function ht(a){return Math.sin(St*a)}function Qi(a){return Math.tan(St*a)}function ut(a){return Math.cos(St*a)}function mt(a){return a=a%360,a<0&&(a+=360),a}function ts(a,t,e,i,n){let s=Number.MAX_VALUE,r=Number.MAX_VALUE,o=-Number.MAX_VALUE,h=-Number.MAX_VALUE,l=[];l.push(fe(n,e)),l.push(fe(n,i));let u=Math.min(Math.floor(e/90)*90,Math.floor(i/90)*90),d=Math.max(Math.ceil(e/90)*90,Math.ceil(i/90)*90);for(let f=u;f<=d;f+=90)f>=e&&f<=i&&l.push(fe(n,f));for(let f=0;f<l.length;f++){let p=l[f];p.x<s&&(s=p.x),p.y<r&&(r=p.y),p.x>o&&(o=p.x),p.y>h&&(h=p.y)}return{left:a+s,top:t+r,right:a+o,bottom:t+h}}function fe(a,t){return{x:a*ut(t),y:a*ht(t)}}function es(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 is(a,t,e){if(t>e){let r=t;t=e,e=r}a=mt(a);let i=(t-mt(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 Ze(a,t){return a.x>=t.left&&a.y>=t.top&&a.x<=t.right&&a.y<=t.bottom}function ss(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)*ce;return n<0&&(n+=360),mt(n)}function rs(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 as(a,t,e){return{x:a.x+(t.x-a.x)*e,y:a.y+(t.y-a.y)*e}}function ns(a,t){return a.reduce(function(e,i){return Math.abs(i-t)<Math.abs(e-t)?i:e})}function os(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 ls(a,t,e,i,n,s,r,o,h){let l=n+.01;o=mt(o),h=mt(h);let u=o*St;h<o&&(h+=360);let d=[];for(;l<e+r;){let f=s;f/2>l&&(f=2*l);let p=Math.max(.01,Math.min(1,l/200));f=f*p;let m=u*ce,g={x:a+l*Math.cos(u),y:t+l*i/e*Math.sin(u)};if(d.push(g),l=n+.01+(m-o)/360*r,u+=2*Math.asin(f/2/l),u*ce>h+360*Math.ceil((e-n)/r))break}return d.shift(),d}function hs(a,t){return Math.hypot(a.x-t.x,a.y-t.y)<=a.radius+t.radius}var be={};Me(be,{bounce:()=>Ts,circle:()=>ps,cubic:()=>it,elastic:()=>Rs,exp:()=>fs,inOut:()=>gs,linear:()=>_e,out:()=>gt,pow:()=>ds,quad:()=>us,sine:()=>cs,yoyo:()=>ms});function _e(a){return a}function us(a){return a*a}function it(a){return a*a*a}function ds(a,t){return Math.pow(a,t)}function fs(a){return Math.pow(2,10*a-10)}function cs(a){return 1-Math.cos(a*Xe)}function ps(a){return 1-Math.sqrt(1-a*a)}function ms(a){return function(t){return t<.5?a(t*2):a((1-t)*2)}}function gt(a){return function(t){return 1-a(1-t)}}function gs(a){return function(t){return t<=.5?a(t*2)/2:1-a((1-t)*2)/2}}var qe=4/11,_s=6/11,bs=8/11,ys=3/4,vs=9/11,xs=10/11,ws=15/16,Ps=21/22,Ds=63/64,ge=1/qe/qe;function Ts(a){return 1-ks(1-a)}function ks(a){return a=a,a<qe?ge*a*a:a<bs?ge*(a-=_s)*a+ys:a<xs?ge*(a-=vs)*a+ws:ge*(a-=Ps)*a+Ds}var Os=2*Math.PI,Si=1,$i=.3/Os,Cs=Math.asin(1/Si)*$i;function Rs(a){let t=a;return Si*Math.pow(2,10*--t)*Math.sin((Cs-t)/$i)}var Je=class{constructor(){Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"5.15.6"}),Object.defineProperty(this,"licenses",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"entitiesById",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"rootElements",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"autoDispose",{enumerable:!0,configurable:!0,writable:!0,value:!1})}},$t=new Je;function er(a){$t.licenses.push(a)}function ir(){let a;for(;a=$t.rootElements.pop();)a.dispose()}function sr(a){let t;return $t.rootElements.forEach(e=>{e.dom.id==a&&(t=e)}),t}var Qe=class{constructor(t,e){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_userSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=t,this._settings=e,G(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,this.setRaw(t,e)}remove(t){delete this._userSettings[t],delete this._settings[t]}setAll(t){Et(t).forEach(([e,i])=>{this.set(e,i)})}_eachSetting(t){G(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._settings[i]=this._entity.get(i))),this._entity.set(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",it)));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._settings[r]=this._entity.get(r)));let h=this._entity.animate({key:r,to:o,duration:t,easing:e});h&&(s[r]=h)}}),s}},ye=class{constructor(t){Object.defineProperty(this,"_states",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._entity=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 Qe(this._entity,e);return this._states[t]=n,n}}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 ei=class{constructor(t){Object.defineProperty(this,"_entity",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_callbacks",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disabled",{enumerable:!0,configurable:!0,writable:!0,value:{}}),this._entity=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 Ct(()=>{Z(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}},Nt=class{constructor(t,e,i,n,s,r,o){Object.defineProperty(this,"_animation",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_from",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_to",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_duration",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_easing",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_loops",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_interpolate",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_oldTime",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_time",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_stopped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_playing",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:new Rt}),this._animation=t,this._from=e,this._to=i,this._duration=n,this._easing=s,this._loops=r,this._interpolate=ki(e,i),this._oldTime=o}get to(){return this._to}get from(){return this._from}get playing(){return this._playing}get stopped(){return this._stopped}stop(){this._stopped||(this._stopped=!0,this._playing=!1,this.events.isEnabled("stopped")&&this.events.dispatch("stopped",{type:"stopped",target:this}))}pause(){this._playing=!1,this._oldTime=null}play(){!this._stopped&&!this._playing&&(this._playing=!0,this._animation._startAnimation())}get percentage(){return this._time/this._duration}waitForStop(){return new Promise((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){return this._interpolate(this._easing(t),this._from,this._to)}},Ss=0,Yt=class{constructor(t){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:++Ss}),Object.defineProperty(this,"_settings",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_privateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_settingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_privateSettingEvents",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_prevPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_animatingPrivateSettings",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_userProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"enableDispose",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._settings=t}_checkDirty(){ct(this._settings).forEach(t=>{this._userProperties[t]=!0,this._markDirtyKey(t)})}resetUserSettings(){this._userProperties={}}_runAnimation(t){let e=de.Stopped;if(!this.isDisposed()){let i=!1,n=!1;G(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.set(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}),G(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=de.Playing:n&&(e=de.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 Ct(()=>{Z(i,e),i.length===0&&delete this._settingEvents[t]})}off(t,e){let i=this._settingEvents[t];i!==void 0&&e!==void 0?Z(i,e):delete this._settingEvents[t]}onPrivate(t,e){let i=this._privateSettingEvents[t];return i===void 0&&(i=this._privateSettingEvents[t]=[]),i.push(e),new Ct(()=>{Z(i,e),i.length===0&&delete this._privateSettingEvents[t]})}offPrivate(t,e){let i=this._privateSettingEvents[t];i!==void 0&&e!==void 0?Z(i,e):delete this._privateSettingEvents[t]}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&&y(i,n=>{n(e,this,t)})}_sendPrivateKeyEvent(t,e){let i=this._privateSettingEvents[t];i!==void 0&&y(i,n=>{n(e,this,t)})}_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(){y(ct(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){G(t,(e,i)=>{this.set(e,i)})}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?_e:t.easing;if(n===0)this.set(e,i);else if(r===void 0||r===i)this.set(e,i);else{this.set(e,r);let l=this._animatingSettings[e]=new Nt(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Nt(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?_e: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 Nt(this,r,i,n,o,s,this._animationTime());return this._startAnimation(),l}let h=new Nt(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())}},U=class extends Yt{constructor(t,e,i,n=[]){if(super(e),Object.defineProperty(this,"_root",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_user_id",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"states",{enumerable:!0,configurable:!0,writable:!0,value:new ye(this)}),Object.defineProperty(this,"adapters",{enumerable:!0,configurable:!0,writable:!0,value:new ei(this)}),Object.defineProperty(this,"events",{enumerable:!0,configurable:!0,writable:!0,value:this._createEvents()}),Object.defineProperty(this,"_userPrivateProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirty",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dirtyPrivate",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_template",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templates",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_internalTemplates",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_defaultThemes",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_templateDisposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_disposers",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_runSetup",{enumerable:!0,configurable:!0,writable:!0,value:!0}),Object.defineProperty(this,"_disposerProperties",{enumerable:!0,configurable:!0,writable:!0,value:{}}),!i)throw new Error("You cannot use `new Class()`, instead use `Class.new()`");this._root=t,this._internalTemplates=n,e.id&&this._registerId(e.id)}static new(t,e,i){let n=new this(t,e,!0);return n._template=i,n._afterNew(),n}static _new(t,e,i=[]){let n=new this(t,e,!0,i);return n._afterNew(),n}_afterNew(){this._checkDirty();let t=!1,e=this._template;e&&(t=!0,e._setObjectTemplate(this)),y(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),y(this._internalTemplates,e=>{e._setObjectTemplate(this)}),this.states.create("default",{}),this._setDefaults(),this._applyThemes()}_createEvents(){return new Rt}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.set(t,n),n}}_setDefault(t,e){this.has(t)||super.set(t,e)}_setRawDefault(t,e){this.has(t)||super.setRaw(t,e)}_clearDirty(){ct(this._dirty).forEach(t=>{this._dirty[t]=!1}),ct(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&&(y(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,super.set(t,e)}setRaw(t,e){this._userProperties[t]=!0,super.setRaw(t,e)}_setSoft(t,e){return this._userProperties[t]?e:super.set(t,e)}remove(t){delete this._userProperties[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)}),G(e._settings,n=>{!i[n]&&!e._userSettings[n]&&e.remove(n)})}_applyTemplate(t,e){this._templateDisposers.push(t._apply(this,e)),G(t._settings,(i,n)=>{!e.settings[i]&&!this._userProperties[i]&&(e.settings[i]=!0,super.set(i,n))}),G(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)),ft(this._internalTemplates,t),y(this._templates,t)}_applyTemplates(t=!0){t&&this._disposeTemplates();let e={settings:{},privateSettings:{},states:{}};this._eachTemplate(i=>{this._applyTemplate(i,e)}),t&&(G(this._settings,i=>{!this._userProperties[i]&&!e.settings[i]&&super.remove(i)}),G(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=pi(this._internalTemplates,t);return i===void 0?he(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(){y(this._templateDisposers,t=>{t.dispose()}),this._templateDisposers.length=0}_removeTemplates(){y(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&&y(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&&y(l,u=>{s.add(u)})}),n=i.concat(n),this._removeTemplates(),(e||t)&&ft(this.classNames,o=>{let h=[];y(n,l=>{y(l,u=>{let d=u._lookupRules(o);d&&ft(d,f=>{if(f.tags.every(m=>s.has(m))){let m=mi(h,g=>{let x=Ke(f.tags.length,g.tags.length);return x===0?Oi(f.tags,g.tags,Ke):x});h.splice(m.index,0,f)}})})}),y(h,l=>{this._templates.push(l.template),l.template._setObjectTemplate(this)})}),this._applyTemplates(),(e||t)&&(this._runSetup=!1),e||t}_changed(){}_beforeChanged(){if(this.isDirty("id")){let t=this.get("id");t&&this._registerId(t);let e=this._prevSettings.id;e&&(delete this._root.entitiesById[e],delete $t.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,$t.entitiesById[t]=this}_afterChanged(){}addDisposer(t){return this._disposers.push(t),t}_dispose(){super._dispose();let t=this._template;t&&t._removeObjectTemplate(this),y(this._internalTemplates,i=>{i._removeObjectTemplate(this)}),this._removeTemplates(),this._disposeTemplates(),this.events.dispose(),this._disposers.forEach(i=>{i.dispose()}),G(this._disposerProperties,(i,n)=>{y(n,s=>{s.dispose()})});let e=this.get("id");e&&(delete this._root.entitiesById[e],delete $t.entitiesById[e])}setTimeout(t,e){let i=setTimeout(()=>{this.removeDispose(n),t()},e),n=new Ct(()=>{clearTimeout(i)});return this._disposers.push(n),n}removeDispose(t){if(!this.isDisposed()){let e=zt(this._disposers,t);e>-1&&this._disposers.splice(e,1)}t.dispose()}hasTag(t){return zt(this.get("themeTags",[]),t)!==-1}addTag(t){if(!this.hasTag(t)){let e=this.get("themeTags",[]);e.push(t),this.set("themeTags",e)}}removeTag(t){if(this.hasTag(t)){let e=this.get("themeTags",[]);oe(e,t),this.set("themeTags",e)}}_t(t,e,...i){return this._root.language.translate(t,e,...i)}get root(){return this._root}};Object.defineProperty(U,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Entity"});Object.defineProperty(U,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:["Entity"]});var ve=class a extends Rt{constructor(t){super(),Object.defineProperty(this,"_sprite",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_rendererDisposers",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_dispatchParents",{enumerable:!0,configurable:!0,writable:!0,value:!0}),this._sprite=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.set("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 _i(()=>{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 pt([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}}};Object.defineProperty(ve,"RENDERER_EVENTS",{enumerable:!0,configurable:!0,writable:!0,value:{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)}Ze(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))},wheel:function(a){this.dispatchParents("wheel",{type:"wheel",target:this._sprite,originalEvent:a.event,point:a.point})}}});var N=class extends U{constructor(){super(...arguments),Object.defineProperty(this,"_adjustedLocalBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_localBounds",{enumerable:!0,configurable:!0,writable:!0,value:{left:0,right:0,top:0,bottom:0}}),Object.defineProperty(this,"_parent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dataItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_templateField",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_sizeDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDragging",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dragEvent",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_isHidden",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isShowing",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isHiding",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_isDown",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_downPoint",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_downPoints",{enumerable:!0,configurable:!0,writable:!0,value:{}}),Object.defineProperty(this,"_toggleDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_dragDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hoverDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_focusDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipMoveDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_tooltipPointerDp",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_virtualParent",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_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 ve(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 Ye)&&t&&(t=Ye.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";t!=e&&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 $||this.get("height")instanceof $?We(t._percentageSizeChildren,this):Z(t._percentageSizeChildren,this))}_addPercentagePositionChildren(){let t=this.parent;t&&(this.get("x")instanceof $||this.get("y")instanceof $?We(t._percentagePositionChildren,this):Z(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+q(e,t.right-t.left));let i=this.get("centerY");i!=null&&(this._display.pivot.y=t.top+q(i,t.bottom-t.top))}}_beforeChanged(){if(super._beforeChanged(),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 pt([this.events.on("pointerover",()=>{this._tooltipMoveDp=this.events.on("globalpointermove",i=>{this.showTooltip(i.point)})}),this.events.on("pointerout",()=>{let i=this._tooltipMoveDp;i&&(i.dispose(),this._tooltipMoveDp=void 0)})]))}}_handleStates(){this.isDirty("active")&&(this.get("active")?(this.states.applyAnimate("active"),this.set("ariaChecked",!0)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!1)),this.markDirtyAccessibility()),this.isDirty("disabled")&&(this.get("disabled")?(this.states.applyAnimate("disabled"),this.set("ariaChecked",!1)):(this.isHidden()||this.states.applyAnimate("default"),this.set("ariaChecked",!0)),this.markDirtyAccessibility())}_changed(){super._changed();let t=this._display,e=this.events;if(this.isDirty("draggable")){let n=this.get("draggable");n?(this.set("interactive",!0),this._dragDp=new pt([e.on("pointerdown",s=>{this.dragStart(s)}),e.on("globalpointermove",s=>{this.dragMove(s)}),e.on("globalpointerup",s=>{this.dragStop(s)})])):this._dragDp&&(this._dragDp.dispose(),this._dragDp=void 0),t.cancelTouch=!!n}if(this.isDirty("tooltipText")||this.isDirty("tooltipHTML")||this.isDirty("showTooltipOn")){let n=this.get("tooltipText"),s=this.get("tooltipHTML"),r=this.get("showTooltipOn","hover");this._tooltipDp&&(this._tooltipDp.dispose(),this._tooltipDp=void 0),(n||s)&&(r=="click"?(this._tooltipDp=new pt([e.on("click",()=>{this.setTimeout(()=>{let o=this.getTooltip();o&&!o.isHidden()&&o.get("tooltipTarget")===this?this.hideTooltip():this.showTooltip()},10)}),bi(document,"click",o=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)):r=="always"||(this._tooltipDp=new pt([e.on("pointerover",()=>{this.showTooltip()}),e.on("pointerout",()=>{this.hideTooltip()})]),this._disposers.push(this._tooltipDp)))}if(this.isDirty("toggleKey")){let n=this.get("toggleKey");n&&n!="none"?this._toggleDp=e.on("click",()=>{this._isDragging||this.set(n,!this.get(n))}):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.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 n=this.parent;n&&(this.isDirty("width")&&this.get("width")instanceof $||this.isDirty("height")&&this.get("height")instanceof $)&&(n.markDirty(),n._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 n=this.get("wheelable");n&&this.set("interactive",!0),t.wheelable=!!n}(this.isDirty("tabindexOrder")||this.isDirty("focusableGroup"))&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this)),this.isDirty("filter")&&(t.filter=this.get("filter"));let i=this.get("filter","");if(this.isDirty("blur")){let n=this.get("blur",0);n!=0&&(i+=" blur("+n+"px)")}if(this.isDirty("saturate")){let n=this.get("saturate",1);n!=1&&(i+=" saturate("+n+")")}if(this.isDirty("brightness")){let n=this.get("brightness",1);n!=1&&(i+=" brightness("+n+")")}if(this.isDirty("contrast")){let n=this.get("contrast",1);n!=1&&(i+=" contrast("+n+")")}if(this.isDirty("sepia")){let n=this.get("sepia",0);n!=0&&(i+=" sepia("+n+")")}if(this.isDirty("hue")){let n=this.get("hue",0);n!=0&&(i+=" hue-rotate("+n+"deg)")}if(this.isDirty("invert")){let n=this.get("invert",0);n!=0&&(i+=" invert("+n+")")}if(i&&(t.filter=i),this.isDirty("cursorOverStyle")&&(t.cursorOverStyle=this.get("cursorOverStyle")),this.isDirty("hoverOnFocus")&&(this.get("hoverOnFocus")?this._focusDp=new pt([e.on("focus",()=>{this.showTooltip()}),e.on("blur",()=>{this.hideTooltip()})]):this._focusDp&&(this._focusDp.dispose(),this._focusDp=void 0)),this.isDirty("focusable")&&(this.get("focusable")?this._root._registerTabindexOrder(this):this._root._unregisterTabindexOrder(this),this.markDirtyAccessibility(),this._disposers.push(e.on("blur",()=>{this.setPrivateRaw("touchHovering",!1)})),this._disposers.push(e.once("boundschanged",()=>{this.markDirtyAccessibility()}))),this.isPrivateDirty("focusable")&&this.markDirtyAccessibility(),(this.isDirty("role")||this.isDirty("ariaLive")||this.isDirty("ariaChecked")||this.isDirty("ariaHidden")||this.isDirty("ariaOrientation")||this.isDirty("ariaValueNow")||this.isDirty("ariaValueMin")||this.isDirty("ariaValueMax")||this.isDirty("ariaValueText")||this.isDirty("ariaLabel")||this.isDirty("ariaControls"))&&this.markDirtyAccessibility(),this.isDirty("exportable")&&(t.exportable=this.get("exportable")),this.isDirty("interactive")){let n=this.events;this.get("interactive")&&!n.isDisposed()?this._hoverDp=new pt([n.on("click",s=>{ze(s.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:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})},10))}),n.on("globalpointerup",s=>{ze(s.originalEvent)&&this.getPrivate("touchHovering")&&(this._handleOut(),(this.get("tooltipText")||this.get("tooltipHTML"))&&this.hideTooltip(),this.setPrivateRaw("touchHovering",!1),this.events.dispatch("pointerout",{type:"pointerout",target:s.target,originalEvent:s.originalEvent,point:s.point,simulated:s.simulated})),this._isDown&&this._handleUp(s)}),n.on("pointerover",()=>{this._handleOver()}),n.on("pointerout",()=>{this._handleOut()}),n.on("pointerdown",s=>{this._handleDown(s)})]):(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=ue(t.originalEvent);delete this._downPoints[e],ct(this._downPoints).length==0&&(this._isDown=!1)}}_hasMoved(t){let e=ue(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 ct(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=ue(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),n=n.parent,n&&(s*=n.get("scale",1));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*ht(i)),this.set("y",l.y+o*ut(i)-r*ht(i));let u="dragged";h.isEnabled(u)&&h.dispatch(u,{type:u,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()}}_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),Z(t._percentageSizeChildren,this),Z(t._percentagePositionChildren,this))}_clearDirty(){super._clearDirty(),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=="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+q(this.get("tooltipX",0),t.right-t.left),i=t.top+q(this.get("tooltipY",0),t.bottom-t.top)):(e=q(this.get("tooltipX",0),this.width()),i=q(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 $&&(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"),u=this.getPrivate("y");l instanceof $&&(t?l=t.innerHeight()*l.value+t.get("paddingTop",0):l=0),D(l)?o=l+i:u!=null?o=u:t&&h=="relative"&&(o=t.get("paddingTop",0)+i);let d=this._display;if(d.x!=r||d.y!=o){d.invalidateBounds(),d.x=r,d.y=o;let f="positionchanged";this.events.isEnabled(f)&&this.events.dispatch(f,{type:f,target:this})}this.getPrivate("showingTooltip")&&this.showTooltip()}x(){let t=this.get("x"),e=this.getPrivate("x"),i=this.parent;return i?t instanceof $?q(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 $?q(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(){let t=this.localBounds(),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 yield this.hide(0),e?new Promise((i,n)=>{this.setTimeout(()=>{i(this.show(t))},e)}):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.set("visible",!0),this._onShow(t);let e=this.states.applyAnimate("default",t);yield Ge(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.create("hidden",{opacity:0,visible:!1})),this._isHidden=!0,this._onHide(t);let i=this.states.applyAnimate("hidden",t);yield Ge(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 $){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 $){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 gi(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)}};Object.defineProperty(N,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Sprite"});Object.defineProperty(N,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([N.className])});var _t=class extends U{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_backgroundDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_pattern",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_afterNew(){super._afterNewApplyThemes()}get pattern(){return this._pattern}_draw(){}_beforeChanged(){super._beforeChanged(),(this.isDirty("repetition")||this.isDirty("width")||this.isDirty("height")||this.isDirty("rotation")||this.isDirty("strokeWidth")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("colorOpacity")||this.isDirty("fillOpacity"))&&(this._clear=!0),this._checkDirtyFill()}_checkDirtyFill(){(this.isDirty("color")||this.isDirty("fill"))&&(this._clear=!0)}_changed(){if(super._changed(),this._clear){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}};Object.defineProperty(_t,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Pattern"});Object.defineProperty(_t,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([_t.className])});var bt=class extends _t{constructor(){super(...arguments),Object.defineProperty(this,"_image",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_beforeChanged(){super._beforeChanged(),this._clear=!0,this.isDirty("src")&&this._load();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),u=0,d=0;l&&(u=n/2-o/2,d=s/2-h/2),this._display.image(e,o,h,u,d)}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=>{})}}};Object.defineProperty(bt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"PicturePattern"});Object.defineProperty(bt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:_t.classNames.concat([bt.className])});var xe;(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"})(xe||(xe={}));var Rr=["fill","fillOpacity","stroke","strokeWidth","strokeOpacity","fillPattern","strokePattern","fillGradient","strokeGradient","strokeDasharray","strokeDashoffset","shadowBlur","shadowColor","shadowOpacity","shadowOffsetX","shadowOffsetY","blur","sepia","invert","brightness","hue","contrast","saturate"],Q=class extends N{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeGraphics()}),Object.defineProperty(this,"_clear",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_beforeChanged(){if(super._beforeChanged(),(this.isDirty("draw")||this.isDirty("svgPath"))&&this.markDirtyBounds(),(this.isDirty("fill")||this.isDirty("stroke")||this.isDirty("visible")||this.isDirty("forceHidden")||this.isDirty("scale")||this.isDirty("fillGradient")||this.isDirty("strokeGradient")||this.isDirty("fillPattern")||this.isDirty("strokePattern")||this.isDirty("fillOpacity")||this.isDirty("strokeOpacity")||this.isDirty("strokeWidth")||this.isDirty("draw")||this.isDirty("blendMode")||this.isDirty("strokeDasharray")||this.isDirty("strokeDashoffset")||this.isDirty("svgPath")||this.isDirty("lineJoin")||this.isDirty("lineCap")||this.isDirty("shadowColor")||this.isDirty("shadowBlur")||this.isDirty("shadowOffsetX")||this.isDirty("shadowOffsetY"))&&(this._clear=!0),this._display.crisp=this.get("crisp",!1),this.isDirty("fillGradient")){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",xe.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"),u=this.get("shadowOffsetX"),d=this.get("shadowOffsetY"),f=this.get("shadowOpacity");if(h&&(l||u||d)&&this._display.shadow(h,l,u,d,f),t&&!e&&(this._display.beginFill(t,n),this._display.endFill()),e){if(t){let m=e.get("stops",[]);m.length&&y(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 p=e.getFill(this);p&&(this._display.beginFill(p,n),this._display.endFill())}if(i){let p=i.pattern;p&&(this._display.beginFill(p,n),this._display.endFill(),i instanceof bt&&i.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}if(s||r||o){let p=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"),x=this.get("lineCap");if(s&&!r&&(this._display.lineStyle(m,s,p,g,x),this._display.endStroke()),r){let b=r.get("stops",[]);b.length&&y(b,w=>{(!w.color||w.colorInherited)&&s&&(w.color=s,w.colorInherited=!0),(w.opacity==null||w.opacityInherited)&&(w.opacity=p,w.opacityInherited=!0)});let c=r.getFill(this);c&&(this._display.lineStyle(m,c,p,g,x),this._display.endStroke())}if(o){let b=o.pattern;b&&(this._display.lineStyle(m,b,p,g,x),this._display.endStroke(),o instanceof bt&&o.events.once("loaded",()=>{this._clear=!0,this.markDirty()}))}}this.getPrivate("showingTooltip")&&this.showTooltip()}this._clear=!1}};Object.defineProperty(Q,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Graphics"});Object.defineProperty(Q,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([Q.className])});var yt=class extends Q{_afterNew(){super._afterNew(),this._display.isMeasured=!0,this.setPrivateRaw("trustBounds",!0)}_beforeChanged(){super._beforeChanged(),(this.isDirty("width")||this.isDirty("height")||this.isPrivateDirty("width")||this.isPrivateDirty("height"))&&(this._clear=!0)}_changed(){super._changed(),this._clear&&!this.get("draw")&&this._draw()}_draw(){let 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}};Object.defineProperty(yt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Rectangle"});Object.defineProperty(yt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Q.classNames.concat([yt.className])});function X(a,t){a.get("reverseChildren",!1)?a.children.eachReverse(t):a.children.each(t)}var z=class extends U{};Object.defineProperty(z,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Layout"});Object.defineProperty(z,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([z.className])});var vt=class extends z{updateContainer(t){let e=t.get("paddingLeft",0),i=t.innerWidth(),n=0;X(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof $){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 u=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h>u&&(i-=u,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),X(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("width");if(o instanceof $){let h=i*o.value/n-r.get("marginLeft",0)-r.get("marginRight",0),l=r.get("minWidth",r.getPrivate("minWidth",-1/0)),u=r.get("maxWidth",r.getPrivate("maxWidth",1/0));h=Math.min(Math.max(l,h),u),r.setPrivate("width",h)}else r._prevSettings.width instanceof $&&r.setPrivate("width",void 0)}});let s=e;X(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginLeft",0),l=r.get("marginRight",0),u=r.get("maxWidth"),d=o.left,f=o.right;u&&f-d>u&&(f=d+u);let p=s+h-d;r.setPrivate("x",p),s=p+f+l}else r.setPrivate("x",void 0)})}};Object.defineProperty(vt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"HorizontalLayout"});Object.defineProperty(vt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([vt.className])});var xt=class extends z{updateContainer(t){let e=t.get("paddingTop",0),i=t.innerHeight(),n=0;X(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof $){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 u=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h>u&&(i-=u,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),X(t,r=>{if(r.isVisible()&&r.get("position")=="relative"){let o=r.get("height");if(o instanceof $){let h=i*o.value/n-r.get("marginTop",0)-r.get("marginBottom",0),l=r.get("minHeight",r.getPrivate("minHeight",-1/0)),u=r.get("maxHeight",r.getPrivate("maxHeight",1/0));h=Math.min(Math.max(l,h),u),r.setPrivate("height",h)}else r._prevSettings.height instanceof $&&r.setPrivate("height",void 0)}});let s=e;X(t,r=>{if(r.get("position")=="relative")if(r.isVisible()){let o=r.adjustedLocalBounds(),h=r.get("marginTop",0),l=o.top,u=o.bottom,d=r.get("maxHeight");d&&u-l>d&&(u=l+d);let f=r.get("marginBottom",0),p=s+h-l;r.setPrivate("y",p),s=p+u+f}else r.setPrivate("y",void 0)})}};Object.defineProperty(xt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"VerticalLayout"});Object.defineProperty(xt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([xt.className])});var st=class extends z{_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;X(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=me(r,1,s),o=me(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),u=n,d=0,f=0;h=l.length;let p=e;X(t,m=>{if(m.get("position")=="relative"&&m.isVisible()){let g=m.get("marginTop",0),x=m.get("marginBottom",0),b=m.adjustedLocalBounds(),c=m.get("marginLeft",0),w=m.get("marginRight",0),O=p+c-b.left,A=u+g-b.top;m.setPrivate("x",O),m.setPrivate("y",A),p+=l[d]+w,f=Math.max(f,m.height()+g+x),d++,d>=h&&(d=0,p=e,u+=f,f=0)}})}getColumnWidths(t,e,i,n){let s=0,r=[],o=0;return X(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)))}),y(r,h=>{s+=h}),s>n?e>2?(e-=1,this.getColumnWidths(t,e,i,n)):[n]:r}};Object.defineProperty(st,"className",{enumerable:!0,configurable:!0,writable:!0,value:"GridLayout"});Object.defineProperty(st,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:z.classNames.concat([st.className])});var Ft=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,"]"+Fe+"["),o=o.replace(/\[\]/g,"[ ]");let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let u=this.cleanUp(this.unescape(h[l]));u!==Fe&&u!==""&&(l%2===0?n.push({type:"value",text:u}):n.push({type:i?"value":"format",text:"["+u+"]"}))}}else{let h=o.split(/[\[\]]+/);for(let l=0;l<h.length;l++){let u=this.cleanUp(this.unescape(h[l]));u!==""&&(l%2===0?n.push({type:"text",text:u}):this.isImage(u)?n.push({type:"image",text:"["+u+"]"}):n.push({type:"format",text:"["+u+"]"}))}}}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=T.fromString(n[s]);else{let r=n[s].replace("+"," ").split(/:[ ]*/);e[r[0]]=r[1]}return e}};Object.defineProperty(Ft,"prefix",{enumerable:!0,configurable:!0,writable:!0,value:"__amcharts__"});var we=class extends lt{constructor(t){super(),Object.defineProperty(this,"_disposed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_container",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_events",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._container=t,this._events=this.events.onAll(e=>{if(e.type==="clear")y(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(),y(this.values,t=>{t.dispose()}))}};function Ut(a,t){if(t!=null){t=""+t,t=Ft.escape(t);let e=t.match(/\{([^}]+)\}/g),i;if(e)for(i=0;i<e.length;i++){let n=e[i].replace(/\{([^}]+)\}/,"$1"),s=ii(a,n,"");s==null&&(s=""),t=t.split(e[i]).join(s)}t=Ft.unescape(t)}else t="";return t}function ii(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",[]),u=a.getDurationFormatter().get("durationFields",[]);h.indexOf(o[3])!==-1?s.push({method:"formatDate",params:[]}):l.indexOf(o[3])!==-1?s.push({method:"formatNumber",params:[]}):u.indexOf(o[3])!==-1&&s.push({method:"formatDuration",params:[]})}else{let h=[];if(vi(o[2])!=""){let l=/'([^']*)'|"([^"]*)"|([0-9\-]+)/g,u;for(;u=l.exec(o[2]),u!==null;)h.push(u[1]||u[2]||u[3])}s.push({method:o[1],params:h})}if(n){i=At(a,s,n._settings),(i==null||Ne(i))&&(i=At(a,s,n));let h=n.dataContext;i==null&&h&&(i=At(a,s,h),i==null&&(i=At(a,[{prop:t}],h)),i==null&&h.dataContext&&(i=At(a,s,h.dataContext))),i==null&&n.component&&n.component.dataItem!==n&&(i=ii(n.component,t,e))}return i==null&&(i=At(a,s,a)),i==null&&a.parent&&(i=ii(a.parent,t,e)),i}function $s(a,t){let e=a.getPrivate("customData");if(Ne(e))return e[t]}function At(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 N){let l=n.get(h.prop);l==null&&(l=n.getPrivate(h.prop)),l==null&&(l=$s(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=Ee(n);l!=null&&(n=a.getNumberFormatter().format(l,i||h.params[0]||void 0),s=!0);break;case"formatDate":let u=ci(n);if(!He(u)||fi(u.getTime()))return;u!=null&&(n=a.getDateFormatter().format(u,i||h.params[0]||void 0),s=!0);break;case"formatDuration":let d=Ee(n);d!=null&&(n=a.getDurationFormatter().format(d,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=""):He(n)&&(r[0].method="formatDate",r[0].params="");else{let o=wi(i);o==="number"?r[0].method="formatNumber":o==="date"?r[0].method="formatDate":o==="duration"&&(r[0].method="formatDuration")}r[0].method&&(n=At(a,r,n))}return n}var j=class a extends N{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"_childrenDisplay",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeContainer()}),Object.defineProperty(this,"children",{enumerable:!0,configurable:!0,writable:!0,value:new we(this)}),Object.defineProperty(this,"_percentageSizeChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_percentagePositionChildren",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_prevWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_prevHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentWidth",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentHeight",{enumerable:!0,configurable:!0,writable:!0,value:0}),Object.defineProperty(this,"_contentMask",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_vsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hsbd0",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_hsbd1",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_childrenPrep",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_childrenUpdt",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){super._afterNew(),this._display.addChild(this._childrenDisplay)}_afterChanged(){super._afterChanged(),this._childrenPrep=!1,this._childrenUpdt=!1}_dispose(){ft(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.isDirty("maskContent")){let t=this._childrenDisplay,e=this._contentMask;this.get("maskContent")?e||(e=yt.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(),y(this._percentageSizeChildren,t=>{t._updateSize()}),y(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(),u=this.height();t&&(t.setAll({width:s,height:r,x:i,y:n}),this._display.interactive&&(t._display.interactive=!0));let d=this._contentMask;d&&d.setAll({width:l+1,height:u+1});let f=this.get("verticalScrollbar");if(f){f.set("height",u),f.set("x",l-f.width()-f.get("marginRight",0)),f.set("end",f.get("start",0)+u/this._contentHeight);let p=f.get("background");p&&p.setAll({width:f.width(),height:u});let m=!0;this._contentHeight<=u&&(m=!1),f.setPrivate("visible",m)}}}_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 vt||r instanceof st)&&(o=!0),r instanceof xt&&(h=!0),!((t!=null||i!=null)&&(e!=null||n!=null)&&!this.get("verticalScrollbar"))){let l=Number.MAX_VALUE,u=l,d=-l,f=l,p=-l,m=this.get("paddingLeft",0),g=this.get("paddingTop",0),x=this.get("paddingRight",0),b=this.get("paddingBottom",0);this.children.each(O=>{if(O.get("position")!="absolute"&&O.get("isMeasured")){let A=O.adjustedLocalBounds(),M=O.x(),V=O.y(),E=M+A.left,B=M+A.right,L=V+A.top,I=V+A.bottom;o&&(E-=O.get("marginLeft",0),B+=O.get("marginRight",0)),h&&(L-=O.get("marginTop",0),I+=O.get("marginBottom",0)),E<u&&(u=E),B>d&&(d=B),L<f&&(f=L),I>p&&(p=I)}}),u==l&&(u=0),d==-l&&(d=0),f==l&&(f=0),p==-l&&(p=0),s.left=u-m,s.top=f-g,s.right=d+x,s.bottom=p+b;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._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 vt||i instanceof st)&&(n=!0),i instanceof xt&&(s=!0)),y(this._percentageSizeChildren,r=>{if(!n){let o=r.get("width");o instanceof $&&r.setPrivate("width",o.value*t)}if(!s){let o=r.get("height");o instanceof $&&r.setPrivate("height",o.value*e)}}),y(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,Ut(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=1-(n-s/2)/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));let e=this.get("background");e||(e=this.set("background",yt.new(this._root,{themeTags:["background"],fillOpacity:0,fill:this._root.interfaceColors.get("alternativeBackground")}))),this._vsbd0=this.events.on("wheel",i=>{let n=i.originalEvent;if(yi(n,this))n.preventDefault();else return;let s=n.deltaY/5e3,r=t.get("start",0),o=t.get("end",1);r+s<=0&&(s=-r),o+s>=1&&(s=1-o),r+s>=0&&o+s<=1&&(t.set("start",r+s),t.set("end",o+s))}),this._disposers.push(this._vsbd0),this._vsbd1=t.events.on("rangechanged",()=>{let i=this._contentHeight,n=this._childrenDisplay,s=this._contentMask;n.y=-t.get("start",0)*i,n.markDirtyLayer(),s&&(s._display.y=-n.y,n.mask=s._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 N&&(e.set("isMeasured",!1),e._setParent(this),this._display.addChildAt(e._display,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}}}_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("html","");i&&i!==""&&e&&this._root._setHTMLContent(this,Ut(this,i))}contentWidth(){return this._contentWidth}contentHeight(){return this._contentHeight}};Object.defineProperty(j,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Container"});Object.defineProperty(j,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([j.className])});var rt=class extends N{constructor(){super(...arguments),Object.defineProperty(this,"textStyle",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeTextStyle()}),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value:this._root._renderer.makeText("",this.textStyle)}),Object.defineProperty(this,"_textStyles",{enumerable:!0,configurable:!0,writable:!0,value:["textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","maxChars"]}),Object.defineProperty(this,"_originalScale",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}_updateBounds(){if(this.get("text")){super._updateBounds();let 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 Ct(()=>{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&&y(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)}if(this.isDirty("fillOpacity")){let e=this.get("fillOpacity",1);e&&(t.fillOpacity=e)}(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()),y(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=xi(t,this.get("maxChars",1e8),this.get("breakWords"),this.get("ellipsis"))),this.get("populateText")?Ut(this,t):t}_getAccessibleText(){let t=this.get("ariaLabel");return t!==void 0?this.get("populateText")?Ut(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()}};Object.defineProperty(rt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Text"});Object.defineProperty(rt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:N.classNames.concat([rt.className])});var K=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"_text",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_textKeys",{enumerable:!0,configurable:!0,writable:!0,value:["text","fill","fillGradient","fillOpacity","textAlign","fontFamily","fontSize","fontStyle","fontWeight","fontStyle","fontVariant","textDecoration","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","shadowOpacity","lineHeight","baselineRatio","direction","textBaseline","oversizedBehavior","breakWords","ellipsis","minScale","populateText","role","ignoreFormatting","maxChars","ariaLabel"]})}get text(){return this._text}_afterNew(){super._afterNew(),this._makeText(),y(this._textKeys,t=>{let e=this.get(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(rt.new(this._root,{}))}_updateChildren(){super._updateChildren();let t=this._text;if(y(this._textKeys,i=>{this._text.set(i,this.get(i))}),(this.isDirty("maxWidth")||this.isDirty("maxHeight")||this.isDirty("rotation"))&&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=C:i=="center"?n=k: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=this.get("rotation"),e=t==90||t==270||t==-90,i=this._text,n=this.get("maxWidth",this.getPrivate("maxWidth",1/0));D(n)?i.set(e?"maxHeight":"maxWidth",n-this.get("paddingTop",0)-this.get("paddingBottom",0)):i.set(e?"maxHeight":"maxWidth",void 0);let s=this.get("maxHeight",this.getPrivate("maxHeight",1/0));D(s)?i.set(e?"maxWidth":"maxHeight",s-this.get("paddingLeft",0)-this.get("paddingRight",0)):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()}};Object.defineProperty(K,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Label"});Object.defineProperty(K,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([K.className])});var Pe=class extends lt{constructor(){super(...arguments),Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}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)}},Ai=class{constructor(t){Object.defineProperty(this,"processor",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_value",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this._value=t}incrementRef(){}decrementRef(){}};var Zt=class extends Yt{constructor(t,e,i){super(i),Object.defineProperty(this,"component",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"dataContext",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"open",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"close",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.dataContext=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")}},wt=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"_data",{enumerable:!0,configurable:!0,writable:!0,value:new Pe}),Object.defineProperty(this,"_dataItems",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"_mainDataItems",{enumerable:!0,configurable:!0,writable:!0,value:this._dataItems}),Object.defineProperty(this,"valueFields",{enumerable:!0,configurable:!0,writable:!0,value:[]}),Object.defineProperty(this,"fields",{enumerable:!0,configurable:!0,writable:!0,value:["id"]}),Object.defineProperty(this,"_valueFields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valueFieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fields",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_fieldsF",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_valuesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataChanged",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataGrouped",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"inited",{enumerable:!0,configurable:!0,writable:!0,value:!1})}set data(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")y(e,i=>{i.dispose()}),e.length=0,this._onDataClear();else if(t.type==="push"){let i=new Zt(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),Et(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 Zt(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=0;y(t,(i,n)=>{let s=this.dataItems[n];if(!s)this.data.push(i);else{let r=s.dataContext;r&&Et(i).forEach(([h,l])=>{r[h]=l});let o=this._makeDataItem(r);Et(o).forEach(([h,l])=>{var u;if(s.get(h)!=l){s.set(h,l);let d=(u=this._valueFieldsF[h])===null||u===void 0?void 0:u.workingKey;d&&s.set(d,l)}})}e=n});for(let i=this.dataItems.length-1;i>e;i--){let n=this.dataItems[i];oe(this.dataItems,n),n.dispose()}this._postUpdateData()}_updateFields(){this.valueFields&&(this._valueFields=[],this._valueFieldsF={},y(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={},y(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&&y(this._valueFields,i=>{let n=this.get(this._valueFieldsF[i].fieldKey);e[i]=t[n],e[this._valueFieldsF[i].workingKey]=e[i]}),this._fields&&y(this._fields,i=>{let n=this.get(this._fieldsF[i]);e[i]=t[n]}),e}makeDataItem(t,e){let i=new Zt(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 he(this.dataItems,e=>e.get("id")==t)}};Object.defineProperty(wt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Component"});Object.defineProperty(wt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([wt.className])});var Ei={};Me(Ei,{add:()=>js,checkChange:()=>Li,chooseInterval:()=>Mi,copy:()=>Is,getDateIntervalDuration:()=>As,getDuration:()=>tt,getIntervalDuration:()=>Ii,getNextUnit:()=>Bi,getTime:()=>Bs,getUnitValue:()=>Ms,now:()=>ji,roun:()=>Ls,round:()=>Bt,sleep:()=>si,timeUnitDurations:()=>De});function si(a){return new Promise((t,e)=>{setTimeout(t,a)})}var De={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:365.242/12*864e5,year:31536e6};function Bi(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 tt(a,t){return t==null&&(t=1),De[a]*t}function Ii(a){return a?De[a.timeUnit]*a.count:0}function As(a,t,e,i,n){let s=a.timeUnit,r=a.count;if(s=="hour"||s=="minute"||s=="second"||s=="millisecond")return De[a.timeUnit]*a.count;{let o=Bt(new Date(t.getTime()),s,r,e,i,void 0,n).getTime(),h=o+r*tt(s)*1.05;return h=Bt(new Date(h),s,1,e,i,void 0,n).getTime(),h-o}}function ji(){return new Date}function Bs(){return ji().getTime()}function Is(a){return new Date(a.getTime())}function Li(a,t,e,i,n){if(t-a>tt(e,1.2))return!0;let s=new Date(a),r=new Date(t);n&&(s=n.convertLocal(s),r=n.convertLocal(r));let o=0,h=0;!i&&e!="millisecond"&&(o=s.getTimezoneOffset(),s.setUTCMinutes(s.getUTCMinutes()-o),h=r.getTimezoneOffset(),r.setUTCMinutes(r.getUTCMinutes()-h));let l=!1;switch(e){case"year":s.getUTCFullYear()!=r.getUTCFullYear()&&(l=!0);break;case"month":(s.getUTCFullYear()!=r.getUTCFullYear()||s.getUTCMonth()!=r.getUTCMonth())&&(l=!0);break;case"day":(s.getUTCMonth()!=r.getUTCMonth()||s.getUTCDate()!=r.getUTCDate())&&(l=!0);break;case"hour":s.getUTCHours()!=r.getUTCHours()&&(l=!0);break;case"minute":s.getUTCMinutes()!=r.getUTCMinutes()&&(l=!0);break;case"second":s.getUTCSeconds()!=r.getUTCSeconds()&&(l=!0);break;case"millisecond":s.getTime()!=r.getTime()&&(l=!0);break}if(l)return l;let u=Bi(e);return u?Li(a,t,u,i,n):!1}function js(a,t,e,i,n){let s=0;switch(!i&&t!="millisecond"&&(s=a.getTimezoneOffset(),n&&(s-=n.offsetUTC(a)),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 u=a.getUTCMinutes();a.setUTCMinutes(u+e);break;case"year":let d=a.getUTCFullYear();a.setUTCFullYear(d+e);break;case"month":let f=a.getUTCDate(),p=new Date(a.getUTCFullYear(),a.getUTCMonth(),0).getUTCDate(),m=a.getUTCMonth();f>p?a.setUTCMonth(m+e,p):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(n&&(r+=n.offsetUTC(a)),r!=s){let o=r-s;a.setUTCMinutes(a.getUTCMinutes()+o),a.getTimezoneOffset()!=r&&a.setUTCMinutes(a.getUTCMinutes()-o)}}return a}function Ls(a,t,e,i,n){let s;return n!=null&&(s=new Date(n)),Bt(new Date(a),t,e,i.locale.firstDayOfWeek,i.utc,s,i.timezone).getTime()}function Bt(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=Bt(s,"day",1);let b=a.getTime()-s.getTime(),c=Math.floor(b/tt("day")/e),w=tt("day",c*e);a.setTime(s.getTime()+w-o*tt("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 u=a.getUTCMilliseconds();u=Math.floor(u/e)*e,a.setUTCMilliseconds(u);break;case"hour":let d=a.getUTCHours();e>1&&(d=Math.floor(d/e)*e),a.setUTCHours(d,0,0,0);break;case"minute":let f=a.getUTCMinutes();e>1&&(f=Math.floor(f/e)*e),a.setUTCMinutes(f,0,0);break;case"month":let p=a.getUTCMonth();e>1&&(e==2||e==3||e==4||e==6)&&(p=Math.floor(p/e)*e),a.setUTCMonth(p,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=Bt(s,"week",1);let b=a.getTime()-s.getTime(),c=Math.floor(b/tt("week")/e),w=tt("week",c*e);a.setTime(s.getTime()+w-o*tt("minute"))}let g=a.getUTCDate(),x=a.getUTCDay();D(i)||(i=1),x>=i?g=g-x+i:g=g-(7+x)+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=a.getTimezoneOffset(),u=r.parseDate(a),d=u.year,f=u.month,p=u.day,m=u.hour,g=u.minute,x=u.second,b=u.millisecond,c=u.weekday,w=h-l;switch(t){case"day":if(e>1&&s){s=Bt(s,"day",1,i,n,void 0,r);let B=a.getTime()-s.getTime(),L=Math.floor(B/tt("day")/e),I=tt("day",L*e);a.setTime(s.getTime()+I),u=r.parseDate(a),d=u.year,f=u.month,p=u.day}m=0,g=w,x=0,b=0;break;case"second":g+=w,e>1&&(x=Math.floor(x/e)*e),b=0;break;case"millisecond":g+=w,e>1&&(b=Math.floor(b/e)*e);break;case"hour":e>1&&(m=Math.floor(m/e)*e),g=w,x=0,b=0;break;case"minute":e>1&&(g=Math.floor(g/e)*e),g+=w,x=0,b=0;break;case"month":e>1&&(f=Math.floor(f/e)*e),p=1,m=0,g=w,x=0,b=0;break;case"year":e>1&&(d=Math.floor(d/e)*e),f=0,p=1,m=0,g=w,x=0,b=0;break;case"week":D(i)||(i=1),c>=i?p=p-c+i:p=p-(7+c)+i,m=0,g=w,x=0,b=0;break}a=new Date(d,f,p,m,g,x,b);let O=a.getTime(),A=36e5;t=="hour"&&(A=36e5*e),O+A<=o&&(t=="hour"||t=="minute"||t=="second"||t=="millisecond")&&(a=new Date(O+A));let M=a.getTimezoneOffset(),E=r.offsetUTC(a)-M;return E!=w&&a.setTime(a.getTime()+(E-w)*6e4),a}}function Mi(a,t,e,i){let n=i[a],s=Ii(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?Mi(a+1,t,e,i):Object.assign({},i[a])}function Ms(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 Pi(a)}}var qt=class extends wt{constructor(){super(...arguments),Object.defineProperty(this,"_aggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_selectionAggregatesCalculated",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_dataProcessed",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"_psi",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_pei",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"_baseSeriesDirty",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"chart",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"bullets",{enumerable:!0,configurable:!0,writable:!0,value:new lt}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{width:C,height:C,position:"absolute"})})}_afterNew(){this.valueFields.push("value","customValue"),super._afterNew(),this.setPrivate("customData",{}),this._disposers.push(this.bullets.events.onAll(()=>{this._handleBullets(this.dataItems)}))}_dispose(){this.bulletsContainer.dispose(),super._dispose()}startIndex(){let 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){y(t,e=>{let i=e.bullets;i&&(y(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}_makeBulletReal(t,e){let i=e.get("sprite");i&&(i._setDataItem(t),i.setRaw("position","absolute"),this.bulletsContainer.children.push(i)),e.series=this,t.bullets.push(e)}addBullet(t,e){t.bullets||(t.bullets=[]),e&&this._makeBulletReal(t,e)}_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("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(x=>n.indexOf(x)==-1));let s={},r={},o={},h={},l={},u={},d={},f={},p={};for(let x=0,b=i.length;x<b;x++){let c=i[x];s[c]=0,r[c]=0,o[c]=0}let m=this.dataItems,g=m.length;for(let x=0,b=i.length;x<b;x++){let c=i[x],w=c+"Change",O=c+"ChangePercent",A=c+"ChangePrevious",M=c+"ChangePreviousPercent",V=c+"ChangeSelection",E=c+"ChangeSelectionPercent",B="valueY";(c==="valueX"||c.endsWith("ValueX"))&&(B="valueX");let L=this.getPrivate("baseValueSeries"),I=this.getPrivate("adjustedStartIndex",t),H=(_,P,R)=>{if(t===0){let nt=u[B],Ot=P-nt;_.setRaw(w,Ot),_.setRaw(O,Ot/nt*100)}let kt=P-p[B],at=P-u[B];_.setRaw(A,kt),_.setRaw(M,kt/p[B]*100),_.setRaw(V,at),_.setRaw(E,at/u[B]*100),p[R]=P};for(let _=I;_<e;_++){let P=m[_];if(P){let R=P.get(c);if(R!=null){h[c]==null&&(h[c]=R),l[c]==null&&(l[c]=R),u[c]==null&&(u[c]=R,p[c]=R,L&&(u[B]=L._getBase(B)));break}}}for(let _=I;_<e;_++){let P=m[_];if(P){let R=P._settings[c];R!=null&&(o[c]++,s[c]+=R,r[c]+=Math.abs(R),h[c]>R&&(h[c]=R),l[c]<R&&(l[c]=R),d[c]=R,H(P,R,c))}}if(f[c]=s[c]/o[c],e<g){let _=m[e];if(_){let P=_.get(c);P!=null&&H(_,P,c)}}if(e+1<g){let _=m[e+1];if(_){let P=_.get(c);P!=null&&H(_,P,c)}}t>0&&t--,delete p[c];for(let _=t;_<I;_++){let P=m[_];if(P){let R=P.get(c);p[c]==null&&(p[c]=R),R!=null&&H(P,R,c)}}}for(let x=0,b=i.length;x<b;x++){let c=i[x];this.setPrivate(c+"AverageSelection",f[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",u[c]),this.setPrivate(c+"CloseSelection",d[c])}if(t===0&&e===g)for(let x=0,b=i.length;x<b;x++){let c=i[x];this.setPrivate(c+"Average",f[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",u[c]),this.setPrivate(c+"Close",d[c])}}_updateChildren(){super._updateChildren(),this._psi=this.startIndex(),this._pei=this.endIndex(),this.isDirty("visible")&&this.bulletsContainer.set("visible",this.get("visible"));let t=this.get("heatRules");if(this._valuesDirty&&t&&t.length>0&&y(t,e=>{let i=e.minValue||this.getPrivate(e.dataField+"Low")||0,n=e.maxValue||this.getPrivate(e.dataField+"High")||0;y(e.target._entities,s=>{let r=s.dataItem.get(e.dataField);if(!D(r)){e.neutral&&s.set(e.key,e.neutral);let o=s.states;if(o){let h=o.lookup("default");h&&e.neutral&&h.set(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;D(e.min)?h=e.min+(e.max-e.min)*o:e.min instanceof T?h=T.interpolate(o,e.min,e.max):e.min instanceof $&&(h=Ti(o,e.min,e.max)),s.set(e.key,h);let l=s.states;if(l){let u=l.lookup("default");u&&u.set(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&&y(t.bullets,e=>{this._positionBullet(e);let i=e.get("sprite");e.get("dynamic")&&(i&&(i._markDirtyKey("fill"),i.markDirtySize()),i instanceof j&&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&&y(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&&(y(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&&y(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&&y(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(Ue(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 si(h*(r-i)),t?yield this.showDataItem(s,o):yield this.hideDataItem(s,o)})))}else yield Promise.all(Ue(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}};Object.defineProperty(qt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Series"});Object.defineProperty(qt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:wt.classNames.concat([qt.className])});function ri(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++)Es(a,n[o])}}}}function Es(a,t){for(let e=0,i=t.length;e<i;e++){let n=t[e];a.lineTo(n.x,n.y)}}var Pt=class extends Q{_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),ri(this._display,[[t]])}else if(e)ri(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)}}}};Object.defineProperty(Pt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Line"});Object.defineProperty(Pt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Q.classNames.concat([Pt.className])});var It=class extends rt{constructor(){super(...arguments),Object.defineProperty(this,"_display",{enumerable:!0,configurable:!0,writable:!0,value: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)*St,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())}};Object.defineProperty(It,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialText"});Object.defineProperty(It,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:rt.classNames.concat([It.className])});var Jt=class extends K{constructor(){super(...arguments),Object.defineProperty(this,"_flipped",{enumerable:!0,configurable:!0,writable:!0,value:!1})}_afterNew(){this._textKeys.push("textType","kerning"),super._afterNew()}_makeText(){this._text=this.children.push(It.new(this._root,{}))}baseRadius(){let t=this.getPrivate("radius",0),e=this.getPrivate("innerRadius",0),i=this.get("baseRadius",0);return e+q(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=mt(this.get("labelAngle",0));this._text.set("startAngle",this.get("labelAngle",0)),this._text.set("inside",e);let s=ht(n),r=ut(n),o=this.baseRadius(),h=this.radius();if(this._display.angle=0,t=="circular")this.setAll({paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}),this.setRaw("x",void 0),this.setRaw("y",void 0),this._text.set("orientation",i),this._text.set("radius",h);else{o==0&&(n=0,h=0);let l=h*r,u=h*s;t=="radial"?(this.setRaw("x",l),this.setRaw("y",u),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",k),this.setRaw("centerY",k),this.setRaw("x",l),this.setRaw("y",u)):t=="regular"&&(this.setRaw("x",l),this.setRaw("y",u))}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 $&&(o=o*(1-l.value*2)),i=o*ut(s),n=o*ht(s)}}else!e&&t=="adjusted"&&(i=o/2*ut(s),n=h/2*ht(s));this.setRaw("dx",i),this.setRaw("dy",n),super._updatePosition()}get text(){return this._text}};Object.defineProperty(Jt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"RadialLabel"});Object.defineProperty(Jt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:K.classNames.concat([Jt.className])});var Dt=class extends j{constructor(){super(...arguments),Object.defineProperty(this,"chartContainer",{enumerable:!0,configurable:!0,writable:!0,value:this.children.push(j.new(this._root,{width:C,height:C,interactiveChildren:!1}))}),Object.defineProperty(this,"bulletsContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{interactiveChildren:!1,isMeasured:!1,position:"absolute",width:C,height:C})})}};Object.defineProperty(Dt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Chart"});Object.defineProperty(Dt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:j.classNames.concat([Dt.className])});var Qt=class extends Dt{constructor(){super(...arguments),Object.defineProperty(this,"seriesContainer",{enumerable:!0,configurable:!0,writable:!0,value:j.new(this._root,{width:C,height:C,isMeasured:!1})}),Object.defineProperty(this,"series",{enumerable:!0,configurable:!0,writable:!0,value:new Kt})}_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"){y(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())}};Object.defineProperty(Qt,"className",{enumerable:!0,configurable:!0,writable:!0,value:"SerialChart"});Object.defineProperty(Qt,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Dt.classNames.concat([Qt.className])});var te=class extends Pt{};Object.defineProperty(te,"className",{enumerable:!0,configurable:!0,writable:!0,value:"Tick"});Object.defineProperty(te,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:Pt.classNames.concat([te.className])});var ee=class extends U{_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",T.fromHex(16711680))]);this.getPrivate("numColors")||this.setPrivate("numColors",e.length);let i=this.getPrivate("numColors"),n=0,s=this.get("passOptions"),r=this.get("reuse");for(let o=n;o<i;o++)if(r)e.push(e[o]);else{let h=e[o].toHSL(),l=h.h+(s.hue||0)*t;for(;l>1;)l-=1;let u=h.s+(s.saturation||0)*t;u>1&&(u=1),u<0&&(u=0);let d=h.l+(s.lightness||0)*t;for(;d>1;)d-=1;e.push(T.fromHSL(l,u,d))}}getIndex(t){let e=this.get("colors",[]),i=this.get("saturation");return t>=e.length?(this.generateColors(),this.getIndex(t)):i!=null?T.saturate(e[t],i):e[t]}next(){let t=this.getPrivate("currentStep",this.get("startIndex",0));return this.setPrivate("currentStep",t+this.get("step",1)),this.getIndex(t)}reset(){this.setPrivate("currentStep",this.get("startIndex",0)),this.setPrivate("currentPass",0)}};Object.defineProperty(ee,"className",{enumerable:!0,configurable:!0,writable:!0,value:"ColorSet"});Object.defineProperty(ee,"classNames",{enumerable:!0,configurable:!0,writable:!0,value:U.classNames.concat([ee.className])});function v(a,t,e,i){a.set(t,e.get(i)),e.on(i,n=>{a.set(t,n)})}var Hi=class extends Ci{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:T.fromHex(15066597),fill:T.fromHex(15987699),primaryButton:T.fromHex(6788316),primaryButtonHover:T.fromHex(6779356),primaryButtonDown:T.fromHex(6872182),primaryButtonActive:T.fromHex(6872182),primaryButtonDisabled:T.fromHex(14342874),primaryButtonTextDisabled:T.fromHex(16777215),primaryButtonText:T.fromHex(16777215),primaryButtonStroke:T.fromHex(16777215),secondaryButton:T.fromHex(14277081),secondaryButtonHover:T.fromHex(10724259),secondaryButtonDown:T.fromHex(9276813),secondaryButtonActive:T.fromHex(15132390),secondaryButtonText:T.fromHex(0),secondaryButtonStroke:T.fromHex(16777215),grid:T.fromHex(0),background:T.fromHex(16777215),alternativeBackground:T.fromHex(0),text:T.fromHex(0),alternativeText:T.fromHex(16777215),disabled:T.fromHex(11382189),positive:T.fromHex(5288704),negative:T.fromHex(11730944)});{let r=s("ColorSet");r.setAll({passOptions:{hue:.05,saturation:0,lightness:0},colors:[T.fromHex(6797276)],step:1,reuse:!1,startIndex:0}),r.setPrivate("currentStep",0),r.setPrivate("currentPass",0)}s("Entity").setAll({stateAnimationDuration:0,stateAnimationEasing:gt(it)}),s("Component").setAll({interpolationDuration:0,interpolationEasing:gt(it)}),s("Sprite").setAll({visible:!0,scale:1,opacity:1,rotation:0,position:"relative",tooltipX:k,tooltipY:k,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:C,height:C,interactiveChildren:!1}),s("ZoomableContainer").setAll({width:C,height:C,wheelable:!0,pinchZoom:!0,maxZoomLevel:32,minZoomLevel:1,zoomStep:2,animationEasing:gt(it),animationDuration:600,maxPanOut:.4}),s("Sprite",["horizontal","center"]).setAll({centerX:k,x:k}),s("Sprite",["vertical","center"]).setAll({centerY:k,y:k}),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:[T.fromHex(0)],size:1,horizontalGap:0,verticalGap:0,density:1,minOpacity:0,maxOpacity:.2});{let r=s("PatternSet");r.setAll({step:1}),v(r,"color",e,"stroke")}s("LinearGradient").setAll({rotation:90}),s("Legend").setAll({fillField:"fill",strokeField:"stroke",nameField:"name",layout:st.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}),v(r,"fill",e,"background")}s("Container",["legend","marker"]).setAll({setStateOnChildren:!0,centerY:k,paddingLeft:0,paddingRight:0,paddingBottom:0,paddingTop:0,width:18,height:18}),s("RoundedRectangle",["legend","marker","rectangle"]).setAll({width:C,height:C,cornerRadiusBL:3,cornerRadiusTL:3,cornerRadiusBR:3,cornerRadiusTR:3});{let r=s("RoundedRectangle",["legend","marker","rectangle"]).states.create("disabled",{});v(r,"fill",e,"disabled"),v(r,"stroke",e,"disabled")}s("Label",["legend","label"]).setAll({centerY:k,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,populateText:!0});{let r=s("Label",["legend","label"]).states.create("disabled",{});v(r,"fill",e,"disabled")}s("Label",["legend","value","label"]).setAll({centerY:k,marginLeft:5,paddingRight:0,paddingLeft:0,paddingTop:0,paddingBottom:0,width:50,centerX:C,populateText:!0});{let r=s("Label",["legend","value","label"]).states.create("disabled",{});v(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:C,width:15}),s("RoundedRectangle",["horizontal","heatlegend","marker"]).setAll({width:C,height:15}),s("HeatLegend",["vertical"]).setAll({height:C}),s("HeatLegend",["horizontal"]).setAll({width:C}),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}),v(r,"fill",e,"text")}s("RadialLabel").setAll({textType:"regular",centerY:k,centerX:k,inside:!1,radius:0,baseRadius:C,orientation:"auto",textAlign:"center"}),s("EditableLabel").setAll({editOn:"click",themeTags:["editablelabel"],multiLine:!0}),s("RoundedRectangle",["editablelabel","background"]).setAll({fillOpacity:0,fill:T.fromHex(0),cornerRadiusBL:3,cornerRadiusBR:3,cornerRadiusTL:3,cornerRadiusTR:3,strokeOpacity:0,stroke:T.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}),v(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:k,centerY:k,animationEasing:gt(it),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}),v(r,"fill",e,"background"),v(r,"stroke",e,"grid")}s("Label",["tooltip","system"]).setAll({fontSize:12,fill:e.get("background")}),s("Polygon").setAll({animationEasing:gt(it)}),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});v(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}),v(r,"stroke",e,"grid")}{let r=s("Triangle",["link"]);r.setAll({width:14,height:10,centerY:0}),v(r,"fill",e,"grid"),v(r,"stroke",e,"grid"),r.states.create("default",{stateAnimationDuration:0});let o=r.states.create("active",{stateAnimationDuration:0,stroke:Di(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)}),v(o,"fill",e,"negative")}s("PointedRectangle",["tooltip","background"]).setAll({strokeOpacity:.9,cornerRadius:4,pointerLength:4,pointerBaseWidth:8,fillOpacity:.9,stroke:T.fromHex(16777215)});{let r=s("Label",["tooltip"]);r.setAll({role:"tooltip",populateText:!0,paddingRight:0,paddingTop:0,paddingLeft:0,paddingBottom:0}),v(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"]);v(r,"fill",e,"primaryButton"),v(r,"stroke",e,"primaryButtonStroke")}{let r=s("RoundedRectangle",["button","background"]).states.create("hover",{});v(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["button","background"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"primaryButtonDown")}{let r=s("RoundedRectangle",["button","background"]).states.create("active",{});v(r,"fill",e,"primaryButtonActive")}{let r=s("RoundedRectangle",["button","background"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonDisabled")}{let r=s("Graphics",["button","icon"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Label",["button"]).states.create("disabled",{});v(r,"fill",e,"primaryButtonTextDisabled")}{let r=s("Graphics",["button","icon"]);r.setAll({forceInactive:!0}),v(r,"stroke",e,"primaryButtonText")}{let r=s("Label",["button"]);v(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",{});v(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}),v(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});v(r,"stroke",e,"primaryButtonText")}{let r=s("Graphics",["icon","confirm","button","secondary"]).states.create("active",{});v(r,"stroke",e,"primaryButtonText")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("active",{fillOpacity:1});v(r,"fill",e,"negative")}{let r=s("RoundedRectangle",["button","background","confirm","secondary"]).states.create("hoverActive",{fillOpacity:1});v(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:C,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}),v(r,"fill",e,"primaryButton")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("hover",{});v(r,"fill",e,"primaryButtonHover")}{let r=s("RoundedRectangle",["background","button","zoom"]).states.create("down",{stateAnimationDuration:0});v(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)}}),v(r,"stroke",e,"primaryButtonText")}s("Button",["resize"]).setAll({paddingTop:9,paddingBottom:9,paddingLeft:13,paddingRight:13,draggable:!0,centerX:k,centerY:k,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}),v(r,"fill",e,"secondaryButton"),v(r,"stroke",e,"secondaryButtonStroke")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("hover",{});v(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["background","resize","button"]).states.create("down",{stateAnimationDuration:0});v(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)}}),v(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}),v(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)}}),v(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}),v(r,"fill",e,"primaryButton")}{let r=s("Circle",["switch","icon"]);r.setAll({radius:8,centerY:0,centerX:0,dx:0}),v(r,"fill",e,"primaryButtonText")}s("Graphics",["switch","icon"]).states.create("active",{dx:16}),s("Scrollbar").setAll({start:0,end:1,layer:30,animationEasing:gt(it)}),s("Scrollbar",["vertical"]).setAll({marginRight:13,marginLeft:13,minWidth:12,height:C}),s("Scrollbar",["horizontal"]).setAll({marginTop:13,marginBottom:13,minHeight:12,width:C}),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}),v(r,"fill",e,"fill")}{let r=s("RoundedRectangle",["scrollbar","thumb"]);r.setAll({role:"slider",ariaLive:"polite",position:"absolute",draggable:!0}),v(r,"fill",e,"secondaryButton")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("hover",{});v(r,"fill",e,"secondaryButtonHover")}{let r=s("RoundedRectangle",["scrollbar","thumb"]).states.create("down",{stateAnimationDuration:0});v(r,"fill",e,"secondaryButtonDown")}s("RoundedRectangle",["scrollbar","thumb","vertical"]).setAll({x:k,width:C,centerX:k,ariaLabel:t.translate("Use up and down arrows to move selection")}),s("RoundedRectangle",["scrollbar","thumb","horizontal"]).setAll({y:k,centerY:k,height:C,ariaLabel:t.translate("Use left and right arrows to move selection")});{let r=s("PointedRectangle",["axis","tooltip","background"]);r.setAll({cornerRadius:0}),v(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}),v(r,"fill",e,"background"),v(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}),v(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}),v(r,"stroke",e,"alternativeBackground")}s("Graphics",["button","plus","icon"]).setAll({x:k,y:k,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:k,y:k,draw:r=>{r.moveTo(-4,0),r.lineTo(4,0)}}),s("Graphics",["button","home","icon"]).setAll({x:k,y:k,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}),s("ZoomTools").setAll({x:C,centerX:C,y:C,centerY:C,paddingRight:10,paddingBottom:10}),s("ProgressPie").setAll({radius:C,width:50,height:50,centerX:ne(-50),centerY:ne(-50),innerRadius:ne(85),numberFormat:"#."});{let r=s("Label",["progresspie"]);r.setAll({centerX:k,centerY:k,fontSize:"0.75em"}),v(r,"fill",e,"primaryButton")}{let r=s("Circle",["progresspie"]);r.setAll({fillOpacity:.5}),v(r,"fill",e,"background")}{let r=s("Slice",["progresspie"]);r.setAll({startAngle:-90}),v(r,"fill",e,"primaryButton")}{let r=s("Slice",["progresspie","background"]);r.setAll({fillOpacity:.2,arc:360}),v(r,"fill",e,"primaryButton")}s("EditableLabel",["numericstepper"]).setAll({y:k,centerY:k,multiLine:!1,marginRight:2});{let r=s("Container",["numericstepper","buttons"]);r.setAll({layout:this._root.verticalLayout,centerY:k,y:k,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"}),v(r,"fill",e,"secondaryButton")}s("Triangle",["downbutton"]).setAll({rotation:180})}};function S(a){return function(){return a}}var ai=Math.abs,F=Math.atan2,Tt=Math.cos,Ni=Math.max,Te=Math.min,et=Math.sin,jt=Math.sqrt,W=1e-12,Wt=Math.PI,ie=Wt/2,Fi=2*Wt;function Ui(a){return a>1?0:a<-1?Wt:Math.acos(a)}function ni(a){return a>=1?ie:a<=-1?-ie:Math.asin(a)}var oi=Math.PI,li=2*oi,Lt=1e-6,Ns=li-Lt;function Wi(a){this._+=a[0];for(let t=1,e=a.length;t<e;++t)this._+=arguments[t]+a[t]}function Fs(a){let t=Math.floor(a);if(!(t>=0))throw new Error(`invalid digits: ${a}`);if(t>15)return Wi;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 Mt=class{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?Wi:Fs(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,u=r-t,d=o-e,f=u*u+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=e}`;else if(f>Lt)if(!(Math.abs(d*h-l*u)>Lt)||!s)this._append`L${this._x1=t},${this._y1=e}`;else{let p=i-r,m=n-o,g=h*h+l*l,x=p*p+m*m,b=Math.sqrt(g),c=Math.sqrt(f),w=s*Math.tan((oi-Math.acos((g+f-x)/(2*b*c)))/2),O=w/c,A=w/b;Math.abs(O-1)>Lt&&this._append`L${t+O*u},${e+O*d}`,this._append`A${s},${s},0,0,${+(d*p>u*m)},${this._x1=t+A*h},${this._y1=e+A*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,u=e+h,d=1^r,f=r?n-s:s-n;this._x1===null?this._append`M${l},${u}`:(Math.abs(this._x1-l)>Lt||Math.abs(this._y1-u)>Lt)&&this._append`L${l},${u}`,i&&(f<0&&(f=f%li+li),f>Ns?this._append`A${i},${i},0,1,${d},${t-o},${e-h}A${i},${i},0,1,${d},${this._x1=l},${this._y1=u}`:f>Lt&&this._append`A${i},${i},0,${+(f>=oi)},${d},${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 Vi(){return new Mt}Vi.prototype=Mt.prototype;function Vt(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 Mt(t)}function Us(a){return a.innerRadius}function Ws(a){return a.outerRadius}function Vs(a){return a.startAngle}function zs(a){return a.endAngle}function Gs(a){return a&&a.padAngle}function Ks(a,t,e,i,n,s,r,o){var h=e-a,l=i-t,u=r-n,d=o-s,f=d*h-u*l;if(!(f*f<W))return f=(u*(t-s)-d*(a-n))/f,[a+f*h,t+f*l]}function ke(a,t,e,i,n,s,r){var o=a-e,h=t-i,l=(r?s:-s)/jt(o*o+h*h),u=l*h,d=-l*o,f=a+u,p=t+d,m=e+u,g=i+d,x=(f+m)/2,b=(p+g)/2,c=m-f,w=g-p,O=c*c+w*w,A=n-s,M=f*g-m*p,V=(w<0?-1:1)*jt(Ni(0,A*A*O-M*M)),E=(M*w-c*V)/O,B=(-M*c-w*V)/O,L=(M*w+c*V)/O,I=(-M*c+w*V)/O,H=E-x,_=B-b,P=L-x,R=I-b;return H*H+_*_>P*P+R*R&&(E=L,B=I),{cx:E,cy:B,x01:-u,y01:-d,x11:E*(n/A-1),y11:B*(n/A-1)}}function Ys(){var a=Us,t=Ws,e=S(0),i=null,n=Vs,s=zs,r=Gs,o=null,h=Vt(l);function l(){var u,d,f=+a.apply(this,arguments),p=+t.apply(this,arguments),m=n.apply(this,arguments)-ie,g=s.apply(this,arguments)-ie,x=ai(g-m),b=g>m;if(o||(o=u=h()),p<f&&(d=p,p=f,f=d),!(p>W))o.moveTo(0,0);else if(x>Fi-W)o.moveTo(p*Tt(m),p*et(m)),o.arc(0,0,p,m,g,!b),f>W&&(o.moveTo(f*Tt(g),f*et(g)),o.arc(0,0,f,g,m,b));else{var c=m,w=g,O=m,A=g,M=x,V=x,E=r.apply(this,arguments)/2,B=E>W&&(i?+i.apply(this,arguments):jt(f*f+p*p)),L=Te(ai(p-f)/2,+e.apply(this,arguments)),I=L,H=L,_,P;if(B>W){var R=ni(B/f*et(E)),kt=ni(B/p*et(E));(M-=R*2)>W?(R*=b?1:-1,O+=R,A-=R):(M=0,O=A=(m+g)/2),(V-=kt*2)>W?(kt*=b?1:-1,c+=kt,w-=kt):(V=0,c=w=(m+g)/2)}var at=p*Tt(c),nt=p*et(c),Ot=f*Tt(A),se=f*et(A);if(L>W){var re=p*Tt(w),ae=p*et(w),$e=f*Tt(O),Ae=f*et(O),ot;if(x<Wt)if(ot=Ks(at,nt,$e,Ae,re,ae,Ot,se)){var Be=at-ot[0],Ie=nt-ot[1],je=re-ot[0],Le=ae-ot[1],ui=1/et(Ui((Be*je+Ie*Le)/(jt(Be*Be+Ie*Ie)*jt(je*je+Le*Le)))/2),di=jt(ot[0]*ot[0]+ot[1]*ot[1]);I=Te(L,(f-di)/(ui-1)),H=Te(L,(p-di)/(ui+1))}else I=H=0}V>W?H>W?(_=ke($e,Ae,at,nt,p,H,b),P=ke(re,ae,Ot,se,p,H,b),o.moveTo(_.cx+_.x01,_.cy+_.y01),H<L?o.arc(_.cx,_.cy,H,F(_.y01,_.x01),F(P.y01,P.x01),!b):(o.arc(_.cx,_.cy,H,F(_.y01,_.x01),F(_.y11,_.x11),!b),o.arc(0,0,p,F(_.cy+_.y11,_.cx+_.x11),F(P.cy+P.y11,P.cx+P.x11),!b),o.arc(P.cx,P.cy,H,F(P.y11,P.x11),F(P.y01,P.x01),!b))):(o.moveTo(at,nt),o.arc(0,0,p,c,w,!b)):o.moveTo(at,nt),!(f>W)||!(M>W)?o.lineTo(Ot,se):I>W?(_=ke(Ot,se,re,ae,f,-I,b),P=ke(at,nt,$e,Ae,f,-I,b),o.lineTo(_.cx+_.x01,_.cy+_.y01),I<L?o.arc(_.cx,_.cy,I,F(_.y01,_.x01),F(P.y01,P.x01),!b):(o.arc(_.cx,_.cy,I,F(_.y01,_.x01),F(_.y11,_.x11),!b),o.arc(0,0,f,F(_.cy+_.y11,_.cx+_.x11),F(P.cy+P.y11,P.cx+P.x11),b),o.arc(P.cx,P.cy,I,F(P.y11,P.x11),F(P.y01,P.x01),!b))):o.arc(0,0,f,A,O,b)}if(o.closePath(),u)return o=null,u+""||null}return l.centroid=function(){var u=(+a.apply(this,arguments)+ +t.apply(this,arguments))/2,d=(+n.apply(this,arguments)+ +s.apply(this,arguments))/2-Wt/2;return[Tt(d)*u,et(d)*u]},l.innerRadius=function(u){return arguments.length?(a=typeof u=="function"?u:S(+u),l):a},l.outerRadius=function(u){return arguments.length?(t=typeof u=="function"?u:S(+u),l):t},l.cornerRadius=function(u){return arguments.length?(e=typeof u=="function"?u:S(+u),l):e},l.padRadius=function(u){return arguments.length?(i=u==null?null:typeof u=="function"?u:S(+u),l):i},l.startAngle=function(u){return arguments.length?(n=typeof u=="function"?u:S(+u),l):n},l.endAngle=function(u){return arguments.length?(s=typeof u=="function"?u:S(+u),l):s},l.padAngle=function(u){return arguments.length?(r=typeof u=="function"?u:S(+u),l):r},l.context=function(u){return arguments.length?(o=u??null,l):o},l}var gn=Array.prototype.slice;function Oe(a){return typeof a=="object"&&"length"in a?a:Array.from(a)}function zi(a){this._context=a}zi.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 Ce(a){return new zi(a)}function Re(a){return a[0]}function Se(a){return a[1]}function hi(a,t){var e=S(!0),i=null,n=Ce,s=null,r=Vt(o);a=typeof a=="function"?a:a===void 0?Re:S(a),t=typeof t=="function"?t:t===void 0?Se:S(t);function o(h){var l,u=(h=Oe(h)).length,d,f=!1,p;for(i==null&&(s=n(p=r())),l=0;l<=u;++l)!(l<u&&e(d=h[l],l,h))===f&&((f=!f)?s.lineStart():s.lineEnd()),f&&s.point(+a(d,l,h),+t(d,l,h));if(p)return s=null,p+""||null}return o.x=function(h){return arguments.length?(a=typeof h=="function"?h:S(+h),o):a},o.y=function(h){return arguments.length?(t=typeof h=="function"?h:S(+h),o):t},o.defined=function(h){return arguments.length?(e=typeof h=="function"?h:S(!!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 Xs(a,t,e){var i=null,n=S(!0),s=null,r=Ce,o=null,h=Vt(l);a=typeof a=="function"?a:a===void 0?Re:S(+a),t=typeof t=="function"?t:t===void 0?S(0):S(+t),e=typeof e=="function"?e:e===void 0?Se:S(+e);function l(d){var f,p,m,g=(d=Oe(d)).length,x,b=!1,c,w=new Array(g),O=new Array(g);for(s==null&&(o=r(c=h())),f=0;f<=g;++f){if(!(f<g&&n(x=d[f],f,d))===b)if(b=!b)p=f,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),m=f-1;m>=p;--m)o.point(w[m],O[m]);o.lineEnd(),o.areaEnd()}b&&(w[f]=+a(x,f,d),O[f]=+t(x,f,d),o.point(i?+i(x,f,d):w[f],e?+e(x,f,d):O[f]))}if(c)return o=null,c+""||null}function u(){return hi().defined(n).curve(r).context(s)}return l.x=function(d){return arguments.length?(a=typeof d=="function"?d:S(+d),i=null,l):a},l.x0=function(d){return arguments.length?(a=typeof d=="function"?d:S(+d),l):a},l.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:S(+d),l):i},l.y=function(d){return arguments.length?(t=typeof d=="function"?d:S(+d),e=null,l):t},l.y0=function(d){return arguments.length?(t=typeof d=="function"?d:S(+d),l):t},l.y1=function(d){return arguments.length?(e=d==null?null:typeof d=="function"?d:S(+d),l):e},l.lineX0=l.lineY0=function(){return u().x(a).y(t)},l.lineY1=function(){return u().x(a).y(e)},l.lineX1=function(){return u().x(i).y(t)},l.defined=function(d){return arguments.length?(n=typeof d=="function"?d:S(!!d),l):n},l.curve=function(d){return arguments.length?(r=d,s!=null&&(o=r(s)),l):r},l.context=function(d){return arguments.length?(d==null?s=o=null:o=r(s=d),l):s},l}function Gi(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 Ki(a,t){this._context=a,this._k=(1-t)/6}Ki.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:Gi(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:Gi(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 Zs=(function a(t){function e(i){return new Ki(i,t)}return e.tension=function(i){return a(+i)},e})(0);function Yi(a,t){this._context=a,this._t=t}Yi.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 qs(a){return new Yi(a,1)}export{lt as a,Kt as b,Ri as c,St as d,ce as e,Xi as f,Zi as g,me as h,ht as i,Qi as j,ut as k,mt as l,ts as m,es as n,ss as o,ns as p,Ht as q,it as r,gt as s,be as t,$t as u,er as v,ir as w,sr as x,U as y,N as z,_t as A,bt as B,xe as C,Rr as D,Q as E,yt as F,z as G,vt as H,xt as I,st as J,Ft as K,Ut as L,j as M,rt as N,K as O,v as P,Hi as Q,Pe as R,Ai as S,Zt as T,wt as U,Bi as V,tt as W,Ii as X,As as Y,Li as Z,Ls as _,Bt as $,Mi as aa,Ms as ba,Ei as ca,qt as da,Pt as ea,It as fa,Jt as ga,Ys as ha,hi as ia,Xs as ja,Zs as ka,qs as la,Dt as ma,Qt as na,te as oa,ee as pa};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{O as o,U as r,b as a}from"./
|
|
2
|
+
import{O as o,U as r,b as a}from"./R5KGKAEB.js";import"./3TTFCHAA.js";var t=class extends o{static{this.properties={viewModel:0,messages:0,fileName:1,selectExportsTab:0}}loaded(){this.manager.onLifecycle(()=>[])}async _handlePrintMap(){this.viewModel.export(this.fileName||this.messages.untitled),this.selectExportsTab()}render(){let{messages:e}=this,{layout:i,layoutItem:s,format:l}=this.viewModel.templateOptions,n=this.viewModel.state!=="ready"||!(i||s);return a`<div><calcite-button .ariaLabel=${e.exportDescription} .disabled=${n||!(i||s?.id)&&!l} @click=${this._handlePrintMap} scale=l width=full>${e.export}</calcite-button></div>`}};r("arcgis-print-export-button",t);export{t as PrintExportButton};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as N,b as D}from"./
|
|
2
|
+
import{a as N,b as D}from"./W5TN3LOU.js";import{c as L,f as _}from"./LB32PLWG.js";import{h as x,j as E,k as C,l as h,m as u,n as P,o as f,v,w as O,y as w}from"./R5KGKAEB.js";var A=e=>(...r)=>{let t=u(),o=new e(...r),s=o.exports;h(t.at(-1));let n=o.component.manager;n.W(o,s),o.watchExports(n.W.bind(n,o)),P(o);let a=[o.component,...t].reverse();return v(a,i=>i===void 0?void 0:T(o,i,s),s)},T=(e,{host:r,key:t,isReactive:o},s)=>{let n=r,a=n[t]!==e.exports,i=n[t]!==s,c=s!==e.exports;if(a&&!i&&c&&(n[t]=e.exports),r===e.component){if(o){let p=e.component.manager;i&&p.W(e,n[t]),e.onUpdate(m=>{if(m.has(t)){let b=n[t];b!==e.exports&&p.W(e,b)}})}e.O=o?void 0:t}let d=e.component.constructor.elementProperties.get(t)?.readOnly;e.watchExports(()=>{n[t]!==e.exports&&(d?f(()=>{n[t]=e.exports}):n[t]=e.exports)})};var y=e=>V(void 0,e),se=e=>r=>V(r,e),g=class extends w{constructor(r,t){super(r);let o=this.exports;try{E(this.component);let s=t(this.component,this),n=this.exports!==o;if(x(s)){n||this.setProvisionalExports(s);let a=s.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||s!==void 0)&&(this.exports=s),queueMicrotask(()=>super.catchUpLifecycle())}catch(s){this.P.reject(s)}}catchUpLifecycle(){}},V=A(g);var re=e=>(...r)=>{let t=u(),o=new e(...r);return h(t.at(-1)),o},ne=e=>y((r,t)=>{let o=globalThis.matchMedia(e),s=()=>{t.exports=o.matches};s(),t.onLifecycle(()=>(o.addEventListener("change",s),()=>o.removeEventListener("change",s)))}),M="ltr",ie=()=>y((e,r)=>{r.exports=M,r.onLifecycle(()=>{let t=()=>{let o=_(e.el,"dir",M);r.exports=o==="rtl"?"rtl":"ltr"};return t(),L(e.el,["dir"],t)})}),ae=e=>(r={})=>y((t,o)=>{let s=N(t.el),n={_lang:s.lang,_t9nLocale:s.t9nLocale,_loading:!0},a=t;o.onLifecycle(()=>D(t.el,()=>e("./assets"),({t9nLocale:c,t9nStrings:l,lang:d})=>{let p={...l,_lang:d,_t9nLocale:c,_loading:!1};o.exports=p;let m=l.componentLabel;typeof m=="string"&&"label"in t&&t.label==null&&(t.label??=m),i(a.messageOverrides)},r.name));let i=c=>{let l=o.exports,d=l._original??l,p=R(d,c);c&&(p._original=d),o.exports=p};return"messageOverrides"in a&&o.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),r.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),R=(e,r)=>{if(!r)return e;let t={...e};return Object.entries(r).forEach(([o,s])=>{e[o]!==void 0&&(typeof s=="object"?t[o]=R(e[o],s):t[o]=s??e[o])}),t},ce=e=>F,U="arcgisPropertyChange",F=(...e)=>{let r=C(),t=O(U,void 0,r),o=!0;return r.manager.onUpdated(s=>{if(o||!r.el.isConnected){o=!1;return}for(let n of e)s.has(n)&&t.emit({name:n})}),t};export{A as a,se as b,re as c,ne as d,ie as e,ae as f,ce as g};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as h}from"./
|
|
2
|
+
import{a as h}from"./B2G5OTNZ.js";import{N as l,O as o,P as r,U as d,a as s,b as i,x as n}from"./R5KGKAEB.js";import"./3TTFCHAA.js";var f=s`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`,c=class extends o{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.hintKind="info",this.arcgisCheckedChanged=n()}static{this.properties={_icon:16,checked:7,disabled:7,label:1,hint:1,hintIcon:1,hintKind:1}}static{this.styles=f}async destroy(){await this.manager.destroy()}_setIconRef(e){this._icon=e}render(){let{label:e,hint:a,hintKind:p,hintIcon:g,checked:m,disabled:b}=this;return i`<calcite-label class="label" layout=inline-space-between scale=s>${a?h("label-content",i`<div class="label-content"><div>${e}</div><calcite-icon class=${r(p!=="warning"?"icon info":"icon warning")} .icon=${g??"information"} @click=${t=>t.stopPropagation()} scale=s tabindex=0 ${l(this._setIconRef)}></calcite-icon><calcite-tooltip class="tooltip" overlay-positioning=fixed .referenceElement=${this._icon??void 0}>${a}</calcite-tooltip></div>`):e}<calcite-switch .checked=${m} .disabled=${b} scale=s @calciteSwitchChange=${t=>{this.checked=t.target.checked,this.arcgisCheckedChanged.emit(t.target.checked)}}></calcite-switch></calcite-label>`}};d("arcgis-labeled-switch",c);export{c as LabeledSwitch};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{a as c,b as m}from"./
|
|
2
|
+
import{a as c,b as m}from"./7SZFENQP.js";import{a as l}from"./YMPJFJHK.js";import{b as o}from"./LB32PLWG.js";import{P as n,R as e}from"./R5KGKAEB.js";function v({level:a,class:r,id:s,children:u,excludeGlobalCss:h}){let t=f(a),p=`h${t}`,i=c(p);return m`<${i} .ariaLevel=${String(t)} class=${n(o(h?r:l.heading,r))} id=${s??e} role=heading>${u}</${i}>`}function $(a,r,s){return Math.min(Math.max(a,r),s)}function f(a){return $(Math.ceil(a),1,6)}function C(a,r=1){return f(a+r)}export{v as a,C as b};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
+
import g from"./22YBLZZ5.js";import{a as b,b as c}from"./KX5PBTVM.js";import{a as f}from"./Y6CUKQ7R.js";import e from"./6M6VT4H6.js";import"./2E5U7E4Y.js";import"./W5TN3LOU.js";import d from"./O5TDDX7K.js";import"./LB32PLWG.js";import{M as n,N as o,O as l,P as h,U as p,b as a,x as r}from"./R5KGKAEB.js";import"./3TTFCHAA.js";export default $arcgis.t(([A,{watch:s},P,D,I,{c:g,d:u,e:d,f:y},{a:t,b:w,f:v},{a:V,b:_,c:C}])=>{var R=w(I,{}),M=w(D,{}),m=class extends l{constructor(){super(),this._containerRef=n(),this._mapRef=n(),this._uiController=new V(this),this._cameraProperties={},this.arcgisLoadError=_(this),this.arcgisViewReadyError=C(this),this._map=R(this),this.view=M(this),this.allLayerViews=this.view.allLayerViews,this.alphaCompositingEnabled=this.view.alphaCompositingEnabled,this.analyses=this.view.analyses,this.animationsDisabled=this.view.animationsEnabled,this.attributionMode=this.view.attributionMode,this.autoDestroyDisabled=!1,this.basemap=this._map.basemap,this.basemapView=this.view.basemapView,this.canZoomIn=this.view.canZoomIn,this.canZoomOut=this.view.canZoomOut,this.clippingArea=this.view.clippingArea,this.constraints=this.view.constraints,this.displayFilterDisabled=this.view.displayFilterEnabled,this.environment=this.view.environment,this.fatalError=this.view.fatalError,this.floors=this.view.floors,this.graphics=this.view.graphics,this.ground=this._map.ground,this.groundView=this.view.groundView,this.highlights=this.view.highlights,this.layerViews=this.view.layerViews,this.magnifier=this.view.magnifier,this.map=this.view.map,this.navigation=this.view.navigation,this.padding=this.view.padding,this.popup=this.view.popup,this.popupDisabled=this.view.popupEnabled,this.popupComponentEnabled=!1,this.qualityProfile=this.view.qualityProfile,this.ready=this.view.ready,this.selectionManager=this.view.selectionManager,this.spatialReference=this.view.spatialReference,this.suspended=this.view.suspended,this.theme=this.view.theme,this.timeExtent=this.view.timeExtent,this.updating=this.view.updating,this.viewingMode=this.view.viewingMode,this.visibleArea=this.view.visibleArea,this.arcgisViewAnalysisViewCreate=t(()=>this.view,"analysis-view-create"),this.arcgisViewAnalysisViewCreateError=t(()=>this.view,"analysis-view-create-error"),this.arcgisViewAnalysisViewDestroy=t(()=>this.view,"analysis-view-destroy"),this.arcgisViewChange=r(),this.arcgisViewClick=t(()=>this.view,"click"),this.arcgisViewDoubleClick=t(()=>this.view,"double-click"),this.arcgisViewDoubleTapDrag=t(()=>this.view,"double-tap-drag"),this.arcgisViewDrag=t(()=>this.view,"drag"),this.arcgisViewHold=t(()=>this.view,"hold"),this.arcgisViewImmediateClick=t(()=>this.view,"immediate-click"),this.arcgisViewImmediateDoubleClick=t(()=>this.view,"immediate-double-click"),this.arcgisViewKeyDown=t(()=>this.view,"key-down"),this.arcgisViewKeyUp=t(()=>this.view,"key-up"),this.arcgisViewLayerviewCreate=t(()=>this.view,"layerview-create"),this.arcgisViewLayerviewCreateError=t(()=>this.view,"layerview-create-error"),this.arcgisViewLayerviewDestroy=t(()=>this.view,"layerview-destroy"),this.arcgisViewMouseWheel=t(()=>this.view,"mouse-wheel"),this.arcgisViewPointerDown=t(()=>this.view,"pointer-down"),this.arcgisViewPointerEnter=t(()=>this.view,"pointer-enter"),this.arcgisViewPointerLeave=t(()=>this.view,"pointer-leave"),this.arcgisViewPointerMove=t(()=>this.view,"pointer-move"),this.arcgisViewPointerUp=t(()=>this.view,"pointer-up"),this.arcgisViewReadyChange=r(),this.arcgisViewVerticalTwoFingerDrag=t(()=>this.view,"vertical-two-finger-drag"),this.view.ui={components:[]}}static{this.properties={_map:16,aria:0,view:32,allLayerViews:32,alphaCompositingEnabled:5,analyses:0,animationsDisabled:5,attributionItems:32,attributionMode:1,autoDestroyDisabled:5,basemap:1,basemapView:0,camera:0,cameraFov:9,cameraHeading:9,cameraPosition:1,cameraTilt:9,canZoomIn:36,canZoomOut:36,center:1,clippingArea:0,constraints:0,displayFilterDisabled:5,environment:0,extent:0,fatalError:0,floors:0,focusAreas:0,gamepad:32,graphics:0,ground:1,groundView:32,hideAttribution:5,highlights:0,interacting:32,itemId:3,layerViews:32,magnifier:32,map:0,navigating:32,navigation:0,padding:0,performanceInfo:32,popup:0,popupElement:32,popupDisabled:5,popupComponentEnabled:5,qualityProfile:1,ready:36,resolution:32,selectionManager:32,scale:9,spatialReference:0,stationary:32,suspended:39,theme:0,timeExtent:0,updating:36,viewingMode:1,viewpoint:0,visibleArea:32,zoom:9,loadErrorSources:0}}static{this.styles=[f,b]}get aria(){return this.view?.aria??null}set aria(i){this.view&&(this.view.aria=i)}get attributionItems(){return this.view?.attributionItems??[]}get camera(){return this.view.camera}set camera(i){g(this.camera,i)||(this.view.camera=i)}get cameraFov(){let{view:i}=this;return i.ready?this.view.camera?.fov:this._cameraProperties.fov}set cameraFov(i){i!=null&&this._mutateCamera(e=>{e.fov=i})}get cameraHeading(){let{view:i}=this;return i.ready?i.camera?.heading:this._cameraProperties.heading}set cameraHeading(i){i!=null&&this._mutateCamera(e=>{e.heading=i})}get cameraPosition(){let{view:i}=this;if(i.ready)return i.camera?.position;let{position:e}=this._cameraProperties;return e?new P(e):void 0}set cameraPosition(i){let e=y(this.view.camera?.position,i);e&&this._mutateCamera(E=>{E.position=e})}get cameraTilt(){let{view:i}=this;return i.ready?i.camera?.tilt:this._cameraProperties.tilt}set cameraTilt(i){i!=null&&this._mutateCamera(e=>{e.tilt=i})}get center(){return this.view.center}set center(i){let e=d(i,this.view);e&&(this.view.center=e)}get extent(){return this.view.extent}set extent(i){i&&!this.extent.equals(i)&&(this.view.extent=i)}get focusAreas(){return this.map?this.map?.focusAreas:{areas:[],style:"bright"}}set focusAreas(i){this.map&&(this.map.focusAreas=i)}get gamepad(){return this.view.input.gamepad}get hideAttribution(){return!this.view.attributionVisible}set hideAttribution(i){this.view.attributionVisible=!i}get interacting(){return this.view.interacting}get itemId(){return this._map.portalItem?.id}set itemId(i){v(this._map,this),this._map.portalItem={id:i},this.view.map=this._map}get navigating(){return this.view.navigating}get performanceInfo(){return this.view.performanceInfo}get popupElement(){return this._uiController.popupElement||null}get resolution(){return this.view.resolution}get scale(){return this.view.scale}set scale(i){this.view.scale=i}get stationary(){return this.view.stationary}get viewpoint(){return this.view.viewpoint}set viewpoint(i){u(this.viewpoint,i)&&(this.view.viewpoint=i)}get zoom(){return this.view.zoom}set zoom(i){this.view.zoom=i}async closePopup(){this._uiController.closePopup()}async destroy(){await this.manager.destroy()}async goTo(i,e){return await this.view.goTo(i,e)}async hitTest(i,e){return await this.view.hitTest(i,e)}async openPopup(i){this._uiController.openPopup(i)}async takeScreenshot(i){return await this.view.takeScreenshot(i)}toMap(i,e){return this.view.toMap(i,e)}toScreen(i){return this.view.toScreen(i)}async tryFatalErrorRecovery(){this.view.tryFatalErrorRecovery()}async viewOnReady(i,e){return await this.componentOnReady(),await this.view.whenReady().then(()=>i?.()).catch(e)}async whenAnalysisView(i){return await this.view.whenAnalysisView(i)}async whenLayerView(i){return await this.view.whenLayerView(i)}async zoomIn(){this.view.zoomIn()}async zoomOut(){this.view.zoomOut()}loaded(){let i=this;i.el.childElem=this._mapRef.value,this.view.container??=i.el.childElem,this.map||=this._map,this.manager.onLifecycle(()=>[s(()=>this.map,e=>{e&&(this._map=e)},{initial:!0,sync:!0}),s(()=>this.view.stationary,()=>this.arcgisViewChange.emit(),{initial:!0}),s(()=>this.view.ready,e=>{e&&(this.camera=this.view.camera.clone().set(this._cameraProperties),this._cameraProperties={}),this.arcgisViewReadyChange.emit()},{initial:this.view.ready}),s(()=>this.view.attributionHeight,e=>{this._uiController.handleAttributionHeightChange(e)},{initial:!0})])}_mutateCamera(i){if(!this.view.ready){i(this._cameraProperties);return}let e=this.view.camera?.clone()??new A;i(e),this.camera=e}renderMain(){return a`<div class=${h(c.base)} ${o(this._mapRef)}></div>`}render(){return a`${this.renderMain()}<section class=${h(c.containerUI)} ${o(this._containerRef)}>${this._uiController.render()}</section>`}};p("arcgis-scene",m);return m},"Camera","core/reactiveUtils","geometry/Point","views/SceneView","WebScene",d,e,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{M as s,N as n,O as c,P as h,Q as t,U as l,a as o,b as a}from"./
|
|
2
|
+
import{M as s,N as n,O as c,P as h,Q as t,U as l,a as o,b as a}from"./R5KGKAEB.js";import"./3TTFCHAA.js";var d=o`:host .container{border:1px solid transparent;touch-action:none;--fast-transition-time: .1s;--slow-transition-time: .3s}:host(.animate-level),.container,.item,.rect{transition:height var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),width var(--slow-transition-time) cubic-bezier(.63,-.265,.48,1.64),background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}:host,.container,.item,.rect{will-change:height;transition:height var(--fast-transition-time) ease-out,width var(--fast-transition-time) ease-out,background-color var(--fast-transition-time) ease-in-out,border-color var(--fast-transition-time) ease-in-out}.rect{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%) rotateX(66deg) rotate(45deg);border:var(--calcite-border-width-md) solid rgb(from var(--calcite-color-text-3) r g b / .5);background-color:rgb(from var(--calcite-color-foreground-1) r g b / .7);&.active{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-brand)}&.hover{border-color:var(--calcite-color-brand)}}.item{pointer-events:none;position:absolute;left:50%;transform:translate(-50%,-50%)}`,i=class extends c{constructor(){super(...arguments),this.#t=s(),this.baseWidth=0,this.hovered=!1,this.active=!1,this.height=0}static{this.properties={messages:0,baseWidth:9,level:9,width:9,hovered:5,active:5,height:9}}static{this.styles=d}#t;focus(){this.#t.value?.focus()}render(){if(this.messages==null)return null;let e=this.width??this.baseWidth,r=e*.8;return a`<div class="container" style=${t({height:`${this.height}px`})}><div class="item" style=${t({width:`${Math.round(e)}px`,height:`${Math.round(e)}px`})}><button class=${h({rect:!0,active:this.active,hover:this.hovered})} style=${t({width:`${Math.round(r)}px`,height:`${Math.round(r)}px`})} tabindex=-1 type=button ${n(this.#t)}></button></div></div>`}};l("arcgis-building-level-item",i);export{i as BuildingLevelItem};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
|
|
2
|
-
import{M as u,N as v,O as g,U as w,a as b,b as o,x as p}from"./
|
|
2
|
+
import{M as u,N as v,O as g,U as w,a as b,b as o,x as p}from"./R5KGKAEB.js";import"./3TTFCHAA.js";var I=b`:host{display:none;background:#bdf2c4}:host([selected]){display:flex}.properties-buttons{display:flex}`,_=class extends g{constructor(){super(...arguments),this._flowItemElement=u(),this._switchToVersion=!0,this._switchToVersionCheckboxElement=u(),this._versionNameInputElement=u(),this.selected=!1,this.showBackButton=!1,this.arcgisAlterVersion=p(),this.arcgisCreateVersion=p(),this.arcgisFlowItemBack=p(),this.arcgisFlowItemClose=p()}static{this.properties={selected:7,showBackButton:7,versionPropertiesElementProps:0}}static{this.styles=I}load(){let{versionPropertiesElementProps:{versionInfo:e}}=this;e?(this._mode="edit",this._fullVersionName=e.versionIdentifier.name,this._ownerName=this._fullVersionName.substring(0,this._fullVersionName.lastIndexOf(".")),this._versionName=this._fullVersionName.substring(this._fullVersionName.lastIndexOf(".")+1)):this._mode="create"}updated(){this._mode==="create"&&this._versionNameInputElement.value?.setFocus()}async setFocus(){this._flowItemElement.value?.setFocus()}goBack(){}_handleCancel(){this.arcgisFlowItemBack.emit()}_handleChange(e){let{_mode:i,_ownerName:h,_versionName:m,versionPropertiesElementProps:{currentUser:d,isVersionAdministrator:t,serviceUrl:r,versionInfo:a}}=this,{_alterVersionParameters:c,_createVersionParameters:s}=this;switch(i==="create"&&(s||(s={access:"public",description:"",featureServerUrl:r,ownerName:d,versionName:""})),i==="edit"&&(c||(c={featureServerUrl:r,versionIdentifier:a.versionIdentifier,ownerName:h,versionName:m,access:a.access,description:a.description})),e.type){case"calciteChipGroupSelect":{let n=e.target.label,l=e.target.selectedItems[0].label;i==="create"&&(s={...s,[n]:l}),i==="edit"&&(c={...c,[n]:l});break}case"calciteInputTextInput":{let n=e.target.name,l=e.target.value;i==="create"&&(s={...s,[n]:l}),i==="edit"&&(c={...c,[n]:l});break}case"calciteTextAreaInput":{let n=e.target.name,l=e.target.value;i==="create"&&(s={...s,[n]:l}),i==="edit"&&(c={...c,[n]:l});break}}i==="create"&&(s.access!=="public"&&d.toUpperCase()!==s.ownerName?.toUpperCase()&&!t?(this._switchToVersionCheckboxElement.value.checked=!1,this._switchToVersionCheckboxElement.value.disabled=!0,this._switchToVersion=!1):this._switchToVersionCheckboxElement.value.disabled=!1,this._createVersionParameters=s),i==="edit"&&(this._alterVersionParameters=c)}_handleClose(){this.arcgisFlowItemClose.emit()}_handleSave(){let{_alterVersionParameters:e,_createVersionParameters:i,_mode:h,_switchToVersion:m}=this;h==="create"&&this.arcgisCreateVersion.emit({createVersionParameters:i,switchToVersion:m}),h==="edit"&&this.arcgisAlterVersion.emit({alterVersionParameters:e})}_handleSwitchToVersionChange(e){this._switchToVersion=e.target.checked}render(){let{selected:e,showBackButton:i,versionPropertiesElementProps:{closable:h,currentUser:m,state:d,strings:t,versionInfo:r},_mode:a,_ownerName:c,_versionName:s}=this,n=o`<div class="properties-buttons"><calcite-button appearance=outline width=half @click=${this._handleCancel}>${t.actions.cancelSave}</calcite-button><calcite-button width=half @click=${this._handleSave}>${t.actions.saveVersion}</calcite-button></div>`,l=o`<calcite-label>${t.input.versionAccess}<calcite-chip-group label=access @calciteChipGroupSelect=${this._handleChange} selection-mode=single-persist><calcite-chip .selected=${a==="edit"&&r.access==="public"||a==="create"} label=public>${t.accessLevels.public}</calcite-chip><calcite-chip .selected=${a==="edit"&&r.access==="protected"} label=protected>${t.accessLevels.protected}</calcite-chip><calcite-chip .selected=${a==="edit"&&r.access==="private"} label=private>${t.accessLevels.private}</calcite-chip></calcite-chip-group></calcite-label>`,$=o`<calcite-label>${t.input.versionDescription}<calcite-text-area name=description @calciteTextAreaInput=${this._handleChange} resize=vertical .value=${a==="edit"?r.description:""}></calcite-text-area></calcite-label>`,V=o`<calcite-label>${t.input.versionName}<calcite-input-text name=versionName @calciteInputTextInput=${this._handleChange} max-length=62 .value=${a==="edit"?s:""} ${v(this._versionNameInputElement)}></calcite-input-text></calcite-label>`,f=o`<calcite-label>${t.input.versionOwner}<calcite-input-text name=ownerName @calciteInputTextInput=${this._handleChange} .value=${a==="edit"?c:m}></calcite-input-text></calcite-label>`,x=a==="create"?o`<calcite-label layout=inline><calcite-checkbox checked name=switchToVersion @calciteCheckboxChange=${this._handleSwitchToVersionChange} ${v(this._switchToVersionCheckboxElement)}></calcite-checkbox>${t.actions.switchToVersion}</calcite-label>`:void 0;return o`<calcite-flow-item .closable=${h} .description=${r?r.versionIdentifier.name:""} .heading=${r?t.actions.editVersion:t.actions.newVersion} .selected=${e} .showBackButton=${i} @calciteFlowItemClose=${this._handleClose} ${v(this._flowItemElement)}><calcite-panel .loading=${d==="executing"}><calcite-block expanded .label=${t.headers.versionProperties}>${V}${$}${l}${f}${x}${n}</calcite-block></calcite-panel></calcite-flow-item>`}};w("arcgis-version-management-version-properties",_);export{_ as ArcgisVersionManagementVersionProperties};
|