@arcgis/charts-components 5.2.0-next.160 → 5.2.0-next.162

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 (140) hide show
  1. package/dist/cdn/{UE4KTI5X.js → 23EBTARY.js} +2 -2
  2. package/dist/cdn/{NWITMWCT.js → 2IETCKFR.js} +1 -1
  3. package/dist/cdn/{YNOSBB23.js → 32HL4LJM.js} +1 -1
  4. package/dist/cdn/{JX5JAG7D.js → 34EBYEM7.js} +1 -1
  5. package/dist/cdn/{7ULLR4CN.js → 3L5TASX6.js} +1 -1
  6. package/dist/cdn/{VWS73BFY.js → 4SKI2UZ4.js} +1 -1
  7. package/dist/cdn/{B7NGZOWD.js → 57IBZI2Q.js} +1 -1
  8. package/dist/cdn/{6UOV5TES.js → 5RI6YXV2.js} +1 -1
  9. package/dist/cdn/{UG74S4GG.js → 6B2Q4ZZ4.js} +1 -1
  10. package/dist/cdn/{RKYMPBR5.js → 6F64K7IO.js} +1 -1
  11. package/dist/cdn/{GT7N5NKM.js → 6KA3POYJ.js} +1 -1
  12. package/dist/cdn/{D4E2DTYE.js → 6PN24NZH.js} +1 -1
  13. package/dist/cdn/{SZHT3SPH.js → 6THDMW4S.js} +1 -1
  14. package/dist/cdn/7DHOI5P2.js +4 -0
  15. package/dist/cdn/{KND6442A.js → 7HDFMHYC.js} +1 -1
  16. package/dist/cdn/{XDTACW3D.js → 7IIIIZMH.js} +1 -1
  17. package/dist/cdn/{7NDAZIXV.js → 7P6O2RHA.js} +1 -1
  18. package/dist/cdn/{OXY57UUR.js → AETI74SR.js} +1 -1
  19. package/dist/cdn/{HDQ4PVJJ.js → AHBGX7M2.js} +1 -1
  20. package/dist/cdn/{DNS4RWBT.js → AM34FK2L.js} +1 -1
  21. package/dist/cdn/{MZAJOKMM.js → ANON4Y5O.js} +1 -1
  22. package/dist/cdn/{C24TOQMU.js → AU5XPM24.js} +11 -11
  23. package/dist/cdn/{OIRY7UKP.js → AZ2Z7W7G.js} +1 -1
  24. package/dist/cdn/{LGUGOYL5.js → BPJQFWYG.js} +1 -1
  25. package/dist/cdn/{KTDX5Z2G.js → BWLIKQZM.js} +1 -1
  26. package/dist/cdn/{MMRG4Q5Q.js → C77CMKWU.js} +1 -1
  27. package/dist/cdn/{7NMS7SSF.js → CGL6HYSO.js} +1 -1
  28. package/dist/cdn/{SEBELUXK.js → CZ2QBJIW.js} +1 -1
  29. package/dist/cdn/{54WTBBPU.js → DHXQHBHG.js} +1 -1
  30. package/dist/cdn/{EI6JNZL7.js → E6TZMNXL.js} +1 -1
  31. package/dist/cdn/{DLX6ZNYG.js → ENSGJAYI.js} +1 -1
  32. package/dist/cdn/F4PYAQO2.js +2 -0
  33. package/dist/cdn/{BSNYZIRT.js → FATD355N.js} +1 -1
  34. package/dist/cdn/{R5VDLCQN.js → FN2RSJVM.js} +1 -1
  35. package/dist/cdn/{R623PW73.js → FW6RGCL5.js} +1 -1
  36. package/dist/cdn/{NDECGMQR.js → GBJ2EWWV.js} +1 -1
  37. package/dist/cdn/{HOYAL4U2.js → H3LCE55Z.js} +1 -1
  38. package/dist/cdn/{2USDPS2L.js → HFXBJYPZ.js} +1 -1
  39. package/dist/cdn/{FF4LQHDS.js → HK4Z5B22.js} +1 -1
  40. package/dist/cdn/HTC5S4WI.js +2 -0
  41. package/dist/cdn/{4T5L3BLL.js → HYQNWCWA.js} +1 -1
  42. package/dist/cdn/{DDNBFHKN.js → IDULNX4O.js} +1 -1
  43. package/dist/cdn/{7HN4DADA.js → IGHTJLIF.js} +1 -1
  44. package/dist/cdn/{OWHYUDHE.js → IJY7UQTV.js} +1 -1
  45. package/dist/cdn/{WGKZDY7Y.js → J2J3NXRC.js} +1 -1
  46. package/dist/cdn/{C5HTXSZS.js → JR2RRIKO.js} +1 -1
  47. package/dist/cdn/{DQLO4ITR.js → JXJGHXNJ.js} +1 -1
  48. package/dist/cdn/{TQUFEFBE.js → KEKVMGV6.js} +1 -1
  49. package/dist/cdn/{GPHCD6G4.js → KQ74SEOV.js} +1 -1
  50. package/dist/cdn/{YNHYJOH7.js → KSDJFASU.js} +1 -1
  51. package/dist/cdn/{UMUPYNTB.js → KX3NHKFW.js} +1 -1
  52. package/dist/cdn/{YFVUQYKO.js → L3P6D53Z.js} +1 -1
  53. package/dist/cdn/{2LV6GDYK.js → LEUIZWRV.js} +1 -1
  54. package/dist/cdn/{ECFOVMA2.js → MDZELM6Q.js} +1 -1
  55. package/dist/cdn/{JHUXUZ3V.js → MMYG2RYL.js} +1 -1
  56. package/dist/cdn/{ZBHRRQNP.js → N2FNNEOT.js} +1 -1
  57. package/dist/cdn/{QSCUSBOE.js → N5GCUS4N.js} +1 -1
  58. package/dist/cdn/NDU72CRG.js +2 -0
  59. package/dist/cdn/{Q44XXOXV.js → NSVQKFEV.js} +1 -1
  60. package/dist/cdn/{PNELR4NS.js → NTJMVBRM.js} +1 -1
  61. package/dist/cdn/{25EQGAJY.js → NW7U6HWL.js} +1 -1
  62. package/dist/cdn/{62FK6ANF.js → O2WFSEOJ.js} +1 -1
  63. package/dist/cdn/{MHIL7RCM.js → OH42GU2Y.js} +1 -1
  64. package/dist/cdn/{IQHYD6VM.js → OOJPYFJZ.js} +1 -1
  65. package/dist/cdn/{GCGZ4SRD.js → OZMMTR6U.js} +1 -1
  66. package/dist/cdn/{75J7S444.js → P7EFHM46.js} +1 -1
  67. package/dist/cdn/{NAFHJZYK.js → Q27MURSA.js} +1 -1
  68. package/dist/cdn/{5HKCWI3P.js → QPMXPJOU.js} +1 -1
  69. package/dist/cdn/{GRQ3RAS2.js → QT5HEM3R.js} +1 -1
  70. package/dist/cdn/{Y5W5WINS.js → RNKBI3X2.js} +1 -1
  71. package/dist/cdn/{AWZYMQFF.js → RRUEVNJ6.js} +1 -1
  72. package/dist/cdn/{WAESGWAL.js → SNQONC4I.js} +1 -1
  73. package/dist/cdn/{RW56D36T.js → TPWN3WU6.js} +1 -1
  74. package/dist/cdn/{K4WZTS5W.js → TWAPMNSX.js} +1 -1
  75. package/dist/cdn/{6IEIR3IJ.js → UDCAINIH.js} +1 -1
  76. package/dist/cdn/UGHZZOEP.js +2 -0
  77. package/dist/cdn/{JMC5FR6G.js → UMPUQD5F.js} +1 -1
  78. package/dist/cdn/{TWACT53N.js → UN4K7L7T.js} +1 -1
  79. package/dist/cdn/{Q6DXB7DT.js → UQCVYMWO.js} +1 -1
  80. package/dist/cdn/{VTXTISBO.js → VAP4V5TC.js} +1 -1
  81. package/dist/cdn/{YWKT5FUP.js → VBZUDWPR.js} +1 -1
  82. package/dist/cdn/{NTDBPHHL.js → VL4T7FC5.js} +1 -1
  83. package/dist/cdn/{EBMUNX44.js → VSD6BE2P.js} +1 -1
  84. package/dist/cdn/{HICARS7N.js → VY53SMFW.js} +1 -1
  85. package/dist/cdn/{O7SBBJIT.js → W2E7LFTT.js} +1 -1
  86. package/dist/cdn/{PMMT66SN.js → W6V4XEM4.js} +1 -1
  87. package/dist/cdn/{6QEBTDLJ.js → WEVL6WYI.js} +1 -1
  88. package/dist/cdn/{A5UWEHLX.js → WFCQTLQZ.js} +1 -1
  89. package/dist/cdn/WJINSWQO.js +2 -0
  90. package/dist/cdn/{TJ5BGDYZ.js → WZFDIC2M.js} +1 -1
  91. package/dist/cdn/{3GGD7KLV.js → XWZLBTHL.js} +1 -1
  92. package/dist/cdn/{PABVNO3N.js → Y5CHG4IT.js} +1 -1
  93. package/dist/cdn/{J3AUMK36.js → YAH2CORT.js} +1 -1
  94. package/dist/cdn/{ETSSSFIS.js → YFDABY5Y.js} +1 -1
  95. package/dist/cdn/{P6XYFLVZ.js → ZDM5IDLI.js} +1 -1
  96. package/dist/cdn/{YVJE3Q7H.js → ZM64YDWU.js} +1 -1
  97. package/dist/cdn/{TR3X4GPJ.js → ZNNKZGV6.js} +1 -1
  98. package/dist/cdn/{L3C4LMLQ.js → ZTMZ6GG4.js} +1 -1
  99. package/dist/cdn/index.js +1 -1
  100. package/dist/cdn/model/shared/setup-utils.js +1 -1
  101. package/dist/chunks/bar-chart-model.js +3 -3
  102. package/dist/chunks/box-plot-model.js +6 -6
  103. package/dist/chunks/chart-model.js +19 -19
  104. package/dist/chunks/combo-bar-line-chart-model.js +8 -8
  105. package/dist/chunks/gauge-model.js +16 -16
  106. package/dist/chunks/histogram-model.js +5 -5
  107. package/dist/chunks/index.js +1502 -1481
  108. package/dist/chunks/line-chart-model.js +5 -5
  109. package/dist/chunks/model-with-x-guides.js +1 -1
  110. package/dist/chunks/model-with-y-guides.js +10 -10
  111. package/dist/chunks/pie-chart-model.js +6 -6
  112. package/dist/chunks/radar-chart-model.js +1 -1
  113. package/dist/chunks/scatterplot-model.js +12 -12
  114. package/dist/chunks/serial-chart-model.js +1 -1
  115. package/dist/chunks/x-bounds.js +17 -17
  116. package/dist/components/arcgis-chart/customElement.d.ts +2 -1
  117. package/dist/components/arcgis-chart/customElement.js +90 -85
  118. package/dist/components/arcgis-charts-config-bar-chart-data/customElement.js +9 -9
  119. package/dist/components/arcgis-charts-config-bar-chart-data/index.js +0 -1
  120. package/dist/components/arcgis-charts-config-box-plot-data/customElement.js +33 -33
  121. package/dist/components/arcgis-charts-config-box-plot-data/index.js +0 -1
  122. package/dist/components/arcgis-charts-config-line-chart-data/customElement.js +19 -19
  123. package/dist/components/arcgis-charts-config-line-chart-data/index.js +0 -1
  124. package/dist/components/arcgis-charts-config-pie-chart-data/customElement.js +17 -17
  125. package/dist/components/arcgis-charts-config-pie-chart-data/index.js +1 -1
  126. package/dist/components/arcgis-charts-config-scatter-plot-aoi/customElement.js +20 -24
  127. package/dist/components/arcgis-charts-config-scatter-plot-data/customElement.js +78 -76
  128. package/dist/docs/api.json +1 -1
  129. package/dist/docs/docs.json +1 -1
  130. package/dist/docs/web-types.json +1 -1
  131. package/dist/index.js +214 -213
  132. package/dist/loader.js +1 -1
  133. package/dist/utils/components/interfaces.d.ts +7 -0
  134. package/package.json +4 -4
  135. package/dist/cdn/DGXBF4BH.js +0 -4
  136. package/dist/cdn/EX7GAUGC.js +0 -2
  137. package/dist/cdn/FS6K3PGA.js +0 -2
  138. package/dist/cdn/G37DEPFO.js +0 -2
  139. package/dist/cdn/GAFCUST3.js +0 -2
  140. package/dist/cdn/QXNM2F6D.js +0 -2
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),kt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Et)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 s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},jt=o=>new M(typeof o=="string"?o:o+"",void 0,Et),Ce=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new M(e,o,Et)},Ht=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},$t=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return jt(e)})(o):o;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,tt=globalThis,Vt=tt.trustedTypes,De=Vt?Vt.emptyScript:"",xe=tt.reactiveElementPolyfillSupport,k=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?De:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!we(o,t),zt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var A=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=zt){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 s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Oe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??zt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...Se(e),...Pe(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift($t(n))}else t!==void 0&&e.push($t(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(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,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:X;this._$Em=n;let a=i.fromAttribute(e,r.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,s,n=!1,r){if(t!==void 0){let i=this.constructor;if(n===!1&&(r=this[t]),s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!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[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}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){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[k("elementProperties")]=new Map,A[k("finalized")]=new Map,xe?.({ReactiveElement:A}),(tt.reactiveElementVersions??=[]).push("2.1.2");var At=globalThis,Bt=o=>o,et=At.trustedTypes,Wt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,_t="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+_,Le=`<${Ct}>`,T=document,V=()=>T.createComment(""),z=o=>o===null||typeof o!="object"&&typeof o!="function",wt=Array.isArray,Jt=o=>wt(o)||typeof o?.[Symbol.iterator]=="function",bt=`[
2
+ var Y=globalThis,Z=Y.ShadowRoot&&(Y.ShadyCSS===void 0||Y.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Et=Symbol(),kt=new WeakMap,M=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==Et)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 s=e!==void 0&&e.length===1;s&&(t=kt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&kt.set(e,t))}return t}toString(){return this.cssText}},jt=o=>new M(typeof o=="string"?o:o+"",void 0,Et),Ce=(o,...t)=>{let e=o.length===1?o[0]:t.reduce((s,n,r)=>s+(i=>{if(i._$cssResult$===!0)return i.cssText;if(typeof i=="number")return i;throw Error("Value passed to 'css' function must be a 'css' function result: "+i+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+o[r+1],o[0]);return new M(e,o,Et)},Ht=(o,t)=>{if(Z)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),n=Y.litNonce;n!==void 0&&s.setAttribute("nonce",n),s.textContent=e.cssText,o.appendChild(s)}},$t=Z?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return jt(e)})(o):o;var{is:we,defineProperty:Oe,getOwnPropertyDescriptor:Te,getOwnPropertyNames:Se,getOwnPropertySymbols:Pe,getPrototypeOf:Ne}=Object,tt=globalThis,zt=tt.trustedTypes,De=zt?zt.emptyScript:"",xe=tt.reactiveElementPolyfillSupport,k=(o,t)=>o,X={toAttribute(o,t){switch(t){case Boolean:o=o?De:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},j=(o,t)=>!we(o,t),Vt={attribute:!0,type:String,converter:X,reflect:!1,useDefault:!1,hasChanged:j};Symbol.metadata??=Symbol("metadata"),tt.litPropertyMetadata??=new WeakMap;var A=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=Vt){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 s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Oe(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){let{get:n,set:r}=Te(this.prototype,t)??{get(){return this[e]},set(i){this[e]=i}};return{get:n,set(i){let a=n?.call(this);r?.call(this,i),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Vt}static _$Ei(){if(this.hasOwnProperty(k("elementProperties")))return;let t=Ne(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(k("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(k("properties"))){let e=this.properties,s=[...Se(e),...Pe(e)];for(let n of s)this.createProperty(n,e[n])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let n of s)e.unshift($t(n))}else t!==void 0&&e.push($t(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ht(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,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){let r=(s.converter?.toAttribute!==void 0?s.converter:X).toAttribute(e,s.type);this._$Em=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$Em=null}}_$AK(t,e){let s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){let r=s.getPropertyOptions(n),i=typeof r.converter=="function"?{fromAttribute:r.converter}:r.converter?.fromAttribute!==void 0?r.converter:X;this._$Em=n;let a=i.fromAttribute(e,r.type);this[n]=a??this._$Ej?.get(n)??a,this._$Em=null}}requestUpdate(t,e,s,n=!1,r){if(t!==void 0){let i=this.constructor;if(n===!1&&(r=this[t]),s??=i.getPropertyOptions(t),!((s.hasChanged??j)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(i._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:n,wrapped:r},i){s&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,i??e??this[t]),r!==!0||i!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),n===!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[n,r]of this._$Ep)this[n]=r;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[n,r]of s){let{wrapped:i}=r,a=this[n];i!==!0||this._$AL.has(n)||a===void 0||this.C(n,void 0,r,a)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}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){}};A.elementStyles=[],A.shadowRootOptions={mode:"open"},A[k("elementProperties")]=new Map,A[k("finalized")]=new Map,xe?.({ReactiveElement:A}),(tt.reactiveElementVersions??=[]).push("2.1.2");var At=globalThis,Bt=o=>o,et=At.trustedTypes,Wt=et?et.createPolicy("lit-html",{createHTML:o=>o}):void 0,_t="$lit$",_=`lit$${Math.random().toFixed(9).slice(2)}$`,Ct="?"+_,Ue=`<${Ct}>`,T=document,z=()=>T.createComment(""),V=o=>o===null||typeof o!="object"&&typeof o!="function",wt=Array.isArray,Jt=o=>wt(o)||typeof o?.[Symbol.iterator]=="function",bt=`[
3
3
  \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ft=/-->/g,qt=/>/g,w=RegExp(`>|${bt}(?:([^\\s"'>=/]+)(${bt}*=${bt}*(?:[^
4
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=Ot(1),ys=Ot(2),gs=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Qt=new WeakMap,O=T.createTreeWalker(T,129);function Zt(o,t){if(!wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Xt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Le:h>=0?(s.push(l),c.slice(0,h)+_t+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Zt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Xt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(_t)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Yt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],V()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],V())}}}else if(n.nodeType===8)if(n.data===Ct)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=z(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),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:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new L(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},L=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.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),z(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):Jt(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&&z(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Zt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Qt.get(t.strings);return e===void 0&&Qt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(V()),this.O(V()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Bt(t).nextSibling;Bt(t).remove(),t=s}}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,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!z(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!z(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&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}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&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)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:_t,P:_,A:Ct,C:1,L:Xt,R:st,D:Jt,V:S,I:L,H:P,N:nt,U:rt,B:ot,F:it},Ue=At.litHtmlPolyfillSupport;Ue?.(B,L),(At.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new L(t.insertBefore(V(),r),r,void 0,e??{})}return n._$AI(o),n};var Tt=globalThis,E=class extends A{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}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Re=Tt.litElementPolyfillSupport;Re?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=oe(t);if(s?.once){let i=`${o}${n}${e}`;if(ee.has(i))return;ee.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;se?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else se?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},ne=o=>{let t=`[${oe(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Ls=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],lt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,U,Us=o=>{U!==o&&(U=o,queueMicrotask(()=>U===o?U=void 0:0))},Me=()=>{let o=U;return U=void 0,o},ie=async(o,t)=>{let e=ht(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=ht(o);return await t.ready,t},ht=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var Ve=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},ze=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(lt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),ht}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.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.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.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var pe=St;var{I:qe}=te,ue=o=>o;var dt=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},pt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(pt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),pt(s[r]);else s!=null&&(K(s,!1),pt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},ut=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(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 ro=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ut{render(o){return d}update(o,[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=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.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 ft=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var Lt=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Ut={};function Rt(){}function It(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),J=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},mt=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ft(t[0])]:t},es=globalThis.HTMLElement??Rt,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(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(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??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{It(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Lt(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{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=gt in t&&typeof t.destroy=="function",E.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 ${gt} 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),lt(void 0),D(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=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(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)}},ns=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.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(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Ut;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ft(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{It(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Ut?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??Lt(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},xn=$(Mt);var Ln=d;var Un=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://jsdev.arcgis.com/5.2.0-next/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:Vn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Ls as a,D as b,lt as c,re as d,Us as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,St as o,pe as p,Xe as q,y as r,$ as s,g as t,qs as u,Gs as v,me as w,Ks as x,Qs as y,ro as z,Dt as A,be as B,Nn as C,Dn as D,Ln as E,Un as F,Q as G,jn as H,Hn as I};
4
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Gt=/'/g,Kt=/"/g,Yt=/^(?:script|style|textarea|title)$/i,Ot=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),ms=Ot(1),ys=Ot(2),gs=Ot(3),f=Symbol.for("lit-noChange"),d=Symbol.for("lit-nothing"),Qt=new WeakMap,O=T.createTreeWalker(T,129);function Zt(o,t){if(!wt(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Wt!==void 0?Wt.createHTML(t):t}var Xt=(o,t)=>{let e=o.length-1,s=[],n,r=t===2?"<svg>":t===3?"<math>":"",i=H;for(let a=0;a<e;a++){let c=o[a],l,u,h=-1,m=0;for(;m<c.length&&(i.lastIndex=m,u=i.exec(c),u!==null);)m=i.lastIndex,i===H?u[1]==="!--"?i=Ft:u[1]!==void 0?i=qt:u[2]!==void 0?(Yt.test(u[2])&&(n=RegExp("</"+u[2],"g")),i=w):u[3]!==void 0&&(i=w):i===w?u[0]===">"?(i=n??H,h=-1):u[1]===void 0?h=-2:(h=i.lastIndex-u[2].length,l=u[1],i=u[3]===void 0?w:u[3]==='"'?Kt:Gt):i===Kt||i===Gt?i=w:i===Ft||i===qt?i=H:(i=w,n=void 0);let v=i===w&&o[a+1].startsWith("/>")?" ":"";r+=i===H?c+Ue:h>=0?(s.push(l),c.slice(0,h)+_t+c.slice(h)+_+v):c+_+(h===-2?a:v)}return[Zt(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},B=class o{constructor({strings:t,_$litType$:e},s){let n;this.parts=[];let r=0,i=0,a=t.length-1,c=this.parts,[l,u]=Xt(t,e);if(this.el=o.createElement(l,s),O.currentNode=this.el.content,e===2||e===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(n=O.nextNode())!==null&&c.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let h of n.getAttributeNames())if(h.endsWith(_t)){let m=u[i++],v=n.getAttribute(h).split(_),C=/([.?@])?(.*)/.exec(m);c.push({type:1,index:r,name:C[2],strings:v,ctor:C[1]==="."?ot:C[1]==="?"?nt:C[1]==="@"?rt:P}),n.removeAttribute(h)}else h.startsWith(_)&&(c.push({type:6,index:r}),n.removeAttribute(h));if(Yt.test(n.tagName)){let h=n.textContent.split(_),m=h.length-1;if(m>0){n.textContent=et?et.emptyScript:"";for(let v=0;v<m;v++)n.append(h[v],z()),O.nextNode(),c.push({type:2,index:++r});n.append(h[m],z())}}}else if(n.nodeType===8)if(n.data===Ct)c.push({type:2,index:r});else{let h=-1;for(;(h=n.data.indexOf(_,h+1))!==-1;)c.push({type:7,index:r}),h+=_.length-1}r++}}static createElement(t,e){let s=T.createElement("template");return s.innerHTML=t,s}};function S(o,t,e=o,s){if(t===f)return t;let n=s!==void 0?e._$Co?.[s]:e._$Cl,r=V(t)?void 0:t._$litDirective$;return n?.constructor!==r&&(n?._$AO?.(!1),r===void 0?n=void 0:(n=new r(o),n._$AT(o,e,s)),s!==void 0?(e._$Co??=[])[s]=n:e._$Cl=n),n!==void 0&&(t=S(o,n._$AS(o,t.values),n,s)),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:s}=this._$AD,n=(t?.creationScope??T).importNode(e,!0);O.currentNode=n;let r=O.nextNode(),i=0,a=0,c=s[0];for(;c!==void 0;){if(i===c.index){let l;c.type===2?l=new U(r,r.nextSibling,this,t):c.type===1?l=new c.ctor(r,c.name,c.strings,this,t):c.type===6&&(l=new it(r,this,t)),this._$AV.push(l),c=s[++a]}i!==c?.index&&(r=O.nextNode(),i++)}return O.currentNode=T,n}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},U=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,n){this.type=2,this._$AH=d,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=n,this._$Cv=n?.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),V(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):Jt(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&&V(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,n=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(Zt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===n)this._$AH.p(e);else{let r=new st(n,this),i=r.u(this.options);r.p(e),this.T(i),this._$AH=r}}_$AC(t){let e=Qt.get(t.strings);return e===void 0&&Qt.set(t.strings,e=new B(t)),e}k(t){wt(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,n=0;for(let r of t)n===e.length?e.push(s=new o(this.O(z()),this.O(z()),this,this.options)):s=e[n],s._$AI(r),n++;n<e.length&&(this._$AR(s&&s._$AB.nextSibling,n),e.length=n)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Bt(t).nextSibling;Bt(t).remove(),t=s}}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,s,n,r){this.type=1,this._$AH=d,this._$AN=void 0,this.element=t,this.name=e,this._$AM=n,this.options=r,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=d}_$AI(t,e=this,s,n){let r=this.strings,i=!1;if(r===void 0)t=S(this,t,e,0),i=!V(t)||t!==this._$AH&&t!==f,i&&(this._$AH=t);else{let a=t,c,l;for(t=r[0],c=0;c<r.length-1;c++)l=S(this,a[s+c],e,c),l===f&&(l=this._$AH[c]),i||=!V(l)||l!==this._$AH[c],l===d?t=d:t!==d&&(t+=(l??"")+r[c+1]),this._$AH[c]=l}i&&!n&&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}},nt=class extends P{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==d)}},rt=class extends P{constructor(t,e,s,n,r){super(t,e,s,n,r),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??d)===f)return;let s=this._$AH,n=t===d&&s!==d||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==d&&(s===d||n);n&&this.element.removeEventListener(this.name,this,s),r&&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)}},it=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},te={M:_t,P:_,A:Ct,C:1,L:Xt,R:st,D:Jt,V:S,I:U,H:P,N:nt,U:rt,B:ot,F:it},Le=At.litHtmlPolyfillSupport;Le?.(B,U),(At.litHtmlVersions??=[]).push("3.3.2");var at=(o,t,e)=>{let s=e?.renderBefore??t,n=s._$litPart$;if(n===void 0){let r=e?.renderBefore??null;s._$litPart$=n=new U(t.insertBefore(z(),r),r,void 0,e??{})}return n._$AI(o),n};var Tt=globalThis,E=class extends A{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}};E._$litElement$=!0,E.finalized=!0,Tt.litElementHydrateSupport?.({LitElement:E});var Re=Tt.litElementPolyfillSupport;Re?.({LitElement:E});(Tt.litElementVersions??=[]).push("4.2.2");var ee=new Set,se;var oe=o=>typeof o=="string"?o:"el"in o?o.el.localName:"localName"in o?o.localName:o.declaredClass,Ns=(o,t,e,s)=>{let n=oe(t);if(s?.once){let i=`${o}${n}${e}`;if(ee.has(i))return;ee.add(i)}let r;if(s?.detail){r={};for(let[i,a]of Object.entries(s.detail))if((typeof a=="object"||typeof a=="function")&&a!==null){let c=new WeakRef(a);Object.defineProperty(r,i,{enumerable:!0,get(){return c.deref()}})}else r[i]=a;se?.log.interceptors?.forEach(i=>i(o,n,e,r)),console[o](`[${n}]: ${e}`,r)}else se?.log.interceptors?.forEach(i=>i(o,n,e)),console[o](`[${n}]: ${e}`)},ne=o=>{let t=`[${oe(o)}] `;return e=>{let s=e instanceof Error&&e.message?e:new Error(String(e));s.message=`${t}${s.message}`,setTimeout(()=>{throw e})}};var p=(o,t,...e)=>{try{return o?.call(t,...e)}catch(s){console.error(s,o)}},W=async(o,t,...e)=>{try{return await o?.call(t,...e)}catch(s){console.error(s,o)}};var q=Symbol.for("controller"),Ie=o=>typeof o=="object"&&o!==null&&(q in o||"hostConnected"in o||"hostDisconnected"in o||"hostUpdate"in o||"hostUpdated"in o),Us=o=>typeof o?.then=="function";var F,D=o=>{F!==o&&(F=o,queueMicrotask(()=>F===o?F=void 0:0))},G=o=>F,N=[],lt=o=>{if(o===void 0){N=[];return}let t=N.indexOf(o);N=t===-1?[...N,o]:N.slice(0,t+1),queueMicrotask(()=>N=[])},re=()=>N,L,Ls=o=>{L!==o&&(L=o,queueMicrotask(()=>L===o?L=void 0:0))},Me=()=>{let o=L;return L=void 0,o},ie=async(o,t)=>{let e=ht(o);if(e===void 0)return o;if(await e.ready,typeof t=="function"){let s=e.watchExports(n=>t(n,s))}return e.exports},ae=async o=>{let t=ht(o);return await t.ready,t},ht=o=>{let e=G().manager.X(o);if(e!==void 0)return e;if(Ie(o))return o;let s=Me();if(s!==void 0)return s},ct=!1,Rs=o=>{ct=!0;try{return o()}finally{ct=!1}};var b=class{constructor(){this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}};var ce=(o,t)=>{let e=t>ke?je:t/He,s=0,n=setInterval(()=>{s+=e,s>=t&&(clearInterval(n),o())},e);return n},ke=4e3,je=2e3,He=4;var ze=(o,t,e)=>{let s=Object.keys(o),n=s.length;R===void 0&&queueMicrotask(I),R??=new Map;let r=R.get(o);return r===void 0&&(r={callbacks:[],keyCount:n},R.set(o,r)),r.keyCount!==n&&(r.callbacks.forEach(i=>i(s)),r.callbacks=[],r.keyCount=n),r.callbacks.push(i=>{let a=l=>p(t,null,l),c=i[n];c===void 0?a(void 0):o[c]===e?a(c):a(void 0)}),e},R,I=()=>{R?.forEach(({callbacks:o},t)=>{let e=Object.keys(t);o.forEach(s=>s(e))}),R=void 0},Ve=(o,t,e)=>{let s=o.manager;return s.V!==d&&s.V!==e&&s.S(void 0,void 0),s.T.length===0&&queueMicrotask(()=>s.S(void 0,void 0)),s.V=e,s.T.push((n,r)=>p(t,void 0,e===r?n:void 0)),e},Be=(o=[G(),...re()],t,e)=>{let s=Array.isArray(o)?o:[o],n=s.length+1,r=i=>{n-=1,i!==void 0&&(n=Math.min(n,0)),n===0&&t(i)};s.forEach(i=>ze(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!1}),e));for(let i of s)if("manager"in i&&i.manager.component===i){Ve(i,a=>r(a===void 0?void 0:{key:a,host:i,isReactive:!0}),e);break}return e},We=(o="",t={},e=G())=>{let s={emit:n=>{o===""&&I();let r=new CustomEvent(o,{detail:n,cancelable:!0,bubbles:!0,composed:!0,...t});return e.el.dispatchEvent(r),r}};return o===""&&Be(void 0,n=>o=n.key,s),s},Fe=We.bind(null,""),de;de=q;var St=class{constructor(t){this.#t=[],this.#e=[],this.#s=[],this.#n=[],this.#r=[],this.#c=[],this.#l=[],this.#d=[],this.#i=[],this.#p=!1,this.P=new b,this.connectedCalled=!1,this.loadedCalled=!1,this[de]=!0,this.#h=[];let e=this,s=t??G(new.target.name);e.#o=s,e.ready=e.P.promise,e.#a=he(e),e.component=s,e.#o.addController(e),e.#o.manager===void 0||(lt(e),queueMicrotask(()=>e.catchUpLifecycle()))}#t;#e;#s;#n;#r;#c;#l;#d;#i;#p;#o;catchUpLifecycle(){let{manager:t}=this.#o;t.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),t.#p&&this.triggerLoad().then(()=>t.loadedCalled&&this.triggerLoaded()).catch(ne(this.#o))}#a;get exports(){return this.#a}set exports(t){let e=this.#a;e!==t&&(this.#a=t,this.#h.forEach(p),this.connectedCalled&&this.O!==!1&&this.#o.requestUpdate(this.O,e)),this.P.resolve(t)}setProvisionalExports(t,e=!0){this.#a=e?he(t):t,this.#h.forEach(p)}#h;watchExports(t){let e=()=>t(this.#a);return this.#h.push(e),()=>{this.#h.splice(this.#h.indexOf(e),1)}}get use(){return D(this.#o),ie}get useRef(){return D(this.#o),ae}get useRefSync(){return D(this.#o),ht}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.#n.push(t)}onUpdate(t){this.#r.push(t)}onUpdated(t){this.#c.push(t)}onDestroy(t){this.#l.push(t)}onLifecycle(t){this.#d.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.#i.forEach(p),t.#i=[]}async triggerLoad(){if(this.#p)return;this.#p=!0;let t=this;t.hostLoad&&await W(t.hostLoad,t),this.#s.length>0&&await Promise.allSettled(this.#s.map(W)),this.P.resolve(this.#a)}triggerLoaded(){this.loadedCalled||(this.hostLoaded&&p(this.hostLoaded,this),this.#n.forEach(p),this.loadedCalled=!0)}triggerUpdate(t){this.hostUpdate&&p(this.hostUpdate,this,t),this.#r.forEach(le,t)}triggerUpdated(t){this.hostUpdated&&p(this.hostUpdated,this,t),this.#c.forEach(le,t)}triggerDestroy(){this.hostDestroy&&p(this.hostDestroy,this),this.#l.forEach(p)}triggerLifecycle(){this.hostLifecycle&&this.#u(()=>this.hostLifecycle()),this.#d.forEach(this.#u,this)}#u(t){D(this.#o);let e=p(t);(Array.isArray(e)?e:[e]).forEach(n=>{typeof n=="function"?this.#i.push(n):typeof n=="object"&&typeof n.remove=="function"&&this.#i.push(n.remove)})}};function le(o){p(o,void 0,this)}var he=o=>{if(typeof o!="object"&&typeof o!="function"||o===null)return o;let t={get(s,n,r){if(!((n==="exports"||n==="_exports")&&n in s&&s[n]===e)&&(n in s||n in Promise.prototype||typeof n=="symbol"))return typeof s=="function"?s[n]:Reflect.get(s,n,r)}},e=new Proxy(o,t);return e};var pe=St;var{I:qe}=te,ue=o=>o;var dt=o=>o.strings===void 0,fe=()=>document.createComment(""),qs=(o,t,e)=>{let s=o._$AA.parentNode,n=t===void 0?o._$AB:t._$AA;if(e===void 0){let r=s.insertBefore(fe(),n),i=s.insertBefore(fe(),n);e=new qe(r,i,o,o.options)}else{let r=e._$AB.nextSibling,i=e._$AM,a=i!==o;if(a){let c;e._$AQ?.(o),e._$AM=o,e._$AP!==void 0&&(c=o._$AU)!==i._$AU&&e._$AP(c)}if(r!==n||a){let c=e._$AA;for(;c!==r;){let l=ue(c).nextSibling;ue(s).insertBefore(c,n),c=l}}}return e},Gs=(o,t,e=o)=>(o._$AI(t,e),o),Ge={},me=(o,t=Ge)=>o._$AH=t,Ks=o=>o._$AH,Qs=o=>{o._$AR(),o._$AA.remove()};var y={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},$=o=>(...t)=>({_$litDirective$:o,values:t}),g=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};var K=(o,t)=>{let e=o._$AN;if(e===void 0)return!1;for(let s of e)s._$AO?.(t,!1),K(s,t);return!0},pt=o=>{let t,e;do{if((t=o._$AM)===void 0)break;e=t._$AN,e.delete(o),o=t}while(e?.size===0)},ye=o=>{for(let t;t=o._$AM;o=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(o))break;e.add(o),Je(t)}};function Ke(o){this._$AN!==void 0?(pt(this),this._$AM=o,ye(this)):this._$AM=o}function Qe(o,t=!1,e=0){let s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)K(s[r],!1),pt(s[r]);else s!=null&&(K(s,!1),pt(s));else K(this,o)}var Je=o=>{o.type==y.CHILD&&(o._$AP??=Qe,o._$AQ??=Ke)},ut=class extends g{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),ye(this),this.isConnected=t._$AU}_$AO(t,e=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),e&&(K(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 ro=()=>new Nt,Nt=class{},Pt=new WeakMap,Dt=$(class extends ut{render(o){return d}update(o,[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=o.options?.host,this.rt(this.ct=o.element)),d}rt(o){if(this.isConnected||(o=void 0),typeof this.G=="function"){let t=this.ht??globalThis,e=Pt.get(t);e===void 0&&(e=new WeakMap,Pt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ht,void 0),e.set(this.G,o),o!==void 0&&this.G.call(this.ht,o)}else this.G.value=o}get lt(){return typeof this.G=="function"?Pt.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 ft=o=>o.replace(Ze,(t,e)=>`${e===0?"":"-"}${t.toLowerCase()}`),Ze=/[A-Z]+(?![a-z])|[A-Z]/gu;var Eo="randomUUID"in crypto;var Ut=o=>{let t=o;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let e=t;return e.manager?.loadedCalled||(e.J??e._offspring).push(o),(e.I??e._postLoad).promise}return!1},Lt={};function Rt(){}function It(o){for(let t of["Associated","Disabled","Reset","StateRestore"]){let e=`orm${t}Callback`;o.prototype["f"+e]=async function(...s){await this.componentOnReady(),(this.el??this).dispatchEvent(new CustomEvent(`luminaF${e}`,{detail:s}))}}}var Xe=(o,t)=>function(s,n){if(!globalThis.customElements)return;let i=(n??s??{}).resourcesUrl;i&&o.setAssetPath(i);for(let[a,[c,l="",u=0]]of Object.entries(t)){if(customElements.get(a))continue;let[h,m,v]=l.split(";"),C=h?h?.split(",").map(ts):void 0,vt=C?.map(([x])=>x),J=class extends xt{static{this.formAssociated=u===1}static{this.observedAttributes=C?.map(([,x])=>x).filter(x=>x!=="")}static{this.C=vt}static{this.E=m?m?.split(","):void 0}static{this.D=v?.split(",")}static{this.L=a}static{this.K=o}constructor(){!J.B&&(J.B=c(),J.F()),super()}};customElements.define(a,J)}},mt=Object.defineProperty,ts=o=>{let t=o.split(":");return t.length===1?[t[0],ft(t[0])]:t},es=globalThis.HTMLElement??Rt,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(s=>{Object.hasOwn(t,s)&&(t.#e[s]=t[s],delete t[s])}),e.A?t.#n({a:e.A}):e.B.then(async s=>{await e.K.p,t.#n(await(s.default?.then(n=>typeof n=="function"?{a:n}:n)??s))}).catch(s=>{t.H.reject(s),setTimeout(()=>{throw s})})}static{this.lumina=!0}static F(){for(let t of this.C??[])mt(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this.#e[t]},set(e){this.#e[t]=e}});for(let t of this.E??[])mt(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??[])mt(this.prototype,t,{value(...e){return this.#t[t](...e)},configurable:!0})}static{It(this)}#t;#e;#s;get manager(){return this.#t?.manager}attributeChangedCallback(t,e,s){this.#t?.attributeChangedCallback(t,e,s),this.#t||this.#s.push(t)}connectedCallback(){this.#t?this.#t.connectedCallback?.():queueMicrotask(()=>this.G=Ut(this))}disconnectedCallback(){this.#t?.disconnectedCallback?.()}async componentOnReady(){return await this.H.promise,this}#n(t){let e=this.constructor,s=e.L,n=this.#e,r=Object.values(t).find(h=>h.L===s),i=`${s}--lazy`,a=r;for(;a&&!Object.hasOwn(a,"lumina");)a=Object.getPrototypeOf(a);os(a),!e.A&&(e.A=r,customElements.define(i,r)),r.N=this;let l=document.createElement(i);r.N=void 0,this.#t=l,this.#e=l,this.#s.forEach(h=>l.attributeChangedCallback(h,null,this.getAttribute(h))),Object.entries(n).forEach(ss,l);let u=this.isConnected;(u||this.G)&&(l.connectedCallback?.(),u||l.disconnectedCallback())}addController(){}requestUpdate(){this.#t?.requestUpdate()}};function ss([o,t]){this[o]=t}var os=o=>{let t=o.prototype,e=Element.prototype;Object.hasOwn(t,"isConnected")||(t.setAttribute=function(n,r){e.setAttribute.call(this.el,n,r)},t.removeAttribute=function(n){e.removeAttribute.call(this.el,n)},t.hasAttribute=function(n){return e.hasAttribute.call(this.el,n)},mt(t,"isConnected",{get(){return Reflect.get(e,"isConnected",this.el)}}))};var yt=class extends pe{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=gt in t&&typeof t.destroy=="function",E.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 ${gt} 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),lt(void 0),D(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=()=>{this.#e.destroy()};this.#t=ce(t,ns)}}S(t,e){let s=this.T;this.V=d,this.T=[],s.forEach(n=>n(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)}},ns=1e3,gt="autoDestroyDisabled";var ve=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="class"||o.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(o){return" "+Object.keys(o).filter(t=>o[t]).join(" ")+" "}update(o,[t]){if(this.st===void 0){this.st=new Set,o.strings!==void 0&&(this.nt=new Set(o.strings.join(" ").split(/\s/).filter(s=>s!=="")));for(let s in t)t[s]&&!this.nt?.has(s)&&this.st.add(s);return this.render(t)}let e=o.element.classList;for(let s of this.st)s in t||(e.remove(s),this.st.delete(s));for(let s in t){let n=!!t[s];n===this.st.has(s)||this.nt?.has(s)||(n?(e.add(s),this.st.add(s)):(e.remove(s),this.st.delete(s)))}return f}});var Ee="important",rs=" !"+Ee,$e=$(class extends g{constructor(o){if(super(o),o.type!==y.ATTRIBUTE||o.name!=="style"||o.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(o){return Object.keys(o).reduce((t,e)=>{let s=o[e];return s==null?t:t+`${e=e.includes("-")?e:e.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${s};`},"")}update(o,[t]){let{style:e}=o.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let s of this.ft)t[s]==null&&(this.ft.delete(s),s.includes("-")?e.removeProperty(s):e[s]=null);for(let s in t){let n=t[s];if(n!=null){this.ft.add(s);let r=typeof n=="string"&&n.endsWith(rs);s.includes("-")||r?e.setProperty(s,r?n.slice(0,-11):n,r?Ee:""):e[s]=n}}return f}});var is=$(class extends g{constructor(o){if(super(o),o.type!==y.PROPERTY&&o.type!==y.ATTRIBUTE&&o.type!==y.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!dt(o))throw Error("`live` bindings can only contain a single expression")}render(o){return o}update(o,[t]){if(t===f||t===d)return t;let e=o.element,s=o.name;if(o.type===y.PROPERTY){if(t===e[s])return f}else if(o.type===y.BOOLEAN_ATTRIBUTE){if(!!t===e.hasAttribute(s))return f}else if(o.type===y.ATTRIBUTE&&e.getAttribute(s)===t+"")return f;return me(o),t}});var be=class o extends E{constructor(){super(),this.M=[],this.manager=new yt(this);let t=this,e=t.constructor,s=e.N,n=e.K.o,r=o.prototype.shouldUpdate;t.#n=s?.H??new b,t.I=s?.I??new b,t.J=s?.J??[],t._offspring=t.J,t._postLoad=t.I,t.el=s??t,t.#s=t.enableUpdating,t.enableUpdating=Rt,t.shouldUpdate!==r&&(t.#e=t.shouldUpdate,t.shouldUpdate=r),n&&(t.#t=new Map,e.elementProperties.forEach((i,a)=>t.#t.set(a,n()))),!1}static finalizeStyles(t){let e=super.finalizeStyles(t),s=this.shadowRootOptions===Lt;return this.K?.commonStyles===void 0||s?e:[this.K.commonStyles,...e]}static createProperty(t,e){let s=typeof e=="number"?e:Array.isArray(e)?e[0]:0,n=Array.isArray(e)?e[1]:void 0,r=n?.hasChanged??j,i={attribute:s&1&&typeof t=="string"?ft(t):!1,reflect:!!(s&2),type:s&4?Boolean:s&8?Number:void 0,state:!!(s&16),readOnly:!!(s&32),noAccessor:!!(s&64),useDefault:!!(s&128),c:!1,...n,hasChanged(a,c){let l=r(a,c);return i.c=l,l}};super.createProperty(t,i)}static getPropertyDescriptor(t,e,s){let n=this.K,r=super.getPropertyDescriptor(t,e,s);return s.d=r,{...r,get(){return n.t?.(this.#t.get(t)),r.get?.call(this)},set(i){let a=this.manager;if(s.readOnly&&!ct&&(a.R||a.connectedCalled))throw Error(`Cannot assign to read-only property "${t}" of ${this.el.localName}. Trying to assign "${i}"`);r.set.call(this,i??void 0),s.c&&this.#t?.get(t)?.notify(),a.T.length>0&&(I(),a?.S(t,i))}}}static{this.lumina=!0}static{It(this)}#t;#e;#s;#n;#r;#c;get elementInternals(){return this.#c??=this.el.attachInternals(),this.#c}connectedCallback(){this.hasAttribute("defer-hydration")||this.#l(!0)}#l(t){let e=this.constructor.K.c?.(()=>this.requestUpdate());this.#r=e;let s=!this.manager.connectedCalled;t&&super.connectedCallback(),s?queueMicrotask(()=>this.#i().catch(n=>{this.#n.reject(n),setTimeout(()=>{throw n})})):e&&this.requestUpdate()}#d(t){try{this.#r.clear(),this.constructor.K.r(this.#r,()=>super.update(t))}catch(e){throw this.#r.clear(),e}}disconnectedCallback(){super.disconnectedCallback(),this.#r?.destroy(),this.#r=void 0}createRenderRoot(){let t=this.el.shadowRoot,e=this.constructor,s=e.shadowRootOptions,r=t??(s===Lt?this.el:this.el.attachShadow(s));if(t)return this.manager.connectedCalled||this.#l(!1),E.prototype.createRenderRoot.call(this),t;if(this.isConnected){let i=r.getRootNode();i.adoptedStyleSheets=[...i.adoptedStyleSheets,...e.elementStyles.map(a=>"styleSheet"in a?a.styleSheet:a)]}return r}async#i(){let t=this.el.G??Ut(this.el);t&&await t;let e=[];for(let n of this.M)"triggerLoad"in n?e.push(n.triggerLoad()):e.push(W(n.hostLoad,n));await Promise.all(e),await this.load?.(),this.manager.hasDestroy&&this.manager.onUpdate(n=>n.has(gt)&&this.manager.U()),this.#s(!0),this.performUpdate(),this.I.resolve(),await 0;let s=this.J.filter(n=>!n.manager?.loadedCalled);s.length&&await Promise.allSettled(s.map(async n=>await n.componentOnReady())),this.J.length=0,this.el.setAttribute(this.constructor.K.hydratedAttribute,"");for(let n of this.M)"triggerLoaded"in n?n.triggerLoaded():p(n.hostLoaded,n);this.loaded?.(),this.#n.resolve()}shouldUpdate(t){return this.manager.Q=t,this.#e?.(t)??!0}update(t){this.#r?this.#d(t):super.update(t)}listen(t,e,s){let n=e?.bind(this)??e;this.manager.onLifecycle(()=>(this.el.addEventListener(t,n,s),()=>this.el.removeEventListener(t,n,s)))}listenOn(t,e,s,n){let r=s?.bind(this)??s;this.manager.onLifecycle(()=>(t.addEventListener(e,r,n),()=>t.removeEventListener(e,r,n)))}async componentOnReady(){return await this.#n.promise,this}addController(t){this.M.push(t),!(q in t)&&this.renderRoot&&this.el.isConnected&&t.hostConnected?.()}removeController(t){this.M.splice(this.M.indexOf(t),1),t.controllerRemoved?.()}};var _e=o=>{let t,e=n=>{t=new URL(n,globalThis.location?.href||void 0).href},s={...o,getAssetPath(n){let r=new URL(n,t);return r.origin!==globalThis.location?.origin?r.href:r.pathname},setAssetPath:e,customElement(n,r){r.K=s,r.L=n,customElements.get(n)||customElements.define(n,r)}};return e(o.defaultAssetPath),s};var Nn=o=>typeof o=="object"&&o!=null?ve(o):o,Dn=o=>typeof o=="object"&&o!=null?$e(o):o;var Mt=class extends g{#t;#e;constructor(t){super(t);let e=this;this.#e=function(n){return e.#t.call(this,n)}}render(t){return typeof t=="function"?(this.#t=t,Dt(this.#e)):Dt(t)}},xn=$(Mt);var Un=d;var Ln=o=>{let t=document.createElement("div");return at(o,t),t.firstElementChild};var Q=_e({defaultAssetPath:"https://jsdev.arcgis.com/5.2.0-next/charts-components/",hydratedAttribute:"hydrated"}),{customElement:jn,getAssetPath:Hn,setAssetPath:zn}=Q;Q.t=void 0;Q.o=void 0;Q.c=void 0;Q.r=void 0;export{Us as a,D as b,lt as c,re as d,Ls as e,Rs as f,Ce as g,j as h,ms as i,f as j,d as k,Ns as l,Be as m,Fe as n,St as o,pe as p,Xe as q,y as r,$ as s,g as t,qs as u,Gs as v,me as w,Ks as x,Qs as y,ro as z,Dt as A,be as B,Nn as C,Dn as D,Un as E,Ln as F,Q as G,jn as H,Hn as I};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{B as a,C as i,H as s,g as t,i as c}from"./UE4KTI5X.js";import"./BYSUABOV.js";var e={fieldPickerButtonSection:"field-picker-btn-section",fieldPickerButton:"field-picker-btn",fieldPickerButtonText:"field-picker-btn-text",fieldPickerButtonIcon:"field-picker-btn-icon",fieldPickerButtonInvalid:"field-picker-btn-invalid"},d=t`.field-picker-btn-section{background-color:var(--arcgis-charts-input-background);min-width:100%}.field-picker-btn{background:var(--arcgis-charts-background-clear);border:1px solid;border-radius:var(--arcgis-charts-border-radius);display:flex;align-items:center;justify-content:space-between;padding:var(--arcgis-charts-side-spacing-half) var(--arcgis-charts-side-spacing-quarter);cursor:pointer;width:100%;text-align:unset}.field-picker-btn:not(.field-picker-btn-invalid){border-color:var(--arcgis-charts-border)}.field-picker-btn.field-picker-btn-invalid{border-color:var(--arcgis-charts-border-invalid)}.field-picker-btn-exp{width:calc(100% - 32px)}.field-picker-btn-exp .field-picker-btn{border:none;border-radius:0;border-right:1px solid var(--arcgis-charts-border)}.field-picker-btn-text{flex:0 1 auto;overflow:hidden;padding:0 var(--arcgis-charts-side-spacing-eighth);text-overflow:ellipsis;white-space:nowrap}.field-picker-btn-icon{flex:0 0 0%;padding:0 var(--arcgis-charts-side-spacing-half)}.field-picker-btn:disabled{cursor:default}`,r=class extends a{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1}static{this.properties={label:1,disabled:5,invalid:5}}static{this.styles=d}render(){let n=`${e.fieldPickerButton} ${this.invalid?e.fieldPickerButtonInvalid:""}`;return c`<div class=${i(e.fieldPickerButtonSection)}><button class=${i(n)} .disabled=${this.disabled}><span class=${i(e.fieldPickerButtonText)}>${this.label}</span><slot name=fieldPickerSlot></slot><span class=${i(e.fieldPickerButtonIcon)}><calcite-icon scale=s icon=chevron-down></calcite-icon></span></button></div>`}};s("arcgis-charts-config-field-picker",r);export{r as ArcgisChartsConfigFieldPicker};
2
+ import{B as a,C as i,H as s,g as t,i as c}from"./23EBTARY.js";import"./BYSUABOV.js";var e={fieldPickerButtonSection:"field-picker-btn-section",fieldPickerButton:"field-picker-btn",fieldPickerButtonText:"field-picker-btn-text",fieldPickerButtonIcon:"field-picker-btn-icon",fieldPickerButtonInvalid:"field-picker-btn-invalid"},d=t`.field-picker-btn-section{background-color:var(--arcgis-charts-input-background);min-width:100%}.field-picker-btn{background:var(--arcgis-charts-background-clear);border:1px solid;border-radius:var(--arcgis-charts-border-radius);display:flex;align-items:center;justify-content:space-between;padding:var(--arcgis-charts-side-spacing-half) var(--arcgis-charts-side-spacing-quarter);cursor:pointer;width:100%;text-align:unset}.field-picker-btn:not(.field-picker-btn-invalid){border-color:var(--arcgis-charts-border)}.field-picker-btn.field-picker-btn-invalid{border-color:var(--arcgis-charts-border-invalid)}.field-picker-btn-exp{width:calc(100% - 32px)}.field-picker-btn-exp .field-picker-btn{border:none;border-radius:0;border-right:1px solid var(--arcgis-charts-border)}.field-picker-btn-text{flex:0 1 auto;overflow:hidden;padding:0 var(--arcgis-charts-side-spacing-eighth);text-overflow:ellipsis;white-space:nowrap}.field-picker-btn-icon{flex:0 0 0%;padding:0 var(--arcgis-charts-side-spacing-half)}.field-picker-btn:disabled{cursor:default}`,r=class extends a{constructor(){super(...arguments),this.disabled=!1,this.invalid=!1}static{this.properties={label:1,disabled:5,invalid:5}}static{this.styles=d}render(){let n=`${e.fieldPickerButton} ${this.invalid?e.fieldPickerButtonInvalid:""}`;return c`<div class=${i(e.fieldPickerButtonSection)}><button class=${i(n)} .disabled=${this.disabled}><span class=${i(e.fieldPickerButtonText)}>${this.label}</span><slot name=fieldPickerSlot></slot><span class=${i(e.fieldPickerButtonIcon)}><calcite-icon scale=s icon=chevron-down></calcite-icon></span></button></div>`}};s("arcgis-charts-config-field-picker",r);export{r as ArcgisChartsConfigFieldPicker};
@@ -1,4 +1,4 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{i as we}from"./DRYZWCWX.js";import{c as W}from"./POA2XTTK.js";import g from"./L3C4LMLQ.js";import f from"./NDECGMQR.js";import e from"./D4E2DTYE.js";import d from"./DDNBFHKN.js";import c from"./Q6DXB7DT.js";import b from"./K4WZTS5W.js";import a from"./DGXBF4BH.js";import{Fa as le,Ga as _,Ia as k,Ja as ne,p as N,q as E}from"./43DLRSYB.js";import{a as re}from"./KX7KGXKQ.js";import{b as ie,i as U,j as K,r as v}from"./NGXRBJKL.js";import{e as G}from"./QP5UAIC6.js";import{a as se}from"./Z5QPCSUQ.js";import{a as O,l as D}from"./QVG3TOL4.js";export default $arcgis.t(([{Bc:ce,Dc:me,E:ue,Ic:ye,Qb:de,S:fe,a:Q,cd:I,kc:T,l:S,n:B,q:b,xb:V},{c:X},{f:be,g:H},{na:te,oa:ve,pa:ae},{m:Y,n:q,o:ee,z:ge},{b:xe},{a:pe,c:Le,d:Fe}])=>{function Se(l){let{hour:e,minute:t=0,format:a,locale:o="en-US"}=l,i=a&&Object.keys(a).length>0?a:{hour:"numeric",minute:"2-digit",hour12:!1},r=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);r=new Intl.DateTimeFormat(o,i).format(n),r.includes(":")||r.startsWith("0")&&(r=r.slice(1))}return r}function he(l){let{weekdayNumber:e,format:t,locale:a="en-US",firstDayOfWeek:o=7}=l,i=t&&Object.keys(t).length>0?t:{weekday:"long"},r=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(o)&&o>0&&o<=7){let n=(e+o-1)%7,s=new Date(2e3,0,2+n);r=new Intl.DateTimeFormat(a,i).format(s)}return r}function Oe(l){let{monthNumber:e,format:t,locale:a="en-US"}=l,o=t&&Object.keys(t).length>0?t:{month:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let r=new Date(2e3,e-1);i=new Intl.DateTimeFormat(a,o).format(r)}return i}function Ce(l){let{value:e,formatLocale:t,unit:a,config:o,utilsStrings:i}=l,r={label:"",value:e.toString()};switch(a){case D.DayOfWeek:r={label:i.heatChartCalendarDatePartsUnits.dayOfWeek,value:he({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in o?o.firstDayOfWeek:ne,locale:t})};break;case D.MonthOfYear:r={label:i.heatChartCalendarDatePartsUnits.monthOfYear,value:Oe({monthNumber:e,locale:t})};break;case D.HourOfDay:r={label:i.heatChartCalendarDatePartsUnits.hourOfDay,value:Se({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case D.DayOfMonth:r={label:i.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case D.DayOfYear:r={label:i.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.MinuteOfDay:r={label:i.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case D.WeekOfYear:r={label:i.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.QuarterOfYear:r={label:i.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return r}function ke(l,e){return!ie(l,e)}function st(l,e){return ke(l,e)||l!==e}function $e(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function Me(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Be=l=>{let{value:e,quoteAll:t=!1,locale:a,roundDecimals:o}=l,i=e==null?"":String(e);if(e===null)i="null";else if(e===void 0)i="";else if(typeof e=="number"&&Number.isFinite(e)&&a!==void 0){let r=Me(a),n=o??i.split(r)[1]?.length??2;i=new Intl.NumberFormat(a,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function ut(l,e={}){let{columns:t,delimiter:a,includeHeader:o=!0,quoteAll:i=!1,locale:r,roundDecimals:n}=e,s=l.length===0,f="";if(!s){let c=t??Object.keys(l[0]),u=[],g=a??$e(r??"en");if(r!==void 0&&g!==","&&(f+=`sep=${g}\r
2
+ import{i as we}from"./DRYZWCWX.js";import{c as W}from"./POA2XTTK.js";import g from"./ZTMZ6GG4.js";import f from"./GBJ2EWWV.js";import e from"./6PN24NZH.js";import d from"./IDULNX4O.js";import c from"./UQCVYMWO.js";import b from"./TWAPMNSX.js";import a from"./7DHOI5P2.js";import{Fa as le,Ga as _,Ia as k,Ja as ne,p as N,q as E}from"./43DLRSYB.js";import{a as re}from"./KX7KGXKQ.js";import{b as ie,i as U,j as K,r as v}from"./NGXRBJKL.js";import{e as G}from"./QP5UAIC6.js";import{a as se}from"./Z5QPCSUQ.js";import{a as O,l as D}from"./QVG3TOL4.js";export default $arcgis.t(([{Cc:ce,E:ue,Ec:me,Jc:ye,Rb:de,S:fe,a:Q,dd:I,l:S,lc:T,n:B,q:b,yb:V},{c:X},{f:be,g:H},{na:te,oa:ve,pa:ae},{m:Y,n:q,o:ee,z:ge},{b:xe},{a:pe,c:Le,d:Fe}])=>{function Se(l){let{hour:e,minute:t=0,format:a,locale:o="en-US"}=l,i=a&&Object.keys(a).length>0?a:{hour:"numeric",minute:"2-digit",hour12:!1},r=e.toString();if(Number.isInteger(e)&&e>=0&&e<=23&&Number.isInteger(t)&&t>=0&&t<=59){let n=new Date(2e3,0,1,e,t);r=new Intl.DateTimeFormat(o,i).format(n),r.includes(":")||r.startsWith("0")&&(r=r.slice(1))}return r}function he(l){let{weekdayNumber:e,format:t,locale:a="en-US",firstDayOfWeek:o=7}=l,i=t&&Object.keys(t).length>0?t:{weekday:"long"},r=e.toString();if(Number.isInteger(e)&&e>0&&e<=7&&Number.isInteger(o)&&o>0&&o<=7){let n=(e+o-1)%7,s=new Date(2e3,0,2+n);r=new Intl.DateTimeFormat(a,i).format(s)}return r}function Oe(l){let{monthNumber:e,format:t,locale:a="en-US"}=l,o=t&&Object.keys(t).length>0?t:{month:"long"},i=e.toString();if(Number.isInteger(e)&&e>0&&e<=12){let r=new Date(2e3,e-1);i=new Intl.DateTimeFormat(a,o).format(r)}return i}function Ce(l){let{value:e,formatLocale:t,unit:a,config:o,utilsStrings:i}=l,r={label:"",value:e.toString()};switch(a){case D.DayOfWeek:r={label:i.heatChartCalendarDatePartsUnits.dayOfWeek,value:he({weekdayNumber:e,firstDayOfWeek:"firstDayOfWeek"in o?o.firstDayOfWeek:ne,locale:t})};break;case D.MonthOfYear:r={label:i.heatChartCalendarDatePartsUnits.monthOfYear,value:Oe({monthNumber:e,locale:t})};break;case D.HourOfDay:r={label:i.heatChartCalendarDatePartsUnits.hourOfDay,value:Se({hour:e,format:{hour:"numeric",hour12:!1},locale:t})};break;case D.DayOfMonth:r={label:i.heatChartCalendarDatePartsUnits.dayOfMonth,value:typeof e=="string"?e:e?.toString()??""};break;case D.DayOfYear:r={label:i.heatChartCalendarDatePartsUnits.dayOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.MinuteOfDay:r={label:i.heatChartCalendarDatePartsUnits.minuteOfDay,value:typeof e=="string"?e:e?.toString()??""};break;case D.WeekOfYear:r={label:i.heatChartCalendarDatePartsUnits.weekOfYear,value:typeof e=="string"?e:e?.toString()??""};break;case D.QuarterOfYear:r={label:i.heatChartCalendarDatePartsUnits.quarterOfYear,value:typeof e=="string"?e:e?.toString()??""};break}return r}function ke(l,e){return!ie(l,e)}function st(l,e){return ke(l,e)||l!==e}function $e(l){return(new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??".")==="."?",":";"}function Me(l){return new Intl.NumberFormat(l,{minimumFractionDigits:1,maximumFractionDigits:1}).formatToParts(1.1).find(e=>e.type==="decimal")?.value??"."}var Be=l=>{let{value:e,quoteAll:t=!1,locale:a,roundDecimals:o}=l,i=e==null?"":String(e);if(e===null)i="null";else if(e===void 0)i="";else if(typeof e=="number"&&Number.isFinite(e)&&a!==void 0){let r=Me(a),n=o??i.split(r)[1]?.length??2;i=new Intl.NumberFormat(a,{maximumFractionDigits:n}).format(e).replace(/\u202F/gu," ")}return(t||/[",\r\n]/u.test(i))&&(i=`"${i.replace(/"/gu,'""')}"`),i};function ut(l,e={}){let{columns:t,delimiter:a,includeHeader:o=!0,quoteAll:i=!1,locale:r,roundDecimals:n}=e,s=l.length===0,f="";if(!s){let c=t??Object.keys(l[0]),u=[],g=a??$e(r??"en");if(r!==void 0&&g!==","&&(f+=`sep=${g}\r
3
3
  `),o){let w=c.map(x=>Be({value:x,quoteAll:i,locale:r,roundDecimals:n}));u.push(w.join(g))}l.forEach(w=>{let x=c.map(p=>Be({value:w[p],quoteAll:i,locale:r,roundDecimals:n}));u.push(x.join(g))}),f+=u.join(`\r
4
4
  `)}return f}function ft(l){let{rawData:e,config:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n,formatLocale:s,utilsStrings:f}=l,c=[];if(t!==void 0&&Array.isArray(e)&&e.length>0){let u=se(t?.series);u===O.HistogramSeries?c=Ve(t,e,i):u===O.HeatSeries?c=Re({config:t,rows:e,layer:a,fieldList:o,formatLocale:s,utilsStrings:f}):u===O.BarSeries||u===O.LineSeries||u===O.ComboLineAndBarSeries?c=Ie({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.PieSeries?c=Ue({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}):u===O.BoxPlotSeries&&(c=_e({config:t,rows:e,layer:a,fieldList:o,formatters:i,useRendererLabel:r,timeZone:n}))}return c}function P(l){let{value:e,originalValue:t,formatter:a}=l,o=e;return a!==void 0&&(e===null||e instanceof Date||typeof e=="number"||typeof e=="string")&&(o=a(e,t)),o}function M(l){let{field:e,value:t,dataContext:a,layer:o,fieldList:i,formatter:r,timeZone:n}=l,s;if(t==null||typeof t=="boolean"||Array.isArray(t))s=t;else if(typeof t=="string"||typeof t=="number"||t instanceof Date){let f=Ne({fieldName:e,dataContext:a})??(o!==void 0&&(typeof t=="string"||typeof t=="number")?ye({queryObject:o,fieldName:e,fieldValue:t}):void 0);s=De({field:e,value:f??t,fieldList:i,timeZone:n})}else s=t;return P({value:s,originalValue:t,formatter:r})}function $(l){let{field:e,row:t,layer:a,fieldList:o,formatter:i,useRendererLabel:r=!1,timeZone:n}=l,s=Object.keys(t).find(u=>u.toLocaleLowerCase()===e.toLocaleLowerCase()),f=t[s??e],c=fe({value:f,dataContext:t,useRendererLabel:r});return M({field:e,value:c,dataContext:t,layer:a,fieldList:o,formatter:i,timeZone:n})}function Ze(l,e){let t=!1;if(l===e)t=!0;else if(l!=null&&e!=null){let a=String(l),o=String(e);t=a===o||!Number.isNaN(Number(a))&&!Number.isNaN(Number(o))&&Number(a)===Number(o)}return t}function Ne(l){let{fieldName:e,dataContext:t}=l,a=S.rendererSymbolField;return e===a&&t!==void 0?de(t):void 0}function Pe(l){let{config:e,splitByField:t,splitByValue:a,splitByValueIndex:o,layer:i,fieldList:r,timeZone:n}=l,s,f=e.series[o??-1]?.name;return f!==void 0?s=f:s=M({field:t,value:a,layer:i,fieldList:r,timeZone:n}),s}function Re(l){let{config:e,rows:t,layer:a,fieldList:o,formatLocale:i,utilsStrings:r}=l,[n]=e.series,s=n.x,f=te(e),c=ae(e),u=H({config:e,xAxisField:s,numericFields:c,aggregationType:f,layer:a,fieldList:o});return t.map(g=>{let w=g[E.xField],x=g[E.yField],p=g[E.valueField],F=typeof p=="number"&&Number.isFinite(p)?p.toFixed(2):p,m={label:n.x,value:w},y={label:n.y,value:x};if(n.xTemporalBinning!==void 0){let{label:d,value:L}=Ce({value:Number(w),config:e,formatLocale:i,unit:n.xTemporalBinning.unit,utilsStrings:r});!T(d)&&!T(L)&&(m={label:d,value:L})}if(n.yTemporalBinning!==void 0){let{label:d,value:L}=Ce({value:Number(x),config:e,formatLocale:i,unit:n.yTemporalBinning.unit,utilsStrings:r});!T(d)&&!T(L)&&(y={label:d,value:L})}return{[m.label]:m.value,[y.label]:y.value,[u.description]:F}})}function Ve(l,e,t){let a=xe(l),o=`${v(W.Min)} of ${a}`,i=`${v(W.Max)} of ${a}`,r=`${v(W.Count)} of ${a}`;return e.map(n=>{let{minValue:s,maxValue:f,count:c}=n,u=U(s),g=U(f),w=U(c),x={};if(u&&(x[o]=P({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter})),g&&(x[i]=P({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter})),u&&g){let p=P({value:s,originalValue:s,formatter:t?.xAxisLabelFormatter}),F=P({value:f,originalValue:f,formatter:t?.xAxisLabelFormatter});x.Label=`${String(p??"")} - ${String(F??"")}`}return w&&(x[r]=c),x})}function Te(l,e,t){let a=Object.keys(l),o=[];return t?o=t.map(i=>a.find(r=>r.toLowerCase().includes(i.toLowerCase()))||""):o=a.filter(i=>i.toLowerCase().includes(e.toLowerCase())),o.filter(i=>i.trim()!=="")}function Ie(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=be(e),f=te(e),c=v(f),u=ae(e),g=I(e.series),w=X(e),x=ve(e),{idField:p,isTraditionalTypeOID:F}=ce(ue(a)),m=F&&u.length===1&&u[0]===p,y;switch(g){case b.BarAndLineNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),C={[s]:L};return Object.assign(C,...u.map(A=>({[A]:P({value:d[A],originalValue:d[A]})}))),C});break;case b.BarAndLineFromFields:y=K(u,t).map(([d,L])=>{let C=V(e.series)[0],A={};return L!==void 0&&d!==void 0&&(A.Field=P({value:L[s],originalValue:L[s],formatter:i?.xAxisLabelFormatter}),A.Value=P({value:L[C],originalValue:L[C]})),A});break;case b.BarAndLineMonoField:case b.BarAndLineMultiFields:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),C={[s]:L};return u.forEach((A,h)=>{let Z=H({config:e,xAxisField:s,numericFields:u,aggregationType:f,layer:a,numericFieldIndex:h,fieldList:o}),R=V(e.series)[h],oe=R,J=R;R.toLowerCase()===Z.name.toLowerCase()&&(oe=Z.description,J=Z.name),C[oe]=P({value:d[J],originalValue:d[J]})}),C});break;case b.BarAndLineSplitBy:y=t.flatMap(d=>{let L=V(e.series),C=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});return w.map((A,h)=>{let Z=Pe({config:e,splitByField:x,splitByValue:A,splitByValueIndex:h,layer:a,fieldList:o,timeZone:n});return{[s]:C,[x]:Z,[m?c:`${c} of ${u[0]}`]:d[L[h]]}})});break;case b.BarAndLineSplitByNoAggregation:y=t.map(d=>{let L=$({field:s,row:d,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),C=Te(d,u[0],w),A=d[x],h=w.findIndex(R=>Ze(R,A)),Z=Pe({config:e,splitByField:x,splitByValue:A,splitByValueIndex:h>=0?h:void 0,layer:a,fieldList:o,timeZone:n});return{[s]:L,[x]:Z,[u[0]]:d[C[0]]}});break;default:y=t}return y}function je(l){if(l.length===0)return[];let e=l.reduce((t,a)=>{for(let[o,i]of Object.entries(a))typeof i=="number"&&Number.isFinite(i)&&(t[o]=(t[o]??0)+i);return t},{});return l.map(t=>{let a={...t};for(let[o,i]of Object.entries(t))if(typeof i=="number"&&e[o]>0){let r=i/e[o];a[`${o}${k}`]=r.toPrecision(2)}return a})}function Ue(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=pe(e),f=I(e.series),c=je(t),u=Le(e),g=f!==b.PieFromFields?G.Category:G.Fields,w=Fe(e,g),x=H({config:e,xAxisField:s,numericFields:u,aggregationType:w,mode:g,layer:a,fieldList:o}),p=V(e.series)[0];return f===b.PieFromCategory||f===b.PieNoAggregation?c=c.map(F=>{let m=$({field:s,row:F,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n}),y={[s]:m},d=p,L=p;return f===b.PieFromCategory&&p.toLowerCase()===x.name.toLowerCase()&&(d=x.description,L=x.name),y[d]=P({value:F[L],originalValue:F[L]}),y[v(k.trim())]=P({value:F[`${L}${k}`],originalValue:F[`${L}${k}`]}),y}):f===b.PieFromFields&&(c=K(u,c).map(([F,m])=>{let y={};return m!==void 0&&F!==void 0&&(y.Field=P({value:m[s],originalValue:m[s],formatter:i?.xAxisLabelFormatter}),y.Value=P({value:m[p],originalValue:m[p]}),y[v(k.trim())]=P({value:m[`${p}${k}`],originalValue:m[`${p}${k}`]})),y})),c}function z(l){let{rawData:e,keyBase:t="",outRow:a}=l;for(let[o,i]of Object.entries(B)){let r=e[t+i];r!==void 0&&(a[o]=r);let n=e[t+i+le];n!==void 0&&(a[`${o} Outlier`]=n);let s=e[t+i+_];s!==void 0&&(a[`${o} Z-Score`]=s)}}function j(l){let{rawData:e,outRow:t,config:a,boxPlotSubType:o,layer:i,fieldList:r,timeZone:n}=l,s=Y(a),f=ee(a),c=q(a),u=B.Outlier,g=N;switch(o){case b.BoxPlotC3MonoFieldAndCategory:{let p=De({field:s,value:e[s],fieldList:r,timeZone:n});t[s]=p,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC4MultiFieldsAndCategory:{t[v(s)]=e[s],u=`${f.find(p=>Object.keys(e).some(F=>F.toLowerCase().includes(p.toLowerCase())))??""}_${u}`,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC5MonoFieldAndSplitBy:case b.BoxPlotC6MultiFieldsAndSplitBy:{let p=String(e[c]),F=M({field:c,value:p,layer:i,fieldList:r,timeZone:n});u=`${p}_${u}`,t.Field=e[g],t[v(c)]=F,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC7MonoFieldAndCategoryAndSplitBy:{let p=String(e[c]),F=M({field:c,value:p,layer:i,fieldList:r,timeZone:n});u=`${p}_${u}`,t[v(s)]=e[s],t[v(c)]=F,t[v(B.Outlier)]=e[u];break}case b.BoxPlotC1MonoField:case b.BoxPlotC2MultiFields:default:{t.Field=e[g],t[v(B.Outlier)]=e[u];break}}let w=`${u}${_}`,x=e[w];x!==void 0&&(t[`${v(B.Outlier)} Z-Score`]=x)}function Ee(l){let{rawData:e,outRow:t,config:a,splitByValue:o,layer:i,fieldList:r,timeZone:n}=l,s=I(a.series),f=e[`${o}_${B.Average}`],c=q(a),u=Y(a),g="";switch(s){case b.BoxPlotC5MonoFieldAndSplitBy:{g=`${o}_${c}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotC6MultiFieldsAndSplitBy:{g=`${o}_${B.Average}`,t.Field=e[N],t[v(c)]=M({field:c,value:e[g],layer:i,fieldList:r,timeZone:n});break}case b.BoxPlotC7MonoFieldAndCategoryAndSplitBy:{g=`${o}_${B.Average}`,t[u]=e[u],t[v(c)]=M({field:c,value:o,layer:i,fieldList:r,timeZone:n});break}}t[v(B.Average)]=f;let w=`${String(f)}${_}`,x=e[w];x!==void 0&&(t[`${v(B.Average)} Z-Score`]=x)}function _e(l){let{config:e,rows:t,layer:a,fieldList:o,formatters:i,useRendererLabel:r=!1,timeZone:n}=l,s=I(e.series),f=s,c=ge(e),u=Array.isArray(t)&&t.length>0&&t.every(m=>m[S.boxPlot.boxPlotMeanLineMarkerId]!==void 0);c&&!u&&(s===b.BoxPlotC5MonoFieldAndSplitBy?f=b.BoxPlotC1MonoField:s===b.BoxPlotC6MultiFieldsAndSplitBy?f=b.BoxPlotC2MultiFields:s===b.BoxPlotC7MonoFieldAndCategoryAndSplitBy&&(f=b.BoxPlotC3MonoFieldAndCategory));let g=Y(e),w=ee(e),x=X(e),p=q(e),F;switch(f){case b.BoxPlotC1MonoField:case b.BoxPlotC3MonoFieldAndCategory:{F=t.map(m=>{let y={};if(m[S.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotC3MonoFieldAndCategory){let d=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});y[g]=d}else f===b.BoxPlotC1MonoField&&(y.Field=m[N]);z({rawData:m,outRow:y})}return y});break}case b.BoxPlotC2MultiFields:{F=t.flatMap(m=>{let y={};return m[S.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(y.Field=m[N],z({rawData:m,outRow:y})),[y]});break}case b.BoxPlotC4MultiFieldsAndCategory:{F=t.flatMap(m=>w.map(y=>{let d={},L="";if(d.Field=y,m[S.boxPlot.boxPlotOutlierId])j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n});else{if(f===b.BoxPlotC4MultiFieldsAndCategory){let C=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=C,L=`${y}_`}z({rawData:m,outRow:d,keyBase:L})}return d}));break}case b.BoxPlotC5MonoFieldAndSplitBy:case b.BoxPlotC6MultiFieldsAndSplitBy:case b.BoxPlotC7MonoFieldAndCategoryAndSplitBy:{F=t.flatMap(m=>{if(m[S.boxPlot.boxPlotOutlierId]){let y={};return j({rawData:m,outRow:y,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}),[y]}else return m[S.boxPlot.boxPlotMeanLineMarkerId]?x?.map(y=>{let d={};return Ee({rawData:m,outRow:d,splitByValue:y,config:e,layer:a,fieldList:o,timeZone:n}),d}):x.map(y=>{let d={},L=M({field:p,value:y,layer:a,fieldList:o});if(f===b.BoxPlotC7MonoFieldAndCategoryAndSplitBy){let C=$({field:g,row:m,layer:a,fieldList:o,formatter:i?.xAxisLabelFormatter,useRendererLabel:r,timeZone:n});d[g]=C}return m[S.boxPlot.boxPlotOutlierId]?j({rawData:m,outRow:d,config:e,boxPlotSubType:f,layer:a,fieldList:o,timeZone:n}):(d[p]=L,z({rawData:m,outRow:d,keyBase:`${y}_`})),d})});break}default:F=t}return F}var Ae=l=>{let e=!1;return(typeof l=="string"||typeof l=="number")&&(e=!Number.isNaN(new Date(l).getTime())),e},We=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd"),He=(l,e)=>Q.fromJSDate(l,{zone:e??"local"}).toFormat("yyyy-LL-dd'T'HH:mm:ss"),De=l=>{let{field:e,value:t,fieldList:a,timeZone:o}=l,i=t,r=a?.find(n=>n.name===e);if(r){let n=r.type===re.DateOnly;me(r)&&!n?i=Ae(t)?He(new Date(t),o):t:n&&typeof t!="string"&&(i=Ae(t)?We(new Date(t),o):t)}return i};function dt(l){let{runtimeDataFilters:e,view:t,viewTimeExtentChangePolicy:a,syncViewTimeExtent:o}=l,i=e;return t&&(a===we.Refresh||o)&&t.timeExtent?.start!=null&&t.timeExtent?.end!=null&&(i={...e,timeExtent:[t.timeExtent.start.valueOf(),t.timeExtent.end.valueOf()]}),i}return{a:Se,b:he,c:Oe,d:Ce,e:ke,f:st,g:ut,h:ft,i:dt}},a,b,c,d,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./DGXBF4BH.js";import{Aa as A,G as x,I as c,K as y,_ as p,c as l}from"./43DLRSYB.js";import{a as F}from"./Z5QPCSUQ.js";import{a as r,b as d,f as I}from"./QVG3TOL4.js";export default $arcgis.t(([{substitute:S},{Bc:N,Qa:g,ec:L,gc:f}])=>{var v=i=>{let{config:s,axisIndex:t,callback:e}=i;[t!==void 0?s.axes?.[t]:s.axes].flat().forEach((a,o)=>{a!==void 0&&e(a,t!==void 0?t:o)})},E=i=>{let{config:s,axisIndex:t,callback:e}=i;[t!==void 0?s.axes?.[t]:s.axes].flat().forEach(a=>{a!==void 0&&g(a.valueFormat)&&e(a)})};function H(i,s,t){let e=i?.axes?.[s];e?.title!==void 0?e.title.content.text=t:e!==void 0&&(e.title=c({text:t,visible:!0,font:x(l.AxisTitle)}))}function J(i){let{config:s,layerInfo:t,commonStrings:e,numericFields:a,aggregationType:o}=i,n="";if(s)if(L(s)===I.Stacked100)n=e.utilsStrings.statistics.percent;else{let m=A(o,e);if(s.series[0]?.type===r.HeatSeries)n=f(t.layerFieldsInfo,s.series[0].y);else if(a.length===1){let u=f(t.layerFieldsInfo,a[0]),b=N(t.layer).idField;o===d.NoAggregation?n=u:o===d.Count&&b!==void 0&&a[0]===b?n=e.utilsStrings.statistics.count:n=S(e.axisLabels.aggregationOfFieldName,{aggregation:m,fieldName:u})}else a.length>1&&(o===d.NoAggregation?n=e.axisLabels.values:n=S(e.axisLabels.aggregationOfValues,{aggregation:m}))}return n}var k=(i,s,t)=>i.axes?.[s]??p(t,i.type)[s],T=i=>{let{config:s,axis:t,axisIndex:e}=i;s.axes!==void 0&&(s.axes[e]=t)},$=i=>{let{config:s,axisIndex:t,isMax:e}=i,a=Number.NaN;return e?a=s.axes?.[t]?.maximum:a=s.axes?.[t]?.minimum,a??Number.NaN},h=i=>{let{config:s,value:t,axisIndex:e,isMax:a}=i,o=s?.axes?.[e];o!==void 0&&(a?o.maximum=t:o.minimum=t)},j=i=>i.axes?.[0]?.valueFormat??y(),D=(i,s,t)=>{let e=k(i,0,s);if(e!==void 0&&t!==void 0){let a={...e,valueFormat:t};T({config:i,axis:a,axisIndex:0})}},G=(i,s,t)=>{let e=i.axes?.[s];e!==void 0&&(e.integerOnlyValues=t)},M=i=>{let s=F(i.series);return s===r.BarSeries||s===r.ComboLineAndBarSeries||s===r.LineSeries},B=i=>{let{axisIndex:s,config:t,isMultiAxis:e}=i,a=!1;return s===0||s===1&&e?a=!0:s===2&&(a=M(t)),a},K=i=>{let{axisIndex:s,func:t,config:e}=i;return B({axisIndex:s,config:e,isMultiAxis:!0})?t(s):void 0},P=(i,s)=>{let t,e=s.axes?.[i]?.valueFormat;return(i===0||i>=1&&g(e))&&(t=e),t},Q=i=>{let{config:s,commonStrings:t,valueFormat:e,axisIndex:a=0}=i,o=k(s,a,t);if(o!==void 0&&e!==void 0){let n={...o,valueFormat:e};T({config:s,axis:n,axisIndex:a})}},R=(i,s)=>i.axes?.[s]?.isLogarithmic??!1,U=i=>{let{config:s,isLogarithmic:t,axisIndex:e}=i,a=s.axes?.[e];a&&(a.isLogarithmic=t,h({config:s,value:null,axisIndex:e,isMax:!0}),h({config:s,value:null,axisIndex:e,isMax:!1}))},X=i=>{let{config:s,scrollbar:t,axisIndex:e}=i;s.axes?.[e]!==void 0&&(s.axes[e].scrollbar=t)},Y=(i,s)=>s.axes?.[i]?.labels?.visible??!0,Z=i=>{let{visibility:s,axisIndex:t,config:e}=i;v({config:e,axisIndex:t,callback:a=>{a.labels!==void 0?a.labels.visible=s:a.labels=c({text:"",visible:s,font:x(l.AxisLabels),type:l.AxisLabels})}})},C=(i,s)=>s.axes?.[i]?.title?.content.text??"",_=(i,s,t)=>{let e=t.axes?.[s];e?.title!==void 0?e.title.content.text=i:e!==void 0&&e?.title===void 0&&(e.title=c({text:i,visible:!0,font:x(l.AxisTitle)}))},W=(i,s)=>s.axes?.[i]?.title?.visible??!1,ss=i=>{let{visibility:s,axisIndex:t,config:e}=i;v({config:e,axisIndex:t,callback:(a,o)=>{a.title!==void 0?a.title.visible=s:a.title=c({text:C(o,e),visible:s,font:x(l.AxisTitle)})}})},es=(i,s)=>i.axes?.[s]?.title?.content,is=i=>{let{config:s,axisIndex:t,symbol:e}=i;v({config:s,axisIndex:t,callback:a=>{let o=a.title?.content.text;(a.title===void 0||e===void 0)&&(a.title=c({text:"",visible:!0,font:x(l.AxisTitle),type:l.AxisTitle})),e!==void 0&&(a.title.content={...e}),a.title.content.text=o}})};return{a:v,b:E,c:H,d:J,e:$,f:h,g:j,h:D,i:G,j:K,k:P,l:Q,m:R,n:U,o:X,p:Y,q:Z,r:C,s:_,t:W,u:ss,v:es,w:is}},"intl",a)
2
+ import a from"./7DHOI5P2.js";import{Aa as A,G as x,I as c,K as y,_ as p,c as l}from"./43DLRSYB.js";import{a as F}from"./Z5QPCSUQ.js";import{a as r,b as d,f as I}from"./QVG3TOL4.js";export default $arcgis.t(([{substitute:S},{Cc:N,Ra:g,fc:L,hc:f}])=>{var v=i=>{let{config:s,axisIndex:t,callback:e}=i;[t!==void 0?s.axes?.[t]:s.axes].flat().forEach((a,o)=>{a!==void 0&&e(a,t!==void 0?t:o)})},E=i=>{let{config:s,axisIndex:t,callback:e}=i;[t!==void 0?s.axes?.[t]:s.axes].flat().forEach(a=>{a!==void 0&&g(a.valueFormat)&&e(a)})};function H(i,s,t){let e=i?.axes?.[s];e?.title!==void 0?e.title.content.text=t:e!==void 0&&(e.title=c({text:t,visible:!0,font:x(l.AxisTitle)}))}function J(i){let{config:s,layerInfo:t,commonStrings:e,numericFields:a,aggregationType:o}=i,n="";if(s)if(L(s)===I.Stacked100)n=e.utilsStrings.statistics.percent;else{let m=A(o,e);if(s.series[0]?.type===r.HeatSeries)n=f(t.layerFieldsInfo,s.series[0].y);else if(a.length===1){let u=f(t.layerFieldsInfo,a[0]),b=N(t.layer).idField;o===d.NoAggregation?n=u:o===d.Count&&b!==void 0&&a[0]===b?n=e.utilsStrings.statistics.count:n=S(e.axisLabels.aggregationOfFieldName,{aggregation:m,fieldName:u})}else a.length>1&&(o===d.NoAggregation?n=e.axisLabels.values:n=S(e.axisLabels.aggregationOfValues,{aggregation:m}))}return n}var k=(i,s,t)=>i.axes?.[s]??p(t,i.type)[s],T=i=>{let{config:s,axis:t,axisIndex:e}=i;s.axes!==void 0&&(s.axes[e]=t)},$=i=>{let{config:s,axisIndex:t,isMax:e}=i,a=Number.NaN;return e?a=s.axes?.[t]?.maximum:a=s.axes?.[t]?.minimum,a??Number.NaN},h=i=>{let{config:s,value:t,axisIndex:e,isMax:a}=i,o=s?.axes?.[e];o!==void 0&&(a?o.maximum=t:o.minimum=t)},j=i=>i.axes?.[0]?.valueFormat??y(),D=(i,s,t)=>{let e=k(i,0,s);if(e!==void 0&&t!==void 0){let a={...e,valueFormat:t};T({config:i,axis:a,axisIndex:0})}},G=(i,s,t)=>{let e=i.axes?.[s];e!==void 0&&(e.integerOnlyValues=t)},M=i=>{let s=F(i.series);return s===r.BarSeries||s===r.ComboLineAndBarSeries||s===r.LineSeries},B=i=>{let{axisIndex:s,config:t,isMultiAxis:e}=i,a=!1;return s===0||s===1&&e?a=!0:s===2&&(a=M(t)),a},K=i=>{let{axisIndex:s,func:t,config:e}=i;return B({axisIndex:s,config:e,isMultiAxis:!0})?t(s):void 0},P=(i,s)=>{let t,e=s.axes?.[i]?.valueFormat;return(i===0||i>=1&&g(e))&&(t=e),t},Q=i=>{let{config:s,commonStrings:t,valueFormat:e,axisIndex:a=0}=i,o=k(s,a,t);if(o!==void 0&&e!==void 0){let n={...o,valueFormat:e};T({config:s,axis:n,axisIndex:a})}},R=(i,s)=>i.axes?.[s]?.isLogarithmic??!1,U=i=>{let{config:s,isLogarithmic:t,axisIndex:e}=i,a=s.axes?.[e];a&&(a.isLogarithmic=t,h({config:s,value:null,axisIndex:e,isMax:!0}),h({config:s,value:null,axisIndex:e,isMax:!1}))},X=i=>{let{config:s,scrollbar:t,axisIndex:e}=i;s.axes?.[e]!==void 0&&(s.axes[e].scrollbar=t)},Y=(i,s)=>s.axes?.[i]?.labels?.visible??!0,Z=i=>{let{visibility:s,axisIndex:t,config:e}=i;v({config:e,axisIndex:t,callback:a=>{a.labels!==void 0?a.labels.visible=s:a.labels=c({text:"",visible:s,font:x(l.AxisLabels),type:l.AxisLabels})}})},C=(i,s)=>s.axes?.[i]?.title?.content.text??"",_=(i,s,t)=>{let e=t.axes?.[s];e?.title!==void 0?e.title.content.text=i:e!==void 0&&e?.title===void 0&&(e.title=c({text:i,visible:!0,font:x(l.AxisTitle)}))},W=(i,s)=>s.axes?.[i]?.title?.visible??!1,ss=i=>{let{visibility:s,axisIndex:t,config:e}=i;v({config:e,axisIndex:t,callback:(a,o)=>{a.title!==void 0?a.title.visible=s:a.title=c({text:C(o,e),visible:s,font:x(l.AxisTitle)})}})},es=(i,s)=>i.axes?.[s]?.title?.content,is=i=>{let{config:s,axisIndex:t,symbol:e}=i;v({config:s,axisIndex:t,callback:a=>{let o=a.title?.content.text;(a.title===void 0||e===void 0)&&(a.title=c({text:"",visible:!0,font:x(l.AxisTitle),type:l.AxisTitle})),e!==void 0&&(a.title.content={...e}),a.title.content.text=o}})};return{a:v,b:E,c:H,d:J,e:$,f:h,g:j,h:D,i:G,j:K,k:P,l:Q,m:R,n:U,o:X,p:Y,q:Z,r:C,s:_,t:W,u:ss,v:es,w:is}},"intl",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import a from"./DGXBF4BH.js";import{q as R}from"./43DLRSYB.js";import{a as k,b as g,d as h,f as C}from"./KX7KGXKQ.js";import{b as D,d as z,f as q,h as L,l as W}from"./NGXRBJKL.js";import{a as G}from"./QVG3TOL4.js";export default $arcgis.t(([X,{createClassBreaksRenderer:Z},{getSchemes:ee},P,{Kb:A,wc:J}])=>{function te(e){let r;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return r}function _(e){let r;if(typeof e=="string"&&e.startsWith("#")){let t=te(e);t&&(r=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?r=e:e.length===3&&(r=[...e,255]));return r}function K(e){return e===h.BackwardDiagonal||e===h.Cross||e===h.DiagonalCross||e===h.ForwardDiagonal||e===h.Horizontal||e===h.Null||e===h.Solid||e===h.Vertical}function O(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function re(e){let{categoryField:r,numericFields:t,configFields:a,inlineData:c}=e,o={};return a&&Object.keys(a).length>0&&"dataItems"in c&&(o={type:"uniqueValue",field1:r,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[r];if(l!=null){let n={value:l};t.forEach(i=>{let u=_(s[`${a.fillColor}_${i}`]),m=s[`${a.fillOpacity}_${i}`],f=s[`${a.fillStyle}_${i}`],p=s[`${a.markerSize}_${i}`],d=_(s[`${a.outlineColor}_${i}`]),$=s[`${a.outlineOpacity}_${i}`],F=s[`${a.outlineWidth}_${i}`],M=s[`${a.outlineStyle}_${i}`],S=_(s[`${a.lineColor}_${i}`]),x=s[`${a.lineOpacity}_${i}`],I=s[`${a.lineWidth}_${i}`],N=s[`${a.lineStyle}_${i}`],j=s[`${a.displayLabel}_${i}`];if(typeof j=="string"&&(n={...n,label:j}),p!=null){let y={type:C.SMS};p&&typeof p=="number"&&(y.size=p),n.symbol=y}if(u||K(f)){let y=n.symbol?.type===C.SMS?n.symbol:{type:C.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),K(f)&&(y.style=f),n.symbol=y,d||F!=null||O(M)){let B={type:C.SLS};d&&($&&typeof $=="number"&&(d[3]=$),B.color=d),O(M)&&(B.style=M),F&&typeof F=="number"&&(B.width=F),n.symbol.outline=B}}else if(S||I!=null||O(N)){let y={type:C.SLS};S&&(x&&typeof x=="number"&&(S[3]=x),y.color=S),O(N)&&(y.style=N),I!=null&&typeof I=="number"&&(y.width=I),n.symbol=y}}),(n.label||n.symbol)&&o.uniqueValueInfos.push(n)}})),o}function ae(e){let{numericFields:r,configFields:t,inlineData:a}=e,c=a;return"dataItems"in a&&Object.entries(t).forEach(([o,s])=>{r.forEach(l=>{let n=`${s}_${l}`;a.dataItems.forEach(i=>{n in i&&delete i[n]})})}),c}function se(e){let{categoryField:r,categoryType:t,numericFields:a,inlineData:c}=e,o;if("dataItems"in c){let{dataItems:s}=c,l=[],n="OBJECTID",i=s.map((m,f)=>{let p={...m};return"FID"in m?n="FID":"ObjectId"in m&&(n="ObjectId"),p[n]||(p[n]=f),{attributes:p}});l.push({type:"esriFieldTypeOID",name:n});let u;switch(t){case"dateOnly":u=k.DateOnly;break;case"timeStampOffset":u=k.TimestampOffset;break;case"date":u=k.Date;break;case"number":u=k.Double;break;default:u=k.String;break}l.push({type:u,name:r}),a.forEach(m=>{l.push({type:k.Double,name:m})}),o={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return o}async function oe(e){let{categoryField:r,categoryType:t,numericFields:a,configFields:c,inlineData:o}=e,s,l,n=z(o);c&&(s=re({categoryField:r,numericFields:a,configFields:c,inlineData:n}),n=ae({numericFields:a,configFields:c,inlineData:n}));let i=se({categoryField:r,categoryType:t,numericFields:a,inlineData:n});return i&&(l=await J(i)),{chartRenderer:s,iLayer:i,layer:l}}var E=P.all(),ne=ee({geometryType:"point",theme:"high-to-low"});function H(e,r,t){let a=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(r[0]-e[0])*a),Math.round(e[1]+(r[1]-e[1])*a),Math.round(e[2]+(r[2]-e[2])*a),Math.round(e[3]+(r[3]-e[3])*a)]}function le(e,r){return r?.length===e?r:[]}function ie(e){let{numberOfClassBreaks:r,baseColors:t,fallbackStartColor:a=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,o=[];if(r>0){let s=t?.[0]??a,l=t&&t.length>1?t[t.length-1]:c;if(r===1)o=[s];else for(let n=0;n<r;n++){let i=n/(r-1);o.push(H(s,l,i))}}return o}function Y(e){let{colorRamp:r,numberOfClassBreaks:t,isFlipped:a}=e,c=[],o=!1;if(r.colorsForClassBreaks&&r.colorsForClassBreaks.length>0){let s=r.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(n=>w(n));l.every(n=>n!==void 0)&&(c=a?l.reverse():l,o=!0)}}if(!o){let s=r.colors||[];if(s.length>0){let l=s.map(w).filter(i=>i!==void 0);a&&(l=l.reverse());let n=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),f=Math.min(m+1,l.length-1),p=l[m],d=l[f];if(!p||!d){c=[];break}let $=u*(l.length-1)-m,F=H(p,d,$);n.push(F)}c=n}}return c}function Q(e){let{numberOfClassBreaks:r,selectedColorRamp:t,colorRamp:a,isFlipped:c=!1}=e,o=le(r,a),s=t?Y({colorRamp:t,numberOfClassBreaks:r,isFlipped:c}):[];return o.length!==r&&(o=s),o.length!==r&&(o=ie({numberOfClassBreaks:r,baseColors:s.length>0?s:a})),o}function U(e,r=2){return e%1===0?e.toString():e.toFixed(r)}function ce(e,r=2){return`\u2264 ${U(e,r)}`}function Re(e){let r="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=b(e[0]||0),a=b(e[1]||0),c=b(e[2]||0),o=t.toString(16).padStart(2,"0"),s=a.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");r=`#${o}${s}${l}`}return r}var Oe={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},ve={all:"all"},ue=e=>{let r=0,t=o=>{let s=0;return o.forEach(l=>{let n=l.toString().split(".")[1];n&&(s=Math.max(s,n.length))}),s},a=[...e].sort((o,s)=>o-s),c=t(a);for(;r<=c&&a.some((o,s)=>s>0&&A(o,r)<=A(a[s-1],r));)r++;return Math.min(r,c)};function b(e){return Math.max(0,Math.min(255,Math.round(e)))}function w(e){let r;if(e instanceof X){let t=e.toRgba();r=[b(t[0]),b(t[1]),b(t[2]),b(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,a=b(t<=1?t*255:t);r=[b(e[0]??0),b(e[1]??0),b(e[2]??0),a]}return r}function v(e){let r=[];for(let t of e){let a=w(t);a&&r.push(a)}return r}function V(e,r){let t=0,a=e.size<=r.size?e:r,c=a===e?r:e;for(let o of a)c.has(o)&&t++;return t}function me(e){return[...e.colors??[],...q(e.colorsForClassBreaks??[],r=>r.colors??[])]}function fe(e){let{ramp:r,breakKeys:t,breakCount:a,weights:c}=e,o=d=>d.join(","),s=r.colorsForClassBreaks?.find(d=>d.numClasses===a)?.colors??[],l=new Set(v(s).map(o)),n=V(t,l),i=new Set(v(Q({numberOfClassBreaks:a,selectedColorRamp:r})).map(o)),u=V(t,i),m=me(r).filter(d=>!!d),f=new Set(v(m).map(o)),p=V(t,f);return n*c.exactN+u*c.generated+p*c.anyOverlap}function we(e,r){let t={exactN:100,generated:10,anyOverlap:1},a=o=>o.join(","),c;if(e?.length){let o=v(e.map(u=>u.symbol?.color)),s=new Set(o.map(a)),l=o.length,n=r.map(u=>{let m=fe({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=L(n,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function Me(e,r){let t=!0;if(!e?.length||r.length<2)t=!1;else{let a=e.map(w),c=r.map(o=>o.symbol.color);if(a.length!==c.length)t=!1;else{let o=(n,i)=>!!n&&!!i&&n.length===i.length&&n.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<a.length&&l>=0;){if(!o(a[s],c[l])){t=!1;break}s++,l--}}}return t}function pe(e){let r=new Set(e.dataItems.map(a=>a[R.valueField])),[t]=r;return r.size===1?t:void 0}function de(e,r){let t=Y({colorRamp:T.defaultColorRampForCharts,numberOfClassBreaks:1})[0];return{classMinValue:0,classMaxValue:e,label:U(e),symbol:{type:C.SFS,style:h.Solid,color:r??t??[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}}async function ye(e){let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorsForClassBreaks:o}=e,s=[],l=pe(r);if(l!==void 0)s=[de(l,o?.[0])];else{let n=await oe({categoryField:c??"",categoryType:G.DateAxisFormat,numericFields:[R.valueField],inlineData:r});if(n.layer){let i=ne?.primaryScheme,u=await Z({layer:n.layer,field:R.valueField,classificationMethod:a,numClasses:t,colorScheme:i});if(u?.classBreaksResult?.classBreakInfos?.length){let m=ue(u.classBreaksResult.classBreakInfos.map(f=>f.maxValue));s=u.classBreaksResult.classBreakInfos.map((f,p)=>({classMinValue:f.minValue,classMaxValue:f.maxValue,label:ce(f.maxValue,m),symbol:{type:C.SFS,style:h.Solid,color:o?.[p]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}}return s}function he(e){return e?.length?e:T.esriColorRamps}function be(e,r){return e?he(r).find(t=>t.name===e):void 0}function ge(e){let{colorRampName:r,availableColorRamps:t}=e;return be(r,t)??T.defaultColorRampForCharts}var xe=W(async e=>{let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorRampName:o,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:n,isColorRampFlipped:i}=e,u=ge({colorRampName:o,availableColorRamps:s}),m=i??!1,f=Q({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:n?l?.map(p=>p.symbol?.color):void 0,isFlipped:m});return await ye({data:r,classificationMethod:a,breaksCount:t,xAxisField:c,colorsForClassBreaks:f})},e=>JSON.stringify(e)),T={esriColorRamps:E,defaultColorRampForCharts:E.find(e=>e.name==="Blue 3")??E[0]};function Ne({currentBreaks:e,configBreaks:r,treatReversedColorsAsEqual:t=!0}){let a=!0;if(Array.isArray(e)&&Array.isArray(r)){let c=o=>o.map(({symbol:s,...l})=>l);if(D(c(e),c(r))){let o=e.map(i=>i.symbol?.color),s=r.map(i=>i.symbol?.color),l=D(o,s),n=D(o,[...s].reverse());a=t?!(l||n):!l}}return a}return{a:Q,b:Re,c:Oe,d:ve,e:we,f:Me,g:xe,h:T,i:Ne}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)
2
+ import a from"./7DHOI5P2.js";import{q as R}from"./43DLRSYB.js";import{a as k,b as g,d as h,f as C}from"./KX7KGXKQ.js";import{b as D,d as z,f as q,h as L,l as W}from"./NGXRBJKL.js";import{a as G}from"./QVG3TOL4.js";export default $arcgis.t(([X,{createClassBreaksRenderer:Z},{getSchemes:ee},P,{Lb:A,xc:J}])=>{function te(e){let r;switch(e.length){case 4:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),255]);break}case 5:{let t=e.match(/^#?([\da-f]{1})([\da-f]{1})([\da-f]{1})([\da-f]{1})$/iu);t&&(r=[Number.parseInt(`${t[1]}${t[1]}`,16),Number.parseInt(`${t[2]}${t[2]}`,16),Number.parseInt(`${t[3]}${t[3]}`,16),Number.parseInt(`${t[4]}${t[4]}`,16)]);break}case 7:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),255]);break}case 9:{let t=e.match(/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})([\da-f]{2})$/iu);t&&(r=[Number.parseInt(t[1],16),Number.parseInt(t[2],16),Number.parseInt(t[3],16),Number.parseInt(t[4],16)]);break}}return r}function _(e){let r;if(typeof e=="string"&&e.startsWith("#")){let t=te(e);t&&(r=t)}else Array.isArray(e)&&e.every(t=>typeof t=="number")&&(e.length===4?r=e:e.length===3&&(r=[...e,255]));return r}function K(e){return e===h.BackwardDiagonal||e===h.Cross||e===h.DiagonalCross||e===h.ForwardDiagonal||e===h.Horizontal||e===h.Null||e===h.Solid||e===h.Vertical}function O(e){return e===g.Dash||e===g.DashDot||e===g.DashDotDot||e===g.Dot||e===g.Null||e===g.Solid}function re(e){let{categoryField:r,numericFields:t,configFields:a,inlineData:c}=e,o={};return a&&Object.keys(a).length>0&&"dataItems"in c&&(o={type:"uniqueValue",field1:r,uniqueValueInfos:[]},c.dataItems.forEach(s=>{let l=s[r];if(l!=null){let n={value:l};t.forEach(i=>{let u=_(s[`${a.fillColor}_${i}`]),m=s[`${a.fillOpacity}_${i}`],f=s[`${a.fillStyle}_${i}`],p=s[`${a.markerSize}_${i}`],d=_(s[`${a.outlineColor}_${i}`]),$=s[`${a.outlineOpacity}_${i}`],F=s[`${a.outlineWidth}_${i}`],M=s[`${a.outlineStyle}_${i}`],S=_(s[`${a.lineColor}_${i}`]),x=s[`${a.lineOpacity}_${i}`],I=s[`${a.lineWidth}_${i}`],N=s[`${a.lineStyle}_${i}`],j=s[`${a.displayLabel}_${i}`];if(typeof j=="string"&&(n={...n,label:j}),p!=null){let y={type:C.SMS};p&&typeof p=="number"&&(y.size=p),n.symbol=y}if(u||K(f)){let y=n.symbol?.type===C.SMS?n.symbol:{type:C.SFS};if(u&&(m&&typeof m=="number"&&(u[3]=m),y.color=u),K(f)&&(y.style=f),n.symbol=y,d||F!=null||O(M)){let B={type:C.SLS};d&&($&&typeof $=="number"&&(d[3]=$),B.color=d),O(M)&&(B.style=M),F&&typeof F=="number"&&(B.width=F),n.symbol.outline=B}}else if(S||I!=null||O(N)){let y={type:C.SLS};S&&(x&&typeof x=="number"&&(S[3]=x),y.color=S),O(N)&&(y.style=N),I!=null&&typeof I=="number"&&(y.width=I),n.symbol=y}}),(n.label||n.symbol)&&o.uniqueValueInfos.push(n)}})),o}function ae(e){let{numericFields:r,configFields:t,inlineData:a}=e,c=a;return"dataItems"in a&&Object.entries(t).forEach(([o,s])=>{r.forEach(l=>{let n=`${s}_${l}`;a.dataItems.forEach(i=>{n in i&&delete i[n]})})}),c}function se(e){let{categoryField:r,categoryType:t,numericFields:a,inlineData:c}=e,o;if("dataItems"in c){let{dataItems:s}=c,l=[],n="OBJECTID",i=s.map((m,f)=>{let p={...m};return"FID"in m?n="FID":"ObjectId"in m&&(n="ObjectId"),p[n]||(p[n]=f),{attributes:p}});l.push({type:"esriFieldTypeOID",name:n});let u;switch(t){case"dateOnly":u=k.DateOnly;break;case"timeStampOffset":u=k.TimestampOffset;break;case"date":u=k.Date;break;case"number":u=k.Double;break;default:u=k.String;break}l.push({type:u,name:r}),a.forEach(m=>{l.push({type:k.Double,name:m})}),o={id:"",layerType:"ArcGISFeatureLayer",featureCollection:{layers:[{layerDefinition:{fields:l},featureSet:{features:i}}]}}}return o}async function oe(e){let{categoryField:r,categoryType:t,numericFields:a,configFields:c,inlineData:o}=e,s,l,n=z(o);c&&(s=re({categoryField:r,numericFields:a,configFields:c,inlineData:n}),n=ae({numericFields:a,configFields:c,inlineData:n}));let i=se({categoryField:r,categoryType:t,numericFields:a,inlineData:n});return i&&(l=await J(i)),{chartRenderer:s,iLayer:i,layer:l}}var E=P.all(),ne=ee({geometryType:"point",theme:"high-to-low"});function H(e,r,t){let a=Math.max(0,Math.min(1,t));return[Math.round(e[0]+(r[0]-e[0])*a),Math.round(e[1]+(r[1]-e[1])*a),Math.round(e[2]+(r[2]-e[2])*a),Math.round(e[3]+(r[3]-e[3])*a)]}function le(e,r){return r?.length===e?r:[]}function ie(e){let{numberOfClassBreaks:r,baseColors:t,fallbackStartColor:a=[237,248,251,255],fallbackEndColor:c=[136,65,157,255]}=e,o=[];if(r>0){let s=t?.[0]??a,l=t&&t.length>1?t[t.length-1]:c;if(r===1)o=[s];else for(let n=0;n<r;n++){let i=n/(r-1);o.push(H(s,l,i))}}return o}function Y(e){let{colorRamp:r,numberOfClassBreaks:t,isFlipped:a}=e,c=[],o=!1;if(r.colorsForClassBreaks&&r.colorsForClassBreaks.length>0){let s=r.colorsForClassBreaks.find(l=>l.numClasses===t);if(s?.colors?.length===t){let l=s.colors.map(n=>w(n));l.every(n=>n!==void 0)&&(c=a?l.reverse():l,o=!0)}}if(!o){let s=r.colors||[];if(s.length>0){let l=s.map(w).filter(i=>i!==void 0);a&&(l=l.reverse());let n=[];for(let i=0;i<t;i++){let u=t>1?i/(t-1):0,m=Math.floor(u*(l.length-1)),f=Math.min(m+1,l.length-1),p=l[m],d=l[f];if(!p||!d){c=[];break}let $=u*(l.length-1)-m,F=H(p,d,$);n.push(F)}c=n}}return c}function Q(e){let{numberOfClassBreaks:r,selectedColorRamp:t,colorRamp:a,isFlipped:c=!1}=e,o=le(r,a),s=t?Y({colorRamp:t,numberOfClassBreaks:r,isFlipped:c}):[];return o.length!==r&&(o=s),o.length!==r&&(o=ie({numberOfClassBreaks:r,baseColors:s.length>0?s:a})),o}function U(e,r=2){return e%1===0?e.toString():e.toFixed(r)}function ce(e,r=2){return`\u2264 ${U(e,r)}`}function Re(e){let r="#000000";if(e&&Array.isArray(e)&&e.length>=3){let t=b(e[0]||0),a=b(e[1]||0),c=b(e[2]||0),o=t.toString(16).padStart(2,"0"),s=a.toString(16).padStart(2,"0"),l=c.toString(16).padStart(2,"0");r=`#${o}${s}${l}`}return r}var Oe={all:["*"],light:["light"],dark:["dark"],redsAndYellows:["oranges","reds","yellows"],greens:["greens"],blues:["blues"],purplesAndPinks:["purples","pinks"],browns:["browns"],grays:["grays"],bright:["bright"],subdued:["subdued"],colorblindFriendly:["colorblind-friendly"]},ve={all:"all"},ue=e=>{let r=0,t=o=>{let s=0;return o.forEach(l=>{let n=l.toString().split(".")[1];n&&(s=Math.max(s,n.length))}),s},a=[...e].sort((o,s)=>o-s),c=t(a);for(;r<=c&&a.some((o,s)=>s>0&&A(o,r)<=A(a[s-1],r));)r++;return Math.min(r,c)};function b(e){return Math.max(0,Math.min(255,Math.round(e)))}function w(e){let r;if(e instanceof X){let t=e.toRgba();r=[b(t[0]),b(t[1]),b(t[2]),b(t[3]*255)]}else if(Array.isArray(e)&&e.every(t=>typeof t=="number")&&e.length===4){let t=e.length>=4?e[3]??255:255,a=b(t<=1?t*255:t);r=[b(e[0]??0),b(e[1]??0),b(e[2]??0),a]}return r}function v(e){let r=[];for(let t of e){let a=w(t);a&&r.push(a)}return r}function V(e,r){let t=0,a=e.size<=r.size?e:r,c=a===e?r:e;for(let o of a)c.has(o)&&t++;return t}function me(e){return[...e.colors??[],...q(e.colorsForClassBreaks??[],r=>r.colors??[])]}function fe(e){let{ramp:r,breakKeys:t,breakCount:a,weights:c}=e,o=d=>d.join(","),s=r.colorsForClassBreaks?.find(d=>d.numClasses===a)?.colors??[],l=new Set(v(s).map(o)),n=V(t,l),i=new Set(v(Q({numberOfClassBreaks:a,selectedColorRamp:r})).map(o)),u=V(t,i),m=me(r).filter(d=>!!d),f=new Set(v(m).map(o)),p=V(t,f);return n*c.exactN+u*c.generated+p*c.anyOverlap}function we(e,r){let t={exactN:100,generated:10,anyOverlap:1},a=o=>o.join(","),c;if(e?.length){let o=v(e.map(u=>u.symbol?.color)),s=new Set(o.map(a)),l=o.length,n=r.map(u=>{let m=fe({ramp:u,breakKeys:s,breakCount:l,weights:t});return{ramp:u,score:m}}),i=L(n,[u=>-u.score,u=>u.ramp.name]);i[0]?.score>0&&(c=i[0].ramp)}return c}function Me(e,r){let t=!0;if(!e?.length||r.length<2)t=!1;else{let a=e.map(w),c=r.map(o=>o.symbol.color);if(a.length!==c.length)t=!1;else{let o=(n,i)=>!!n&&!!i&&n.length===i.length&&n.every((u,m)=>u===i[m]),s=0,l=c.length-1;for(;s<a.length&&l>=0;){if(!o(a[s],c[l])){t=!1;break}s++,l--}}}return t}function pe(e){let r=new Set(e.dataItems.map(a=>a[R.valueField])),[t]=r;return r.size===1?t:void 0}function de(e,r){let t=Y({colorRamp:T.defaultColorRampForCharts,numberOfClassBreaks:1})[0];return{classMinValue:0,classMaxValue:e,label:U(e),symbol:{type:C.SFS,style:h.Solid,color:r??t??[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}}async function ye(e){let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorsForClassBreaks:o}=e,s=[],l=pe(r);if(l!==void 0)s=[de(l,o?.[0])];else{let n=await oe({categoryField:c??"",categoryType:G.DateAxisFormat,numericFields:[R.valueField],inlineData:r});if(n.layer){let i=ne?.primaryScheme,u=await Z({layer:n.layer,field:R.valueField,classificationMethod:a,numClasses:t,colorScheme:i});if(u?.classBreaksResult?.classBreakInfos?.length){let m=ue(u.classBreaksResult.classBreakInfos.map(f=>f.maxValue));s=u.classBreaksResult.classBreakInfos.map((f,p)=>({classMinValue:f.minValue,classMaxValue:f.maxValue,label:ce(f.maxValue,m),symbol:{type:C.SFS,style:h.Solid,color:o?.[p]||[0,0,0,255],outline:{style:g.Solid,width:.5,color:[50,50,50,.6]}}}))}}}return s}function he(e){return e?.length?e:T.esriColorRamps}function be(e,r){return e?he(r).find(t=>t.name===e):void 0}function ge(e){let{colorRampName:r,availableColorRamps:t}=e;return be(r,t)??T.defaultColorRampForCharts}var xe=W(async e=>{let{data:r,breaksCount:t,classificationMethod:a,xAxisField:c,colorRampName:o,availableColorRamps:s,existingClassBreakInfos:l,useExistingColors:n,isColorRampFlipped:i}=e,u=ge({colorRampName:o,availableColorRamps:s}),m=i??!1,f=Q({numberOfClassBreaks:t,selectedColorRamp:u,colorRamp:n?l?.map(p=>p.symbol?.color):void 0,isFlipped:m});return await ye({data:r,classificationMethod:a,breaksCount:t,xAxisField:c,colorsForClassBreaks:f})},e=>JSON.stringify(e)),T={esriColorRamps:E,defaultColorRampForCharts:E.find(e=>e.name==="Blue 3")??E[0]};function Ne({currentBreaks:e,configBreaks:r,treatReversedColorsAsEqual:t=!0}){let a=!0;if(Array.isArray(e)&&Array.isArray(r)){let c=o=>o.map(({symbol:s,...l})=>l);if(D(c(e),c(r))){let o=e.map(i=>i.symbol?.color),s=r.map(i=>i.symbol?.color),l=D(o,s),n=D(o,[...s].reverse());a=t?!(l||n):!l}}return a}return{a:Q,b:Re,c:Oe,d:ve,e:we,f:Me,g:xe,h:T,i:Ne}},"Color","smartMapping/renderers/color","smartMapping/symbology/color","smartMapping/symbology/support/colorRamps",a)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import w from"./D4E2DTYE.js";import{a as z,b as U,c as j,d as k}from"./K4GPJ36N.js";import v from"./C5HTXSZS.js";import t from"./Q6DXB7DT.js";import s from"./B7NGZOWD.js";import r from"./DLX6ZNYG.js";import q from"./P6XYFLVZ.js";import p from"./6UOV5TES.js";import o from"./YWKT5FUP.js";import n from"./RW56D36T.js";import l from"./J3AUMK36.js";import"./O4TPXFX4.js";import i from"./OIRY7UKP.js";import h from"./K4WZTS5W.js";import g from"./JX5JAG7D.js";import e from"./2LV6GDYK.js";import c from"./7ULLR4CN.js";import a from"./DGXBF4BH.js";import{C as O,Ha as u,ga as D,i as x,m as d,n as m,na as R,p as y}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as M}from"./NGXRBJKL.js";import"./YVJE3Q7H.js";import{l as f}from"./UE4KTI5X.js";import"./64L7VJJK.js";import{b as A}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as b}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ia:l,Vb:P,Wb:E,Xb:W,Yb:N,Zc:V},,{e:t},,,pe,{b:Ie,d:we,f:ve},{b:Le,d:Fe,f:Ce},{d:ue,e:Se},,{b:Me},{a:fe,b:de,c:me,d:ye},{a:_e,b:Be},,{b:be},{A:he,B:C,C:I,D:w,E:le,F:ce,G:ge,a:q,b:T,c:G,d:S,e:J,f:K,g:_,h:B,i:Y,j:H,k:Q,l:X,m:Z,n:$,o:ee,p:L,q:se,r:ie,s:te,t:F,u:re,v:oe,w:ne,x:c,y:g,z:ae}])=>{var Re=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,r=(p,e,s,a)=>{for(var o=Pe(e,s),n=p.length-1,h;n>=0;n--)(h=p[n])&&(o=h(e,s,o)||o);return o&&Re(e,s,o),o},i=class extends pe{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get chartLimits(){return this._chartLimits}set chartLimits(e){let s=!M(this._chartLimits,e);this._chartLimits=e,s&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get category(){return this._category}set category(e){let s=e.trim()==="";this._category=s?y:e,this.processSeriesRebuild("category")}get numericFields(){return this._numericFields}set numericFields(e){let{layerFieldsInfo:s}=this.layerInfo;typeof e=="string"&&(e=[e]),W(s,e)?(this._numericFields=e,ce(this._category,this._numericFields)&&(this._splitByField=""),this.processSeriesRebuild("numericFields")):f("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(e){E(this.layerInfo.layerFieldsInfo,e)?(this._splitByField=e,this.processSeriesRebuild("splitByField")):f("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return re(this._config)}set showOutliers(e){oe({newShowOutliers:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return se(this._config)}set standardizeValues(e){ne({newStandardizeValues:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return c(this._config)}setDataSortOrder(e,s){g(e,this._config,s)}getSortOrder(){return c(this._config)}setSortOrder(e,s){g(e,this._config,s)}async getCustomSortValues(e){return await w({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let s=c(this._config);if(s===A.customSort){this.startAsyncUpdate();let a=await w({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});g(s,this._config,a),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return C(this._config)}set orderByList(e){I(e,this._config)}async updateSeriesFromLayerFilter(){await this.processSeriesRebuild("updateSeriesFromLayerFilter")}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get showMeanLines(){return ae(this._config)}set showMeanLines(e){let{previousMeanLinesBoxColor:s}=he({newShowMeanLines:e,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=s}get meanLinesBoxColor(){return K(this._config)}set meanLinesBoxColor(e){_(e,this._config)}setupLocalProps(){this._category=Z(this._config),this._splitByField=$(this._config),this._numericFields=ee(this._config)}generateDefaultConfig(){let e=R(this.commonStrings);return e.series=[D(this.commonStrings)],e}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return ge(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),L(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,L(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){let{fetchNullValues:e}=V(this._config)?.query??{};return this.splitByFieldInfos=await P({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:le(this._category)?void 0:this._category,aggregationFields:this.numericFields,splitByField:this._splitByField,fetchNullValues:e,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,this.splitByFieldInfos}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}getSeriesName(e){return G(e,this._config)}setSeriesName(e,s){S(e,s,this._config)}getSeriesColor(e){return J(e,this._config)}setSeriesColor(e,s){B(e,s,this._config)}getSeriesLineStyle(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return z(s)}setSeriesLineStyle(e,s){this.showMeanLines===!0&&q({style:e,seriesIndex:s,config:this._config})}getSeriesLineWidth(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return j(s)}setSeriesLineWidth(e,s){this.showMeanLines===!0&&T({width:e,seriesIndex:s,config:this._config})}get orderOfSeries(){return Y(this._config)}set orderOfSeries(e){H(e,this._config)}moveSeries(e,s){Q(e,s,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return X(this._config)}moveCustomSortValuesInOrderByList(e,s){let a=C(this._config),[o]=a.splice(e,1);a.splice(s,0,o),I(a,this._config)}generateChartTitle(){return te(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return ie(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let e=this.showMeanLines===!0?1:0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),a=O({colorIndex:e,opacity:x}),o=this._config.series[e];B(a,e,this._config);let n=F({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});S(n??s,e,this._config),this.showMeanLines===!0&&l(o)&&(U(d,o),k(m,o))}this.showMeanLines===!0&&_(u,this._config),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=this.showMeanLines===!0&&this.meanLinesBoxColor!==u,a=!1,o=!1;if(!e)for(let n=this.showMeanLines===!0?1:0;n<this.seriesLength;n+=1){let h=this._config.series[n],v=F({series:h,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),xe=this.getSeriesName(n);if(v!==void 0&&v!==xe){a=!0;break}if(this.showMeanLines===!0&&l(h)){let Oe=this.getSeriesLineStyle(n),De=this.getSeriesLineWidth(n);if(Oe!==d||De!==m){o=!0;break}}}return e||s||a||o}};r([t],i.prototype,"showOutliers");r([t],i.prototype,"standardizeValues");r([t],i.prototype,"setDataSortOrder");r([t],i.prototype,"setSortOrder");r([t],i.prototype,"setDataFilters");r([t],i.prototype,"orderByList");r([t],i.prototype,"showMeanLines");r([t],i.prototype,"meanLinesBoxColor");r([t],i.prototype,"resetConfig");r([t],i.prototype,"setSeriesName");r([t],i.prototype,"setSeriesColor");r([t],i.prototype,"setSeriesLineStyle");r([t],i.prototype,"setSeriesLineWidth");r([t],i.prototype,"orderOfSeries");r([t],i.prototype,"moveSeries");r([t],i.prototype,"moveCustomSortValuesInOrderByList");r([t],i.prototype,"resetSeriesStyling");var Ee=[_e,fe,de,me,be,ye,Me,Be,Ie,ue,we,Se,Le,Fe,Ce,ve];N(i,Ee);return i},a,c,e,g,h,i,l,n,o,p,q,r,s,t,v,w)
2
+ import w from"./6PN24NZH.js";import{a as z,b as U,c as j,d as k}from"./K4GPJ36N.js";import v from"./JR2RRIKO.js";import t from"./UQCVYMWO.js";import s from"./57IBZI2Q.js";import r from"./ENSGJAYI.js";import q from"./ZDM5IDLI.js";import p from"./5RI6YXV2.js";import o from"./VBZUDWPR.js";import n from"./TPWN3WU6.js";import l from"./YAH2CORT.js";import"./O4TPXFX4.js";import i from"./AZ2Z7W7G.js";import h from"./TWAPMNSX.js";import g from"./34EBYEM7.js";import e from"./LEUIZWRV.js";import c from"./3L5TASX6.js";import a from"./7DHOI5P2.js";import{C as O,Ha as u,ga as D,i as x,m as d,n as m,na as R,p as y}from"./43DLRSYB.js";import"./KX7KGXKQ.js";import{b as M}from"./NGXRBJKL.js";import"./ZM64YDWU.js";import{l as f}from"./23EBTARY.js";import"./64L7VJJK.js";import{b as A}from"./QP5UAIC6.js";import"./Z5QPCSUQ.js";import{a as b}from"./QVG3TOL4.js";import"./BYSUABOV.js";export default $arcgis.t(([{Ja:l,Wb:P,Xb:E,Yb:W,Zb:N,_c:V},,{e:t},,,pe,{b:Ie,d:we,f:ve},{b:Le,d:Fe,f:Ce},{d:ue,e:Se},,{b:Me},{a:fe,b:de,c:me,d:ye},{a:_e,b:Be},,{b:be},{A:he,B:C,C:I,D:w,E:le,F:ce,G:ge,a:q,b:T,c:G,d:S,e:J,f:Y,g:_,h:B,i:H,j:K,k:Q,l:X,m:Z,n:$,o:ee,p:L,q:se,r:ie,s:te,t:F,u:re,v:oe,w:ne,x:c,y:g,z:ae}])=>{var Re=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,r=(p,e,s,a)=>{for(var o=Pe(e,s),n=p.length-1,h;n>=0;n--)(h=p[n])&&(o=h(e,s,o)||o);return o&&Re(e,s,o),o},i=class extends pe{constructor(){super(...arguments),this._chartType=b.BoxPlotSeries,this._category=y,this._splitByField="",this._numericFields=[],this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0}async setup(e){await this.loadConfigFromLayer(e),this.setupLocalProps(),e.config!==void 0&&await this.rebuildSeries(),typeof this.resolveSetup=="function"&&this.resolveSetup()}get chartLimits(){return this._chartLimits}set chartLimits(e){let s=!M(this._chartLimits,e);this._chartLimits=e,s&&this.layerInfo!==void 0&&this._config!==void 0&&this.processSeriesRebuild("chartLimits")}get splitBySeriesLimitReached(){return this._splitBySeriesLimitReached}set splitBySeriesLimitReached(e){this._splitBySeriesLimitReached=e}get splitBySeriesCount(){return this._splitBySeriesCount}set splitBySeriesCount(e){this._splitBySeriesCount=e}get category(){return this._category}set category(e){let s=e.trim()==="";this._category=s?y:e,this.processSeriesRebuild("category")}get numericFields(){return this._numericFields}set numericFields(e){let{layerFieldsInfo:s}=this.layerInfo;typeof e=="string"&&(e=[e]),W(s,e)?(this._numericFields=e,ce(this._category,this._numericFields)&&(this._splitByField=""),this.processSeriesRebuild("numericFields")):f("error","box-plot-model","Invalid `numericFields`")}get splitByField(){return this._splitByField}set splitByField(e){E(this.layerInfo.layerFieldsInfo,e)?(this._splitByField=e,this.processSeriesRebuild("splitByField")):f("error","box-plot-model","Invalid `splitByField`")}get showOutliers(){return re(this._config)}set showOutliers(e){oe({newShowOutliers:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get standardizeValues(){return se(this._config)}set standardizeValues(e){ne({newStandardizeValues:e,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}getDataSortOrder(){return c(this._config)}setDataSortOrder(e,s){g(e,this._config,s)}getSortOrder(){return c(this._config)}setSortOrder(e,s){g(e,this._config,s)}async getCustomSortValues(e){return await w({config:this._config,layerInfo:this.layerInfo,num:e,errorStrings:this.commonStrings.errorStrings})}async setDataFilters(e){super.setDataFilters(e);let s=c(this._config);if(s===A.customSort){this.startAsyncUpdate();let a=await w({config:this._config,layerInfo:this.layerInfo,errorStrings:this.commonStrings.errorStrings});g(s,this._config,a),this.finishAsyncUpdate()}this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}get orderByList(){return C(this._config)}set orderByList(e){I(e,this._config)}async updateSeriesFromLayerFilter(){await this.processSeriesRebuild("updateSeriesFromLayerFilter")}async rebuildSeries(){await this.processSeriesRebuild("rebuildSeries")}get showMeanLines(){return ae(this._config)}set showMeanLines(e){let{previousMeanLinesBoxColor:s}=he({newShowMeanLines:e,config:this._config,commonStrings:this.commonStrings,previousMeanLinesBoxColor:this.previousMeanLinesBoxColor});this.previousMeanLinesBoxColor=s}get meanLinesBoxColor(){return Y(this._config)}set meanLinesBoxColor(e){_(e,this._config)}setupLocalProps(){this._category=Z(this._config),this._splitByField=$(this._config),this._numericFields=ee(this._config)}generateDefaultConfig(){let e=R(this.commonStrings);return e.series=[D(this.commonStrings)],e}resetConfig(){let e=this._config.id;this._config=this.generateDefaultConfig(),this._config.id=e,this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange"))}usingSplitBy(){return ge(this.category,this.numericFields,this.splitByField)}async processSeriesRebuild(e){this.usingSplitBy()?(this.startAsyncUpdate(),await this.fetchSplitByFieldInfos(),L(this.getBuildNewSeriesProps()),this.finishAsyncUpdate()):(this._splitBySeriesLimitReached=!1,this._splitBySeriesCount=0,L(this.getBuildNewSeriesProps())),this.setupLocalProps(),this.dispatchEvent(new CustomEvent("arcgisChartsModelDataChange")),this.emitConfigUpdate(e)}async fetchSplitByFieldInfos(){let{fetchNullValues:e}=V(this._config)?.query??{};return this.splitByFieldInfos=await P({config:this._config,layer:this.layerInfo.layer,layerFieldsInfo:this.layerInfo.layerFieldsInfo,xAxisField:le(this._category)?void 0:this._category,aggregationFields:this.numericFields,splitByField:this._splitByField,fetchNullValues:e,chartLimits:this._chartLimits,errorStrings:this.commonStrings?.errorStrings}),this._splitBySeriesLimitReached=this.splitByFieldInfos.seriesLimitReached,this._splitBySeriesCount=this.splitByFieldInfos.totalSeriesCount,this.splitByFieldInfos}getBuildNewSeriesProps(){return{category:this.category,splitByField:this.splitByField,numericFields:this.numericFields,config:this._config,layerInfo:this.layerInfo,commonStrings:this.commonStrings,splitByFieldInfos:this.splitByFieldInfos}}getSeriesName(e){return G(e,this._config)}setSeriesName(e,s){S(e,s,this._config)}getSeriesColor(e){return J(e,this._config)}setSeriesColor(e,s){B(e,s,this._config)}getSeriesLineStyle(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return z(s)}setSeriesLineStyle(e,s){this.showMeanLines===!0&&q({style:e,seriesIndex:s,config:this._config})}getSeriesLineWidth(e){let s=this._config.series[e];if(this.showMeanLines===!0&&l(s))return j(s)}setSeriesLineWidth(e,s){this.showMeanLines===!0&&T({width:e,seriesIndex:s,config:this._config})}get orderOfSeries(){return H(this._config)}set orderOfSeries(e){K(e,this._config)}moveSeries(e,s){Q(e,s,this._config)}get boxPlotSeriesIndexWhenMeanLinesShown(){return X(this._config)}moveCustomSortValuesInOrderByList(e,s){let a=C(this._config),[o]=a.splice(e,1);a.splice(s,0,o),I(a,this._config)}generateChartTitle(){return te(this._config,this.layerInfo,this.commonStrings)}generateYAxisTitle(){return ie(this._config,this.layerInfo,this.commonStrings)}resetSeriesStyling(){for(let e=this.showMeanLines===!0?1:0;e<this.seriesLength;e+=1){let s=this.getSeriesId(e),a=O({colorIndex:e,opacity:x}),o=this._config.series[e];B(a,e,this._config);let n=F({series:o,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings});S(n??s,e,this._config),this.showMeanLines===!0&&l(o)&&(U(d,o),k(m,o))}this.showMeanLines===!0&&_(u,this._config),this._config.colorMatch=!0}resetAvailable(){let e=!this.colorMatch,s=this.showMeanLines===!0&&this.meanLinesBoxColor!==u,a=!1,o=!1;if(!e)for(let n=this.showMeanLines===!0?1:0;n<this.seriesLength;n+=1){let h=this._config.series[n],v=F({series:h,splitByField:this._splitByField,layerInfo:this.layerInfo,commonStrings:this.commonStrings}),xe=this.getSeriesName(n);if(v!==void 0&&v!==xe){a=!0;break}if(this.showMeanLines===!0&&l(h)){let Oe=this.getSeriesLineStyle(n),De=this.getSeriesLineWidth(n);if(Oe!==d||De!==m){o=!0;break}}}return e||s||a||o}};r([t],i.prototype,"showOutliers");r([t],i.prototype,"standardizeValues");r([t],i.prototype,"setDataSortOrder");r([t],i.prototype,"setSortOrder");r([t],i.prototype,"setDataFilters");r([t],i.prototype,"orderByList");r([t],i.prototype,"showMeanLines");r([t],i.prototype,"meanLinesBoxColor");r([t],i.prototype,"resetConfig");r([t],i.prototype,"setSeriesName");r([t],i.prototype,"setSeriesColor");r([t],i.prototype,"setSeriesLineStyle");r([t],i.prototype,"setSeriesLineWidth");r([t],i.prototype,"orderOfSeries");r([t],i.prototype,"moveSeries");r([t],i.prototype,"moveCustomSortValuesInOrderByList");r([t],i.prototype,"resetSeriesStyling");var Ee=[_e,fe,de,me,be,ye,Me,Be,Ie,ue,we,Se,Le,Fe,Ce,ve];N(i,Ee);return i},a,c,e,g,h,i,l,n,o,p,q,r,s,t,v,w)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import g from"./YWKT5FUP.js";import f from"./OIRY7UKP.js";import e from"./JX5JAG7D.js";import c from"./2LV6GDYK.js";import a from"./DGXBF4BH.js";import{E as l}from"./43DLRSYB.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{Yb:m},{e:n},{a:I,b:h,e:p,f:y,j:r,k:A,l:L,m:C,n:v,o:V,p:S,q:T,r:B,s:O,t:k,u:M,v:z,w:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;I({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,K=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},R=(e,i)=>e.axes?.[i]?.tickSpacing,X=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},J=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>k(s,this._config)})??!1}setAxisTitleVisibility(i,s){M({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>A(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{L({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>C(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{v({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){K({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return R(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{X({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>J(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];m(x,di);return{a:a,b:x}},a,c,e,f,g)
2
+ import g from"./VBZUDWPR.js";import f from"./AZ2Z7W7G.js";import e from"./34EBYEM7.js";import c from"./LEUIZWRV.js";import a from"./7DHOI5P2.js";import{E as l}from"./43DLRSYB.js";import{d as b}from"./NGXRBJKL.js";import{j as d}from"./QP5UAIC6.js";import{p as u}from"./QVG3TOL4.js";export default $arcgis.t(([{Zb:m},{e:n},{a:I,b:h,e:p,f:y,j:r,k:A,l:L,m:C,n:v,o:V,p:S,q:T,r:B,s:O,t:M,u:k,v:z,w:D},G,{a:Y,b:Z,c:_}])=>{var H=e=>{for(let i of e.axes??[])if(i?.grid!==void 0)return i.grid},N=(e,i,s)=>{let t=i.axes;(s??t?.map((o,g)=>g)??[]).forEach(o=>{t?.[o]!==void 0&&(t[o].grid=b(e))})},j=(e,i)=>i.axes?.[e]?.visible??!0,w=(e,i,s)=>{let t=s.axes?.[i];t!==void 0&&(t.visible=e)},P=(e,i)=>e.axes?.[i]?.displayZeroLine??!1,q=e=>{let{config:i,displayZeroLine:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.displayZeroLine=s}})},U=(e,i)=>e.axes?.[i]?.displayCursorTooltip??!1,W=e=>{let{config:i,displayCursorTooltip:s,axisIndex:t}=e;I({config:i,axisIndex:t,callback:o=>{o.displayCursorTooltip=s}})},E=(e,i)=>e.axes?.[i]?.buffer??!1,R=e=>{let{config:i,buffer:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.buffer=s}})},X=(e,i)=>e.axes?.[i]?.tickSpacing,J=e=>{let{config:i,tickSpacing:s,axisIndex:t}=e;i.axes?.[t]!==void 0&&(i.axes[t].tickSpacing=s)},K=(e,i)=>e.axes?.[i]?.integerOnlyValues??!1,Q=e=>{let{config:i,integerOnlyValues:s,axisIndex:t}=e;h({config:i,axisIndex:t,callback:o=>{o.integerOnlyValues=s}})},$=e=>e.horizontalAxisLabelsBehavior??u.Rotate,ii=(e,i)=>{i.horizontalAxisLabelsBehavior=e},si=e=>e.verticalAxisLabelsBehavior??u.Wrap,ei=(e,i)=>{i.verticalAxisLabelsBehavior=e},ti=e=>e.cursorCrosshair?.horizontalLineVisible??!1,oi=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.horizontalLineVisible=e},ri=e=>e.cursorCrosshair?.verticalLineVisible??!1,ni=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.verticalLineVisible=e},ai=e=>e.cursorCrosshair?.style,ci=(e,i)=>{i.cursorCrosshair===void 0&&(i.cursorCrosshair=l()),i.cursorCrosshair.style=e},gi=e=>e.cursorCrosshair,fi=(e,i)=>{i.cursorCrosshair=e},xi=Object.defineProperty,li=Object.getOwnPropertyDescriptor,c=(e,i,s,t)=>{for(var o=li(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&xi(i,s,o),o},a=class extends G{getAxisTitleText(i){return r({config:this._config,axisIndex:i,func:s=>B(s,this._config)})??""}setAxisTitleText(i,s){r({config:this._config,axisIndex:s,func:t=>{O(i,t,this._config)}})}getAxisVisibility(i){return r({config:this._config,axisIndex:i,func:s=>j(s,this._config)})??!0}setAxisVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{r({config:this._config,axisIndex:s,func:t=>{w(i,t,this._config),this.emitConfigUpdate("setAxisVisibility")}})})}getAxisLabelsVisibility(i){return r({config:this._config,axisIndex:i,func:s=>S(s,this._config)})??!0}setAxisLabelsVisibility(i,s){this.guardSetterFromAsyncOverwrite(()=>{T({visibility:i,axisIndex:s,config:this._config}),this.emitConfigUpdate("setAxisLabelsVisibility")})}getAxisTitleVisibility(i){return r({config:this._config,axisIndex:i,func:s=>M(s,this._config)})??!1}setAxisTitleVisibility(i,s){k({visibility:i,axisIndex:s,config:this._config})}getMaxBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!0})})??Number.NaN}setMaxBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!0})}})}getMinBound(i){return r({config:this._config,axisIndex:i,func:s=>p({config:this._config,axisIndex:s,isMax:!1})})??Number.NaN}setMinBound(i,s){r({config:this._config,axisIndex:s,func:t=>{y({config:this._config,value:i,axisIndex:t,isMax:!1})}})}getAxisValueFormat(i){return r({config:this._config,axisIndex:i,func:s=>A(s,this._config)})}setAxisValueFormat(i,s){r({config:this._config,axisIndex:i,func:t=>{L({config:this._config,valueFormat:s,axisIndex:t,commonStrings:this.commonStrings})}})}getLogarithmic(i){return r({config:this._config,axisIndex:i,func:s=>C(this._config,s)})??!1}setLogarithmic(i,s){r({config:this._config,axisIndex:s,func:t=>{v({config:this._config,isLogarithmic:i,axisIndex:t})}})}getAxisScrollbar(i){return r({config:this._config,axisIndex:i,func:s=>this._config.axes?.[s]?.scrollbar})}setAxisScrollbar(i,s){r({config:this._config,axisIndex:s,func:t=>{V({config:this._config,scrollbar:i,axisIndex:t})}})}getAxisTitleSymbol(i){return r({config:this._config,axisIndex:i,func:s=>z(this._config,s)})}setAxisTitleSymbol(i,s){D({symbol:i,config:this._config,axisIndex:s})}getHorizontalAxisLabelsBehavior(){return $(this._config)}setHorizontalAxisLabelsBehavior(i){ii(i,this._config)}getVerticalAxisLabelsBehavior(){return si(this._config)}setVerticalAxisLabelsBehavior(i){ei(i,this._config)}getGridLinesSymbol(){return H(this._config)}setGridLinesSymbol(i,s){N(i,this._config,s)}getDefaultXAxisTitleText(){return this.commonStrings.utilsStrings.statistics.count}getDisplayZeroLine(i){return r({config:this._config,axisIndex:i,func:s=>P(this._config,s)})??!1}setDisplayZeroLine(i,s){q({config:this._config,displayZeroLine:i,axisIndex:s})}getDisplayCursorTooltip(i){return r({config:this._config,axisIndex:i,func:s=>U(this._config,s)})??!1}setDisplayCursorTooltip(i,s){W({config:this._config,displayCursorTooltip:i,axisIndex:s})}getBuffer(i){return r({config:this._config,axisIndex:i,func:s=>E(this._config,s)})??!1}setBuffer(i,s){R({config:this._config,buffer:i,axisIndex:s})}getTickSpacing(i){return X(this._config,i)}setTickSpacing(i,s){r({config:this._config,axisIndex:s,func:t=>{J({config:this._config,tickSpacing:i,axisIndex:t})}})}getIntegerOnlyValues(i){return r({config:this._config,axisIndex:i,func:s=>K(this._config,s)})??!1}setIntegerOnlyValues(i,s){Q({config:this._config,integerOnlyValues:i,axisIndex:s})}get cursorCrosshairHorizontalLineVisibility(){return ti(this._config)}set cursorCrosshairHorizontalLineVisibility(i){oi(i,this._config)}get cursorCrosshairVerticalLineVisibility(){return ri(this._config)}set cursorCrosshairVerticalLineVisibility(i){ni(i,this._config)}get cursorCrosshairStyle(){return ai(this._config)}set cursorCrosshairStyle(i){i&&ci(i,this._config)}get cursorCrosshair(){return gi(this._config)}set cursorCrosshair(i){i&&fi(i,this._config)}};c([n],a.prototype,"setAxisTitleText");c([n],a.prototype,"setAxisTitleVisibility");c([n],a.prototype,"setMaxBound");c([n],a.prototype,"setMinBound");c([n],a.prototype,"setAxisValueFormat");c([n],a.prototype,"setLogarithmic");c([n],a.prototype,"setAxisScrollbar");c([n],a.prototype,"setAxisTitleSymbol");c([n],a.prototype,"setHorizontalAxisLabelsBehavior");c([n],a.prototype,"setVerticalAxisLabelsBehavior");c([n],a.prototype,"setGridLinesSymbol");c([n],a.prototype,"setDisplayZeroLine");c([n],a.prototype,"setDisplayCursorTooltip");c([n],a.prototype,"setBuffer");c([n],a.prototype,"setTickSpacing");c([n],a.prototype,"setIntegerOnlyValues");c([n],a.prototype,"cursorCrosshairHorizontalLineVisibility");c([n],a.prototype,"cursorCrosshairVerticalLineVisibility");c([n],a.prototype,"cursorCrosshairStyle");c([n],a.prototype,"cursorCrosshair");var hi=Object.defineProperty,ui=Object.getOwnPropertyDescriptor,F=(e,i,s,t)=>{for(var o=ui(i,s),g=e.length-1,f;g>=0;g--)(f=e[g])&&(o=f(i,s,o)||o);return o&&hi(i,s,o),o},x=class extends _{getYGuidesLength(){return this._config.axes?.[1]?.guides?.length}addYAxisGuide(i,s){Y({config:this._config,name:i,index:s,orientation:d.Y})}deleteYAxisGuide(i){Z({config:this._config,index:i,orientation:d.Y})}};F([n],x.prototype,"addYAxisGuide");F([n],x.prototype,"deleteYAxisGuide");var di=[_];m(x,di);return{a:a,b:x}},a,c,e,f,g)