@arcgis/map-components 6.0.0-next.41 → 6.0.0-next.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{HOMM5T7F.js → 23FQMZEJ.js} +1 -1
- package/dist/cdn/{OT4D3TVG.js → 2KGJ7SZH.js} +1 -1
- package/dist/cdn/{GTQOMGD7.js → 2MIHLZFT.js} +1 -1
- package/dist/cdn/{NF426VVG.js → 3L2QSX64.js} +1 -1
- package/dist/cdn/{IH2T7XRU.js → 3VLSPKTJ.js} +1 -1
- package/dist/cdn/3ZRVPLIZ.js +2 -0
- package/dist/cdn/{TII37L6V.js → 4FBPT5MA.js} +1 -1
- package/dist/cdn/{6WT5CUW4.js → 4IPFHL7W.js} +1 -1
- package/dist/cdn/{5XZKVLHC.js → 5ATTOWK4.js} +1 -1
- package/dist/cdn/{HUZLTULW.js → 5MRT5VRJ.js} +1 -1
- package/dist/cdn/6E4PVTTN.js +2 -0
- package/dist/cdn/{JBD7Q5YD.js → 6NCSWYYX.js} +1 -1
- package/dist/cdn/{5VK56DPB.js → 6NY67VW5.js} +1 -1
- package/dist/cdn/{RX7LVZ5V.js → 6P7V62WJ.js} +1 -1
- package/dist/cdn/{2BKWAHTD.js → 6TLX4R5A.js} +1 -1
- package/dist/cdn/6YPY3QWH.js +2 -0
- package/dist/cdn/72KS3TKM.js +2 -0
- package/dist/cdn/{5IWCWL2Q.js → 7FB4DOVH.js} +1 -1
- package/dist/cdn/{DYKRS7YX.js → 7GXJ6HJZ.js} +1 -1
- package/dist/cdn/7WUY57GO.js +2 -0
- package/dist/cdn/{DVLTVCIH.js → 7YSYI32G.js} +1 -1
- package/dist/cdn/{AMRGLUBB.js → AKSCONMP.js} +1 -1
- package/dist/cdn/{FTRRLFYT.js → B6VGTQ4L.js} +1 -1
- package/dist/cdn/BQCOYIEH.js +2 -0
- package/dist/cdn/{Y6MM3GUE.js → BVWTI63V.js} +1 -1
- package/dist/cdn/{4DRKK3S6.js → CBCAUSDJ.js} +1 -1
- package/dist/cdn/{CX23L4OX.js → CPK3PMBE.js} +1 -1
- package/dist/cdn/CSVVXWVY.js +2 -0
- package/dist/cdn/{Y4GL4RZF.js → CX5AZKYT.js} +1 -1
- package/dist/cdn/{2J6WEB6T.js → DEICCDP4.js} +1 -1
- package/dist/cdn/DJAFLMKA.js +2 -0
- package/dist/cdn/DSINA62N.js +4 -0
- package/dist/cdn/{NYIKMTKG.js → E4ZUESKS.js} +1 -1
- package/dist/cdn/{UJBFSJDF.js → E5BLQ5FK.js} +1 -1
- package/dist/cdn/{KKSTZRNG.js → EDGXY4OL.js} +1 -1
- package/dist/cdn/{YEPFWDQQ.js → EL5AFBNE.js} +1 -1
- package/dist/cdn/{GEZIZQV6.js → EN5NCDOJ.js} +1 -1
- package/dist/cdn/{QNQOBXLM.js → EQA4WO3H.js} +1 -1
- package/dist/cdn/{JILA7S66.js → FLSEDKWU.js} +1 -1
- package/dist/cdn/{625O4F4L.js → GQVCBPZS.js} +1 -1
- package/dist/cdn/{I7XTEFQP.js → GSGFAJCR.js} +1 -1
- package/dist/cdn/{BXBPEOE3.js → GSU7GNNP.js} +1 -1
- package/dist/cdn/{IZFEOYED.js → H2PXK4AT.js} +1 -1
- package/dist/cdn/{RCJ3GROZ.js → HBQAYD5H.js} +1 -1
- package/dist/cdn/{D7RGMUI2.js → IAJNBAC5.js} +1 -1
- package/dist/cdn/{JPQ5ELDQ.js → INMMQJOE.js} +1 -1
- package/dist/cdn/{OMDFAKMT.js → IQYLP2H7.js} +1 -1
- package/dist/cdn/{DVH35LZL.js → J2K2LRII.js} +1 -1
- package/dist/cdn/JUTSSJJF.js +2 -0
- package/dist/cdn/JZYDXRQ6.js +4 -0
- package/dist/cdn/{Y6ZJNJZ7.js → KSOO3XZ2.js} +1 -1
- package/dist/cdn/{KLSIUZNN.js → MKL4YXDU.js} +1 -1
- package/dist/cdn/{EMOYKTQL.js → O2BFE6NY.js} +1 -1
- package/dist/cdn/OUFB4LJK.js +2 -0
- package/dist/cdn/{GFC6LS4L.js → OYG42YJL.js} +1 -1
- package/dist/cdn/{O2RCWKKW.js → PD2BELF2.js} +1 -1
- package/dist/cdn/{T2JBUILX.js → PFYEJDRJ.js} +1 -1
- package/dist/cdn/{JWCEHGEZ.js → PNMBUGPD.js} +1 -1
- package/dist/cdn/QEAEEU72.js +2 -0
- package/dist/cdn/{U53HTVZS.js → RUJLTSDR.js} +1 -1
- package/dist/cdn/{IH7XQCY4.js → SA7B3XQG.js} +1 -1
- package/dist/cdn/{CNUAMIZQ.js → T5RX6NXT.js} +2 -2
- package/dist/cdn/T7PDMEAD.js +2 -0
- package/dist/cdn/{7PMJ7HCH.js → U5BYZI4G.js} +1 -1
- package/dist/cdn/UPXNXNTT.js +2 -0
- package/dist/cdn/{MG2HQ3FT.js → UW3FYQWG.js} +1 -1
- package/dist/cdn/V34ZYXUI.js +2 -0
- package/dist/cdn/{WRB2DEQ6.js → W6ILOTBW.js} +1 -1
- package/dist/cdn/{EZFBYRI4.js → WYX6WXW4.js} +1 -1
- package/dist/cdn/{JFE63ANJ.js → X27EW2YC.js} +1 -1
- package/dist/cdn/{6GFNMSM4.js → XHHVIWXO.js} +1 -1
- package/dist/cdn/{7P24CQF4.js → XOWOMVSW.js} +1 -1
- package/dist/cdn/{CRJB272X.js → XURPEC42.js} +1 -1
- package/dist/cdn/{WVRIR3PK.js → YB6AHPU5.js} +1 -1
- package/dist/cdn/{LQYTLVCL.js → YRQXG7GX.js} +1 -1
- package/dist/cdn/{LHH3PS5H.js → ZVGWUEUE.js} +1 -1
- package/dist/cdn/assets/time-zone-chip/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 +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/components/arcgis-daylight/customElement.d.ts +43 -50
- package/dist/components/arcgis-daylight/customElement.js +231 -225
- package/dist/components/arcgis-editor/customElement.d.ts +0 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +8 -0
- package/dist/components/arcgis-elevation-profile/customElement.js +39 -38
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +4 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +0 -1
- package/dist/components/arcgis-map/customElement.d.ts +0 -1
- package/dist/components/arcgis-scene/customElement.d.ts +0 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +36 -24
- package/dist/components/arcgis-shadow-cast/customElement.js +105 -128
- package/dist/components/arcgis-sketch/customElement.d.ts +0 -1
- package/dist/components/arcgis-time-zone-chip/customElement.d.ts +8 -0
- package/dist/components/arcgis-time-zone-chip/customElement.js +27 -18
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +34 -34
- package/dist/components/types.d.ts +7 -0
- 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 +0 -10
- package/dist/loader.js +3 -4
- package/dist/types/lumina.d.ts +6 -11
- package/dist/types/preact.d.ts +6 -12
- package/dist/types/react.d.ts +6 -13
- package/dist/types/stencil.d.ts +6 -11
- package/package.json +7 -7
- package/dist/cdn/27TSPXYV.js +0 -2
- package/dist/cdn/2JSC2QUL.js +0 -2
- package/dist/cdn/43IGD6V3.js +0 -2
- package/dist/cdn/4JR57ZIQ.js +0 -2
- package/dist/cdn/6BT6RP22.js +0 -2
- package/dist/cdn/6KYZMT4A.js +0 -2
- package/dist/cdn/BJUFDQGX.js +0 -2
- package/dist/cdn/DFNH6YRR.js +0 -2
- package/dist/cdn/GOMR7D5M.js +0 -2
- package/dist/cdn/HKKNU4CX.js +0 -2
- package/dist/cdn/LZUAJU6O.js +0 -2
- package/dist/cdn/PYBUTNHM.js +0 -2
- package/dist/cdn/SKV3CQSZ.js +0 -2
- package/dist/cdn/TXVB6WRV.js +0 -2
- package/dist/cdn/UYDXI4AK.js +0 -4
- package/dist/cdn/YAWLVMV6.js +0 -2
- package/dist/cdn/YGBYB3BZ.js +0 -2
- package/dist/components/arcgis-utility-network-validate-topology/customElement.d.ts +0 -100
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +0 -44
- package/dist/components/arcgis-utility-network-validate-topology/index.d.ts +0 -1
- package/dist/components/arcgis-utility-network-validate-topology/index.js +0 -1
- /package/dist/cdn/{SLQPDAGN.js → 237ZYFAI.js} +0 -0
- /package/dist/cdn/{AYQJ2LTV.js → 4LNUUNTS.js} +0 -0
- /package/dist/cdn/{OLSESBZ7.js → 4RG2L4NX.js} +0 -0
- /package/dist/cdn/{N2YWWQOS.js → 6F6UDFL6.js} +0 -0
- /package/dist/cdn/{62HMPABL.js → 6FZQAFDW.js} +0 -0
- /package/dist/cdn/{RTDY3HLR.js → 6RNYBJQG.js} +0 -0
- /package/dist/cdn/{ZCL4XHIZ.js → 6YT2MRU6.js} +0 -0
- /package/dist/cdn/{XQ2WXTW7.js → AAF7U7C7.js} +0 -0
- /package/dist/cdn/{IRFIHD5X.js → AZFQTGM4.js} +0 -0
- /package/dist/cdn/{XCSF7KJK.js → BVR6RYPL.js} +0 -0
- /package/dist/cdn/{DPEWQQEB.js → C3VCBV5R.js} +0 -0
- /package/dist/cdn/{ZSKO7HLH.js → COJJ4ST7.js} +0 -0
- /package/dist/cdn/{NVN2CATF.js → CSLBASOL.js} +0 -0
- /package/dist/cdn/{2P5AJORF.js → DDUJHOQ5.js} +0 -0
- /package/dist/cdn/{DLUFAV4S.js → F25B6VFT.js} +0 -0
- /package/dist/cdn/{PWZHB6VD.js → FC4U5FYO.js} +0 -0
- /package/dist/cdn/{SLNXNVPI.js → H3SNBMDP.js} +0 -0
- /package/dist/cdn/{QWMDZDQA.js → HDNFEQXP.js} +0 -0
- /package/dist/cdn/{FJMXBIN5.js → HMAEKQ63.js} +0 -0
- /package/dist/cdn/{T34W3GKP.js → HRKFC3ZC.js} +0 -0
- /package/dist/cdn/{5GTPIPN7.js → ID3JLPN6.js} +0 -0
- /package/dist/cdn/{KOMTNQPT.js → IKNNVF57.js} +0 -0
- /package/dist/cdn/{OFBWNR54.js → J3U6IFQO.js} +0 -0
- /package/dist/cdn/{CHMBPPHS.js → JUG5VVPL.js} +0 -0
- /package/dist/cdn/{MEISDI2H.js → KYUDUFNZ.js} +0 -0
- /package/dist/cdn/{4LWSF6AI.js → L63YJ5AF.js} +0 -0
- /package/dist/cdn/{LVIYMA67.js → LGPNCTTW.js} +0 -0
- /package/dist/cdn/{LS4U4GD5.js → LH4SQVC2.js} +0 -0
- /package/dist/cdn/{XGWYQ7FU.js → LNUFIKD5.js} +0 -0
- /package/dist/cdn/{7YT5W57B.js → NIASADUV.js} +0 -0
- /package/dist/cdn/{UDXDE3LW.js → NJ3CJS46.js} +0 -0
- /package/dist/cdn/{6SL7YNKF.js → NXC47WWQ.js} +0 -0
- /package/dist/cdn/{ZNIMZP5R.js → O527UXXI.js} +0 -0
- /package/dist/cdn/{G4IKO2R6.js → OXZOWO5A.js} +0 -0
- /package/dist/cdn/{SFDCS6A2.js → PHFJU5KL.js} +0 -0
- /package/dist/cdn/{TP2KQRW6.js → QHK5I5OO.js} +0 -0
- /package/dist/cdn/{IAYL44LK.js → RB3QNSQJ.js} +0 -0
- /package/dist/cdn/{ECA47Z37.js → T4CJDMMZ.js} +0 -0
- /package/dist/cdn/{AKTIOEYM.js → TAU22PX7.js} +0 -0
- /package/dist/cdn/{ZHYXFOYU.js → VP47DYTR.js} +0 -0
- /package/dist/cdn/{NVKOZL7X.js → WMP77MLQ.js} +0 -0
- /package/dist/cdn/{5GGAWGSN.js → WMRMVZHH.js} +0 -0
- /package/dist/cdn/{GCPR7XFU.js → YEEPGAEP.js} +0 -0
package/dist/cdn/43IGD6V3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as vt}from"./GFC6LS4L.js";import{D as _t,E as q,P as at,R as ft,S as xt,c as M,ga as ct,i as w,j as v,ja as bt,k as T,l as mt,m as ht,n as dt,o as et,qa as ut,ra as lt,sa as kt}from"./6KYZMT4A.js";import{S as N,a as z,x as C}from"./AMRGLUBB.js";import{a as gt,b as tt,d as D,e as f}from"./UDXDE3LW.js";import{X as W,Y as yt,g as Y,p as k}from"./6SL7YNKF.js";import"./TAVTDQ6S.js";var it=class extends yt{setupDefaultRules(){super.setupDefaultRules();let e=this._root.interfaceColors,t=this.rule.bind(this);t("PercentSeries").setAll({legendLabelText:"{category}",legendValueText:"{valuePercentTotal.formatNumber('0.00p')}",colors:kt.new(this._root,{}),width:D,height:D}),t("PieChart").setAll({radius:tt(80),startAngle:-90,endAngle:270}),t("PieSeries").setAll({alignLabels:!0,startAngle:-90,endAngle:270}),t("PieSeries").states.create("hidden",{endAngle:-90,opacity:0}),t("Slice",["pie"]).setAll({position:"absolute",isMeasured:!1,x:0,y:0,toggleKey:"active",tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}",strokeWidth:1,strokeOpacity:1,role:"figure",lineJoin:"round"}),t("Slice",["pie"]).states.create("active",{shiftRadius:20,scale:1}),t("Slice",["pie"]).states.create("hoverActive",{scale:1.04}),t("Slice",["pie"]).states.create("hover",{scale:1.04}),t("RadialLabel",["pie"]).setAll({textType:"aligned",radius:10,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",paddingTop:5,paddingBottom:5,populateText:!0}),t("Tick",["pie"]).setAll({location:1}),t("SlicedChart").setAll({paddingLeft:10,paddingRight:10,paddingTop:10,paddingBottom:10}),t("FunnelSeries").setAll({startLocation:0,endLocation:1,orientation:"vertical",alignLabels:!0,sequencedInterpolation:!0}),t("FunnelSlice").setAll({interactive:!0,expandDistance:0}),t("FunnelSlice").states.create("hover",{expandDistance:.15}),t("Label",["funnel"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["funnel","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["funnel","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["funnel"]).setAll({location:1}),t("FunnelSlice",["funnel","link"]).setAll({fillOpacity:.5,strokeOpacity:0,expandDistance:-.1}),t("FunnelSlice",["funnel","link","vertical"]).setAll({height:10}),t("FunnelSlice",["funnel","link","horizontal"]).setAll({width:10}),t("PyramidSeries").setAll({valueIs:"area"}),t("FunnelSlice",["pyramid","link"]).setAll({fillOpacity:.5}),t("FunnelSlice",["pyramid","link","vertical"]).setAll({height:0}),t("FunnelSlice",["pyramid","link","horizontal"]).setAll({width:0}),t("FunnelSlice",["pyramid"]).setAll({interactive:!0,expandDistance:0}),t("FunnelSlice",["pyramid"]).states.create("hover",{expandDistance:.15}),t("Label",["pyramid"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pyramid","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pyramid","vertical"]).setAll({centerY:f,centerX:0}),t("Tick",["pyramid"]).setAll({location:1}),t("FunnelSlice",["pictorial"]).setAll({interactive:!0,tooltipText:"{category}: {valuePercentTotal.formatNumber('0.00p')}"}),t("Label",["pictorial"]).setAll({populateText:!0,text:"{category}: {valuePercentTotal.formatNumber('0.00p')}",centerY:f}),t("Label",["pictorial","horizontal"]).setAll({centerX:0,centerY:f,rotation:-90}),t("Label",["pictorial","vertical"]).setAll({centerY:f,centerX:0}),t("FunnelSlice",["pictorial","link"]).setAll({fillOpacity:.5,width:0,height:0}),t("Tick",["pictorial"]).setAll({location:.5});{let i=t("Graphics",["pictorial","background"]);i.setAll({fillOpacity:.2}),xt(i,"fill",e,"alternativeBackground")}}};var $=class extends ut{_afterNew(){this._defaultThemes.push(it.new(this._root)),super._afterNew(),this.chartContainer.children.push(this.seriesContainer),this.seriesContainer.children.push(this.bulletsContainer)}_processSeries(e){super._processSeries(e),this.seriesContainer.children.moveValue(this.bulletsContainer,this.seriesContainer.children.length-1)}};$.className="PercentChart";$.classNames=ut.classNames.concat([$.className]);var L=class extends ct{constructor(){super(...arguments),this.slicesContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.labelsContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this.ticksContainer=this.children.push(at.new(this._root,{position:"absolute",isMeasured:!1})._markC("position","isMeasured")),this._lLabels=[],this._rLabels=[],this._hLabels=[],this.slices=this.addDisposer(this._makeSlices()),this.labels=this.addDisposer(this._makeLabels()),this.ticks=this.addDisposer(this._makeTicks())}_applyThemes(e=!1){let t=this.get("colors");return t&&t.reset(),super._applyThemes(e)}makeSlice(e){let t=this.slicesContainer.children.push(this.slices.make());return t.on("fill",()=>{this.updateLegendMarker(e)}),t.on("fillPattern",()=>{this.updateLegendMarker(e)}),t.on("stroke",()=>{this.updateLegendMarker(e)}),t._setDataItem(e),this._linkSprite(t,e),e.set("slice",t),this.slices.push(t),t}makeLabel(e){let t=this.labelsContainer.children.push(this.labels.make());return t._setDataItem(e),e.set("label",t),this.labels.push(t),t}_shouldMakeBullet(e){return e.get("value")!=null}makeTick(e){let t=this.ticksContainer.children.push(this.ticks.make());return t._setDataItem(e),e.set("tick",t),this.ticks.push(t),t}_afterNew(){this.fields.push("category","fill"),super._afterNew()}_placeBulletsContainer(){this.children.moveValue(this.bulletsContainer)}_onDataClear(){let e=this.get("colors");e&&e.reset();let t=this.get("patterns");t&&t.reset()}_prepareChildren(){if(super._prepareChildren(),this._lLabels=[],this._rLabels=[],this._hLabels=[],this._valuesDirty){let e=0,t=0,i=0,s=1/0,a=0;k(this._dataItems,l=>{let r=l.get("valueWorking",0);e+=r,t+=Math.abs(r)}),k(this._dataItems,l=>{let r=l.get("valueWorking",0);r>i&&(i=r),r<s&&(s=r),a++;let n=r/t;t==0&&(n=0),l.setRaw("valuePercentTotal",n*100)}),this.setPrivateRaw("valueLow",s),this.setPrivateRaw("valueHigh",i),this.setPrivateRaw("valueSum",e),this.setPrivateRaw("valueAverage",e/a),this.setPrivateRaw("valueAbsoluteSum",t)}}show(e){let t=Object.create(null,{show:{get:()=>super.show}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.show.call(this,e)),i.push(this._sequencedShowHide(!0,e)),yield Promise.all(i)})}hide(e){let t=Object.create(null,{hide:{get:()=>super.hide}});return z(this,void 0,void 0,function*(){let i=[];i.push(t.hide.call(this,e)),i.push(this._sequencedShowHide(!1,e)),yield Promise.all(i)})}_updateChildren(){super._updateChildren(),this._valuesDirty&&k(this._dataItems,e=>{e.get("label").text.markDirtyText()}),(this.isDirty("legendLabelText")||this.isDirty("legendValueText"))&&k(this._dataItems,e=>{this.updateLegendValue(e)}),this._arrange()}_arrange(){this._arrangeDown(this._lLabels),this._arrangeUp(this._lLabels),this._arrangeDown(this._rLabels),this._arrangeUp(this._rLabels),this._arrangeLeft(this._hLabels),this._arrangeRight(this._hLabels),k(this.dataItems,e=>{this._updateTick(e)})}_afterChanged(){super._afterChanged(),this._arrange()}processDataItem(e){if(super.processDataItem(e),e.get("fill")==null){let t=this.get("colors");t&&e.setRaw("fill",t.next())}if(e.get("fillPattern")==null){let t=this.get("patterns");t&&e.setRaw("fillPattern",t.next())}}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){let s=[i.showDataItem.call(this,e,t)];Y(t)||(t=this.get("stateAnimationDuration",0));let a=this.get("stateAnimationEasing"),l=e.get("value"),r=e.animate({key:"valueWorking",to:l,duration:t,easing:a});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.show(t));let u=e.get("label");u&&s.push(u.show(t));let o=e.get("slice");o&&s.push(o.show(t)),o.get("active")&&o.states.applyAnimate("active"),yield Promise.all(s)})}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){let s=[i.hideDataItem.call(this,e,t)],a=this.states.create("hidden",{});Y(t)||(t=a.get("stateAnimationDuration",this.get("stateAnimationDuration",0)));let l=a.get("stateAnimationEasing",this.get("stateAnimationEasing")),r=e.animate({key:"valueWorking",to:0,duration:t,easing:l});r&&s.push(r.waitForStop());let n=e.get("tick");n&&s.push(n.hide(t));let u=e.get("label");u&&s.push(u.hide(t));let o=e.get("slice");o.hideTooltip(),o&&s.push(o.hide(t)),yield Promise.all(s)})}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("label");t&&(this.labels.removeValue(t),t.dispose());let i=e.get("tick");i&&(this.ticks.removeValue(i),i.dispose());let s=e.get("slice");s&&(this.slices.removeValue(s),s.dispose())}hoverDataItem(e){let t=e.get("slice");t&&!t.isHidden()&&t.hover()}unhoverDataItem(e){let t=e.get("slice");t&&t.unhover()}updateLegendMarker(e){if(e){let t=e.get("slice");if(t){let i=e.get("legendDataItem");if(i){let s=i.get("markerRectangle");k(_t,a=>{t.get(a)!=null&&s.set(a,t.get(a))})}}}}_arrangeDown(e){if(e){let t=this._getNextDown();e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.top;i.y+a<t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.bottom})}}_getNextUp(){return this.labelsContainer.maxHeight()}_getNextDown(){return 0}_arrangeUp(e){if(e){let t=this._getNextUp();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.bottom;i.y+a>t&&(i.y=t-a),i.label.set("y",i.y),t=i.y+s.top})}}_arrangeRight(e){if(e){let t=0;e.sort((i,s)=>i.y>s.y?1:i.y<s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.left;i.y+a<t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.right})}}_arrangeLeft(e){if(e){let t=this.labelsContainer.maxWidth();e.sort((i,s)=>i.y<s.y?1:i.y>s.y?-1:0),k(e,i=>{let s=i.label.adjustedLocalBounds(),a=s.right;i.y+a>t&&(i.y=t-a),i.label._setC("x",i.y),t=i.y+s.left})}}_updateSize(){super._updateSize(),this.markDirty()}_updateTick(e){}_dispose(){super._dispose();let e=this.chart;e&&e.series.removeValue(this)}};L.className="PercentSeries";L.classNames=ct.classNames.concat([L.className]);var G=class extends ${constructor(){super(...arguments),this._maxRadius=1}_afterNew(){super._afterNew(),this.seriesContainer.setAll({x:f,y:f})}_processSeries(e){super._processSeries(e),this.series.each(t=>{t._markDirtyKey("innerRadius")})}_prepareChildren(){super._prepareChildren();let e=this.chartContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.get("startAngle",0),a=this.get("endAngle",0),l=this.get("innerRadius"),r=ht(0,0,s,a,1),n=t/(r.right-r.left),u=i/(r.bottom-r.top),o={left:0,right:0,top:0,bottom:0};if(l instanceof gt&&l.value!==0){let p=l.value,g=Math.min(n,u);p=Math.max(g*p,g-Math.min(i,t))/g,o=ht(0,0,s,a,p),this.setPrivateRaw("irModifyer",p/l.value)}else this.setPrivateRaw("irModifyer",1);r=dt([r,o]);let m=this._maxRadius;this._maxRadius=Math.min(n,u);let h=C(this.get("radius",0),this._maxRadius);this.seriesContainer.setAll({dy:-h*(r.bottom+r.top)/2,dx:-h*(r.right+r.left)/2}),(this.isDirty("startAngle")||this.isDirty("endAngle")||m!=this._maxRadius)&&this.series.each(p=>{p._markDirtyKey("startAngle")}),(this.isDirty("innerRadius")||this.isDirty("radius"))&&this.series.each(p=>{p._markDirtyKey("innerRadius")})}radius(e){let t=C(this.get("radius",0),this._maxRadius),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("radius");return l!=null?i+C(l,t-i):i+(t-i)/a*(s+1)}return t}innerRadius(e){let t=this.radius(),i=C(this.get("innerRadius",0),t);if(i<0&&(i=t+i),e){let s=this.series.indexOf(e),a=this.series.length,l=e.get("innerRadius");return l!=null?i+C(l,t-i):i+(t-i)/a*s}return i}_updateSize(){super._updateSize(),this.markDirtyKey("radius")}};G.className="PieChart";G.classNames=$.classNames.concat([G.className]);var U=class extends L{_makeSlices(){return new M(W.new({}),()=>vt._new(this._root,{themeTags:N(this.slices.template.get("themeTags",[]),["pie","series"])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>bt._new(this._root,{themeTags:N(this.labels.template.get("themeTags",[]),["pie","series"])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:N(this.ticks.template.get("themeTags",[]),["pie","series"])},[this.ticks.template]))}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t.on("scale",()=>{this._updateTick(e)}),t.on("shiftRadius",()=>{this._updateTick(e)}),t.events.on("positionchanged",()=>{this._updateTick(e)});let i=this.makeLabel(e);i.events.on("positionchanged",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()})}_getNextUp(){let e=this.chart;return e?e._maxRadius:this.labelsContainer.maxHeight()/2}_getNextDown(){let e=this.chart;return e?-e._maxRadius:-this.labelsContainer.maxHeight()/2}_prepareChildren(){super._prepareChildren();let e=this.chart;if(e){if(this.isDirty("alignLabels")){let t=this.labels.template;if(this.get("alignLabels"))t._setC("textType","aligned");else{let i=t.get("textType");(i==null||i=="aligned")&&t._setC("textType","adjusted")}}if(this._valuesDirty||this.isDirty("radius")||this.isDirty("innerRadius")||this.isDirty("startAngle")||this.isDirty("endAngle")||this.isDirty("alignLabels")){this.markDirtyBounds();let t=this.get("startAngle",e.get("startAngle",-90)),s=this.get("endAngle",e.get("endAngle",270))-t,a=t,l=e.radius(this);this.setPrivateRaw("radius",l);let r=e.innerRadius(this)*e.getPrivate("irModifyer",1);r<0&&(r=l+r),k(this._dataItems,n=>{this.updateLegendValue(n);let u=s*n.get("valuePercentTotal")/100,o=n.get("slice");if(o){o.set("radius",l),o.set("innerRadius",r),o.set("startAngle",a),o.set("arc",u);let p=n.get("fill");o._setDefault("fill",p),o._setDefault("stroke",p);let g=n.get("fillPattern");o._setDefault("fillPattern",g)}let m=mt(a+u/2),h=n.get("label");if(h&&(h.setPrivate("radius",l),h.setPrivate("innerRadius",r),h.set("labelAngle",m),h.get("textType")=="aligned")){let p=l+h.get("radius",0),g=l*w(m);m>90&&m<=270?(!h.isHidden()&&!h.isHiding()&&this._lLabels.push({label:h,y:g}),p*=-1,p-=this.labelsContainer.get("paddingLeft",0),h.set("centerX",D),h.setPrivateRaw("left",!0)):(!h.isHidden()&&!h.isHiding()&&this._rLabels.push({label:h,y:g}),p+=this.labelsContainer.get("paddingRight",0),h.set("centerX",0),h.setPrivateRaw("left",!1)),h.set("x",p),h.set("y",l*w(m))}a+=u,this._updateTick(n)})}}}_updateTick(e){let t=e.get("tick"),i=e.get("label"),s=e.get("slice"),a=t.get("location",1);if(t&&i&&s){let l=(s.get("shiftRadius",0)+s.get("radius",0))*s.get("scale",1)*a,r=i.get("labelAngle",0),n=T(r),u=w(r),o=this.labelsContainer,m=o.get("paddingLeft",0),h=o.get("paddingRight",0),p=0,g=0;p=i.x(),g=i.y();let c=[];if(p!=0||g!=0){if(i.get("textType")=="circular"){let y=i.radius()-i.get("paddingBottom",0),x=i.get("labelAngle",0);p=y*T(x),g=y*w(x)}let d=-h;i.getPrivate("left")&&(d=m),c=[{x:s.x()+l*n,y:s.y()+l*u},{x:p+d,y:g},{x:p,y:g}]}t.set("points",c)}}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.get("innerRadius",0),l=s.get("radius",0),r=s.get("startAngle",0),n=s.get("arc",0),u=e.get("locationX",.5),o=e.get("locationY",.5),m=r+n*u,h=a+(l-a)*o;t.setAll({x:T(m)*h,y:w(m)*h})}}}};U.className="PieSeries";U.classNames=L.classNames.concat([U.className]);var V=class extends q{constructor(){super(...arguments),this._projectionDirty=!1,this._tlx=0,this._tly=0,this._trx=0,this._try=0,this._blx=0,this._bly=0,this._brx=0,this._bry=0,this._cprx=0,this._cplx=0,this._cpry=0,this._cply=0}_afterNew(){super._afterNew(),this.set("draw",e=>{let t=this.width(),i=this.height(),s=Math.min(t,i)/2,a=C(this.get("cornerRadiusTL",0),s),l=C(this.get("cornerRadiusTR",0),s),r=C(this.get("cornerRadiusBR",0),s),n=C(this.get("cornerRadiusBL",0),s),u=this._trx,o=this._try,m=this._tlx,h=this._tly,p=this._brx,g=this._bry,c=this._blx,d=this._bly;o==h&&(o=o-.01),g==d&&(g=g-.01);let y=et({x:m,y:h},{x:u,y:o}),x=et({x:u,y:o},{x:p,y:g}),b=et({x:p,y:g},{x:c,y:d}),_=et({x:c,y:d},{x:m,y:h});this.get("orientation")=="horizontal"?(a=Math.min(a,Math.abs(h-o)/2),l=Math.min(l,Math.abs(h-o)/2),r=Math.min(r,Math.abs(d-g)/2),n=Math.min(n,Math.abs(d-g)/2)):(a=Math.min(a,Math.abs(m-u)/2),l=Math.min(l,Math.abs(m-u)/2),r=Math.min(r,Math.abs(c-p)/2),n=Math.min(n,Math.abs(c-p)/2));let A=m-a*v((y-_)/2)*T(_),P=h-a*v((y-_)/2)*w(_),F=m-a*v((_-y)/2)*T(y),Z=h-a*v((_-y)/2)*w(y),R=u-l*v((x-y)/2)*T(y),nt=o-l*v((x-y)/2)*w(y),B=u-l*v((y-x)/2)*T(x),O=o-l*v((y-x)/2)*w(x),J=p-r*v((b-x)/2)*T(x),j=g-r*v((b-x)/2)*w(x),Q=p-r*v((x-b)/2)*T(b),I=g-r*v((x-b)/2)*w(b),pt=c-n*v((_-b)/2)*T(b),st=d-n*v((_-b)/2)*w(b),ot=c-n*v((b-_)/2)*T(_),Tt=d-n*v((b-_)/2)*w(_);e.moveTo(F,Z),e.lineTo(R,nt),e.arcTo(u,o,B,O,l),e.quadraticCurveTo(this._cprx,this._cpry,J,j),e.arcTo(p,g,Q,I,r),e.lineTo(pt,st),e.arcTo(c,d,ot,Tt,n),e.quadraticCurveTo(this._cplx,this._cply,A,P),e.arcTo(m,h,F,Z,a)})}getPoint(e,t){let i=this.width(),s=this.height(),a=this.get("topWidth",0),l=this.get("bottomWidth",0);if(this.get("orientation")=="vertical"){let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*t,h=n+(u-n)*t;return{x:m+(h-m)*e,y:s*t}}else{let r=-a/2,n=a/2,u=l/2,o=-l/2,m=r+(o-r)*e,h=n+(u-n)*e;return{x:i*e,y:m+(h-m)*t}}}_changed(){if(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("expandDistance")||this.isDirty("orientation")||this.isDirty("width")||this.isDirty("height")||this.isDirty("cornerRadiusTL")||this.isDirty("cornerRadiusTR")||this.isDirty("cornerRadiusBR")||this.isDirty("cornerRadiusBL")){let e=this.width(),t=this.height(),i=this.get("topWidth",0),s=this.get("bottomWidth",0);this._clear=!0;let a=this.get("expandDistance",0);this.get("orientation")=="vertical"?(this._tlx=-i/2,this._tly=0,this._trx=i/2,this._try=0,this._brx=s/2,this._bry=t,this._blx=-s/2,this._bly=t,this._cprx=this._trx+(this._brx-this._trx)/2+a*t,this._cpry=this._try+.5*t,this._cplx=this._tlx+(this._blx-this._tlx)/2-a*t,this._cply=this._tly+.5*t):(this._tly=i/2,this._tlx=0,this._try=-i/2,this._trx=0,this._bry=-s/2,this._brx=e,this._bly=s/2,this._blx=e,this._cpry=this._try+(this._bry-this._try)/2-a*e,this._cprx=this._trx+.5*e,this._cply=this._tly+(this._bly-this._tly)/2+a*e,this._cplx=this._tlx+.5*e)}super._changed()}};V.className="FunnelSlice";V.classNames=q.classNames.concat([V.className]);var H=class extends L{constructor(){super(...arguments),this._tag="funnel",this.links=this.addDisposer(this._makeLinks()),this._total=0,this._count=0,this._nextCoord=0,this._opposite=!1}_makeSlices(){return new M(W.new({}),()=>V._new(this._root,{themeTags:N(this.slices.template.get("themeTags",[]),[this._tag,"series","slice",this.get("orientation")])},[this.slices.template]))}_makeLabels(){return new M(W.new({}),()=>ft._new(this._root,{themeTags:N(this.labels.template.get("themeTags",[]),[this._tag,"series","label",this.get("orientation")])},[this.labels.template]))}_makeTicks(){return new M(W.new({}),()=>lt._new(this._root,{themeTags:N(this.ticks.template.get("themeTags",[]),[this._tag,"series","tick",this.get("orientation")])},[this.ticks.template]))}_makeLinks(){return new M(W.new({}),()=>V._new(this._root,{themeTags:N(this.links.template.get("themeTags",[]),[this._tag,"series","link",this.get("orientation")])},[this.links.template]))}makeLink(e){let t=this.slicesContainer.children.push(this.links.make());return t._setDataItem(e),e.set("link",t),this.links.push(t),t}_afterNew(){super._afterNew();let e=this.slicesContainer;e._setCAll({isMeasured:!0,position:"relative",width:tt(100),height:tt(100)}),e.onPrivate("width",()=>{this.markDirtySize()}),e.onPrivate("height",()=>{this.markDirtySize()}),this.get("orientation")=="vertical"?this._setC("layout",this._root.horizontalLayout):this._setC("layout",this._root.verticalLayout)}processDataItem(e){super.processDataItem(e);let t=this.makeSlice(e);t._setDataItem(e),e.set("slice",t),this.makeLink(e);let i=this.makeLabel(e);i.on("x",()=>{this._updateTick(e)}),i.on("y",()=>{this._updateTick(e)}),this.makeTick(e),t.events.on("positionchanged",()=>{i.markDirty()}),t.events.on("boundschanged",()=>{let s=t.dataItem;s&&this._updateTick(s)})}_updateChildren(){this._opposite=!1,this.children.indexOf(this.labelsContainer)==0&&(this._opposite=!0);let e=0,t=0;if(k(this.dataItems,i=>{let s=i.get("value");Y(s)&&(t++,s>0?e+=Math.abs(i.get("valueWorking",s)/s):this.get("ignoreZeroValues",!1)||i.isHidden()?t--:e+=1)}),this._total=1/t*e,this._count=t,this.isDirty("alignLabels")&&this._fixLayout(),this._total>0&&(this._valuesDirty||this._sizeDirty||this.isDirty("bottomRatio")||this.isDirty("startLocation")||this.isDirty("endLocation"))){let i=this.slicesContainer,s;this.get("orientation")=="vertical"?s=i.innerHeight():s=i.innerWidth(),this._nextCoord=this.get("startLocation",0)*s,this.markDirtyBounds();let a=0;k(this._dataItems,l=>{this.updateLegendValue(l),l.set("index",a),a++;let r=l.get("slice"),n=l.get("tick"),u=l.get("label"),o=l.get("link"),m=l.get("fill"),h=l.get("fillPattern");r._setDefault("fill",m),r._setDefault("stroke",m),r._setDefault("fillPattern",h),o._setDefault("fill",m),o._setDefault("stroke",m);let p=l.get("value");Y(p)&&(p==0&&this.get("ignoreZeroValues")?(r.setPrivate("visible",!1),n.setPrivate("visible",!1),u.setPrivate("visible",!1)):(r.setPrivate("visible",!0),n.setPrivate("visible",!0),u.setPrivate("visible",!0),this.decorateSlice(l),this.isLast(l)?o.setPrivate("visible",!1):l.isHidden()||o.setPrivate("visible",!0)))})}super._updateChildren()}_fixLayout(){let e=this.get("orientation"),t=this.labelsContainer,i=this.labels.template;this.get("alignLabels")?(t._setC("position","relative"),t._setCAll({isMeasured:!0}),e=="vertical"?(this._setC("layout",this._root.horizontalLayout),i._setCAll({centerX:D,x:D})):(this._setC("layout",this._root.verticalLayout),i._setCAll({centerX:0,x:0}))):(t._setCAll({isMeasured:!1,position:"absolute"}),e=="vertical"?(t._setCAll({x:f}),i._setCAll({centerX:f,x:0})):(t._setCAll({y:f}),i._setCAll({centerX:f,y:0}))),this.markDirtySize()}getNextValue(e){let t=e.get("index"),i=e.get("valueWorking",0);if(t<this.dataItems.length-1){let s=this.dataItems[t+1];if(i=s.get("valueWorking",0),s.isHidden()||s.get("value")==0&&this.get("ignoreZeroValues"))return this.getNextValue(s)}return i}isLast(e){let t=e.get("index");if(t==this.dataItems.length-1)return!0;for(let i=t+1;i<this.dataItems.length;i++)if(!this.dataItems[i].isHidden())return!1;return!0}decorateSlice(e){let t=this.get("orientation"),i=e.get("slice"),s=e.get("label"),a=e.get("link"),l=this.slicesContainer,r=l.innerWidth(),n=l.innerHeight(),u=r;t=="horizontal"&&(u=n);let o=this.getNextValue(e),m=e.get("value",0),h=Math.abs(e.get("valueWorking",m)),p=this.get("bottomRatio",0),g=this.getPrivate("valueHigh",0),c=1;m!=0?c=h/Math.abs(m):e.isHidden()&&(c=1e-6),this._nextCoord==1/0&&(this._nextCoord=0);let d=h/g*u,y=(h-(h-o)*p)/g*u;i._setCAll({topWidth:d,bottomWidth:y,orientation:t}),a._setCAll({topWidth:y,bottomWidth:(h-(h-o))/g*u,orientation:t});let x=this.get("startLocation",0),b=this.get("endLocation",1);if(t=="vertical"){let _=a.height()*c;n=n*(b-x)+_,i._setC("y",this._nextCoord);let A=Math.min(1e5,Math.max(0,n/this._count*c/this._total-_));i._setCAll({height:A,x:r/2});let P=this._nextCoord+A/2;s._setC("y",P),this._nextCoord+=A+_,a._setCAll({y:this._nextCoord-_,x:r/2})}else{let _=a.width()*c;r=r*(b-x)+_,i._setC("x",this._nextCoord);let A=Math.min(1e5,Math.max(0,r/this._count*c/this._total-_));i._setCAll({width:A,y:n/2});let P=this._nextCoord+A/2;s._setC("x",P),this._nextCoord+=A+_,a._setCAll({x:this._nextCoord-_,y:n/2})}}hideDataItem(e,t){let i=Object.create(null,{hideDataItem:{get:()=>super.hideDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").hide(t),i.hideDataItem.call(this,e,t)})}showDataItem(e,t){let i=Object.create(null,{showDataItem:{get:()=>super.showDataItem}});return z(this,void 0,void 0,function*(){return e.get("link").show(t),i.showDataItem.call(this,e,t)})}_updateTick(e){if(this.get("alignLabels")){let t=e.get("tick"),i=e.get("label"),s=e.get("slice");if(t&&s&&i){let a=this.labelsContainer,l=this.slicesContainer,r=t.get("location",.5),n=a.width(),u=a.height(),o=a.get("paddingLeft",0),m=a.get("paddingRight",0),h=a.get("paddingTop",0),p=a.get("paddingBottom",0),g={x:0,y:0},c={x:0,y:0},d={x:0,y:0};this._opposite&&(r=1-r),this.get("orientation")=="vertical"?(g=s.getPoint(r,.5),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.x=n,c.y=i.y(),d.x=n-o,d.y=c.y):(c.x=l.x()+l.width(),c.y=i.y(),d.x=c.x+n-i.width()-m,d.y=c.y)):(g=s.getPoint(.5,r),g.x+=s.x()+l.x(),g.y+=s.y()+l.y(),this._opposite?(c.y=u,c.x=i.x(),d.y=u-h,d.x=c.x):(c.y=l.y()+l.height(),c.x=i.x(),d.y=c.y+u-i.height()-p,d.x=c.x)),t.set("points",[g,c,d])}}}disposeDataItem(e){super.disposeDataItem(e);let t=e.get("link");t&&(this.links.removeValue(t),t.dispose())}_positionBullet(e){let t=e.get("sprite");if(t){let s=t.dataItem.get("slice");if(s){let a=s.getPoint(e.get("locationX",.5),e.get("locationY",.5));t.setAll({x:s.x()+a.x,y:s.y()+a.y})}}}};H.className="FunnelSeries";H.classNames=L.classNames.concat([H.className]);var X=class extends H{constructor(){super(...arguments),this._tag="pyramid"}_prepareChildren(){super._prepareChildren(),this._nextSize=void 0,(this.isDirty("topWidth")||this.isDirty("bottomWidth")||this.isDirty("valueIs"))&&(this._valuesDirty=!0)}decorateSlice(e){let t=this.get("orientation"),i=this.slicesContainer,s=e.get("slice"),a=e.get("label"),l=e.get("link"),r=this.get("valueIs","area"),n=this.getPrivate("valueAbsoluteSum",0);if(n==0)return;let u=this.get("startLocation",0),o=this.get("endLocation",1),m=this.get("topWidth",0),h=this.get("bottomWidth",D),p=Math.abs(e.get("valueWorking",0)),g=e.get("value",0),c,d,y=i.innerHeight(),x=i.innerWidth(),b=l.width(),_=l.height();t=="horizontal"&&([x,y]=[y,x],[b,_]=[_,b]);let A=x/2,P=1;g!=0?P=p/Math.abs(g):e.isHidden()&&(P=1e-6),_*=P,y=y*(o-u)-_*(this._count*this._total-1);let F=C(m,x);Y(this._nextSize)||(this._nextSize=F);let Z=C(h,x),R=this._nextSize,nt=Math.atan2(y,F-Z),B=Math.tan(Math.PI/2-nt);if(B==0&&(B=1e-8),r=="area"){let st=(F+Z)/2*y*p/n,ot=Math.abs(R*R-2*st*B);c=(R-Math.sqrt(ot))/B,c>0?d=(2*st-c*R)/c:d=R}else c=y*p/n,d=R-c*B;let O=this._nextCoord+c/2,J=A,j=this._nextCoord,Q=A,I=j+c;t=="vertical"?(a.set("y",O),a.get("opacity")>0&&this._rLabels.push({label:a,y:O}),s.set("height",c)):(a.set("x",O),a.get("opacity")>0&&this._hLabels.push({label:a,y:O}),[J,j]=[j,J],[Q,I]=[I,Q],s.set("width",c)),s.setAll({orientation:t,bottomWidth:d,topWidth:R,x:J,y:j}),l.setAll({orientation:t,x:Q,y:I,topWidth:d,bottomWidth:d}),this._nextSize=d,this._nextCoord+=c+_}};X.className="PyramidSeries";X.classNames=H.classNames.concat([X.className]);var K=class extends X{constructor(){super(...arguments),this._tag="pictorial",this.seriesMask=q.new(this._root,{position:"absolute",x:f,y:f,centerX:f,centerY:f}),this.seriesGraphics=this.slicesContainer.children.push(q.new(this._root,{themeTags:["pictorial","background"],position:"absolute",x:f,y:f,centerX:f,centerY:f})._markC("themeTags","position","x","y","centerX","centerY"))}_afterNew(){super._afterNew(),this._setC("topWidth",D),this._setC("bottomWidth",D),this._setC("valueIs","height"),this.slicesContainer._setC("mask",this.seriesMask)}_updateScale(){let e=this.slicesContainer,t=e.innerWidth(),i=e.innerHeight(),s=this.seriesMask,a=this.seriesGraphics,l=s.get("scale",1),r=s.localBounds(),n=r.right-r.left,u=r.bottom-r.top;this.get("orientation")=="horizontal"?l=t/n:l=i/u,l!=1/0&&!Number.isNaN(l)&&(s.set("scale",l),s.set("x",t/2),s.set("y",i/2),a._setC("scale",l),a._setC("x",t/2),a._setC("y",i/2))}_prepareChildren(){if(super._prepareChildren(),this.isDirty("svgPath")){let e=this.get("svgPath");this.seriesMask.set("svgPath",e),this.seriesGraphics._setC("svgPath",e)}this._updateScale()}};K.className="PictorialStackedSeries";K.classNames=X.classNames.concat([K.className]);var E=class extends ${_afterNew(){super._afterNew(),this.seriesContainer.setAll({isMeasured:!0,layout:this._root.horizontalLayout})}};E.className="SlicedChart";E.classNames=$.classNames.concat([E.className]);export{it as DefaultTheme,H as FunnelSeries,V as FunnelSlice,$ as PercentChart,L as PercentSeries,K as PictorialStackedSeries,G as PieChart,U as PieSeries,X as PyramidSeries,E as SlicedChart};
|
package/dist/cdn/4JR57ZIQ.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as P}from"./TMTFZSJS.js";import{a as K,e as L,f as E,g as C,h as A,i as ue,j as g,k as me}from"./IM6IDWYR.js";import{a as Z}from"./FH3WFF5O.js";import{a as J}from"./XQRLK3FO.js";import{a as y}from"./6J3KSMFG.js";import c from"./SKV3CQSZ.js";import"./WJQUE4DR.js";import"./NN4HL3RN.js";import{a as he}from"./SAI7K4OO.js";import"./L5IRXOCJ.js";import b from"./E3RBRDUV.js";import"./FY7P5YLX.js";import"./IRDDLVT2.js";import a from"./TJHVEY7T.js";import"./LXME6MU5.js";import{P as B,Q as G,R as ae,U as V,X as U,_ as oe,a as ne,b as m,x as q}from"./IW3P4TGM.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:pe,when:Me,whenOnce:Ue},{getZonedDateTimeParts:O,createZonedDate:se,formatCalendarDate:Q},Se,N,Pe,{createTrackingTarget:Ze,runTracked:fe,signal:Le},,{a:ge},{e:le,f:ce,g:de}])=>{function De(s,e){return(s%e+e)%e}var ee=class{#t;#d;#h=Ze(()=>{this.#i()});constructor(e){this.#d=e;let t;fe(this.#h,()=>{t=e()}),this.#t=Le(t)}#i(){let e=this.#t.value;fe(this.#h,()=>{this.#t.value=this.#d(e)})}mutate(e){this.#t.value=e}get value(){return this.#t.value}};function W(s){return new ee(s)}var F=Math.PI,p=Math.sin,k=Math.cos,Ee=Math.asin,Ae=Math.acos,S=F/180,Te=1e3*60*60*24,ke=2440588,Ce=2451545;function Ne(s){return s.valueOf()/Te-.5+ke}function I(s){return new Date((s+.5-ke)*Te)}function Ie(s){return Ne(s)-Ce}var _e=S*23.4397;function He(s,e){return Ee(p(e)*k(_e)+k(e)*p(_e)*p(s))}function Ye(s){return S*(357.5291+.98560028*s)}function Fe(s){return S*(1.9148*p(s)+.02*p(2*s)+3e-4*p(3*s))}function Re(s,e){var t=S*102.9372;return s+e+t+F}var D={};D.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var X=[[-.83,"sunrise","sunset"]],$e=9e-4;function je(s,e){return Math.round(s-$e-e/(2*F))}function be(s,e,t){return $e+(s+e)/(2*F)+t}function ve(s,e,t){return Ce+s+.0053*p(e)-.0069*p(2*t)}function qe(s,e,t){return Ae((p(s)-p(e)*p(t))/(k(e)*k(t)))}D.getTimes=function(s,e,t){var i=S*-t,r=S*e,n=Ie(s),a=je(n,i),l=be(0,i,a),o=Ye(l),d=Fe(o),c=Re(o,d),h=He(c,0),u=ve(l,o,c);function v(j){var M=qe(j,r,h),ze=be(M,i,a);return ve(ze,o,c)}function x(j){var M=(p(j)-p(r)*p(h))/(k(r)*k(h));return M<-1?D.PolarException.MIDNIGHT_SUN:M>1?D.PolarException.POLAR_NIGHT:D.PolarException.NORMAL}var _={solarNoon:I(u),nadir:I(u-.5),polarException:D.PolarException.NORMAL},b,f,z,R,re;for(b=0,f=X.length;b<f;b+=1)z=X[b],R=v(z[0]*S),re=u-(R-u),_[z[1]]=I(re),_[z[2]]=I(R);return _.polarException=x(X[0][0]*S),_};var Be={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},te=["spring","summer","fall","winter"];function $(s,e,t){let i=Ke(e,t),{dayOfMonth:r,month:n}=Be[i],a=new Date(0);return a.setUTCFullYear(s,n,r),a}function Ge(s,e,t){return $(s,e,t).toISOString().slice(0,10)}function Ve(s,e){let t=Je(s);return e==="northern"?t:Oe(t)}function Je(s){let e=s.getTime(),t=s.getUTCFullYear(),i=$(t,"spring","northern").getTime(),r=$(t,"summer","northern").getTime(),n=$(t,"fall","northern").getTime(),a=$(t,"winter","northern").getTime();return e>=i&&e<r?"spring":e>=r&&e<n?"summer":e>=n&&e<a?"fall":"winter"}function Ke(s,e){return e==="northern"?s:Oe(s)}function we(s){return s>=0?"northern":"southern"}function Oe(s){let e=te.indexOf(s);return te[(e+2)%4]}var Qe=1440,We=864e5;function T({hour:s,minute:e}){return s*60+e}function Xe(s){return{year:s.getUTCFullYear(),month:s.getUTCMonth()+1,day:s.getUTCDate()}}function et(s,e,t){let i=O(s,t);if(!i)return s;let r=new Date(s.getTime()+e),n=O(r,t);return!n||n.year===i.year&&n.month===i.month&&n.day===i.day?r:se(i,T(n),t)??r}function tt(s,e){let t=O(s,e);if(!t)return s;let i=t.month%12+1,r=t.year+(i===1?1:0),n=new Date(Date.UTC(r,i,0)).getUTCDate();return se({year:r,month:i,day:Math.min(t.day,n)},T(t),e)??s}function it(s,e,t,i){let r=D.getTimes(s,e,t),n=r.sunrise,a=r.sunset,l=E(s,i),o=E(n,i),d=E(a,i);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:n,sunset:a}}var st=100,rt=1e3,w=12e5,H=72e5;function xe(s,e){return De(s+e,24)}function nt({mode:s,lighting:e,getPlaySpeed:t,getNextDate:i,onProgress:r,beforeProgress:n}){let a=-1;function l(o=Date.now()){let d=e.date,c=Date.now()-(o??0);if(s==="day"){o=Date.now();let h=t()/st*c;if(h>0){let u=i?.(d,s,h);if(!u){u=new Date(d.getTime()+h);let x=e.displayUTCOffset??0,_=xe(u.getUTCHours(),x),b=xe(d.getUTCHours(),x);_<b&&(u=new Date(d.getTime()+h-We))}let v=e.clone();n?.(),e.date=u,r?.(v,e)}}else if(c>rt){o=Date.now();let h=i?.(d,s,0)??new Date(d.getTime());if(!i){let v=(d.getUTCMonth()+1)%12;h.setUTCMonth(v)}let u=e.clone();n?.(),e.date=h,r?.(u,e)}a=requestAnimationFrame(()=>l(o))}return l(),Z(()=>cancelAnimationFrame(a))}var Y=w/4;function at(s,e,t,i){let{day:r,night:n=r,twilight:a=r}=i,l=r*Y,o=n*Y,d=a*Y;if(s==null||e==null||Number.isNaN(s.getTime())&&Number.isNaN(e.getTime()))return l;let c=t.getTime(),h=s.getTime(),u=e.getTime(),v=h-H/2,x=h+H/2,_=u-H/3*2,b=u+H/3,f=l;return c>=v&&c<=x?c-v<=w?f=o-(c-v)/w*(o-d):x-c<=w/2?f=l-(x-c)/w*2*(l-d):f=d:c>=_&&c<=b?c-_<=w/2?f=l-(c-_)/w*2*(l-d):b-c<=w?f=o-(b-c)/w*(o-d):f=d:(c<h||c>u)&&(f=o),f}var ot=ne`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-surface-3);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-surface-3)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-space-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-space-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-space-md);display:grid;gap:var(--calcite-space-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.time-label{align-items:center;display:flex;gap:var(--calcite-space-sm);+.slider{margin-block:var(--calcite-space-sm)}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`,lt={day:1,night:6,twilight:2/3},ie=class extends ae{constructor(){super(...arguments),this.messages=he({blocking:!0}),this.#d="none",this.#h=null,this.#o=!1,this.#e=!1,this.#p=B(),this.#T=B(),this.#$=200,this.#O=200,this.#f=!1,this.#m={},this.#l=W(e=>{let t=this._lighting,i=g(t)?t.displayUTCOffset:void 0,r=this.#_(t)?this.#n(t.date):void 0;return this.#e?e:r??i??e}),this.#r=W(e=>{let t=this._lighting;if(!g(t))return e;let i=t.date;if(this.#e)return e;if(L(i)){let{minutesSinceMidnight:r}=this.#y(i);return r}return e}),this.#s=W(e=>{let t=this._lighting,i=this.#_(t)?this.#y(t.date).localDate:ue(this._view,this.utcOffset);return this.#e?e:i??e}),this.#c=!1,this.#k="offset",this.view=ge(this),this.autoDestroyDisabled=!1,this.dateOrSeason="date",this.headingLevel=2,this.hideDatePicker=!1,this.hideHeader=!1,this.hidePlayButtons=!1,this.hideShadowsToggle=!1,this.hideSunLightingToggle=!1,this.hideTimezone=!1,this.icon="brightness",this.playSpeedMultiplier=1,this.timeSliderSteps=5,this.arcgisReady=q(),this.arcgisUserDateTimeChange=q()}static{this.properties={_playingState:16,_sunlightingDisabled:16,_directShadowsDisabled:16,localDateAsString:32,view:0,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,referenceElement:1,timeSliderSteps:9,timeZoneMode:1,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=ot}get _view(){return this.view?.type==="3d"?this.view:void 0}#t;#d;#h;#i;#o;#e;#p;#T;#$;#O;#f;#m;get#U(){return this.#T?.value?.startTime}#l;#r;#s;get _lighting(){return this._view?.environment?.lighting}#c;#k;#g;get _playingState(){return this.#d}set _playingState(e){this.#d=e,this.#g?.remove(),e==="none"?this.#t?.remove():(this.#M(e),this.#w())}get _sunlightingDisabled(){return!g(this._lighting)}set _sunlightingDisabled(e){this.#u("sunlightingDisabled",e);let t=this._view?.environment;if(t==null)return;let i=t.lighting,r=this.#h;this.#h=i;let n={directShadowsEnabled:i.directShadowsEnabled,glow:i.glow,globalIllumination:i.globalIllumination};g(i)&&(n.cameraTrackingEnabled=i.cameraTrackingEnabled);let a=e?"virtual":"sun",l;r?.type===a?l=r:l=e?new Pe:this.#Z(),l.set(n),t.lighting=l,e||(this.#a(),this.#p.value&&(this.#p.value.open=!1))}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#u("directShadowsDisabled",e),this._lighting&&(this._lighting.directShadowsEnabled=!e)}get localDateAsString(){return this.#s.value??void 0}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,t=we(e);return Ve(this.localDate,t)}set currentSeason(e){this.#a();let t=this._view?.camera?.position?.latitude??0,i=we(t);this.localDate=Ge(this.localDate.getUTCFullYear(),e,i),this.#w()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get timeZoneMode(){return this.#k}set timeZoneMode(e){this.#c||(this.#k=e)}get utcOffset(){return this.#l.value}set utcOffset(e){if(this.timeZoneMode==="region"){this.#D();return}this.#e=!0,this.#l.mutate(e),!this.#u("utcOffset",e)&&this.#b(!1)}get timeSliderPosition(){return this.#r.value}set timeSliderPosition(e){this.#e=!0,this.#r.mutate(De(e??0,Qe)),!this.#u("timeSliderPosition",e)&&this.#b(!0)}get localDate(){return this.#s.value!=null?new Date(this.#s.value):new Date}set localDate(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(this.#e=!0,this.#s.mutate(e),this.#u("localDate",e))return;this.#b(!0);return}let t=new Date(e);if(L(t)){this.#e=!0,t.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate());let i=t.toISOString().slice(0,10);if(this.#s.mutate(i),this.#u("localDate",i))return;this.#b(!0)}}get yearPlaying(){return this._playingState==="year"}set yearPlaying(e){this._playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}async load(){this.manager.onLifecycle(()=>[pe(()=>{let e=this._view?.camera?.position;return e?P(e):void 0},(e,t)=>{this.#Y(e,t)},{sync:!0,initial:!0}),pe(()=>{let e=this._lighting;return[this._view?.timeZone,e,g(e)?e.date:void 0]},(e,t)=>{this._playingState==="day"&&t&&e[0]===t[0]&&e[1]===t[1]||this.#D()},{sync:!0,initial:!0}),Me(()=>!g(this._lighting),()=>{this.#a()}),Se.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#t?.remove(),this.#i?.remove(),this.#g?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#c&&this.timeZoneMode==="offset"&&g(this._lighting)&&e.has("utcOffset")&&!e.has("localDate")&&!e.has("timeSliderPosition")){let t=this.utcOffset??0,{minutesSinceMidnight:i,localDate:r}=C(this._lighting.date,t);this.#r.mutate(i),this.#s.mutate(r)}}async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await le(Ue(()=>this._view?.ready,{signal:e.signal}).then(()=>{let t=this._lighting,i=this._view?.camera?.position;if(this.timeZoneMode==="offset"&&this.#m.utcOffset==null&&g(t)&&t.displayUTCOffset==null&&i){let n=P(i);this.#v(n,t)}this.#c=!0,this.#_(t)&&this.#D(t),this.#P(),g(this._lighting)||(this.timeZoneMode==="region"?this.#F():this.#R());let r=this._playingState;r!=="none"&&this.#t==null&&this.#M(r)}))}#u(e,t){return this.#c||this.#f?!1:(this.#m[e]=t,!0)}#P(){let{utcOffset:e,timeSliderPosition:t,localDate:i,directShadowsDisabled:r,sunlightingDisabled:n}=this.#m;if(this.#f=!0,this.timeZoneMode==="offset"&&e!=null)if(t==null&&i==null){let a=this._lighting;g(a)?(a.displayUTCOffset=e,this.#v(e,a)):this.#l.mutate(e)}else this.utcOffset=e;t!=null&&(this.timeSliderPosition=t),i&&(this.localDate=i),r!=null&&(this._directShadowsDisabled=r),n!=null&&(this._sunlightingDisabled=n),this.#m={},this.#f=!1,this.#i||(this.#e=!1)}#_(e){return this.timeZoneMode==="region"&&g(e)&&L(e.date)}#Z(){return this.timeZoneMode==="region"?this.#L():this.#E()}#L(){let e=new Date,t=this.#C(e,0)??e;return new N({date:t,displayUTCOffset:this.#n(t)})}#C(e,t){let i=this.#x,r=O(e,i);if(!r)return null;let n=this.#s.value==null?r:Xe(this.localDate),a=this.timeSliderPosition??t??T(r);return se(n,a,i)}#E(){let e=A(this.localDateAsString??this.localDate,this.timeSliderPosition??0,this.utcOffset??0);return new N({date:e,displayUTCOffset:this.utcOffset})}#b(e){if(this.#e=!0,this.requestUpdate(),this.#o||=e,this.#i)return;let t=ce(()=>{let i=this._lighting;g(i)&&(this.timeZoneMode==="region"?this.#A(i):this.#N(i)),this.#i?.remove(),this.#D()},{timeout:this.#$});this.#i=Z(()=>{de(t),this.#i=void 0,this.#o=!1,this.#e=!1})}#A(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let t=this.#C(e.date,0);t&&(e.date=t,e.displayUTCOffset=this.#n(t))}#N(e){let t=this.utcOffset??0;if(!this.#o){e.displayUTCOffset=t;return}e.date=A(this.localDate,this.timeSliderPosition??0,t),e.displayUTCOffset=t}#I(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let t=this.#C(e.date);t&&(e.date=t,e.displayUTCOffset=this.#n(t)),this.#i?.remove()}#H(e){let t=this.utcOffset??e.displayUTCOffset??0;if(!this.#o){e.displayUTCOffset=t,this.#i?.remove();return}let i=C(e.date,t),r=this.localDateAsString??i.localDate,n=this.timeSliderPosition??i.minutesSinceMidnight;e.date=A(r,n,t),e.displayUTCOffset=t,this.#i?.remove()}#Y(e,t){let i=this._lighting;if(!(this.timeZoneMode==="region"||!this.#c||!g(i)||!i.cameraTrackingEnabled||e==null)){if(t==null&&i.displayUTCOffset==null){this.#v(e,i);return}i.displayUTCOffset!=null&&(i.displayUTCOffset=e),this.#v(e,i)}}#v(e,t){t.displayUTCOffset=e,this.#z(e,t.date)}#F(){let e=new N,t=this.#S(e.date);t&&(this.timeSliderPosition==null&&this.#r.mutate(T(t)),this.localDateAsString==null&&this.#s.mutate(Q(t)),this.#l.mutate(this.#n(e.date)),this.requestUpdate())}#R(){let e=this._view?.camera?.position,t=this.utcOffset??(e?P(e):0),i=new N({displayUTCOffset:t});this.#z(t,i.date,{fillMissingOnly:!0})}#z(e,t,{fillMissingOnly:i=!1}={}){let{minutesSinceMidnight:r,localDate:n}=C(t,e);(!i||this.utcOffset==null)&&this.#l.mutate(e),(!i||this.timeSliderPosition==null)&&this.#r.mutate(r),(!i||this.localDateAsString==null)&&this.#s.mutate(n),this.requestUpdate()}#w(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}#a(){this._playingState="none"}#j(e){if(this.#g)return;let t=setTimeout(()=>{let i=e.date,{minutesSinceMidnight:r}=this.#y(i);this.#r.mutate(r),this.#g?.remove()},this.#O);this.#g=Z(()=>{clearTimeout(t),this.#g=void 0;let i=this._lighting;if(g(i)){let r=i.date,{minutesSinceMidnight:n}=this.#y(r);this.#r.mutate(n)}})}#M(e){this.#t?.remove();let t=this._view;if(t==null||this._sunlightingDisabled)return;let i=t.environment.lighting;if(!g(i))return;this.timeZoneMode==="region"?this.#I(i):this.#H(i);let r=0;this.#t=nt({mode:e,lighting:i,getNextDate:this.timeZoneMode==="region"?(n,a,l)=>a==="day"?et(n,l,this.#x):tt(n,this.#x):void 0,beforeProgress:()=>{r=this.#U??0},onProgress:(n,a)=>{this.timeZoneMode==="region"&&(a.displayUTCOffset=this.#n(a.date)),this.#r.mutate(r),this.#j(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&g(a)){let l=n.camera.position.latitude??0,o=n.camera.position.longitude??0,d=this.timeZoneMode==="region"?this.#n(a.date):a.displayUTCOffset??0,{sunrise:c,sunset:h}=it(a.date,l,o,d);return at(c,h,a.date,lt)*this.playSpeedMultiplier}else return Y*this.playSpeedMultiplier}})}get#x(){return me(this._view?.timeZone??K)}#n(e){let t=this.#S(e);if(!t)throw new RangeError("Invalid date or time zone");return t.offsetMinutes/60}#y(e){let t=this.timeZoneMode==="region"?this.#S(e):null;return t?{localDate:Q(t),minutesSinceMidnight:T(t)}:C(e,this.utcOffset??0)}#S(e){return O(e,this.#x)}#D(e=this._lighting){if(!this.#c||!this.#_(e)||this.#e)return;let t=this.#S(e.date);if(!t)return;let i=this.#n(e.date);e.displayUTCOffset=i,this.#l.mutate(i),this.#s.mutate(Q(t)),this.#r.mutate(T(t)),this.requestUpdate()}#q({scale:e,disabled:t}){let{messages:i}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${i.date}${ct({disabled:t,scale:e,date:this.localDateAsString,onDateChange:r=>{let n=r.currentTarget.value,a=Array.isArray(n)?n[0]:n;this.#a(),this.localDate=a,this.#w()}})}</calcite-label>${y({hidden:this.hidePlayButtons,children:ye({playing:this.yearPlaying,disabled:t,label:i.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#B({scale:e,disabled:t}){let{messages:i}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${i.season}${dt({scale:e,selectedSeason:this.currentSeason,disabled:t,messages:i,onSeasonChange:r=>{this.#a(),this.currentSeason=r.currentTarget.value}})}</calcite-label>`}render(){let{messages:e,dateOrSeason:t}=this,i=this._sunlightingDisabled,r="m";if(this._view?.type!=="3d")return J({class:"root",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,l=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return J({class:{root:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`${a?void 0:m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${r}>${this.timeZoneMode==="region"?m`<span class="time-label">${e.timeSliderLabel}${y({hidden:this.hideTimezone,children:m`<arcgis-time-zone-chip .disabled=${i} .timeZone=${this._view?.timeZone??K} .visualScale=${r} @click=${o=>o.stopPropagation()} @arcgisInternalTimeZoneChange=${o=>{this._view&&(this._view.timeZone=o.detail)}}></arcgis-time-zone-chip>`})}</span>`:e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition??0} .steps=${l} style=${V({gridArea:"slider"})} @arcgisTimeChange=${({currentTarget:o})=>{this.#a(),this.timeSliderPosition=o.startTime,this.#w()}} ${G(this.#T)}></arcgis-time-of-day-slider></calcite-label>${y({hidden:this.hidePlayButtons,children:ye({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this.#a():this._playingState="day"},scale:r})})}${this.timeZoneMode==="offset"?y({hidden:this.hideTimezone,children:m`<calcite-label .scale=${r} class="timezone-input-container">${e.timezone}<calcite-input-time-zone data-testid=daylight-time-zone-input mode=offset overlay-positioning=fixed .scale=${r} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this.#a()}} ${G(this.#p)}></calcite-input-time-zone></calcite-label><span></span>`}):void 0}${y({hidden:this.hideDatePicker,children:t==="date"?this.#q({scale:r,disabled:i}):this.#B({scale:r,disabled:i})})}</div>${y({hidden:this.hideSunLightingToggle,children:ht({scale:r,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${y({hidden:this.hideShadowsToggle,children:gt({scale:r,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function ye({disabled:s,playing:e,onClick:t,label:i,scale:r="m"}){return m`<calcite-button appearance=solid .scale=${r} .disabled=${s} .iconStart=${e?"pause-f":"play-f"} .label=${i} @click=${t} round title=${i??U} type=button></calcite-button>`}function ct({disabled:s,date:e,onDateChange:t,scale:i}){return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${s} overlay-positioning=fixed placement=bottom .value=${e} .scale=${i} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`}function dt({messages:s,disabled:e,scale:t,selectedSeason:i,onSeasonChange:r}){return m`<calcite-select .disabled=${e} .label=${s.season} .scale=${t} .value=${i} @calciteSelectChange=${n=>{r(n)}}>${te.map(n=>m`<calcite-option .selected=${i===n} .value=${n}>${s[n]}</calcite-option>`)}</calcite-select>`}function ht({messages:s,sunlightingEnabled:e,onSunLightingToggle:t,scale:i}){return m`<calcite-label layout=inline .scale=${i} title=${s?.tooltip??U}><calcite-checkbox .scale=${i} .checked=${e} @calciteCheckboxChange=${r=>t(r.target.checked)}></calcite-checkbox>${s?.label}</calcite-label>`}function gt({messages:s,shadowEnabled:e,onShadowCheckboxChange:t,scale:i}){return m`<calcite-label layout=inline .scale=${i} title=${s?.tooltip??U}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${r=>t(r.target.checked)}></calcite-checkbox>${s.label}</calcite-label>`}oe("arcgis-daylight",ie);return ie},"core/reactiveUtils","core/timeUtils","intl","views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","applications/Components/reactiveUtils",a,b,c)
|
package/dist/cdn/6BT6RP22.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./HU57LQOA.js";import{a as q}from"./SAI7K4OO.js";import{R as C,_,a as E,b as p,p as h,r as b,x}from"./IW3P4TGM.js";export default $arcgis.t(([T,{cutExecute:N},{lengthExecute:v},{distanceExecute:A},{projectIsLoaded:O,projectLoad:W,projectExecute:z},{proximityGetNearestCoordinate:H},j,M,Z,Q,S,I,J,B,{substitute:K},{b:G,e:$,g:R,h:V}])=>{var X=E`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,U=`utility-network-trace-locations-sketch-${Date.now()}`,P=class D extends C{constructor(){super(...arguments),this._messages=q({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new T,this.filterLayers=new T,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=x(),this.arcgisTraceLocationSelectStart=x(),this.arcgisError=x()}static{this.properties={_isSelectWaiting:16,beforeMapInteraction:0,afterMapInteraction:0,messageOverrides:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=X}static{this.sketchViewModelMap=new Map}static getSketchViewModel(e){if(!this.sketchViewModelMap.has(e)){let t=this.#a(e,U);t&&this.sketchViewModelMap.set(e,new J({view:e,layer:t}))}return this.sketchViewModelMap.get(e)??null}static#a(e,t){if(!e?.map)return null;let i=e.map.findLayerById(t);if(!i){let r=new Q({id:t,listMode:"hide",title:t});return G(e,r),r}return i}static removeSketchGraphicsLayer(e){if(e?.map){let t=e.map.findLayerById(U);t&&e.map.remove(t),this.sketchViewModelMap.delete(e)}}#t;get sketchViewModel(){return this.view?D.getSketchViewModel(this.view):null}async destroy(){try{this.#t&&this.sketchViewModel?.cancel(),this.#r()}finally{await this.manager.destroy()}}async load(){O()||await W()}willUpdate(e){e.has("filterLayers")&&this.#o()}#e(e,t){this.error=t,h(e,this,t),this.arcgisError.emit()}#s(e){let{traceLocations:t,view:i}=this;e.spatialProperties.flagGraphic&&i&&i.graphics.remove(e.spatialProperties.flagGraphic),t?.remove(e)}#o(){if(!this.sketchViewModel)return;let e=new T;this.filterLayers?.forEach(t=>{R(t)?t.sublayers.forEach(i=>{e.add(new B({layer:i,enabled:!0}))}):e.add(new B({layer:t,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:e}}#n(e,t){let i=e.clone(),r=i.spatialReference,o=t.spatialReference;if(!r||!o)return h("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let a=t;if(!r.equals(o)){let w=z(t,r);if(!w)return h("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;a=w}let c=H(i,a);if(c.isEmpty)return h("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let s=c.coordinate,n=s.x-.5,l=s.y-.5,f=s.x+.5,y=s.y+.5,k=new M({hasZ:!1,hasM:!0,paths:[[[n,l],[f,y]]],spatialReference:i.spatialReference}),d=N(i,k);if(d.length>0){let w=v(i,{unit:"feet"}),u;if(d.length===1&&d[0].paths.length>1){let g=d[0],m=i.paths[0][0],L=g.paths[0][0];L[0]===m[0]&&L[1]===m[1]?u=v(new M({hasZ:!1,hasM:!0,paths:[g.paths[0]],spatialReference:i.spatialReference}),{unit:"feet"}):u=v(new M({hasZ:!1,hasM:!0,paths:[g.paths[1]],spatialReference:i.spatialReference}),{unit:"feet"})}else if(d.length===1){let g=new j({x:i.paths[0][0][0],y:i.paths[0][0][1],spatialReference:i.spatialReference}),m=new j({x:i.paths[0][i.paths[0].length-1][0],y:i.paths[0][i.paths[0].length-1][1],spatialReference:i.spatialReference}),L=A(g,a),F=A(m,a);L<F?u=0:u=w}else{let g=i.paths[0][0],m=d[0].paths[0][0];m[0]===g[0]&&m[1]===g[1]?u=v(d[0],{unit:"feet"}):u=v(d[1],{unit:"feet"})}return u/w}return h("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let e=this.utilityNetwork?.dataElement?.domainNetworks;return e?e.flatMap(t=>t.edgeSources).map(t=>t.layerId).filter(Boolean):[]}async#l(){let{view:e,sketchViewModel:t}=this;if(!(e&&t)){h("error",this,"Cannot add trace location."),t||h("error",this,b("sketchViewModel")),e||h("error",this,b("view"));return}if(this.beforeMapInteraction){this._isSelectWaiting=!0;try{await this.beforeMapInteraction()}finally{this._isSelectWaiting=!1}}await this.#i(e,t)}async#i(e,t){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>t.cancel()}).defaultPrevented||(this.#t?.remove(),this.#t=t.on("create",i=>this.#h(i,e,t)),"acquireCursor"in e&&e.acquireCursor("crosshair"),t.snappingOptions.enabled=!0,t.create("point"))}#h(e,t,i){if(e.state==="complete"&&e.graphic){i.layer.remove(e.graphic),this.#p(e,t,i);return}e.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(e,t,i){let{utilityNetwork:r}=this,{graphic:o}=e;if(!r){h("error",this,b("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(o?.geometry?.type!=="point"){this.#e("warn",this._messages.errors.noHitResult),this.#i(t,i);return}let a=o.geometry,c=t.toScreen(a);if(!c){this.#e("warn",this._messages.errors.noHitResult),this.#i(t,i);return}let s=(await t.hitTest(c,{include:this.filterLayers})).results.filter(n=>n.type==="graphic"&&n?.layer&&n.graphic);if(!s.length){this.#e("info",this._messages.errors.noHitResult),this.#i(t,i);return}this.#r();try{await this.#d(s,a,t)?this.arcgisTraceLocationSelectEnd.emit():this.#i(t,i)}catch(n){let l=n instanceof Error?n.message:String(n);this.#e("error",l),this.arcgisTraceLocationSelectEnd.emit()}}#r(){let{view:e,sketchViewModel:t}=this;if(!e){h("error",this,b("view"));return}t&&(t.snappingOptions.enabled=!1),this.#t?.remove(),this.#t=void 0,"acquireCursor"in e&&e.acquireCursor("default")}async#d(e,t,i){if(!e.length)return this.#e("error",this._messages.errors.noHitResult),!1;let r=e[0].graphic;if(this.afterMapInteraction){let a=e.map(c=>{let s=c,n=s.graphic;return n.origin=s.layer,n.sourceLayer=s.layer,n});try{r=await this.afterMapInteraction(a)}catch{r=null}}if(!r)return!0;let o=await this.#g(r);if(!o)throw new Error(this._messages.errors.missingAttributes);return await this.#u(o,t,i)}async#g(e){let t=($(e.layer),e.layer),i=t.geometryType===null,r=t.fieldsIndex?.get("assetgroup")??!1,o=t.fieldsIndex?.get("assetgroup")?.name??"assetgroup",a=t.fieldsIndex?.get("assettype")??!1,c=t.fieldsIndex?.get("assettype")?.name??"assettype",s=e.getGlobalId(),n=e.getObjectId(),l=r?!!e.getAttribute(o):!0,f=a?!!e.getAttribute(c):!0,y=!!e.geometry;if(s&&n&&l&&f&&(y||i))return e;let k=t.createQuery();return k.objectIds=[n],(await t.queryFeatures(k)).features[0]||null}async#u(e,t,i){let{traceLocations:r}=this,o=e.getGlobalId()??"",a=e.geometry?.type,c=await this.#m(e,t);if(!c)return this.#e("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let s=r?.filter(l=>l.spatialProperties.mapGraphic?.getGlobalId()===o)??[];if(s.length>0){if(a!=="polyline")return this.#e("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(s.some(l=>Math.abs(l.traceLocation.percentAlong-c.traceLocation.percentAlong)<=this.spatialTolerance))return this.#e("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let n=this.#y(e,t,i);return n?(c.spatialProperties.flagGraphic=n,r?.add(c),!0):(this.#e("warn",this._messages.errors.errorAdding),!1)}async#m(e,t){let{traceLocationType:i,utilityNetwork:r}=this,o=e.getGlobalId()??"",a=e.geometry?.type,c=await this.#f(e);if(a==="point"||a==="polygon"){let s=r?.getTerminalConfiguration(e),n=s?s.terminals[0].id:1;return{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,terminalId:n}),flagProperties:{title:c,expanded:!1,terminalConfiguration:s??void 0,selectedTerminals:s?new Set([n]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(a==="polyline"){let s=this.#n(e.geometry,t);return s<0?(h("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,percentAlong:s}),flagProperties:{title:c,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}else if(!a){let s=V(e.layer)?e.layer.parent:e.layer,n=s&&this.#c.includes(s.layerId),l=r?.getTerminalConfiguration(e),f=l?l.terminals[0].id:n?-1:1,y=n?.5:-1;return{traceLocation:new S({type:i,isFilterBarrier:!1,globalId:o,terminalId:f,percentAlong:y}),flagProperties:{title:c,expanded:!1,terminalConfiguration:l??void 0,selectedTerminals:l?new Set([f]):void 0},spatialProperties:{mapPoint:t,mapGraphic:e}}}return null}async#f(e){let t=($(e.layer),e.layer);return("getFeatureTitle"in t?await t.getFeatureTitle(e):null)||e.getObjectId()?.toString()||this._messages.unknown}#y(e,t,i){let r=e.geometry?e.geometry.type==="point"?e.geometry:t:null,o=this.#w(),a=new Z({geometry:r,symbol:o,attributes:e.attributes});return i.graphics.add(a),a}#w(){let{traceLocationType:e}=this,t=[244,21,21,.6],i=[21,244,21,.6];return e==="stopping-point"?new I({color:t,style:"x",size:12,outline:{color:t,width:2}}):e==="barrier"?new I({color:t,style:"square",size:12,outline:{color:t,width:0}}):new I({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:e,traceLocations:t}=this;t?.forEach(i=>{i.spatialProperties.flagGraphic&&e&&e.graphics.remove(i.spatialProperties.flagGraphic)}),t?.removeAll()}#v(e,t){let{flagProperties:i}=e,{selectedTerminals:r}=i,{name:o,id:a}=t,c=r?.has(a)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${a} .checked=${c} @calciteCheckboxChange=${s=>{s.target.checked?r?.add(a):r?.delete(a),this.requestUpdate()}}></calcite-checkbox>${o}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(e){let{traceLocation:t}=e;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${t.isFilterBarrier} @calciteSwitchChange=${i=>{t.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#x(e){let{flagProperties:t}=e,{terminalConfiguration:i,selectedTerminals:r}=t,o=e.traceLocation.type==="barrier",a=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${t.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{t.expanded=!t.expanded,this.requestUpdate()}}></calcite-action>${a&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${t.expanded&&p`<div class="terminals" slot=content-bottom>${o&&this.#L(e)||""}${i&&this.#$(e)||""}${a&&this.#k()||""}</div>`||""}`}#$(e){let{flagProperties:t}=e,{terminalConfiguration:i}=t;if(!i)return h("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(o=>this.#v(e,o)):(h("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#T(e){let{flagProperties:t}=e,{terminalConfiguration:i,expanded:r,title:o}=t,a=i&&i.id!==0,c=e.traceLocation.type==="barrier",s=a||c,n=i?.name??void 0;return p`<calcite-list-item .label=${o} .description=${n} .value=${o} .expanded=${r}>${s?this.#x(e):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(e)}></calcite-action></calcite-list-item>`}#M(e){if(!e.length)return null;let{traceLocationType:t}=this,i=e.map(o=>this.#T(o)).toArray(),r=K(this._messages.labels.list,{type:t});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#S(){let{traceLocationType:e,_messages:t,traceLocations:i,heading:r}=this,o=e==="starting-point"?t.types.startingPoint:e==="barrier"?t.types.barrier:t.types.stoppingPoint,a=r??o.heading,c=o.description,s=o.buttonText;return p`<calcite-block .heading=${a} .label=${a} expanded .description=${c}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${t.buttons.clear} @click=${()=>this.#b()}>${t.buttons.clear}</calcite-button>${this.#M(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${s} @click=${()=>this.#l()}>${s}</calcite-button></div></calcite-block>`}render(){return this.#S()}};_("arcgis-utility-network-trace-locations",P);return P},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/distanceOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Point","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
|