@arcgis/map-components 5.0.4 → 5.0.5

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.
Files changed (203) hide show
  1. package/dist/cdn/{OM2MFZOA.js → 26VRRGUW.js} +1 -1
  2. package/dist/cdn/{BLQKE3N3.js → 2FVZ2L32.js} +1 -1
  3. package/dist/cdn/{MDZRORPW.js → 2GGAEJNI.js} +1 -1
  4. package/dist/cdn/{2GEZJYEY.js → 2QWCB7GX.js} +1 -1
  5. package/dist/cdn/{RJHB62FD.js → 2QWJ2ZHP.js} +1 -1
  6. package/dist/cdn/{ZNRV2QZC.js → 2RA54D2B.js} +1 -1
  7. package/dist/cdn/{4RNSRF2H.js → 2YBKWLT6.js} +1 -1
  8. package/dist/cdn/{FOFMI4QC.js → 3DLW2M43.js} +1 -1
  9. package/dist/cdn/{WKNNGQFL.js → 3HHVT72L.js} +1 -1
  10. package/dist/cdn/{WP7EAY2O.js → 3NHT23VJ.js} +1 -1
  11. package/dist/cdn/{MVFXBA57.js → 44VMR4JB.js} +1 -1
  12. package/dist/cdn/{RVVYBNFH.js → 455CNC2X.js} +1 -1
  13. package/dist/cdn/{PH2MV6XW.js → 4MMWFGGQ.js} +1 -1
  14. package/dist/cdn/{DSIOFEEF.js → 4Q2CQXZM.js} +1 -1
  15. package/dist/cdn/{L7NO7ARW.js → 56VJEIND.js} +1 -1
  16. package/dist/cdn/5BACVRLF.js +2 -0
  17. package/dist/cdn/{VN7BQGWR.js → 5L7UUJ66.js} +1 -1
  18. package/dist/cdn/{ZEEQYVI6.js → 5MPJ5TRF.js} +1 -1
  19. package/dist/cdn/{BAIQQ6I2.js → 5NBBZ5WV.js} +1 -1
  20. package/dist/cdn/{6DFD24XU.js → 5QH4JWF5.js} +1 -1
  21. package/dist/cdn/{52AY7OFR.js → 5U7NIXQ6.js} +1 -1
  22. package/dist/cdn/{A75TT6NV.js → 62OC5IBG.js} +1 -1
  23. package/dist/cdn/{7IDKS7AB.js → 6E6ZUR66.js} +1 -1
  24. package/dist/cdn/{P5OH32ZN.js → 6K2ESAWF.js} +1 -1
  25. package/dist/cdn/{AUGQM3GY.js → 6V3ZKOES.js} +1 -1
  26. package/dist/cdn/{QUFNHDMZ.js → 6ZX2WPNN.js} +1 -1
  27. package/dist/cdn/{ZZS53AJP.js → 75JRU7XJ.js} +1 -1
  28. package/dist/cdn/{B6YUP74S.js → 7AGRHMNT.js} +1 -1
  29. package/dist/cdn/{YZPONRIH.js → 7DSZFPFQ.js} +1 -1
  30. package/dist/cdn/{HRJXHP66.js → 7WR4XB3L.js} +1 -1
  31. package/dist/cdn/{SAIO5SOZ.js → 7XKRUO3L.js} +1 -1
  32. package/dist/cdn/{IMADJ4FO.js → A2A6CN44.js} +1 -1
  33. package/dist/cdn/{E4PPZWO4.js → ACKNTQRK.js} +1 -1
  34. package/dist/cdn/{B72ZHPCB.js → AOEKBWNA.js} +1 -1
  35. package/dist/cdn/{YSSRWXV6.js → APAPCPXT.js} +1 -1
  36. package/dist/cdn/{KQEAR53K.js → AR44QMUK.js} +1 -1
  37. package/dist/cdn/{L4OG3KGM.js → AZFKJZ3C.js} +1 -1
  38. package/dist/cdn/{Z2I35E6A.js → BAKCV4BT.js} +1 -1
  39. package/dist/cdn/{HVUGKYOC.js → C6BRR6HO.js} +1 -1
  40. package/dist/cdn/{KJQNCNO7.js → C6ESN7QO.js} +1 -1
  41. package/dist/cdn/{BIOGEVQX.js → CC4PR3SI.js} +1 -1
  42. package/dist/cdn/{NRREJOWE.js → CIE5JE3M.js} +1 -1
  43. package/dist/cdn/{ZUIPL5CM.js → CUOULJK4.js} +1 -1
  44. package/dist/cdn/{SS7IV2I3.js → CVO6GRJE.js} +1 -1
  45. package/dist/cdn/{3DZWNQEQ.js → DGRJQ3VH.js} +1 -1
  46. package/dist/cdn/{HZISBWRD.js → DLBLKQYS.js} +1 -1
  47. package/dist/cdn/{FUG4YCV5.js → DORZKGB4.js} +1 -1
  48. package/dist/cdn/{DEMK3AML.js → DXTTUW4R.js} +1 -1
  49. package/dist/cdn/{E2CG5PBR.js → E2PRW7I3.js} +1 -1
  50. package/dist/cdn/{USVHDTDX.js → E3ZQD7XL.js} +1 -1
  51. package/dist/cdn/{USTERAJF.js → E7N2OSLX.js} +1 -1
  52. package/dist/cdn/{LOMTTKHZ.js → ECCKHLGV.js} +1 -1
  53. package/dist/cdn/{FPSKRU5N.js → EDIR5P2A.js} +1 -1
  54. package/dist/cdn/{JA5TYOBP.js → EHBJMP6X.js} +1 -1
  55. package/dist/cdn/{T2JV22AA.js → EHG6SCFZ.js} +1 -1
  56. package/dist/cdn/{ZBANCEVR.js → EIKPSSW2.js} +1 -1
  57. package/dist/cdn/{UQ5HH3ZG.js → EOGSQKVI.js} +1 -1
  58. package/dist/cdn/{NGYKFR4O.js → EONM4HYL.js} +1 -1
  59. package/dist/cdn/{IC7HAHW5.js → EX4MJAID.js} +1 -1
  60. package/dist/cdn/{GTQ7TSLC.js → FDIL4ELG.js} +1 -1
  61. package/dist/cdn/{UURVB43D.js → FRUEPZ4B.js} +1 -1
  62. package/dist/cdn/{6BAPTCMG.js → G3DKNGC5.js} +1 -1
  63. package/dist/cdn/{KYI67P5R.js → GL4AGX76.js} +1 -1
  64. package/dist/cdn/{NY3J3UBT.js → GNNPY6WD.js} +1 -1
  65. package/dist/cdn/{DGIF2JTF.js → GONPBVCY.js} +1 -1
  66. package/dist/cdn/{3IKE2FBJ.js → GZ72DRZ2.js} +1 -1
  67. package/dist/cdn/{3TQH375Q.js → H3WU3CWO.js} +1 -1
  68. package/dist/cdn/{PASTG2MG.js → HDL5ODBI.js} +1 -1
  69. package/dist/cdn/{5KXGCH4F.js → HDQ4SRNQ.js} +1 -1
  70. package/dist/cdn/{XOBBHEMO.js → HPVG2G33.js} +1 -1
  71. package/dist/cdn/{DAQ4T5RB.js → HRQLL3UQ.js} +1 -1
  72. package/dist/cdn/{PKQ4UN4I.js → HTAV4X3L.js} +1 -1
  73. package/dist/cdn/{EGHYB7AR.js → HWGBPD5G.js} +1 -1
  74. package/dist/cdn/{C3LQIW2S.js → HZXKATGS.js} +1 -1
  75. package/dist/cdn/I5YYZ23M.js +2 -0
  76. package/dist/cdn/{STE2LXKT.js → IBODWA4K.js} +1 -1
  77. package/dist/cdn/{BO6JDRZP.js → IFFOJCJM.js} +1 -1
  78. package/dist/cdn/{6UF6FCCZ.js → IJI3KL3X.js} +1 -1
  79. package/dist/cdn/{QAAG2N2Q.js → IRGOEAMU.js} +1 -1
  80. package/dist/cdn/{6LSVZ3RT.js → IVVA3NWA.js} +1 -1
  81. package/dist/cdn/{RPHE7VK6.js → IZ7RGQYP.js} +1 -1
  82. package/dist/cdn/{S4ZSYXEQ.js → J7IUPILV.js} +1 -1
  83. package/dist/cdn/{JWLIS3S3.js → JDO4ZDWR.js} +1 -1
  84. package/dist/cdn/{CCIANMLH.js → JG526BSF.js} +1 -1
  85. package/dist/cdn/{E7NMPXWI.js → JLKRZGKU.js} +1 -1
  86. package/dist/cdn/{FGEMJ2J4.js → JQFJA2R3.js} +1 -1
  87. package/dist/cdn/{PTVW2VZC.js → JX64UKPQ.js} +1 -1
  88. package/dist/cdn/{BI2VCYVF.js → KALOND7U.js} +1 -1
  89. package/dist/cdn/{CPGHFA5D.js → KMP45A7X.js} +1 -1
  90. package/dist/cdn/{TQ3FWHPR.js → KONASQUW.js} +1 -1
  91. package/dist/cdn/{YMQJBJPG.js → KTZZ6FEB.js} +1 -1
  92. package/dist/cdn/{7MDSSSQE.js → L3R6FYFA.js} +1 -1
  93. package/dist/cdn/{FIP32MVA.js → L7I3A5GU.js} +1 -1
  94. package/dist/cdn/{CICBSICJ.js → LIH3KD2N.js} +1 -1
  95. package/dist/cdn/{7HOMF76F.js → LNCUA6VO.js} +1 -1
  96. package/dist/cdn/{NXPI772D.js → LQJ2NJ7Q.js} +1 -1
  97. package/dist/cdn/{ENVCK6TA.js → LWLYKJEM.js} +1 -1
  98. package/dist/cdn/{XB5I7WZC.js → M5FJVBHY.js} +1 -1
  99. package/dist/cdn/{EFD2TMKF.js → MAT7KTFT.js} +1 -1
  100. package/dist/cdn/{SV5Y7ZQW.js → MCFGHI5T.js} +1 -1
  101. package/dist/cdn/{XMWVCOQX.js → MDNMH2GD.js} +1 -1
  102. package/dist/cdn/{J5RSAAH7.js → MMQXKWWI.js} +1 -1
  103. package/dist/cdn/{N2AZQT3C.js → MP5XTNII.js} +1 -1
  104. package/dist/cdn/{EQDSURSV.js → MS2FXMWM.js} +1 -1
  105. package/dist/cdn/{WT5D65VM.js → MT3AIRKP.js} +1 -1
  106. package/dist/cdn/{2YK7T5OX.js → MWC7VXMT.js} +1 -1
  107. package/dist/cdn/{OWV4SK3H.js → MYY77Q2M.js} +1 -1
  108. package/dist/cdn/{GDVKJ4YT.js → N2JCJYCR.js} +1 -1
  109. package/dist/cdn/{XUWLNHWG.js → N3VTGUSB.js} +1 -1
  110. package/dist/cdn/{2MRKHCHF.js → N6XL766F.js} +1 -1
  111. package/dist/cdn/{DFCQDTET.js → NHXJDS4A.js} +1 -1
  112. package/dist/cdn/{J2ZGRFOG.js → NIGGISCR.js} +1 -1
  113. package/dist/cdn/{SEGJ63Q7.js → NZKU7MTU.js} +1 -1
  114. package/dist/cdn/{KY3I52ZK.js → OKKARBPJ.js} +1 -1
  115. package/dist/cdn/{6LTCFPFB.js → OVAULEST.js} +1 -1
  116. package/dist/cdn/{BPFWFKTM.js → OWEQ6PYO.js} +1 -1
  117. package/dist/cdn/{6TBT4WDZ.js → P56Q3MNI.js} +1 -1
  118. package/dist/cdn/{JOR3Y25C.js → P5Z3VSAL.js} +1 -1
  119. package/dist/cdn/PHKNWWES.js +2 -0
  120. package/dist/cdn/{VKU24JUO.js → PHNAP4HO.js} +1 -1
  121. package/dist/cdn/{BF6IXW4R.js → PHNPROZ2.js} +1 -1
  122. package/dist/cdn/{BCZ6NEXH.js → PHNSXBYN.js} +1 -1
  123. package/dist/cdn/PNM6EWGT.js +2 -0
  124. package/dist/cdn/{TR7UEHV2.js → Q63FZKZF.js} +1 -1
  125. package/dist/cdn/{UKYI7S2H.js → QGFESPLP.js} +1 -1
  126. package/dist/cdn/{4VQJEWXC.js → QK6IDWCZ.js} +1 -1
  127. package/dist/cdn/{BM35PON3.js → QS2DT6TO.js} +1 -1
  128. package/dist/cdn/{FETZZ6VL.js → QVGEZ3ZM.js} +1 -1
  129. package/dist/cdn/{EUQTOIOE.js → QXCHMTUI.js} +1 -1
  130. package/dist/cdn/{TKBJDQW4.js → QYCOPDMB.js} +1 -1
  131. package/dist/cdn/{5C55FQ46.js → R45Q5BKQ.js} +1 -1
  132. package/dist/cdn/{ZCAYLNVM.js → R7GTTNWF.js} +1 -1
  133. package/dist/cdn/{EWEE7VP2.js → R7HXZAPP.js} +1 -1
  134. package/dist/cdn/{2BKAVQAY.js → ROC7HOOF.js} +1 -1
  135. package/dist/cdn/{WHCOFQTC.js → RV5T6FOK.js} +1 -1
  136. package/dist/cdn/{CWOU2IBG.js → RZDIAMRJ.js} +1 -1
  137. package/dist/cdn/{EK5CMMHP.js → S3YS5TWW.js} +1 -1
  138. package/dist/cdn/{4QG2NSWT.js → S4SNMYII.js} +1 -1
  139. package/dist/cdn/{ZGDWZVDK.js → S5XPO4X3.js} +1 -1
  140. package/dist/cdn/{BX2CIIF7.js → SBQPFK7O.js} +1 -1
  141. package/dist/cdn/{E5ZCKDOJ.js → SIR6LQYG.js} +1 -1
  142. package/dist/cdn/{QSPM5MFH.js → SIXUBCBZ.js} +1 -1
  143. package/dist/cdn/{QWVG2MXJ.js → SMBZ4HCK.js} +1 -1
  144. package/dist/cdn/{BQ6N77HA.js → SPNOOYWE.js} +1 -1
  145. package/dist/cdn/SUH6Q6VA.js +2 -0
  146. package/dist/cdn/{5LXGOVWV.js → SUWU7QIA.js} +1 -1
  147. package/dist/cdn/{MSH5D74Y.js → SVVZAW3N.js} +1 -1
  148. package/dist/cdn/{GZ4TVB4W.js → TBFNXPO7.js} +1 -1
  149. package/dist/cdn/{IMAUR5MO.js → TDNW2OHP.js} +1 -1
  150. package/dist/cdn/{PQVFIKMJ.js → TGDMJJCN.js} +1 -1
  151. package/dist/cdn/{K6RRP777.js → TGZLVR52.js} +1 -1
  152. package/dist/cdn/{XZUXWXLV.js → TQGIV3K4.js} +1 -1
  153. package/dist/cdn/{3QXNF6C6.js → TRJHM2AU.js} +1 -1
  154. package/dist/cdn/{6DCVVLOL.js → TRO5YRIR.js} +1 -1
  155. package/dist/cdn/{2US7EOUM.js → TZOMLSCD.js} +1 -1
  156. package/dist/cdn/{GSMVKTBU.js → UC4B5RZR.js} +1 -1
  157. package/dist/cdn/{BM4JENKF.js → UPL42Z7Y.js} +1 -1
  158. package/dist/cdn/{VHO7UYLJ.js → USA5BTOC.js} +1 -1
  159. package/dist/cdn/{VCHYJWLK.js → VAX7LMWJ.js} +1 -1
  160. package/dist/cdn/{UDH43GNW.js → VIFT4BU2.js} +1 -1
  161. package/dist/cdn/{5PB44G3F.js → VJ2SE6UE.js} +1 -1
  162. package/dist/cdn/{VUMGUJ7W.js → VORF5SSY.js} +1 -1
  163. package/dist/cdn/{G6VLH2Q7.js → VRMHUMSJ.js} +1 -1
  164. package/dist/cdn/{4NKOTU5Q.js → W4OZI46N.js} +1 -1
  165. package/dist/cdn/{Z4HQLS4Q.js → WDGESHIM.js} +1 -1
  166. package/dist/cdn/{BPCT63NK.js → WNTJFIQQ.js} +1 -1
  167. package/dist/cdn/{GIBVDRC4.js → WNWFJZWJ.js} +1 -1
  168. package/dist/cdn/{WG46REHR.js → WU5EH6LB.js} +1 -1
  169. package/dist/cdn/{6BWASTQE.js → XDJQQXLH.js} +1 -1
  170. package/dist/cdn/{XY3FM6WU.js → XEDYZ2AY.js} +1 -1
  171. package/dist/cdn/{5CP7H23C.js → XJZCNL65.js} +1 -1
  172. package/dist/cdn/{PXD6JK6S.js → XQKXDDAR.js} +1 -1
  173. package/dist/cdn/{RWMLVPPT.js → Y66GCVMG.js} +1 -1
  174. package/dist/cdn/{GR2V2AE6.js → YCKXA6G3.js} +1 -1
  175. package/dist/cdn/{FI3TRUBY.js → YOJN3RDZ.js} +1 -1
  176. package/dist/cdn/{VLAE3Y22.js → YQXDHXA6.js} +1 -1
  177. package/dist/cdn/{A2RXPC5M.js → ZAWXEB6X.js} +1 -1
  178. package/dist/cdn/{JLTOWRIL.js → ZIFQ2O7M.js} +1 -1
  179. package/dist/cdn/{GWPULTZR.js → ZIP7A4OP.js} +1 -1
  180. package/dist/cdn/{WHZXJYXO.js → ZK47NIZB.js} +1 -1
  181. package/dist/cdn/{7LMKOCRF.js → ZTBIXNFX.js} +1 -1
  182. package/dist/cdn/ZUPERN26.js +2 -0
  183. package/dist/cdn/{HWI7KYKB.js → ZWFZY2MA.js} +1 -1
  184. package/dist/cdn/{IKX5P7YB.js → ZY3BVDLT.js} +1 -1
  185. package/dist/cdn/index.js +1 -1
  186. package/dist/chunks/runtime.js +1 -1
  187. package/dist/components/arcgis-features/customElement.d.ts +4 -0
  188. package/dist/components/arcgis-features/customElement.js +38 -37
  189. package/dist/components/arcgis-popup/customElement.d.ts +5 -0
  190. package/dist/components/arcgis-utility-network-aggregated-geometry/customElement.js +8 -8
  191. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +9 -5
  192. package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
  193. package/dist/docs/api.json +1 -1
  194. package/dist/docs/docs.json +1 -1
  195. package/dist/docs/vscode.html-custom-data.json +1 -1
  196. package/dist/docs/web-types.json +1 -1
  197. package/package.json +4 -4
  198. package/dist/cdn/2LLQYLNG.js +0 -2
  199. package/dist/cdn/2U7F3SHI.js +0 -2
  200. package/dist/cdn/6C6AEGYC.js +0 -2
  201. package/dist/cdn/IEMLZ6ZR.js +0 -2
  202. package/dist/cdn/THPL2OQX.js +0 -2
  203. package/dist/cdn/U7HYFQBB.js +0 -2
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
2
  var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),Mt=new WeakMap,k=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==gt)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(Z&&t===void 0){let o=e!==void 0&&e.length===1;o&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Mt.set(e,t))}return t}toString(){return this.cssText}},It=s=>new k(typeof s=="string"?s:s+"",void 0,gt),vt=(s,...t)=>{let e=s.length===1?s[0]:t.reduce((o,r,i)=>o+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+s[i+1],s[0]);return new k(e,s,gt)},kt=(s,t)=>{if(Z)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let o=document.createElement("style"),r=Y.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,s.appendChild(o)}},Et=Z?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(let o of t.cssRules)e+=o.cssText;return It(e)})(s):s;var{is:_e,defineProperty:Ae,getOwnPropertyDescriptor:Ce,getOwnPropertyNames:we,getOwnPropertySymbols:Oe,getPrototypeOf:Te}=Object,tt=globalThis,jt=tt.trustedTypes,Se=jt?jt.emptyScript:"",Pe=tt.reactiveElementPolyfillSupport,j=(s,t)=>s,X={toAttribute(s,t){switch(t){case Boolean:s=s?Se:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},H=(s,t)=>!_e(s,t),Ht={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:H};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ht){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&&Ae(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){let{get:r,set:i}=Ce(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:r,set(n){let a=r?.call(this);i?.call(this,n),this.requestUpdate(t,a,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Ht}static _$Ei(){if(this.hasOwnProperty(j("elementProperties")))return;let t=Te(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(j("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(j("properties"))){let e=this.properties,o=[...we(e),...Oe(e)];for(let r of o)this.createProperty(r,e[r])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(let[e,o]of this.elementProperties){let r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let o=new Set(t.flat(1/0).reverse());for(let r of o)e.unshift(Et(r))}else t!==void 0&&e.push(Et(t));return e}static _$Eu(t,e){let o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return kt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){let o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){let i=(o.converter?.toAttribute!==void 0?o.converter:X).toAttribute(e,o.type);this._$Em=t,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(t,e){let o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){let i=o.getPropertyOptions(r),n=typeof i.converter=="function"?{fromAttribute:i.converter}:i.converter?.fromAttribute!==void 0?i.converter:X;this._$Em=r;let a=n.fromAttribute(e,i.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(t,e,o,r=!1,i){if(t!==void 0){let n=this.constructor;if(r===!1&&(i=this[t]),o??=n.getPropertyOptions(t),!((o.hasChanged??H)(i,e)||o.useDefault&&o.reflect&&i===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:r,wrapped:i},n){o&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,n??e??this[t]),i!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),r===!0&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[r,i]of this._$Ep)this[r]=i;this._$Ep=void 0}let o=this.constructor.elementProperties;if(o.size>0)for(let[r,i]of o){let{wrapped:n}=i,a=this[r];n!==!0||this._$AL.has(r)||a===void 0||this.C(r,void 0,i,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(o=>o.hostUpdate?.()),this.update(e)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[j("elementProperties")]=new Map,_[j("finalized")]=new Map,Pe?.({ReactiveElement:_}),(tt.reactiveElementVersions??=[]).push("2.1.2");var bt=globalThis,zt=s=>s,et=bt.trustedTypes,Vt=et?et.createPolicy("lit-html",{createHTML:s=>s}):void 0,_t="$lit$",A=`lit$${Math.random().toFixed(9).slice(2)}$`,At="?"+A,Ne=`<${At}>`,T=document,V=()=>T.createComment(""),B=s=>s===null||typeof s!="object"&&typeof s!="function",Ct=Array.isArray,Kt=s=>Ct(s)||typeof s?.[Symbol.iterator]=="function",$t=`[
3
3
  \f\r]`,z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,Wt=/>/g,w=RegExp(`>|${$t}(?:([^\\s"'>=/]+)(${$t}*=${$t}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ys=wt(1),gs=wt(2),vs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=T.createTreeWalker(T,129);function Jt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Yt=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=z:(n=w,r=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ne:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Jt(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(t,e);if(this.el=s.createElement(l,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},U=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=W.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=zt(t).nextSibling;zt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Zt={M:_t,P:A,A:At,C:1,L:Yt,R:st,D:Kt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},xe=bt.litHtmlPolyfillSupport;xe?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,$=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var De=Ot.litElementPolyfillSupport;De?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.2");var Xt=new Set,te;var ee=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Le=(s,t,e,o)=>{let r=ee(t);if(o?.once){let n=`${s}${r}${e}`;if(Xt.has(n))return;Xt.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;te?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else te?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},se=s=>{let t=`[${ee(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},xs=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`,Ls=(s,t,e,o)=>Le("warn",s,`\`${t.toString()}\` is deprecated. Use \`${e.toString()}\` instead.`,o);var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Ue=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ms=s=>typeof s?.then=="function",Is=s=>s.M.length,q,x=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],oe=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,R,ks=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Re=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=lt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ne=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Ue(s))return s;let o=Re();if(o!==void 0)return o},ct=!1,js=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ae=(s,t)=>{let e=t>Me?Ie:t/ke,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},Me=4e3,Ie=2e3,ke=4;var je=(s,t,e)=>{let o=Object.keys(s),r=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},He=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},ze=(s=[K(),...re()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){He(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(s="",t={},e=K())=>{let o={emit:r=>{s===""&&I();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&ze(void 0,r=>s=r.key,o),o},Be=Ve.bind(null,""),he;he=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[he]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(oe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(se(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?le(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ie}get useRef(){return x(this.#o),ne}get useRefSync(){return x(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ce(s){p(s,void 0,this)}var de=Tt,le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,i)}},e=new Proxy(s,t);return e};var ht=s=>s.replace(We,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),We=/[A-Z]+(?![a-z])|[A-Z]/gu;var Qs=s=>`\u200E${s??""}\u200E`,Fe="randomUUID"in crypto,Js=()=>{if(Fe)return crypto.randomUUID();let s=crypto.getRandomValues(new Uint16Array(8));s[3]=s[3]&4095|16384,s[4]=s[4]&16383|32768;let t=e=>s[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:qe}=Zt,pe=s=>s;var dt=s=>s.strings===void 0,ue=()=>document.createComment(""),to=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(ue(),r),n=o.insertBefore(ue(),r);e=new qe(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=pe(c).nextSibling;pe(o).insertBefore(c,r),c=l}}}return e},eo=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},fe=(s,t=Ge)=>s._$AH=t,so=s=>s._$AH,oo=s=>{s._$AR(),s._$AA.remove()};var Ke=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return fe(s),t}});var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},me=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ye(t)}};function Qe(s){this._$AN!==void 0?(pt(this),this._$AM=s,me(this)):this._$AM=s}function Je(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let i=e;i<o.length;i++)Q(o[i],!1),pt(o[i]);else o!=null&&(Q(o,!1),pt(o));else Q(this,s)}var Ye=s=>{s.type==m.CHILD&&(s._$AP??=Je,s._$AQ??=Qe)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var $o=()=>new Pt,Pt=class{},St=new WeakMap,Nt=E(class extends ut{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Dt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(ts):void 0,C=g?.map(([L])=>L),D=class extends xt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ht(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Dt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends de{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ae(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},rs=1e3,yt="autoDestroyDisabled";var ge=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var ve="important",is=" !"+ve,Ee=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let i=typeof r=="string"&&r.endsWith(is);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?ht(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#r.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var be=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Lr=s=>typeof s=="object"&&s!=null?ge(s):s,Ur=s=>typeof s=="object"&&s!=null?Ee(s):s;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Rr=E(Rt);var Mr=d;var Ir=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var ds=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=be({defaultAssetPath:"https://js.arcgis.com/5.0.4/map-components/",hydratedAttribute:"hydrated",commonStyles:ds}),{customElement:Br,getAssetPath:Wr,setAssetPath:Fr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ys as b,gs as c,vs as d,f as e,d as f,at as g,Ms as h,Is as i,x as j,K as k,oe as l,re as m,ks as n,js as o,Le as p,se as q,xs as r,Ds as s,Ls as t,He as u,ze as v,Ve as w,Be as x,Tt as y,de as z,Qs as A,Js as B,Xe as C,m as D,E,v as F,to as G,eo as H,fe as I,so as J,oo as K,Ke as L,$o as M,Nt as N,$e as O,Lr as P,Ur as Q,Mr as R,Ir as S,J as T,Br as U,Wr as V};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,qt=/"/g,Qt=/^(?:script|style|textarea|title)$/i,wt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),ys=wt(1),gs=wt(2),vs=wt(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Gt=new WeakMap,O=T.createTreeWalker(T,129);function Jt(s,t){if(!Ct(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return Vt!==void 0?Vt.createHTML(t):t}var Yt=(s,t)=>{let e=s.length-1,o=[],r,i=t===2?"<svg>":t===3?"<math>":"",n=z;for(let a=0;a<e;a++){let c=s[a],l,u,h=-1,y=0;for(;y<c.length&&(n.lastIndex=y,u=n.exec(c),u!==null);)y=n.lastIndex,n===z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=Wt:u[2]!==void 0?(Qt.test(u[2])&&(r=RegExp("</"+u[2],"g")),n=w):u[3]!==void 0&&(n=w):n===w?u[0]===">"?(n=r??z,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,l=u[1],n=u[3]===void 0?w:u[3]==='"'?qt:Ft):n===qt||n===Ft?n=w:n===Bt||n===Wt?n=z:(n=w,r=void 0);let g=n===w&&s[a+1].startsWith("/>")?" ":"";i+=n===z?c+Ne:h>=0?(o.push(l),c.slice(0,h)+_t+c.slice(h)+A+g):c+A+(h===-2?a:g)}return[Jt(s,i+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]},W=class s{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let i=0,n=0,a=t.length-1,c=this.parts,[l,u]=Yt(t,e);if(this.el=s.createElement(l,o),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=O.nextNode())!==null&&c.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(let h of r.getAttributeNames())if(h.endsWith(_t)){let y=u[n++],g=r.getAttribute(h).split(A),C=/([.?@])?(.*)/.exec(y);c.push({type:1,index:i,name:C[2],strings:g,ctor:C[1]==="."?ot:C[1]==="?"?rt:C[1]==="@"?it:P}),r.removeAttribute(h)}else h.startsWith(A)&&(c.push({type:6,index:i}),r.removeAttribute(h));if(Qt.test(r.tagName)){let h=r.textContent.split(A),y=h.length-1;if(y>0){r.textContent=et?et.emptyScript:"";for(let g=0;g<y;g++)r.append(h[g],V()),O.nextNode(),c.push({type:2,index:++i});r.append(h[y],V())}}}else if(r.nodeType===8)if(r.data===At)c.push({type:2,index:i});else{let h=-1;for(;(h=r.data.indexOf(A,h+1))!==-1;)c.push({type:7,index:i}),h+=A.length-1}i++}}static createElement(t,e){let o=T.createElement("template");return o.innerHTML=t,o}};function S(s,t,e=s,o){if(t===f)return t;let r=o!==void 0?e._$Co?.[o]:e._$Cl,i=B(t)?void 0:t._$litDirective$;return r?.constructor!==i&&(r?._$AO?.(!1),i===void 0?r=void 0:(r=new i(s),r._$AT(s,e,o)),o!==void 0?(e._$Co??=[])[o]=r:e._$Cl=r),r!==void 0&&(t=S(s,r._$AS(s,t.values),r,o)),t}var st=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:o}=this._$AD,r=(t?.creationScope??T).importNode(e,!0);O.currentNode=r;let i=O.nextNode(),n=0,a=0,c=o[0];for(;c!==void 0;){if(n===c.index){let l;c.type===2?l=new U(i,i.nextSibling,this,t):c.type===1?l=new c.ctor(i,c.name,c.strings,this,t):c.type===6&&(l=new nt(i,this,t)),this._$AV.push(l),c=o[++a]}n!==c?.index&&(i=O.nextNode(),n++)}return O.currentNode=T,r}p(t){let e=0;for(let o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}},U=class s{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,r){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),B(t)?t===d||t==null||t===""?(this._$AH!==d&&this._$AR(),this._$AH=d):t!==this._$AH&&t!==f&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Kt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==d&&B(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=W.createElement(Jt(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===r)this._$AH.p(e);else{let i=new st(r,this),n=i.u(this.options);i.p(e),this.T(n),this._$AH=i}}_$AC(t){let e=Gt.get(t.strings);return e===void 0&&Gt.set(t.strings,e=new W(t)),e}k(t){Ct(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,o,r=0;for(let i of t)r===e.length?e.push(o=new s(this.O(V()),this.O(V()),this,this.options)):o=e[r],o._$AI(i),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let o=zt(t).nextSibling;zt(t).remove(),t=o}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},P=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,i){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=i,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=d}_$AI(t,e=this,o,r){let i=this.strings,n=!1;if(i===void 0)t=S(this,t,e,0),n=!B(t)||t!==this._$AH&&t!==f,n&&(this._$AH=t);else{let a=t,c,l;for(t=i[0],c=0;c<i.length-1;c++)l=S(this,a[o+c],e,c),l===f&&(l=this._$AH[c]),n||=!B(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+i[c+1]),this._$AH[c]=l}n&&!r&&this.j(t)}j(t){t===d?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ot=class extends P{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===d?void 0:t}},rt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},it=class extends P{constructor(t,e,o,r,i){super(t,e,o,r,i),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let o=this._$AH,r=t===d&&o!==d||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,i=t!==d&&(o===d||r);r&&this.element.removeEventListener(this.name,this,o),i&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},nt=class{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Zt={M:_t,P:A,A:At,C:1,L:Yt,R:st,D:Kt,V:S,I:U,H:P,N:rt,U:it,B:ot,F:nt},xe=bt.litHtmlPolyfillSupport;xe?.(W,U),(bt.litHtmlVersions??=[]).push("3.3.2");var at=(s,t,e)=>{let o=e?.renderBefore??t,r=o._$litPart$;if(r===void 0){let i=e?.renderBefore??null;o._$litPart$=r=new U(t.insertBefore(V(),i),i,void 0,e??{})}return r._$AI(s),r};var Ot=globalThis,$=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return f}};$._$litElement$=!0,$.finalized=!0,Ot.litElementHydrateSupport?.({LitElement:$});var De=Ot.litElementPolyfillSupport;De?.({LitElement:$});(Ot.litElementVersions??=[]).push("4.2.2");var Xt=new Set,te;var ee=s=>typeof s=="string"?s:"el"in s?s.el.localName:"localName"in s?s.localName:s.declaredClass,Le=(s,t,e,o)=>{let r=ee(t);if(o?.once){let n=`${s}${r}${e}`;if(Xt.has(n))return;Xt.add(n)}let i;if(o?.detail){i={};for(let[n,a]of Object.entries(o.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(i,n,{get(){return c.deref()}})}else i[n]=a;te?.log.interceptors?.forEach(n=>n(s,r,e,i)),console[s](`[${r}]: ${e}`,i)}else te?.log.interceptors?.forEach(n=>n(s,r,e)),console[s](`[${r}]: ${e}`)},se=s=>{let t=`[${ee(s)}] `;return e=>{let o=e instanceof Error&&e.message?e:new Error(String(e));o.message=`${t}${o.message}`,setTimeout(()=>{throw e})}},xs=s=>`The property \`${s.toString()}\` is required but missing.`,Ds=s=>`The property \`${s.toString()}\` is empty but must have at least one element.`,Ls=(s,t,e,o)=>Le("warn",s,`\`${t.toString()}\` is deprecated. Use \`${e.toString()}\` instead.`,o);var p=(s,t,...e)=>{try{return s?.call(t,...e)}catch(o){console.error(o,s)}},F=async(s,t,...e)=>{try{return await s?.call(t,...e)}catch(o){console.error(o,s)}};var G=Symbol.for("controller"),Ue=s=>typeof s=="object"&&s!==null&&(G in s||"hostConnected"in s||"hostDisconnected"in s||"hostUpdate"in s||"hostUpdated"in s),Ms=s=>typeof s?.then=="function",Is=s=>s.M.length,q,x=s=>{q!==s&&(q=s,queueMicrotask(()=>q===s?q=void 0:0))},K=s=>q,N=[],oe=s=>{if(s===void 0){N=[];return}let t=N.indexOf(s);N=t===-1?[...N,s]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,R,ks=s=>{R!==s&&(R=s,queueMicrotask(()=>R===s?R=void 0:0))},Re=()=>{let s=R;return R=void 0,s},ie=async(s,t)=>{let e=lt(s);if(e===void 0)return s;if(await e.ready,typeof t=="function"){let o=e.watchExports(r=>t(r,o))}return e.exports},ne=async s=>{let t=lt(s);return await t.ready,t},lt=s=>{let e=K().manager.X(s);if(e!==void 0)return e;if(Ue(s))return s;let o=Re();if(o!==void 0)return o},ct=!1,js=s=>{ct=!0;try{return s()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}},ae=(s,t)=>{let e=t>Me?Ie:t/ke,o=0,r=setInterval(()=>{o+=e,o>=t&&(clearInterval(r),s())},e);return r},Me=4e3,Ie=2e3,ke=4;var je=(s,t,e)=>{let o=Object.keys(s),r=o.length;M===void 0&&queueMicrotask(I),M??=new Map;let i=M.get(s);return i===void 0&&(i={callbacks:[],keyCount:r},M.set(s,i)),i.keyCount!==r&&(i.callbacks.forEach(n=>n(o)),i.callbacks=[],i.keyCount=r),i.callbacks.push(n=>{let a=l=>p(t,null,l),c=n[r];c===void 0?a(void 0):s[c]===e?a(c):a(void 0)}),e},M,I=()=>{M?.forEach(({callbacks:s},t)=>{let e=Object.keys(t);s.forEach(o=>o(e))}),M=void 0},He=(s,t,e)=>{let o=s.manager;return o.V!==d&&o.V!==e&&o.S(void 0,void 0),o.T.length===0&&queueMicrotask(()=>o.S(void 0,void 0)),o.V=e,o.T.push((r,i)=>p(t,void 0,e===i?r:void 0)),e},ze=(s=[K(),...re()],t,e)=>{let o=Array.isArray(s)?s:[s],r=o.length+1,i=n=>{r-=1,n!==void 0&&(r=Math.min(r,0)),r===0&&t(n)};o.forEach(n=>je(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!1}),e));for(let n of o)if("manager"in n&&n.manager.component===n){He(n,a=>i(a===void 0?void 0:{key:a,host:n,isReactive:!0}),e);break}return e},Ve=(s="",t={},e=K())=>{let o={emit:r=>{s===""&&I();let i=new CustomEvent(s,{detail:r,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(i),i}};return s===""&&ze(void 0,r=>s=r.key,o),o},Be=Ve.bind(null,""),he;he=G;var Tt=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#r=[],this.#i=[],this.#c=[],this.#l=[],this.#p=[],this.#h=[],this.#d=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[he]=!0,this.#a=[];let e=this,o=t??K(new.target.name);e.#o=o,e.ready=e.P.promise,e.#n=le(e),e.component=o,e.#o.addController(e),e.#o.manager===void 0||(oe(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#r;#i;#c;#l;#p;#h;#d;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#d&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(se(this.#o))}#n;get exports(){return this.#n}set exports(t){let e=this.#n;e!==t&&(this.#n=t,this.#a.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#n=e?le(t):t,this.#a.forEach(p)}#a;watchExports(t){let e=()=>t(this.#n);return this.#a.push(e),()=>void this.#a.splice(this.#a.indexOf(e),1)}get use(){return x(this.#o),ie}get useRef(){return x(this.#o),ne}get useRefSync(){return x(this.#o),lt}controllerRemoved(){this.#o.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(t){this.#t.push(t)}onDisconnected(t){this.#e.push(t)}onLoad(t){this.#s.push(t)}onLoaded(t){this.#r.push(t)}onUpdate(t){this.#i.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#p.push(t),this.connectedCalled&&this.#o.el.isConnected&&this.#u(t)}triggerConnected(){let t=this;t.hostConnected&&p(t.hostConnected,t),t.#t.forEach(p),t.triggerLifecycle(),t.connectedCalled=!0}triggerDisconnected(){let t=this;t.hostDisconnected&&p(t.hostDisconnected,t),t.#e.forEach(p),t.#h.forEach(p),t.#h=[]}async triggerLoad(){if(this.#d)return;this.#d=!0;let t=this;t.hostLoad&&await F(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(F)),this.P.resolve(this.#n)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#r.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#i.forEach(ce,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(ce,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#p.forEach(this.#u,this)}#u(t){x(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(r=>{typeof r=="function"?this.#h.push(r):typeof r=="object"&&typeof r.remove=="function"&&this.#h.push(r.remove)})}};function ce(s){p(s,void 0,this)}var de=Tt,le=s=>{if(typeof s!="object"&&typeof s!="function"||s===null)return s;let t={get(o,r,i){if(!((r==="exports"||r==="_exports")&&r in o&&o[r]===e)&&(r in o||r in Promise.prototype||typeof r=="symbol"))return typeof o=="function"?o[r]:Reflect.get(o,r,i)}},e=new Proxy(s,t);return e};var ht=s=>s.replace(We,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),We=/[A-Z]+(?![a-z])|[A-Z]/gu;var Qs=s=>`\u200E${s??""}\u200E`,Fe="randomUUID"in crypto,Js=()=>{if(Fe)return crypto.randomUUID();let s=crypto.getRandomValues(new Uint16Array(8));s[3]=s[3]&4095|16384,s[4]=s[4]&16383|32768;let t=e=>s[e].toString(16).padStart(4,"0");return`${t(0)+t(1)}-${t(2)}-${t(3)}-${t(4)}-${t(5)}${t(6)}${t(7)}`};var m={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},E=s=>(...t)=>({_$litDirective$:s,values:t}),v=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,o){this._$Ct=t,this._$AM=e,this._$Ci=o}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var{I:qe}=Zt,pe=s=>s;var dt=s=>s.strings===void 0,ue=()=>document.createComment(""),to=(s,t,e)=>{let o=s._$AA.parentNode,r=t===void 0?s._$AB:t._$AA;if(e===void 0){let i=o.insertBefore(ue(),r),n=o.insertBefore(ue(),r);e=new qe(i,n,s,s.options)}else{let i=e._$AB.nextSibling,n=e._$AM,a=n!==s;if(a){let c;e._$AQ?.(s),e._$AM=s,e._$AP!==void 0&&(c=s._$AU)!==n._$AU&&e._$AP(c)}if(i!==r||a){let c=e._$AA;for(;c!==i;){let l=pe(c).nextSibling;pe(o).insertBefore(c,r),c=l}}}return e},eo=(s,t,e=s)=>(s._$AI(t,e),s),Ge={},fe=(s,t=Ge)=>s._$AH=t,so=s=>s._$AH,oo=s=>{s._$AR(),s._$AA.remove()};var Ke=E(class extends v{constructor(s){if(super(s),s.type!==m.PROPERTY&&s.type!==m.ATTRIBUTE&&s.type!==m.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(s))throw Error("`live` bindings can only contain a single expression")}render(s){return s}update(s,[t]){if(t===f||t===d)return t;let e=s.element,o=s.name;if(s.type===m.PROPERTY){if(t===e[o])return f}else if(s.type===m.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(o))return f}else if(s.type===m.ATTRIBUTE&&e.getAttribute(o)===t+"")return f;return fe(s),t}});var Q=(s,t)=>{let e=s._$AN;if(e===void 0)return!1;for(let o of e)o._$AO?.(t,!1),Q(o,t);return!0},pt=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while(e?.size===0)},me=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),Ye(t)}};function Qe(s){this._$AN!==void 0?(pt(this),this._$AM=s,me(this)):this._$AM=s}function Je(s,t=!1,e=0){let o=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(o))for(let i=e;i<o.length;i++)Q(o[i],!1),pt(o[i]);else o!=null&&(Q(o,!1),pt(o));else Q(this,s)}var Ye=s=>{s.type==m.CHILD&&(s._$AP??=Je,s._$AQ??=Qe)},ut=class extends v{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,o){super._$AT(t,e,o),me(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(Q(this,t),pt(this))}setValue(t){if(dt(this._$Ct))this._$Ct._$AI(t,this);else{let e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}};var $o=()=>new Pt,Pt=class{},St=new WeakMap,Nt=E(class extends ut{render(s){return d}update(s,[t]){let e=t!==this.G;return e&&this.G!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=t,this.ht=s.options?.host,this.rt(this.ct=s.element)),d}rt(s){if(this.isConnected||(s=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=St.get(t);e===void 0&&(e=new WeakMap,St.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ht,s)}else this.G.value=s}get lt(){return typeof this.G=="function"?St.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var Dt=s=>{let t=s;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(s),(e.I??e._postLoad).promise}return!1},Lt={};function Ut(){}var Xe=(s,t)=>function(o,r){if(!globalThis.customElements)return;let n=(r??o??{}).resourcesUrl;n&&s.setAssetPath(n);for(let[a,[c,l=""]]of Object.entries(t)){if(customElements.get(a))continue;let[u,h,y]=l.split(";"),g=u?u?.split(",").map(ts):void 0,C=g?.map(([L])=>L),D=class extends xt{static{this.observedAttributes=g?.map(([,L])=>L).filter(L=>L!=="")}static{this.C=C}static{this.E=h?h?.split(","):void 0}static{this.D=y?.split(",")}static{this.L=a}static{this.K=s}constructor(){!D.B&&(D.B=c(),D.F()),super()}};customElements.define(a,D)}},ft=Object.defineProperty,ts=s=>{let t=s.split(":");return t.length===1?[t[0],ht(t[0])]:t},es=globalThis.HTMLElement??Ut,xt=class extends es{constructor(){super(),this.#e={},this.#s=[],this.I=new b,this.H=new b,this.J=[];let t=this,e=t.constructor;t._offspring=t.J,t._postLoad=t.I,e.C?.forEach(o=>{Object.hasOwn(t,o)&&(t.#e[o]=t[o],delete t[o])}),e.A?t.#r({a:e.A}):e.B.then(async o=>{await e.K.p,t.#r(await(o.default?.then(r=>typeof r=="function"?{a:r}:r)??o))}).catch(o=>{t.H.reject(o),setTimeout(()=>{throw o})})}static{this.lumina=!0}static F(){for(let t of this.C??[])ft(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])ft(this.prototype,t,{async value(...e){return this.#t||await this.H.promise,await this.#t[t](...e)},configurable:!0});for(let t of this.D??[])ft(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,o){this.#t?.attributeChangedCallback(t,e,o),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Dt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#r(t){let e=this.constructor,o=e.L,r=this.#e,i=Object.values(t).find(h=>h.L===o),n=`${o}--lazy`,a=i;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=i,customElements.define(n,i)),i.N=this;let l=document.createElement(n);i.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(r).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([s,t]){this[s]=t}var os=s=>{let t=s.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(r,i){e.setAttribute.call(this.el,r,i)},t.removeAttribute=function(r){e.removeAttribute.call(this.el,r)},ft(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var mt=class extends de{constructor(t){super(t),this.destroyed=!1,this.R=!1,this.V=d,this.T=[],this.#s=new WeakMap,this.#e=t,this.exports=void 0,this.hasDestroy=yt in t&&typeof t.destroy=="function",$.prototype.addController.call(t,{hostConnected:()=>{if(this.destroyed){let e=t.el.localName;throw t.el.remove(),new Error(`The ${e} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${yt} prop.`)}this.#t!==void 0&&clearTimeout(this.#t),I();for(let e of t.M)"triggerConnected"in e?e.triggerConnected():p(e.hostConnected,e)},hostDisconnected:()=>{for(let e of t.M)"triggerDisconnected"in e?e.triggerDisconnected():p(e.hostDisconnected,e);this.hasDestroy&&!this.destroyed&&this.U()},hostUpdate:()=>{for(let e of t.M)"triggerUpdate"in e?e.triggerUpdate(this.Q):p(e.hostUpdate,e,this.Q)},hostUpdated:()=>{for(let e of t.M)"triggerUpdated"in e?e.triggerUpdated(this.Q):p(e.hostUpdated,e,this.Q);this.Q=void 0}}),queueMicrotask(()=>this.R=!0),x(t)}#t;#e;async destroy(){if(!this.destroyed){this.#e.el.isConnected&&(this.hasDestroy=!1,this.#e.el.remove()),this.#t=void 0,this.destroyed=!0;for(let t of this.#e.M)"triggerDestroy"in t?t.triggerDestroy():p(t.hostDestroy,t);this.#e.M.splice(0)}}U(){if(this.#t!==void 0&&clearTimeout(this.#t),!this.#e.el.isConnected&&!this.#e.autoDestroyDisabled){let t=()=>void this.#e.destroy();this.#t=ae(t,rs)}}S(t,e){let o=this.T;this.V=d,this.T=[],o.forEach(r=>r(t,e))}#s;W(t,e){(typeof e=="object"&&e!==null||typeof e=="function")&&this.#s.set(e,t)}X(t){if(typeof t=="object"&&t!==null||typeof t=="function")return this.#s.get(t)}},rs=1e3,yt="autoDestroyDisabled";var ge=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="class"||s.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){if(this.st===void 0){this.st=new Set,s.strings!==void 0&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(let o in t)t[o]&&!this.nt?.has(o)&&this.st.add(o);return this.render(t)}let e=s.element.classList;for(let o of this.st)o in t||(e.remove(o),this.st.delete(o));for(let o in t){let r=!!t[o];r===this.st.has(o)||this.nt?.has(o)||(r?(e.add(o),this.st.add(o)):(e.remove(o),this.st.delete(o)))}return f}});var ve="important",is=" !"+ve,Ee=E(class extends v{constructor(s){if(super(s),s.type!==m.ATTRIBUTE||s.name!=="style"||s.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(s){return Object.keys(s).reduce((t,e)=>{let o=s[e];return o==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(s,[t]){let{style:e}=s.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let o of this.ft)t[o]==null&&(this.ft.delete(o),o.includes("-")?e.removeProperty(o):e[o]=null);for(let o in t){let r=t[o];if(r!=null){this.ft.add(o);let i=typeof r=="string"&&r.endsWith(is);o.includes("-")||i?e.setProperty(o,i?r.slice(0,-11):r,i?ve:""):e[o]=r}}return f}});var $e=class s extends ${constructor(){super(),this.M=[],this.manager=new mt(this);let t=this,e=t.constructor,o=e.N,r=e.K.o,i=s.prototype.shouldUpdate;t.#r=o?.H??new b,t.I=o?.I??new b,t.J=o?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=o??t,t.#s=t.enableUpdating,t.enableUpdating=Ut,t.shouldUpdate!==i&&(t.#e=t.shouldUpdate,t.shouldUpdate=i),r&&(t.#t=new Map,e.elementProperties.forEach((n,a)=>t.#t.set(a,r()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),o=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||o?e:[this.K.commonStyles,...e]}static createProperty(t,e){let o=typeof e=="number"?e:Array.isArray(e)?e[0]:0,r=Array.isArray(e)?e[1]:void 0,i=r?.hasChanged??H,n={attribute:o&1&&typeof t=="string"?ht(t):!1,reflect:!!(o&2),type:o&4?Boolean:o&8?Number:void 0,state:!!(o&16),readOnly:!!(o&32),noAccessor:!!(o&64),c:!1,...r,hasChanged(a,c){let l=i(a,c);return n.c=l,l}};super.createProperty(t,n)}static getPropertyDescriptor(t,e,o){let r=this.K,i=super.getPropertyDescriptor(t,e,o);return o.d=i,{...i,get(){return r.t?.(this.#t.get(t)),i.get?.call(this)},set(n){let a=this.manager;if(o.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${n}"`);i.set.call(this,n??void 0),o.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,n))}}}static{this.lumina=!0}#t;#e;#s;#r;#i;connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=this.constructor.K.c?.(()=>this.requestUpdate());this.#i=t;let e=!this.manager.connectedCalled;super.connectedCallback(),e?queueMicrotask(()=>this.#l().catch(o=>{this.#r.reject(o),setTimeout(()=>{throw o})})):t&&this.requestUpdate()}#c(t){try{this.#i.clear(),this.constructor.K.r(this.#i,()=>super.update(t))}catch(e){throw this.#i.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#i?.destroy(),this.#i=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,o=e.shadowRootOptions,i=t??(o===Lt?this.el:this.el.attachShadow(o));if(this.isConnected){let n=i.getRootNode();n.adoptedStyleSheets=[...n.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return i}async#l(){let t=this.el.G??Dt(this.el);t&&await t;let e=[];for(let r of this.M)"triggerLoad"in r?e.push(r.triggerLoad()):e.push(F(r.hostLoad,r));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(r=>r.has(yt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await Promise.resolve();let o=this.J.filter(r=>!r.manager?.loadedCalled);o.length&&await Promise.allSettled(o.map(async r=>await r.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let r of this.M)"triggerLoaded"in r?r.triggerLoaded():p(r.hostLoaded,r);this.loaded?.(),this.#r.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#i?this.#c(t):super.update(t)}listen(t,e,o){let r=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,r,o),()=>this.el.removeEventListener(t,r,o)))}listenOn(t,e,o,r){let i=o?.bind(this)??o;this.manager.onLifecycle(()=>(t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)))}async componentOnReady(){return await this.#r.promise,this}addController(t){this.M.push(t),!(G in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var be=s=>{let t,e=r=>{t=new URL(r,globalThis.location?.href||void 0).href},o={...s,getAssetPath(r){let i=new URL(r,t);return i.origin!==globalThis.location?.origin?i.href:i.pathname},setAssetPath:e,customElement(r,i){i.K=o,i.L=r,customElements.get(r)||customElements.define(r,i)}};return e(s.defaultAssetPath),o};var Lr=s=>typeof s=="object"&&s!=null?ge(s):s,Ur=s=>typeof s=="object"&&s!=null?Ee(s):s;var Rt=class extends v{#t;#e;constructor(t){super(t);let e=this;this.#e=function(r){return e.#t.call(this,r)}}render(t){return typeof t=="function"?(this.#t=t,Nt(this.#e)):Nt(t)}},Rr=E(Rt);var Mr=d;var Ir=s=>{let t=document.createElement("div");return at(s,t),t.firstElementChild};var ds=vt`:host{display:block;box-sizing:border-box;*,*:before,*:after{box-sizing:inherit}}:host([hidden]){display:none}:host(:not(arcgis-basemap-gallery-item,arcgis-layer-list-item,arcgis-print-custom-text-elements,arcgis-print-dpi-input,arcgis-print-export-button,arcgis-print-exported-link,arcgis-print-exports-panel,arcgis-print-format-select,arcgis-print-layout-advanced-options,arcgis-print-layout-panel,arcgis-print-main-panel,arcgis-print-map-only-advanced-options,arcgis-print-map-only-panel,arcgis-print-out-spatial-reference-input,arcgis-print-preview-input,arcgis-print-scale-section,arcgis-print-template-select,arcgis-print-template-selector,arcgis-labeled-switch,arcgis-measurement-content,arcgis-version-management-service-item,arcgis-version-management-version-item,arcgis-version-management-version-list,arcgis-version-management-version-properties,arcgis-video-player-action-bar,arcgis-video-player-actions-group,arcgis-video-player-controls-group,arcgis-video-player-metadata,arcgis-video-player-settings,arcgis-video-player-slider)){font-family:var(--calcite-font-family)}`,J=be({defaultAssetPath:"https://js.arcgis.com/5.0.5/map-components/",hydratedAttribute:"hydrated",commonStyles:ds}),{customElement:Br,getAssetPath:Wr,setAssetPath:Fr}=J;J.t=void 0;J.o=void 0;J.c=void 0;J.r=void 0;export{vt as a,ys as b,gs as c,vs as d,f as e,d as f,at as g,Ms as h,Is as i,x as j,K as k,oe as l,re as m,ks as n,js as o,Le as p,se as q,xs as r,Ds as s,Ls as t,He as u,ze as v,Ve as w,Be as x,Tt as y,de as z,Qs as A,Js as B,Xe as C,m as D,E,v as F,to as G,eo as H,fe as I,so as J,oo as K,Ke as L,$o as M,Nt as N,$e as O,Lr as P,Ur as Q,Mr as R,Ir as S,J as T,Br as U,Wr as V};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{a as F}from"./72K7GT6K.js";import{a as A}from"./2US7EOUM.js";import{O as T,S as q,U as S,a as v,b as p}from"./5LXGOVWV.js";import"./ALDX5YZO.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},f,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:o,_queryAbortController:i,_queryFeatureCountAbortController:a,_queryPageAbortController:c,associationTypes:l}=this;return a||t&&!o?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o);return await t.queryFeatureCount({where:a,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,o,i){if(!e.length)return 0;let a=await this._findLayersBySourceId(t);await this._loadLayers(a);let c=a.map(l=>this._countAssociatedFeatureCount(l,e,s,o,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,o,i){if(!t.length)return[];let a=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,o,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=a.get(y)??[];w.push(n),a.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=a.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},o=t.fromNetworkElement,i=t.toNetworkElement,a=e.fromNetworkElement,c=e.toNetworkElement,l=s(o,a),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let o=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o),a=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o);return i.concat(a).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,o){let i=t.globalIdField,a=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=o!=null,d=i?M.sqlIn(i,e):null,u=l?`(${a?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${o})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let o="displayField"in s?s.displayField:null,i=o!=null?e[o.toString()]:null,a=i!=null?i.toString():null,c=t.getObjectId()?.toString();return a||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=o=>{if("layerId"in o&&e.isUtilityLayer(o)){let i=o.layerId!=null?e.getSourceIdByLayerId(o.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:o,associationTypes:i,_utilityNetwork:a,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),a?.load()]),!c||!s||!i||!a)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===o?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:o,_utilityNetwork:i,_canQuery:a}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!a||!e||!o||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;o.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;o.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=o.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o),c=new x({where:a,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(o=>{let i=(o?.feature).sourceLayer;D(s,i,()=>new f).add(o)});for(let[o,i]of s)this._sortFeatureObjectsByTitle(i),e.set(o,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,a)=>{let c=this._associationFeatures.get(a);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(a))}):(i.removeAll(),this._associationViewModels.delete(a))});let{map:t,view:e,spatialReference:s,timeZone:o}=this;this._associationFeatures.forEach((i,a)=>{let c=this._associationViewModels.get(a)||new f;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:o,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(a,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:o}=t,i=s.get(e)?.associatedNetworkSourceId,a=this._networkSourceIdsInUse.has(o);return i!=null&&i!==o||!a}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,o=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${o}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
2
+ import{a as F}from"./72K7GT6K.js";import{a as A}from"./TZOMLSCD.js";import{O as T,S as q,U as S,a as v,b as p}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{createReactiveMap:I,findUtilityNetwork:U,queryAllJSON:V,getOrCreateMapValue:D},{stripHTML:L},f,{ignoreAbortErrors:N},{watch:C},M,Q,B,P,x,G])=>{var O=v`.list-container{min-height:var(--calcite-spacing-xxxl)}.loading-container{display:flex;justify-content:center;padding:var(--calcite-spacing-md) 0;width:100%}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none;height:500px}`,E=100,$={assetGroup:"assetgroup",assetType:"assettype"},j="{00000000-0000-0000-0000-000000000000}",k=class extends T{constructor(){super(...arguments),this._addFlowItem=t=>{t&&this.flowItems?.push(t)},this._attachmentAssociations=new f,this._attachmentFeatureCount=0,this._cancelQuery=()=>{let{_queryAbortController:t}=this;t&&t.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:t}=this;t&&t.abort(),this._queryFeatureCountAbortController=null},this._connectivityAssociations=new f,this._connectivityFeatureCount=0,this._containerAssociations=new f,this._containerFeatureCount=0,this._contentAssociations=new f,this._contentFeatureCount=0,this._networkSourceIdsInUse=new Set,this._query=async t=>{if(!t)return;await this._loadUtiltyNetworks();let{_queryAbortController:e}=this;this._destroyAssociatedFeatureViewModels(),this._clearFeatures(),this._featureCount&&await this._queryAssociatedFeatures(t,{signal:e?.signal})},this._queryController=async t=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await N(this._query(t)),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let t=new AbortController;this._queryFeatureCountAbortController=t,await N(this._queryFeatureCount()),this._queryFeatureCountAbortController===t&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryDebounced=F(this._queryController,E),this._queryFeatureCountDebounced=F(this._queryFeatureCountController,E),this._structureAssociations=new f,this._structureFeatureCount=0,this._queryAssociationType=async()=>{this._activeAssociationType&&this._queryDebounced(this._activeAssociationType)},this._associationFeatures=I(),this._associationViewModels=I(),this._featureCount=0,this._loaded=!1,this._queryAbortController=null,this._queryFeatureCountAbortController=null,this._queryPageAbortController=null,this.associationTypes=null,this.autoDestroyDisabled=!1,this.flowType="feature-utility-network-associations",this.headingLevel=2,this.source="popup"}static{this.properties={_activeAssociationType:16,_associationFeatures:16,_associationViewModels:16,_canLoad:16,_canQuery:16,_featureCount:16,_loaded:16,_queryAbortController:16,_queryFeatureCountAbortController:16,_queryPageAbortController:16,_state:16,associationTypes:0,autoDestroyDisabled:5,description:1,flowItems:0,flowType:1,graphic:0,heading:1,headingLevel:9,layer:0,map:0,messages:0,parentFeatureViewModel:0,referenceElement:1,source:1,spatialReference:0,timeZone:1,view:0}}static{this.styles=O}get _globalId(){return(this._globalIdField&&this.graphic?.attributes?.[this._globalIdField])??null}get _globalIdField(){return this.layer?.globalIdField}get _objectId(){return(this._objectIdField&&this.graphic?.attributes?.[this._objectIdField])??null}get _objectIdField(){return this.layer?.objectIdField}get _supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get _utilityNetwork(){let{layer:t,map:e}=this;if(!t?.loaded||!e)return null;let s=this._isSubtypeSublayer(t)?t.parent:t;return U(e,s)}get _canLoad(){return!!this.map}get _canQuery(){return!!this.layer?.capabilities?.query?.supportsPagination}get _state(){let{_canLoad:t,_canQuery:e,_featureCount:s,_loaded:o,_queryAbortController:i,_queryFeatureCountAbortController:a,_queryPageAbortController:c,associationTypes:l}=this;return a||t&&!o?"loading":i||c?"querying":!this._globalId||!l||!e||!s?"disabled":"ready"}get heading(){return this._heading}set heading(t){this._heading=t}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[C(()=>[this.graphic,this.layer,this.map,this.associationTypes,this._canQuery,this._objectId,this._globalId],()=>{this._queryFeatureCountDebounced(),this._queryAssociationType()},{initial:!0}),C(()=>this._activeAssociationType,t=>{this._queryDebounced(t)}),C(()=>this._associationFeatures.values(),()=>{this._setUpUtilityNetworkAssociationsViewModels()})]),this.manager.onDestroy(()=>{this._cancelQuery(),this._cancelQueryFeatureCount()})}_addAssociationTypeFlowItem(t){this._addFlowItem(q(p`<arcgis-feature-utility-network-association-list .associationViewModels=${this._associationViewModels} .description=${this.parentFeatureViewModel?.title} .flowItems=${this.flowItems} .flowType=${this.flowType} .heading=${this._getAssociationTypeTitle(t)} .messages=${this.messages} .map=${this.map} .parentFeatureViewModel=${this.parentFeatureViewModel} .referenceElement=${this.referenceElement} .state=${this._state} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-utility-network-association-list>`))}_clearAssociations(){this._attachmentAssociations.removeAll(),this._connectivityAssociations.removeAll(),this._containerAssociations.removeAll(),this._contentAssociations.removeAll(),this._structureAssociations.removeAll()}_clearFeatures(){this._associationFeatures.forEach(t=>t.removeAll()),this._associationFeatures.clear()}_compareByFeatureTitle(t,e){return t.title.localeCompare(e.title,void 0,{numeric:!0})}async _countAssociatedFeatureCount(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o);return await t.queryFeatureCount({where:a,outFields:["*"],returnGeometry:!1},{signal:i?.signal})}async _countAssociatedFeatures(t,e,s,o,i){if(!e.length)return 0;let a=await this._findLayersBySourceId(t);await this._loadLayers(a);let c=a.map(l=>this._countAssociatedFeatureCount(l,e,s,o,i));return(await Promise.all(c)).reduce((l,r)=>l+r,0)}async _createAssociationFeatureObjects(t,e,s,o,i){if(!t.length)return[];let a=new Map,c=Array.from(e.entries()).map(async([r,d])=>{let u=await this._findLayersBySourceId(r);await this._loadLayers(u);let h=u.map(m=>this._queryLayer(m,d,s,o,i));(await Promise.all(h)).forEach(m=>{m.forEach(n=>{if(this.source==="popup"?n.sourceLayer&&n.getEffectivePopupTemplate():n.sourceLayer){let _=n.layer.globalIdField??"",y=n.getAttribute(_),w=a.get(y)??[];w.push(n),a.set(y,w)}})})});await Promise.all(c);let l=[];return await Promise.all(t.toArray().map(async r=>{let{fromNetworkElement:d,toNetworkElement:u}=r,h=d.globalId===this._globalId?u:d,m=a.get(h.globalId)??[];await Promise.all(m.map(async n=>{let _=this._utilityNetwork?.getTerminalById(h?.terminalId??void 0)?.name,y=await n.sourceLayer.getFeatureTitle(n)||this._getFeatureTitle(n);l.push({title:y,feature:n,association:r,terminalName:_})}))})),l}_destroyAssociatedFeatureViewModels(){this._associationViewModels.forEach(t=>t.destroyAll())}_equals(t,e){if(t.globalId===j&&e.globalId===j){let s=function(d,u){return d.networkSourceId===u.networkSourceId&&d.globalId===u.globalId&&d.terminalId===u.terminalId&&d.firstUnit===u.firstUnit&&d.numUnits===u.numUnits},o=t.fromNetworkElement,i=t.toNetworkElement,a=e.fromNetworkElement,c=e.toNetworkElement,l=s(o,a),r=s(i,c);return l&&r&&t.associationType===e.associationType}return t.globalId!=null&&e.globalId!=null&&t.globalId===e.globalId}async _findLayersBySourceId(t){let{_utilityNetwork:e,map:s}=this;e?.loaded||await e?.load();let o=e.getLayerIdBySourceId(t),i=s.allLayers.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o),a=s.allTables.filter(c=>!!e?.isUtilityLayer(c)&&c.layerId===o);return i.concat(a).toArray()}_getAssociationsByType(t){switch(t){case"attachment":return this._attachmentAssociations;case"structure":return this._structureAssociations;case"connectivity":return this._connectivityAssociations;case"container":return this._containerAssociations;case"content":return this._contentAssociations}}_getAssociationTypeTitle(t){let{messages:e}=this;if(t.title)return t.title;switch(t.type){case"attachment":return e?.associationsAttachments??this.messages?.noTitle??"";case"connectivity":return e?.associationsConnectivity??this.messages?.noTitle??"";case"structure":return e?.associationsStructure??this.messages?.noTitle??"";case"content":return e?.associationsContents??this.messages?.noTitle??"";case"container":return e?.associationsContainer??this.messages?.noTitle??""}}_getFeatureCountForAssociationType(t){switch(t){case"attachment":return this._attachmentFeatureCount;case"structure":return this._structureFeatureCount;case"content":return this._contentFeatureCount;case"container":return this._containerFeatureCount;case"connectivity":return this._connectivityFeatureCount}}_getFeatureQueryWhereClause(t,e,s,o){let i=t.globalIdField,a=t.fieldsIndex.get($.assetGroup),c=t.fieldsIndex.get($.assetType),l=s!=null,r=o!=null,d=i?M.sqlIn(i,e):null,u=l?`(${a?.name} = ${s})`:null,h=l&&r?`(${c?.name} = ${o})`:null;return[d,u,h].filter(Boolean).join(" AND ")}_getFeatureTitle(t){let e=t.attributes,s=t.sourceLayer;if(!e||!s)return"";let o="displayField"in s?s.displayField:null,i=o!=null?e[o.toString()]:null,a=i!=null?i.toString():null,c=t.getObjectId()?.toString();return a||c||""}_isSubtypeGroupLayer(t){return t!=null&&typeof t=="object"&&"type"in t&&t.type==="subtype-group"&&"sublayers"in t}_isSubtypeSublayer(t){return t?.type==="subtype-sublayer"}async _loadUtiltyNetworks(){let t=this.map;if(!t)return;t.utilityNetworks&&await Promise.allSettled(t.utilityNetworks.map(s=>s.load()));let e=this._utilityNetwork;if(e){let s=o=>{if("layerId"in o&&e.isUtilityLayer(o)){let i=o.layerId!=null?e.getSourceIdByLayerId(o.layerId):null;i!=null&&this._networkSourceIdsInUse.add(i)}};this._networkSourceIdsInUse=new Set,t.allLayers.forEach(s),t.allTables.forEach(s)}}async _loadLayers(t){let e=t.filter(s=>!s.loaded).map(s=>s.load());e.length&&await Promise.allSettled(e)}_matchesGlobalFeature(t,e){return this._equals(t.association,e.association)}async _queryAssociatedFeatures(t,e){let{layer:s,_globalId:o,associationTypes:i,_utilityNetwork:a,_canQuery:c,_associationFeatures:l}=this;if(await Promise.allSettled([s?.load(),a?.load()]),!c||!s||!i||!a)return;let r=this._getAssociationsByType(t.type),{associatedAssetGroup:d,associatedAssetType:u}=t,h=new Map;r.forEach(n=>{let{fromNetworkElement:_,toNetworkElement:y}=n,{networkSourceId:w,elementGlobalId:b}=_.globalId===o?{networkSourceId:y.networkSourceId,elementGlobalId:y.globalId}:{networkSourceId:_.networkSourceId,elementGlobalId:_.globalId},g=h.get(w)||[];g.push(b),h.set(w,g)});let m=await this._createAssociationFeatureObjects(r,h,d,u,e);this._parseFeatureObjects(m,l)}async _queryAssociations(t){let{layer:e,_globalId:s,associationTypes:o,_utilityNetwork:i,_canQuery:a}=this;if(await Promise.allSettled([e?.load(),i?.load()]),this._clearAssociations(),!a||!e||!o||!i||!s)return;let c=this._isSubtypeSublayer(e)?e.parent:e,l=new Q({globalId:s,networkSourceId:i.getSourceIdByLayerId(c.layerId)}),r=new Set;o.forEach(n=>{switch(n.type){case"attachment":case"structure":r.add("attachment");break;case"container":case"content":r.add("containment");break;case"connectivity":r.add("connectivity"),r.add("junction-junction-connectivity"),r.add("junction-edge-from-connectivity"),r.add("junction-edge-midspan-connectivity"),r.add("junction-edge-to-connectivity");break}});let d=await i?.queryAssociations(new B({elements:[l],types:Array.from(r)}),{signal:t?.signal}),u=new Map,h=new Map;o.forEach(n=>{h.set(n.type,n),u.set(n.type,[])}),d.forEach(n=>{let{toNetworkElement:_,fromNetworkElement:y}=n;switch(n.associationType){case"attachment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"attachment",h))break;u.get("attachment")?.push(_.globalId),this._attachmentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"structure",h))break;u.get("structure")?.push(y.globalId),this._structureAssociations.add(n)}break;case"connectivity":case"junction-edge-from-connectivity":case"junction-edge-midspan-connectivity":case"junction-edge-to-connectivity":case"junction-junction-connectivity":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"connectivity",h))break;u.get("connectivity")?.push(_.globalId)}else{if(this._shouldDiscardNetworkElement(y,"connectivity",h))break;u.get("connectivity")?.push(y.globalId)}this._connectivityAssociations.add(n);break;case"containment":if(y?.globalId===s){if(this._shouldDiscardNetworkElement(_,"content",h))break;u.get("content")?.push(_.globalId),this._contentAssociations.add(n)}else{if(this._shouldDiscardNetworkElement(y,"container",h))break;u.get("container")?.push(y.globalId),this._containerAssociations.add(n)}break}});let m=o.map(async n=>{let{associatedNetworkSourceId:_,associatedAssetGroup:y,associatedAssetType:w}=n,b=u.get(n.type),g=y!=null?await this._countAssociatedFeatures(_,b,y,w,t):b.length;switch(n.type){case"attachment":this._attachmentFeatureCount=g;break;case"connectivity":this._connectivityFeatureCount=g;break;case"container":this._containerFeatureCount=g;break;case"content":this._contentFeatureCount=g;break;case"structure":this._structureFeatureCount=g;break}});await Promise.allSettled(m)}async _queryFeatureCount(){await this._loadUtiltyNetworks();let{_queryFeatureCountAbortController:t,_canQuery:e}=this;if(!e){this._featureCount=0;return}await this._queryAssociations(t),this._featureCount=this._attachmentFeatureCount+this._connectivityFeatureCount+this._containerFeatureCount+this._contentFeatureCount+this._structureFeatureCount}async _queryLayer(t,e,s,o,i){let a=this._getFeatureQueryWhereClause(t,e,s,o),c=new x({where:a,outFields:["*"],cacheHint:this._supportsCacheHint}),l=P.fromJSON(await V(t,c,i));return l.features.forEach(r=>{let d=this._isSubtypeGroupLayer(t);r.layer=d?t.findSublayerForFeature(r):t,r.sourceLayer=d?t.findSublayerForFeature(r):t}),l.features}_parseFeatureObjects(t,e){let s=I();t.forEach(o=>{let i=(o?.feature).sourceLayer;D(s,i,()=>new f).add(o)});for(let[o,i]of s)this._sortFeatureObjectsByTitle(i),e.set(o,i)}_selectAssociationType(t){let{flowItems:e}=this;e&&(this._activeAssociationType=t,this._setUpUtilityNetworkAssociationsViewModels(),this._addAssociationTypeFlowItem(t))}_setUpUtilityNetworkAssociationsViewModels(){this._associationViewModels.forEach((i,a)=>{let c=this._associationFeatures.get(a);c?i.forEach(l=>{c.find(r=>this._matchesGlobalFeature(l,r))||(i.remove(l),i.length||this._associationViewModels.delete(a))}):(i.removeAll(),this._associationViewModels.delete(a))});let{map:t,view:e,spatialReference:s,timeZone:o}=this;this._associationFeatures.forEach((i,a)=>{let c=this._associationViewModels.get(a)||new f;i?.filter(Boolean).forEach((l,r)=>{if(!c.some(d=>this._matchesGlobalFeature(d,l))){let{association:d,feature:u,terminalName:h,title:m}=l;c.add({title:m,association:d,featureViewModel:new G({abilities:{utilityNetworkAssociationsContent:!1},map:t,view:e,spatialReference:s,timeZone:o,graphic:u}),terminalName:h},r)}}),this._associationViewModels.set(a,c)})}_shouldDiscardNetworkElement(t,e,s){if(!t)return!1;let{networkSourceId:o}=t,i=s.get(e)?.associatedNetworkSourceId,a=this._networkSourceIdsInUse.has(o);return i!=null&&i!==o||!a}_sortFeatureObjectsByTitle(t){t.sort(this._compareByFeatureTitle)}render(){let{_state:t}=this;return p`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${t==="loading"?this._renderLoading():t==="disabled"?this._renderAssociationNotFound():this._renderContent()}</div>`}_renderAssociationNotFound(){return p`<calcite-notice icon=information kind=info open scale=s width=full><div slot=message>${this.messages?.noAssociations}</div></calcite-notice>`}_renderAssociationTypeList(t){return this._getFeatureCountForAssociationType(t.type)>0?this._renderAssociationTypeListItem(t):null}_renderAssociationTypeListItem(t){let e=this._getAssociationTypeTitle(t);return A(`association-type-${t.type}`,p`<calcite-list-item .description=${L(t.description)} .label=${L(e)} .value=${t.type} @calciteListItemSelect=${()=>this._selectAssociationType(t)}><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`)}_renderContent(){let{_state:t,associationTypes:e,messages:s}=this,o=s?.associationsList??s?.noTitle??"";return A("list-container",p`<div class="list-container">${t==="ready"?p`<div><calcite-list display-mode=flat .label=${o}>${e.map(i=>this._renderAssociationTypeList(i))}</calcite-list></div>`:null}${this._renderStickyLoading()}</div>`)}_renderLoading(){return p`<div class="loading-container">${this._renderLoadingIcon()}${this._renderStickyLoading()}</div>`}_renderLoadingIcon(){return p`<calcite-loader inline label></calcite-loader>`}_renderStickyLoading(){return this._state==="querying"?p`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}};S("arcgis-feature-utility-network-associations",k);return k},"applications/Components/featureUtils","applications/Components/stringUtils","core/Collection","core/promiseUtils","core/reactiveUtils","core/sql","rest/networks/support/NetworkElement","rest/networks/support/QueryAssociationsParameters","rest/support/FeatureSet","rest/support/Query","widgets/Feature/FeatureViewModel")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import e from"./2YK7T5OX.js";import{a as T}from"./J2ZGRFOG.js";import d from"./JWLIS3S3.js";import c from"./E4PPZWO4.js";import{g as z}from"./3TQH375Q.js";import"./EWEE7VP2.js";import a from"./KTDXN3YM.js";import{b as f}from"./ZNBKMZP7.js";import{M as _,N as k,O as C,P as u,R as n,U as $,a as y,b as s,q as b,x as v}from"./5LXGOVWV.js";import"./ALDX5YZO.js";export default $arcgis.t(([{hasDisplayProperties:m},V,F,L,,,,I])=>{var S=y`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"+";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:inherit}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:inherit}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);--coordinate-conversion-width: 425px;--coordinate-font-size: var(--calcite-font-size-sm);--alert-width: 225px;--arcgis-internal-coordinate-conversion-flex-direction: column;width:var(--coordinate-conversion-width)}.no-basemap{padding:var(--calcite-spacing-xxs)}.root{background-color:var(--calcite-color-foreground-1);position:relative}.conversions-view{display:flex;flex-direction:var(--arcgis-internal-coordinate-conversion-flex-direction);background-color:var(--calcite-color-foreground-1)}.conversion-list{flex-direction:var(--arcgis-internal-coordinate-conversion-flex-direction)}.conversions-view.expand-down{display:flex;flex-direction:column}.conversions-view.expand-down .conversion-list{flex-direction:column}.conversions-view.expand-up{display:flex;flex-direction:column-reverse}.conversions-view.expand-up .conversion-list{flex-direction:column-reverse}.conversion-list{display:flex;padding-left:0;margin:0}.tool-display{list-style:none;display:flex;margin:0;padding:0;font-size:var(--calcite-font-size-sm)}.conversion-row{padding:0 var(--esri-widget-padding-y);justify-content:space-between;align-items:center;display:flex}.conversion-row:hover .copy-button{display:block}.conversions-view{padding:var(--arcgis-internal-padding-md)}.coordinate-display{font-size:var(--coordinate-font-size);word-break:break-word;word-wrap:break-word;direction:ltr;flex:auto;display:flex;align-items:center;padding-left:var(--calcite-spacing-sm);min-height:var(--calcite-spacing-xxxl)}.coordinate-display:hover{background:var(--calcite-color-transparent-hover)}.copy-button{display:none}.row-select{width:5rem;flex-shrink:0;text-align-last:center}.section-heading{display:flex;align-items:center;background-color:var(--calcite-color-background);width:100%;height:var(--calcite-size-fixed-xxxl)}.section-title{margin:0 auto!important}.input-form-group{display:flex;align-items:center;justify-content:space-between;margin:var(--calcite-spacing-md) auto var(--calcite-spacing-md) auto;width:80%}.input-form{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.coordinate-input{flex:1;margin:0;font-size:var(--coordinate-font-size)}.settings{display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1)}.settings-form-group{display:flex;flex-direction:column;align-items:center;width:60%}.settings-form-group-horizontal{display:flex;position:relative;flex-direction:row;width:100%}.settings-form-group-first{margin-top:var(--calcite-spacing-sm)}.settings-form-group:last-child{width:100%;text-align:center}.preview-coordinate{min-height:var(--calcite-spacing-xl)}`,D=2500,E=1e3,A=new V({x:0,y:0}),d={chevronDown:"chevron-down",chevronUp:"chevron-up",copy:"copy",pinTear:"pin-tear",pinTearF:"pin-tear-f",arrowLeft:"arrow-left",refresh:"refresh"},O=I(L),w=class extends C{constructor(){super(...arguments),this.alertTimer=-1,this.messages=T(),this._coordinateInput=_(),this._currentView="conversions",this._multipleConversionsDisabled=!1,this.viewModel=O(this),this.clearAlertTimeout=()=>{window.clearTimeout(this.alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.invalidInput=!1,this.goToEnabled=!1,this.inputFormat=null,this.previewConversion=null,this.settingsFormat=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.expanded=!1,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureButton=!1,this.hideInputButton=!1,this.hideExpandButton=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages?.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.orientation="auto",this.state=this.viewModel.state,this.storageDisabled=this.viewModel.storageEnabled,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=v(),this.arcgisPropertyChange=z()("currentLocation","state","expanded","mode"),this.arcgisReady=v()}static{this.properties={alertProperties:16,invalidInput:16,currentView:16,goToEnabled:16,inputFormat:16,previewConversion:16,settingsFormat:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,expanded:7,formats:0,goToOverride:0,headingLevel:9,hideCaptureButton:7,hideInputButton:7,hideExpandButton:7,hideSettingsButton:7,icon:1,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,orientation:3,referenceElement:1,state:32,storageDisabled:7,storageType:1}}static{this.styles=S}get currentView(){return this._currentView}set currentView(e){e!=="conversions"?this.viewModel.pause():this.viewModel.resume(),e==="settings"&&this.setPreviewConversion(),this._currentView=e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&(this.expanded=!1,this.conversions.splice(1,this.conversions.length-1)),this._multipleConversionsDisabled=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,i){return await this.viewModel.reverseConvert(e,i)}addConversion(e){let i=e.target,t=i.selectedOption.value,o=U(i);if(t==null||o==null)return;let r=new F({format:t});i.value="default",o>=0?(this.conversions.removeAt(o),this.conversions.add(r,o)):this.conversions.add(r),this.arcgisConversionChange.emit()}async copyToClipboard(e){e&&(e=e.replace(/‎/gu,""),await navigator.clipboard.writeText(e),this.showAlertMessage(null,this.messages.copySuccessMessage,"success",E))}findSettingsFormat(){return this.settingsFormat||this.conversions.reduceRight((e,i)=>{let t=i.format;return t&&m(t)?t:e},null)||this.formats.find(e=>m(e))||null}getId(e){return`arcgis-coordinate-conversion-${e}`}async processUserInput(e,i){let{viewModel:t}=this;try{let o=await this._reverseConvert(e,i);if(!o)throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=o??void 0,t.setLocation(o),this.currentView="conversions",this._coordinateInput.value&&(this._coordinateInput.value.value="")}catch(o){b(this)(o),this.showAlertMessage(null,this.messages?.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:i}=e;if(i==="Enter"){let t=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;if(!t||!o)return;await this.processUserInput(o,t)}else this.invalidInput=!1}async processUserMouseInput(){let e=this.inputFormat||this.conversions.at(0)?.format,i=this._coordinateInput.value?.value;!e||!i||await this.processUserInput(i,e)}removeConversion(e){this.conversions.remove(e),this.arcgisConversionChange.emit()}async _reverseConvert(e,i){let t=this.viewModel,o=await i.reverseConvert(e);return this.goToEnabled&&o&&t.goToLocation(o).catch(r=>{b(this)(r),this.showAlertMessage(null,this.messages?.locationOffBasemap,"warning")}),o}setDefaultPattern(e){e.stopPropagation();let i=this.findSettingsFormat();i?.defaultPattern&&(i.currentPattern=i.defaultPattern)}setInputFormat(e){let i=e.target.selectedOption.value;i!=null&&(this.inputFormat=i)}setPreviewConversion(){let e=this.findSettingsFormat(),i=this.viewModel;if(e){let t=this.conversions.find(o=>o.format===e);this.previewConversion=new F({format:e,position:{location:this.currentLocation,coordinate:t?.position?.coordinate}}),this.previewConversion.position?.coordinate||i.previewConversion(this.previewConversion,i.currentLocation??A)}}setSettingsFormat(e){let i=e.target.selectedOption.value;i!=null&&(this.settingsFormat=i,this.setPreviewConversion())}showAlertMessage(e,i,t,o=D){this.alertProperties={...this.alertProperties,title:e,message:i,kind:t,open:!0},window.clearTimeout(this.alertTimer),this.alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},o)}toggleGoTo(){this.goToEnabled=!this.goToEnabled}toggleMode(){this.mode=this.mode==="live"?"capture":"live"}updateCurrentPattern(e){e.stopPropagation();let i=e.target,t=this.findSettingsFormat();t&&(t.currentPattern=i.value)}render(){let{currentView:e,headingLevel:i,messages:t}=this,o,r;return this.viewModel.state==="disabled"||e==="no-basemap"?o=this.renderNoBasemapView():e==="coordinate-input"?(r=t.inputCoordTitle,o=this.renderCoordinateInputView()):e==="settings"?(r=t.settingsTitle,o=this.renderSettingsView()):o=this.renderConversionsView(),s`<calcite-panel class="root" .heading=${r} .headingLevel=${i} scale=s>${o}${this.renderAlert()}</calcite-panel>`}renderAlert(){let{messages:e}=this,{open:i,message:t,title:o,kind:r}=this.alertProperties;return s`<calcite-alert class="alert" .open=${i} scale=s .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} slot=alerts>${o?s`<div slot=title>${o}</div>`:null}${t?s`<div slot=message>${t}</div>`:null}</calcite-alert>`}renderConversionOptions(e,i,t){let o=this.conversions.at(0),r=o?.format?.name;return e.map((c,l)=>{let a=i??!o?!1:r===c.name||this.conversions.map(h=>h.format?.name).includes(c.name);return s`<calcite-option .disabled=${a} .label=${c.label.toUpperCase()} .selected=${l===t} .value=${c}>${c.label}</calcite-option>`})}renderConversionView(e,i){let{messages:t}=this,{format:o}=e,r=o?.label??"",c=i===0,l=this.getId(`list-item-${i}`),a=t.conversionOutput.replace("{format name}",r),h=c||this.expanded,p=c?this.renderFirstConversionTools(e):this.renderTools(e,l),g=c&&!e.displayCoordinate?t.noLocation:e.displayCoordinate,M=s`<div aria-label=${g??n} class="coordinate-display" data-conversion=${e??n} tabindex=0 title=${g??""??n}>${g}</div>`,B=this.renderConversionOptions(this.formats.filter(P=>P!==o));return h?s`<li aria-label=${a??n} class="conversion-row" id=${l??n} tabindex=0><calcite-select aria-controls=${l??n} class="row-select" data-index=${String(i)??n} .label=${t.selectFormat??""} scale=s @calciteSelectChange=${this.addConversion}><calcite-option .label=${r.toUpperCase()} selected>${r.toUpperCase()}</calcite-option>${B}</calcite-select>${M}${p}</li>`:null}renderConversionsView(){let{messages:e}=this,i=this.viewModel.conversions.map(this.renderConversionView.bind(this)),t=this.getId("conversion-list"),o=this.expanded?s`<div class="conversion-row"><calcite-select aria-controls=${t??n} data-index=-1 .label=${e.addConversion} scale=s @calciteSelectChange=${this.addConversion} title=${e.addConversion??n}><calcite-option disabled selected value=default>${e.addConversion}</calcite-option>${this.renderConversionOptions(this.formats)}</calcite-select>${this.renderPrimaryTools()}</div>`:null,r={"expand-up":this.orientation==="expand-up","expand-down":this.orientation==="expand-down"};return s`<div class=${u(f("conversions-view",r))}><ul aria-expanded=${this.expanded??n} class="conversion-list" id=${t??n}>${i}</ul>${o}</div>`}renderCoordinateInputView(){let e=this.inputFormat??this.conversions.at(0)?.format,i=this.formats.findIndex(c=>c.name===e?.name),t=this.getId("coordinate-input"),o=this.renderConversionOptions(this.formats,!1,i),{messages:r}=this;return r?[s`<calcite-action .icon=${d.arrowLeft} @click=${()=>this.currentView="conversions"} .text=${r.back} slot=header-actions-start></calcite-action>`,s`<div class="input-form" role=search><div class="input-form-group"><calcite-select aria-controls=${t??n} class="input-select" .label=${r.selectFormat} scale=s @calciteSelectChange=${this.setInputFormat}>${o}</calcite-select><calcite-input class="coordinate-input" data-format=${e??n} id=${t??n} @keydown=${this.processUserKeyboardInput} .placeholder=${r.inputCoordTitle} required scale=s .status=${this.invalidInput?"invalid":"idle"} ${k(this._coordinateInput)}></calcite-input></div><div class="input-form-group"><calcite-label layout=inline scale=s><calcite-checkbox .checked=${this.goToEnabled} @calciteCheckboxChange=${this.toggleGoTo}></calcite-checkbox>${r.goTo}</calcite-label><calcite-button appearance=outline kind=neutral @click=${this.processUserMouseInput} type=button width=auto>${r.convert}</calcite-button></div></div>`]:null}renderCopyButton(e){let{messages:i}=this;return this.renderIconButton({iconType:d.copy,clickFunction:()=>this.copyToClipboard(e.displayCoordinate),buttonClasses:["copy-button"],ariaLabel:i.copy,title:i.copy})}renderFirstConversionTools(e){let{messages:i,multipleConversionsDisabled:t,hideCaptureButton:o,hideExpandButton:r}=this;if(!i)return null;let c=this.mode==="live"?i.captureMode:i.liveMode,l=this.expanded?i.collapse:i.expand,a=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,h=!t&&!r?this.renderIconButton({iconType:this.expanded?d.chevronDown:d.chevronUp,clickFunction:()=>{this.expanded=!this.expanded},ariaControls:this.getId("conversion-list"),label:l,title:l}):null,p=t&&!o?this.renderIconButton({iconType:this.mode==="live"?d.pinTear:d.pinTearF,clickFunction:this.toggleMode,label:c,title:c}):null;return s`<ul class="tool-display"><li>${a}</li><li>${h}</li><li>${p}</li></ul>`}renderIconButton(e){let{iconType:i,clickFunction:t,buttonClasses:o,ariaLabel:r,ariaControls:c,label:l,flipRtl:a,title:h}=e;return s`<calcite-button appearance=transparent aria-label=${r??n} aria-controls=${c??n} class=${u(f(o))} .iconFlipRtl=${a?"start":void 0} .iconStart=${i} kind=neutral .label=${l} @click=${t} title=${h??n}></calcite-button>`}renderNoBasemapView(){return s`<div class="no-basemap">${this.messages.noBasemap}</div>`}renderPrimaryTools(){let{messages:e,hideInputButton:i,hideCaptureButton:t,hideSettingsButton:o}=this;if(!e)return null;let r=this.mode==="live"?e.captureMode:e.liveMode,c=i?null:this.renderIconButton({iconType:"pencil",clickFunction:()=>{this.currentView="coordinate-input"},label:e.inputCoordTitle,title:e.inputCoordTitle}),l=t?null:this.renderIconButton({iconType:this.mode==="live"?d.pinTear:d.pinTearF,clickFunction:this.toggleMode,label:r,title:r}),a=o?null:this.renderIconButton({iconType:"gear",clickFunction:()=>{this.currentView="settings"},label:e.settingsTitle,title:e.settingsTitle});return s`<ul class="tool-display"><li>${c}</li><li>${l}</li><li>${a}</li></ul>`}renderSettingsView(){let e=this.getId("pattern-input"),i=this.getId("preview-coordinate"),t=this.formats.filter(p=>m(p)),o=this.findSettingsFormat(),r=o?t.indexOf(o):-1,c=this.renderConversionOptions(t,!0,r),l=o?.currentPattern,{messages:a}=this;if(!a)return null;let h=this.renderIconButton({iconType:d.refresh,clickFunction:this.setDefaultPattern,label:a.defaultPattern,title:a.defaultPattern});return[s`<calcite-action .icon=${d.arrowLeft} @click=${()=>this.currentView="conversions"} .text=${a.back} slot=header-actions-start></calcite-action>`,s`<div class="settings"><div class=${u(f("settings-form-group","settings-form-group-first"))}><calcite-label alignment=center .for=${e} scale=s>${a.changeCoordinateDisplay}<calcite-select .label=${a.selectFormat} width=full @calciteSelectChange=${this.setSettingsFormat}>${c}</calcite-select><div class="settings-form-group-horizontal"><calcite-input aria-controls=${i??n} class="pattern-input" id=${e??n} type=text .value=${l} @calciteInputInput=${this.updateCurrentPattern}></calcite-input>${h}</div></calcite-label></div><div class="settings-form-group"><calcite-label alignment=center scale=s>${a.preview}<div class="preview-coordinate" id=${i??n} tabindex=0>${this.previewConversion?.displayCoordinate}</div></calcite-label></div></div>`]}renderTools(e,i){let t=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,{messages:o}=this;if(!o)return null;let r=this.renderIconButton({iconType:"x",clickFunction:()=>this.removeConversion(e),ariaControls:i,label:o.removeConversion,title:o.removeConversion});return s`<ul class="tool-display"><li>${t}</li><li>${r}</li></ul>`}};function U(x){let e=x.getAttribute("data-index");return e?window.parseInt(e):null}$("arcgis-coordinate-conversion",w);return w},"applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/support/Conversion","widgets/CoordinateConversion/CoordinateConversionViewModel",a,c,d,e)
2
+ import e from"./MWC7VXMT.js";import{a as T}from"./NIGGISCR.js";import d from"./JDO4ZDWR.js";import c from"./ACKNTQRK.js";import{g as z}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import a from"./KTDXN3YM.js";import{b as f}from"./ZNBKMZP7.js";import{M as _,N as k,O as C,P as u,R as n,U as $,a as y,b as s,q as b,x as v}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{hasDisplayProperties:m},V,F,L,,,,I])=>{var S=y`[class^=esri-icon-],[class*=" esri-icon-"]{speak:none;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-style:normal;font-weight:var(--calcite-font-weight-normal);line-height:1;font-family:CalciteWebCoreIcons!important}.esri-icon-close:before{content:"";color:inherit}.esri-icon-drag-horizontal:before{content:"";color:inherit}.esri-icon-drag-vertical:before{content:"";color:inherit}.esri-icon-handle-horizontal:before{content:"";color:inherit}.esri-icon-handle-vertical:before{content:"";color:inherit}.esri-icon-check-mark:before{content:"";color:inherit}.esri-icon-left-triangle-arrow:before{content:"";color:inherit}.esri-icon-right-triangle-arrow:before{content:"";color:inherit}.esri-icon-down-arrow:before{content:"";color:inherit}.esri-icon-up-arrow:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-left:before{content:"";color:inherit}.esri-icon-overview-arrow-bottom-right:before{content:"";color:inherit}.esri-icon-overview-arrow-top-left:before{content:"";color:inherit}.esri-icon-overview-arrow-top-right:before{content:"";color:inherit}.esri-icon-maximize:before{content:"";color:inherit}.esri-icon-minimize:before{content:"";color:inherit}.esri-icon-checkbox-unchecked:before{content:"";color:inherit}.esri-icon-checkbox-checked:before{content:"";color:inherit}.esri-icon-radio-unchecked:before{content:"";color:inherit}.esri-icon-radio-checked:before{content:"";color:inherit}.esri-icon-up-arrow-circled:before{content:"";color:inherit}.esri-icon-down-arrow-circled:before{content:"";color:inherit}.esri-icon-left-arrow-circled:before{content:"";color:inherit}.esri-icon-right-arrow-circled:before{content:"";color:inherit}.esri-icon-zoom-out-fixed:before{content:"";color:inherit}.esri-icon-zoom-in-fixed:before{content:"";color:inherit}.esri-icon-refresh:before{content:"";color:inherit}.esri-icon-edit:before{content:"";color:inherit}.esri-icon-authorize:before{content:"";color:inherit}.esri-icon-map-pin:before{content:"";color:inherit}.esri-icon-blank-map-pin:before{content:"";color:inherit}.esri-icon-table:before{content:"";color:inherit}.esri-icon-plus:before{content:"+";color:inherit}.esri-icon-minus:before{content:"";color:inherit}.esri-icon-beginning:before{content:"";color:inherit}.esri-icon-reverse:before{content:"";color:inherit}.esri-icon-pause:before{content:"";color:inherit}.esri-icon-play:before{content:"";color:inherit}.esri-icon-forward:before{content:"";color:inherit}.esri-icon-end:before{content:"";color:inherit}.esri-icon-erase:before{content:"";color:inherit}.esri-icon-up-down-arrows:before{content:"";color:inherit}.esri-icon-left:before{content:"";color:inherit}.esri-icon-right:before{content:"";color:inherit}.esri-icon-announcement:before{content:"";color:inherit}.esri-icon-notice-round:before{content:"";color:inherit}.esri-icon-notice-triangle:before{content:"";color:inherit}.esri-icon-home:before{content:"";color:inherit}.esri-icon-locate:before{content:"";color:inherit}.esri-icon-expand:before{content:"";color:inherit}.esri-icon-collapse:before{content:"";color:inherit}.esri-icon-layer-list:before{content:"";color:inherit}.esri-icon-basemap:before{content:"";color:inherit}.esri-icon-globe:before{content:"";color:inherit}.esri-icon-applications:before{content:"";color:inherit}.esri-icon-arrow-up-circled:before{content:"";color:inherit}.esri-icon-arrow-down-circled:before{content:"";color:inherit}.esri-icon-arrow-left-circled:before{content:"";color:inherit}.esri-icon-arrow-right-circled:before{content:"";color:inherit}.esri-icon-minus-circled:before{content:"";color:inherit}.esri-icon-plus-circled:before{content:"";color:inherit}.esri-icon-add-attachment:before{content:"";color:inherit}.esri-icon-attachment:before{content:"";color:inherit}.esri-icon-calendar:before{content:"";color:inherit}.esri-icon-close-circled:before{content:"";color:inherit}.esri-icon-browser:before{content:"";color:inherit}.esri-icon-collection:before{content:"";color:inherit}.esri-icon-comment:before{content:"";color:inherit}.esri-icon-configure-popup:before{content:"";color:inherit}.esri-icon-contact:before{content:"";color:inherit}.esri-icon-dashboard:before{content:"";color:inherit}.esri-icon-deny:before{content:"";color:inherit}.esri-icon-description:before{content:"";color:inherit}.esri-icon-directions:before{content:"";color:inherit}.esri-icon-directions2:before{content:"";color:inherit}.esri-icon-documentation:before{content:"";color:inherit}.esri-icon-duplicate:before{content:"";color:inherit}.esri-icon-review:before{content:"";color:inherit}.esri-icon-environment-settings:before{content:"";color:inherit}.esri-icon-error:before{content:"";color:inherit}.esri-icon-error2:before{content:"";color:inherit}.esri-icon-experimental:before{content:"";color:inherit}.esri-icon-feature-layer:before{content:"";color:inherit}.esri-icon-filter:before{content:"";color:inherit}.esri-icon-grant:before{content:"";color:inherit}.esri-icon-group:before{content:"";color:inherit}.esri-icon-key:before{content:"";color:inherit}.esri-icon-labels:before{content:"";color:inherit}.esri-icon-tag:before{content:"";color:inherit}.esri-icon-layers:before{content:"";color:inherit}.esri-icon-left-arrow:before{content:"";color:inherit}.esri-icon-right-arrow:before{content:"";color:inherit}.esri-icon-link-external:before{content:"";color:inherit}.esri-icon-link:before{content:"";color:inherit}.esri-icon-loading-indicator:before{content:"";color:inherit}.esri-icon-maps:before{content:"";color:inherit}.esri-icon-marketplace:before{content:"";color:inherit}.esri-icon-media:before{content:"";color:inherit}.esri-icon-media2:before{content:"";color:inherit}.esri-icon-menu:before{content:"";color:inherit}.esri-icon-mobile:before{content:"";color:inherit}.esri-icon-phone:before{content:"";color:inherit}.esri-icon-navigation:before{content:"";color:inherit}.esri-icon-pan:before{content:"";color:inherit}.esri-icon-printer:before{content:"";color:inherit}.esri-icon-pie-chart:before{content:"";color:inherit}.esri-icon-chart:before{content:"";color:inherit}.esri-icon-line-chart:before{content:"";color:inherit}.esri-icon-question:before{content:"";color:inherit}.esri-icon-resend-invitation:before{content:"";color:inherit}.esri-icon-rotate:before{content:"";color:inherit}.esri-icon-save:before{content:"";color:inherit}.esri-icon-settings:before{content:"";color:inherit}.esri-icon-settings2:before{content:"";color:inherit}.esri-icon-share:before{content:"";color:inherit}.esri-icon-sign-out:before{content:"";color:inherit}.esri-icon-support:before{content:"";color:inherit}.esri-icon-user:before{content:"";color:inherit}.esri-icon-time-clock:before{content:"";color:inherit}.esri-icon-trash:before{content:"";color:inherit}.esri-icon-upload:before{content:"";color:inherit}.esri-icon-download:before{content:"";color:inherit}.esri-icon-zoom-in-magnifying-glass:before{content:"";color:inherit}.esri-icon-search:before{content:"";color:inherit}.esri-icon-zoom-out-magnifying-glass:before{content:"";color:inherit}.esri-icon-locked:before{content:"";color:inherit}.esri-icon-unlocked:before{content:"";color:inherit}.esri-icon-favorites:before{content:"";color:inherit}.esri-icon-compass:before{content:"";color:inherit}.esri-icon-down:before{content:"";color:inherit}.esri-icon-up:before{content:"";color:inherit}.esri-icon-chat:before{content:"";color:inherit}.esri-icon-dock-bottom:before{content:"";color:inherit}.esri-icon-dock-left:before{content:"";color:inherit}.esri-icon-dock-right:before{content:"";color:inherit}.esri-icon-organization:before{content:"";color:inherit}.esri-icon-north-navigation:before{content:"";color:inherit}.esri-icon-locate-circled:before{content:"";color:inherit}.esri-icon-dial:before{content:"";color:inherit}.esri-icon-polygon:before{content:"";color:inherit}.esri-icon-polyline:before{content:"";color:inherit}.esri-icon-visible:before{content:"";color:inherit}.esri-icon-non-visible:before{content:"";color:inherit}.esri-icon-link-vertical:before{content:"";color:inherit}.esri-icon-unlocked-link-vertical:before{content:"";color:inherit}.esri-icon-link-horizontal:before{content:"";color:inherit}.esri-icon-unlocked-link-horizontal:before{content:"";color:inherit}.esri-icon-swap:before{content:"";color:inherit}.esri-icon-cta-link-external:before{content:"";color:inherit}.esri-icon-reply:before{content:"";color:inherit}.esri-icon-public:before{content:"";color:inherit}.esri-icon-share2:before{content:"";color:inherit}.esri-icon-launch-link-external:before{content:"";color:inherit}.esri-icon-rotate-back:before{content:"";color:inherit}.esri-icon-pan2:before{content:"";color:inherit}.esri-icon-tracking:before{content:"";color:inherit}.esri-icon-expand2:before{content:"";color:inherit}.esri-icon-arrow-down:before{content:"";color:inherit}.esri-icon-arrow-up:before{content:"";color:inherit}.esri-icon-hollow-eye:before{content:"";color:inherit}.esri-icon-play-circled:before{content:"";color:inherit}.esri-icon-volume-off:before{content:"";color:inherit}.esri-icon-volume-on:before{content:"";color:inherit}.esri-icon-bookmark:before{content:"";color:inherit}.esri-icon-lightbulb:before{content:"";color:inherit}.esri-icon-sketch-rectangle:before{content:"";color:inherit}.esri-icon-north-navigation-filled:before{content:"";color:inherit}.esri-icon-default-action:before{content:"";color:inherit}.esri-icon-undo:before{content:"";color:inherit}.esri-icon-redo:before{content:"";color:inherit}.esri-icon-cursor:before{content:"";color:inherit}.esri-icon-cursor-filled:before{content:"";color:inherit}.esri-icon-measure:before{content:"";color:inherit}.esri-icon-measure-line:before{content:"";color:inherit}.esri-icon-measure-area:before{content:"";color:inherit}.esri-icon-legend:before{content:"";color:inherit}.esri-icon-sliders:before{content:"";color:inherit}.esri-icon-sliders-horizontal:before{content:"";color:inherit}.esri-icon-cursor-marquee:before{content:"";color:inherit}.esri-icon-lasso:before{content:"";color:inherit}.esri-icon-elevation-profile:before{content:"";color:inherit}.esri-icon-slice:before{content:"";color:inherit}.esri-icon-line-of-sight:before{content:"";color:inherit}.esri-icon-zoom-to-object:before{content:"";color:inherit}.esri-icon-urban-model:before{content:"";color:inherit}.esri-icon-measure-building-height-shadow:before{content:"";color:inherit}.esri-icon-partly-cloudy:before{content:"";color:inherit}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-button{box-sizing:border-box;cursor:pointer;white-space:normal;word-break:normal;color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info);justify-content:center;align-items:center;width:100%;min-height:var(--calcite-spacing-xxxl);padding:6px 7px;font-family:inherit;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out,border .125s ease-in-out;display:flex;overflow:hidden;&:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-status-info-hover);border:var(--calcite-spacing-px) solid var(--calcite-color-status-info-hover)}}.esri-button:hover{color:var(--calcite-color-text-1);background-color:var(--calcite-color-text-2);border:1px solid var(--calcite-color-text-2)}.esri-button.esri-button--small{min-height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size-sm)}.esri-button.esri-button--half{width:50%;display:inline-block}.esri-button.esri-button--third{width:33%;display:inline-block}.esri-button--secondary{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-button--tertiary{color:var(--calcite-color-brand);background-color:var(--calcite-color-transparent);border-color:var(--calcite-color-transparent)}.esri-button--tertiary:hover{color:var(--calcite-color-brand-hover);background-color:var(--calcite-color-foreground-2);border-color:var(--calcite-color-transparent)}.esri-button--disabled{opacity:.4;pointer-events:none}.esri-button--drill-in{outline-offset:-4px;cursor:pointer;text-align:unset;background-color:var(--calcite-color-foreground-1);border:none;border-radius:2px;justify-content:space-between;align-items:center;margin:var(--calcite-spacing-md) 7px;padding:var(--calcite-spacing-md) 7px;text-decoration:none;transition:background-color .125s ease-in-out;display:flex;box-shadow:0 0 0 1px #adadad4d}.esri-button--drill-in:hover,.esri-button--drill-in:focus{background-color:var(--calcite-color-foreground-2)}.esri-button--drill-in__title{font-size:var(--calcite-font-size)}.esri-button--drill-in [class^=esri-icon-],.esri-button--drill-in [class*=" esri-icon-"]{padding:0 7px}.esri-widget--button{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);flex-flow:row;justify-content:center;align-items:center;width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;overflow:hidden}.esri-widget--button:is(calcite-button):not(:hover){--calcite-icon-color: var(--calcite-color-text-3)}.esri-widget--button:not([appearance]),.esri-widget--button[appearance=solid]{--calcite-color-foreground-3: var(--calcite-color-foreground-1)}.esri-widget--button:is(calcite-button){--calcite-offset-invert-focus: 1}.esri-widget--button calcite-loader[inline]{margin:auto}.esri-button--secondary{color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);&:hover{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-status-info);border:1px solid var(--calcite-color-status-info)}}:host{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);--coordinate-conversion-width: 425px;--coordinate-font-size: var(--calcite-font-size-sm);--alert-width: 225px;--arcgis-internal-coordinate-conversion-flex-direction: column;width:var(--coordinate-conversion-width)}.no-basemap{padding:var(--calcite-spacing-xxs)}.root{background-color:var(--calcite-color-foreground-1);position:relative}.conversions-view{display:flex;flex-direction:var(--arcgis-internal-coordinate-conversion-flex-direction);background-color:var(--calcite-color-foreground-1)}.conversion-list{flex-direction:var(--arcgis-internal-coordinate-conversion-flex-direction)}.conversions-view.expand-down{display:flex;flex-direction:column}.conversions-view.expand-down .conversion-list{flex-direction:column}.conversions-view.expand-up{display:flex;flex-direction:column-reverse}.conversions-view.expand-up .conversion-list{flex-direction:column-reverse}.conversion-list{display:flex;padding-left:0;margin:0}.tool-display{list-style:none;display:flex;margin:0;padding:0;font-size:var(--calcite-font-size-sm)}.conversion-row{padding:0 var(--esri-widget-padding-y);justify-content:space-between;align-items:center;display:flex}.conversion-row:hover .copy-button{display:block}.conversions-view{padding:var(--arcgis-internal-padding-md)}.coordinate-display{font-size:var(--coordinate-font-size);word-break:break-word;word-wrap:break-word;direction:ltr;flex:auto;display:flex;align-items:center;padding-left:var(--calcite-spacing-sm);min-height:var(--calcite-spacing-xxxl)}.coordinate-display:hover{background:var(--calcite-color-transparent-hover)}.copy-button{display:none}.row-select{width:5rem;flex-shrink:0;text-align-last:center}.section-heading{display:flex;align-items:center;background-color:var(--calcite-color-background);width:100%;height:var(--calcite-size-fixed-xxxl)}.section-title{margin:0 auto!important}.input-form-group{display:flex;align-items:center;justify-content:space-between;margin:var(--calcite-spacing-md) auto var(--calcite-spacing-md) auto;width:80%}.input-form{display:flex;flex-direction:column;background-color:var(--calcite-color-foreground-1)}.coordinate-input{flex:1;margin:0;font-size:var(--coordinate-font-size)}.settings{display:flex;flex-direction:column;align-items:center;background-color:var(--calcite-color-foreground-1)}.settings-form-group{display:flex;flex-direction:column;align-items:center;width:60%}.settings-form-group-horizontal{display:flex;position:relative;flex-direction:row;width:100%}.settings-form-group-first{margin-top:var(--calcite-spacing-sm)}.settings-form-group:last-child{width:100%;text-align:center}.preview-coordinate{min-height:var(--calcite-spacing-xl)}`,D=2500,E=1e3,A=new V({x:0,y:0}),d={chevronDown:"chevron-down",chevronUp:"chevron-up",copy:"copy",pinTear:"pin-tear",pinTearF:"pin-tear-f",arrowLeft:"arrow-left",refresh:"refresh"},O=I(L),w=class extends C{constructor(){super(...arguments),this.alertTimer=-1,this.messages=T(),this._coordinateInput=_(),this._currentView="conversions",this._multipleConversionsDisabled=!1,this.viewModel=O(this),this.clearAlertTimeout=()=>{window.clearTimeout(this.alertTimer),this.alertProperties={...this.alertProperties,open:!1}},this.alertProperties={kind:"brand",message:null,title:null,open:!1},this.invalidInput=!1,this.goToEnabled=!1,this.inputFormat=null,this.previewConversion=null,this.settingsFormat=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.conversions=this.viewModel.conversions,this.currentLocation=this.viewModel.currentLocation,this.expanded=!1,this.formats=this.viewModel.formats,this.goToOverride=this.viewModel.goToOverride,this.headingLevel=4,this.hideCaptureButton=!1,this.hideInputButton=!1,this.hideExpandButton=!1,this.hideSettingsButton=!1,this.icon="coordinate-system",this.label=this.messages?.componentLabel,this.locationSymbol=this.viewModel.locationSymbol,this.mode=this.viewModel.mode,this.orientation="auto",this.state=this.viewModel.state,this.storageDisabled=this.viewModel.storageEnabled,this.storageType=this.viewModel.storageType,this.arcgisConversionChange=v(),this.arcgisPropertyChange=z()("currentLocation","state","expanded","mode"),this.arcgisReady=v()}static{this.properties={alertProperties:16,invalidInput:16,currentView:16,goToEnabled:16,inputFormat:16,previewConversion:16,settingsFormat:16,view:0,autoDestroyDisabled:5,conversions:0,currentLocation:0,expanded:7,formats:0,goToOverride:0,headingLevel:9,hideCaptureButton:7,hideInputButton:7,hideExpandButton:7,hideSettingsButton:7,icon:1,label:1,locationSymbol:0,mode:3,multipleConversionsDisabled:7,orientation:3,referenceElement:1,state:32,storageDisabled:7,storageType:1}}static{this.styles=S}get currentView(){return this._currentView}set currentView(e){e!=="conversions"?this.viewModel.pause():this.viewModel.resume(),e==="settings"&&this.setPreviewConversion(),this._currentView=e}get multipleConversionsDisabled(){return this._multipleConversionsDisabled}set multipleConversionsDisabled(e){e&&(this.expanded=!1,this.conversions.splice(1,this.conversions.length-1)),this._multipleConversionsDisabled=e}async destroy(){this.clearAlertTimeout(),await this.manager.destroy()}async reverseConvert(e,i){return await this.viewModel.reverseConvert(e,i)}addConversion(e){let i=e.target,t=i.selectedOption.value,o=U(i);if(t==null||o==null)return;let r=new F({format:t});i.value="default",o>=0?(this.conversions.removeAt(o),this.conversions.add(r,o)):this.conversions.add(r),this.arcgisConversionChange.emit()}async copyToClipboard(e){e&&(e=e.replace(/‎/gu,""),await navigator.clipboard.writeText(e),this.showAlertMessage(null,this.messages.copySuccessMessage,"success",E))}findSettingsFormat(){return this.settingsFormat||this.conversions.reduceRight((e,i)=>{let t=i.format;return t&&m(t)?t:e},null)||this.formats.find(e=>m(e))||null}getId(e){return`arcgis-coordinate-conversion-${e}`}async processUserInput(e,i){let{viewModel:t}=this;try{let o=await this._reverseConvert(e,i);if(!o)throw new Error("failed to process user input");this.mode==="capture"?t.resume():this.mode="capture",this.invalidInput=!1,this.currentLocation=o??void 0,t.setLocation(o),this.currentView="conversions",this._coordinateInput.value&&(this._coordinateInput.value.value="")}catch(o){b(this)(o),this.showAlertMessage(null,this.messages?.invalidCoordinate,"warning"),this.invalidInput=!0}}async processUserKeyboardInput(e){let{key:i}=e;if(i==="Enter"){let t=this.inputFormat||this.conversions.at(0)?.format,o=this._coordinateInput.value?.value;if(!t||!o)return;await this.processUserInput(o,t)}else this.invalidInput=!1}async processUserMouseInput(){let e=this.inputFormat||this.conversions.at(0)?.format,i=this._coordinateInput.value?.value;!e||!i||await this.processUserInput(i,e)}removeConversion(e){this.conversions.remove(e),this.arcgisConversionChange.emit()}async _reverseConvert(e,i){let t=this.viewModel,o=await i.reverseConvert(e);return this.goToEnabled&&o&&t.goToLocation(o).catch(r=>{b(this)(r),this.showAlertMessage(null,this.messages?.locationOffBasemap,"warning")}),o}setDefaultPattern(e){e.stopPropagation();let i=this.findSettingsFormat();i?.defaultPattern&&(i.currentPattern=i.defaultPattern)}setInputFormat(e){let i=e.target.selectedOption.value;i!=null&&(this.inputFormat=i)}setPreviewConversion(){let e=this.findSettingsFormat(),i=this.viewModel;if(e){let t=this.conversions.find(o=>o.format===e);this.previewConversion=new F({format:e,position:{location:this.currentLocation,coordinate:t?.position?.coordinate}}),this.previewConversion.position?.coordinate||i.previewConversion(this.previewConversion,i.currentLocation??A)}}setSettingsFormat(e){let i=e.target.selectedOption.value;i!=null&&(this.settingsFormat=i,this.setPreviewConversion())}showAlertMessage(e,i,t,o=D){this.alertProperties={...this.alertProperties,title:e,message:i,kind:t,open:!0},window.clearTimeout(this.alertTimer),this.alertTimer=window.setTimeout(()=>{this.alertProperties={...this.alertProperties,open:!1}},o)}toggleGoTo(){this.goToEnabled=!this.goToEnabled}toggleMode(){this.mode=this.mode==="live"?"capture":"live"}updateCurrentPattern(e){e.stopPropagation();let i=e.target,t=this.findSettingsFormat();t&&(t.currentPattern=i.value)}render(){let{currentView:e,headingLevel:i,messages:t}=this,o,r;return this.viewModel.state==="disabled"||e==="no-basemap"?o=this.renderNoBasemapView():e==="coordinate-input"?(r=t.inputCoordTitle,o=this.renderCoordinateInputView()):e==="settings"?(r=t.settingsTitle,o=this.renderSettingsView()):o=this.renderConversionsView(),s`<calcite-panel class="root" .heading=${r} .headingLevel=${i} scale=s>${o}${this.renderAlert()}</calcite-panel>`}renderAlert(){let{messages:e}=this,{open:i,message:t,title:o,kind:r}=this.alertProperties;return s`<calcite-alert class="alert" .open=${i} scale=s .kind=${r} .label=${e.alertLabel} @calciteAlertClose=${this.clearAlertTimeout} slot=alerts>${o?s`<div slot=title>${o}</div>`:null}${t?s`<div slot=message>${t}</div>`:null}</calcite-alert>`}renderConversionOptions(e,i,t){let o=this.conversions.at(0),r=o?.format?.name;return e.map((c,l)=>{let a=i??!o?!1:r===c.name||this.conversions.map(h=>h.format?.name).includes(c.name);return s`<calcite-option .disabled=${a} .label=${c.label.toUpperCase()} .selected=${l===t} .value=${c}>${c.label}</calcite-option>`})}renderConversionView(e,i){let{messages:t}=this,{format:o}=e,r=o?.label??"",c=i===0,l=this.getId(`list-item-${i}`),a=t.conversionOutput.replace("{format name}",r),h=c||this.expanded,p=c?this.renderFirstConversionTools(e):this.renderTools(e,l),g=c&&!e.displayCoordinate?t.noLocation:e.displayCoordinate,M=s`<div aria-label=${g??n} class="coordinate-display" data-conversion=${e??n} tabindex=0 title=${g??""??n}>${g}</div>`,B=this.renderConversionOptions(this.formats.filter(P=>P!==o));return h?s`<li aria-label=${a??n} class="conversion-row" id=${l??n} tabindex=0><calcite-select aria-controls=${l??n} class="row-select" data-index=${String(i)??n} .label=${t.selectFormat??""} scale=s @calciteSelectChange=${this.addConversion}><calcite-option .label=${r.toUpperCase()} selected>${r.toUpperCase()}</calcite-option>${B}</calcite-select>${M}${p}</li>`:null}renderConversionsView(){let{messages:e}=this,i=this.viewModel.conversions.map(this.renderConversionView.bind(this)),t=this.getId("conversion-list"),o=this.expanded?s`<div class="conversion-row"><calcite-select aria-controls=${t??n} data-index=-1 .label=${e.addConversion} scale=s @calciteSelectChange=${this.addConversion} title=${e.addConversion??n}><calcite-option disabled selected value=default>${e.addConversion}</calcite-option>${this.renderConversionOptions(this.formats)}</calcite-select>${this.renderPrimaryTools()}</div>`:null,r={"expand-up":this.orientation==="expand-up","expand-down":this.orientation==="expand-down"};return s`<div class=${u(f("conversions-view",r))}><ul aria-expanded=${this.expanded??n} class="conversion-list" id=${t??n}>${i}</ul>${o}</div>`}renderCoordinateInputView(){let e=this.inputFormat??this.conversions.at(0)?.format,i=this.formats.findIndex(c=>c.name===e?.name),t=this.getId("coordinate-input"),o=this.renderConversionOptions(this.formats,!1,i),{messages:r}=this;return r?[s`<calcite-action .icon=${d.arrowLeft} @click=${()=>this.currentView="conversions"} .text=${r.back} slot=header-actions-start></calcite-action>`,s`<div class="input-form" role=search><div class="input-form-group"><calcite-select aria-controls=${t??n} class="input-select" .label=${r.selectFormat} scale=s @calciteSelectChange=${this.setInputFormat}>${o}</calcite-select><calcite-input class="coordinate-input" data-format=${e??n} id=${t??n} @keydown=${this.processUserKeyboardInput} .placeholder=${r.inputCoordTitle} required scale=s .status=${this.invalidInput?"invalid":"idle"} ${k(this._coordinateInput)}></calcite-input></div><div class="input-form-group"><calcite-label layout=inline scale=s><calcite-checkbox .checked=${this.goToEnabled} @calciteCheckboxChange=${this.toggleGoTo}></calcite-checkbox>${r.goTo}</calcite-label><calcite-button appearance=outline kind=neutral @click=${this.processUserMouseInput} type=button width=auto>${r.convert}</calcite-button></div></div>`]:null}renderCopyButton(e){let{messages:i}=this;return this.renderIconButton({iconType:d.copy,clickFunction:()=>this.copyToClipboard(e.displayCoordinate),buttonClasses:["copy-button"],ariaLabel:i.copy,title:i.copy})}renderFirstConversionTools(e){let{messages:i,multipleConversionsDisabled:t,hideCaptureButton:o,hideExpandButton:r}=this;if(!i)return null;let c=this.mode==="live"?i.captureMode:i.liveMode,l=this.expanded?i.collapse:i.expand,a=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,h=!t&&!r?this.renderIconButton({iconType:this.expanded?d.chevronDown:d.chevronUp,clickFunction:()=>{this.expanded=!this.expanded},ariaControls:this.getId("conversion-list"),label:l,title:l}):null,p=t&&!o?this.renderIconButton({iconType:this.mode==="live"?d.pinTear:d.pinTearF,clickFunction:this.toggleMode,label:c,title:c}):null;return s`<ul class="tool-display"><li>${a}</li><li>${h}</li><li>${p}</li></ul>`}renderIconButton(e){let{iconType:i,clickFunction:t,buttonClasses:o,ariaLabel:r,ariaControls:c,label:l,flipRtl:a,title:h}=e;return s`<calcite-button appearance=transparent aria-label=${r??n} aria-controls=${c??n} class=${u(f(o))} .iconFlipRtl=${a?"start":void 0} .iconStart=${i} kind=neutral .label=${l} @click=${t} title=${h??n}></calcite-button>`}renderNoBasemapView(){return s`<div class="no-basemap">${this.messages.noBasemap}</div>`}renderPrimaryTools(){let{messages:e,hideInputButton:i,hideCaptureButton:t,hideSettingsButton:o}=this;if(!e)return null;let r=this.mode==="live"?e.captureMode:e.liveMode,c=i?null:this.renderIconButton({iconType:"pencil",clickFunction:()=>{this.currentView="coordinate-input"},label:e.inputCoordTitle,title:e.inputCoordTitle}),l=t?null:this.renderIconButton({iconType:this.mode==="live"?d.pinTear:d.pinTearF,clickFunction:this.toggleMode,label:r,title:r}),a=o?null:this.renderIconButton({iconType:"gear",clickFunction:()=>{this.currentView="settings"},label:e.settingsTitle,title:e.settingsTitle});return s`<ul class="tool-display"><li>${c}</li><li>${l}</li><li>${a}</li></ul>`}renderSettingsView(){let e=this.getId("pattern-input"),i=this.getId("preview-coordinate"),t=this.formats.filter(p=>m(p)),o=this.findSettingsFormat(),r=o?t.indexOf(o):-1,c=this.renderConversionOptions(t,!0,r),l=o?.currentPattern,{messages:a}=this;if(!a)return null;let h=this.renderIconButton({iconType:d.refresh,clickFunction:this.setDefaultPattern,label:a.defaultPattern,title:a.defaultPattern});return[s`<calcite-action .icon=${d.arrowLeft} @click=${()=>this.currentView="conversions"} .text=${a.back} slot=header-actions-start></calcite-action>`,s`<div class="settings"><div class=${u(f("settings-form-group","settings-form-group-first"))}><calcite-label alignment=center .for=${e} scale=s>${a.changeCoordinateDisplay}<calcite-select .label=${a.selectFormat} width=full @calciteSelectChange=${this.setSettingsFormat}>${c}</calcite-select><div class="settings-form-group-horizontal"><calcite-input aria-controls=${i??n} class="pattern-input" id=${e??n} type=text .value=${l} @calciteInputInput=${this.updateCurrentPattern}></calcite-input>${h}</div></calcite-label></div><div class="settings-form-group"><calcite-label alignment=center scale=s>${a.preview}<div class="preview-coordinate" id=${i??n} tabindex=0>${this.previewConversion?.displayCoordinate}</div></calcite-label></div></div>`]}renderTools(e,i){let t=e.displayCoordinate&&this.mode==="capture"?this.renderCopyButton(e):null,{messages:o}=this;if(!o)return null;let r=this.renderIconButton({iconType:"x",clickFunction:()=>this.removeConversion(e),ariaControls:i,label:o.removeConversion,title:o.removeConversion});return s`<ul class="tool-display"><li>${t}</li><li>${r}</li></ul>`}};function U(x){let e=x.getAttribute("data-index");return e?window.parseInt(e):null}$("arcgis-coordinate-conversion",w);return w},"applications/Components/formatUtils","geometry/Point","widgets/CoordinateConversion/support/Conversion","widgets/CoordinateConversion/CoordinateConversionViewModel",a,c,d,e)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import{O as l,U as a,b as i}from"./5LXGOVWV.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:u}])=>{var s=class extends l{static{this.properties={viewModel:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.templateOptions.customTextElements,()=>this.requestUpdate(),{initial:!0})])}render(){let e=this.viewModel.templateOptions.customTextElements;return e?i`<div>${e.map(r=>{let[t,c]=Object.entries(r)[0];return t==="date"?null:i`<calcite-label>${t}<calcite-input .value=${c??""} @calciteInputInput=${o=>{let n=e.find(m=>{let[p]=Object.entries(m)[0];return p===t});n&&(n[t]=o.target.value)}}></calcite-input></calcite-label>`})}</div>`:null}};a("arcgis-print-custom-text-elements",s);return s},"core/reactiveUtils")
2
+ import{O as l,U as a,b as i}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:u}])=>{var s=class extends l{static{this.properties={viewModel:0}}loaded(){this.manager.onLifecycle(()=>[u(()=>this.viewModel.templateOptions.customTextElements,()=>this.requestUpdate(),{initial:!0})])}render(){let e=this.viewModel.templateOptions.customTextElements;return e?i`<div>${e.map(r=>{let[t,c]=Object.entries(r)[0];return t==="date"?null:i`<calcite-label>${t}<calcite-input .value=${c??""} @calciteInputInput=${o=>{let n=e.find(m=>{let[p]=Object.entries(m)[0];return p===t});n&&(n[t]=o.target.value)}}></calcite-input></calcite-label>`})}</div>`:null}};a("arcgis-print-custom-text-elements",s);return s},"core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import i from"./2YK7T5OX.js";import{a as _}from"./J2ZGRFOG.js";import{a as D}from"./DHVEHATY.js";import e from"./JWLIS3S3.js";import c from"./E4PPZWO4.js";import{g as y}from"./3TQH375Q.js";import"./EWEE7VP2.js";import a from"./KTDXN3YM.js";import{b as u}from"./ZNBKMZP7.js";import{M as d,N as g,O as w,P as h,R as f,U as b,a as v,b as o,x}from"./5LXGOVWV.js";import"./ALDX5YZO.js";export default $arcgis.t(([{on:I,when:C,watch:H},M,{property:p,subclass:P},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(i,e,t,a)=>{for(var n=a>1?void 0:a?L(e,t):e,s=i.length-1,c;s>=0;s--)(c=i[s])&&(n=(a?c(e,t,n):c(n))||n);return a&&n&&O(e,t,n),n},E=new EventTarget;function S(i,e,t){let a=!1,n=H(i,(s,c)=>{a||e(s,c)},t);return{remove(){n.remove()},pause(){a=!0},resume(){a=!1}}}var r=class extends M{constructor(i){super(i),this._viewpointHandle=null,this.addHandles(I(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(i){this._set("autoCollapse",i),this._watchViewpoint()}set expanded(i){this._set("expanded",i),this.group&&i&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(i)}get state(){return this.view?.ready?"ready":"disabled"}set view(i){this._get("view")!==i&&(this._set("view",i),i&&C(()=>i.ready,()=>{this.view===i&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(i){this._viewpointHandle&&(i?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let i="viewpoint";this.removeHandles(i),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let a=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(a,i),this._viewpointHandle=a}_collapse(){this.expanded=!1}};l([p({value:!1})],r.prototype,"autoCollapse",1);l([p({value:!1})],r.prototype,"expanded",1);l([p()],r.prototype,"group",2);l([p({readOnly:!0})],r.prototype,"state",1);l([p({value:null})],r.prototype,"view",1);r=l([P("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;background-color:var(--calcite-color-foreground-1)}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,k="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=y()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:a,expandTooltip:n}=this;return(e?a||t.collapse:n||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expanded(){return this.viewModel.expanded}set expanded(e){this.viewModel.expanded=e}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??k}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>void this.popoverEl?.value?.reposition(),{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";case"manual":default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,viewModel:{expanded:a},label:n,topLayerDisabled:s}=this;return o`<div class=${h(u("root",D.widget))}>${this._renderToggle()}${e?o`<calcite-sheet class="sheet" height=l .label=${n??""} .topLayerDisabled=${s} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${n} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?o`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${n??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${this.expanded} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${s} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?o`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:a,collapseIcon:n}=this,s=e?n:a;return o`<calcite-action class=${h(u("action","icon",{"icon-flip":s===k||s===T}))} @click=${this.toggle} .text=${t} title=${t??f} .icon=${s} .scale=${this.visualScale} ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return o`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return o`<div class="content-container"><slot></slot></div>`}};b("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
2
+ import i from"./MWC7VXMT.js";import{a as _}from"./NIGGISCR.js";import{a as D}from"./DHVEHATY.js";import e from"./JDO4ZDWR.js";import c from"./ACKNTQRK.js";import{g as y}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import a from"./KTDXN3YM.js";import{b as u}from"./ZNBKMZP7.js";import{M as d,N as g,O as w,P as h,R as f,U as b,a as v,b as o,x}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{on:I,when:C,watch:H},M,{property:p,subclass:P},,,,$])=>{var O=Object.defineProperty,L=Object.getOwnPropertyDescriptor,l=(i,e,t,a)=>{for(var n=a>1?void 0:a?L(e,t):e,s=i.length-1,c;s>=0;s--)(c=i[s])&&(n=(a?c(e,t,n):c(n))||n);return a&&n&&O(e,t,n),n},E=new EventTarget;function S(i,e,t){let a=!1,n=H(i,(s,c)=>{a||e(s,c)},t);return{remove(){n.remove()},pause(){a=!0},resume(){a=!1}}}var r=class extends M{constructor(i){super(i),this._viewpointHandle=null,this.addHandles(I(()=>E,"expand",e=>{let{target:t}=e.detail;t!==this&&t.expanded&&t.group&&t.group===this.group&&this.expanded&&this._collapse()}))}destroy(){this._viewpointHandle=null,this.view=null}set autoCollapse(i){this._set("autoCollapse",i),this._watchViewpoint()}set expanded(i){this._set("expanded",i),this.group&&i&&E.dispatchEvent(new CustomEvent("expand",{detail:{target:this}})),this._viewpointHandleChange(i)}get state(){return this.view?.ready?"ready":"disabled"}set view(i){this._get("view")!==i&&(this._set("view",i),i&&C(()=>i.ready,()=>{this.view===i&&this._watchViewpoint()},{once:!0,initial:!0}))}_viewpointHandleChange(i){this._viewpointHandle&&(i?C(()=>this.view?.stationary,()=>this._viewpointHandle?.resume(),{once:!0,initial:!0}):this._viewpointHandle.pause())}_watchViewpoint(){let i="viewpoint";this.removeHandles(i),this._viewpointHandle=null;let{autoCollapse:e,view:t}=this;if(!t||!e)return;let a=S(()=>t.type==="3d"?t.camera:t.viewpoint,()=>this._collapse());this.addHandles(a,i),this._viewpointHandle=a}_collapse(){this.expanded=!1}};l([p({value:!1})],r.prototype,"autoCollapse",1);l([p({value:!1})],r.prototype,"expanded",1);l([p()],r.prototype,"group",2);l([p({readOnly:!0})],r.prototype,"state",1);l([p({value:null})],r.prototype,"view",1);r=l([P("map-components.expand.ExpandViewModel")],r);var j=v`:host{display:flex;pointer-events:auto;--arcgis-internal-expand-icon-number-spacing-left: none;--arcgis-internal-expand-icon-number-spacing-right: none}arcgis-expand>.content-expanded{background-color:var(--calcite-color-background)}.root{--esri-widget-panel-max-height: 95svh;--calcite-sheet-max-height: var(--esri-widget-panel-max-height);--calcite-sheet-height: auto;background-color:var(--calcite-color-foreground-1)}.action{cursor:pointer;text-align:center;color:var(--calcite-color-text-2);justify-content:center;align-items:center;margin:0;padding:0;font-size:var(--calcite-font-size);transition:background-color .125s ease-in-out;display:flex;flex-direction:column;overflow:hidden}.toggle{position:relative}.popover-content{flex-direction:column;display:flex;max-height:var(--arcgis-internal-expand-max-height, 95svh);::slotted(*){max-height:var(--arcgis-internal-expand-max-height, 95svh);overflow-y:auto}::slotted(arcgis-sketch){--arcgis-internal-sketch-gap: var(--calcite-spacing-none)}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){width:var(--arcgis-internal-panel-width);min-width:var(--calcite-spacing-xxxl);min-height:var(--calcite-spacing-xxxl);transition:max-height .25s ease-in-out}}.popover-content .esri-widget--panel{width:300px}.panel{max-height:var(--esri-widget-panel-max-height)}.panel-content{::slotted(*){width:100%}::slotted(:is(arcgis-area-measurement-2d,arcgis-area-measurement-3d,arcgis-basemap-gallery,arcgis-basemap-layer-list,arcgis-bookmarks,arcgis-building-explorer,arcgis-catalog-layer-list,arcgis-directions,arcgis-direct-line-measurement-3d,arcgis-distance-measurement-2d,arcgis-editor,arcgis-feature-form,arcgis-features,arcgis-layer-list,arcgis-legend,arcgis-line-of-sight,arcgis-print,arcgis-shadow-cast,arcgis-slice,arcgis-table-list,arcgis-utility-network-trace,arcgis-grid-controls)){overflow-y:auto}}.panel-content .esri-widget{width:auto}.panel-content .esri-widget--panel{flex:auto}.arcgis-map-container-ui__element .popover-content .esri-widget,.arcgis-map-container-ui__element .popover-content .esri-widget.esri-component,.arcgis-map-container-ui__element .panel-content .esri-widget,.arcgis-map-container-ui__element .panel-content .esri-widget.esri-component,.popover-content .esri-widget,.popover-content .esri-widget.esri-component,.panel-content .esri-widget,.panel-content .esri-widget.esri-component{box-sizing:border-box;box-shadow:none;margin-bottom:0}.panel-content,.content-container{background-color:var(--calcite-color-foreground-1);flex-direction:column;flex:auto;justify-content:stretch;display:flex}.sheet .panel-content,.sheet .content-container{overflow:hidden}.panel-icon-number{align-self:center}.icon{display:flex}calcite-button:not(:hover) .icon:not(calcite-icon){color:var(--calcite-color-text-3)}.icon-flip{transform:var(--arcgis-internal-collapse-icon-flip)}.icon-number{transform-origin:50%;color:var(--calcite-color-text-inverse);pointer-events:none;background-color:var(--calcite-color-text-3);border-radius:var(--calcite-spacing-xl);justify-content:center;align-items:center;height:var(--calcite-spacing-lg);padding:.125em .333em;font-size:var(--calcite-font-size-sm);line-height:1em;display:flex;position:absolute;top:-6px;left:var(--arcgis-internal-expand-icon-number-spacing-left);right:var(--arcgis-internal-expand-icon-number-spacing-right)}`,k="chevrons-left",T="chevrons-right",z=$(r),m=class extends w{constructor(){super(...arguments),this.popoverEl=d(),this.messages=_({}),this.viewModel=z(this),this.toggleActionEl=d(),this.view=this.viewModel.view,this.state=this.viewModel.state,this.autoDestroyDisabled=!1,this.autoCollapse=this.viewModel.autoCollapse,this.closeOnEscDisabled=!1,this.content="",this.expandTooltip="",this.collapseTooltip="",this.focusTrapDisabled=!1,this.group=this.viewModel.group,this.iconNumber=0,this.mode="auto",this.topLayerDisabled=!1,this.visualScale="m",this.arcgisPropertyChange=y()("expanded"),this.arcgisReady=x()}static{this.properties={expandTitle:16,_displaySheet:16,view:0,state:32,icon:1,label:1,autoDestroyDisabled:5,referenceElement:1,autoCollapse:5,closeOnEscDisabled:5,content:1,expanded:7,expandIcon:3,expandTooltip:1,collapseIcon:3,collapseTooltip:1,focusTrapDisabled:5,group:1,iconNumber:9,mode:1,placement:1,messageOverrides:0,topLayerDisabled:5,visualScale:1}}static{this.styles=j}get expandTitle(){let{expanded:e,messages:t,collapseTooltip:a,expandTooltip:n}=this;return(e?a||t.collapse:n||t.expand)??""}get _displaySheet(){switch(this.mode){case"drawer":return!0;case"auto":return this.viewModel.view?.widthBreakpoint==="xsmall";default:return!1}}get expanded(){return this.viewModel.expanded}set expanded(e){this.viewModel.expanded=e}get expandIcon(){if(this._expandIcon)return this._expandIcon;let e=null;return this.content instanceof HTMLElement&&("widget"in this.content&&this.content.widget?.icon?e=this.content.widget.icon:"icon"in this.content?e=this.content.icon:e=this.content.getAttribute("icon")),e??k}set expandIcon(e){this._expandIcon=e}get collapseIcon(){return this._collapseIcon??T}set collapseIcon(e){this._collapseIcon=e}async collapse(){this.expanded=!1}async destroy(){await this.manager.destroy()}async expand(){this.expanded=!0}loaded(){this.manager.onLifecycle(()=>[H(()=>this.viewModel?.view?.size,()=>void this.popoverEl?.value?.reposition(),{initial:!0})])}toggle(){this.expanded=!this.expanded}getPopoverPlacement(){if(this.placement)return this.placement;switch(this.el.slot){case"bottom-start":case"bottom-left":return"right-end";case"bottom-right":case"bottom-end":return"left-end";case"top-start":case"top-left":return"right-start";case"top-right":case"top-end":return"left-start";case"manual":default:return"auto"}}_isCloseOnEscapeDisabled(e){let{closeOnEscDisabled:t}=this;return typeof t=="function"?t(e):t}_handlePopoverClose(e){e.target===this.popoverEl.value&&this.collapse()}_handleKeyDown(e){this.expanded&&e.key==="Escape"&&this._isCloseOnEscapeDisabled(e)&&e.preventDefault()}render(){let{_displaySheet:e,toggleActionEl:t,viewModel:{expanded:a},label:n,topLayerDisabled:s}=this;return o`<div class=${h(u("root",D.widget))}>${this._renderToggle()}${e?o`<calcite-sheet class="sheet" height=l .label=${n??""} .topLayerDisabled=${s} @keydown=${this._handleKeyDown} .open=${a} position=block-end @calciteSheetClose=${this.collapse}><calcite-panel class="panel" closable .closed=${!a} .heading=${n} @keydown=${this._handleKeyDown} @calcitePanelClose=${this.collapse}><div class="panel-content">${this._renderContent()}</div></calcite-panel></calcite-sheet>`:t.value?o`<calcite-popover .focusTrapDisabled=${this.focusTrapDisabled} .label=${n??""} @keydown=${this._handleKeyDown} trigger-disabled .open=${this.expanded} overlay-positioning=fixed .placement=${this.getPopoverPlacement()} .referenceElement=${t.value} .topLayerDisabled=${s} @calcitePopoverClose=${this._handlePopoverClose} ${g(this.popoverEl)}><div class="popover-content">${this._renderContent()}</div></calcite-popover>`:null}</div>`}_renderBadgeNumber(){let{expanded:e,iconNumber:t}=this;return t&&!e?o`<span class="icon-number">${t}</span>`:null}_renderToggleButton(){let{expanded:e,expandTitle:t,expandIcon:a,collapseIcon:n}=this,s=e?n:a;return o`<calcite-action class=${h(u("action","icon",{"icon-flip":s===k||s===T}))} @click=${this.toggle} .text=${t} title=${t??f} .icon=${s} .scale=${this.visualScale} ${g(this.toggleActionEl)}></calcite-action>`}_renderToggle(){return o`<div class="toggle">${this._renderToggleButton()}${this._renderBadgeNumber()}</div>`}_renderContent(){return o`<div class="content-container"><slot></slot></div>`}};b("arcgis-expand",m);return m},"core/reactiveUtils","core/Accessor","core/accessorSupport/decorators",a,c,e,i)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
2
- import a from"./OOHXOPMN.js";import{a as r}from"./XUWLNHWG.js";import{e as o}from"./3TQH375Q.js";import"./EWEE7VP2.js";import"./ZNBKMZP7.js";import{O as i,U as c,a as s,b as l}from"./5LXGOVWV.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:d},{b:n,c:m,d:p}])=>{var h=s`.template-select-container{border:1px solid var(--calcite-color-border-1);cursor:pointer}.template-select-container .template-select-error,.template-select-container .template-select-arrow{display:flex;align-self:center;margin-right:var(--calcite-spacing-md)}`,a=class extends i{constructor(){super(...arguments),this._handles=r("disconnect"),this._direction=o(),this._templateState="not-loaded"}static{this.properties={_selectedTemplate:16,_templateState:16,viewModel:0,messages:0,showTemplateSelector:0}}static{this.styles=h}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(d(()=>this._selectedTemplate?.state,t=>this._templateState=t??"not-loaded",{initial:!0}),"template-handle")},{initial:!0})])}render(){let e=this._selectedTemplate?m(this._selectedTemplate,this.messages):this.messages.selectTemplate;return l`<calcite-block class="template-select-container" .description=${n(this._selectedTemplate)} .heading=${e} .label=${e} .loading=${this._templateState==="loading"} @click=${this.showTemplateSelector} @keydown=${t=>{(t.key==="Enter"||t.key===" ")&&this.showTemplateSelector()}} tabindex=0><calcite-icon .icon=${(this._selectedTemplate?.layout?p(this._selectedTemplate.layout):null)||"custom-print"} scale=l slot=content-start></calcite-icon>${this._templateState==="error"?l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=actions-end></calcite-icon>`:null}<calcite-icon class="template-select-arrow" .icon=${this._direction==="rtl"?"chevron-left":"chevron-right"} scale=s slot=actions-end></calcite-icon></calcite-block>`}};c("arcgis-print-template-select",a);return a},"core/reactiveUtils",a)
2
+ import a from"./OOHXOPMN.js";import{a as r}from"./N3VTGUSB.js";import{e as o}from"./H3WU3CWO.js";import"./R7HXZAPP.js";import"./ZNBKMZP7.js";import{O as i,U as c,a as s,b as l}from"./SUWU7QIA.js";import"./ALDX5YZO.js";export default $arcgis.t(([{watch:d},{b:n,c:m,d:p}])=>{var h=s`.template-select-container{border:1px solid var(--calcite-color-border-1);cursor:pointer}.template-select-container .template-select-error,.template-select-container .template-select-arrow{display:flex;align-self:center;margin-right:var(--calcite-spacing-md)}`,a=class extends i{constructor(){super(...arguments),this._handles=r("disconnect"),this._direction=o(),this._templateState="not-loaded"}static{this.properties={_selectedTemplate:16,_templateState:16,viewModel:0,messages:0,showTemplateSelector:0}}static{this.styles=h}loaded(){this.manager.onLifecycle(()=>[d(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(d(()=>this._selectedTemplate?.state,t=>this._templateState=t??"not-loaded",{initial:!0}),"template-handle")},{initial:!0})])}render(){let e=this._selectedTemplate?m(this._selectedTemplate,this.messages):this.messages.selectTemplate;return l`<calcite-block class="template-select-container" .description=${n(this._selectedTemplate)} .heading=${e} .label=${e} .loading=${this._templateState==="loading"} @click=${this.showTemplateSelector} @keydown=${t=>{(t.key==="Enter"||t.key===" ")&&this.showTemplateSelector()}} tabindex=0><calcite-icon .icon=${(this._selectedTemplate?.layout?p(this._selectedTemplate.layout):null)||"custom-print"} scale=l slot=content-start></calcite-icon>${this._templateState==="error"?l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=actions-end></calcite-icon>`:null}<calcite-icon class="template-select-arrow" .icon=${this._direction==="rtl"?"chevron-left":"chevron-right"} scale=s slot=actions-end></calcite-icon></calcite-block>`}};c("arcgis-print-template-select",a);return a},"core/reactiveUtils",a)